blob: e72f4af9dbc8f36dfcd34df281f20165bb002080 [file] [log] [blame]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003# Generated by GNU Autoconf 2.57.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
hp.com!davidma69cf3d2003-01-28 03:40:06 +000039for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000043do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidma69cf3d2003-01-28 03:40:06 +000088 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000092 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
hp.com!davidma69cf3d2003-01-28 03:40:06 +000096 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000097fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000243# Find the correct PATH separator. Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
247 case X$UNAME in
248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
250 esac
251 PATH_SEPARATOR=$lt_cv_sys_path_separator
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case X$ECHO in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME=
427PACKAGE_TARNAME=
428PACKAGE_VERSION=
429PACKAGE_STRING=
430PACKAGE_BUGREPORT=
431
432ac_unique_file="src/backtrace.c"
433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447# include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452# include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463# include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS CCAS CCASFLAGS REMOTE_ONLY_TRUE REMOTE_ONLY_FALSE ARCH_IA64_TRUE ARCH_IA64_FALSE ARCH_HPPA_TRUE ARCH_HPPA_FALSE ARCH_X86_TRUE ARCH_X86_FALSE arch ARCH LTLIBOBJS'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000471ac_subst_files=''
472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
517 ac_prev=
518 continue
519 fi
520
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523 # Accept the important Cygnus configure options, so we can diagnose typos.
524
525 case $ac_option in
526
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 ac_prev=bindir ;;
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 bindir=$ac_optarg ;;
531
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
536
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
546
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 ac_prev=datadir ;;
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 | --da=*)
551 datadir=$ac_optarg ;;
552
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
561
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 case $ac_option in
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 *) ac_optarg=yes ;;
572 esac
573 eval "enable_$ac_feature='$ac_optarg'" ;;
574
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
583
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
586 with_gas=yes ;;
587
588 -help | --help | --hel | --he | -h)
589 ac_init_help=long ;;
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
594
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
599
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
606
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 ac_prev=infodir ;;
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
611
612 -libdir | --libdir | --libdi | --libd)
613 ac_prev=libdir ;;
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 libdir=$ac_optarg ;;
616
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
623
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
632
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 ac_prev=mandir ;;
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 mandir=$ac_optarg ;;
637
638 -nfp | --nfp | --nf)
639 # Obsolete; use --without-fp.
640 with_fp=no ;;
641
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
644 no_create=yes ;;
645
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 no_recursion=yes ;;
649
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
658
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 ac_prev=prefix ;;
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 prefix=$ac_optarg ;;
663
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
670
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
677
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
694
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
697 silent=yes ;;
698
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 ac_prev=sbindir ;;
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 | --sbi=* | --sb=*)
703 sbindir=$ac_optarg ;;
704
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
708 | --sha | --sh)
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 | --sha=* | --sh=*)
714 sharedstatedir=$ac_optarg ;;
715
716 -site | --site | --sit)
717 ac_prev=site ;;
718 -site=* | --site=* | --sit=*)
719 site=$ac_optarg ;;
720
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 ac_prev=srcdir ;;
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 srcdir=$ac_optarg ;;
725
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
732
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
737
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 verbose=yes ;;
740
741 -version | --version | --versio | --versi | --vers | -V)
742 ac_init_version=: ;;
743
744 -with-* | --with-*)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 case $ac_option in
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 *) ac_optarg=yes ;;
754 esac
755 eval "with_$ac_package='$ac_optarg'" ;;
756
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
765
766 --x)
767 # Obsolete; use --with-x.
768 with_x=yes ;;
769
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
776
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
783
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
787 ;;
788
789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
799 *)
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 ;;
806
807 esac
808done
809
810if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819 eval ac_val=$`echo $ac_var`
820 case $ac_val in
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
824 esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
830do
831 eval ac_val=$`echo $ac_var`
832 case $ac_val in
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
836 esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
879 srcdir=$ac_confdir
880 if test ! -r $srcdir/$ac_unique_file; then
881 srcdir=..
882 fi
883else
884 ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
890 else
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
893 fi
894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP
931
932#
933# Report the --help message.
934#
935if test "$ac_init_help" = "long"; then
936 # Omit some internal or obsolete options to make the list less imposing.
937 # This message is too long to be a string in the A/UX 3.1 sh.
938 cat <<_ACEOF
939\`configure' configures this package to adapt to many kinds of systems.
940
941Usage: $0 [OPTION]... [VAR=VALUE]...
942
943To assign environment variables (e.g., CC, CFLAGS...), specify them as
944VAR=VALUE. See below for descriptions of some of the useful variables.
945
946Defaults for the options are specified in brackets.
947
948Configuration:
949 -h, --help display this help and exit
950 --help=short display options specific to this package
951 --help=recursive display the short help of all the included packages
952 -V, --version display version information and exit
953 -q, --quiet, --silent do not print \`checking...' messages
954 --cache-file=FILE cache test results in FILE [disabled]
955 -C, --config-cache alias for \`--cache-file=config.cache'
956 -n, --no-create do not create output files
957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
958
959_ACEOF
960
961 cat <<_ACEOF
962Installation directories:
963 --prefix=PREFIX install architecture-independent files in PREFIX
964 [$ac_default_prefix]
965 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 [PREFIX]
967
968By default, \`make install' will install all the files in
969\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
970an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971for instance \`--prefix=\$HOME'.
972
973For better control, use the options below.
974
975Fine tuning of the installation directories:
976 --bindir=DIR user executables [EPREFIX/bin]
977 --sbindir=DIR system admin executables [EPREFIX/sbin]
978 --libexecdir=DIR program executables [EPREFIX/libexec]
979 --datadir=DIR read-only architecture-independent data [PREFIX/share]
980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
983 --libdir=DIR object code libraries [EPREFIX/lib]
984 --includedir=DIR C header files [PREFIX/include]
985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
986 --infodir=DIR info documentation [PREFIX/info]
987 --mandir=DIR man documentation [PREFIX/man]
988_ACEOF
989
990 cat <<\_ACEOF
991
992Program names:
993 --program-prefix=PREFIX prepend PREFIX to installed program names
994 --program-suffix=SUFFIX append SUFFIX to installed program names
995 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996
997System types:
998 --build=BUILD configure for building on BUILD [guessed]
999 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1000 --target=TARGET configure for building compilers for TARGET [HOST]
1001_ACEOF
1002fi
1003
1004if test -n "$ac_init_help"; then
1005
1006 cat <<\_ACEOF
1007
1008Optional Features:
1009 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1010 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001011 --enable-maintainer-mode enable make rules and dependencies not useful
1012 (and sometimes confusing) to the casual installer
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001013 --disable-dependency-tracking Speeds up one-time builds
1014 --enable-dependency-tracking Do not reject slow dependency extractors
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001015 --enable-shared=PKGS build shared libraries default=yes
1016 --enable-static=PKGS build static libraries default=yes
1017 --enable-fast-install=PKGS optimize for fast installation default=yes
1018 --disable-libtool-lock avoid locking (might break parallel builds)
1019 --enable-debug turn on debug support (slows down execution)
1020
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-gnu-ld assume the C compiler uses GNU ld default=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00001025 --with-pic try to use only PIC/non-PIC objects default=use both
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001026
1027Some influential environment variables:
1028 CC C compiler command
1029 CFLAGS C compiler flags
1030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1031 nonstandard directory <lib dir>
1032 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033 headers in a nonstandard directory <include dir>
1034 CPP C preprocessor
1035
1036Use these variables to override the choices made by `configure' or to help
1037it to find libraries and programs with nonstandard names/locations.
1038
1039_ACEOF
1040fi
1041
1042if test "$ac_init_help" = "recursive"; then
1043 # If there are subdirs, report their specific --help.
1044 ac_popdir=`pwd`
1045 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1046 test -d $ac_dir || continue
1047 ac_builddir=.
1048
1049if test "$ac_dir" != .; then
1050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1051 # A "../" for each directory in $ac_dir_suffix.
1052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053else
1054 ac_dir_suffix= ac_top_builddir=
1055fi
1056
1057case $srcdir in
1058 .) # No --srcdir option. We are building in place.
1059 ac_srcdir=.
1060 if test -z "$ac_top_builddir"; then
1061 ac_top_srcdir=.
1062 else
1063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1064 fi ;;
1065 [\\/]* | ?:[\\/]* ) # Absolute path.
1066 ac_srcdir=$srcdir$ac_dir_suffix;
1067 ac_top_srcdir=$srcdir ;;
1068 *) # Relative path.
1069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1071esac
1072# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1073# absolute.
1074ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1075ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1076ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1077ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1078
1079 cd $ac_dir
1080 # Check for guested configure; otherwise get Cygnus style configure.
1081 if test -f $ac_srcdir/configure.gnu; then
1082 echo
1083 $SHELL $ac_srcdir/configure.gnu --help=recursive
1084 elif test -f $ac_srcdir/configure; then
1085 echo
1086 $SHELL $ac_srcdir/configure --help=recursive
1087 elif test -f $ac_srcdir/configure.ac ||
1088 test -f $ac_srcdir/configure.in; then
1089 echo
1090 $ac_configure --help
1091 else
1092 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1093 fi
1094 cd $ac_popdir
1095 done
1096fi
1097
1098test -n "$ac_init_help" && exit 0
1099if $ac_init_version; then
1100 cat <<\_ACEOF
1101
1102Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1103Free Software Foundation, Inc.
1104This configure script is free software; the Free Software Foundation
1105gives unlimited permission to copy, distribute and modify it.
1106_ACEOF
1107 exit 0
1108fi
1109exec 5>config.log
1110cat >&5 <<_ACEOF
1111This file contains any messages produced by compilers while
1112running configure, to aid debugging if configure makes a mistake.
1113
1114It was created by $as_me, which was
hp.com!davidma69cf3d2003-01-28 03:40:06 +00001115generated by GNU Autoconf 2.57. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001116
1117 $ $0 $@
1118
1119_ACEOF
1120{
1121cat <<_ASUNAME
1122## --------- ##
1123## Platform. ##
1124## --------- ##
1125
1126hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1127uname -m = `(uname -m) 2>/dev/null || echo unknown`
1128uname -r = `(uname -r) 2>/dev/null || echo unknown`
1129uname -s = `(uname -s) 2>/dev/null || echo unknown`
1130uname -v = `(uname -v) 2>/dev/null || echo unknown`
1131
1132/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1133/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1134
1135/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1136/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1137/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1138hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1139/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1140/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1141/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1142
1143_ASUNAME
1144
1145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1146for as_dir in $PATH
1147do
1148 IFS=$as_save_IFS
1149 test -z "$as_dir" && as_dir=.
1150 echo "PATH: $as_dir"
1151done
1152
1153} >&5
1154
1155cat >&5 <<_ACEOF
1156
1157
1158## ----------- ##
1159## Core tests. ##
1160## ----------- ##
1161
1162_ACEOF
1163
1164
1165# Keep a trace of the command line.
1166# Strip out --no-create and --no-recursion so they do not pile up.
hp.com!davidma69cf3d2003-01-28 03:40:06 +00001167# Strip out --silent because we don't want to record it for future runs.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001168# Also quote any args containing shell meta-characters.
hp.com!davidma69cf3d2003-01-28 03:40:06 +00001169# Make two passes to allow for proper duplicate-argument suppression.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001170ac_configure_args=
hp.com!davidma69cf3d2003-01-28 03:40:06 +00001171ac_configure_args0=
1172ac_configure_args1=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001173ac_sep=
hp.com!davidma69cf3d2003-01-28 03:40:06 +00001174ac_must_keep_next=false
1175for ac_pass in 1 2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001176do
hp.com!davidma69cf3d2003-01-28 03:40:06 +00001177 for ac_arg
1178 do
1179 case $ac_arg in
1180 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 continue ;;
1184 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1185 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1186 esac
1187 case $ac_pass in
1188 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1189 2)
1190 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1191 if test $ac_must_keep_next = true; then
1192 ac_must_keep_next=false # Got value, back to normal.
1193 else
1194 case $ac_arg in
1195 *=* | --config-cache | -C | -disable-* | --disable-* \
1196 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1197 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1198 | -with-* | --with-* | -without-* | --without-* | --x)
1199 case "$ac_configure_args0 " in
1200 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1201 esac
1202 ;;
1203 -* ) ac_must_keep_next=true ;;
1204 esac
1205 fi
1206 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1207 # Get rid of the leading space.
1208 ac_sep=" "
1209 ;;
1210 esac
1211 done
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001212done
hp.com!davidma69cf3d2003-01-28 03:40:06 +00001213$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1214$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001215
1216# When interrupted or exit'd, cleanup temporary files, and complete
1217# config.log. We remove comments because anyway the quotes in there
1218# would cause problems or look ugly.
1219# WARNING: Be sure not to use single quotes in there, as some shells,
1220# such as our DU 5.0 friend, will then `close' the trap.
1221trap 'exit_status=$?
1222 # Save into config.log some information that might help in debugging.
1223 {
1224 echo
1225
1226 cat <<\_ASBOX
1227## ---------------- ##
1228## Cache variables. ##
1229## ---------------- ##
1230_ASBOX
1231 echo
1232 # The following way of writing the cache mishandles newlines in values,
1233{
1234 (set) 2>&1 |
1235 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1236 *ac_space=\ *)
1237 sed -n \
1238 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1240 ;;
1241 *)
1242 sed -n \
1243 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1244 ;;
1245 esac;
1246}
1247 echo
1248
1249 cat <<\_ASBOX
1250## ----------------- ##
1251## Output variables. ##
1252## ----------------- ##
1253_ASBOX
1254 echo
1255 for ac_var in $ac_subst_vars
1256 do
1257 eval ac_val=$`echo $ac_var`
1258 echo "$ac_var='"'"'$ac_val'"'"'"
1259 done | sort
1260 echo
1261
1262 if test -n "$ac_subst_files"; then
1263 cat <<\_ASBOX
1264## ------------- ##
1265## Output files. ##
1266## ------------- ##
1267_ASBOX
1268 echo
1269 for ac_var in $ac_subst_files
1270 do
1271 eval ac_val=$`echo $ac_var`
1272 echo "$ac_var='"'"'$ac_val'"'"'"
1273 done | sort
1274 echo
1275 fi
1276
1277 if test -s confdefs.h; then
1278 cat <<\_ASBOX
1279## ----------- ##
1280## confdefs.h. ##
1281## ----------- ##
1282_ASBOX
1283 echo
1284 sed "/^$/d" confdefs.h | sort
1285 echo
1286 fi
1287 test "$ac_signal" != 0 &&
1288 echo "$as_me: caught signal $ac_signal"
1289 echo "$as_me: exit $exit_status"
1290 } >&5
1291 rm -f core core.* *.core &&
1292 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1293 exit $exit_status
1294 ' 0
1295for ac_signal in 1 2 13 15; do
1296 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1297done
1298ac_signal=0
1299
1300# confdefs.h avoids OS command line length limits that DEFS can exceed.
1301rm -rf conftest* confdefs.h
1302# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1303echo >confdefs.h
1304
1305# Predefined preprocessor variables.
1306
1307cat >>confdefs.h <<_ACEOF
1308#define PACKAGE_NAME "$PACKAGE_NAME"
1309_ACEOF
1310
1311
1312cat >>confdefs.h <<_ACEOF
1313#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1314_ACEOF
1315
1316
1317cat >>confdefs.h <<_ACEOF
1318#define PACKAGE_VERSION "$PACKAGE_VERSION"
1319_ACEOF
1320
1321
1322cat >>confdefs.h <<_ACEOF
1323#define PACKAGE_STRING "$PACKAGE_STRING"
1324_ACEOF
1325
1326
1327cat >>confdefs.h <<_ACEOF
1328#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1329_ACEOF
1330
1331
1332# Let the site file select an alternate cache file if it wants to.
1333# Prefer explicitly selected file to automatically selected ones.
1334if test -z "$CONFIG_SITE"; then
1335 if test "x$prefix" != xNONE; then
1336 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1337 else
1338 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1339 fi
1340fi
1341for ac_site_file in $CONFIG_SITE; do
1342 if test -r "$ac_site_file"; then
1343 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1344echo "$as_me: loading site script $ac_site_file" >&6;}
1345 sed 's/^/| /' "$ac_site_file" >&5
1346 . "$ac_site_file"
1347 fi
1348done
1349
1350if test -r "$cache_file"; then
1351 # Some versions of bash will fail to source /dev/null (special
1352 # files actually), so we avoid doing that.
1353 if test -f "$cache_file"; then
1354 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1355echo "$as_me: loading cache $cache_file" >&6;}
1356 case $cache_file in
1357 [\\/]* | ?:[\\/]* ) . $cache_file;;
1358 *) . ./$cache_file;;
1359 esac
1360 fi
1361else
1362 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1363echo "$as_me: creating cache $cache_file" >&6;}
1364 >$cache_file
1365fi
1366
1367# Check that the precious variables saved in the cache have kept the same
1368# value.
1369ac_cache_corrupted=false
1370for ac_var in `(set) 2>&1 |
1371 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1372 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1373 eval ac_new_set=\$ac_env_${ac_var}_set
1374 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1375 eval ac_new_val="\$ac_env_${ac_var}_value"
1376 case $ac_old_set,$ac_new_set in
1377 set,)
1378 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1379echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1380 ac_cache_corrupted=: ;;
1381 ,set)
1382 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1383echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1384 ac_cache_corrupted=: ;;
1385 ,);;
1386 *)
1387 if test "x$ac_old_val" != "x$ac_new_val"; then
1388 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1389echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1390 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1391echo "$as_me: former value: $ac_old_val" >&2;}
1392 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1393echo "$as_me: current value: $ac_new_val" >&2;}
1394 ac_cache_corrupted=:
1395 fi;;
1396 esac
1397 # Pass precious variables to config.status.
1398 if test "$ac_new_set" = set; then
1399 case $ac_new_val in
1400 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1401 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1402 *) ac_arg=$ac_var=$ac_new_val ;;
1403 esac
1404 case " $ac_configure_args " in
1405 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1406 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1407 esac
1408 fi
1409done
1410if $ac_cache_corrupted; then
1411 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1412echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1413 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1414echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1415 { (exit 1); exit 1; }; }
1416fi
1417
1418ac_ext=c
1419ac_cpp='$CPP $CPPFLAGS'
1420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1422ac_compiler_gnu=$ac_cv_c_compiler_gnu
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442ac_aux_dir=
1443for ac_dir in aux $srcdir/aux; do
1444 if test -f $ac_dir/install-sh; then
1445 ac_aux_dir=$ac_dir
1446 ac_install_sh="$ac_aux_dir/install-sh -c"
1447 break
1448 elif test -f $ac_dir/install.sh; then
1449 ac_aux_dir=$ac_dir
1450 ac_install_sh="$ac_aux_dir/install.sh -c"
1451 break
1452 elif test -f $ac_dir/shtool; then
1453 ac_aux_dir=$ac_dir
1454 ac_install_sh="$ac_aux_dir/shtool install -c"
1455 break
1456 fi
1457done
1458if test -z "$ac_aux_dir"; then
1459 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1460echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1461 { (exit 1); exit 1; }; }
1462fi
1463ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1464ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1465ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1466
1467# Make sure we can run config.sub.
1468$ac_config_sub sun4 >/dev/null 2>&1 ||
1469 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1470echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1471 { (exit 1); exit 1; }; }
1472
1473echo "$as_me:$LINENO: checking build system type" >&5
1474echo $ECHO_N "checking build system type... $ECHO_C" >&6
1475if test "${ac_cv_build+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1477else
1478 ac_cv_build_alias=$build_alias
1479test -z "$ac_cv_build_alias" &&
1480 ac_cv_build_alias=`$ac_config_guess`
1481test -z "$ac_cv_build_alias" &&
1482 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1483echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1484 { (exit 1); exit 1; }; }
1485ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1486 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1487echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1488 { (exit 1); exit 1; }; }
1489
1490fi
1491echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1492echo "${ECHO_T}$ac_cv_build" >&6
1493build=$ac_cv_build
1494build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1495build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1496build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1497
1498
1499echo "$as_me:$LINENO: checking host system type" >&5
1500echo $ECHO_N "checking host system type... $ECHO_C" >&6
1501if test "${ac_cv_host+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1503else
1504 ac_cv_host_alias=$host_alias
1505test -z "$ac_cv_host_alias" &&
1506 ac_cv_host_alias=$ac_cv_build_alias
1507ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1508 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1509echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1510 { (exit 1); exit 1; }; }
1511
1512fi
1513echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1514echo "${ECHO_T}$ac_cv_host" >&6
1515host=$ac_cv_host
1516host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1517host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1518host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1519
1520
1521echo "$as_me:$LINENO: checking target system type" >&5
1522echo $ECHO_N "checking target system type... $ECHO_C" >&6
1523if test "${ac_cv_target+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 ac_cv_target_alias=$target_alias
1527test "x$ac_cv_target_alias" = "x" &&
1528 ac_cv_target_alias=$ac_cv_host_alias
1529ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1530 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1531echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1532 { (exit 1); exit 1; }; }
1533
1534fi
1535echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1536echo "${ECHO_T}$ac_cv_target" >&6
1537target=$ac_cv_target
1538target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543# The aliases save the names the user supplied, while $host etc.
1544# will get canonicalized.
1545test -n "$target_alias" &&
1546 test "$program_prefix$program_suffix$program_transform_name" = \
1547 NONENONEs,x,x, &&
1548 program_prefix=${target_alias}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001549am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001550# Find a good install program. We prefer a C program (faster),
1551# so one script is as good as another. But avoid the broken or
1552# incompatible versions:
1553# SysV /etc/install, /usr/sbin/install
1554# SunOS /usr/etc/install
1555# IRIX /sbin/install
1556# AIX /bin/install
1557# AmigaOS /C/install, which installs bootblocks on floppy discs
1558# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1559# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1560# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1561# ./install, which can be erroneously created by make from ./install.sh.
1562echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1563echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1564if test -z "$INSTALL"; then
1565if test "${ac_cv_path_install+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 # Account for people who put trailing slashes in PATH elements.
1574case $as_dir/ in
1575 ./ | .// | /cC/* | \
1576 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1577 /usr/ucb/* ) ;;
1578 *)
1579 # OSF1 and SCO ODT 3.0 have their own names for install.
1580 # Don't use installbsd from OSF since it installs stuff as root
1581 # by default.
1582 for ac_prog in ginstall scoinst install; do
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1585 if test $ac_prog = install &&
1586 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587 # AIX install. It has an incompatible calling convention.
1588 :
1589 elif test $ac_prog = install &&
1590 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1591 # program-specific install script used by HP pwplus--don't use.
1592 :
1593 else
1594 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1595 break 3
1596 fi
1597 fi
1598 done
1599 done
1600 ;;
1601esac
1602done
1603
1604
1605fi
1606 if test "${ac_cv_path_install+set}" = set; then
1607 INSTALL=$ac_cv_path_install
1608 else
1609 # As a last resort, use the slow shell script. We don't cache a
1610 # path for INSTALL within a source directory, because that will
1611 # break other packages using the cache if that directory is
1612 # removed, or if the path is relative.
1613 INSTALL=$ac_install_sh
1614 fi
1615fi
1616echo "$as_me:$LINENO: result: $INSTALL" >&5
1617echo "${ECHO_T}$INSTALL" >&6
1618
1619# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1620# It thinks the first close brace ends the variable substitution.
1621test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1622
1623test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1624
1625test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1626
1627echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1628echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1629# Just in case
1630sleep 1
1631echo timestamp > conftest.file
1632# Do `set' in a subshell so we don't clobber the current shell's
1633# arguments. Must try -L first in case configure is actually a
1634# symlink; some systems play weird games with the mod time of symlinks
1635# (eg FreeBSD returns the mod time of the symlink's containing
1636# directory).
1637if (
1638 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1639 if test "$*" = "X"; then
1640 # -L didn't work.
1641 set X `ls -t $srcdir/configure conftest.file`
1642 fi
1643 rm -f conftest.file
1644 if test "$*" != "X $srcdir/configure conftest.file" \
1645 && test "$*" != "X conftest.file $srcdir/configure"; then
1646
1647 # If neither matched, then we have a broken ls. This can happen
1648 # if, for instance, CONFIG_SHELL is bash and it inherits a
1649 # broken ls alias from the environment. This has actually
1650 # happened. Such a system could not be considered "sane".
1651 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1652alias in your environment" >&5
1653echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1654alias in your environment" >&2;}
1655 { (exit 1); exit 1; }; }
1656 fi
1657
1658 test "$2" = conftest.file
1659 )
1660then
1661 # Ok.
1662 :
1663else
1664 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1665Check your system clock" >&5
1666echo "$as_me: error: newly created file is older than distributed files!
1667Check your system clock" >&2;}
1668 { (exit 1); exit 1; }; }
1669fi
1670echo "$as_me:$LINENO: result: yes" >&5
1671echo "${ECHO_T}yes" >&6
1672test "$program_prefix" != NONE &&
1673 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1674# Use a double $ so make ignores it.
1675test "$program_suffix" != NONE &&
1676 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1677# Double any \ or $. echo might interpret backslashes.
1678# By default was `s,x,x', remove it if useless.
1679cat <<\_ACEOF >conftest.sed
1680s/[\\$]/&&/g;s/;s,x,x,$//
1681_ACEOF
1682program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1683rm conftest.sed
1684
1685
1686# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001687am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001688
1689test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1690# Use eval to expand $SHELL
1691if eval "$MISSING --run true"; then
1692 am_missing_run="$MISSING --run "
1693else
1694 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001695 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1696echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001697fi
1698
1699for ac_prog in gawk mawk nawk awk
1700do
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702set dummy $ac_prog; ac_word=$2
1703echo "$as_me:$LINENO: checking for $ac_word" >&5
1704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705if test "${ac_cv_prog_AWK+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707else
1708 if test -n "$AWK"; then
1709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1710else
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_AWK="$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1721 fi
1722done
1723done
1724
1725fi
1726fi
1727AWK=$ac_cv_prog_AWK
1728if test -n "$AWK"; then
1729 echo "$as_me:$LINENO: result: $AWK" >&5
1730echo "${ECHO_T}$AWK" >&6
1731else
1732 echo "$as_me:$LINENO: result: no" >&5
1733echo "${ECHO_T}no" >&6
1734fi
1735
1736 test -n "$AWK" && break
1737done
1738
hp.com!davidma69cf3d2003-01-28 03:40:06 +00001739echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1740echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001741set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1742if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 cat >conftest.make <<\_ACEOF
1746all:
hp.com!davidma69cf3d2003-01-28 03:40:06 +00001747 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001748_ACEOF
1749# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1750eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1751if test -n "$ac_maketemp"; then
1752 eval ac_cv_prog_make_${ac_make}_set=yes
1753else
1754 eval ac_cv_prog_make_${ac_make}_set=no
1755fi
1756rm -f conftest.make
1757fi
1758if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1759 echo "$as_me:$LINENO: result: yes" >&5
1760echo "${ECHO_T}yes" >&6
1761 SET_MAKE=
1762else
1763 echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6
1765 SET_MAKE="MAKE=${MAKE-make}"
1766fi
1767
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001768 # test to see if srcdir already configured
1769if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001770 test -f $srcdir/config.status; then
1771 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1772echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1773 { (exit 1); exit 1; }; }
1774fi
1775
1776# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001777 PACKAGE=libunwind
hp.com!davidma69cf3d2003-01-28 03:40:06 +00001778 VERSION=0.2-pre4
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001779
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001780
1781cat >>confdefs.h <<_ACEOF
1782#define PACKAGE "$PACKAGE"
1783_ACEOF
1784
1785
1786cat >>confdefs.h <<_ACEOF
1787#define VERSION "$VERSION"
1788_ACEOF
1789
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001790# Some tools Automake needs.
1791
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001792ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001793
1794
1795AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1796
1797
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001798AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001799
1800
1801AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1802
1803
1804MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1805
1806
1807AMTAR=${AMTAR-"${am_missing_run}tar"}
1808
1809install_sh=${install_sh-"$am_aux_dir/install-sh"}
1810
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001811# Installed binaries are usually stripped using `strip' when the user
1812# run `make install-strip'. However `strip' might not be the right
1813# tool to use in cross-compilation environments, therefore Automake
1814# will honor the `STRIP' environment variable to overrule this program.
1815if test "$cross_compiling" != no; then
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1818set dummy ${ac_tool_prefix}strip; ac_word=$2
1819echo "$as_me:$LINENO: checking for $ac_word" >&5
1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821if test "${ac_cv_prog_STRIP+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823else
1824 if test -n "$STRIP"; then
1825 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1826else
1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1837 fi
1838done
1839done
1840
1841fi
1842fi
1843STRIP=$ac_cv_prog_STRIP
1844if test -n "$STRIP"; then
1845 echo "$as_me:$LINENO: result: $STRIP" >&5
1846echo "${ECHO_T}$STRIP" >&6
1847else
1848 echo "$as_me:$LINENO: result: no" >&5
1849echo "${ECHO_T}no" >&6
1850fi
1851
1852fi
1853if test -z "$ac_cv_prog_STRIP"; then
1854 ac_ct_STRIP=$STRIP
1855 # Extract the first word of "strip", so it can be a program name with args.
1856set dummy strip; ac_word=$2
1857echo "$as_me:$LINENO: checking for $ac_word" >&5
1858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861else
1862 if test -n "$ac_ct_STRIP"; then
1863 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1864else
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_STRIP="strip"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1875 fi
1876done
1877done
1878
1879 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1880fi
1881fi
1882ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1883if test -n "$ac_ct_STRIP"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1885echo "${ECHO_T}$ac_ct_STRIP" >&6
1886else
1887 echo "$as_me:$LINENO: result: no" >&5
1888echo "${ECHO_T}no" >&6
1889fi
1890
1891 STRIP=$ac_ct_STRIP
1892else
1893 STRIP="$ac_cv_prog_STRIP"
1894fi
1895
1896fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001897INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1898
1899# We need awk for the "check" target. The system "awk" is bad on
1900# some platforms.
1901
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001902
1903
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001904echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1905echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1906 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1907if test "${enable_maintainer_mode+set}" = set; then
1908 enableval="$enable_maintainer_mode"
1909 USE_MAINTAINER_MODE=$enableval
1910else
1911 USE_MAINTAINER_MODE=no
1912fi;
1913 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1914echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1915
1916
1917if test $USE_MAINTAINER_MODE = yes; then
1918 MAINTAINER_MODE_TRUE=
1919 MAINTAINER_MODE_FALSE='#'
1920else
1921 MAINTAINER_MODE_TRUE='#'
1922 MAINTAINER_MODE_FALSE=
1923fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001924
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001925 MAINT=$MAINTAINER_MODE_TRUE
1926
1927
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001928# Add the stamp file to the list of files AC keeps track of,
1929# along with our hook.
1930 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001931
1932
1933
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001934
1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940if test -n "$ac_tool_prefix"; then
1941 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1942set dummy ${ac_tool_prefix}gcc; ac_word=$2
1943echo "$as_me:$LINENO: checking for $ac_word" >&5
1944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945if test "${ac_cv_prog_CC+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948 if test -n "$CC"; then
1949 ac_cv_prog_CC="$CC" # Let the user override the test.
1950else
1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952for as_dir in $PATH
1953do
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 break 2
1961 fi
1962done
1963done
1964
1965fi
1966fi
1967CC=$ac_cv_prog_CC
1968if test -n "$CC"; then
1969 echo "$as_me:$LINENO: result: $CC" >&5
1970echo "${ECHO_T}$CC" >&6
1971else
1972 echo "$as_me:$LINENO: result: no" >&5
1973echo "${ECHO_T}no" >&6
1974fi
1975
1976fi
1977if test -z "$ac_cv_prog_CC"; then
1978 ac_ct_CC=$CC
1979 # Extract the first word of "gcc", so it can be a program name with args.
1980set dummy gcc; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986 if test -n "$ac_ct_CC"; then
1987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1988else
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 ac_cv_prog_ac_ct_CC="gcc"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
1999 fi
2000done
2001done
2002
2003fi
2004fi
2005ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006if test -n "$ac_ct_CC"; then
2007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008echo "${ECHO_T}$ac_ct_CC" >&6
2009else
2010 echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6
2012fi
2013
2014 CC=$ac_ct_CC
2015else
2016 CC="$ac_cv_prog_CC"
2017fi
2018
2019if test -z "$CC"; then
2020 if test -n "$ac_tool_prefix"; then
2021 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2022set dummy ${ac_tool_prefix}cc; ac_word=$2
2023echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025if test "${ac_cv_prog_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test.
2030else
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_CC="${ac_tool_prefix}cc"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2041 fi
2042done
2043done
2044
2045fi
2046fi
2047CC=$ac_cv_prog_CC
2048if test -n "$CC"; then
2049 echo "$as_me:$LINENO: result: $CC" >&5
2050echo "${ECHO_T}$CC" >&6
2051else
2052 echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6
2054fi
2055
2056fi
2057if test -z "$ac_cv_prog_CC"; then
2058 ac_ct_CC=$CC
2059 # Extract the first word of "cc", so it can be a program name with args.
2060set dummy cc; ac_word=$2
2061echo "$as_me:$LINENO: checking for $ac_word" >&5
2062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066 if test -n "$ac_ct_CC"; then
2067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2068else
2069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070for as_dir in $PATH
2071do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_ac_ct_CC="cc"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2079 fi
2080done
2081done
2082
2083fi
2084fi
2085ac_ct_CC=$ac_cv_prog_ac_ct_CC
2086if test -n "$ac_ct_CC"; then
2087 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2088echo "${ECHO_T}$ac_ct_CC" >&6
2089else
2090 echo "$as_me:$LINENO: result: no" >&5
2091echo "${ECHO_T}no" >&6
2092fi
2093
2094 CC=$ac_ct_CC
2095else
2096 CC="$ac_cv_prog_CC"
2097fi
2098
2099fi
2100if test -z "$CC"; then
2101 # Extract the first word of "cc", so it can be a program name with args.
2102set dummy cc; ac_word=$2
2103echo "$as_me:$LINENO: checking for $ac_word" >&5
2104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105if test "${ac_cv_prog_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2110else
2111 ac_prog_rejected=no
2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2120 ac_prog_rejected=yes
2121 continue
2122 fi
2123 ac_cv_prog_CC="cc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2126 fi
2127done
2128done
2129
2130if test $ac_prog_rejected = yes; then
2131 # We found a bogon in the path, so make sure we never use it.
2132 set dummy $ac_cv_prog_CC
2133 shift
2134 if test $# != 0; then
2135 # We chose a different compiler from the bogus one.
2136 # However, it has the same basename, so the bogon will be chosen
2137 # first if we set CC to just the basename; use the full file name.
2138 shift
2139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2140 fi
2141fi
2142fi
2143fi
2144CC=$ac_cv_prog_CC
2145if test -n "$CC"; then
2146 echo "$as_me:$LINENO: result: $CC" >&5
2147echo "${ECHO_T}$CC" >&6
2148else
2149 echo "$as_me:$LINENO: result: no" >&5
2150echo "${ECHO_T}no" >&6
2151fi
2152
2153fi
2154if test -z "$CC"; then
2155 if test -n "$ac_tool_prefix"; then
2156 for ac_prog in cl
2157 do
2158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2160echo "$as_me:$LINENO: checking for $ac_word" >&5
2161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162if test "${ac_cv_prog_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165 if test -n "$CC"; then
2166 ac_cv_prog_CC="$CC" # Let the user override the test.
2167else
2168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 break 2
2178 fi
2179done
2180done
2181
2182fi
2183fi
2184CC=$ac_cv_prog_CC
2185if test -n "$CC"; then
2186 echo "$as_me:$LINENO: result: $CC" >&5
2187echo "${ECHO_T}$CC" >&6
2188else
2189 echo "$as_me:$LINENO: result: no" >&5
2190echo "${ECHO_T}no" >&6
2191fi
2192
2193 test -n "$CC" && break
2194 done
2195fi
2196if test -z "$CC"; then
2197 ac_ct_CC=$CC
2198 for ac_prog in cl
2199do
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201set dummy $ac_prog; ac_word=$2
2202echo "$as_me:$LINENO: checking for $ac_word" >&5
2203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2204if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2206else
2207 if test -n "$ac_ct_CC"; then
2208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2209else
2210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2217 ac_cv_prog_ac_ct_CC="$ac_prog"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2220 fi
2221done
2222done
2223
2224fi
2225fi
2226ac_ct_CC=$ac_cv_prog_ac_ct_CC
2227if test -n "$ac_ct_CC"; then
2228 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2229echo "${ECHO_T}$ac_ct_CC" >&6
2230else
2231 echo "$as_me:$LINENO: result: no" >&5
2232echo "${ECHO_T}no" >&6
2233fi
2234
2235 test -n "$ac_ct_CC" && break
2236done
2237
2238 CC=$ac_ct_CC
2239fi
2240
2241fi
2242
2243
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002244test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2245See \`config.log' for more details." >&5
2246echo "$as_me: error: no acceptable C compiler found in \$PATH
2247See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002248 { (exit 1); exit 1; }; }
2249
2250# Provide some information about the compiler.
2251echo "$as_me:$LINENO:" \
2252 "checking for C compiler version" >&5
2253ac_compiler=`set X $ac_compile; echo $2`
2254{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2255 (eval $ac_compiler --version </dev/null >&5) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }
2259{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2260 (eval $ac_compiler -v </dev/null >&5) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }
2264{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2265 (eval $ac_compiler -V </dev/null >&5) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }
2269
2270cat >conftest.$ac_ext <<_ACEOF
2271#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002272/* confdefs.h. */
2273_ACEOF
2274cat confdefs.h >>conftest.$ac_ext
2275cat >>conftest.$ac_ext <<_ACEOF
2276/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002277
2278int
2279main ()
2280{
2281
2282 ;
2283 return 0;
2284}
2285_ACEOF
2286ac_clean_files_save=$ac_clean_files
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002287ac_clean_files="$ac_clean_files a.out a.exe b.out"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002288# Try to create an executable without -o first, disregard a.out.
2289# It will help us diagnose broken compilers, and finding out an intuition
2290# of exeext.
2291echo "$as_me:$LINENO: checking for C compiler default output" >&5
2292echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2293ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2294if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2295 (eval $ac_link_default) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 # Find the output, starting from the most likely. This scheme is
2300# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2301# resort.
2302
2303# Be careful to initialize this variable, since it used to be cached.
2304# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2305ac_cv_exeext=
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002306# b.out is created by i960 compilers.
2307for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2308do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002309 test -f "$ac_file" || continue
2310 case $ac_file in
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2312 ;;
2313 conftest.$ac_ext )
2314 # This is the source file.
2315 ;;
2316 [ab].out )
2317 # We found the default executable, but exeext='' is most
2318 # certainly right.
2319 break;;
2320 *.* )
2321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 # FIXME: I believe we export ac_cv_exeext for Libtool,
2323 # but it would be cool to find out if it's true. Does anybody
2324 # maintain Libtool? --akim.
2325 export ac_cv_exeext
2326 break;;
2327 * )
2328 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002329 esac
2330done
2331else
2332 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002333sed 's/^/| /' conftest.$ac_ext >&5
2334
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002335{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002336See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002337echo "$as_me: error: C compiler cannot create executables
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002338See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002339 { (exit 77); exit 77; }; }
2340fi
2341
2342ac_exeext=$ac_cv_exeext
2343echo "$as_me:$LINENO: result: $ac_file" >&5
2344echo "${ECHO_T}$ac_file" >&6
2345
2346# Check the compiler produces executables we can run. If not, either
2347# the compiler is broken, or we cross compile.
2348echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2349echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2350# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2351# If not cross compiling, check that we can run a simple program.
2352if test "$cross_compiling" != yes; then
2353 if { ac_try='./$ac_file'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2359 cross_compiling=no
2360 else
2361 if test "$cross_compiling" = maybe; then
2362 cross_compiling=yes
2363 else
2364 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002365If you meant to cross compile, use \`--host'.
2366See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002367echo "$as_me: error: cannot run C compiled programs.
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002368If you meant to cross compile, use \`--host'.
2369See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002370 { (exit 1); exit 1; }; }
2371 fi
2372 fi
2373fi
2374echo "$as_me:$LINENO: result: yes" >&5
2375echo "${ECHO_T}yes" >&6
2376
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002377rm -f a.out a.exe conftest$ac_cv_exeext b.out
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002378ac_clean_files=$ac_clean_files_save
2379# Check the compiler produces executables we can run. If not, either
2380# the compiler is broken, or we cross compile.
2381echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2382echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2383echo "$as_me:$LINENO: result: $cross_compiling" >&5
2384echo "${ECHO_T}$cross_compiling" >&6
2385
2386echo "$as_me:$LINENO: checking for suffix of executables" >&5
2387echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2389 (eval $ac_link) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; then
2393 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2394# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2395# work properly (i.e., refer to `conftest.exe'), while it won't with
2396# `rm'.
2397for ac_file in conftest.exe conftest conftest.*; do
2398 test -f "$ac_file" || continue
2399 case $ac_file in
2400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2402 export ac_cv_exeext
2403 break;;
2404 * ) break;;
2405 esac
2406done
2407else
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002408 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2409See \`config.log' for more details." >&5
2410echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2411See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002412 { (exit 1); exit 1; }; }
2413fi
2414
2415rm -f conftest$ac_cv_exeext
2416echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2417echo "${ECHO_T}$ac_cv_exeext" >&6
2418
2419rm -f conftest.$ac_ext
2420EXEEXT=$ac_cv_exeext
2421ac_exeext=$EXEEXT
2422echo "$as_me:$LINENO: checking for suffix of object files" >&5
2423echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2424if test "${ac_cv_objext+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426else
2427 cat >conftest.$ac_ext <<_ACEOF
2428#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002429/* confdefs.h. */
2430_ACEOF
2431cat confdefs.h >>conftest.$ac_ext
2432cat >>conftest.$ac_ext <<_ACEOF
2433/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002434
2435int
2436main ()
2437{
2438
2439 ;
2440 return 0;
2441}
2442_ACEOF
2443rm -f conftest.o conftest.obj
2444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; then
2449 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2450 case $ac_file in
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2453 break;;
2454 esac
2455done
2456else
2457 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002458sed 's/^/| /' conftest.$ac_ext >&5
2459
2460{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2461See \`config.log' for more details." >&5
2462echo "$as_me: error: cannot compute suffix of object files: cannot compile
2463See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002464 { (exit 1); exit 1; }; }
2465fi
2466
2467rm -f conftest.$ac_cv_objext conftest.$ac_ext
2468fi
2469echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2470echo "${ECHO_T}$ac_cv_objext" >&6
2471OBJEXT=$ac_cv_objext
2472ac_objext=$OBJEXT
2473echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2474echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2475if test "${ac_cv_c_compiler_gnu+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478 cat >conftest.$ac_ext <<_ACEOF
2479#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002480/* confdefs.h. */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002485
2486int
2487main ()
2488{
2489#ifndef __GNUC__
2490 choke me
2491#endif
2492
2493 ;
2494 return 0;
2495}
2496_ACEOF
2497rm -f conftest.$ac_objext
2498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 ac_compiler_gnu=yes
2510else
2511 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002512sed 's/^/| /' conftest.$ac_ext >&5
2513
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002514ac_compiler_gnu=no
2515fi
2516rm -f conftest.$ac_objext conftest.$ac_ext
2517ac_cv_c_compiler_gnu=$ac_compiler_gnu
2518
2519fi
2520echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2521echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2522GCC=`test $ac_compiler_gnu = yes && echo yes`
2523ac_test_CFLAGS=${CFLAGS+set}
2524ac_save_CFLAGS=$CFLAGS
2525CFLAGS="-g"
2526echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2527echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2528if test "${ac_cv_prog_cc_g+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531 cat >conftest.$ac_ext <<_ACEOF
2532#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002533/* confdefs.h. */
2534_ACEOF
2535cat confdefs.h >>conftest.$ac_ext
2536cat >>conftest.$ac_ext <<_ACEOF
2537/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002538
2539int
2540main ()
2541{
2542
2543 ;
2544 return 0;
2545}
2546_ACEOF
2547rm -f conftest.$ac_objext
2548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 ac_cv_prog_cc_g=yes
2560else
2561 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002562sed 's/^/| /' conftest.$ac_ext >&5
2563
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002564ac_cv_prog_cc_g=no
2565fi
2566rm -f conftest.$ac_objext conftest.$ac_ext
2567fi
2568echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2569echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2570if test "$ac_test_CFLAGS" = set; then
2571 CFLAGS=$ac_save_CFLAGS
2572elif test $ac_cv_prog_cc_g = yes; then
2573 if test "$GCC" = yes; then
2574 CFLAGS="-g -O2"
2575 else
2576 CFLAGS="-g"
2577 fi
2578else
2579 if test "$GCC" = yes; then
2580 CFLAGS="-O2"
2581 else
2582 CFLAGS=
2583 fi
2584fi
2585echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2586echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2587if test "${ac_cv_prog_cc_stdc+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589else
2590 ac_cv_prog_cc_stdc=no
2591ac_save_CC=$CC
2592cat >conftest.$ac_ext <<_ACEOF
2593#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002599#include <stdarg.h>
2600#include <stdio.h>
2601#include <sys/types.h>
2602#include <sys/stat.h>
2603/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2604struct buf { int x; };
2605FILE * (*rcsopen) (struct buf *, struct stat *, int);
2606static char *e (p, i)
2607 char **p;
2608 int i;
2609{
2610 return p[i];
2611}
2612static char *f (char * (*g) (char **, int), char **p, ...)
2613{
2614 char *s;
2615 va_list v;
2616 va_start (v,p);
2617 s = g (p, va_arg (v,int));
2618 va_end (v);
2619 return s;
2620}
2621int test (int i, double x);
2622struct s1 {int (*f) (int a);};
2623struct s2 {int (*f) (double a);};
2624int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2625int argc;
2626char **argv;
2627int
2628main ()
2629{
2630return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2631 ;
2632 return 0;
2633}
2634_ACEOF
2635# Don't try gcc -ansi; that turns off useful extensions and
2636# breaks some systems' header files.
2637# AIX -qlanglvl=ansi
2638# Ultrix and OSF/1 -std1
2639# HP-UX 10.20 and later -Ae
2640# HP-UX older versions -Aa -D_HPUX_SOURCE
2641# SVR4 -Xc -D__EXTENSIONS__
2642for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2643do
2644 CC="$ac_save_CC $ac_arg"
2645 rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 ac_cv_prog_cc_stdc=$ac_arg
2658break
2659else
2660 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002661sed 's/^/| /' conftest.$ac_ext >&5
2662
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002663fi
2664rm -f conftest.$ac_objext
2665done
2666rm -f conftest.$ac_ext conftest.$ac_objext
2667CC=$ac_save_CC
2668
2669fi
2670
2671case "x$ac_cv_prog_cc_stdc" in
2672 x|xno)
2673 echo "$as_me:$LINENO: result: none needed" >&5
2674echo "${ECHO_T}none needed" >&6 ;;
2675 *)
2676 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2677echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2678 CC="$CC $ac_cv_prog_cc_stdc" ;;
2679esac
2680
2681# Some people use a C++ compiler to compile C. Since we use `exit',
2682# in C++ we need to declare it. In case someone uses the same compiler
2683# for both compiling C and C++ we need to have the C++ compiler decide
2684# the declaration of exit, since it's the most demanding environment.
2685cat >conftest.$ac_ext <<_ACEOF
2686#ifndef __cplusplus
2687 choke me
2688#endif
2689_ACEOF
2690rm -f conftest.$ac_objext
2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 for ac_declaration in \
2703 ''\
2704 '#include <stdlib.h>' \
2705 'extern "C" void std::exit (int) throw (); using std::exit;' \
2706 'extern "C" void std::exit (int); using std::exit;' \
2707 'extern "C" void exit (int) throw ();' \
2708 'extern "C" void exit (int);' \
2709 'void exit (int);'
2710do
2711 cat >conftest.$ac_ext <<_ACEOF
2712#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002713/* confdefs.h. */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002718#include <stdlib.h>
2719$ac_declaration
2720int
2721main ()
2722{
2723exit (42);
2724 ;
2725 return 0;
2726}
2727_ACEOF
2728rm -f conftest.$ac_objext
2729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 :
2741else
2742 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002743sed 's/^/| /' conftest.$ac_ext >&5
2744
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002745continue
2746fi
2747rm -f conftest.$ac_objext conftest.$ac_ext
2748 cat >conftest.$ac_ext <<_ACEOF
2749#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002750/* confdefs.h. */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002755$ac_declaration
2756int
2757main ()
2758{
2759exit (42);
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 break
2777else
2778 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002779sed 's/^/| /' conftest.$ac_ext >&5
2780
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002781fi
2782rm -f conftest.$ac_objext conftest.$ac_ext
2783done
2784rm -f conftest*
2785if test -n "$ac_declaration"; then
2786 echo '#ifdef __cplusplus' >>confdefs.h
2787 echo $ac_declaration >>confdefs.h
2788 echo '#endif' >>confdefs.h
2789fi
2790
2791else
2792 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00002793sed 's/^/| /' conftest.$ac_ext >&5
2794
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002795fi
2796rm -f conftest.$ac_objext conftest.$ac_ext
2797ac_ext=c
2798ac_cpp='$CPP $CPPFLAGS'
2799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002802rm -f .deps 2>/dev/null
2803mkdir .deps 2>/dev/null
2804if test -d .deps; then
2805 DEPDIR=.deps
2806else
2807 # MS-DOS does not allow filenames that begin with a dot.
2808 DEPDIR=_deps
2809fi
2810rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002811
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002812
2813 ac_config_commands="$ac_config_commands depfiles"
2814
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002815
2816am_make=${MAKE-make}
2817cat > confinc << 'END'
2818doit:
2819 @echo done
2820END
2821# If we don't find an include directive, just comment out the code.
2822echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2823echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002824am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002825am__quote=
2826_am_result=none
2827# First try GNU make style include.
2828echo "include confinc" > confmf
2829# We grep out `Entering directory' and `Leaving directory'
2830# messages which can occur if `w' ends up in MAKEFLAGS.
2831# In particular we don't look at `^make:' because GNU make might
2832# be invoked under some other name (usually "gmake"), in which
2833# case it prints its new name instead of `make'.
2834if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2835 am__include=include
2836 am__quote=
2837 _am_result=GNU
2838fi
2839# Now try BSD make style include.
2840if test "$am__include" = "#"; then
2841 echo '.include "confinc"' > confmf
2842 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2843 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002844 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002845 _am_result=BSD
2846 fi
2847fi
2848
2849
2850echo "$as_me:$LINENO: result: $_am_result" >&5
2851echo "${ECHO_T}$_am_result" >&6
2852rm -f confinc confmf
2853
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002854# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2855if test "${enable_dependency_tracking+set}" = set; then
2856 enableval="$enable_dependency_tracking"
2857
2858fi;
2859if test "x$enable_dependency_tracking" != xno; then
2860 am_depcomp="$ac_aux_dir/depcomp"
2861 AMDEPBACKSLASH='\'
2862fi
2863
2864
2865if test "x$enable_dependency_tracking" != xno; then
2866 AMDEP_TRUE=
2867 AMDEP_FALSE='#'
2868else
2869 AMDEP_TRUE='#'
2870 AMDEP_FALSE=
2871fi
2872
2873
2874
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002875
2876depcc="$CC" am_compiler_list=
2877
2878echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2879echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2880if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882else
2883 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2884 # We make a subdir and do the tests there. Otherwise we can end up
2885 # making bogus files that we don't know about and never remove. For
2886 # instance it was reported that on HP-UX the gcc test will end up
2887 # making a dummy file named `D' -- because `-MD' means `put the output
2888 # in D'.
2889 mkdir conftest.dir
2890 # Copy depcomp to subdir because otherwise we won't find it if we're
2891 # using a relative directory.
2892 cp "$am_depcomp" conftest.dir
2893 cd conftest.dir
2894
2895 am_cv_CC_dependencies_compiler_type=none
2896 if test "$am_compiler_list" = ""; then
2897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2898 fi
2899 for depmode in $am_compiler_list; do
2900 # We need to recreate these files for each test, as the compiler may
2901 # overwrite some of them when testing with obscure command lines.
2902 # This happens at least with the AIX C compiler.
2903 echo '#include "conftest.h"' > conftest.c
2904 echo 'int i;' > conftest.h
2905 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2906
2907 case $depmode in
2908 nosideeffect)
2909 # after this tag, mechanisms are not by side-effect, so they'll
2910 # only be used when explicitly requested
2911 if test "x$enable_dependency_tracking" = xyes; then
2912 continue
2913 else
2914 break
2915 fi
2916 ;;
2917 none) break ;;
2918 esac
2919 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2920 # mode. It turns out that the SunPro C++ compiler does not properly
2921 # handle `-M -o', and we need to detect this.
2922 if depmode=$depmode \
2923 source=conftest.c object=conftest.o \
2924 depfile=conftest.Po tmpdepfile=conftest.TPo \
2925 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2926 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2928 am_cv_CC_dependencies_compiler_type=$depmode
2929 break
2930 fi
2931 done
2932
2933 cd ..
2934 rm -rf conftest.dir
2935else
2936 am_cv_CC_dependencies_compiler_type=none
2937fi
2938
2939fi
2940echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2941echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002942CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002943
2944
2945# Find a good install program. We prefer a C program (faster),
2946# so one script is as good as another. But avoid the broken or
2947# incompatible versions:
2948# SysV /etc/install, /usr/sbin/install
2949# SunOS /usr/etc/install
2950# IRIX /sbin/install
2951# AIX /bin/install
2952# AmigaOS /C/install, which installs bootblocks on floppy discs
2953# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2954# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2955# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2956# ./install, which can be erroneously created by make from ./install.sh.
2957echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2958echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2959if test -z "$INSTALL"; then
2960if test "${ac_cv_path_install+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 # Account for people who put trailing slashes in PATH elements.
2969case $as_dir/ in
2970 ./ | .// | /cC/* | \
2971 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2972 /usr/ucb/* ) ;;
2973 *)
2974 # OSF1 and SCO ODT 3.0 have their own names for install.
2975 # Don't use installbsd from OSF since it installs stuff as root
2976 # by default.
2977 for ac_prog in ginstall scoinst install; do
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2980 if test $ac_prog = install &&
2981 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2982 # AIX install. It has an incompatible calling convention.
2983 :
2984 elif test $ac_prog = install &&
2985 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2986 # program-specific install script used by HP pwplus--don't use.
2987 :
2988 else
2989 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2990 break 3
2991 fi
2992 fi
2993 done
2994 done
2995 ;;
2996esac
2997done
2998
2999
3000fi
3001 if test "${ac_cv_path_install+set}" = set; then
3002 INSTALL=$ac_cv_path_install
3003 else
3004 # As a last resort, use the slow shell script. We don't cache a
3005 # path for INSTALL within a source directory, because that will
3006 # break other packages using the cache if that directory is
3007 # removed, or if the path is relative.
3008 INSTALL=$ac_install_sh
3009 fi
3010fi
3011echo "$as_me:$LINENO: result: $INSTALL" >&5
3012echo "${ECHO_T}$INSTALL" >&6
3013
3014# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3015# It thinks the first close brace ends the variable substitution.
3016test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3017
3018test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3019
3020test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3021
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003022echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3023echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003024set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3025if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3027else
3028 cat >conftest.make <<\_ACEOF
3029all:
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003030 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003031_ACEOF
3032# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3033eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3034if test -n "$ac_maketemp"; then
3035 eval ac_cv_prog_make_${ac_make}_set=yes
3036else
3037 eval ac_cv_prog_make_${ac_make}_set=no
3038fi
3039rm -f conftest.make
3040fi
3041if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3042 echo "$as_me:$LINENO: result: yes" >&5
3043echo "${ECHO_T}yes" >&6
3044 SET_MAKE=
3045else
3046 echo "$as_me:$LINENO: result: no" >&5
3047echo "${ECHO_T}no" >&6
3048 SET_MAKE="MAKE=${MAKE-make}"
3049fi
3050
3051# Check whether --enable-shared or --disable-shared was given.
3052if test "${enable_shared+set}" = set; then
3053 enableval="$enable_shared"
3054 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003055case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003056yes) enable_shared=yes ;;
3057no) enable_shared=no ;;
3058*)
3059 enable_shared=no
3060 # Look at the argument we got. We use all the common list separators.
3061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3062 for pkg in $enableval; do
3063 if test "X$pkg" = "X$p"; then
3064 enable_shared=yes
3065 fi
3066 done
3067 IFS="$ac_save_ifs"
3068 ;;
3069esac
3070else
3071 enable_shared=yes
3072fi;
3073# Check whether --enable-static or --disable-static was given.
3074if test "${enable_static+set}" = set; then
3075 enableval="$enable_static"
3076 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003077case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003078yes) enable_static=yes ;;
3079no) enable_static=no ;;
3080*)
3081 enable_static=no
3082 # Look at the argument we got. We use all the common list separators.
3083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3084 for pkg in $enableval; do
3085 if test "X$pkg" = "X$p"; then
3086 enable_static=yes
3087 fi
3088 done
3089 IFS="$ac_save_ifs"
3090 ;;
3091esac
3092else
3093 enable_static=yes
3094fi;
3095# Check whether --enable-fast-install or --disable-fast-install was given.
3096if test "${enable_fast_install+set}" = set; then
3097 enableval="$enable_fast_install"
3098 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003099case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003100yes) enable_fast_install=yes ;;
3101no) enable_fast_install=no ;;
3102*)
3103 enable_fast_install=no
3104 # Look at the argument we got. We use all the common list separators.
3105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3106 for pkg in $enableval; do
3107 if test "X$pkg" = "X$p"; then
3108 enable_fast_install=yes
3109 fi
3110 done
3111 IFS="$ac_save_ifs"
3112 ;;
3113esac
3114else
3115 enable_fast_install=yes
3116fi;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003117# Find the correct PATH separator. Usually this is `:', but
3118# DJGPP uses `;' like DOS.
3119if test "X${PATH_SEPARATOR+set}" != Xset; then
3120 UNAME=${UNAME-`uname 2>/dev/null`}
3121 case X$UNAME in
3122 *-DOS) lt_cv_sys_path_separator=';' ;;
3123 *) lt_cv_sys_path_separator=':' ;;
3124 esac
3125 PATH_SEPARATOR=$lt_cv_sys_path_separator
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003126fi
3127
3128
3129# Check whether --with-gnu-ld or --without-gnu-ld was given.
3130if test "${with_gnu_ld+set}" = set; then
3131 withval="$with_gnu_ld"
3132 test "$withval" = no || with_gnu_ld=yes
3133else
3134 with_gnu_ld=no
3135fi;
3136ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003137if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003138 # Check if gcc -print-prog-name=ld gives a path.
3139 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3140echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003141 case $host in
3142 *-*-mingw*)
3143 # gcc leaves a trailing carriage return which upsets mingw
3144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3145 *)
3146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3147 esac
3148 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003149 # Accept absolute paths.
3150 [\\/]* | [A-Za-z]:[\\/]*)
3151 re_direlt='/[^/][^/]*/\.\./'
3152 # Canonicalize the path of ld
3153 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3154 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3155 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3156 done
3157 test -z "$LD" && LD="$ac_prog"
3158 ;;
3159 "")
3160 # If it fails, then pretend we aren't using GCC.
3161 ac_prog=ld
3162 ;;
3163 *)
3164 # If it is relative, then search for the first ld in PATH.
3165 with_gnu_ld=unknown
3166 ;;
3167 esac
3168elif test "$with_gnu_ld" = yes; then
3169 echo "$as_me:$LINENO: checking for GNU ld" >&5
3170echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3171else
3172 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3173echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3174fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003175if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177else
3178 if test -z "$LD"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003180 for ac_dir in $PATH; do
3181 test -z "$ac_dir" && ac_dir=.
3182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003183 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003184 # Check to see if the program is GNU ld. I'd rather use --version,
3185 # but apparently some GNU ld's only accept -v.
3186 # Break only if it was the GNU/non-GNU ld that we prefer.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003187 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003188 test "$with_gnu_ld" != no && break
3189 else
3190 test "$with_gnu_ld" != yes && break
3191 fi
3192 fi
3193 done
3194 IFS="$ac_save_ifs"
3195else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003196 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003197fi
3198fi
3199
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003200LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003201if test -n "$LD"; then
3202 echo "$as_me:$LINENO: result: $LD" >&5
3203echo "${ECHO_T}$LD" >&6
3204else
3205 echo "$as_me:$LINENO: result: no" >&5
3206echo "${ECHO_T}no" >&6
3207fi
3208test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3209echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3210 { (exit 1); exit 1; }; }
3211echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3212echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003213if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3217if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003218 lt_cv_prog_gnu_ld=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003219else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003220 lt_cv_prog_gnu_ld=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003221fi
3222fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003223echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3224echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3225with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003226
3227
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003228echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3229echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3230if test "${lt_cv_ld_reload_flag+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232else
3233 lt_cv_ld_reload_flag='-r'
3234fi
3235echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3236echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3237reload_flag=$lt_cv_ld_reload_flag
3238test -n "$reload_flag" && reload_flag=" $reload_flag"
3239
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003240echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3241echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003242if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244else
3245 if test -n "$NM"; then
3246 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003247 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003248else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003250 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3251 test -z "$ac_dir" && ac_dir=.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003252 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3253 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003254 # Check to see if the nm accepts a BSD-compat flag.
3255 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3256 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003257 # Tru64's nm complains that /dev/null is an invalid object file
3258 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3259 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003260 break
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003261 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3262 lt_cv_path_NM="$tmp_nm -p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003263 break
3264 else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003265 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003266 continue # so that we can try to find one that supports BSD flags
3267 fi
3268 fi
3269 done
3270 IFS="$ac_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003271 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003272fi
3273fi
3274
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003275NM="$lt_cv_path_NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003276echo "$as_me:$LINENO: result: $NM" >&5
3277echo "${ECHO_T}$NM" >&6
3278
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003279echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3280echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3281if test "${lt_cv_path_SED+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284 # Loop through the user's path and test for sed and gsed.
3285# Then use that list of sed's as ones to test for truncation.
3286as_executable_p="test -f"
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_prog in sed gsed; do
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3295 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3296 fi
3297 done
3298 done
3299done
3300
3301 # Create a temporary directory, and hook for its removal unless debugging.
3302$debug ||
3303{
3304 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3305 trap '{ (exit 1); exit 1; }' 1 2 13 15
3306}
3307
3308# Create a (secure) tmp directory for tmp files.
3309: ${TMPDIR=/tmp}
3310{
3311 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3312 test -n "$tmp" && test -d "$tmp"
3313} ||
3314{
3315 tmp=$TMPDIR/sed$$-$RANDOM
3316 (umask 077 && mkdir $tmp)
3317} ||
3318{
3319 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3320 { (exit 1); exit 1; }
3321}
3322 _max=0
3323 _count=0
3324 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3325 # along with /bin/sed that truncates output.
3326 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3327 test ! -f ${_sed} && break
3328 cat /dev/null > "$tmp/sed.in"
3329 _count=0
3330 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3331 # Check for GNU sed and select it if it is found.
3332 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3333 lt_cv_path_SED=${_sed}
3334 break
3335 fi
3336 while true; do
3337 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3338 mv "$tmp/sed.tmp" "$tmp/sed.in"
3339 cp "$tmp/sed.in" "$tmp/sed.nl"
3340 echo >>"$tmp/sed.nl"
3341 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3342 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3343 # 40000 chars as input seems more than enough
3344 test $_count -gt 10 && break
3345 _count=`expr $_count + 1`
3346 if test $_count -gt $_max; then
3347 _max=$_count
3348 lt_cv_path_SED=$_sed
3349 fi
3350 done
3351 done
3352 rm -rf "$tmp"
3353
3354fi
3355
3356if test "X$SED" != "X"; then
3357 lt_cv_path_SED=$SED
3358else
3359 SED=$lt_cv_path_SED
3360fi
3361echo "$as_me:$LINENO: result: $SED" >&5
3362echo "${ECHO_T}$SED" >&6
3363
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003364echo "$as_me:$LINENO: checking whether ln -s works" >&5
3365echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3366LN_S=$as_ln_s
3367if test "$LN_S" = "ln -s"; then
3368 echo "$as_me:$LINENO: result: yes" >&5
3369echo "${ECHO_T}yes" >&6
3370else
3371 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3372echo "${ECHO_T}no, using $LN_S" >&6
3373fi
3374
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003375echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3376echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3377if test "${lt_cv_deplibs_check_method+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380 lt_cv_file_magic_cmd='$MAGIC_CMD'
3381lt_cv_file_magic_test_file=
3382lt_cv_deplibs_check_method='unknown'
3383# Need to set the preceding variable on all platforms that support
3384# interlibrary dependencies.
3385# 'none' -- dependencies not supported.
3386# `unknown' -- same as none, but documents that we really don't know.
3387# 'pass_all' -- all dependencies passed with no checks.
3388# 'test_compile' -- check by making test program.
3389# 'file_magic [[regex]]' -- check by looking for files in library path
3390# which responds to the $file_magic_cmd with a given egrep regex.
3391# If you have `file' or equivalent on your system and you're not sure
3392# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003393
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003394case $host_os in
3395aix4* | aix5*)
3396 lt_cv_deplibs_check_method=pass_all
3397 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003398
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003399beos*)
3400 lt_cv_deplibs_check_method=pass_all
3401 ;;
3402
3403bsdi4*)
3404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3405 lt_cv_file_magic_cmd='/usr/bin/file -L'
3406 lt_cv_file_magic_test_file=/shlib/libc.so
3407 ;;
3408
3409cygwin* | mingw* | pw32*)
3410 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3411 lt_cv_file_magic_cmd='$OBJDUMP -f'
3412 ;;
3413
3414darwin* | rhapsody*)
3415 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3416 lt_cv_file_magic_cmd='/usr/bin/file -L'
3417 case "$host_os" in
3418 rhapsody* | darwin1.[012])
3419 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3420 ;;
3421 *) # Darwin 1.3 on
3422 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3423 ;;
3424 esac
3425 ;;
3426
3427freebsd*)
3428 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3429 case $host_cpu in
3430 i*86 )
3431 # Not sure whether the presence of OpenBSD here was a mistake.
3432 # Let's accept both of them until this is cleared up.
3433 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3434 lt_cv_file_magic_cmd=/usr/bin/file
3435 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3436 ;;
3437 esac
3438 else
3439 lt_cv_deplibs_check_method=pass_all
3440 fi
3441 ;;
3442
3443gnu*)
3444 lt_cv_deplibs_check_method=pass_all
3445 ;;
3446
3447hpux10.20*|hpux11*)
3448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3449 lt_cv_file_magic_cmd=/usr/bin/file
3450 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3451 ;;
3452
3453irix5* | irix6* | nonstopux*)
3454 case $host_os in
3455 irix5* | nonstopux*)
3456 # this will be overridden with pass_all, but let us keep it just in case
3457 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3458 ;;
3459 *)
3460 case $LD in
3461 *-32|*"-32 ") libmagic=32-bit;;
3462 *-n32|*"-n32 ") libmagic=N32;;
3463 *-64|*"-64 ") libmagic=64-bit;;
3464 *) libmagic=never-match;;
3465 esac
3466 # this will be overridden with pass_all, but let us keep it just in case
3467 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3468 ;;
3469 esac
3470 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3471 lt_cv_deplibs_check_method=pass_all
3472 ;;
3473
3474# This must be Linux ELF.
3475linux-gnu*)
3476 case $host_cpu in
3477 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3478 lt_cv_deplibs_check_method=pass_all ;;
3479 *)
3480 # glibc up to 2.1.1 does not perform some relocations on ARM
3481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3482 esac
3483 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3484 ;;
3485
3486netbsd*)
3487 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3488 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3489 else
3490 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3491 fi
3492 ;;
3493
3494newos6*)
3495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3496 lt_cv_file_magic_cmd=/usr/bin/file
3497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3498 ;;
3499
3500openbsd*)
3501 lt_cv_file_magic_cmd=/usr/bin/file
3502 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3503 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3505 else
3506 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3507 fi
3508 ;;
3509
3510osf3* | osf4* | osf5*)
3511 # this will be overridden with pass_all, but let us keep it just in case
3512 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3513 lt_cv_file_magic_test_file=/shlib/libc.so
3514 lt_cv_deplibs_check_method=pass_all
3515 ;;
3516
3517sco3.2v5*)
3518 lt_cv_deplibs_check_method=pass_all
3519 ;;
3520
3521solaris*)
3522 lt_cv_deplibs_check_method=pass_all
3523 lt_cv_file_magic_test_file=/lib/libc.so
3524 ;;
3525
3526sysv5uw[78]* | sysv4*uw2*)
3527 lt_cv_deplibs_check_method=pass_all
3528 ;;
3529
3530sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3531 case $host_vendor in
3532 motorola)
3533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3534 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3535 ;;
3536 ncr)
3537 lt_cv_deplibs_check_method=pass_all
3538 ;;
3539 sequent)
3540 lt_cv_file_magic_cmd='/bin/file'
3541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3542 ;;
3543 sni)
3544 lt_cv_file_magic_cmd='/bin/file'
3545 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3546 lt_cv_file_magic_test_file=/lib/libc.so
3547 ;;
3548 siemens)
3549 lt_cv_deplibs_check_method=pass_all
3550 ;;
3551 esac
3552 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003553esac
3554
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003555fi
3556echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3557echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3558file_magic_cmd=$lt_cv_file_magic_cmd
3559deplibs_check_method=$lt_cv_deplibs_check_method
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003560
3561
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003562
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003563
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003564
3565
3566
3567
3568# Check for command to grab the raw symbol name followed by C symbol from nm.
3569echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3570echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3571if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573else
3574
3575# These are sane defaults that work on at least a few old systems.
3576# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3577
3578# Character class describing NM global symbol codes.
3579symcode='[BCDEGRST]'
3580
3581# Regexp to match symbols that can be accessed directly from C.
3582sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3583
3584# Transform the above into a raw symbol and a C symbol.
3585symxfrm='\1 \2\3 \3'
3586
3587# Transform an extracted symbol line into a proper C declaration
3588lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3589
3590# Transform an extracted symbol line into symbol name and symbol address
3591lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3592
3593# Define system-specific variables.
3594case $host_os in
3595aix*)
3596 symcode='[BCDT]'
3597 ;;
3598cygwin* | mingw* | pw32*)
3599 symcode='[ABCDGISTW]'
3600 ;;
3601hpux*) # Its linker distinguishes data from code symbols
3602 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3603 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3604 ;;
3605irix* | nonstopux*)
3606 symcode='[BCDEGRST]'
3607 ;;
3608osf*)
3609 symcode='[BCDEGQRST]'
3610 ;;
3611solaris* | sysv5*)
3612 symcode='[BDT]'
3613 ;;
3614sysv4)
3615 symcode='[DFNSTU]'
3616 ;;
3617esac
3618
3619# Handle CRLF in mingw tool chain
3620opt_cr=
3621case $host_os in
3622mingw*)
3623 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3624 ;;
3625esac
3626
3627# If we're using GNU nm, then use its standard symbol codes.
3628if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3629 symcode='[ABCDGISTW]'
3630fi
3631
3632# Try without a prefix undercore, then with it.
3633for ac_symprfx in "" "_"; do
3634
3635 # Write the raw and C identifiers.
3636lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3637
3638 # Check to see that the pipe works correctly.
3639 pipe_works=no
3640 rm -f conftest*
3641 cat > conftest.$ac_ext <<EOF
3642#ifdef __cplusplus
3643extern "C" {
3644#endif
3645char nm_test_var;
3646void nm_test_func(){}
3647#ifdef __cplusplus
3648}
3649#endif
3650int main(){nm_test_var='a';nm_test_func();return(0);}
3651EOF
3652
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003658 # Now try to grab the symbols.
3659 nlist=conftest.nm
3660 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3661 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } && test -s "$nlist"; then
3665 # Try sorting and uniquifying the output.
3666 if sort "$nlist" | uniq > "$nlist"T; then
3667 mv -f "$nlist"T "$nlist"
3668 else
3669 rm -f "$nlist"T
3670 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003671
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003672 # Make sure that we snagged all the symbols we need.
3673 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3674 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3675 cat <<EOF > conftest.$ac_ext
3676#ifdef __cplusplus
3677extern "C" {
3678#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003679
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003680EOF
3681 # Now generate the symbol file.
3682 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003683
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003684 cat <<EOF >> conftest.$ac_ext
3685#if defined (__STDC__) && __STDC__
3686# define lt_ptr void *
3687#else
3688# define lt_ptr char *
3689# define const
3690#endif
3691
3692/* The mapping between symbol names and symbols. */
3693const struct {
3694 const char *name;
3695 lt_ptr address;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003696}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003697lt_preloaded_symbols[] =
3698{
3699EOF
3700 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3701 cat <<\EOF >> conftest.$ac_ext
3702 {0, (lt_ptr) 0}
3703};
3704
3705#ifdef __cplusplus
3706}
3707#endif
3708EOF
3709 # Now try linking the two files.
3710 mv conftest.$ac_objext conftstm.$ac_objext
3711 save_LIBS="$LIBS"
3712 save_CFLAGS="$CFLAGS"
3713 LIBS="conftstm.$ac_objext"
3714 CFLAGS="$CFLAGS$no_builtin_flag"
3715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003716 (eval $ac_link) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003719 (exit $ac_status); } && test -s conftest$ac_exeext; then
3720 pipe_works=yes
3721 fi
3722 LIBS="$save_LIBS"
3723 CFLAGS="$save_CFLAGS"
3724 else
3725 echo "cannot find nm_test_func in $nlist" >&5
3726 fi
3727 else
3728 echo "cannot find nm_test_var in $nlist" >&5
3729 fi
3730 else
3731 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3732 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003733 else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003734 echo "$progname: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003736 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003737 rm -f conftest* conftst*
3738
3739 # Do not use the global_symbol_pipe unless it works.
3740 if test "$pipe_works" = yes; then
3741 break
3742 else
3743 lt_cv_sys_global_symbol_pipe=
3744 fi
3745done
3746
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003747fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003748
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003749global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3750if test -z "$lt_cv_sys_global_symbol_pipe"; then
3751 global_symbol_to_cdecl=
3752 global_symbol_to_c_name_address=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003753else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003754 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3755 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003756fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003757if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3758then
3759 echo "$as_me:$LINENO: result: failed" >&5
3760echo "${ECHO_T}failed" >&6
3761else
3762 echo "$as_me:$LINENO: result: ok" >&5
3763echo "${ECHO_T}ok" >&6
3764fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003765
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3772echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3773# On Suns, sometimes $CPP names a directory.
3774if test -n "$CPP" && test -d "$CPP"; then
3775 CPP=
3776fi
3777if test -z "$CPP"; then
3778 if test "${ac_cv_prog_CPP+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 # Double quotes because CPP needs to be expanded
3782 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3783 do
3784 ac_preproc_ok=false
3785for ac_c_preproc_warn_flag in '' yes
3786do
3787 # Use a header file that comes with gcc, so configuring glibc
3788 # with a fresh cross-compiler works.
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003791 # On the NeXT, cc -E runs the code through the compiler's parser,
3792 # not just through cpp. "Syntax error" is here to catch this case.
3793 cat >conftest.$ac_ext <<_ACEOF
3794#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h. */
3800#ifdef __STDC__
3801# include <limits.h>
3802#else
3803# include <assert.h>
3804#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003805 Syntax error
3806_ACEOF
3807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null; then
3815 if test -s conftest.err; then
3816 ac_cpp_err=$ac_c_preproc_warn_flag
3817 else
3818 ac_cpp_err=
3819 fi
3820else
3821 ac_cpp_err=yes
3822fi
3823if test -z "$ac_cpp_err"; then
3824 :
3825else
3826 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003827sed 's/^/| /' conftest.$ac_ext >&5
3828
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003829 # Broken: fails on valid input.
3830continue
3831fi
3832rm -f conftest.err conftest.$ac_ext
3833
3834 # OK, works on sane cases. Now check whether non-existent headers
3835 # can be detected and how.
3836 cat >conftest.$ac_ext <<_ACEOF
3837#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003838/* confdefs.h. */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003843#include <ac_nonexistent.h>
3844_ACEOF
3845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null; then
3853 if test -s conftest.err; then
3854 ac_cpp_err=$ac_c_preproc_warn_flag
3855 else
3856 ac_cpp_err=
3857 fi
3858else
3859 ac_cpp_err=yes
3860fi
3861if test -z "$ac_cpp_err"; then
3862 # Broken: success on invalid input.
3863continue
3864else
3865 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003866sed 's/^/| /' conftest.$ac_ext >&5
3867
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003868 # Passes both tests.
3869ac_preproc_ok=:
3870break
3871fi
3872rm -f conftest.err conftest.$ac_ext
3873
3874done
3875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876rm -f conftest.err conftest.$ac_ext
3877if $ac_preproc_ok; then
3878 break
3879fi
3880
3881 done
3882 ac_cv_prog_CPP=$CPP
3883
3884fi
3885 CPP=$ac_cv_prog_CPP
3886else
3887 ac_cv_prog_CPP=$CPP
3888fi
3889echo "$as_me:$LINENO: result: $CPP" >&5
3890echo "${ECHO_T}$CPP" >&6
3891ac_preproc_ok=false
3892for ac_c_preproc_warn_flag in '' yes
3893do
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat >conftest.$ac_ext <<_ACEOF
3901#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003902/* confdefs.h. */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h. */
3907#ifdef __STDC__
3908# include <limits.h>
3909#else
3910# include <assert.h>
3911#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003912 Syntax error
3913_ACEOF
3914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } >/dev/null; then
3922 if test -s conftest.err; then
3923 ac_cpp_err=$ac_c_preproc_warn_flag
3924 else
3925 ac_cpp_err=
3926 fi
3927else
3928 ac_cpp_err=yes
3929fi
3930if test -z "$ac_cpp_err"; then
3931 :
3932else
3933 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003934sed 's/^/| /' conftest.$ac_ext >&5
3935
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003936 # Broken: fails on valid input.
3937continue
3938fi
3939rm -f conftest.err conftest.$ac_ext
3940
3941 # OK, works on sane cases. Now check whether non-existent headers
3942 # can be detected and how.
3943 cat >conftest.$ac_ext <<_ACEOF
3944#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003950#include <ac_nonexistent.h>
3951_ACEOF
3952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } >/dev/null; then
3960 if test -s conftest.err; then
3961 ac_cpp_err=$ac_c_preproc_warn_flag
3962 else
3963 ac_cpp_err=
3964 fi
3965else
3966 ac_cpp_err=yes
3967fi
3968if test -z "$ac_cpp_err"; then
3969 # Broken: success on invalid input.
3970continue
3971else
3972 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003973sed 's/^/| /' conftest.$ac_ext >&5
3974
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003975 # Passes both tests.
3976ac_preproc_ok=:
3977break
3978fi
3979rm -f conftest.err conftest.$ac_ext
3980
3981done
3982# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3983rm -f conftest.err conftest.$ac_ext
3984if $ac_preproc_ok; then
3985 :
3986else
hp.com!davidma69cf3d2003-01-28 03:40:06 +00003987 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3988See \`config.log' for more details." >&5
3989echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3990See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003991 { (exit 1); exit 1; }; }
3992fi
3993
3994ac_ext=c
3995ac_cpp='$CPP $CPPFLAGS'
3996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999
4000
4001echo "$as_me:$LINENO: checking for egrep" >&5
4002echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4003if test "${ac_cv_prog_egrep+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4007 then ac_cv_prog_egrep='grep -E'
4008 else ac_cv_prog_egrep='egrep'
4009 fi
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4012echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4013 EGREP=$ac_cv_prog_egrep
4014
4015
4016echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4017echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4018if test "${ac_cv_header_stdc+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 cat >conftest.$ac_ext <<_ACEOF
4022#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004023/* confdefs.h. */
4024_ACEOF
4025cat confdefs.h >>conftest.$ac_ext
4026cat >>conftest.$ac_ext <<_ACEOF
4027/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004028#include <stdlib.h>
4029#include <stdarg.h>
4030#include <string.h>
4031#include <float.h>
4032
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004033int
4034main ()
4035{
4036
4037 ;
4038 return 0;
4039}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004040_ACEOF
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004041rm -f conftest.$ac_objext
4042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004044 ac_status=$?
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004046 (exit $ac_status); } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004053 ac_cv_header_stdc=yes
4054else
4055 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004056sed 's/^/| /' conftest.$ac_ext >&5
4057
4058ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004059fi
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004060rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004061
4062if test $ac_cv_header_stdc = yes; then
4063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4064 cat >conftest.$ac_ext <<_ACEOF
4065#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004066/* confdefs.h. */
4067_ACEOF
4068cat confdefs.h >>conftest.$ac_ext
4069cat >>conftest.$ac_ext <<_ACEOF
4070/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004071#include <string.h>
4072
4073_ACEOF
4074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075 $EGREP "memchr" >/dev/null 2>&1; then
4076 :
4077else
4078 ac_cv_header_stdc=no
4079fi
4080rm -f conftest*
4081
4082fi
4083
4084if test $ac_cv_header_stdc = yes; then
4085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4086 cat >conftest.$ac_ext <<_ACEOF
4087#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004093#include <stdlib.h>
4094
4095_ACEOF
4096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "free" >/dev/null 2>&1; then
4098 :
4099else
4100 ac_cv_header_stdc=no
4101fi
4102rm -f conftest*
4103
4104fi
4105
4106if test $ac_cv_header_stdc = yes; then
4107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4108 if test "$cross_compiling" = yes; then
4109 :
4110else
4111 cat >conftest.$ac_ext <<_ACEOF
4112#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004113/* confdefs.h. */
4114_ACEOF
4115cat confdefs.h >>conftest.$ac_ext
4116cat >>conftest.$ac_ext <<_ACEOF
4117/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004118#include <ctype.h>
4119#if ((' ' & 0x0FF) == 0x020)
4120# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4121# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4122#else
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004123# define ISLOWER(c) \
4124 (('a' <= (c) && (c) <= 'i') \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004125 || ('j' <= (c) && (c) <= 'r') \
4126 || ('s' <= (c) && (c) <= 'z'))
4127# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4128#endif
4129
4130#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4131int
4132main ()
4133{
4134 int i;
4135 for (i = 0; i < 256; i++)
4136 if (XOR (islower (i), ISLOWER (i))
4137 || toupper (i) != TOUPPER (i))
4138 exit(2);
4139 exit (0);
4140}
4141_ACEOF
4142rm -f conftest$ac_exeext
4143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 :
4154else
4155 echo "$as_me: program exited with status $ac_status" >&5
4156echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004157sed 's/^/| /' conftest.$ac_ext >&5
4158
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004159( exit $ac_status )
4160ac_cv_header_stdc=no
4161fi
4162rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4163fi
4164fi
4165fi
4166echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4167echo "${ECHO_T}$ac_cv_header_stdc" >&6
4168if test $ac_cv_header_stdc = yes; then
4169
4170cat >>confdefs.h <<\_ACEOF
4171#define STDC_HEADERS 1
4172_ACEOF
4173
4174fi
4175
4176# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4187 inttypes.h stdint.h unistd.h
4188do
4189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4190echo "$as_me:$LINENO: checking for $ac_header" >&5
4191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4192if eval "test \"\${$as_ac_Header+set}\" = set"; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195 cat >conftest.$ac_ext <<_ACEOF
4196#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004197/* confdefs.h. */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004202$ac_includes_default
4203
4204#include <$ac_header>
4205_ACEOF
4206rm -f conftest.$ac_objext
4207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 eval "$as_ac_Header=yes"
4219else
4220 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004221sed 's/^/| /' conftest.$ac_ext >&5
4222
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004223eval "$as_ac_Header=no"
4224fi
4225rm -f conftest.$ac_objext conftest.$ac_ext
4226fi
4227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4229if test `eval echo '${'$as_ac_Header'}'` = yes; then
4230 cat >>confdefs.h <<_ACEOF
4231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4232_ACEOF
4233
4234fi
4235
4236done
4237
4238
4239
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004240for ac_header in dlfcn.h
4241do
4242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4243if eval "test \"\${$as_ac_Header+set}\" = set"; then
4244 echo "$as_me:$LINENO: checking for $ac_header" >&5
4245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4246if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248fi
4249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4251else
4252 # Is the header compilable?
4253echo "$as_me:$LINENO: checking $ac_header usability" >&5
4254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4255cat >conftest.$ac_ext <<_ACEOF
4256#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004257/* confdefs.h. */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004262$ac_includes_default
4263#include <$ac_header>
4264_ACEOF
4265rm -f conftest.$ac_objext
4266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 ac_header_compiler=yes
4278else
4279 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004280sed 's/^/| /' conftest.$ac_ext >&5
4281
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004282ac_header_compiler=no
4283fi
4284rm -f conftest.$ac_objext conftest.$ac_ext
4285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4286echo "${ECHO_T}$ac_header_compiler" >&6
4287
4288# Is the header present?
4289echo "$as_me:$LINENO: checking $ac_header presence" >&5
4290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4291cat >conftest.$ac_ext <<_ACEOF
4292#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
4297/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004298#include <$ac_header>
4299_ACEOF
4300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4302 ac_status=$?
4303 grep -v '^ *+' conftest.er1 >conftest.err
4304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev/null; then
4308 if test -s conftest.err; then
4309 ac_cpp_err=$ac_c_preproc_warn_flag
4310 else
4311 ac_cpp_err=
4312 fi
4313else
4314 ac_cpp_err=yes
4315fi
4316if test -z "$ac_cpp_err"; then
4317 ac_header_preproc=yes
4318else
4319 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004320sed 's/^/| /' conftest.$ac_ext >&5
4321
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004322 ac_header_preproc=no
4323fi
4324rm -f conftest.err conftest.$ac_ext
4325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4326echo "${ECHO_T}$ac_header_preproc" >&6
4327
4328# So? What about this header?
4329case $ac_header_compiler:$ac_header_preproc in
4330 yes:no )
4331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4335 (
4336 cat <<\_ASBOX
4337## ------------------------------------ ##
4338## Report this to bug-autoconf@gnu.org. ##
4339## ------------------------------------ ##
4340_ASBOX
4341 ) |
4342 sed "s/^/$as_me: WARNING: /" >&2
4343 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004344 no:yes )
4345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4346echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4348echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4351 (
4352 cat <<\_ASBOX
4353## ------------------------------------ ##
4354## Report this to bug-autoconf@gnu.org. ##
4355## ------------------------------------ ##
4356_ASBOX
4357 ) |
4358 sed "s/^/$as_me: WARNING: /" >&2
4359 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004360esac
4361echo "$as_me:$LINENO: checking for $ac_header" >&5
4362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363if eval "test \"\${$as_ac_Header+set}\" = set"; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 eval "$as_ac_Header=$ac_header_preproc"
4367fi
4368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370
4371fi
4372if test `eval echo '${'$as_ac_Header'}'` = yes; then
4373 cat >>confdefs.h <<_ACEOF
4374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4375_ACEOF
4376
4377fi
4378
4379done
4380
4381
4382
4383
4384
4385
4386# Only perform the check for file, if the check method requires it
4387case $deplibs_check_method in
4388file_magic*)
4389 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4390 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4391echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4392if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
4395 case $MAGIC_CMD in
4396 /*)
4397 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4398 ;;
4399 ?:/*)
4400 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4401 ;;
4402 *)
4403 ac_save_MAGIC_CMD="$MAGIC_CMD"
4404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4405 ac_dummy="/usr/bin:$PATH"
4406 for ac_dir in $ac_dummy; do
4407 test -z "$ac_dir" && ac_dir=.
4408 if test -f $ac_dir/${ac_tool_prefix}file; then
4409 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4410 if test -n "$file_magic_test_file"; then
4411 case $deplibs_check_method in
4412 "file_magic "*)
4413 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4416 egrep "$file_magic_regex" > /dev/null; then
4417 :
4418 else
4419 cat <<EOF 1>&2
4420
4421*** Warning: the command libtool uses to detect shared libraries,
4422*** $file_magic_cmd, produces output that libtool cannot recognize.
4423*** The result is that libtool may fail to recognize shared libraries
4424*** as such. This will affect the creation of libtool libraries that
4425*** depend on shared libraries, but programs linked with such libtool
4426*** libraries will work regardless of this problem. Nevertheless, you
4427*** may want to report the problem to your system manager and/or to
4428*** bug-libtool@gnu.org
4429
4430EOF
4431 fi ;;
4432 esac
4433 fi
4434 break
4435 fi
4436 done
4437 IFS="$ac_save_ifs"
4438 MAGIC_CMD="$ac_save_MAGIC_CMD"
4439 ;;
4440esac
4441fi
4442
4443MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4444if test -n "$MAGIC_CMD"; then
4445 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4446echo "${ECHO_T}$MAGIC_CMD" >&6
4447else
4448 echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
4450fi
4451
4452if test -z "$lt_cv_path_MAGIC_CMD"; then
4453 if test -n "$ac_tool_prefix"; then
4454 echo "$as_me:$LINENO: checking for file" >&5
4455echo $ECHO_N "checking for file... $ECHO_C" >&6
4456if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459 case $MAGIC_CMD in
4460 /*)
4461 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4462 ;;
4463 ?:/*)
4464 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4465 ;;
4466 *)
4467 ac_save_MAGIC_CMD="$MAGIC_CMD"
4468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4469 ac_dummy="/usr/bin:$PATH"
4470 for ac_dir in $ac_dummy; do
4471 test -z "$ac_dir" && ac_dir=.
4472 if test -f $ac_dir/file; then
4473 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4474 if test -n "$file_magic_test_file"; then
4475 case $deplibs_check_method in
4476 "file_magic "*)
4477 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4479 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4480 egrep "$file_magic_regex" > /dev/null; then
4481 :
4482 else
4483 cat <<EOF 1>&2
4484
4485*** Warning: the command libtool uses to detect shared libraries,
4486*** $file_magic_cmd, produces output that libtool cannot recognize.
4487*** The result is that libtool may fail to recognize shared libraries
4488*** as such. This will affect the creation of libtool libraries that
4489*** depend on shared libraries, but programs linked with such libtool
4490*** libraries will work regardless of this problem. Nevertheless, you
4491*** may want to report the problem to your system manager and/or to
4492*** bug-libtool@gnu.org
4493
4494EOF
4495 fi ;;
4496 esac
4497 fi
4498 break
4499 fi
4500 done
4501 IFS="$ac_save_ifs"
4502 MAGIC_CMD="$ac_save_MAGIC_CMD"
4503 ;;
4504esac
4505fi
4506
4507MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4508if test -n "$MAGIC_CMD"; then
4509 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4510echo "${ECHO_T}$MAGIC_CMD" >&6
4511else
4512 echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6
4514fi
4515
4516 else
4517 MAGIC_CMD=:
4518 fi
4519fi
4520
4521 fi
4522 ;;
4523esac
4524
4525if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4527set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4528echo "$as_me:$LINENO: checking for $ac_word" >&5
4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530if test "${ac_cv_prog_RANLIB+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533 if test -n "$RANLIB"; then
4534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547done
4548done
4549
4550fi
4551fi
4552RANLIB=$ac_cv_prog_RANLIB
4553if test -n "$RANLIB"; then
4554 echo "$as_me:$LINENO: result: $RANLIB" >&5
4555echo "${ECHO_T}$RANLIB" >&6
4556else
4557 echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6
4559fi
4560
4561fi
4562if test -z "$ac_cv_prog_RANLIB"; then
4563 ac_ct_RANLIB=$RANLIB
4564 # Extract the first word of "ranlib", so it can be a program name with args.
4565set dummy ranlib; ac_word=$2
4566echo "$as_me:$LINENO: checking for $ac_word" >&5
4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4568if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571 if test -n "$ac_ct_RANLIB"; then
4572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_ac_ct_RANLIB="ranlib"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585done
4586done
4587
4588 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4589fi
4590fi
4591ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4592if test -n "$ac_ct_RANLIB"; then
4593 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4594echo "${ECHO_T}$ac_ct_RANLIB" >&6
4595else
4596 echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6
4598fi
4599
4600 RANLIB=$ac_ct_RANLIB
4601else
4602 RANLIB="$ac_cv_prog_RANLIB"
4603fi
4604
4605if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4607set dummy ${ac_tool_prefix}strip; ac_word=$2
4608echo "$as_me:$LINENO: checking for $ac_word" >&5
4609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4610if test "${ac_cv_prog_STRIP+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613 if test -n "$STRIP"; then
4614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627done
4628done
4629
4630fi
4631fi
4632STRIP=$ac_cv_prog_STRIP
4633if test -n "$STRIP"; then
4634 echo "$as_me:$LINENO: result: $STRIP" >&5
4635echo "${ECHO_T}$STRIP" >&6
4636else
4637 echo "$as_me:$LINENO: result: no" >&5
4638echo "${ECHO_T}no" >&6
4639fi
4640
4641fi
4642if test -z "$ac_cv_prog_STRIP"; then
4643 ac_ct_STRIP=$STRIP
4644 # Extract the first word of "strip", so it can be a program name with args.
4645set dummy strip; ac_word=$2
4646echo "$as_me:$LINENO: checking for $ac_word" >&5
4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4648if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651 if test -n "$ac_ct_STRIP"; then
4652 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_prog_ac_ct_STRIP="strip"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665done
4666done
4667
4668 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4669fi
4670fi
4671ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4672if test -n "$ac_ct_STRIP"; then
4673 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4674echo "${ECHO_T}$ac_ct_STRIP" >&6
4675else
4676 echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6
4678fi
4679
4680 STRIP=$ac_ct_STRIP
4681else
4682 STRIP="$ac_cv_prog_STRIP"
4683fi
4684
4685
4686enable_dlopen=no
4687enable_win32_dll=no
4688
4689# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4690if test "${enable_libtool_lock+set}" = set; then
4691 enableval="$enable_libtool_lock"
4692
4693fi;
4694test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4695
4696# Some flags need to be propagated to the compiler or linker for good
4697# libtool support.
4698case $host in
4699*-*-irix6*)
4700 # Find out which ABI we are using.
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004701 echo '#line 4701 "configure"' > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; then
4707 case `/usr/bin/file conftest.$ac_objext` in
4708 *32-bit*)
4709 LD="${LD-ld} -32"
4710 ;;
4711 *N32*)
4712 LD="${LD-ld} -n32"
4713 ;;
4714 *64-bit*)
4715 LD="${LD-ld} -64"
4716 ;;
4717 esac
4718 fi
4719 rm -rf conftest*
4720 ;;
4721
4722*-*-sco3.2v5*)
4723 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4724 SAVE_CFLAGS="$CFLAGS"
4725 CFLAGS="$CFLAGS -belf"
4726 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4727echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4728if test "${lt_cv_cc_needs_belf+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731
4732
4733 ac_ext=c
4734ac_cpp='$CPP $CPPFLAGS'
4735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738
4739 cat >conftest.$ac_ext <<_ACEOF
4740#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004741/* confdefs.h. */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004746
4747int
4748main ()
4749{
4750
4751 ;
4752 return 0;
4753}
4754_ACEOF
4755rm -f conftest.$ac_objext conftest$ac_exeext
4756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757 (eval $ac_link) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -s conftest$ac_exeext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 (eval $ac_try) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 lt_cv_cc_needs_belf=yes
4768else
4769 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00004770sed 's/^/| /' conftest.$ac_ext >&5
4771
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004772lt_cv_cc_needs_belf=no
4773fi
4774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4775 ac_ext=c
4776ac_cpp='$CPP $CPPFLAGS'
4777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780
4781fi
4782echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4783echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4784 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4785 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4786 CFLAGS="$SAVE_CFLAGS"
4787 fi
4788 ;;
4789
4790
4791esac
4792
4793# Sed substitution that helps us do robust quoting. It backslashifies
4794# metacharacters that are still active within double-quoted strings.
4795Xsed='sed -e s/^X//'
4796sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4797
4798# Same as above, but do not quote variable references.
4799double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4800
4801# Sed substitution to delay expansion of an escaped shell variable in a
4802# double_quote_subst'ed string.
4803delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4804
4805# Constants:
4806rm="rm -f"
4807
4808# Global variables:
4809default_ofile=libtool
4810can_build_shared=yes
4811
4812# All known linkers require a `.a' archive for static linking (except M$VC,
4813# which needs '.lib').
4814libext=a
4815ltmain="$ac_aux_dir/ltmain.sh"
4816ofile="$default_ofile"
4817with_gnu_ld="$lt_cv_prog_gnu_ld"
4818need_locks="$enable_libtool_lock"
4819
4820old_CC="$CC"
4821old_CFLAGS="$CFLAGS"
4822
4823# Set sane defaults for various variables
4824test -z "$AR" && AR=ar
4825test -z "$AR_FLAGS" && AR_FLAGS=cru
4826test -z "$AS" && AS=as
4827test -z "$CC" && CC=cc
4828test -z "$DLLTOOL" && DLLTOOL=dlltool
4829test -z "$LD" && LD=ld
4830test -z "$LN_S" && LN_S="ln -s"
4831test -z "$MAGIC_CMD" && MAGIC_CMD=file
4832test -z "$NM" && NM=nm
4833test -z "$OBJDUMP" && OBJDUMP=objdump
4834test -z "$RANLIB" && RANLIB=:
4835test -z "$STRIP" && STRIP=:
4836test -z "$ac_objext" && ac_objext=o
4837
4838if test x"$host" != x"$build"; then
4839 ac_tool_prefix=${host_alias}-
4840else
4841 ac_tool_prefix=
4842fi
4843
4844# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4845case $host_os in
4846linux-gnu*) ;;
4847linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4848esac
4849
4850case $host_os in
4851aix3*)
4852 # AIX sometimes has problems with the GCC collect2 program. For some
4853 # reason, if we set the COLLECT_NAMES environment variable, the problems
4854 # vanish in a puff of smoke.
4855 if test "X${COLLECT_NAMES+set}" != Xset; then
4856 COLLECT_NAMES=
4857 export COLLECT_NAMES
4858 fi
4859 ;;
4860esac
4861
4862# Determine commands to create old-style static archives.
4863old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4864old_postinstall_cmds='chmod 644 $oldlib'
4865old_postuninstall_cmds=
4866
4867if test -n "$RANLIB"; then
4868 case $host_os in
4869 openbsd*)
4870 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4871 ;;
4872 *)
4873 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4874 ;;
4875 esac
4876 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4877fi
4878
4879# Allow CC to be a program name with arguments.
4880set dummy $CC
4881compiler="$2"
4882
4883echo "$as_me:$LINENO: checking for objdir" >&5
4884echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4885rm -f .libs 2>/dev/null
4886mkdir .libs 2>/dev/null
4887if test -d .libs; then
4888 objdir=.libs
4889else
4890 # MS-DOS does not allow filenames that begin with a dot.
4891 objdir=_libs
4892fi
4893rmdir .libs 2>/dev/null
4894echo "$as_me:$LINENO: result: $objdir" >&5
4895echo "${ECHO_T}$objdir" >&6
4896
4897
4898
4899# Check whether --with-pic or --without-pic was given.
4900if test "${with_pic+set}" = set; then
4901 withval="$with_pic"
4902 pic_mode="$withval"
4903else
4904 pic_mode=default
4905fi;
4906test -z "$pic_mode" && pic_mode=default
4907
4908# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4909# in isolation, and that seeing it set (from the cache) indicates that
4910# the associated values are set (in the cache) correctly too.
4911echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4912echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4913if test "${lt_cv_prog_cc_pic+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916 lt_cv_prog_cc_pic=
4917 lt_cv_prog_cc_shlib=
4918 lt_cv_prog_cc_wl=
4919 lt_cv_prog_cc_static=
4920 lt_cv_prog_cc_no_builtin=
4921 lt_cv_prog_cc_can_build_shared=$can_build_shared
4922
4923 if test "$GCC" = yes; then
4924 lt_cv_prog_cc_wl='-Wl,'
4925 lt_cv_prog_cc_static='-static'
4926
4927 case $host_os in
4928 aix*)
4929 # Below there is a dirty hack to force normal static linking with -ldl
4930 # The problem is because libdl dynamically linked with both libc and
4931 # libC (AIX C++ library), which obviously doesn't included in libraries
4932 # list by gcc. This cause undefined symbols with -static flags.
4933 # This hack allows C programs to be linked with "-static -ldl", but
4934 # not sure about C++ programs.
4935 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4936 ;;
4937 amigaos*)
4938 # FIXME: we need at least 68020 code to build shared libraries, but
4939 # adding the `-m68020' flag to GCC prevents building anything better,
4940 # like `-m68040'.
4941 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4942 ;;
4943 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4944 # PIC is the default for these OSes.
4945 ;;
4946 darwin* | rhapsody*)
4947 # PIC is the default on this platform
4948 # Common symbols not allowed in MH_DYLIB files
4949 lt_cv_prog_cc_pic='-fno-common'
4950 ;;
4951 cygwin* | mingw* | pw32* | os2*)
4952 # This hack is so that the source file can tell whether it is being
4953 # built for inclusion in a dll (and should export symbols for example).
4954 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4955 ;;
4956 sysv4*MP*)
4957 if test -d /usr/nec; then
4958 lt_cv_prog_cc_pic=-Kconform_pic
4959 fi
4960 ;;
4961 *)
4962 lt_cv_prog_cc_pic='-fPIC'
4963 ;;
4964 esac
4965 else
4966 # PORTME Check for PIC flags for the system compiler.
4967 case $host_os in
4968 aix3* | aix4* | aix5*)
4969 lt_cv_prog_cc_wl='-Wl,'
4970 # All AIX code is PIC.
4971 if test "$host_cpu" = ia64; then
4972 # AIX 5 now supports IA64 processor
4973 lt_cv_prog_cc_static='-Bstatic'
4974 else
4975 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4976 fi
4977 ;;
4978
4979 hpux9* | hpux10* | hpux11*)
4980 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4981 lt_cv_prog_cc_wl='-Wl,'
4982 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4983 lt_cv_prog_cc_pic='+Z'
4984 ;;
4985
4986 irix5* | irix6* | nonstopux*)
4987 lt_cv_prog_cc_wl='-Wl,'
4988 lt_cv_prog_cc_static='-non_shared'
4989 # PIC (with -KPIC) is the default.
4990 ;;
4991
4992 cygwin* | mingw* | pw32* | os2*)
4993 # This hack is so that the source file can tell whether it is being
4994 # built for inclusion in a dll (and should export symbols for example).
4995 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4996 ;;
4997
4998 newsos6)
4999 lt_cv_prog_cc_pic='-KPIC'
5000 lt_cv_prog_cc_static='-Bstatic'
5001 ;;
5002
5003 osf3* | osf4* | osf5*)
5004 # All OSF/1 code is PIC.
5005 lt_cv_prog_cc_wl='-Wl,'
5006 lt_cv_prog_cc_static='-non_shared'
5007 ;;
5008
5009 sco3.2v5*)
5010 lt_cv_prog_cc_pic='-Kpic'
5011 lt_cv_prog_cc_static='-dn'
5012 lt_cv_prog_cc_shlib='-belf'
5013 ;;
5014
5015 solaris*)
5016 lt_cv_prog_cc_pic='-KPIC'
5017 lt_cv_prog_cc_static='-Bstatic'
5018 lt_cv_prog_cc_wl='-Wl,'
5019 ;;
5020
5021 sunos4*)
5022 lt_cv_prog_cc_pic='-PIC'
5023 lt_cv_prog_cc_static='-Bstatic'
5024 lt_cv_prog_cc_wl='-Qoption ld '
5025 ;;
5026
5027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5028 lt_cv_prog_cc_pic='-KPIC'
5029 lt_cv_prog_cc_static='-Bstatic'
5030 lt_cv_prog_cc_wl='-Wl,'
5031 ;;
5032
5033 uts4*)
5034 lt_cv_prog_cc_pic='-pic'
5035 lt_cv_prog_cc_static='-Bstatic'
5036 ;;
5037
5038 sysv4*MP*)
5039 if test -d /usr/nec ;then
5040 lt_cv_prog_cc_pic='-Kconform_pic'
5041 lt_cv_prog_cc_static='-Bstatic'
5042 fi
5043 ;;
5044
5045 *)
5046 lt_cv_prog_cc_can_build_shared=no
5047 ;;
5048 esac
5049 fi
5050
5051fi
5052
5053if test -z "$lt_cv_prog_cc_pic"; then
5054 echo "$as_me:$LINENO: result: none" >&5
5055echo "${ECHO_T}none" >&6
5056else
5057 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5058echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5059
5060 # Check to make sure the pic_flag actually works.
5061 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5062echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5063 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066 save_CFLAGS="$CFLAGS"
5067 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5068 cat >conftest.$ac_ext <<_ACEOF
5069#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00005070/* confdefs.h. */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005075
5076int
5077main ()
5078{
5079
5080 ;
5081 return 0;
5082}
5083_ACEOF
5084rm -f conftest.$ac_objext
5085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086 (eval $ac_compile) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 case $host_os in
5097 hpux9* | hpux10* | hpux11*)
5098 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5099 # they create non-PIC objects. So, if there were any warnings, we
5100 # assume that PIC is not supported.
5101 if test -s conftest.err; then
5102 lt_cv_prog_cc_pic_works=no
5103 else
5104 lt_cv_prog_cc_pic_works=yes
5105 fi
5106 ;;
5107 *)
5108 lt_cv_prog_cc_pic_works=yes
5109 ;;
5110 esac
5111
5112else
5113 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00005114sed 's/^/| /' conftest.$ac_ext >&5
5115
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005116 lt_cv_prog_cc_pic_works=no
5117
5118fi
5119rm -f conftest.$ac_objext conftest.$ac_ext
5120 CFLAGS="$save_CFLAGS"
5121
5122fi
5123
5124
5125 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5126 lt_cv_prog_cc_pic=
5127 lt_cv_prog_cc_can_build_shared=no
5128 else
5129 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5130 fi
5131
5132 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5133echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5134fi
5135
5136# Check for any special shared library compilation flags.
5137if test -n "$lt_cv_prog_cc_shlib"; then
5138 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5139echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5140 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5141 else
5142 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5143echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5144 lt_cv_prog_cc_can_build_shared=no
5145 fi
5146fi
5147
5148echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5149echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5150if test "${lt_cv_prog_cc_static_works+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153 lt_cv_prog_cc_static_works=no
5154 save_LDFLAGS="$LDFLAGS"
5155 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5156 cat >conftest.$ac_ext <<_ACEOF
5157#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00005158/* confdefs.h. */
5159_ACEOF
5160cat confdefs.h >>conftest.$ac_ext
5161cat >>conftest.$ac_ext <<_ACEOF
5162/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005163
5164int
5165main ()
5166{
5167
5168 ;
5169 return 0;
5170}
5171_ACEOF
5172rm -f conftest.$ac_objext conftest$ac_exeext
5173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5174 (eval $ac_link) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } &&
5178 { ac_try='test -s conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 lt_cv_prog_cc_static_works=yes
5185else
5186 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00005187sed 's/^/| /' conftest.$ac_ext >&5
5188
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005189fi
5190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5191 LDFLAGS="$save_LDFLAGS"
5192
5193fi
5194
5195
5196# Belt *and* braces to stop my trousers falling down:
5197test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5198echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5199echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5200
5201pic_flag="$lt_cv_prog_cc_pic"
5202special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5203wl="$lt_cv_prog_cc_wl"
5204link_static_flag="$lt_cv_prog_cc_static"
5205no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5206can_build_shared="$lt_cv_prog_cc_can_build_shared"
5207
5208
5209# Check to see if options -o and -c are simultaneously supported by compiler
5210echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5211echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5212if test "${lt_cv_compiler_c_o+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215
5216$rm -r conftest 2>/dev/null
5217mkdir conftest
5218cd conftest
5219echo "int some_variable = 0;" > conftest.$ac_ext
5220mkdir out
5221# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5222# that will create temporary files in the current directory regardless of
5223# the output directory. Thus, making CWD read-only will cause this test
5224# to fail, enabling locking or at least warning the user not to do parallel
5225# builds.
5226chmod -w .
5227save_CFLAGS="$CFLAGS"
5228CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5229compiler_c_o=no
hp.com!davidma69cf3d2003-01-28 03:40:06 +00005230if { (eval echo configure:5230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005231 # The compiler can only warn and ignore the option if not recognized
5232 # So say no if there are warnings
5233 if test -s out/conftest.err; then
5234 lt_cv_compiler_c_o=no
5235 else
5236 lt_cv_compiler_c_o=yes
5237 fi
5238else
5239 # Append any errors to the config.log.
5240 cat out/conftest.err 1>&5
5241 lt_cv_compiler_c_o=no
5242fi
5243CFLAGS="$save_CFLAGS"
5244chmod u+w .
5245$rm conftest* out/*
5246rmdir out
5247cd ..
5248rmdir conftest
5249$rm -r conftest 2>/dev/null
5250
5251fi
5252
5253compiler_c_o=$lt_cv_compiler_c_o
5254echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5255echo "${ECHO_T}$compiler_c_o" >&6
5256
5257if test x"$compiler_c_o" = x"yes"; then
5258 # Check to see if we can write to a .lo
5259 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5260echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5261 if test "${lt_cv_compiler_o_lo+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264
5265 lt_cv_compiler_o_lo=no
5266 save_CFLAGS="$CFLAGS"
5267 CFLAGS="$CFLAGS -c -o conftest.lo"
5268 save_objext="$ac_objext"
5269 ac_objext=lo
5270 cat >conftest.$ac_ext <<_ACEOF
5271#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00005272/* confdefs.h. */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005277
5278int
5279main ()
5280{
5281int some_variable = 0;
5282 ;
5283 return 0;
5284}
5285_ACEOF
5286rm -f conftest.$ac_objext
5287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -s conftest.$ac_objext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 # The compiler can only warn and ignore the option if not recognized
5299 # So say no if there are warnings
5300 if test -s conftest.err; then
5301 lt_cv_compiler_o_lo=no
5302 else
5303 lt_cv_compiler_o_lo=yes
5304 fi
5305
5306else
5307 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00005308sed 's/^/| /' conftest.$ac_ext >&5
5309
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005310fi
5311rm -f conftest.$ac_objext conftest.$ac_ext
5312 ac_objext="$save_objext"
5313 CFLAGS="$save_CFLAGS"
5314
5315fi
5316
5317 compiler_o_lo=$lt_cv_compiler_o_lo
5318 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5319echo "${ECHO_T}$compiler_o_lo" >&6
5320else
5321 compiler_o_lo=no
5322fi
5323
5324# Check to see if we can do hard links to lock some files if needed
5325hard_links="nottested"
5326if test "$compiler_c_o" = no && test "$need_locks" != no; then
5327 # do not overwrite the value of need_locks provided by the user
5328 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5329echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5330 hard_links=yes
5331 $rm conftest*
5332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5333 touch conftest.a
5334 ln conftest.a conftest.b 2>&5 || hard_links=no
5335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5336 echo "$as_me:$LINENO: result: $hard_links" >&5
5337echo "${ECHO_T}$hard_links" >&6
5338 if test "$hard_links" = no; then
5339 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5340echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5341 need_locks=warn
5342 fi
5343else
5344 need_locks=no
5345fi
5346
5347if test "$GCC" = yes; then
5348 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5349 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5350echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5351 echo "int some_variable = 0;" > conftest.$ac_ext
5352 save_CFLAGS="$CFLAGS"
5353 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5354 compiler_rtti_exceptions=no
5355 cat >conftest.$ac_ext <<_ACEOF
5356#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00005357/* confdefs.h. */
5358_ACEOF
5359cat confdefs.h >>conftest.$ac_ext
5360cat >>conftest.$ac_ext <<_ACEOF
5361/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005362
5363int
5364main ()
5365{
5366int some_variable = 0;
5367 ;
5368 return 0;
5369}
5370_ACEOF
5371rm -f conftest.$ac_objext
5372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -s conftest.$ac_objext'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 (eval $ac_try) 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 # The compiler can only warn and ignore the option if not recognized
5384 # So say no if there are warnings
5385 if test -s conftest.err; then
5386 compiler_rtti_exceptions=no
5387 else
5388 compiler_rtti_exceptions=yes
5389 fi
5390
5391else
5392 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00005393sed 's/^/| /' conftest.$ac_ext >&5
5394
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005395fi
5396rm -f conftest.$ac_objext conftest.$ac_ext
5397 CFLAGS="$save_CFLAGS"
5398 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5399echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5400
5401 if test "$compiler_rtti_exceptions" = "yes"; then
5402 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5403 else
5404 no_builtin_flag=' -fno-builtin'
5405 fi
5406fi
5407
5408# See if the linker supports building shared libraries.
5409echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5410echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5411
5412allow_undefined_flag=
5413no_undefined_flag=
5414need_lib_prefix=unknown
5415need_version=unknown
5416# when you set need_version to no, make sure it does not cause -set_version
5417# flags to be left without arguments
5418archive_cmds=
5419archive_expsym_cmds=
5420old_archive_from_new_cmds=
5421old_archive_from_expsyms_cmds=
5422export_dynamic_flag_spec=
5423whole_archive_flag_spec=
5424thread_safe_flag_spec=
5425hardcode_into_libs=no
5426hardcode_libdir_flag_spec=
5427hardcode_libdir_separator=
5428hardcode_direct=no
5429hardcode_minus_L=no
5430hardcode_shlibpath_var=unsupported
5431runpath_var=
5432link_all_deplibs=unknown
5433always_export_symbols=no
5434export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5435# include_expsyms should be a list of space-separated symbols to be *always*
5436# included in the symbol list
5437include_expsyms=
5438# exclude_expsyms can be an egrep regular expression of symbols to exclude
5439# it will be wrapped by ` (' and `)$', so one must not match beginning or
5440# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5441# as well as any symbol that contains `d'.
5442exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5443# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5444# platforms (ab)use it in PIC code, but their linkers get confused if
5445# the symbol is explicitly referenced. Since portable code cannot
5446# rely on this symbol name, it's probably fine to never include it in
5447# preloaded symbol tables.
5448extract_expsyms_cmds=
5449
5450case $host_os in
5451cygwin* | mingw* | pw32*)
5452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5453 # When not using gcc, we currently assume that we are using
5454 # Microsoft Visual C++.
5455 if test "$GCC" != yes; then
5456 with_gnu_ld=no
5457 fi
5458 ;;
5459openbsd*)
5460 with_gnu_ld=no
5461 ;;
5462esac
5463
5464ld_shlibs=yes
5465if test "$with_gnu_ld" = yes; then
5466 # If archive_cmds runs LD, not CC, wlarc should be empty
5467 wlarc='${wl}'
5468
5469 # See if GNU ld supports shared libraries.
5470 case $host_os in
5471 aix3* | aix4* | aix5*)
5472 # On AIX, the GNU linker is very broken
5473 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5474 ld_shlibs=no
5475 cat <<EOF 1>&2
5476
5477*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5478*** to be unable to reliably create shared libraries on AIX.
5479*** Therefore, libtool is disabling shared libraries support. If you
5480*** really care for shared libraries, you may want to modify your PATH
5481*** so that a non-GNU linker is found, and then restart.
5482
5483EOF
5484 ;;
5485
5486 amigaos*)
5487 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5488 hardcode_libdir_flag_spec='-L$libdir'
5489 hardcode_minus_L=yes
5490
5491 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5492 # that the semantics of dynamic libraries on AmigaOS, at least up
5493 # to version 4, is to share data among multiple programs linked
5494 # with the same dynamic library. Since this doesn't match the
5495 # behavior of shared libraries on other platforms, we can use
5496 # them.
5497 ld_shlibs=no
5498 ;;
5499
5500 beos*)
5501 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5502 allow_undefined_flag=unsupported
5503 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5504 # support --undefined. This deserves some investigation. FIXME
5505 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5506 else
5507 ld_shlibs=no
5508 fi
5509 ;;
5510
5511 cygwin* | mingw* | pw32*)
5512 # hardcode_libdir_flag_spec is actually meaningless, as there is
5513 # no search path for DLLs.
5514 hardcode_libdir_flag_spec='-L$libdir'
5515 allow_undefined_flag=unsupported
5516 always_export_symbols=yes
5517
5518 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5519 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5520 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5521 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5522 else $CC -o impgen impgen.c ; fi)~
5523 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5524
5525 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5526
5527 # cygwin and mingw dlls have different entry points and sets of symbols
5528 # to exclude.
5529 # FIXME: what about values for MSVC?
5530 dll_entry=__cygwin_dll_entry@12
5531 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5532 case $host_os in
5533 mingw*)
5534 # mingw values
5535 dll_entry=_DllMainCRTStartup@12
5536 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5537 ;;
5538 esac
5539
5540 # mingw and cygwin differ, and it's simplest to just exclude the union
5541 # of the two symbol sets.
5542 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5543
5544 # recent cygwin and mingw systems supply a stub DllMain which the user
5545 # can override, but on older systems we have to supply one (in ltdll.c)
5546 if test "x$lt_cv_need_dllmain" = "xyes"; then
5547 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5548 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5549 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5550 else
5551 ltdll_obj=
5552 ltdll_cmds=
5553 fi
5554
5555 # Extract the symbol export list from an `--export-all' def file,
5556 # then regenerate the def file from the symbol export list, so that
5557 # the compiled dll only exports the symbol export list.
5558 # Be careful not to strip the DATA tag left be newer dlltools.
5559 export_symbols_cmds="$ltdll_cmds"'
5560 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5561 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5562
5563 # If the export-symbols file already is a .def file (1st line
5564 # is EXPORTS), use it as is.
5565 # If DATA tags from a recent dlltool are present, honour them!
5566 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5567 cp $export_symbols $output_objdir/$soname-def;
5568 else
5569 echo EXPORTS > $output_objdir/$soname-def;
5570 _lt_hint=1;
5571 cat $export_symbols | while read symbol; do
5572 set dummy \$symbol;
5573 case \$# in
5574 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5575 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5576 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5577 esac;
5578 _lt_hint=`expr 1 + \$_lt_hint`;
5579 done;
5580 fi~
5581 '"$ltdll_cmds"'
5582 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5583 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5584 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5585 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5586 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5587 ;;
5588
5589 netbsd*)
5590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5591 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5592 wlarc=
5593 else
5594 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5595 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5596 fi
5597 ;;
5598
5599 solaris* | sysv5*)
5600 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5601 ld_shlibs=no
5602 cat <<EOF 1>&2
5603
5604*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5605*** create shared libraries on Solaris systems. Therefore, libtool
5606*** is disabling shared libraries support. We urge you to upgrade GNU
5607*** binutils to release 2.9.1 or newer. Another option is to modify
5608*** your PATH or compiler configuration so that the native linker is
5609*** used, and then restart.
5610
5611EOF
5612 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5614 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5615 else
5616 ld_shlibs=no
5617 fi
5618 ;;
5619
5620 sunos4*)
5621 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5622 wlarc=
5623 hardcode_direct=yes
5624 hardcode_shlibpath_var=no
5625 ;;
5626
5627 *)
5628 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5631 else
5632 ld_shlibs=no
5633 fi
5634 ;;
5635 esac
5636
5637 if test "$ld_shlibs" = yes; then
5638 runpath_var=LD_RUN_PATH
5639 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5640 export_dynamic_flag_spec='${wl}--export-dynamic'
5641 case $host_os in
5642 cygwin* | mingw* | pw32*)
5643 # dlltool doesn't understand --whole-archive et. al.
5644 whole_archive_flag_spec=
5645 ;;
5646 *)
5647 # ancient GNU ld didn't support --whole-archive et. al.
5648 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5650 else
5651 whole_archive_flag_spec=
5652 fi
5653 ;;
5654 esac
5655 fi
5656else
5657 # PORTME fill in a description of your system's linker (not GNU ld)
5658 case $host_os in
5659 aix3*)
5660 allow_undefined_flag=unsupported
5661 always_export_symbols=yes
5662 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5663 # Note: this linker hardcodes the directories in LIBPATH if there
5664 # are no directories specified by -L.
5665 hardcode_minus_L=yes
5666 if test "$GCC" = yes && test -z "$link_static_flag"; then
5667 # Neither direct hardcoding nor static linking is supported with a
5668 # broken collect2.
5669 hardcode_direct=unsupported
5670 fi
5671 ;;
5672
5673 aix4* | aix5*)
5674 if test "$host_cpu" = ia64; then
5675 # On IA64, the linker does run time linking by default, so we don't
5676 # have to do anything special.
5677 aix_use_runtimelinking=no
5678 exp_sym_flag='-Bexport'
5679 no_entry_flag=""
5680 else
5681 aix_use_runtimelinking=no
5682
5683 # Test if we are trying to use run time linking or normal
5684 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5685 # need to do runtime linking.
5686 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5687 for ld_flag in $LDFLAGS; do
5688 case $ld_flag in
5689 *-brtl*)
5690 aix_use_runtimelinking=yes
5691 break
5692 ;;
5693 esac
5694 done
5695 esac
5696
5697 exp_sym_flag='-bexport'
5698 no_entry_flag='-bnoentry'
5699 fi
5700
5701 # When large executables or shared objects are built, AIX ld can
5702 # have problems creating the table of contents. If linking a library
5703 # or program results in "error TOC overflow" add -mminimal-toc to
5704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5706
5707 hardcode_direct=yes
5708 archive_cmds=''
5709 hardcode_libdir_separator=':'
5710 if test "$GCC" = yes; then
5711 case $host_os in aix4.[012]|aix4.[012].*)
5712 collect2name=`${CC} -print-prog-name=collect2`
5713 if test -f "$collect2name" && \
5714 strings "$collect2name" | grep resolve_lib_name >/dev/null
5715 then
5716 # We have reworked collect2
5717 hardcode_direct=yes
5718 else
5719 # We have old collect2
5720 hardcode_direct=unsupported
5721 # It fails to find uninstalled libraries when the uninstalled
5722 # path is not listed in the libpath. Setting hardcode_minus_L
5723 # to unsupported forces relinking
5724 hardcode_minus_L=yes
5725 hardcode_libdir_flag_spec='-L$libdir'
5726 hardcode_libdir_separator=
5727 fi
5728 esac
5729
5730 shared_flag='-shared'
5731 else
5732 # not using gcc
5733 if test "$host_cpu" = ia64; then
5734 shared_flag='${wl}-G'
5735 else
5736 if test "$aix_use_runtimelinking" = yes; then
5737 shared_flag='${wl}-G'
5738 else
5739 shared_flag='${wl}-bM:SRE'
5740 fi
5741 fi
5742 fi
5743
5744 # It seems that -bexpall can do strange things, so it is better to
5745 # generate a list of symbols to export.
5746 always_export_symbols=yes
5747 if test "$aix_use_runtimelinking" = yes; then
5748 # Warning - without using the other runtime loading flags (-brtl),
5749 # -berok will link without error, but may produce a broken library.
5750 allow_undefined_flag='-berok'
5751 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5752 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5753 else
5754 if test "$host_cpu" = ia64; then
5755 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5756 allow_undefined_flag="-z nodefs"
5757 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5758 else
5759 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5760 # Warning - without using the other run time loading flags,
5761 # -berok will link without error, but may produce a broken library.
5762 allow_undefined_flag='${wl}-berok'
5763 # This is a bit strange, but is similar to how AIX traditionally builds
5764 # it's shared libraries.
5765 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5766 fi
5767 fi
5768 ;;
5769
5770 amigaos*)
5771 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5772 hardcode_libdir_flag_spec='-L$libdir'
5773 hardcode_minus_L=yes
5774 # see comment about different semantics on the GNU ld section
5775 ld_shlibs=no
5776 ;;
5777
5778 cygwin* | mingw* | pw32*)
5779 # When not using gcc, we currently assume that we are using
5780 # Microsoft Visual C++.
5781 # hardcode_libdir_flag_spec is actually meaningless, as there is
5782 # no search path for DLLs.
5783 hardcode_libdir_flag_spec=' '
5784 allow_undefined_flag=unsupported
5785 # Tell ltmain to make .lib files, not .a files.
5786 libext=lib
5787 # FIXME: Setting linknames here is a bad hack.
5788 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5789 # The linker will automatically build a .lib file if we build a DLL.
5790 old_archive_from_new_cmds='true'
5791 # FIXME: Should let the user specify the lib program.
5792 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5793 fix_srcfile_path='`cygpath -w "$srcfile"`'
5794 ;;
5795
5796 darwin* | rhapsody*)
5797 case "$host_os" in
5798 rhapsody* | darwin1.[012])
5799 allow_undefined_flag='-undefined suppress'
5800 ;;
5801 *) # Darwin 1.3 on
5802 allow_undefined_flag='-flat_namespace -undefined suppress'
5803 ;;
5804 esac
5805 # FIXME: Relying on posixy $() will cause problems for
5806 # cross-compilation, but unfortunately the echo tests do not
5807 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5808 # `"' quotes if we put them in here... so don't!
5809 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5810 # We need to add '_' to the symbols in $export_symbols first
5811 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5812 hardcode_direct=yes
5813 hardcode_shlibpath_var=no
5814 whole_archive_flag_spec='-all_load $convenience'
5815 ;;
5816
5817 freebsd1*)
5818 ld_shlibs=no
5819 ;;
5820
5821 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5822 # support. Future versions do this automatically, but an explicit c++rt0.o
5823 # does not break anything, and helps significantly (at the cost of a little
5824 # extra space).
5825 freebsd2.2*)
5826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5827 hardcode_libdir_flag_spec='-R$libdir'
5828 hardcode_direct=yes
5829 hardcode_shlibpath_var=no
5830 ;;
5831
5832 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5833 freebsd2*)
5834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5835 hardcode_direct=yes
5836 hardcode_minus_L=yes
5837 hardcode_shlibpath_var=no
5838 ;;
5839
5840 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5841 freebsd*)
5842 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5843 hardcode_libdir_flag_spec='-R$libdir'
5844 hardcode_direct=yes
5845 hardcode_shlibpath_var=no
5846 ;;
5847
5848 hpux9* | hpux10* | hpux11*)
5849 case $host_os in
5850 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5851 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5852 esac
5853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5854 hardcode_libdir_separator=:
5855 hardcode_direct=yes
5856 hardcode_minus_L=yes # Not in the search PATH, but as the default
5857 # location of the library.
5858 export_dynamic_flag_spec='${wl}-E'
5859 ;;
5860
5861 irix5* | irix6* | nonstopux*)
5862 if test "$GCC" = yes; then
5863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5865 else
5866 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5867 hardcode_libdir_flag_spec='-rpath $libdir'
5868 fi
5869 hardcode_libdir_separator=:
5870 link_all_deplibs=yes
5871 ;;
5872
5873 netbsd*)
5874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5876 else
5877 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5878 fi
5879 hardcode_libdir_flag_spec='-R$libdir'
5880 hardcode_direct=yes
5881 hardcode_shlibpath_var=no
5882 ;;
5883
5884 newsos6)
5885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5886 hardcode_direct=yes
5887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5888 hardcode_libdir_separator=:
5889 hardcode_shlibpath_var=no
5890 ;;
5891
5892 openbsd*)
5893 hardcode_direct=yes
5894 hardcode_shlibpath_var=no
5895 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5896 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5898 export_dynamic_flag_spec='${wl}-E'
5899 else
5900 case "$host_os" in
5901 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5903 hardcode_libdir_flag_spec='-R$libdir'
5904 ;;
5905 *)
5906 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5908 ;;
5909 esac
5910 fi
5911 ;;
5912
5913 os2*)
5914 hardcode_libdir_flag_spec='-L$libdir'
5915 hardcode_minus_L=yes
5916 allow_undefined_flag=unsupported
5917 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5918 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5919 ;;
5920
5921 osf3*)
5922 if test "$GCC" = yes; then
5923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5924 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5925 else
5926 allow_undefined_flag=' -expect_unresolved \*'
5927 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5928 fi
5929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5930 hardcode_libdir_separator=:
5931 ;;
5932
5933 osf4* | osf5*) # as osf3* with the addition of -msym flag
5934 if test "$GCC" = yes; then
5935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5936 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5938 else
5939 allow_undefined_flag=' -expect_unresolved \*'
5940 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5941 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5942 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5943
5944 #Both c and cxx compiler support -rpath directly
5945 hardcode_libdir_flag_spec='-rpath $libdir'
5946 fi
5947 hardcode_libdir_separator=:
5948 ;;
5949
5950 sco3.2v5*)
5951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5952 hardcode_shlibpath_var=no
5953 runpath_var=LD_RUN_PATH
5954 hardcode_runpath_var=yes
5955 export_dynamic_flag_spec='${wl}-Bexport'
5956 ;;
5957
5958 solaris*)
5959 # gcc --version < 3.0 without binutils cannot create self contained
5960 # shared libraries reliably, requiring libgcc.a to resolve some of
5961 # the object symbols generated in some cases. Libraries that use
5962 # assert need libgcc.a to resolve __eprintf, for example. Linking
5963 # a copy of libgcc.a into every shared library to guarantee resolving
5964 # such symbols causes other problems: According to Tim Van Holder
5965 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5966 # (to the application) exception stack for one thing.
5967 no_undefined_flag=' -z defs'
5968 if test "$GCC" = yes; then
5969 case `$CC --version 2>/dev/null` in
5970 [12].*)
5971 cat <<EOF 1>&2
5972
5973*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5974*** create self contained shared libraries on Solaris systems, without
5975*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5976*** -no-undefined support, which will at least allow you to build shared
5977*** libraries. However, you may find that when you link such libraries
5978*** into an application without using GCC, you have to manually add
5979*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5980*** upgrade to a newer version of GCC. Another option is to rebuild your
5981*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5982
5983EOF
5984 no_undefined_flag=
5985 ;;
5986 esac
5987 fi
5988 # $CC -shared without GNU ld will not create a library from C++
5989 # object files and a static libstdc++, better avoid it by now
5990 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5991 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5992 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5993 hardcode_libdir_flag_spec='-R$libdir'
5994 hardcode_shlibpath_var=no
5995 case $host_os in
5996 solaris2.[0-5] | solaris2.[0-5].*) ;;
5997 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5998 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5999 esac
6000 link_all_deplibs=yes
6001 ;;
6002
6003 sunos4*)
6004 if test "x$host_vendor" = xsequent; then
6005 # Use $CC to link under sequent, because it throws in some extra .o
6006 # files that make .init and .fini sections work.
6007 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6008 else
6009 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6010 fi
6011 hardcode_libdir_flag_spec='-L$libdir'
6012 hardcode_direct=yes
6013 hardcode_minus_L=yes
6014 hardcode_shlibpath_var=no
6015 ;;
6016
6017 sysv4)
6018 case $host_vendor in
6019 sni)
6020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6021 hardcode_direct=yes # is this really true???
6022 ;;
6023 siemens)
6024 ## LD is ld it makes a PLAMLIB
6025 ## CC just makes a GrossModule.
6026 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6027 reload_cmds='$CC -r -o $output$reload_objs'
6028 hardcode_direct=no
6029 ;;
6030 motorola)
6031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6032 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6033 ;;
6034 esac
6035 runpath_var='LD_RUN_PATH'
6036 hardcode_shlibpath_var=no
6037 ;;
6038
6039 sysv4.3*)
6040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6041 hardcode_shlibpath_var=no
6042 export_dynamic_flag_spec='-Bexport'
6043 ;;
6044
6045 sysv5*)
6046 no_undefined_flag=' -z text'
6047 # $CC -shared without GNU ld will not create a library from C++
6048 # object files and a static libstdc++, better avoid it by now
6049 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6050 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6051 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6052 hardcode_libdir_flag_spec=
6053 hardcode_shlibpath_var=no
6054 runpath_var='LD_RUN_PATH'
6055 ;;
6056
6057 uts4*)
6058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6059 hardcode_libdir_flag_spec='-L$libdir'
6060 hardcode_shlibpath_var=no
6061 ;;
6062
6063 dgux*)
6064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6065 hardcode_libdir_flag_spec='-L$libdir'
6066 hardcode_shlibpath_var=no
6067 ;;
6068
6069 sysv4*MP*)
6070 if test -d /usr/nec; then
6071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6072 hardcode_shlibpath_var=no
6073 runpath_var=LD_RUN_PATH
6074 hardcode_runpath_var=yes
6075 ld_shlibs=yes
6076 fi
6077 ;;
6078
6079 sysv4.2uw2*)
6080 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6081 hardcode_direct=yes
6082 hardcode_minus_L=no
6083 hardcode_shlibpath_var=no
6084 hardcode_runpath_var=yes
6085 runpath_var=LD_RUN_PATH
6086 ;;
6087
6088 sysv5uw7* | unixware7*)
6089 no_undefined_flag='${wl}-z ${wl}text'
6090 if test "$GCC" = yes; then
6091 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6092 else
6093 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6094 fi
6095 runpath_var='LD_RUN_PATH'
6096 hardcode_shlibpath_var=no
6097 ;;
6098
6099 *)
6100 ld_shlibs=no
6101 ;;
6102 esac
6103fi
6104echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6105echo "${ECHO_T}$ld_shlibs" >&6
6106test "$ld_shlibs" = no && can_build_shared=no
6107
6108# Check hardcoding attributes.
6109echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6110echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6111hardcode_action=
6112if test -n "$hardcode_libdir_flag_spec" || \
6113 test -n "$runpath_var"; then
6114
6115 # We can hardcode non-existant directories.
6116 if test "$hardcode_direct" != no &&
6117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6118 # have to relink, otherwise we might link with an installed library
6119 # when we should be linking with a yet-to-be-installed one
6120 ## test "$hardcode_shlibpath_var" != no &&
6121 test "$hardcode_minus_L" != no; then
6122 # Linking always hardcodes the temporary library directory.
6123 hardcode_action=relink
6124 else
6125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6126 hardcode_action=immediate
6127 fi
6128else
6129 # We cannot hardcode anything, or else we can only hardcode existing
6130 # directories.
6131 hardcode_action=unsupported
6132fi
6133echo "$as_me:$LINENO: result: $hardcode_action" >&5
6134echo "${ECHO_T}$hardcode_action" >&6
6135
6136striplib=
6137old_striplib=
6138echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6139echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6140if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6141 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6142 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6143 echo "$as_me:$LINENO: result: yes" >&5
6144echo "${ECHO_T}yes" >&6
6145else
6146 echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6
6148fi
6149
6150reload_cmds='$LD$reload_flag -o $output$reload_objs'
6151test -z "$deplibs_check_method" && deplibs_check_method=unknown
6152
6153# PORTME Fill in your ld.so characteristics
6154echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6155echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6156library_names_spec=
6157libname_spec='lib$name'
6158soname_spec=
6159postinstall_cmds=
6160postuninstall_cmds=
6161finish_cmds=
6162finish_eval=
6163shlibpath_var=
6164shlibpath_overrides_runpath=unknown
6165version_type=none
6166dynamic_linker="$host_os ld.so"
6167sys_lib_dlsearch_path_spec="/lib /usr/lib"
6168sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6169
6170case $host_os in
6171aix3*)
6172 version_type=linux
6173 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6174 shlibpath_var=LIBPATH
6175
6176 # AIX has no versioning support, so we append a major version to the name.
6177 soname_spec='${libname}${release}.so$major'
6178 ;;
6179
6180aix4* | aix5*)
6181 version_type=linux
6182 need_lib_prefix=no
6183 need_version=no
6184 hardcode_into_libs=yes
6185 if test "$host_cpu" = ia64; then
6186 # AIX 5 supports IA64
6187 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6188 shlibpath_var=LD_LIBRARY_PATH
6189 else
6190 # With GCC up to 2.95.x, collect2 would create an import file
6191 # for dependence libraries. The import file would start with
6192 # the line `#! .'. This would cause the generated library to
6193 # depend on `.', always an invalid library. This was fixed in
6194 # development snapshots of GCC prior to 3.0.
6195 case $host_os in
6196 aix4 | aix4.[01] | aix4.[01].*)
6197 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6198 echo ' yes '
6199 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6200 :
6201 else
6202 can_build_shared=no
6203 fi
6204 ;;
6205 esac
6206 # AIX (on Power*) has no versioning support, so currently we can
6207 # not hardcode correct soname into executable. Probably we can
6208 # add versioning support to collect2, so additional links can
6209 # be useful in future.
6210 if test "$aix_use_runtimelinking" = yes; then
6211 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6212 # instead of lib<name>.a to let people know that these are not
6213 # typical AIX shared libraries.
6214 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6215 else
6216 # We preserve .a as extension for shared libraries through AIX4.2
6217 # and later when we are not doing run time linking.
6218 library_names_spec='${libname}${release}.a $libname.a'
6219 soname_spec='${libname}${release}.so$major'
6220 fi
6221 shlibpath_var=LIBPATH
6222 fi
6223 hardcode_into_libs=yes
6224 ;;
6225
6226amigaos*)
6227 library_names_spec='$libname.ixlibrary $libname.a'
6228 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6229 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6230 ;;
6231
6232beos*)
6233 library_names_spec='${libname}.so'
6234 dynamic_linker="$host_os ld.so"
6235 shlibpath_var=LIBRARY_PATH
6236 ;;
6237
6238bsdi4*)
6239 version_type=linux
6240 need_version=no
6241 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6242 soname_spec='${libname}${release}.so$major'
6243 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6244 shlibpath_var=LD_LIBRARY_PATH
6245 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6246 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6247 export_dynamic_flag_spec=-rdynamic
6248 # the default ld.so.conf also contains /usr/contrib/lib and
6249 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6250 # libtool to hard-code these into programs
6251 ;;
6252
6253cygwin* | mingw* | pw32*)
6254 version_type=windows
6255 need_version=no
6256 need_lib_prefix=no
6257 case $GCC,$host_os in
6258 yes,cygwin*)
6259 library_names_spec='$libname.dll.a'
6260 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6261 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6262 dldir=$destdir/`dirname \$dlpath`~
6263 test -d \$dldir || mkdir -p \$dldir~
6264 $install_prog .libs/$dlname \$dldir/$dlname'
6265 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6266 dlpath=$dir/\$dldll~
6267 $rm \$dlpath'
6268 ;;
6269 yes,mingw*)
6270 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6272 ;;
6273 yes,pw32*)
6274 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6275 ;;
6276 *)
6277 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6278 ;;
6279 esac
6280 dynamic_linker='Win32 ld.exe'
6281 # FIXME: first we should search . and the directory the executable is in
6282 shlibpath_var=PATH
6283 ;;
6284
6285darwin* | rhapsody*)
6286 dynamic_linker="$host_os dyld"
6287 version_type=darwin
6288 need_lib_prefix=no
6289 need_version=no
6290 # FIXME: Relying on posixy $() will cause problems for
6291 # cross-compilation, but unfortunately the echo tests do not
6292 # yet detect zsh echo's removal of \ escapes.
6293 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6294 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6295 shlibpath_overrides_runpath=yes
6296 shlibpath_var=DYLD_LIBRARY_PATH
6297 ;;
6298
6299freebsd1*)
6300 dynamic_linker=no
6301 ;;
6302
6303freebsd*-gnu*)
6304 version_type=linux
6305 need_lib_prefix=no
6306 need_version=no
6307 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6308 soname_spec='${libname}${release}.so$major'
6309 shlibpath_var=LD_LIBRARY_PATH
6310 shlibpath_overrides_runpath=no
6311 hardcode_into_libs=yes
6312 dynamic_linker='GNU/FreeBSD ld.so'
6313 ;;
6314
6315freebsd*)
6316 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6317 version_type=freebsd-$objformat
6318 case $version_type in
6319 freebsd-elf*)
6320 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6321 need_version=no
6322 need_lib_prefix=no
6323 ;;
6324 freebsd-*)
6325 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6326 need_version=yes
6327 ;;
6328 esac
6329 shlibpath_var=LD_LIBRARY_PATH
6330 case $host_os in
6331 freebsd2*)
6332 shlibpath_overrides_runpath=yes
6333 ;;
6334 *)
6335 shlibpath_overrides_runpath=no
6336 hardcode_into_libs=yes
6337 ;;
6338 esac
6339 ;;
6340
6341gnu*)
6342 version_type=linux
6343 need_lib_prefix=no
6344 need_version=no
6345 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6346 soname_spec='${libname}${release}.so$major'
6347 shlibpath_var=LD_LIBRARY_PATH
6348 hardcode_into_libs=yes
6349 ;;
6350
6351hpux9* | hpux10* | hpux11*)
6352 # Give a soname corresponding to the major version so that dld.sl refuses to
6353 # link against other versions.
6354 dynamic_linker="$host_os dld.sl"
6355 version_type=sunos
6356 need_lib_prefix=no
6357 need_version=no
6358 shlibpath_var=SHLIB_PATH
6359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6360 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6361 soname_spec='${libname}${release}.sl$major'
6362 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6363 postinstall_cmds='chmod 555 $lib'
6364 ;;
6365
6366irix5* | irix6* | nonstopux*)
6367 case $host_os in
6368 nonstopux*) version_type=nonstopux ;;
6369 *) version_type=irix ;;
6370 esac
6371 need_lib_prefix=no
6372 need_version=no
6373 soname_spec='${libname}${release}.so$major'
6374 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6375 case $host_os in
6376 irix5* | nonstopux*)
6377 libsuff= shlibsuff=
6378 ;;
6379 *)
6380 case $LD in # libtool.m4 will add one of these switches to LD
6381 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6382 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6383 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6384 *) libsuff= shlibsuff= libmagic=never-match;;
6385 esac
6386 ;;
6387 esac
6388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6389 shlibpath_overrides_runpath=no
6390 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6391 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6392 ;;
6393
6394# No shared lib support for Linux oldld, aout, or coff.
6395linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6396 dynamic_linker=no
6397 ;;
6398
6399# This must be Linux ELF.
6400linux-gnu*)
6401 version_type=linux
6402 need_lib_prefix=no
6403 need_version=no
6404 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6405 soname_spec='${libname}${release}.so$major'
6406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6407 shlibpath_var=LD_LIBRARY_PATH
6408 shlibpath_overrides_runpath=no
6409 # This implies no fast_install, which is unacceptable.
6410 # Some rework will be needed to allow for fast_install
6411 # before this can be enabled.
6412 hardcode_into_libs=yes
6413
6414 # We used to test for /lib/ld.so.1 and disable shared libraries on
6415 # powerpc, because MkLinux only supported shared libraries with the
6416 # GNU dynamic linker. Since this was broken with cross compilers,
6417 # most powerpc-linux boxes support dynamic linking these days and
6418 # people can always --disable-shared, the test was removed, and we
6419 # assume the GNU/Linux dynamic linker is in use.
6420 dynamic_linker='GNU/Linux ld.so'
6421 ;;
6422
6423netbsd*)
6424 version_type=sunos
6425 need_lib_prefix=no
6426 need_version=no
6427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6428 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6430 dynamic_linker='NetBSD (a.out) ld.so'
6431 else
6432 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6433 soname_spec='${libname}${release}.so$major'
6434 dynamic_linker='NetBSD ld.elf_so'
6435 fi
6436 shlibpath_var=LD_LIBRARY_PATH
6437 shlibpath_overrides_runpath=yes
6438 hardcode_into_libs=yes
6439 ;;
6440
6441newsos6)
6442 version_type=linux
6443 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6444 shlibpath_var=LD_LIBRARY_PATH
6445 shlibpath_overrides_runpath=yes
6446 ;;
6447
6448openbsd*)
6449 version_type=sunos
6450 need_lib_prefix=no
6451 need_version=no
6452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6453 case "$host_os" in
6454 openbsd2.[89] | openbsd2.[89].*)
6455 shlibpath_overrides_runpath=no
6456 ;;
6457 *)
6458 shlibpath_overrides_runpath=yes
6459 ;;
6460 esac
6461 else
6462 shlibpath_overrides_runpath=yes
6463 fi
6464 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6466 shlibpath_var=LD_LIBRARY_PATH
6467 ;;
6468
6469os2*)
6470 libname_spec='$name'
6471 need_lib_prefix=no
6472 library_names_spec='$libname.dll $libname.a'
6473 dynamic_linker='OS/2 ld.exe'
6474 shlibpath_var=LIBPATH
6475 ;;
6476
6477osf3* | osf4* | osf5*)
6478 version_type=osf
6479 need_version=no
6480 need_lib_prefix=no
6481 soname_spec='${libname}${release}.so$major'
6482 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6483 shlibpath_var=LD_LIBRARY_PATH
6484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6485 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6486 hardcode_into_libs=yes
6487 ;;
6488
6489sco3.2v5*)
6490 version_type=osf
6491 soname_spec='${libname}${release}.so$major'
6492 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6493 shlibpath_var=LD_LIBRARY_PATH
6494 ;;
6495
6496solaris*)
6497 version_type=linux
6498 need_lib_prefix=no
6499 need_version=no
6500 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6501 soname_spec='${libname}${release}.so$major'
6502 shlibpath_var=LD_LIBRARY_PATH
6503 shlibpath_overrides_runpath=yes
6504 hardcode_into_libs=yes
6505 # ldd complains unless libraries are executable
6506 postinstall_cmds='chmod +x $lib'
6507 ;;
6508
6509sunos4*)
6510 version_type=sunos
6511 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6513 shlibpath_var=LD_LIBRARY_PATH
6514 shlibpath_overrides_runpath=yes
6515 if test "$with_gnu_ld" = yes; then
6516 need_lib_prefix=no
6517 fi
6518 need_version=yes
6519 ;;
6520
6521sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6522 version_type=linux
6523 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6524 soname_spec='${libname}${release}.so$major'
6525 shlibpath_var=LD_LIBRARY_PATH
6526 case $host_vendor in
6527 sni)
6528 shlibpath_overrides_runpath=no
6529 need_lib_prefix=no
6530 export_dynamic_flag_spec='${wl}-Blargedynsym'
6531 runpath_var=LD_RUN_PATH
6532 ;;
6533 siemens)
6534 need_lib_prefix=no
6535 ;;
6536 motorola)
6537 need_lib_prefix=no
6538 need_version=no
6539 shlibpath_overrides_runpath=no
6540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6541 ;;
6542 esac
6543 ;;
6544
6545uts4*)
6546 version_type=linux
6547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6548 soname_spec='${libname}${release}.so$major'
6549 shlibpath_var=LD_LIBRARY_PATH
6550 ;;
6551
6552dgux*)
6553 version_type=linux
6554 need_lib_prefix=no
6555 need_version=no
6556 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6557 soname_spec='${libname}${release}.so$major'
6558 shlibpath_var=LD_LIBRARY_PATH
6559 ;;
6560
6561sysv4*MP*)
6562 if test -d /usr/nec ;then
6563 version_type=linux
6564 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6565 soname_spec='$libname.so.$major'
6566 shlibpath_var=LD_LIBRARY_PATH
6567 fi
6568 ;;
6569
6570*)
6571 dynamic_linker=no
6572 ;;
6573esac
6574echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6575echo "${ECHO_T}$dynamic_linker" >&6
6576test "$dynamic_linker" = no && can_build_shared=no
6577
6578# Report the final consequences.
6579echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6580echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6581echo "$as_me:$LINENO: result: $can_build_shared" >&5
6582echo "${ECHO_T}$can_build_shared" >&6
6583
6584echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6585echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6586test "$can_build_shared" = "no" && enable_shared=no
6587
6588# On AIX, shared libraries and static libraries use the same namespace, and
6589# are all built from PIC.
6590case "$host_os" in
6591aix3*)
6592 test "$enable_shared" = yes && enable_static=no
6593 if test -n "$RANLIB"; then
6594 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6595 postinstall_cmds='$RANLIB $lib'
6596 fi
6597 ;;
6598
6599aix4*)
6600 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6601 test "$enable_shared" = yes && enable_static=no
6602 fi
6603 ;;
6604esac
6605echo "$as_me:$LINENO: result: $enable_shared" >&5
6606echo "${ECHO_T}$enable_shared" >&6
6607
6608echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6609echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6610# Make sure either enable_shared or enable_static is yes.
6611test "$enable_shared" = yes || enable_static=yes
6612echo "$as_me:$LINENO: result: $enable_static" >&5
6613echo "${ECHO_T}$enable_static" >&6
6614
6615if test "$hardcode_action" = relink; then
6616 # Fast installation is not supported
6617 enable_fast_install=no
6618elif test "$shlibpath_overrides_runpath" = yes ||
6619 test "$enable_shared" = no; then
6620 # Fast installation is not necessary
6621 enable_fast_install=needless
6622fi
6623
6624variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6625if test "$GCC" = yes; then
6626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6627fi
6628
6629if test "x$enable_dlopen" != xyes; then
6630 enable_dlopen=unknown
6631 enable_dlopen_self=unknown
6632 enable_dlopen_self_static=unknown
6633else
6634 lt_cv_dlopen=no
6635 lt_cv_dlopen_libs=
6636
6637 case $host_os in
6638 beos*)
6639 lt_cv_dlopen="load_add_on"
6640 lt_cv_dlopen_libs=
6641 lt_cv_dlopen_self=yes
6642 ;;
6643
6644 cygwin* | mingw* | pw32*)
6645 lt_cv_dlopen="LoadLibrary"
6646 lt_cv_dlopen_libs=
6647 ;;
6648
6649 *)
6650 echo "$as_me:$LINENO: checking for shl_load" >&5
6651echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6652if test "${ac_cv_func_shl_load+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654else
6655 cat >conftest.$ac_ext <<_ACEOF
6656#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006657/* confdefs.h. */
6658_ACEOF
6659cat confdefs.h >>conftest.$ac_ext
6660cat >>conftest.$ac_ext <<_ACEOF
6661/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006662/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006663 which can conflict with char shl_load (); below.
6664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6665 <limits.h> exists even on freestanding compilers. */
6666#ifdef __STDC__
6667# include <limits.h>
6668#else
6669# include <assert.h>
6670#endif
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006671/* Override any gcc2 internal prototype to avoid an error. */
6672#ifdef __cplusplus
6673extern "C"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006674{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006675#endif
6676/* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6678char shl_load ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006679/* The GNU C library defines this for functions which it implements
6680 to always fail with ENOSYS. Some functions are actually named
6681 something starting with __ and the normal name is an alias. */
6682#if defined (__stub_shl_load) || defined (__stub___shl_load)
6683choke me
6684#else
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006685char (*f) () = shl_load;
6686#endif
6687#ifdef __cplusplus
6688}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006689#endif
6690
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006691int
6692main ()
6693{
6694return f != shl_load;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006695 ;
6696 return 0;
6697}
6698_ACEOF
6699rm -f conftest.$ac_objext conftest$ac_exeext
6700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701 (eval $ac_link) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest$ac_exeext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_func_shl_load=yes
6712else
6713 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006714sed 's/^/| /' conftest.$ac_ext >&5
6715
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006716ac_cv_func_shl_load=no
6717fi
6718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6719fi
6720echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6721echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6722if test $ac_cv_func_shl_load = yes; then
6723 lt_cv_dlopen="shl_load"
6724else
6725 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6726echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6727if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729else
6730 ac_check_lib_save_LIBS=$LIBS
6731LIBS="-ldld $LIBS"
6732cat >conftest.$ac_ext <<_ACEOF
6733#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006734/* confdefs.h. */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006739
6740/* Override any gcc2 internal prototype to avoid an error. */
6741#ifdef __cplusplus
6742extern "C"
6743#endif
6744/* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6746char shl_load ();
6747int
6748main ()
6749{
6750shl_load ();
6751 ;
6752 return 0;
6753}
6754_ACEOF
6755rm -f conftest.$ac_objext conftest$ac_exeext
6756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757 (eval $ac_link) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try='test -s conftest$ac_exeext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_cv_lib_dld_shl_load=yes
6768else
6769 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006770sed 's/^/| /' conftest.$ac_ext >&5
6771
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006772ac_cv_lib_dld_shl_load=no
6773fi
6774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6775LIBS=$ac_check_lib_save_LIBS
6776fi
6777echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6778echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6779if test $ac_cv_lib_dld_shl_load = yes; then
6780 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6781else
6782 echo "$as_me:$LINENO: checking for dlopen" >&5
6783echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6784if test "${ac_cv_func_dlopen+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786else
6787 cat >conftest.$ac_ext <<_ACEOF
6788#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006789/* confdefs.h. */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006794/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006795 which can conflict with char dlopen (); below.
6796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6797 <limits.h> exists even on freestanding compilers. */
6798#ifdef __STDC__
6799# include <limits.h>
6800#else
6801# include <assert.h>
6802#endif
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006803/* Override any gcc2 internal prototype to avoid an error. */
6804#ifdef __cplusplus
6805extern "C"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006806{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006807#endif
6808/* We use char because int might match the return type of a gcc2
6809 builtin and then its argument prototype would still apply. */
6810char dlopen ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006811/* The GNU C library defines this for functions which it implements
6812 to always fail with ENOSYS. Some functions are actually named
6813 something starting with __ and the normal name is an alias. */
6814#if defined (__stub_dlopen) || defined (__stub___dlopen)
6815choke me
6816#else
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006817char (*f) () = dlopen;
6818#endif
6819#ifdef __cplusplus
6820}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006821#endif
6822
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006823int
6824main ()
6825{
6826return f != dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006827 ;
6828 return 0;
6829}
6830_ACEOF
6831rm -f conftest.$ac_objext conftest$ac_exeext
6832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6833 (eval $ac_link) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -s conftest$ac_exeext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_cv_func_dlopen=yes
6844else
6845 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006846sed 's/^/| /' conftest.$ac_ext >&5
6847
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006848ac_cv_func_dlopen=no
6849fi
6850rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6851fi
6852echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6853echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6854if test $ac_cv_func_dlopen = yes; then
6855 lt_cv_dlopen="dlopen"
6856else
6857 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6858echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6859if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862 ac_check_lib_save_LIBS=$LIBS
6863LIBS="-ldl $LIBS"
6864cat >conftest.$ac_ext <<_ACEOF
6865#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006866/* confdefs.h. */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006871
6872/* Override any gcc2 internal prototype to avoid an error. */
6873#ifdef __cplusplus
6874extern "C"
6875#endif
6876/* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6878char dlopen ();
6879int
6880main ()
6881{
6882dlopen ();
6883 ;
6884 return 0;
6885}
6886_ACEOF
6887rm -f conftest.$ac_objext conftest$ac_exeext
6888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -s conftest$ac_exeext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_cv_lib_dl_dlopen=yes
6900else
6901 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006902sed 's/^/| /' conftest.$ac_ext >&5
6903
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006904ac_cv_lib_dl_dlopen=no
6905fi
6906rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6907LIBS=$ac_check_lib_save_LIBS
6908fi
6909echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6910echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6911if test $ac_cv_lib_dl_dlopen = yes; then
6912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6913else
6914 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6915echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6916if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 ac_check_lib_save_LIBS=$LIBS
6920LIBS="-lsvld $LIBS"
6921cat >conftest.$ac_ext <<_ACEOF
6922#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006923/* confdefs.h. */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
6927/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006928
6929/* Override any gcc2 internal prototype to avoid an error. */
6930#ifdef __cplusplus
6931extern "C"
6932#endif
6933/* We use char because int might match the return type of a gcc2
6934 builtin and then its argument prototype would still apply. */
6935char dlopen ();
6936int
6937main ()
6938{
6939dlopen ();
6940 ;
6941 return 0;
6942}
6943_ACEOF
6944rm -f conftest.$ac_objext conftest$ac_exeext
6945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6946 (eval $ac_link) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -s conftest$ac_exeext'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 ac_cv_lib_svld_dlopen=yes
6957else
6958 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006959sed 's/^/| /' conftest.$ac_ext >&5
6960
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006961ac_cv_lib_svld_dlopen=no
6962fi
6963rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6964LIBS=$ac_check_lib_save_LIBS
6965fi
6966echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6967echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6968if test $ac_cv_lib_svld_dlopen = yes; then
6969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6970else
6971 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6972echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6973if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975else
6976 ac_check_lib_save_LIBS=$LIBS
6977LIBS="-ldld $LIBS"
6978cat >conftest.$ac_ext <<_ACEOF
6979#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00006980/* confdefs.h. */
6981_ACEOF
6982cat confdefs.h >>conftest.$ac_ext
6983cat >>conftest.$ac_ext <<_ACEOF
6984/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006985
6986/* Override any gcc2 internal prototype to avoid an error. */
6987#ifdef __cplusplus
6988extern "C"
6989#endif
6990/* We use char because int might match the return type of a gcc2
6991 builtin and then its argument prototype would still apply. */
6992char dld_link ();
6993int
6994main ()
6995{
6996dld_link ();
6997 ;
6998 return 0;
6999}
7000_ACEOF
7001rm -f conftest.$ac_objext conftest$ac_exeext
7002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7003 (eval $ac_link) 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -s conftest$ac_exeext'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 (eval $ac_try) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; }; then
7013 ac_cv_lib_dld_dld_link=yes
7014else
7015 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007016sed 's/^/| /' conftest.$ac_ext >&5
7017
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007018ac_cv_lib_dld_dld_link=no
7019fi
7020rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7021LIBS=$ac_check_lib_save_LIBS
7022fi
7023echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7024echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7025if test $ac_cv_lib_dld_dld_link = yes; then
7026 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7027fi
7028
7029
7030fi
7031
7032
7033fi
7034
7035
7036fi
7037
7038
7039fi
7040
7041
7042fi
7043
7044 ;;
7045 esac
7046
7047 if test "x$lt_cv_dlopen" != xno; then
7048 enable_dlopen=yes
7049 else
7050 enable_dlopen=no
7051 fi
7052
7053 case $lt_cv_dlopen in
7054 dlopen)
7055 save_CPPFLAGS="$CPPFLAGS"
7056 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7057
7058 save_LDFLAGS="$LDFLAGS"
7059 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7060
7061 save_LIBS="$LIBS"
7062 LIBS="$lt_cv_dlopen_libs $LIBS"
7063
7064 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7065echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7066if test "${lt_cv_dlopen_self+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069 if test "$cross_compiling" = yes; then :
7070 lt_cv_dlopen_self=cross
7071else
7072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7073 lt_status=$lt_dlunknown
7074 cat > conftest.$ac_ext <<EOF
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007075#line 7075 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007076#include "confdefs.h"
7077
7078#if HAVE_DLFCN_H
7079#include <dlfcn.h>
7080#endif
7081
7082#include <stdio.h>
7083
7084#ifdef RTLD_GLOBAL
7085# define LT_DLGLOBAL RTLD_GLOBAL
7086#else
7087# ifdef DL_GLOBAL
7088# define LT_DLGLOBAL DL_GLOBAL
7089# else
7090# define LT_DLGLOBAL 0
7091# endif
7092#endif
7093
7094/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7095 find out it does not work in some platform. */
7096#ifndef LT_DLLAZY_OR_NOW
7097# ifdef RTLD_LAZY
7098# define LT_DLLAZY_OR_NOW RTLD_LAZY
7099# else
7100# ifdef DL_LAZY
7101# define LT_DLLAZY_OR_NOW DL_LAZY
7102# else
7103# ifdef RTLD_NOW
7104# define LT_DLLAZY_OR_NOW RTLD_NOW
7105# else
7106# ifdef DL_NOW
7107# define LT_DLLAZY_OR_NOW DL_NOW
7108# else
7109# define LT_DLLAZY_OR_NOW 0
7110# endif
7111# endif
7112# endif
7113# endif
7114#endif
7115
7116#ifdef __cplusplus
7117extern "C" void exit (int);
7118#endif
7119
7120void fnord() { int i=42;}
7121int main ()
7122{
7123 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7124 int status = $lt_dlunknown;
7125
7126 if (self)
7127 {
7128 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7129 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7130 /* dlclose (self); */
7131 }
7132
7133 exit (status);
7134}
7135EOF
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137 (eval $ac_link) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7141 (./conftest; exit; ) 2>/dev/null
7142 lt_status=$?
7143 case x$lt_status in
7144 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7145 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7146 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7147 esac
7148 else :
7149 # compilation failed
7150 lt_cv_dlopen_self=no
7151 fi
7152fi
7153rm -fr conftest*
7154
7155
7156fi
7157echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7158echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7159
7160 if test "x$lt_cv_dlopen_self" = xyes; then
7161 LDFLAGS="$LDFLAGS $link_static_flag"
7162 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7163echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7164if test "${lt_cv_dlopen_self_static+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 if test "$cross_compiling" = yes; then :
7168 lt_cv_dlopen_self_static=cross
7169else
7170 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7171 lt_status=$lt_dlunknown
7172 cat > conftest.$ac_ext <<EOF
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007173#line 7173 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007174#include "confdefs.h"
7175
7176#if HAVE_DLFCN_H
7177#include <dlfcn.h>
7178#endif
7179
7180#include <stdio.h>
7181
7182#ifdef RTLD_GLOBAL
7183# define LT_DLGLOBAL RTLD_GLOBAL
7184#else
7185# ifdef DL_GLOBAL
7186# define LT_DLGLOBAL DL_GLOBAL
7187# else
7188# define LT_DLGLOBAL 0
7189# endif
7190#endif
7191
7192/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7193 find out it does not work in some platform. */
7194#ifndef LT_DLLAZY_OR_NOW
7195# ifdef RTLD_LAZY
7196# define LT_DLLAZY_OR_NOW RTLD_LAZY
7197# else
7198# ifdef DL_LAZY
7199# define LT_DLLAZY_OR_NOW DL_LAZY
7200# else
7201# ifdef RTLD_NOW
7202# define LT_DLLAZY_OR_NOW RTLD_NOW
7203# else
7204# ifdef DL_NOW
7205# define LT_DLLAZY_OR_NOW DL_NOW
7206# else
7207# define LT_DLLAZY_OR_NOW 0
7208# endif
7209# endif
7210# endif
7211# endif
7212#endif
7213
7214#ifdef __cplusplus
7215extern "C" void exit (int);
7216#endif
7217
7218void fnord() { int i=42;}
7219int main ()
7220{
7221 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7222 int status = $lt_dlunknown;
7223
7224 if (self)
7225 {
7226 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7227 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7228 /* dlclose (self); */
7229 }
7230
7231 exit (status);
7232}
7233EOF
7234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7235 (eval $ac_link) 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7239 (./conftest; exit; ) 2>/dev/null
7240 lt_status=$?
7241 case x$lt_status in
7242 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7243 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7244 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7245 esac
7246 else :
7247 # compilation failed
7248 lt_cv_dlopen_self_static=no
7249 fi
7250fi
7251rm -fr conftest*
7252
7253
7254fi
7255echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7256echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7257 fi
7258
7259 CPPFLAGS="$save_CPPFLAGS"
7260 LDFLAGS="$save_LDFLAGS"
7261 LIBS="$save_LIBS"
7262 ;;
7263 esac
7264
7265 case $lt_cv_dlopen_self in
7266 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7267 *) enable_dlopen_self=unknown ;;
7268 esac
7269
7270 case $lt_cv_dlopen_self_static in
7271 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7272 *) enable_dlopen_self_static=unknown ;;
7273 esac
7274fi
7275
7276
7277if test "$enable_shared" = yes && test "$GCC" = yes; then
7278 case $archive_cmds in
7279 *'~'*)
7280 # FIXME: we may have to deal with multi-command sequences.
7281 ;;
7282 '$CC '*)
7283 # Test whether the compiler implicitly links with -lc since on some
7284 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7285 # to ld, don't add -lc before -lgcc.
7286 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7287echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7288 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290else
7291 $rm conftest*
7292 echo 'static int dummy;' > conftest.$ac_ext
7293
7294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7295 (eval $ac_compile) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; then
7299 soname=conftest
7300 lib=conftest
7301 libobjs=conftest.$ac_objext
7302 deplibs=
7303 wl=$lt_cv_prog_cc_wl
7304 compiler_flags=-v
7305 linker_flags=-v
7306 verstring=
7307 output_objdir=.
7308 libname=conftest
7309 save_allow_undefined_flag=$allow_undefined_flag
7310 allow_undefined_flag=
7311 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7312 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }
7316 then
7317 lt_cv_archive_cmds_need_lc=no
7318 else
7319 lt_cv_archive_cmds_need_lc=yes
7320 fi
7321 allow_undefined_flag=$save_allow_undefined_flag
7322 else
7323 cat conftest.err 1>&5
7324 fi
7325fi
7326
7327 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7328echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7329 ;;
7330 esac
7331fi
7332need_lc=${lt_cv_archive_cmds_need_lc-yes}
7333
7334# The second clause should only fire when bootstrapping the
7335# libtool distribution, otherwise you forgot to ship ltmain.sh
7336# with your package, and you will get complaints that there are
7337# no rules to generate ltmain.sh.
7338if test -f "$ltmain"; then
7339 :
7340else
7341 # If there is no Makefile yet, we rely on a make rule to execute
7342 # `config.status --recheck' to rerun these tests and create the
7343 # libtool script then.
7344 test -f Makefile && make "$ltmain"
7345fi
7346
7347if test -f "$ltmain"; then
7348 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7349 $rm -f "${ofile}T"
7350
7351 echo creating $ofile
7352
7353 # Now quote all the things that may contain metacharacters while being
7354 # careful not to overquote the AC_SUBSTed values. We take copies of the
7355 # variables and quote the copies for generation of the libtool script.
7356 for var in echo old_CC old_CFLAGS SED \
7357 AR AR_FLAGS CC LD LN_S NM SHELL \
7358 reload_flag reload_cmds wl \
7359 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7360 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7361 library_names_spec soname_spec \
7362 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7363 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7364 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7365 old_striplib striplib file_magic_cmd export_symbols_cmds \
7366 deplibs_check_method allow_undefined_flag no_undefined_flag \
7367 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7368 global_symbol_to_c_name_address \
7369 hardcode_libdir_flag_spec hardcode_libdir_separator \
7370 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7371 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7372
7373 case $var in
7374 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7375 old_postinstall_cmds | old_postuninstall_cmds | \
7376 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7377 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7378 postinstall_cmds | postuninstall_cmds | \
7379 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7380 # Double-quote double-evaled strings.
7381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7382 ;;
7383 *)
7384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7385 ;;
7386 esac
7387 done
7388
7389 cat <<__EOF__ > "${ofile}T"
7390#! $SHELL
7391
7392# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7393# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7394# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7395#
7396# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7397# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7398#
7399# This program is free software; you can redistribute it and/or modify
7400# it under the terms of the GNU General Public License as published by
7401# the Free Software Foundation; either version 2 of the License, or
7402# (at your option) any later version.
7403#
7404# This program is distributed in the hope that it will be useful, but
7405# WITHOUT ANY WARRANTY; without even the implied warranty of
7406# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7407# General Public License for more details.
7408#
7409# You should have received a copy of the GNU General Public License
7410# along with this program; if not, write to the Free Software
7411# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7412#
7413# As a special exception to the GNU General Public License, if you
7414# distribute this file as part of a program that contains a
7415# configuration script generated by Autoconf, you may include it under
7416# the same distribution terms that you use for the rest of that program.
7417
7418# A sed that does not truncate output.
7419SED=$lt_SED
7420
7421# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7422Xsed="${SED} -e s/^X//"
7423
7424# The HP-UX ksh and POSIX shell print the target directory to stdout
7425# if CDPATH is set.
7426if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7427
7428# ### BEGIN LIBTOOL CONFIG
7429
7430# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7431
7432# Shell to use when invoking shell scripts.
7433SHELL=$lt_SHELL
7434
7435# Whether or not to build shared libraries.
7436build_libtool_libs=$enable_shared
7437
7438# Whether or not to build static libraries.
7439build_old_libs=$enable_static
7440
7441# Whether or not to add -lc for building shared libraries.
7442build_libtool_need_lc=$need_lc
7443
7444# Whether or not to optimize for fast installation.
7445fast_install=$enable_fast_install
7446
7447# The host system.
7448host_alias=$host_alias
7449host=$host
7450
7451# An echo program that does not interpret backslashes.
7452echo=$lt_echo
7453
7454# The archiver.
7455AR=$lt_AR
7456AR_FLAGS=$lt_AR_FLAGS
7457
7458# The default C compiler.
7459CC=$lt_CC
7460
7461# Is the compiler the GNU C compiler?
7462with_gcc=$GCC
7463
7464# The linker used to build libraries.
7465LD=$lt_LD
7466
7467# Whether we need hard or soft links.
7468LN_S=$lt_LN_S
7469
7470# A BSD-compatible nm program.
7471NM=$lt_NM
7472
7473# A symbol stripping program
7474STRIP=$STRIP
7475
7476# Used to examine libraries when file_magic_cmd begins "file"
7477MAGIC_CMD=$MAGIC_CMD
7478
7479# Used on cygwin: DLL creation program.
7480DLLTOOL="$DLLTOOL"
7481
7482# Used on cygwin: object dumper.
7483OBJDUMP="$OBJDUMP"
7484
7485# Used on cygwin: assembler.
7486AS="$AS"
7487
7488# The name of the directory that contains temporary libtool files.
7489objdir=$objdir
7490
7491# How to create reloadable object files.
7492reload_flag=$lt_reload_flag
7493reload_cmds=$lt_reload_cmds
7494
7495# How to pass a linker flag through the compiler.
7496wl=$lt_wl
7497
7498# Object file suffix (normally "o").
7499objext="$ac_objext"
7500
7501# Old archive suffix (normally "a").
7502libext="$libext"
7503
7504# Executable file suffix (normally "").
7505exeext="$exeext"
7506
7507# Additional compiler flags for building library objects.
7508pic_flag=$lt_pic_flag
7509pic_mode=$pic_mode
7510
7511# Does compiler simultaneously support -c and -o options?
7512compiler_c_o=$lt_compiler_c_o
7513
7514# Can we write directly to a .lo ?
7515compiler_o_lo=$lt_compiler_o_lo
7516
7517# Must we lock files when doing compilation ?
7518need_locks=$lt_need_locks
7519
7520# Do we need the lib prefix for modules?
7521need_lib_prefix=$need_lib_prefix
7522
7523# Do we need a version for libraries?
7524need_version=$need_version
7525
7526# Whether dlopen is supported.
7527dlopen_support=$enable_dlopen
7528
7529# Whether dlopen of programs is supported.
7530dlopen_self=$enable_dlopen_self
7531
7532# Whether dlopen of statically linked programs is supported.
7533dlopen_self_static=$enable_dlopen_self_static
7534
7535# Compiler flag to prevent dynamic linking.
7536link_static_flag=$lt_link_static_flag
7537
7538# Compiler flag to turn off builtin functions.
7539no_builtin_flag=$lt_no_builtin_flag
7540
7541# Compiler flag to allow reflexive dlopens.
7542export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7543
7544# Compiler flag to generate shared objects directly from archives.
7545whole_archive_flag_spec=$lt_whole_archive_flag_spec
7546
7547# Compiler flag to generate thread-safe objects.
7548thread_safe_flag_spec=$lt_thread_safe_flag_spec
7549
7550# Library versioning type.
7551version_type=$version_type
7552
7553# Format of library name prefix.
7554libname_spec=$lt_libname_spec
7555
7556# List of archive names. First name is the real one, the rest are links.
7557# The last name is the one that the linker finds with -lNAME.
7558library_names_spec=$lt_library_names_spec
7559
7560# The coded name of the library, if different from the real name.
7561soname_spec=$lt_soname_spec
7562
7563# Commands used to build and install an old-style archive.
7564RANLIB=$lt_RANLIB
7565old_archive_cmds=$lt_old_archive_cmds
7566old_postinstall_cmds=$lt_old_postinstall_cmds
7567old_postuninstall_cmds=$lt_old_postuninstall_cmds
7568
7569# Create an old-style archive from a shared archive.
7570old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7571
7572# Create a temporary old-style archive to link instead of a shared archive.
7573old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7574
7575# Commands used to build and install a shared archive.
7576archive_cmds=$lt_archive_cmds
7577archive_expsym_cmds=$lt_archive_expsym_cmds
7578postinstall_cmds=$lt_postinstall_cmds
7579postuninstall_cmds=$lt_postuninstall_cmds
7580
7581# Commands to strip libraries.
7582old_striplib=$lt_old_striplib
7583striplib=$lt_striplib
7584
7585# Method to check whether dependent libraries are shared objects.
7586deplibs_check_method=$lt_deplibs_check_method
7587
7588# Command to use when deplibs_check_method == file_magic.
7589file_magic_cmd=$lt_file_magic_cmd
7590
7591# Flag that allows shared libraries with undefined symbols to be built.
7592allow_undefined_flag=$lt_allow_undefined_flag
7593
7594# Flag that forces no undefined symbols.
7595no_undefined_flag=$lt_no_undefined_flag
7596
7597# Commands used to finish a libtool library installation in a directory.
7598finish_cmds=$lt_finish_cmds
7599
7600# Same as above, but a single script fragment to be evaled but not shown.
7601finish_eval=$lt_finish_eval
7602
7603# Take the output of nm and produce a listing of raw symbols and C names.
7604global_symbol_pipe=$lt_global_symbol_pipe
7605
7606# Transform the output of nm in a proper C declaration
7607global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7608
7609# Transform the output of nm in a C name address pair
7610global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7611
7612# This is the shared library runtime path variable.
7613runpath_var=$runpath_var
7614
7615# This is the shared library path variable.
7616shlibpath_var=$shlibpath_var
7617
7618# Is shlibpath searched before the hard-coded library search path?
7619shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7620
7621# How to hardcode a shared library path into an executable.
7622hardcode_action=$hardcode_action
7623
7624# Whether we should hardcode library paths into libraries.
7625hardcode_into_libs=$hardcode_into_libs
7626
7627# Flag to hardcode \$libdir into a binary during linking.
7628# This must work even if \$libdir does not exist.
7629hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7630
7631# Whether we need a single -rpath flag with a separated argument.
7632hardcode_libdir_separator=$lt_hardcode_libdir_separator
7633
7634# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7635# resulting binary.
7636hardcode_direct=$hardcode_direct
7637
7638# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7639# resulting binary.
7640hardcode_minus_L=$hardcode_minus_L
7641
7642# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7643# the resulting binary.
7644hardcode_shlibpath_var=$hardcode_shlibpath_var
7645
7646# Variables whose values should be saved in libtool wrapper scripts and
7647# restored at relink time.
7648variables_saved_for_relink="$variables_saved_for_relink"
7649
7650# Whether libtool must link a program against all its dependency libraries.
7651link_all_deplibs=$link_all_deplibs
7652
7653# Compile-time system search path for libraries
7654sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7655
7656# Run-time system search path for libraries
7657sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7658
7659# Fix the shell variable \$srcfile for the compiler.
7660fix_srcfile_path="$fix_srcfile_path"
7661
7662# Set to yes if exported symbols are required.
7663always_export_symbols=$always_export_symbols
7664
7665# The commands to list exported symbols.
7666export_symbols_cmds=$lt_export_symbols_cmds
7667
7668# The commands to extract the exported symbol list from a shared archive.
7669extract_expsyms_cmds=$lt_extract_expsyms_cmds
7670
7671# Symbols that should not be listed in the preloaded symbols.
7672exclude_expsyms=$lt_exclude_expsyms
7673
7674# Symbols that must always be exported.
7675include_expsyms=$lt_include_expsyms
7676
7677# ### END LIBTOOL CONFIG
7678
7679__EOF__
7680
7681 case $host_os in
7682 aix3*)
7683 cat <<\EOF >> "${ofile}T"
7684
7685# AIX sometimes has problems with the GCC collect2 program. For some
7686# reason, if we set the COLLECT_NAMES environment variable, the problems
7687# vanish in a puff of smoke.
7688if test "X${COLLECT_NAMES+set}" != Xset; then
7689 COLLECT_NAMES=
7690 export COLLECT_NAMES
7691fi
7692EOF
7693 ;;
7694 esac
7695
7696 case $host_os in
7697 cygwin* | mingw* | pw32* | os2*)
7698 cat <<'EOF' >> "${ofile}T"
7699 # This is a source program that is used to create dlls on Windows
7700 # Don't remove nor modify the starting and closing comments
7701# /* ltdll.c starts here */
7702# #define WIN32_LEAN_AND_MEAN
7703# #include <windows.h>
7704# #undef WIN32_LEAN_AND_MEAN
7705# #include <stdio.h>
7706#
7707# #ifndef __CYGWIN__
7708# # ifdef __CYGWIN32__
7709# # define __CYGWIN__ __CYGWIN32__
7710# # endif
7711# #endif
7712#
7713# #ifdef __cplusplus
7714# extern "C" {
7715# #endif
7716# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7717# #ifdef __cplusplus
7718# }
7719# #endif
7720#
7721# #ifdef __CYGWIN__
7722# #include <cygwin/cygwin_dll.h>
7723# DECLARE_CYGWIN_DLL( DllMain );
7724# #endif
7725# HINSTANCE __hDllInstance_base;
7726#
7727# BOOL APIENTRY
7728# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7729# {
7730# __hDllInstance_base = hInst;
7731# return TRUE;
7732# }
7733# /* ltdll.c ends here */
7734 # This is a source program that is used to create import libraries
7735 # on Windows for dlls which lack them. Don't remove nor modify the
7736 # starting and closing comments
7737# /* impgen.c starts here */
7738# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7739#
7740# This file is part of GNU libtool.
7741#
7742# This program is free software; you can redistribute it and/or modify
7743# it under the terms of the GNU General Public License as published by
7744# the Free Software Foundation; either version 2 of the License, or
7745# (at your option) any later version.
7746#
7747# This program is distributed in the hope that it will be useful,
7748# but WITHOUT ANY WARRANTY; without even the implied warranty of
7749# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7750# GNU General Public License for more details.
7751#
7752# You should have received a copy of the GNU General Public License
7753# along with this program; if not, write to the Free Software
7754# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7755# */
7756#
7757# #include <stdio.h> /* for printf() */
7758# #include <unistd.h> /* for open(), lseek(), read() */
7759# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7760# #include <string.h> /* for strdup() */
7761#
7762# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7763# #ifndef O_BINARY
7764# #define O_BINARY 0
7765# #endif
7766#
7767# static unsigned int
7768# pe_get16 (fd, offset)
7769# int fd;
7770# int offset;
7771# {
7772# unsigned char b[2];
7773# lseek (fd, offset, SEEK_SET);
7774# read (fd, b, 2);
7775# return b[0] + (b[1]<<8);
7776# }
7777#
7778# static unsigned int
7779# pe_get32 (fd, offset)
7780# int fd;
7781# int offset;
7782# {
7783# unsigned char b[4];
7784# lseek (fd, offset, SEEK_SET);
7785# read (fd, b, 4);
7786# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7787# }
7788#
7789# static unsigned int
7790# pe_as32 (ptr)
7791# void *ptr;
7792# {
7793# unsigned char *b = ptr;
7794# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7795# }
7796#
7797# int
7798# main (argc, argv)
7799# int argc;
7800# char *argv[];
7801# {
7802# int dll;
7803# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7804# unsigned long export_rva, export_size, nsections, secptr, expptr;
7805# unsigned long name_rvas, nexp;
7806# unsigned char *expdata, *erva;
7807# char *filename, *dll_name;
7808#
7809# filename = argv[1];
7810#
7811# dll = open(filename, O_RDONLY|O_BINARY);
7812# if (dll < 1)
7813# return 1;
7814#
7815# dll_name = filename;
7816#
7817# for (i=0; filename[i]; i++)
7818# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7819# dll_name = filename + i +1;
7820#
7821# pe_header_offset = pe_get32 (dll, 0x3c);
7822# opthdr_ofs = pe_header_offset + 4 + 20;
7823# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7824#
7825# if (num_entries < 1) /* no exports */
7826# return 1;
7827#
7828# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7829# export_size = pe_get32 (dll, opthdr_ofs + 100);
7830# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7831# secptr = (pe_header_offset + 4 + 20 +
7832# pe_get16 (dll, pe_header_offset + 4 + 16));
7833#
7834# expptr = 0;
7835# for (i = 0; i < nsections; i++)
7836# {
7837# char sname[8];
7838# unsigned long secptr1 = secptr + 40 * i;
7839# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7840# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7841# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7842# lseek(dll, secptr1, SEEK_SET);
7843# read(dll, sname, 8);
7844# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7845# {
7846# expptr = fptr + (export_rva - vaddr);
7847# if (export_rva + export_size > vaddr + vsize)
7848# export_size = vsize - (export_rva - vaddr);
7849# break;
7850# }
7851# }
7852#
7853# expdata = (unsigned char*)malloc(export_size);
7854# lseek (dll, expptr, SEEK_SET);
7855# read (dll, expdata, export_size);
7856# erva = expdata - export_rva;
7857#
7858# nexp = pe_as32 (expdata+24);
7859# name_rvas = pe_as32 (expdata+32);
7860#
7861# printf ("EXPORTS\n");
7862# for (i = 0; i<nexp; i++)
7863# {
7864# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7865# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7866# }
7867#
7868# return 0;
7869# }
7870# /* impgen.c ends here */
7871
7872EOF
7873 ;;
7874 esac
7875
7876 # We use sed instead of cat because bash on DJGPP gets confused if
7877 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7878 # text mode, it properly converts lines to CR/LF. This bash problem
7879 # is reportedly fixed, but why not run on old versions too?
7880 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7881
7882 mv -f "${ofile}T" "$ofile" || \
7883 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7884 chmod +x "$ofile"
7885fi
7886
7887
7888
7889
7890
7891# This can be used to rebuild libtool when needed
7892LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7893
7894# Always use our own libtool.
7895LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7896
7897# Prevent multiple expansion
7898
7899
7900
7901
7902echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7903echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7904if test "${ac_cv_header_stdc+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906else
7907 cat >conftest.$ac_ext <<_ACEOF
7908#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007909/* confdefs.h. */
7910_ACEOF
7911cat confdefs.h >>conftest.$ac_ext
7912cat >>conftest.$ac_ext <<_ACEOF
7913/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007914#include <stdlib.h>
7915#include <stdarg.h>
7916#include <string.h>
7917#include <float.h>
7918
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007919int
7920main ()
7921{
7922
7923 ;
7924 return 0;
7925}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007926_ACEOF
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007927rm -f conftest.$ac_objext
7928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007930 ac_status=$?
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007932 (exit $ac_status); } &&
7933 { ac_try='test -s conftest.$ac_objext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007939 ac_cv_header_stdc=yes
7940else
7941 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007945fi
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007946rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007947
7948if test $ac_cv_header_stdc = yes; then
7949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7950 cat >conftest.$ac_ext <<_ACEOF
7951#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007957#include <string.h>
7958
7959_ACEOF
7960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7961 $EGREP "memchr" >/dev/null 2>&1; then
7962 :
7963else
7964 ac_cv_header_stdc=no
7965fi
7966rm -f conftest*
7967
7968fi
7969
7970if test $ac_cv_header_stdc = yes; then
7971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7972 cat >conftest.$ac_ext <<_ACEOF
7973#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007974/* confdefs.h. */
7975_ACEOF
7976cat confdefs.h >>conftest.$ac_ext
7977cat >>conftest.$ac_ext <<_ACEOF
7978/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007979#include <stdlib.h>
7980
7981_ACEOF
7982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7983 $EGREP "free" >/dev/null 2>&1; then
7984 :
7985else
7986 ac_cv_header_stdc=no
7987fi
7988rm -f conftest*
7989
7990fi
7991
7992if test $ac_cv_header_stdc = yes; then
7993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7994 if test "$cross_compiling" = yes; then
7995 :
7996else
7997 cat >conftest.$ac_ext <<_ACEOF
7998#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00007999/* confdefs.h. */
8000_ACEOF
8001cat confdefs.h >>conftest.$ac_ext
8002cat >>conftest.$ac_ext <<_ACEOF
8003/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008004#include <ctype.h>
8005#if ((' ' & 0x0FF) == 0x020)
8006# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8007# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8008#else
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008009# define ISLOWER(c) \
8010 (('a' <= (c) && (c) <= 'i') \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008011 || ('j' <= (c) && (c) <= 'r') \
8012 || ('s' <= (c) && (c) <= 'z'))
8013# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8014#endif
8015
8016#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8017int
8018main ()
8019{
8020 int i;
8021 for (i = 0; i < 256; i++)
8022 if (XOR (islower (i), ISLOWER (i))
8023 || toupper (i) != TOUPPER (i))
8024 exit(2);
8025 exit (0);
8026}
8027_ACEOF
8028rm -f conftest$ac_exeext
8029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 :
8040else
8041 echo "$as_me: program exited with status $ac_status" >&5
8042echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008043sed 's/^/| /' conftest.$ac_ext >&5
8044
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008045( exit $ac_status )
8046ac_cv_header_stdc=no
8047fi
8048rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8049fi
8050fi
8051fi
8052echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8053echo "${ECHO_T}$ac_cv_header_stdc" >&6
8054if test $ac_cv_header_stdc = yes; then
8055
8056cat >>confdefs.h <<\_ACEOF
8057#define STDC_HEADERS 1
8058_ACEOF
8059
8060fi
8061
8062
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008063for ac_header in unistd.h
8064do
8065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8066if eval "test \"\${$as_ac_Header+set}\" = set"; then
8067 echo "$as_me:$LINENO: checking for $ac_header" >&5
8068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8069if eval "test \"\${$as_ac_Header+set}\" = set"; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071fi
8072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8074else
8075 # Is the header compilable?
8076echo "$as_me:$LINENO: checking $ac_header usability" >&5
8077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8078cat >conftest.$ac_ext <<_ACEOF
8079#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008085$ac_includes_default
8086#include <$ac_header>
8087_ACEOF
8088rm -f conftest.$ac_objext
8089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8090 (eval $ac_compile) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try='test -s conftest.$ac_objext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_header_compiler=yes
8101else
8102 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008103sed 's/^/| /' conftest.$ac_ext >&5
8104
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008105ac_header_compiler=no
8106fi
8107rm -f conftest.$ac_objext conftest.$ac_ext
8108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8109echo "${ECHO_T}$ac_header_compiler" >&6
8110
8111# Is the header present?
8112echo "$as_me:$LINENO: checking $ac_header presence" >&5
8113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8114cat >conftest.$ac_ext <<_ACEOF
8115#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008121#include <$ac_header>
8122_ACEOF
8123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } >/dev/null; then
8131 if test -s conftest.err; then
8132 ac_cpp_err=$ac_c_preproc_warn_flag
8133 else
8134 ac_cpp_err=
8135 fi
8136else
8137 ac_cpp_err=yes
8138fi
8139if test -z "$ac_cpp_err"; then
8140 ac_header_preproc=yes
8141else
8142 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008143sed 's/^/| /' conftest.$ac_ext >&5
8144
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008145 ac_header_preproc=no
8146fi
8147rm -f conftest.err conftest.$ac_ext
8148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8149echo "${ECHO_T}$ac_header_preproc" >&6
8150
8151# So? What about this header?
8152case $ac_header_compiler:$ac_header_preproc in
8153 yes:no )
8154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008157echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8158 (
8159 cat <<\_ASBOX
8160## ------------------------------------ ##
8161## Report this to bug-autoconf@gnu.org. ##
8162## ------------------------------------ ##
8163_ASBOX
8164 ) |
8165 sed "s/^/$as_me: WARNING: /" >&2
8166 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008167 no:yes )
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8174 (
8175 cat <<\_ASBOX
8176## ------------------------------------ ##
8177## Report this to bug-autoconf@gnu.org. ##
8178## ------------------------------------ ##
8179_ASBOX
8180 ) |
8181 sed "s/^/$as_me: WARNING: /" >&2
8182 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008183esac
8184echo "$as_me:$LINENO: checking for $ac_header" >&5
8185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8186if eval "test \"\${$as_ac_Header+set}\" = set"; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188else
8189 eval "$as_ac_Header=$ac_header_preproc"
8190fi
8191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8193
8194fi
8195if test `eval echo '${'$as_ac_Header'}'` = yes; then
8196 cat >>confdefs.h <<_ACEOF
8197#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8198_ACEOF
8199
8200fi
8201
8202done
8203
8204
8205echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8206echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8207if test "${ac_cv_c_const+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210 cat >conftest.$ac_ext <<_ACEOF
8211#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008212/* confdefs.h. */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008217
8218int
8219main ()
8220{
8221/* FIXME: Include the comments suggested by Paul. */
8222#ifndef __cplusplus
8223 /* Ultrix mips cc rejects this. */
8224 typedef int charset[2];
8225 const charset x;
8226 /* SunOS 4.1.1 cc rejects this. */
8227 char const *const *ccp;
8228 char **p;
8229 /* NEC SVR4.0.2 mips cc rejects this. */
8230 struct point {int x, y;};
8231 static struct point const zero = {0,0};
8232 /* AIX XL C 1.02.0.0 rejects this.
8233 It does not let you subtract one const X* pointer from another in
8234 an arm of an if-expression whose if-part is not a constant
8235 expression */
8236 const char *g = "string";
8237 ccp = &g + (g ? g-g : 0);
8238 /* HPUX 7.0 cc rejects these. */
8239 ++ccp;
8240 p = (char**) ccp;
8241 ccp = (char const *const *) p;
8242 { /* SCO 3.2v4 cc rejects this. */
8243 char *t;
8244 char const *s = 0 ? (char *) 0 : (char const *) 0;
8245
8246 *t++ = 0;
8247 }
8248 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8249 int x[] = {25, 17};
8250 const int *foo = &x[0];
8251 ++foo;
8252 }
8253 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8254 typedef const int *iptr;
8255 iptr p = 0;
8256 ++p;
8257 }
8258 { /* AIX XL C 1.02.0.0 rejects this saying
8259 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8260 struct s { int j; const int *ap[3]; };
8261 struct s *b; b->j = 5;
8262 }
8263 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8264 const int foo = 10;
8265 }
8266#endif
8267
8268 ;
8269 return 0;
8270}
8271_ACEOF
8272rm -f conftest.$ac_objext
8273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274 (eval $ac_compile) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -s conftest.$ac_objext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_c_const=yes
8285else
8286 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008287sed 's/^/| /' conftest.$ac_ext >&5
8288
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008289ac_cv_c_const=no
8290fi
8291rm -f conftest.$ac_objext conftest.$ac_ext
8292fi
8293echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8294echo "${ECHO_T}$ac_cv_c_const" >&6
8295if test $ac_cv_c_const = no; then
8296
8297cat >>confdefs.h <<\_ACEOF
8298#define const
8299_ACEOF
8300
8301fi
8302
8303echo "$as_me:$LINENO: checking for inline" >&5
8304echo $ECHO_N "checking for inline... $ECHO_C" >&6
8305if test "${ac_cv_c_inline+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307else
8308 ac_cv_c_inline=no
8309for ac_kw in inline __inline__ __inline; do
8310 cat >conftest.$ac_ext <<_ACEOF
8311#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008312/* confdefs.h. */
8313_ACEOF
8314cat confdefs.h >>conftest.$ac_ext
8315cat >>conftest.$ac_ext <<_ACEOF
8316/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008317#ifndef __cplusplus
8318typedef int foo_t;
8319static $ac_kw foo_t static_foo () {return 0; }
8320$ac_kw foo_t foo () {return 0; }
8321#endif
8322
8323_ACEOF
8324rm -f conftest.$ac_objext
8325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8326 (eval $ac_compile) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -s conftest.$ac_objext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 (eval $ac_try) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8336 ac_cv_c_inline=$ac_kw; break
8337else
8338 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008339sed 's/^/| /' conftest.$ac_ext >&5
8340
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008341fi
8342rm -f conftest.$ac_objext conftest.$ac_ext
8343done
8344
8345fi
8346echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8347echo "${ECHO_T}$ac_cv_c_inline" >&6
8348case $ac_cv_c_inline in
8349 inline | yes) ;;
8350 no)
8351cat >>confdefs.h <<\_ACEOF
8352#define inline
8353_ACEOF
8354 ;;
8355 *) cat >>confdefs.h <<_ACEOF
8356#define inline $ac_cv_c_inline
8357_ACEOF
8358 ;;
8359esac
8360
8361echo "$as_me:$LINENO: checking for size_t" >&5
8362echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8363if test "${ac_cv_type_size_t+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365else
8366 cat >conftest.$ac_ext <<_ACEOF
8367#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008368/* confdefs.h. */
8369_ACEOF
8370cat confdefs.h >>conftest.$ac_ext
8371cat >>conftest.$ac_ext <<_ACEOF
8372/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008373$ac_includes_default
8374int
8375main ()
8376{
8377if ((size_t *) 0)
8378 return 0;
8379if (sizeof (size_t))
8380 return 0;
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385rm -f conftest.$ac_objext
8386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_cv_type_size_t=yes
8398else
8399 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008400sed 's/^/| /' conftest.$ac_ext >&5
8401
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008402ac_cv_type_size_t=no
8403fi
8404rm -f conftest.$ac_objext conftest.$ac_ext
8405fi
8406echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8407echo "${ECHO_T}$ac_cv_type_size_t" >&6
8408if test $ac_cv_type_size_t = yes; then
8409 :
8410else
8411
8412cat >>confdefs.h <<_ACEOF
8413#define size_t unsigned
8414_ACEOF
8415
8416fi
8417
8418
8419echo "$as_me:$LINENO: checking for working memcmp" >&5
8420echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8421if test "${ac_cv_func_memcmp_working+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423else
8424 if test "$cross_compiling" = yes; then
8425 ac_cv_func_memcmp_working=no
8426else
8427 cat >conftest.$ac_ext <<_ACEOF
8428#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008429/* confdefs.h. */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008434
8435int
8436main ()
8437{
8438
8439 /* Some versions of memcmp are not 8-bit clean. */
8440 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8441 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8442 exit (1);
8443
8444 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8445 or more and with at least one buffer not starting on a 4-byte boundary.
8446 William Lewis provided this test program. */
8447 {
8448 char foo[21];
8449 char bar[21];
8450 int i;
8451 for (i = 0; i < 4; i++)
8452 {
8453 char *a = foo + i;
8454 char *b = bar + i;
8455 strcpy (a, "--------01111111");
8456 strcpy (b, "--------10000000");
8457 if (memcmp (a, b, 16) >= 0)
8458 exit (1);
8459 }
8460 exit (0);
8461 }
8462
8463 ;
8464 return 0;
8465}
8466_ACEOF
8467rm -f conftest$ac_exeext
8468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469 (eval $ac_link) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 ac_cv_func_memcmp_working=yes
8479else
8480 echo "$as_me: program exited with status $ac_status" >&5
8481echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008482sed 's/^/| /' conftest.$ac_ext >&5
8483
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008484( exit $ac_status )
8485ac_cv_func_memcmp_working=no
8486fi
8487rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8488fi
8489fi
8490echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8491echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8492test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8493
8494echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8495echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8496if test "${ac_cv_type_signal+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498else
8499 cat >conftest.$ac_ext <<_ACEOF
8500#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008506#include <sys/types.h>
8507#include <signal.h>
8508#ifdef signal
8509# undef signal
8510#endif
8511#ifdef __cplusplus
8512extern "C" void (*signal (int, void (*)(int)))(int);
8513#else
8514void (*signal ()) ();
8515#endif
8516
8517int
8518main ()
8519{
8520int i;
8521 ;
8522 return 0;
8523}
8524_ACEOF
8525rm -f conftest.$ac_objext
8526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -s conftest.$ac_objext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 ac_cv_type_signal=void
8538else
8539 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008540sed 's/^/| /' conftest.$ac_ext >&5
8541
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008542ac_cv_type_signal=int
8543fi
8544rm -f conftest.$ac_objext conftest.$ac_ext
8545fi
8546echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8547echo "${ECHO_T}$ac_cv_type_signal" >&6
8548
8549cat >>confdefs.h <<_ACEOF
8550#define RETSIGTYPE $ac_cv_type_signal
8551_ACEOF
8552
8553
8554
8555for ac_func in getunwind
8556do
8557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8558echo "$as_me:$LINENO: checking for $ac_func" >&5
8559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8560if eval "test \"\${$as_ac_var+set}\" = set"; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562else
8563 cat >conftest.$ac_ext <<_ACEOF
8564#line $LINENO "configure"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008565/* confdefs.h. */
8566_ACEOF
8567cat confdefs.h >>conftest.$ac_ext
8568cat >>conftest.$ac_ext <<_ACEOF
8569/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008570/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008571 which can conflict with char $ac_func (); below.
8572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8573 <limits.h> exists even on freestanding compilers. */
8574#ifdef __STDC__
8575# include <limits.h>
8576#else
8577# include <assert.h>
8578#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008579/* Override any gcc2 internal prototype to avoid an error. */
8580#ifdef __cplusplus
8581extern "C"
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008582{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008583#endif
8584/* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586char $ac_func ();
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008587/* The GNU C library defines this for functions which it implements
8588 to always fail with ENOSYS. Some functions are actually named
8589 something starting with __ and the normal name is an alias. */
8590#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8591choke me
8592#else
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008593char (*f) () = $ac_func;
8594#endif
8595#ifdef __cplusplus
8596}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008597#endif
8598
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008599int
8600main ()
8601{
8602return f != $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008603 ;
8604 return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext conftest$ac_exeext
8608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 eval "$as_ac_var=yes"
8620else
8621 echo "$as_me: failed program was:" >&5
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008622sed 's/^/| /' conftest.$ac_ext >&5
8623
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008624eval "$as_ac_var=no"
8625fi
8626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8627fi
8628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8629echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8630if test `eval echo '${'$as_ac_var'}'` = yes; then
8631 cat >>confdefs.h <<_ACEOF
8632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8633_ACEOF
8634
8635fi
8636done
8637
8638
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008639# By default we simply use the C compiler to build assembly code.
8640
8641: ${CCAS='$(CC)'}
8642# Set ASFLAGS if not already set.
8643: ${CCASFLAGS='$(CFLAGS)'}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008644
8645
8646
8647get_arch() {
8648 case "$1" in
8649 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00008650 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008651 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008652 esac
8653}
8654
8655build_arch=`get_arch $build_cpu`
8656target_arch=`get_arch $target_cpu`
8657
8658
8659
8660if test x$target_arch != x$build_arch; then
8661 REMOTE_ONLY_TRUE=
8662 REMOTE_ONLY_FALSE='#'
8663else
8664 REMOTE_ONLY_TRUE='#'
8665 REMOTE_ONLY_FALSE=
8666fi
8667
8668
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008669
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008670if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008671 ARCH_IA64_TRUE=
8672 ARCH_IA64_FALSE='#'
8673else
8674 ARCH_IA64_TRUE='#'
8675 ARCH_IA64_FALSE=
8676fi
8677
8678
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008679
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008680if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00008681 ARCH_HPPA_TRUE=
8682 ARCH_HPPA_FALSE='#'
8683else
8684 ARCH_HPPA_TRUE='#'
8685 ARCH_HPPA_FALSE=
8686fi
8687
8688
8689
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008690if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008691 ARCH_X86_TRUE=
8692 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008693else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008694 ARCH_X86_TRUE='#'
8695 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008696fi
8697
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008698
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008699if test x$target_arch != x$build_arch; then
8700 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008701fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +00008702 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
8703
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008704
8705# Check whether --enable-debug or --disable-debug was given.
8706if test "${enable_debug+set}" = set; then
8707 enableval="$enable_debug"
8708 enable_debug=yes
8709fi;
8710
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +00008711if test "x$use__thread" != xno; then
8712 echo "$as_me:$LINENO: checking for __thread" >&5
8713echo $ECHO_N "checking for __thread... $ECHO_C" >&6
8714if test "${libc_cv_gcc___thread+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716else
8717 cat > conftest.c <<\EOF
8718 __thread int a = 42;
8719EOF
8720 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 libc_cv_gcc___thread=yes
8727 else
8728 libc_cv_gcc___thread=no
8729 fi
8730 rm -f conftest*
8731fi
8732echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
8733echo "${ECHO_T}$libc_cv_gcc___thread" >&6
8734 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +00008735
8736cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +00008737#define HAVE___THREAD 1
8738_ACEOF
8739
8740 fi
8741else
8742 libc_cv_gcc___thread=no
8743fi
8744
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008745CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008746if test x$enable_debug = xyes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008747 CPPFLAGS="${CPPFLAGS} -DDEBUG"
8748else
8749 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
8750fi
8751ASFLAGS="${ASFLAGS} ${CPPFLAGS}"
8752
8753if test x$GCC = xyes; then
8754 CFLAGS="${CFLAGS} -Wall"
8755fi
8756
8757arch="$target_arch"
8758ARCH=`echo $target_arch | tr a-z A-Z`
8759
8760
8761
mostang.com!davidmf648f6f2003-01-17 07:48:52 +00008762
8763 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex"
8764
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008765cat >confcache <<\_ACEOF
8766# This file is a shell script that caches the results of configure
8767# tests run on this system so they can be shared between configure
8768# scripts and configure runs, see configure's option --config-cache.
8769# It is not useful on other systems. If it contains results you don't
8770# want to keep, you may remove or edit it.
8771#
8772# config.status only pays attention to the cache file if you give it
8773# the --recheck option to rerun configure.
8774#
8775# `ac_cv_env_foo' variables (set or unset) will be overridden when
8776# loading this file, other *unset* `ac_cv_foo' will be assigned the
8777# following values.
8778
8779_ACEOF
8780
8781# The following way of writing the cache mishandles newlines in values,
8782# but we know of no workaround that is simple, portable, and efficient.
8783# So, don't put newlines in cache variables' values.
8784# Ultrix sh set writes to stderr and can't be redirected directly,
8785# and sets the high bit in the cache file unless we assign to the vars.
8786{
8787 (set) 2>&1 |
8788 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8789 *ac_space=\ *)
8790 # `set' does not quote correctly, so add quotes (double-quote
8791 # substitution turns \\\\ into \\, and sed turns \\ into \).
8792 sed -n \
8793 "s/'/'\\\\''/g;
8794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8795 ;;
8796 *)
8797 # `set' quotes correctly as required by POSIX, so do not add quotes.
8798 sed -n \
8799 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8800 ;;
8801 esac;
8802} |
8803 sed '
8804 t clear
8805 : clear
8806 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8807 t end
8808 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8809 : end' >>confcache
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008810if diff $cache_file confcache >/dev/null 2>&1; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008811 if test -w $cache_file; then
8812 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8813 cat confcache >$cache_file
8814 else
8815 echo "not updating unwritable cache $cache_file"
8816 fi
8817fi
8818rm -f confcache
8819
8820test "x$prefix" = xNONE && prefix=$ac_default_prefix
8821# Let make expand exec_prefix.
8822test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8823
8824# VPATH may cause trouble with some makes, so we remove $(srcdir),
8825# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8826# trailing colons and then remove the whole line if VPATH becomes empty
8827# (actually we leave an empty line to preserve line numbers).
8828if test "x$srcdir" = x.; then
8829 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8830s/:*\$(srcdir):*/:/;
8831s/:*\${srcdir}:*/:/;
8832s/:*@srcdir@:*/:/;
8833s/^\([^=]*=[ ]*\):*/\1/;
8834s/:*$//;
8835s/^[^=]*=[ ]*$//;
8836}'
8837fi
8838
8839DEFS=-DHAVE_CONFIG_H
8840
8841ac_libobjs=
8842ac_ltlibobjs=
8843for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8844 # 1. Remove the extension, and $U if already installed.
8845 ac_i=`echo "$ac_i" |
8846 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8847 # 2. Add them.
8848 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8849 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8850done
8851LIBOBJS=$ac_libobjs
8852
8853LTLIBOBJS=$ac_ltlibobjs
8854
8855
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008856if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8857 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8858Usually this means the macro was only invoked conditionally." >&5
8859echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8860Usually this means the macro was only invoked conditionally." >&2;}
8861 { (exit 1); exit 1; }; }
8862fi
8863if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8864 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8865Usually this means the macro was only invoked conditionally." >&5
8866echo "$as_me: error: conditional \"AMDEP\" was never defined.
8867Usually this means the macro was only invoked conditionally." >&2;}
8868 { (exit 1); exit 1; }; }
8869fi
8870if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
8871 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
8872Usually this means the macro was only invoked conditionally." >&5
8873echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
8874Usually this means the macro was only invoked conditionally." >&2;}
8875 { (exit 1); exit 1; }; }
8876fi
8877if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
8878 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
8879Usually this means the macro was only invoked conditionally." >&5
8880echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
8881Usually this means the macro was only invoked conditionally." >&2;}
8882 { (exit 1); exit 1; }; }
8883fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00008884if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
8885 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
8886Usually this means the macro was only invoked conditionally." >&5
8887echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
8888Usually this means the macro was only invoked conditionally." >&2;}
8889 { (exit 1); exit 1; }; }
8890fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008891if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
8892 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
8893Usually this means the macro was only invoked conditionally." >&5
8894echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
8895Usually this means the macro was only invoked conditionally." >&2;}
8896 { (exit 1); exit 1; }; }
8897fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008898
8899: ${CONFIG_STATUS=./config.status}
8900ac_clean_files_save=$ac_clean_files
8901ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8902{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8903echo "$as_me: creating $CONFIG_STATUS" >&6;}
8904cat >$CONFIG_STATUS <<_ACEOF
8905#! $SHELL
8906# Generated by $as_me.
8907# Run this file to recreate the current configuration.
8908# Compiler output produced by configure, useful for debugging
8909# configure, is in config.log if it exists.
8910
8911debug=false
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008912ac_cs_recheck=false
8913ac_cs_silent=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008914SHELL=\${CONFIG_SHELL-$SHELL}
8915_ACEOF
8916
8917cat >>$CONFIG_STATUS <<\_ACEOF
8918## --------------------- ##
8919## M4sh Initialization. ##
8920## --------------------- ##
8921
8922# Be Bourne compatible
8923if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8924 emulate sh
8925 NULLCMD=:
8926 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8927 # is contrary to our usage. Disable this feature.
8928 alias -g '${1+"$@"}'='"$@"'
8929elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8930 set -o posix
8931fi
8932
8933# Support unset when possible.
8934if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8935 as_unset=unset
8936else
8937 as_unset=false
8938fi
8939
8940
8941# Work around bugs in pre-3.0 UWIN ksh.
8942$as_unset ENV MAIL MAILPATH
8943PS1='$ '
8944PS2='> '
8945PS4='+ '
8946
8947# NLS nuisances.
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008948for as_var in \
8949 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8950 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8951 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008952do
8953 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8954 eval $as_var=C; export $as_var
8955 else
8956 $as_unset $as_var
8957 fi
8958done
8959
8960# Required to use basename.
8961if expr a : '\(a\)' >/dev/null 2>&1; then
8962 as_expr=expr
8963else
8964 as_expr=false
8965fi
8966
8967if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8968 as_basename=basename
8969else
8970 as_basename=false
8971fi
8972
8973
8974# Name of the executable.
8975as_me=`$as_basename "$0" ||
8976$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8977 X"$0" : 'X\(//\)$' \| \
8978 X"$0" : 'X\(/\)$' \| \
8979 . : '\(.\)' 2>/dev/null ||
8980echo X/"$0" |
8981 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8982 /^X\/\(\/\/\)$/{ s//\1/; q; }
8983 /^X\/\(\/\).*/{ s//\1/; q; }
8984 s/.*/./; q'`
8985
8986
8987# PATH needs CR, and LINENO needs CR and PATH.
8988# Avoid depending upon Character Ranges.
8989as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8990as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8991as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8992as_cr_digits='0123456789'
8993as_cr_alnum=$as_cr_Letters$as_cr_digits
8994
8995# The user is always right.
8996if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidma69cf3d2003-01-28 03:40:06 +00008997 echo "#! /bin/sh" >conf$$.sh
8998 echo "exit 0" >>conf$$.sh
8999 chmod +x conf$$.sh
9000 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009001 PATH_SEPARATOR=';'
9002 else
9003 PATH_SEPARATOR=:
9004 fi
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009005 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009006fi
9007
9008
9009 as_lineno_1=$LINENO
9010 as_lineno_2=$LINENO
9011 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9012 test "x$as_lineno_1" != "x$as_lineno_2" &&
9013 test "x$as_lineno_3" = "x$as_lineno_2" || {
9014 # Find who we are. Look in the path if we contain no path at all
9015 # relative or not.
9016 case $0 in
9017 *[\\/]* ) as_myself=$0 ;;
9018 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019for as_dir in $PATH
9020do
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
9023 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9024done
9025
9026 ;;
9027 esac
9028 # We did not find ourselves, most probably we were run as `sh COMMAND'
9029 # in which case we are not to be found in the path.
9030 if test "x$as_myself" = x; then
9031 as_myself=$0
9032 fi
9033 if test ! -f "$as_myself"; then
9034 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9035echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9036 { (exit 1); exit 1; }; }
9037 fi
9038 case $CONFIG_SHELL in
9039 '')
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9042do
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
9045 for as_base in sh bash ksh sh5; do
9046 case $as_dir in
9047 /*)
9048 if ("$as_dir/$as_base" -c '
9049 as_lineno_1=$LINENO
9050 as_lineno_2=$LINENO
9051 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9052 test "x$as_lineno_1" != "x$as_lineno_2" &&
9053 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9054 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9055 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9056 CONFIG_SHELL=$as_dir/$as_base
9057 export CONFIG_SHELL
9058 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9059 fi;;
9060 esac
9061 done
9062done
9063;;
9064 esac
9065
9066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9067 # uniformly replaced by the line number. The first 'sed' inserts a
9068 # line-number line before each line; the second 'sed' does the real
9069 # work. The second script uses 'N' to pair each line-number line
9070 # with the numbered line, and appends trailing '-' during
9071 # substitution so that $LINENO is not a special case at line end.
9072 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9073 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9074 sed '=' <$as_myself |
9075 sed '
9076 N
9077 s,$,-,
9078 : loop
9079 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9080 t loop
9081 s,-$,,
9082 s,^['$as_cr_digits']*\n,,
9083 ' >$as_me.lineno &&
9084 chmod +x $as_me.lineno ||
9085 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9086echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9087 { (exit 1); exit 1; }; }
9088
9089 # Don't try to exec as it changes $[0], causing all sort of problems
9090 # (the dirname of $[0] is not the place where we might find the
9091 # original and so on. Autoconf is especially sensible to this).
9092 . ./$as_me.lineno
9093 # Exit status is that of the last command.
9094 exit
9095}
9096
9097
9098case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9099 *c*,-n*) ECHO_N= ECHO_C='
9100' ECHO_T=' ' ;;
9101 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9102 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9103esac
9104
9105if expr a : '\(a\)' >/dev/null 2>&1; then
9106 as_expr=expr
9107else
9108 as_expr=false
9109fi
9110
9111rm -f conf$$ conf$$.exe conf$$.file
9112echo >conf$$.file
9113if ln -s conf$$.file conf$$ 2>/dev/null; then
9114 # We could just check for DJGPP; but this test a) works b) is more generic
9115 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9116 if test -f conf$$.exe; then
9117 # Don't use ln at all; we don't have any links
9118 as_ln_s='cp -p'
9119 else
9120 as_ln_s='ln -s'
9121 fi
9122elif ln conf$$.file conf$$ 2>/dev/null; then
9123 as_ln_s=ln
9124else
9125 as_ln_s='cp -p'
9126fi
9127rm -f conf$$ conf$$.exe conf$$.file
9128
9129if mkdir -p . 2>/dev/null; then
9130 as_mkdir_p=:
9131else
9132 as_mkdir_p=false
9133fi
9134
9135as_executable_p="test -f"
9136
9137# Sed expression to map a string onto a valid CPP name.
9138as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9139
9140# Sed expression to map a string onto a valid variable name.
9141as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9142
9143
9144# IFS
9145# We need space, tab and new line, in precisely that order.
9146as_nl='
9147'
9148IFS=" $as_nl"
9149
9150# CDPATH.
9151$as_unset CDPATH
9152
9153exec 6>&1
9154
9155# Open the log real soon, to keep \$[0] and so on meaningful, and to
9156# report actual input values of CONFIG_FILES etc. instead of their
9157# values after options handling. Logging --version etc. is OK.
9158exec 5>>config.log
9159{
9160 echo
9161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9162## Running $as_me. ##
9163_ASBOX
9164} >&5
9165cat >&5 <<_CSEOF
9166
9167This file was extended by $as_me, which was
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009168generated by GNU Autoconf 2.57. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009169
9170 CONFIG_FILES = $CONFIG_FILES
9171 CONFIG_HEADERS = $CONFIG_HEADERS
9172 CONFIG_LINKS = $CONFIG_LINKS
9173 CONFIG_COMMANDS = $CONFIG_COMMANDS
9174 $ $0 $@
9175
9176_CSEOF
9177echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9178echo >&5
9179_ACEOF
9180
9181# Files that config.status was made for.
9182if test -n "$ac_config_files"; then
9183 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9184fi
9185
9186if test -n "$ac_config_headers"; then
9187 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9188fi
9189
9190if test -n "$ac_config_links"; then
9191 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9192fi
9193
9194if test -n "$ac_config_commands"; then
9195 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9196fi
9197
9198cat >>$CONFIG_STATUS <<\_ACEOF
9199
9200ac_cs_usage="\
9201\`$as_me' instantiates files from templates according to the
9202current configuration.
9203
9204Usage: $0 [OPTIONS] [FILE]...
9205
9206 -h, --help print this help, then exit
9207 -V, --version print version number, then exit
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009208 -q, --quiet do not print progress messages
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009209 -d, --debug don't remove temporary files
9210 --recheck update $as_me by reconfiguring in the same conditions
9211 --file=FILE[:TEMPLATE]
9212 instantiate the configuration file FILE
9213 --header=FILE[:TEMPLATE]
9214 instantiate the configuration header FILE
9215
9216Configuration files:
9217$config_files
9218
9219Configuration headers:
9220$config_headers
9221
9222Configuration links:
9223$config_links
9224
9225Configuration commands:
9226$config_commands
9227
9228Report bugs to <bug-autoconf@gnu.org>."
9229_ACEOF
9230
9231cat >>$CONFIG_STATUS <<_ACEOF
9232ac_cs_version="\\
9233config.status
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009234configured by $0, generated by GNU Autoconf 2.57,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009235 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9236
9237Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9238Free Software Foundation, Inc.
9239This config.status script is free software; the Free Software Foundation
9240gives unlimited permission to copy, distribute and modify it."
9241srcdir=$srcdir
9242INSTALL="$INSTALL"
9243_ACEOF
9244
9245cat >>$CONFIG_STATUS <<\_ACEOF
9246# If no file are specified by the user, then we need to provide default
9247# value. By we need to know if files were specified by the user.
9248ac_need_defaults=:
9249while test $# != 0
9250do
9251 case $1 in
9252 --*=*)
9253 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9254 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9255 ac_shift=:
9256 ;;
9257 -*)
9258 ac_option=$1
9259 ac_optarg=$2
9260 ac_shift=shift
9261 ;;
9262 *) # This is not an option, so the user has probably given explicit
9263 # arguments.
9264 ac_option=$1
9265 ac_need_defaults=false;;
9266 esac
9267
9268 case $ac_option in
9269 # Handling of the options.
9270_ACEOF
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009271cat >>$CONFIG_STATUS <<\_ACEOF
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9273 ac_cs_recheck=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009274 --version | --vers* | -V )
9275 echo "$ac_cs_version"; exit 0 ;;
9276 --he | --h)
9277 # Conflict between --help and --header
9278 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9279Try \`$0 --help' for more information." >&5
9280echo "$as_me: error: ambiguous option: $1
9281Try \`$0 --help' for more information." >&2;}
9282 { (exit 1); exit 1; }; };;
9283 --help | --hel | -h )
9284 echo "$ac_cs_usage"; exit 0 ;;
9285 --debug | --d* | -d )
9286 debug=: ;;
9287 --file | --fil | --fi | --f )
9288 $ac_shift
9289 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9290 ac_need_defaults=false;;
9291 --header | --heade | --head | --hea )
9292 $ac_shift
9293 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9294 ac_need_defaults=false;;
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9296 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9297 ac_cs_silent=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009298
9299 # This is an error.
9300 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9301Try \`$0 --help' for more information." >&5
9302echo "$as_me: error: unrecognized option: $1
9303Try \`$0 --help' for more information." >&2;}
9304 { (exit 1); exit 1; }; } ;;
9305
9306 *) ac_config_targets="$ac_config_targets $1" ;;
9307
9308 esac
9309 shift
9310done
9311
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009312ac_configure_extra_args=
9313
9314if $ac_cs_silent; then
9315 exec 6>/dev/null
9316 ac_configure_extra_args="$ac_configure_extra_args --silent"
9317fi
9318
9319_ACEOF
9320cat >>$CONFIG_STATUS <<_ACEOF
9321if \$ac_cs_recheck; then
9322 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9323 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9324fi
9325
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009326_ACEOF
9327
9328cat >>$CONFIG_STATUS <<_ACEOF
9329#
9330# INIT-COMMANDS section.
9331#
9332
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009333AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009334
9335_ACEOF
9336
9337
9338
9339cat >>$CONFIG_STATUS <<\_ACEOF
9340for ac_config_target in $ac_config_targets
9341do
9342 case "$ac_config_target" in
9343 # Handling of arguments.
9344 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9345 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9346 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9347 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +00009348 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009349 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +00009350 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009351 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009352 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
9353 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9354echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9355 { (exit 1); exit 1; }; };;
9356 esac
9357done
9358
9359# If the user did not use the arguments to specify the items to instantiate,
9360# then the envvar interface is used. Set only those that are not.
9361# We use the long form for the default assignment because of an extremely
9362# bizarre bug on SunOS 4.1.3.
9363if $ac_need_defaults; then
9364 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9365 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9366 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9367 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9368fi
9369
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009370# Have a temporary directory for convenience. Make it in the build tree
9371# simply because there is no reason to put it here, and in addition,
9372# creating and moving files from /tmp can sometimes cause problems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009373# Create a temporary directory, and hook for its removal unless debugging.
9374$debug ||
9375{
9376 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9377 trap '{ (exit 1); exit 1; }' 1 2 13 15
9378}
9379
9380# Create a (secure) tmp directory for tmp files.
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009381
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009382{
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009383 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009384 test -n "$tmp" && test -d "$tmp"
9385} ||
9386{
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009387 tmp=./confstat$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009388 (umask 077 && mkdir $tmp)
9389} ||
9390{
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009391 echo "$me: cannot create a temporary directory in ." >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009392 { (exit 1); exit 1; }
9393}
9394
9395_ACEOF
9396
9397cat >>$CONFIG_STATUS <<_ACEOF
9398
9399#
9400# CONFIG_FILES section.
9401#
9402
9403# No need to generate the scripts if there are no CONFIG_FILES.
9404# This happens for instance when ./config.status config.h
9405if test -n "\$CONFIG_FILES"; then
9406 # Protect against being on the right side of a sed subst in config.status.
9407 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9408 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9409s,@SHELL@,$SHELL,;t t
9410s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9411s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9412s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9413s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9414s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9415s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9416s,@exec_prefix@,$exec_prefix,;t t
9417s,@prefix@,$prefix,;t t
9418s,@program_transform_name@,$program_transform_name,;t t
9419s,@bindir@,$bindir,;t t
9420s,@sbindir@,$sbindir,;t t
9421s,@libexecdir@,$libexecdir,;t t
9422s,@datadir@,$datadir,;t t
9423s,@sysconfdir@,$sysconfdir,;t t
9424s,@sharedstatedir@,$sharedstatedir,;t t
9425s,@localstatedir@,$localstatedir,;t t
9426s,@libdir@,$libdir,;t t
9427s,@includedir@,$includedir,;t t
9428s,@oldincludedir@,$oldincludedir,;t t
9429s,@infodir@,$infodir,;t t
9430s,@mandir@,$mandir,;t t
9431s,@build_alias@,$build_alias,;t t
9432s,@host_alias@,$host_alias,;t t
9433s,@target_alias@,$target_alias,;t t
9434s,@DEFS@,$DEFS,;t t
9435s,@ECHO_C@,$ECHO_C,;t t
9436s,@ECHO_N@,$ECHO_N,;t t
9437s,@ECHO_T@,$ECHO_T,;t t
9438s,@LIBS@,$LIBS,;t t
9439s,@build@,$build,;t t
9440s,@build_cpu@,$build_cpu,;t t
9441s,@build_vendor@,$build_vendor,;t t
9442s,@build_os@,$build_os,;t t
9443s,@host@,$host,;t t
9444s,@host_cpu@,$host_cpu,;t t
9445s,@host_vendor@,$host_vendor,;t t
9446s,@host_os@,$host_os,;t t
9447s,@target@,$target,;t t
9448s,@target_cpu@,$target_cpu,;t t
9449s,@target_vendor@,$target_vendor,;t t
9450s,@target_os@,$target_os,;t t
9451s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9452s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9453s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9454s,@PACKAGE@,$PACKAGE,;t t
9455s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009456s,@ACLOCAL@,$ACLOCAL,;t t
9457s,@AUTOCONF@,$AUTOCONF,;t t
9458s,@AUTOMAKE@,$AUTOMAKE,;t t
9459s,@AUTOHEADER@,$AUTOHEADER,;t t
9460s,@MAKEINFO@,$MAKEINFO,;t t
9461s,@AMTAR@,$AMTAR,;t t
9462s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009463s,@STRIP@,$STRIP,;t t
9464s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009465s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9466s,@AWK@,$AWK,;t t
9467s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009468s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9469s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9470s,@MAINT@,$MAINT,;t t
9471s,@CC@,$CC,;t t
9472s,@CFLAGS@,$CFLAGS,;t t
9473s,@LDFLAGS@,$LDFLAGS,;t t
9474s,@CPPFLAGS@,$CPPFLAGS,;t t
9475s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009476s,@EXEEXT@,$EXEEXT,;t t
9477s,@OBJEXT@,$OBJEXT,;t t
9478s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009479s,@am__include@,$am__include,;t t
9480s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009481s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9482s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9483s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009484s,@CCDEPMODE@,$CCDEPMODE,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009485s,@LN_S@,$LN_S,;t t
9486s,@ECHO@,$ECHO,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009487s,@RANLIB@,$RANLIB,;t t
9488s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009489s,@CPP@,$CPP,;t t
9490s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009491s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009492s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009493s,@CCAS@,$CCAS,;t t
9494s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009495s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
9496s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
9497s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
9498s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00009499s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
9500s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009501s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
9502s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009503s,@arch@,$arch,;t t
9504s,@ARCH@,$ARCH,;t t
9505s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9506CEOF
9507
9508_ACEOF
9509
9510 cat >>$CONFIG_STATUS <<\_ACEOF
9511 # Split the substitutions into bite-sized pieces for seds with
9512 # small command number limits, like on Digital OSF/1 and HP-UX.
9513 ac_max_sed_lines=48
9514 ac_sed_frag=1 # Number of current file.
9515 ac_beg=1 # First line for current file.
9516 ac_end=$ac_max_sed_lines # Line after last line for current file.
9517 ac_more_lines=:
9518 ac_sed_cmds=
9519 while $ac_more_lines; do
9520 if test $ac_beg -gt 1; then
9521 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9522 else
9523 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9524 fi
9525 if test ! -s $tmp/subs.frag; then
9526 ac_more_lines=false
9527 else
9528 # The purpose of the label and of the branching condition is to
9529 # speed up the sed processing (if there are no `@' at all, there
9530 # is no need to browse any of the substitutions).
9531 # These are the two extra sed commands mentioned above.
9532 (echo ':t
9533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9534 if test -z "$ac_sed_cmds"; then
9535 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9536 else
9537 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9538 fi
9539 ac_sed_frag=`expr $ac_sed_frag + 1`
9540 ac_beg=$ac_end
9541 ac_end=`expr $ac_end + $ac_max_sed_lines`
9542 fi
9543 done
9544 if test -z "$ac_sed_cmds"; then
9545 ac_sed_cmds=cat
9546 fi
9547fi # test -n "$CONFIG_FILES"
9548
9549_ACEOF
9550cat >>$CONFIG_STATUS <<\_ACEOF
9551for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9553 case $ac_file in
9554 - | *:- | *:-:* ) # input from stdin
9555 cat >$tmp/stdin
9556 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9558 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9560 * ) ac_file_in=$ac_file.in ;;
9561 esac
9562
9563 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9564 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9565$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9566 X"$ac_file" : 'X\(//\)[^/]' \| \
9567 X"$ac_file" : 'X\(//\)$' \| \
9568 X"$ac_file" : 'X\(/\)' \| \
9569 . : '\(.\)' 2>/dev/null ||
9570echo X"$ac_file" |
9571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9573 /^X\(\/\/\)$/{ s//\1/; q; }
9574 /^X\(\/\).*/{ s//\1/; q; }
9575 s/.*/./; q'`
9576 { if $as_mkdir_p; then
9577 mkdir -p "$ac_dir"
9578 else
9579 as_dir="$ac_dir"
9580 as_dirs=
9581 while test ! -d "$as_dir"; do
9582 as_dirs="$as_dir $as_dirs"
9583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9584$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9585 X"$as_dir" : 'X\(//\)[^/]' \| \
9586 X"$as_dir" : 'X\(//\)$' \| \
9587 X"$as_dir" : 'X\(/\)' \| \
9588 . : '\(.\)' 2>/dev/null ||
9589echo X"$as_dir" |
9590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9592 /^X\(\/\/\)$/{ s//\1/; q; }
9593 /^X\(\/\).*/{ s//\1/; q; }
9594 s/.*/./; q'`
9595 done
9596 test ! -n "$as_dirs" || mkdir $as_dirs
9597 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9598echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9599 { (exit 1); exit 1; }; }; }
9600
9601 ac_builddir=.
9602
9603if test "$ac_dir" != .; then
9604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9605 # A "../" for each directory in $ac_dir_suffix.
9606 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9607else
9608 ac_dir_suffix= ac_top_builddir=
9609fi
9610
9611case $srcdir in
9612 .) # No --srcdir option. We are building in place.
9613 ac_srcdir=.
9614 if test -z "$ac_top_builddir"; then
9615 ac_top_srcdir=.
9616 else
9617 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9618 fi ;;
9619 [\\/]* | ?:[\\/]* ) # Absolute path.
9620 ac_srcdir=$srcdir$ac_dir_suffix;
9621 ac_top_srcdir=$srcdir ;;
9622 *) # Relative path.
9623 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9624 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9625esac
9626# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9627# absolute.
9628ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9629ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9630ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9631ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9632
9633
9634 case $INSTALL in
9635 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9636 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9637 esac
9638
9639 if test x"$ac_file" != x-; then
9640 { echo "$as_me:$LINENO: creating $ac_file" >&5
9641echo "$as_me: creating $ac_file" >&6;}
9642 rm -f "$ac_file"
9643 fi
9644 # Let's still pretend it is `configure' which instantiates (i.e., don't
9645 # use $as_me), people would be surprised to read:
9646 # /* config.h. Generated by config.status. */
9647 if test x"$ac_file" = x-; then
9648 configure_input=
9649 else
9650 configure_input="$ac_file. "
9651 fi
9652 configure_input=$configure_input"Generated from `echo $ac_file_in |
9653 sed 's,.*/,,'` by configure."
9654
9655 # First look for the input files in the build tree, otherwise in the
9656 # src tree.
9657 ac_file_inputs=`IFS=:
9658 for f in $ac_file_in; do
9659 case $f in
9660 -) echo $tmp/stdin ;;
9661 [\\/$]*)
9662 # Absolute (can't be DOS-style, as IFS=:)
9663 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9664echo "$as_me: error: cannot find input file: $f" >&2;}
9665 { (exit 1); exit 1; }; }
9666 echo $f;;
9667 *) # Relative
9668 if test -f "$f"; then
9669 # Build tree
9670 echo $f
9671 elif test -f "$srcdir/$f"; then
9672 # Source tree
9673 echo $srcdir/$f
9674 else
9675 # /dev/null tree
9676 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9677echo "$as_me: error: cannot find input file: $f" >&2;}
9678 { (exit 1); exit 1; }; }
9679 fi;;
9680 esac
9681 done` || { (exit 1); exit 1; }
9682_ACEOF
9683cat >>$CONFIG_STATUS <<_ACEOF
9684 sed "$ac_vpsub
9685$extrasub
9686_ACEOF
9687cat >>$CONFIG_STATUS <<\_ACEOF
9688:t
9689/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9690s,@configure_input@,$configure_input,;t t
9691s,@srcdir@,$ac_srcdir,;t t
9692s,@abs_srcdir@,$ac_abs_srcdir,;t t
9693s,@top_srcdir@,$ac_top_srcdir,;t t
9694s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9695s,@builddir@,$ac_builddir,;t t
9696s,@abs_builddir@,$ac_abs_builddir,;t t
9697s,@top_builddir@,$ac_top_builddir,;t t
9698s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9699s,@INSTALL@,$ac_INSTALL,;t t
9700" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9701 rm -f $tmp/stdin
9702 if test x"$ac_file" != x-; then
9703 mv $tmp/out $ac_file
9704 else
9705 cat $tmp/out
9706 rm -f $tmp/out
9707 fi
9708
9709done
9710_ACEOF
9711cat >>$CONFIG_STATUS <<\_ACEOF
9712
9713#
9714# CONFIG_HEADER section.
9715#
9716
9717# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9718# NAME is the cpp macro being defined and VALUE is the value it is being given.
9719#
9720# ac_d sets the value in "#define NAME VALUE" lines.
9721ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9722ac_dB='[ ].*$,\1#\2'
9723ac_dC=' '
9724ac_dD=',;t'
9725# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9726ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9727ac_uB='$,\1#\2define\3'
9728ac_uC=' '
9729ac_uD=',;t'
9730
9731for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9733 case $ac_file in
9734 - | *:- | *:-:* ) # input from stdin
9735 cat >$tmp/stdin
9736 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9738 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9740 * ) ac_file_in=$ac_file.in ;;
9741 esac
9742
9743 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9744echo "$as_me: creating $ac_file" >&6;}
9745
9746 # First look for the input files in the build tree, otherwise in the
9747 # src tree.
9748 ac_file_inputs=`IFS=:
9749 for f in $ac_file_in; do
9750 case $f in
9751 -) echo $tmp/stdin ;;
9752 [\\/$]*)
9753 # Absolute (can't be DOS-style, as IFS=:)
9754 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9755echo "$as_me: error: cannot find input file: $f" >&2;}
9756 { (exit 1); exit 1; }; }
9757 echo $f;;
9758 *) # Relative
9759 if test -f "$f"; then
9760 # Build tree
9761 echo $f
9762 elif test -f "$srcdir/$f"; then
9763 # Source tree
9764 echo $srcdir/$f
9765 else
9766 # /dev/null tree
9767 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9768echo "$as_me: error: cannot find input file: $f" >&2;}
9769 { (exit 1); exit 1; }; }
9770 fi;;
9771 esac
9772 done` || { (exit 1); exit 1; }
9773 # Remove the trailing spaces.
9774 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9775
9776_ACEOF
9777
9778# Transform confdefs.h into two sed scripts, `conftest.defines' and
9779# `conftest.undefs', that substitutes the proper values into
9780# config.h.in to produce config.h. The first handles `#define'
9781# templates, and the second `#undef' templates.
9782# And first: Protect against being on the right side of a sed subst in
9783# config.status. Protect against being in an unquoted here document
9784# in config.status.
9785rm -f conftest.defines conftest.undefs
9786# Using a here document instead of a string reduces the quoting nightmare.
9787# Putting comments in sed scripts is not portable.
9788#
9789# `end' is used to avoid that the second main sed command (meant for
9790# 0-ary CPP macros) applies to n-ary macro definitions.
9791# See the Autoconf documentation for `clear'.
9792cat >confdef2sed.sed <<\_ACEOF
9793s/[\\&,]/\\&/g
9794s,[\\$`],\\&,g
9795t clear
9796: clear
9797s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9798t end
9799s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9800: end
9801_ACEOF
9802# If some macros were called several times there might be several times
9803# the same #defines, which is useless. Nevertheless, we may not want to
9804# sort them, since we want the *last* AC-DEFINE to be honored.
9805uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9806sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9807rm -f confdef2sed.sed
9808
9809# This sed command replaces #undef with comments. This is necessary, for
9810# example, in the case of _POSIX_SOURCE, which is predefined and required
9811# on some systems where configure will not decide to define it.
9812cat >>conftest.undefs <<\_ACEOF
9813s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9814_ACEOF
9815
9816# Break up conftest.defines because some shells have a limit on the size
9817# of here documents, and old seds have small limits too (100 cmds).
9818echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9819echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9820echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9821echo ' :' >>$CONFIG_STATUS
9822rm -f conftest.tail
9823while grep . conftest.defines >/dev/null
9824do
9825 # Write a limited-size here document to $tmp/defines.sed.
9826 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9827 # Speed up: don't consider the non `#define' lines.
9828 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9829 # Work around the forget-to-reset-the-flag bug.
9830 echo 't clr' >>$CONFIG_STATUS
9831 echo ': clr' >>$CONFIG_STATUS
9832 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9833 echo 'CEOF
9834 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9835 rm -f $tmp/in
9836 mv $tmp/out $tmp/in
9837' >>$CONFIG_STATUS
9838 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9839 rm -f conftest.defines
9840 mv conftest.tail conftest.defines
9841done
9842rm -f conftest.defines
9843echo ' fi # grep' >>$CONFIG_STATUS
9844echo >>$CONFIG_STATUS
9845
9846# Break up conftest.undefs because some shells have a limit on the size
9847# of here documents, and old seds have small limits too (100 cmds).
9848echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9849rm -f conftest.tail
9850while grep . conftest.undefs >/dev/null
9851do
9852 # Write a limited-size here document to $tmp/undefs.sed.
9853 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9854 # Speed up: don't consider the non `#undef'
9855 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9856 # Work around the forget-to-reset-the-flag bug.
9857 echo 't clr' >>$CONFIG_STATUS
9858 echo ': clr' >>$CONFIG_STATUS
9859 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9860 echo 'CEOF
9861 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9862 rm -f $tmp/in
9863 mv $tmp/out $tmp/in
9864' >>$CONFIG_STATUS
9865 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9866 rm -f conftest.undefs
9867 mv conftest.tail conftest.undefs
9868done
9869rm -f conftest.undefs
9870
9871cat >>$CONFIG_STATUS <<\_ACEOF
9872 # Let's still pretend it is `configure' which instantiates (i.e., don't
9873 # use $as_me), people would be surprised to read:
9874 # /* config.h. Generated by config.status. */
9875 if test x"$ac_file" = x-; then
9876 echo "/* Generated by configure. */" >$tmp/config.h
9877 else
9878 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9879 fi
9880 cat $tmp/in >>$tmp/config.h
9881 rm -f $tmp/in
9882 if test x"$ac_file" != x-; then
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009883 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009884 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9885echo "$as_me: $ac_file is unchanged" >&6;}
9886 else
9887 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9888$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9889 X"$ac_file" : 'X\(//\)[^/]' \| \
9890 X"$ac_file" : 'X\(//\)$' \| \
9891 X"$ac_file" : 'X\(/\)' \| \
9892 . : '\(.\)' 2>/dev/null ||
9893echo X"$ac_file" |
9894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9896 /^X\(\/\/\)$/{ s//\1/; q; }
9897 /^X\(\/\).*/{ s//\1/; q; }
9898 s/.*/./; q'`
9899 { if $as_mkdir_p; then
9900 mkdir -p "$ac_dir"
9901 else
9902 as_dir="$ac_dir"
9903 as_dirs=
9904 while test ! -d "$as_dir"; do
9905 as_dirs="$as_dir $as_dirs"
9906 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9907$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9908 X"$as_dir" : 'X\(//\)[^/]' \| \
9909 X"$as_dir" : 'X\(//\)$' \| \
9910 X"$as_dir" : 'X\(/\)' \| \
9911 . : '\(.\)' 2>/dev/null ||
9912echo X"$as_dir" |
9913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9915 /^X\(\/\/\)$/{ s//\1/; q; }
9916 /^X\(\/\).*/{ s//\1/; q; }
9917 s/.*/./; q'`
9918 done
9919 test ! -n "$as_dirs" || mkdir $as_dirs
9920 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9921echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9922 { (exit 1); exit 1; }; }; }
9923
9924 rm -f $ac_file
9925 mv $tmp/config.h $ac_file
9926 fi
9927 else
9928 cat $tmp/config.h
9929 rm -f $tmp/config.h
9930 fi
9931 # Run the commands associated with the file.
9932 case $ac_file in
9933 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009934echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009935 ;;
9936 esac
9937done
9938_ACEOF
9939cat >>$CONFIG_STATUS <<\_ACEOF
9940
9941#
9942# CONFIG_LINKS section.
9943#
9944
9945for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9946 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9947 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9948
9949 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9950echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9951
9952 if test ! -r $srcdir/$ac_source; then
9953 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9954echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9955 { (exit 1); exit 1; }; }
9956 fi
9957 rm -f $ac_dest
9958
9959 # Make relative symlinks.
9960 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9961$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9962 X"$ac_dest" : 'X\(//\)[^/]' \| \
9963 X"$ac_dest" : 'X\(//\)$' \| \
9964 X"$ac_dest" : 'X\(/\)' \| \
9965 . : '\(.\)' 2>/dev/null ||
9966echo X"$ac_dest" |
9967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9969 /^X\(\/\/\)$/{ s//\1/; q; }
9970 /^X\(\/\).*/{ s//\1/; q; }
9971 s/.*/./; q'`
9972 { if $as_mkdir_p; then
9973 mkdir -p "$ac_dest_dir"
9974 else
9975 as_dir="$ac_dest_dir"
9976 as_dirs=
9977 while test ! -d "$as_dir"; do
9978 as_dirs="$as_dir $as_dirs"
9979 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9980$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9981 X"$as_dir" : 'X\(//\)[^/]' \| \
9982 X"$as_dir" : 'X\(//\)$' \| \
9983 X"$as_dir" : 'X\(/\)' \| \
9984 . : '\(.\)' 2>/dev/null ||
9985echo X"$as_dir" |
9986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9988 /^X\(\/\/\)$/{ s//\1/; q; }
9989 /^X\(\/\).*/{ s//\1/; q; }
9990 s/.*/./; q'`
9991 done
9992 test ! -n "$as_dirs" || mkdir $as_dirs
9993 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9994echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9995 { (exit 1); exit 1; }; }; }
9996
9997 ac_builddir=.
9998
9999if test "$ac_dest_dir" != .; then
10000 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10001 # A "../" for each directory in $ac_dir_suffix.
10002 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10003else
10004 ac_dir_suffix= ac_top_builddir=
10005fi
10006
10007case $srcdir in
10008 .) # No --srcdir option. We are building in place.
10009 ac_srcdir=.
10010 if test -z "$ac_top_builddir"; then
10011 ac_top_srcdir=.
10012 else
10013 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10014 fi ;;
10015 [\\/]* | ?:[\\/]* ) # Absolute path.
10016 ac_srcdir=$srcdir$ac_dir_suffix;
10017 ac_top_srcdir=$srcdir ;;
10018 *) # Relative path.
10019 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10020 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10021esac
10022# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
10023# absolute.
10024ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
10025ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
10026ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
10027ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
10028
10029
10030 case $srcdir in
10031 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10032 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10033 esac
10034
10035 # Try a symlink, then a hard link, then a copy.
10036 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10037 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
10038 cp -p $srcdir/$ac_source $ac_dest ||
10039 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10040echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10041 { (exit 1); exit 1; }; }
10042done
10043_ACEOF
10044cat >>$CONFIG_STATUS <<\_ACEOF
10045
10046#
10047# CONFIG_COMMANDS section.
10048#
10049for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10050 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10051 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10052 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10053$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10054 X"$ac_dest" : 'X\(//\)[^/]' \| \
10055 X"$ac_dest" : 'X\(//\)$' \| \
10056 X"$ac_dest" : 'X\(/\)' \| \
10057 . : '\(.\)' 2>/dev/null ||
10058echo X"$ac_dest" |
10059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10061 /^X\(\/\/\)$/{ s//\1/; q; }
10062 /^X\(\/\).*/{ s//\1/; q; }
10063 s/.*/./; q'`
10064 ac_builddir=.
10065
10066if test "$ac_dir" != .; then
10067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10068 # A "../" for each directory in $ac_dir_suffix.
10069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10070else
10071 ac_dir_suffix= ac_top_builddir=
10072fi
10073
10074case $srcdir in
10075 .) # No --srcdir option. We are building in place.
10076 ac_srcdir=.
10077 if test -z "$ac_top_builddir"; then
10078 ac_top_srcdir=.
10079 else
10080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10081 fi ;;
10082 [\\/]* | ?:[\\/]* ) # Absolute path.
10083 ac_srcdir=$srcdir$ac_dir_suffix;
10084 ac_top_srcdir=$srcdir ;;
10085 *) # Relative path.
10086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10088esac
10089# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10090# absolute.
10091ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10092ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10093ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10094ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10095
10096
10097 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10098echo "$as_me: executing $ac_dest commands" >&6;}
10099 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010100 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10101 # Strip MF so we end up with the name of the file.
10102 mf=`echo "$mf" | sed -e 's/:.*$//'`
10103 # Check whether this is an Automake generated Makefile or not.
10104 # We used to match only the files named `Makefile.in', but
10105 # some people rename them; so instead we look at the file content.
10106 # Grep'ing the first line is not enough: some people post-process
10107 # each Makefile.in and add a new line on top of each file to say so.
10108 # So let's grep whole file.
10109 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10110 dirpart=`(dirname "$mf") 2>/dev/null ||
10111$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10112 X"$mf" : 'X\(//\)[^/]' \| \
10113 X"$mf" : 'X\(//\)$' \| \
10114 X"$mf" : 'X\(/\)' \| \
10115 . : '\(.\)' 2>/dev/null ||
10116echo X"$mf" |
10117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10119 /^X\(\/\/\)$/{ s//\1/; q; }
10120 /^X\(\/\).*/{ s//\1/; q; }
10121 s/.*/./; q'`
10122 else
10123 continue
10124 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010125 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10126 # Extract the definition of DEP_FILES from the Makefile without
10127 # running `make'.
10128 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10129 test -z "$DEPDIR" && continue
10130 # When using ansi2knr, U may be empty or an underscore; expand it
10131 U=`sed -n -e '/^U = / s///p' < "$mf"`
10132 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10133 # We invoke sed twice because it is the simplest approach to
10134 # changing $(DEPDIR) to its actual value in the expansion.
10135 for file in `sed -n -e '
10136 /^DEP_FILES = .*\\\\$/ {
10137 s/^DEP_FILES = //
10138 :loop
10139 s/\\\\$//
10140 p
10141 n
10142 /\\\\$/ b loop
10143 p
10144 }
10145 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10146 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10147 # Make sure the directory exists.
10148 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000010149 fdir=`(dirname "$file") 2>/dev/null ||
10150$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10151 X"$file" : 'X\(//\)[^/]' \| \
10152 X"$file" : 'X\(//\)$' \| \
10153 X"$file" : 'X\(/\)' \| \
10154 . : '\(.\)' 2>/dev/null ||
10155echo X"$file" |
10156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10158 /^X\(\/\/\)$/{ s//\1/; q; }
10159 /^X\(\/\).*/{ s//\1/; q; }
10160 s/.*/./; q'`
10161 { if $as_mkdir_p; then
10162 mkdir -p $dirpart/$fdir
10163 else
10164 as_dir=$dirpart/$fdir
10165 as_dirs=
10166 while test ! -d "$as_dir"; do
10167 as_dirs="$as_dir $as_dirs"
10168 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10170 X"$as_dir" : 'X\(//\)[^/]' \| \
10171 X"$as_dir" : 'X\(//\)$' \| \
10172 X"$as_dir" : 'X\(/\)' \| \
10173 . : '\(.\)' 2>/dev/null ||
10174echo X"$as_dir" |
10175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10177 /^X\(\/\/\)$/{ s//\1/; q; }
10178 /^X\(\/\).*/{ s//\1/; q; }
10179 s/.*/./; q'`
10180 done
10181 test ! -n "$as_dirs" || mkdir $as_dirs
10182 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10183echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10184 { (exit 1); exit 1; }; }; }
10185
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010186 # echo "creating $dirpart/$file"
10187 echo '# dummy' > "$dirpart/$file"
10188 done
10189done
10190 ;;
10191 esac
10192done
10193_ACEOF
10194
10195cat >>$CONFIG_STATUS <<\_ACEOF
10196
10197{ (exit 0); exit 0; }
10198_ACEOF
10199chmod +x $CONFIG_STATUS
10200ac_clean_files=$ac_clean_files_save
10201
10202
10203# configure is writing to config.log, and then calls config.status.
10204# config.status does its own redirection, appending to config.log.
10205# Unfortunately, on DOS this fails, as config.log is still kept open
10206# by configure, so config.status won't be able to write to it; its
10207# output is simply discarded. So we exec the FD to /dev/null,
10208# effectively closing config.log, so it can be properly (re)opened and
10209# appended to by config.status. When coming back to configure, we
10210# need to make the FD available again.
10211if test "$no_create" != yes; then
10212 ac_cs_success=:
hp.com!davidma69cf3d2003-01-28 03:40:06 +000010213 ac_config_status_args=
10214 test "$silent" = yes &&
10215 ac_config_status_args="$ac_config_status_args --quiet"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010216 exec 5>/dev/null
hp.com!davidma69cf3d2003-01-28 03:40:06 +000010217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000010218 exec 5>>config.log
10219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10220 # would make configure fail if this is the last instruction.
10221 $ac_cs_success || { (exit 1); exit 1; }
10222fi
10223