2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
20 # Check that we are running under the correct shell.
21 SHELL=${CONFIG_SHELL-/bin/sh}
25 # Remove one level of quotation (which was required for Make).
26 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
31 if test "X$1" = X--no-reexec; then
32 # Discard the --no-reexec flag, and continue.
34 elif test "X$1" = X--fallback-echo; then
35 # Avoid inline document here, it may be left over
37 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38 # Yippee, $echo works!
41 # Restart under the correct shell.
42 exec $SHELL "$0" --no-reexec ${1+"$@"}
45 if test "X$1" = X--fallback-echo; then
46 # used as fallback echo
54 # The HP-UX ksh and POSIX shell print the target directory to stdout
56 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
58 if test -z "$ECHO"; then
59 if test "X${echo_test_string+set}" != Xset; then
60 # find a string as large as possible, as long as the shell can cope with it
61 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64 echo_test_string="`eval $cmd`" &&
65 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
72 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74 test "X$echo_testing_string" = "X$echo_test_string"; then
77 # The Solaris, AIX, and Digital Unix default echo programs unquote
78 # backslashes. This makes it impossible to quote backslashes using
79 # echo "$something" | sed 's/\\/\\\\/g'
81 # So, first we look for a working echo in the user's PATH.
83 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84 for dir in $PATH /usr/ucb; do
85 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88 test "X$echo_testing_string" = "X$echo_test_string"; then
95 if test "X$echo" = Xecho; then
96 # We didn't find a better echo, so look for alternatives.
97 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99 test "X$echo_testing_string" = "X$echo_test_string"; then
100 # This shell has a builtin print -r that does the trick.
102 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103 test "X$CONFIG_SHELL" != X/bin/ksh; then
104 # If we have ksh, try running configure again with it.
105 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106 export ORIGINAL_CONFIG_SHELL
107 CONFIG_SHELL=/bin/ksh
109 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
113 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115 test "X$echo_testing_string" = "X$echo_test_string"; then
118 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119 test "X$echo_testing_string" = 'X\t' &&
120 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121 test "X$echo_testing_string" = "X$echo_test_string"; then
122 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
124 SHELL="$CONFIG_SHELL"
126 echo="$CONFIG_SHELL $0 --fallback-echo"
127 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128 test "X$echo_testing_string" = 'X\t' &&
129 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130 test "X$echo_testing_string" = "X$echo_test_string"; then
131 echo="$CONFIG_SHELL $0 --fallback-echo"
133 # maybe with a smaller string...
136 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
144 if test "$prev" != 'sed 50q "$0"'; then
145 echo_test_string=`eval $prev`
146 export echo_test_string
147 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
149 # Oops. We lost completely, so just stick with echo.
158 # Copy echo and quote the copy suitably for passing to libtool from
159 # the Makefile, instead of quoting the original, which is used later.
161 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165 # Avoid depending upon Character Ranges.
166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
169 as_cr_digits='0123456789'
170 as_cr_alnum=$as_cr_Letters$as_cr_digits
172 # Sed expression to map a string onto a valid variable name.
173 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
175 # Sed expression to map a string onto a valid CPP name.
176 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
178 # Be Bourne compatible
179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
186 # Name of the executable.
187 as_me=`echo "$0" |sed 's,.*[\\/],,'`
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Support unset when possible.
216 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
223 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
224 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
225 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
226 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
227 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
228 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
229 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
230 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
233 # We need space, tab and new line, in precisely that order.
239 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
242 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
243 # so uname gets run too.
244 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 ac_default_prefix=/usr/local
255 SHELL=${CONFIG_SHELL-/bin/sh}
257 # Maximum number of lines to put in a shell here document.
258 # This variable seems obsolete. It should probably be removed, and
259 # only ac_max_sed_lines should be used.
260 : ${ac_max_here_lines=38}
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
299 # Initialize some variables set by options.
301 ac_init_version=false
302 # The variables have the same names as the options, with
303 # dashes changed to underlines.
311 program_transform_name=s,x,x,
319 # Installation directory options.
320 # These are left unexpanded so users can "make install exec_prefix=/foo"
321 # and all the variables that are supposed to be based on exec_prefix
322 # by default will actually change.
323 # Use braces instead of parens because sh, perl, etc. also accept them.
324 bindir='${exec_prefix}/bin'
325 sbindir='${exec_prefix}/sbin'
326 libexecdir='${exec_prefix}/libexec'
327 datadir='${prefix}/share'
328 sysconfdir='${prefix}/etc'
329 sharedstatedir='${prefix}/com'
330 localstatedir='${prefix}/var'
331 libdir='${exec_prefix}/lib'
332 includedir='${prefix}/include'
333 oldincludedir='/usr/include'
334 infodir='${prefix}/info'
335 mandir='${prefix}/man'
337 # Identity of this package.
347 # If the previous option needs an argument, assign it.
348 if test -n "$ac_prev"; then
349 eval "$ac_prev=\$ac_option"
354 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
356 # Accept the important Cygnus configure options, so we can diagnose typos.
360 -bindir | --bindir | --bindi | --bind | --bin | --bi)
362 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
365 -build | --build | --buil | --bui | --bu)
366 ac_prev=build_alias ;;
367 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
368 build_alias=$ac_optarg ;;
370 -cache-file | --cache-file | --cache-fil | --cache-fi \
371 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
372 ac_prev=cache_file ;;
373 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
374 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
375 cache_file=$ac_optarg ;;
378 cache_file=config.cache ;;
380 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
382 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
384 datadir=$ac_optarg ;;
386 -disable-* | --disable-*)
387 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
388 # Reject names that are not valid shell variable names.
389 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
390 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
391 { (exit 1); exit 1; }; }
392 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
393 eval "enable_$ac_feature=no" ;;
395 -enable-* | --enable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "enable_$ac_feature='$ac_optarg'" ;;
408 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
409 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
410 | --exec | --exe | --ex)
411 ac_prev=exec_prefix ;;
412 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
413 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
414 | --exec=* | --exe=* | --ex=*)
415 exec_prefix=$ac_optarg ;;
417 -gas | --gas | --ga | --g)
418 # Obsolete; use --with-gas.
421 -help | --help | --hel | --he | -h)
423 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
424 ac_init_help=recursive ;;
425 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
426 ac_init_help=short ;;
428 -host | --host | --hos | --ho)
429 ac_prev=host_alias ;;
430 -host=* | --host=* | --hos=* | --ho=*)
431 host_alias=$ac_optarg ;;
433 -includedir | --includedir | --includedi | --included | --include \
434 | --includ | --inclu | --incl | --inc)
435 ac_prev=includedir ;;
436 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
437 | --includ=* | --inclu=* | --incl=* | --inc=*)
438 includedir=$ac_optarg ;;
440 -infodir | --infodir | --infodi | --infod | --info | --inf)
442 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
443 infodir=$ac_optarg ;;
445 -libdir | --libdir | --libdi | --libd)
447 -libdir=* | --libdir=* | --libdi=* | --libd=*)
450 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
451 | --libexe | --libex | --libe)
452 ac_prev=libexecdir ;;
453 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
454 | --libexe=* | --libex=* | --libe=*)
455 libexecdir=$ac_optarg ;;
457 -localstatedir | --localstatedir | --localstatedi | --localstated \
458 | --localstate | --localstat | --localsta | --localst \
459 | --locals | --local | --loca | --loc | --lo)
460 ac_prev=localstatedir ;;
461 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
462 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
463 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
464 localstatedir=$ac_optarg ;;
466 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
468 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
472 # Obsolete; use --without-fp.
475 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
483 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
484 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
485 | --oldin | --oldi | --old | --ol | --o)
486 ac_prev=oldincludedir ;;
487 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
488 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
489 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
490 oldincludedir=$ac_optarg ;;
492 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
494 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
497 -program-prefix | --program-prefix | --program-prefi | --program-pref \
498 | --program-pre | --program-pr | --program-p)
499 ac_prev=program_prefix ;;
500 -program-prefix=* | --program-prefix=* | --program-prefi=* \
501 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
502 program_prefix=$ac_optarg ;;
504 -program-suffix | --program-suffix | --program-suffi | --program-suff \
505 | --program-suf | --program-su | --program-s)
506 ac_prev=program_suffix ;;
507 -program-suffix=* | --program-suffix=* | --program-suffi=* \
508 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
509 program_suffix=$ac_optarg ;;
511 -program-transform-name | --program-transform-name \
512 | --program-transform-nam | --program-transform-na \
513 | --program-transform-n | --program-transform- \
514 | --program-transform | --program-transfor \
515 | --program-transfo | --program-transf \
516 | --program-trans | --program-tran \
517 | --progr-tra | --program-tr | --program-t)
518 ac_prev=program_transform_name ;;
519 -program-transform-name=* | --program-transform-name=* \
520 | --program-transform-nam=* | --program-transform-na=* \
521 | --program-transform-n=* | --program-transform-=* \
522 | --program-transform=* | --program-transfor=* \
523 | --program-transfo=* | --program-transf=* \
524 | --program-trans=* | --program-tran=* \
525 | --progr-tra=* | --program-tr=* | --program-t=*)
526 program_transform_name=$ac_optarg ;;
528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
529 | -silent | --silent | --silen | --sile | --sil)
532 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
534 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
536 sbindir=$ac_optarg ;;
538 -sharedstatedir | --sharedstatedir | --sharedstatedi \
539 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
540 | --sharedst | --shareds | --shared | --share | --shar \
542 ac_prev=sharedstatedir ;;
543 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
544 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
545 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
547 sharedstatedir=$ac_optarg ;;
549 -site | --site | --sit)
551 -site=* | --site=* | --sit=*)
554 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
556 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
559 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
560 | --syscon | --sysco | --sysc | --sys | --sy)
561 ac_prev=sysconfdir ;;
562 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
563 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
564 sysconfdir=$ac_optarg ;;
566 -target | --target | --targe | --targ | --tar | --ta | --t)
567 ac_prev=target_alias ;;
568 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
569 target_alias=$ac_optarg ;;
571 -v | -verbose | --verbose | --verbos | --verbo | --verb)
574 -version | --version | --versio | --versi | --vers | -V)
578 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
579 # Reject names that are not valid shell variable names.
580 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
581 { echo "$as_me: error: invalid package name: $ac_package" >&2
582 { (exit 1); exit 1; }; }
583 ac_package=`echo $ac_package| sed 's/-/_/g'`
585 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
588 eval "with_$ac_package='$ac_optarg'" ;;
590 -without-* | --without-*)
591 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package | sed 's/-/_/g'`
597 eval "with_$ac_package=no" ;;
600 # Obsolete; use --with-x.
603 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
604 | --x-incl | --x-inc | --x-in | --x-i)
605 ac_prev=x_includes ;;
606 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
607 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
608 x_includes=$ac_optarg ;;
610 -x-libraries | --x-libraries | --x-librarie | --x-librari \
611 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
612 ac_prev=x_libraries ;;
613 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
614 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
615 x_libraries=$ac_optarg ;;
617 -*) { echo "$as_me: error: unrecognized option: $ac_option
618 Try \`$0 --help' for more information." >&2
619 { (exit 1); exit 1; }; }
623 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
624 # Reject names that are not valid shell variable names.
625 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
626 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
627 { (exit 1); exit 1; }; }
628 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
629 eval "$ac_envvar='$ac_optarg'"
633 # FIXME: should be removed in autoconf 3.0.
634 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
635 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
636 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
637 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
643 if test -n "$ac_prev"; then
644 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
645 { echo "$as_me: error: missing argument to $ac_option" >&2
646 { (exit 1); exit 1; }; }
649 # Be sure to have absolute paths.
650 for ac_var in exec_prefix prefix
652 eval ac_val=$`echo $ac_var`
654 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
655 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
656 { (exit 1); exit 1; }; };;
660 # Be sure to have absolute paths.
661 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
662 localstatedir libdir includedir oldincludedir infodir mandir
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* ) ;;
667 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # There might be people who depend on the old broken behavior: `$host'
673 # used to hold the argument of --host etc.
678 # FIXME: should be removed in autoconf 3.0.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
694 # Find the source files, if location was not specified.
695 if test -z "$srcdir"; then
696 ac_srcdir_defaulted=yes
697 # Try the directory containing this script, then its parent.
699 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
700 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
702 if test ! -r $srcdir/$ac_unique_file; then
706 ac_srcdir_defaulted=no
708 if test ! -r $srcdir/$ac_unique_file; then
709 if test "$ac_srcdir_defaulted" = yes; then
710 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
711 { (exit 1); exit 1; }; }
713 { echo "$as_me: error: cannot find sources in $srcdir" >&2
714 { (exit 1); exit 1; }; }
717 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
718 ac_env_build_alias_set=${build_alias+set}
719 ac_env_build_alias_value=$build_alias
720 ac_cv_env_build_alias_set=${build_alias+set}
721 ac_cv_env_build_alias_value=$build_alias
722 ac_env_host_alias_set=${host_alias+set}
723 ac_env_host_alias_value=$host_alias
724 ac_cv_env_host_alias_set=${host_alias+set}
725 ac_cv_env_host_alias_value=$host_alias
726 ac_env_target_alias_set=${target_alias+set}
727 ac_env_target_alias_value=$target_alias
728 ac_cv_env_target_alias_set=${target_alias+set}
729 ac_cv_env_target_alias_value=$target_alias
730 ac_env_CC_set=${CC+set}
732 ac_cv_env_CC_set=${CC+set}
733 ac_cv_env_CC_value=$CC
734 ac_env_CFLAGS_set=${CFLAGS+set}
735 ac_env_CFLAGS_value=$CFLAGS
736 ac_cv_env_CFLAGS_set=${CFLAGS+set}
737 ac_cv_env_CFLAGS_value=$CFLAGS
738 ac_env_LDFLAGS_set=${LDFLAGS+set}
739 ac_env_LDFLAGS_value=$LDFLAGS
740 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
741 ac_cv_env_LDFLAGS_value=$LDFLAGS
742 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
743 ac_env_CPPFLAGS_value=$CPPFLAGS
744 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
745 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
746 ac_env_CPP_set=${CPP+set}
747 ac_env_CPP_value=$CPP
748 ac_cv_env_CPP_set=${CPP+set}
749 ac_cv_env_CPP_value=$CPP
752 # Report the --help message.
754 if test "$ac_init_help" = "long"; then
755 # Omit some internal or obsolete options to make the list less imposing.
756 # This message is too long to be a string in the A/UX 3.1 sh.
758 \`configure' configures this package to adapt to many kinds of systems.
760 Usage: $0 [OPTION]... [VAR=VALUE]...
762 To assign environment variables (e.g., CC, CFLAGS...), specify them as
763 VAR=VALUE. See below for descriptions of some of the useful variables.
765 Defaults for the options are specified in brackets.
768 -h, --help display this help and exit
769 --help=short display options specific to this package
770 --help=recursive display the short help of all the included packages
771 -V, --version display version information and exit
772 -q, --quiet, --silent do not print \`checking...' messages
773 --cache-file=FILE cache test results in FILE [disabled]
774 -C, --config-cache alias for \`--cache-file=config.cache'
775 -n, --no-create do not create output files
776 --srcdir=DIR find the sources in DIR [configure dir or \`..']
781 Installation directories:
782 --prefix=PREFIX install architecture-independent files in PREFIX
784 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
787 By default, \`make install' will install all the files in
788 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
789 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
790 for instance \`--prefix=\$HOME'.
792 For better control, use the options below.
794 Fine tuning of the installation directories:
795 --bindir=DIR user executables [EPREFIX/bin]
796 --sbindir=DIR system admin executables [EPREFIX/sbin]
797 --libexecdir=DIR program executables [EPREFIX/libexec]
798 --datadir=DIR read-only architecture-independent data [PREFIX/share]
799 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
800 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
801 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
802 --libdir=DIR object code libraries [EPREFIX/lib]
803 --includedir=DIR C header files [PREFIX/include]
804 --oldincludedir=DIR C header files for non-gcc [/usr/include]
805 --infodir=DIR info documentation [PREFIX/info]
806 --mandir=DIR man documentation [PREFIX/man]
812 --program-prefix=PREFIX prepend PREFIX to installed program names
813 --program-suffix=SUFFIX append SUFFIX to installed program names
814 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
817 --build=BUILD configure for building on BUILD [guessed]
818 --host=HOST build programs to run on HOST [BUILD]
822 if test -n "$ac_init_help"; then
827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
829 --disable-dependency-tracking Speeds up one-time builds
830 --enable-dependency-tracking Do not reject slow dependency extractors
831 --enable-shared=PKGS build shared libraries default=yes
832 --enable-static=PKGS build static libraries default=yes
833 --enable-fast-install=PKGS optimize for fast installation default=yes
834 --disable-libtool-lock avoid locking (might break parallel builds)
837 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
838 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
839 --with-gnu-ld assume the C compiler uses GNU ld default=no
840 --with-pic try to use only PIC/non-PIC objects default=use both
842 Some influential environment variables:
843 CC C compiler command
844 CFLAGS C compiler flags
845 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
846 nonstandard directory <lib dir>
847 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
848 headers in a nonstandard directory <include dir>
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
862 # A "../" for each directory in /$ac_subdir.
863 ac_dots=`echo $ac_subdir |
864 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
867 .) # No --srcdir option. We are building in place.
868 ac_sub_srcdir=$srcdir ;;
869 [\\/]* | ?:[\\/]* ) # Absolute path.
870 ac_sub_srcdir=$srcdir/$ac_subdir ;;
872 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
875 # Check for guested configure; otherwise get Cygnus style configure.
876 if test -f $ac_sub_srcdir/configure.gnu; then
878 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
879 elif test -f $ac_sub_srcdir/configure; then
881 $SHELL $ac_sub_srcdir/configure --help=recursive
882 elif test -f $ac_sub_srcdir/configure.ac ||
883 test -f $ac_sub_srcdir/configure.in; then
887 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.52. Invocation command line was
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
950 # Keep a trace of the command line.
951 # Strip out --no-create and --no-recursion so they do not pile up.
952 # Also quote any args containing shell meta-characters.
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c) ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
964 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
966 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
969 # Get rid of the leading space.
972 # When interrupted or exit'd, cleanup temporary files, and complete
973 # config.log. We remove comments because anyway the quotes in there
974 # would cause problems or look ugly.
976 # Save into config.log some information that might help in debugging.
978 echo "## ----------------- ##" >&5
979 echo "## Cache variables. ##" >&5
980 echo "## ----------------- ##" >&5
982 # The following way of writing the cache mishandles newlines in values,
985 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
988 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
993 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
997 sed "/^$/d" confdefs.h >conftest.log
998 if test -s conftest.log; then
1000 echo "## ------------ ##" >&5
1001 echo "## confdefs.h. ##" >&5
1002 echo "## ------------ ##" >&5
1004 cat conftest.log >&5
1007 test "$ac_signal" != 0 &&
1008 echo "$as_me: caught signal $ac_signal" >&5
1009 echo "$as_me: exit $exit_status" >&5
1010 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1013 for ac_signal in 1 2 13 15; do
1014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1019 rm -rf conftest* confdefs.h
1020 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1023 # Let the site file select an alternate cache file if it wants to.
1024 # Prefer explicitly selected file to automatically selected ones.
1025 if test -z "$CONFIG_SITE"; then
1026 if test "x$prefix" != xNONE; then
1027 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1029 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1032 for ac_site_file in $CONFIG_SITE; do
1033 if test -r "$ac_site_file"; then
1034 { echo "$as_me:1034: loading site script $ac_site_file" >&5
1035 echo "$as_me: loading site script $ac_site_file" >&6;}
1036 cat "$ac_site_file" >&5
1041 if test -r "$cache_file"; then
1042 # Some versions of bash will fail to source /dev/null (special
1043 # files actually), so we avoid doing that.
1044 if test -f "$cache_file"; then
1045 { echo "$as_me:1045: loading cache $cache_file" >&5
1046 echo "$as_me: loading cache $cache_file" >&6;}
1048 [\\/]* | ?:[\\/]* ) . $cache_file;;
1049 *) . ./$cache_file;;
1053 { echo "$as_me:1053: creating cache $cache_file" >&5
1054 echo "$as_me: creating cache $cache_file" >&6;}
1058 # Check that the precious variables saved in the cache have kept the same
1060 ac_cache_corrupted=false
1061 for ac_var in `(set) 2>&1 |
1062 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1064 eval ac_new_set=\$ac_env_${ac_var}_set
1065 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1066 eval ac_new_val="\$ac_env_${ac_var}_value"
1067 case $ac_old_set,$ac_new_set in
1069 { echo "$as_me:1069: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1071 ac_cache_corrupted=: ;;
1073 { echo "$as_me:1073: error: \`$ac_var' was not set in the previous run" >&5
1074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1075 ac_cache_corrupted=: ;;
1078 if test "x$ac_old_val" != "x$ac_new_val"; then
1079 { echo "$as_me:1079: error: \`$ac_var' has changed since the previous run:" >&5
1080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1081 { echo "$as_me:1081: former value: $ac_old_val" >&5
1082 echo "$as_me: former value: $ac_old_val" >&2;}
1083 { echo "$as_me:1083: current value: $ac_new_val" >&5
1084 echo "$as_me: current value: $ac_new_val" >&2;}
1085 ac_cache_corrupted=:
1088 # Pass precious variables to config.status. It doesn't matter if
1089 # we pass some twice (in addition to the command line arguments).
1090 if test "$ac_new_set" = set; then
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1094 ac_configure_args="$ac_configure_args '$ac_arg'"
1096 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1101 if $ac_cache_corrupted; then
1102 { echo "$as_me:1102: error: changes in the environment can compromise the build" >&5
1103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1104 { { echo "$as_me:1104: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1106 { (exit 1); exit 1; }; }
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1115 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1116 *c*,-n*) ECHO_N= ECHO_C='
1118 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1119 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1121 echo "#! $SHELL" >conftest.sh
1122 echo "exit 0" >>conftest.sh
1123 chmod +x conftest.sh
1124 if { (echo "$as_me:1124: PATH=\".;.\"; conftest.sh") >&5
1125 (PATH=".;."; conftest.sh) 2>&5
1127 echo "$as_me:1127: \$? = $ac_status" >&5
1128 (exit $ac_status); }; then
1129 ac_path_separator=';'
1133 PATH_SEPARATOR="$ac_path_separator"
1137 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1138 if test -f $ac_dir/install-sh; then
1140 ac_install_sh="$ac_aux_dir/install-sh -c"
1142 elif test -f $ac_dir/install.sh; then
1144 ac_install_sh="$ac_aux_dir/install.sh -c"
1146 elif test -f $ac_dir/shtool; then
1148 ac_install_sh="$ac_aux_dir/shtool install -c"
1152 if test -z "$ac_aux_dir"; then
1153 { { echo "$as_me:1153: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1154 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1155 { (exit 1); exit 1; }; }
1157 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1158 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1159 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1161 # Find a good install program. We prefer a C program (faster),
1162 # so one script is as good as another. But avoid the broken or
1163 # incompatible versions:
1164 # SysV /etc/install, /usr/sbin/install
1165 # SunOS /usr/etc/install
1166 # IRIX /sbin/install
1168 # AmigaOS /C/install, which installs bootblocks on floppy discs
1169 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1170 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1171 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1172 # ./install, which can be erroneously created by make from ./install.sh.
1173 echo "$as_me:1173: checking for a BSD compatible install" >&5
1174 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1175 if test -z "$INSTALL"; then
1176 if test "${ac_cv_path_install+set}" = set; then
1177 echo $ECHO_N "(cached) $ECHO_C" >&6
1179 ac_save_IFS=$IFS; IFS=$ac_path_separator
1180 for ac_dir in $PATH; do
1182 # Account for people who put trailing slashes in PATH elements.
1184 / | ./ | .// | /cC/* \
1185 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1188 # OSF1 and SCO ODT 3.0 have their own names for install.
1189 # Don't use installbsd from OSF since it installs stuff as root
1191 for ac_prog in ginstall scoinst install; do
1192 if $as_executable_p "$ac_dir/$ac_prog"; then
1193 if test $ac_prog = install &&
1194 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1195 # AIX install. It has an incompatible calling convention.
1197 elif test $ac_prog = install &&
1198 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1199 # program-specific install script used by HP pwplus--don't use.
1202 ac_cv_path_install="$ac_dir/$ac_prog -c"
1212 if test "${ac_cv_path_install+set}" = set; then
1213 INSTALL=$ac_cv_path_install
1215 # As a last resort, use the slow shell script. We don't cache a
1216 # path for INSTALL within a source directory, because that will
1217 # break other packages using the cache if that directory is
1218 # removed, or if the path is relative.
1219 INSTALL=$ac_install_sh
1222 echo "$as_me:1222: result: $INSTALL" >&5
1223 echo "${ECHO_T}$INSTALL" >&6
1225 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1226 # It thinks the first close brace ends the variable substitution.
1227 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1229 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1231 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1233 echo "$as_me:1233: checking whether build environment is sane" >&5
1234 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1237 echo timestamp > conftest.file
1238 # Do `set' in a subshell so we don't clobber the current shell's
1239 # arguments. Must try -L first in case configure is actually a
1240 # symlink; some systems play weird games with the mod time of symlinks
1241 # (eg FreeBSD returns the mod time of the symlink's containing
1244 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1245 if test "$*" = "X"; then
1247 set X `ls -t $srcdir/configure conftest.file`
1250 if test "$*" != "X $srcdir/configure conftest.file" \
1251 && test "$*" != "X conftest.file $srcdir/configure"; then
1253 # If neither matched, then we have a broken ls. This can happen
1254 # if, for instance, CONFIG_SHELL is bash and it inherits a
1255 # broken ls alias from the environment. This has actually
1256 # happened. Such a system could not be considered "sane".
1257 { { echo "$as_me:1257: error: ls -t appears to fail. Make sure there is not a broken
1258 alias in your environment" >&5
1259 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1260 alias in your environment" >&2;}
1261 { (exit 1); exit 1; }; }
1264 test "$2" = conftest.file
1270 { { echo "$as_me:1270: error: newly created file is older than distributed files!
1271 Check your system clock" >&5
1272 echo "$as_me: error: newly created file is older than distributed files!
1273 Check your system clock" >&2;}
1274 { (exit 1); exit 1; }; }
1276 echo "$as_me:1276: result: yes" >&5
1277 echo "${ECHO_T}yes" >&6
1278 test "$program_prefix" != NONE &&
1279 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1280 # Use a double $ so make ignores it.
1281 test "$program_suffix" != NONE &&
1282 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1283 # Double any \ or $. echo might interpret backslashes.
1284 # By default was `s,x,x', remove it if useless.
1285 cat <<\_ACEOF >conftest.sed
1286 s/[\\$]/&&/g;s/;s,x,x,$//
1288 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1291 test x"${MISSING+set}" = xset ||
1292 MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
1293 # Use eval to expand $SHELL
1294 if eval "$MISSING --run true"; then
1295 am_missing_run="$MISSING --run "
1299 { echo "$as_me:1299: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1300 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1303 # expand $ac_aux_dir to an absolute path
1304 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1306 for ac_prog in mawk gawk nawk awk
1308 # Extract the first word of "$ac_prog", so it can be a program name with args.
1309 set dummy $ac_prog; ac_word=$2
1310 echo "$as_me:1310: checking for $ac_word" >&5
1311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1312 if test "${ac_cv_prog_AWK+set}" = set; then
1313 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 if test -n "$AWK"; then
1316 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1318 ac_save_IFS=$IFS; IFS=$ac_path_separator
1320 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 $as_executable_p "$ac_dir/$ac_word" || continue
1324 ac_cv_prog_AWK="$ac_prog"
1325 echo "$as_me:1325: found $ac_dir/$ac_word" >&5
1332 if test -n "$AWK"; then
1333 echo "$as_me:1333: result: $AWK" >&5
1334 echo "${ECHO_T}$AWK" >&6
1336 echo "$as_me:1336: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1340 test -n "$AWK" && break
1343 echo "$as_me:1343: checking whether ${MAKE-make} sets \${MAKE}" >&5
1344 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1345 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1346 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 cat >conftest.make <<\EOF
1351 @echo 'ac_maketemp="${MAKE}"'
1353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1354 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1355 if test -n "$ac_maketemp"; then
1356 eval ac_cv_prog_make_${ac_make}_set=yes
1358 eval ac_cv_prog_make_${ac_make}_set=no
1362 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1363 echo "$as_me:1363: result: yes" >&5
1364 echo "${ECHO_T}yes" >&6
1367 echo "$as_me:1367: result: no" >&5
1368 echo "${ECHO_T}no" >&6
1369 SET_MAKE="MAKE=${MAKE-make}"
1372 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1373 if test "${enable_dependency_tracking+set}" = set; then
1374 enableval="$enable_dependency_tracking"
1377 if test "x$enable_dependency_tracking" != xno; then
1378 am_depcomp="$ac_aux_dir/depcomp"
1382 if test "x$enable_dependency_tracking" != xno; then
1390 rm -f .deps 2>/dev/null
1391 mkdir .deps 2>/dev/null
1392 if test -d .deps; then
1395 # MS-DOS does not allow filenames that begin with a dot.
1398 rmdir .deps 2>/dev/null
1400 # test to see if srcdir already configured
1401 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1402 test -f $srcdir/config.status; then
1403 { { echo "$as_me:1403: error: source directory already configured; run \"make distclean\" there first" >&5
1404 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1405 { (exit 1); exit 1; }; }
1408 # Define the identity of the package.
1412 cat >>confdefs.h <<EOF
1413 #define PACKAGE "$PACKAGE"
1416 cat >>confdefs.h <<EOF
1417 #define VERSION "$VERSION"
1420 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1421 # the ones we care about.
1423 # Autoconf 2.50 always computes EXEEXT. However we need to be
1424 # compatible with 2.13, for now. So we always define EXEEXT, but we
1427 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1428 # requests that it be used. This is a bit dumb.
1431 # Some tools Automake needs.
1433 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1435 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1437 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1439 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1441 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1443 AMTAR=${AMTAR-"${am_missing_run}tar"}
1445 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1447 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1449 # We need awk for the "check" target. The system "awk" is bad on
1452 ac_config_headers="$ac_config_headers include/fcgi_config.h"
1455 ac_cpp='$CPP $CPPFLAGS'
1456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459 if test -n "$ac_tool_prefix"; then
1460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1462 echo "$as_me:1462: checking for $ac_word" >&5
1463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1464 if test "${ac_cv_prog_CC+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 if test -n "$CC"; then
1468 ac_cv_prog_CC="$CC" # Let the user override the test.
1470 ac_save_IFS=$IFS; IFS=$ac_path_separator
1472 for ac_dir in $ac_dummy; do
1474 test -z "$ac_dir" && ac_dir=.
1475 $as_executable_p "$ac_dir/$ac_word" || continue
1476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1477 echo "$as_me:1477: found $ac_dir/$ac_word" >&5
1484 if test -n "$CC"; then
1485 echo "$as_me:1485: result: $CC" >&5
1486 echo "${ECHO_T}$CC" >&6
1488 echo "$as_me:1488: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1493 if test -z "$ac_cv_prog_CC"; then
1495 # Extract the first word of "gcc", so it can be a program name with args.
1496 set dummy gcc; ac_word=$2
1497 echo "$as_me:1497: checking for $ac_word" >&5
1498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1500 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 if test -n "$ac_ct_CC"; then
1503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1505 ac_save_IFS=$IFS; IFS=$ac_path_separator
1507 for ac_dir in $ac_dummy; do
1509 test -z "$ac_dir" && ac_dir=.
1510 $as_executable_p "$ac_dir/$ac_word" || continue
1511 ac_cv_prog_ac_ct_CC="gcc"
1512 echo "$as_me:1512: found $ac_dir/$ac_word" >&5
1518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1519 if test -n "$ac_ct_CC"; then
1520 echo "$as_me:1520: result: $ac_ct_CC" >&5
1521 echo "${ECHO_T}$ac_ct_CC" >&6
1523 echo "$as_me:1523: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1532 if test -z "$CC"; then
1533 if test -n "$ac_tool_prefix"; then
1534 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1535 set dummy ${ac_tool_prefix}cc; ac_word=$2
1536 echo "$as_me:1536: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC="$CC" # Let the user override the test.
1544 ac_save_IFS=$IFS; IFS=$ac_path_separator
1546 for ac_dir in $ac_dummy; do
1548 test -z "$ac_dir" && ac_dir=.
1549 $as_executable_p "$ac_dir/$ac_word" || continue
1550 ac_cv_prog_CC="${ac_tool_prefix}cc"
1551 echo "$as_me:1551: found $ac_dir/$ac_word" >&5
1558 if test -n "$CC"; then
1559 echo "$as_me:1559: result: $CC" >&5
1560 echo "${ECHO_T}$CC" >&6
1562 echo "$as_me:1562: result: no" >&5
1563 echo "${ECHO_T}no" >&6
1567 if test -z "$ac_cv_prog_CC"; then
1569 # Extract the first word of "cc", so it can be a program name with args.
1570 set dummy cc; ac_word=$2
1571 echo "$as_me:1571: checking for $ac_word" >&5
1572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 if test -n "$ac_ct_CC"; then
1577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1579 ac_save_IFS=$IFS; IFS=$ac_path_separator
1581 for ac_dir in $ac_dummy; do
1583 test -z "$ac_dir" && ac_dir=.
1584 $as_executable_p "$ac_dir/$ac_word" || continue
1585 ac_cv_prog_ac_ct_CC="cc"
1586 echo "$as_me:1586: found $ac_dir/$ac_word" >&5
1592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1593 if test -n "$ac_ct_CC"; then
1594 echo "$as_me:1594: result: $ac_ct_CC" >&5
1595 echo "${ECHO_T}$ac_ct_CC" >&6
1597 echo "$as_me:1597: result: no" >&5
1598 echo "${ECHO_T}no" >&6
1607 if test -z "$CC"; then
1608 # Extract the first word of "cc", so it can be a program name with args.
1609 set dummy cc; ac_word=$2
1610 echo "$as_me:1610: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1619 ac_save_IFS=$IFS; IFS=$ac_path_separator
1621 for ac_dir in $ac_dummy; do
1623 test -z "$ac_dir" && ac_dir=.
1624 $as_executable_p "$ac_dir/$ac_word" || continue
1625 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1626 ac_prog_rejected=yes
1630 echo "$as_me:1630: found $ac_dir/$ac_word" >&5
1634 if test $ac_prog_rejected = yes; then
1635 # We found a bogon in the path, so make sure we never use it.
1636 set dummy $ac_cv_prog_CC
1638 if test $# != 0; then
1639 # We chose a different compiler from the bogus one.
1640 # However, it has the same basename, so the bogon will be chosen
1641 # first if we set CC to just the basename; use the full file name.
1643 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1651 if test -n "$CC"; then
1652 echo "$as_me:1652: result: $CC" >&5
1653 echo "${ECHO_T}$CC" >&6
1655 echo "$as_me:1655: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1660 if test -z "$CC"; then
1661 if test -n "$ac_tool_prefix"; then
1664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1666 echo "$as_me:1666: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 ac_save_IFS=$IFS; IFS=$ac_path_separator
1676 for ac_dir in $ac_dummy; do
1678 test -z "$ac_dir" && ac_dir=.
1679 $as_executable_p "$ac_dir/$ac_word" || continue
1680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1681 echo "$as_me:1681: found $ac_dir/$ac_word" >&5
1688 if test -n "$CC"; then
1689 echo "$as_me:1689: result: $CC" >&5
1690 echo "${ECHO_T}$CC" >&6
1692 echo "$as_me:1692: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1696 test -n "$CC" && break
1699 if test -z "$CC"; then
1703 # Extract the first word of "$ac_prog", so it can be a program name with args.
1704 set dummy $ac_prog; ac_word=$2
1705 echo "$as_me:1705: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 if test -n "$ac_ct_CC"; then
1711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1713 ac_save_IFS=$IFS; IFS=$ac_path_separator
1715 for ac_dir in $ac_dummy; do
1717 test -z "$ac_dir" && ac_dir=.
1718 $as_executable_p "$ac_dir/$ac_word" || continue
1719 ac_cv_prog_ac_ct_CC="$ac_prog"
1720 echo "$as_me:1720: found $ac_dir/$ac_word" >&5
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728 echo "$as_me:1728: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1731 echo "$as_me:1731: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1735 test -n "$ac_ct_CC" && break
1743 test -z "$CC" && { { echo "$as_me:1743: error: no acceptable cc found in \$PATH" >&5
1744 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1745 { (exit 1); exit 1; }; }
1747 # Provide some information about the compiler.
1748 echo "$as_me:1748:" \
1749 "checking for C compiler version" >&5
1750 ac_compiler=`set X $ac_compile; echo $2`
1751 { (eval echo "$as_me:1751: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 echo "$as_me:1754: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756 { (eval echo "$as_me:1756: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 echo "$as_me:1759: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761 { (eval echo "$as_me:1761: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 echo "$as_me:1764: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1767 cat >conftest.$ac_ext <<_ACEOF
1768 #line 1768 "configure"
1769 #include "confdefs.h"
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1784 echo "$as_me:1784: checking for C compiler default output" >&5
1785 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:1787: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1790 echo "$as_me:1790: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1796 ls a.out conftest 2>/dev/null;
1797 ls a.* conftest.* 2>/dev/null`; do
1799 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1800 a.out ) # We found the default executable, but exeext='' is most
1803 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1804 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1811 echo "$as_me: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1813 { { echo "$as_me:1813: error: C compiler cannot create executables" >&5
1814 echo "$as_me: error: C compiler cannot create executables" >&2;}
1815 { (exit 77); exit 77; }; }
1818 ac_exeext=$ac_cv_exeext
1819 echo "$as_me:1819: result: $ac_file" >&5
1820 echo "${ECHO_T}$ac_file" >&6
1822 # Check the compiler produces executables we can run. If not, either
1823 # the compiler is broken, or we cross compile.
1824 echo "$as_me:1824: checking whether the C compiler works" >&5
1825 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1826 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1827 # If not cross compiling, check that we can run a simple program.
1828 if test "$cross_compiling" != yes; then
1829 if { ac_try='./$ac_file'
1830 { (eval echo "$as_me:1830: \"$ac_try\"") >&5
1833 echo "$as_me:1833: \$? = $ac_status" >&5
1834 (exit $ac_status); }; }; then
1837 if test "$cross_compiling" = maybe; then
1840 { { echo "$as_me:1840: error: cannot run C compiled programs.
1841 If you meant to cross compile, use \`--host'." >&5
1842 echo "$as_me: error: cannot run C compiled programs.
1843 If you meant to cross compile, use \`--host'." >&2;}
1844 { (exit 1); exit 1; }; }
1848 echo "$as_me:1848: result: yes" >&5
1849 echo "${ECHO_T}yes" >&6
1851 rm -f a.out a.exe conftest$ac_cv_exeext
1852 ac_clean_files=$ac_clean_files_save
1853 # Check the compiler produces executables we can run. If not, either
1854 # the compiler is broken, or we cross compile.
1855 echo "$as_me:1855: checking whether we are cross compiling" >&5
1856 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1857 echo "$as_me:1857: result: $cross_compiling" >&5
1858 echo "${ECHO_T}$cross_compiling" >&6
1860 echo "$as_me:1860: checking for executable suffix" >&5
1861 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1862 if { (eval echo "$as_me:1862: \"$ac_link\"") >&5
1863 (eval $ac_link) 2>&5
1865 echo "$as_me:1865: \$? = $ac_status" >&5
1866 (exit $ac_status); }; then
1867 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1868 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1869 # work properly (i.e., refer to `conftest.exe'), while it won't with
1871 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1873 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1874 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1881 { { echo "$as_me:1881: error: cannot compute EXEEXT: cannot compile and link" >&5
1882 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1883 { (exit 1); exit 1; }; }
1886 rm -f conftest$ac_cv_exeext
1887 echo "$as_me:1887: result: $ac_cv_exeext" >&5
1888 echo "${ECHO_T}$ac_cv_exeext" >&6
1890 rm -f conftest.$ac_ext
1891 EXEEXT=$ac_cv_exeext
1893 echo "$as_me:1893: checking for object suffix" >&5
1894 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1895 if test "${ac_cv_objext+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 cat >conftest.$ac_ext <<_ACEOF
1899 #line 1899 "configure"
1900 #include "confdefs.h"
1910 rm -f conftest.o conftest.obj
1911 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); }; then
1916 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1924 echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1926 { { echo "$as_me:1926: error: cannot compute OBJEXT: cannot compile" >&5
1927 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1928 { (exit 1); exit 1; }; }
1931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1933 echo "$as_me:1933: result: $ac_cv_objext" >&5
1934 echo "${ECHO_T}$ac_cv_objext" >&6
1935 OBJEXT=$ac_cv_objext
1937 echo "$as_me:1937: checking whether we are using the GNU C compiler" >&5
1938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 cat >conftest.$ac_ext <<_ACEOF
1943 #line 1943 "configure"
1944 #include "confdefs.h"
1957 rm -f conftest.$ac_objext
1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5
1959 (eval $ac_compile) 2>&5
1961 echo "$as_me:1961: \$? = $ac_status" >&5
1962 (exit $ac_status); } &&
1963 { ac_try='test -s conftest.$ac_objext'
1964 { (eval echo "$as_me:1964: \"$ac_try\"") >&5
1967 echo "$as_me:1967: \$? = $ac_status" >&5
1968 (exit $ac_status); }; }; then
1971 echo "$as_me: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1975 rm -f conftest.$ac_objext conftest.$ac_ext
1976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1979 echo "$as_me:1979: result: $ac_cv_c_compiler_gnu" >&5
1980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1981 GCC=`test $ac_compiler_gnu = yes && echo yes`
1982 ac_test_CFLAGS=${CFLAGS+set}
1983 ac_save_CFLAGS=$CFLAGS
1985 echo "$as_me:1985: checking whether $CC accepts -g" >&5
1986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1987 if test "${ac_cv_prog_cc_g+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 cat >conftest.$ac_ext <<_ACEOF
1991 #line 1991 "configure"
1992 #include "confdefs.h"
2002 rm -f conftest.$ac_objext
2003 if { (eval echo "$as_me:2003: \"$ac_compile\"") >&5
2004 (eval $ac_compile) 2>&5
2006 echo "$as_me:2006: \$? = $ac_status" >&5
2007 (exit $ac_status); } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:2009: \"$ac_try\"") >&5
2012 echo "$as_me:2012: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2016 echo "$as_me: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2020 rm -f conftest.$ac_objext conftest.$ac_ext
2022 echo "$as_me:2022: result: $ac_cv_prog_cc_g" >&5
2023 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2024 if test "$ac_test_CFLAGS" = set; then
2025 CFLAGS=$ac_save_CFLAGS
2026 elif test $ac_cv_prog_cc_g = yes; then
2027 if test "$GCC" = yes; then
2033 if test "$GCC" = yes; then
2039 # Some people use a C++ compiler to compile C. Since we use `exit',
2040 # in C++ we need to declare it. In case someone uses the same compiler
2041 # for both compiling C and C++ we need to have the C++ compiler decide
2042 # the declaration of exit, since it's the most demanding environment.
2043 cat >conftest.$ac_ext <<_ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:2049: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>&5
2052 echo "$as_me:2052: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -s conftest.$ac_objext'
2055 { (eval echo "$as_me:2055: \"$ac_try\"") >&5
2058 echo "$as_me:2058: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2060 for ac_declaration in \
2062 '#include <stdlib.h>' \
2063 'extern "C" void std::exit (int) throw (); using std::exit;' \
2064 'extern "C" void std::exit (int); using std::exit;' \
2065 'extern "C" void exit (int) throw ();' \
2066 'extern "C" void exit (int);' \
2069 cat >conftest.$ac_ext <<_ACEOF
2070 #line 2070 "configure"
2071 #include "confdefs.h"
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:2083: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>&5
2086 echo "$as_me:2086: \$? = $ac_status" >&5
2087 (exit $ac_status); } &&
2088 { ac_try='test -s conftest.$ac_objext'
2089 { (eval echo "$as_me:2089: \"$ac_try\"") >&5
2092 echo "$as_me:2092: \$? = $ac_status" >&5
2093 (exit $ac_status); }; }; then
2096 echo "$as_me: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 cat >conftest.$ac_ext <<_ACEOF
2102 #line 2102 "configure"
2103 #include "confdefs.h"
2113 rm -f conftest.$ac_objext
2114 if { (eval echo "$as_me:2114: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>&5
2117 echo "$as_me:2117: \$? = $ac_status" >&5
2118 (exit $ac_status); } &&
2119 { ac_try='test -s conftest.$ac_objext'
2120 { (eval echo "$as_me:2120: \"$ac_try\"") >&5
2123 echo "$as_me:2123: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2127 echo "$as_me: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2130 rm -f conftest.$ac_objext conftest.$ac_ext
2133 if test -n "$ac_declaration"; then
2134 echo '#ifdef __cplusplus' >>confdefs.h
2135 echo $ac_declaration >>confdefs.h
2136 echo '#endif' >>confdefs.h
2140 echo "$as_me: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2145 ac_cpp='$CPP $CPPFLAGS'
2146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2150 ac_config_commands="$ac_config_commands default-1"
2152 am_make=${MAKE-make}
2153 cat > confinc << 'END'
2157 # If we don't find an include directive, just comment out the code.
2158 echo "$as_me:2158: checking for style of include used by $am_make" >&5
2159 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2163 # First try GNU make style include.
2164 echo "include confinc" > confmf
2165 # We grep out `Entering directory' and `Leaving directory'
2166 # messages which can occur if `w' ends up in MAKEFLAGS.
2167 # In particular we don't look at `^make:' because GNU make might
2168 # be invoked under some other name (usually "gmake"), in which
2169 # case it prints its new name instead of `make'.
2170 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2175 # Now try BSD make style include.
2176 if test "$am__include" = "#"; then
2177 echo '.include "confinc"' > confmf
2178 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2179 am__include=.include
2185 echo "$as_me:2185: result: $_am_result" >&5
2186 echo "${ECHO_T}$_am_result" >&6
2187 rm -f confinc confmf
2189 depcc="$CC" am_compiler_list=
2191 echo "$as_me:2191: checking dependency style of $depcc" >&5
2192 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2193 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2197 # We make a subdir and do the tests there. Otherwise we can end up
2198 # making bogus files that we don't know about and never remove. For
2199 # instance it was reported that on HP-UX the gcc test will end up
2200 # making a dummy file named `D' -- because `-MD' means `put the output
2203 # Copy depcomp to subdir because otherwise we won't find it if we're
2204 # using a relative directory.
2205 cp "$am_depcomp" conftest.dir
2208 am_cv_CC_dependencies_compiler_type=none
2209 if test "$am_compiler_list" = ""; then
2210 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2212 for depmode in $am_compiler_list; do
2213 # We need to recreate these files for each test, as the compiler may
2214 # overwrite some of them when testing with obscure command lines.
2215 # This happens at least with the AIX C compiler.
2216 echo '#include "conftest.h"' > conftest.c
2217 echo 'int i;' > conftest.h
2218 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2222 # after this tag, mechanisms are not by side-effect, so they'll
2223 # only be used when explicitly requested
2224 if test "x$enable_dependency_tracking" = xyes; then
2232 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2233 # mode. It turns out that the SunPro C++ compiler does not properly
2234 # handle `-M -o', and we need to detect this.
2235 if depmode=$depmode \
2236 source=conftest.c object=conftest.o \
2237 depfile=conftest.Po tmpdepfile=conftest.TPo \
2238 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2239 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2241 am_cv_CC_dependencies_compiler_type=$depmode
2249 am_cv_CC_dependencies_compiler_type=none
2253 echo "$as_me:2253: result: $am_cv_CC_dependencies_compiler_type" >&5
2254 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2255 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2258 ac_cpp='$CPP $CPPFLAGS'
2259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262 echo "$as_me:2262: checking how to run the C preprocessor" >&5
2263 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2264 # On Suns, sometimes $CPP names a directory.
2265 if test -n "$CPP" && test -d "$CPP"; then
2268 if test -z "$CPP"; then
2269 if test "${ac_cv_prog_CPP+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 # Double quotes because CPP needs to be expanded
2273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2276 for ac_c_preproc_warn_flag in '' yes
2278 # Use a header file that comes with gcc, so configuring glibc
2279 # with a fresh cross-compiler works.
2280 # On the NeXT, cc -E runs the code through the compiler's parser,
2281 # not just through cpp. "Syntax error" is here to catch this case.
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #line 2283 "configure"
2284 #include "confdefs.h"
2288 if { (eval echo "$as_me:2288: \"$ac_cpp conftest.$ac_ext\"") >&5
2289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2291 egrep -v '^ *\+' conftest.er1 >conftest.err
2293 cat conftest.err >&5
2294 echo "$as_me:2294: \$? = $ac_status" >&5
2295 (exit $ac_status); } >/dev/null; then
2296 if test -s conftest.err; then
2297 ac_cpp_err=$ac_c_preproc_warn_flag
2304 if test -z "$ac_cpp_err"; then
2307 echo "$as_me: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2309 # Broken: fails on valid input.
2312 rm -f conftest.err conftest.$ac_ext
2314 # OK, works on sane cases. Now check whether non-existent headers
2315 # can be detected and how.
2316 cat >conftest.$ac_ext <<_ACEOF
2317 #line 2317 "configure"
2318 #include "confdefs.h"
2319 #include <ac_nonexistent.h>
2321 if { (eval echo "$as_me:2321: \"$ac_cpp conftest.$ac_ext\"") >&5
2322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2324 egrep -v '^ *\+' conftest.er1 >conftest.err
2326 cat conftest.err >&5
2327 echo "$as_me:2327: \$? = $ac_status" >&5
2328 (exit $ac_status); } >/dev/null; then
2329 if test -s conftest.err; then
2330 ac_cpp_err=$ac_c_preproc_warn_flag
2337 if test -z "$ac_cpp_err"; then
2338 # Broken: success on invalid input.
2341 echo "$as_me: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 # Passes both tests.
2347 rm -f conftest.err conftest.$ac_ext
2350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2351 rm -f conftest.err conftest.$ac_ext
2352 if $ac_preproc_ok; then
2364 echo "$as_me:2364: result: $CPP" >&5
2365 echo "${ECHO_T}$CPP" >&6
2367 for ac_c_preproc_warn_flag in '' yes
2369 # Use a header file that comes with gcc, so configuring glibc
2370 # with a fresh cross-compiler works.
2371 # On the NeXT, cc -E runs the code through the compiler's parser,
2372 # not just through cpp. "Syntax error" is here to catch this case.
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #line 2374 "configure"
2375 #include "confdefs.h"
2379 if { (eval echo "$as_me:2379: \"$ac_cpp conftest.$ac_ext\"") >&5
2380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2382 egrep -v '^ *\+' conftest.er1 >conftest.err
2384 cat conftest.err >&5
2385 echo "$as_me:2385: \$? = $ac_status" >&5
2386 (exit $ac_status); } >/dev/null; then
2387 if test -s conftest.err; then
2388 ac_cpp_err=$ac_c_preproc_warn_flag
2395 if test -z "$ac_cpp_err"; then
2398 echo "$as_me: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2400 # Broken: fails on valid input.
2403 rm -f conftest.err conftest.$ac_ext
2405 # OK, works on sane cases. Now check whether non-existent headers
2406 # can be detected and how.
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #line 2408 "configure"
2409 #include "confdefs.h"
2410 #include <ac_nonexistent.h>
2412 if { (eval echo "$as_me:2412: \"$ac_cpp conftest.$ac_ext\"") >&5
2413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2415 egrep -v '^ *\+' conftest.er1 >conftest.err
2417 cat conftest.err >&5
2418 echo "$as_me:2418: \$? = $ac_status" >&5
2419 (exit $ac_status); } >/dev/null; then
2420 if test -s conftest.err; then
2421 ac_cpp_err=$ac_c_preproc_warn_flag
2428 if test -z "$ac_cpp_err"; then
2429 # Broken: success on invalid input.
2432 echo "$as_me: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2434 # Passes both tests.
2438 rm -f conftest.err conftest.$ac_ext
2441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2442 rm -f conftest.err conftest.$ac_ext
2443 if $ac_preproc_ok; then
2446 { { echo "$as_me:2446: error: C preprocessor \"$CPP\" fails sanity check" >&5
2447 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2448 { (exit 1); exit 1; }; }
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 # Find a good install program. We prefer a C program (faster),
2458 # so one script is as good as another. But avoid the broken or
2459 # incompatible versions:
2460 # SysV /etc/install, /usr/sbin/install
2461 # SunOS /usr/etc/install
2462 # IRIX /sbin/install
2464 # AmigaOS /C/install, which installs bootblocks on floppy discs
2465 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2466 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2467 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2468 # ./install, which can be erroneously created by make from ./install.sh.
2469 echo "$as_me:2469: checking for a BSD compatible install" >&5
2470 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2471 if test -z "$INSTALL"; then
2472 if test "${ac_cv_path_install+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 ac_save_IFS=$IFS; IFS=$ac_path_separator
2476 for ac_dir in $PATH; do
2478 # Account for people who put trailing slashes in PATH elements.
2480 / | ./ | .// | /cC/* \
2481 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2484 # OSF1 and SCO ODT 3.0 have their own names for install.
2485 # Don't use installbsd from OSF since it installs stuff as root
2487 for ac_prog in ginstall scoinst install; do
2488 if $as_executable_p "$ac_dir/$ac_prog"; then
2489 if test $ac_prog = install &&
2490 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2491 # AIX install. It has an incompatible calling convention.
2493 elif test $ac_prog = install &&
2494 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2495 # program-specific install script used by HP pwplus--don't use.
2498 ac_cv_path_install="$ac_dir/$ac_prog -c"
2508 if test "${ac_cv_path_install+set}" = set; then
2509 INSTALL=$ac_cv_path_install
2511 # As a last resort, use the slow shell script. We don't cache a
2512 # path for INSTALL within a source directory, because that will
2513 # break other packages using the cache if that directory is
2514 # removed, or if the path is relative.
2515 INSTALL=$ac_install_sh
2518 echo "$as_me:2518: result: $INSTALL" >&5
2519 echo "${ECHO_T}$INSTALL" >&6
2521 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2522 # It thinks the first close brace ends the variable substitution.
2523 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2525 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2527 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2529 # Check whether --enable-shared or --disable-shared was given.
2530 if test "${enable_shared+set}" = set; then
2531 enableval="$enable_shared"
2532 p=${PACKAGE-default}
2534 yes) enable_shared=yes ;;
2535 no) enable_shared=no ;;
2538 # Look at the argument we got. We use all the common list separators.
2539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2540 for pkg in $enableval; do
2541 if test "X$pkg" = "X$p"; then
2551 # Check whether --enable-static or --disable-static was given.
2552 if test "${enable_static+set}" = set; then
2553 enableval="$enable_static"
2554 p=${PACKAGE-default}
2556 yes) enable_static=yes ;;
2557 no) enable_static=no ;;
2560 # Look at the argument we got. We use all the common list separators.
2561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2562 for pkg in $enableval; do
2563 if test "X$pkg" = "X$p"; then
2573 # Check whether --enable-fast-install or --disable-fast-install was given.
2574 if test "${enable_fast_install+set}" = set; then
2575 enableval="$enable_fast_install"
2576 p=${PACKAGE-default}
2578 yes) enable_fast_install=yes ;;
2579 no) enable_fast_install=no ;;
2581 enable_fast_install=no
2582 # Look at the argument we got. We use all the common list separators.
2583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2584 for pkg in $enableval; do
2585 if test "X$pkg" = "X$p"; then
2586 enable_fast_install=yes
2593 enable_fast_install=yes
2595 # Make sure we can run config.sub.
2596 $ac_config_sub sun4 >/dev/null 2>&1 ||
2597 { { echo "$as_me:2597: error: cannot run $ac_config_sub" >&5
2598 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2599 { (exit 1); exit 1; }; }
2601 echo "$as_me:2601: checking build system type" >&5
2602 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2603 if test "${ac_cv_build+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 ac_cv_build_alias=$build_alias
2607 test -z "$ac_cv_build_alias" &&
2608 ac_cv_build_alias=`$ac_config_guess`
2609 test -z "$ac_cv_build_alias" &&
2610 { { echo "$as_me:2610: error: cannot guess build type; you must specify one" >&5
2611 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2612 { (exit 1); exit 1; }; }
2613 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2614 { { echo "$as_me:2614: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2615 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2616 { (exit 1); exit 1; }; }
2619 echo "$as_me:2619: result: $ac_cv_build" >&5
2620 echo "${ECHO_T}$ac_cv_build" >&6
2622 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2623 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2624 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2626 echo "$as_me:2626: checking host system type" >&5
2627 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2628 if test "${ac_cv_host+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 ac_cv_host_alias=$host_alias
2632 test -z "$ac_cv_host_alias" &&
2633 ac_cv_host_alias=$ac_cv_build_alias
2634 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2635 { { echo "$as_me:2635: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2636 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2637 { (exit 1); exit 1; }; }
2640 echo "$as_me:2640: result: $ac_cv_host" >&5
2641 echo "${ECHO_T}$ac_cv_host" >&6
2643 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2644 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2645 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2647 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2648 if test "${with_gnu_ld+set}" = set; then
2649 withval="$with_gnu_ld"
2650 test "$withval" = no || with_gnu_ld=yes
2655 if test "$GCC" = yes; then
2656 # Check if gcc -print-prog-name=ld gives a path.
2657 echo "$as_me:2657: checking for ld used by GCC" >&5
2658 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2661 # gcc leaves a trailing carriage return which upsets mingw
2662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2667 # Accept absolute paths.
2668 [\\/]* | [A-Za-z]:[\\/]*)
2669 re_direlt='/[^/][^/]*/\.\./'
2670 # Canonicalize the path of ld
2671 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2672 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2673 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2675 test -z "$LD" && LD="$ac_prog"
2678 # If it fails, then pretend we aren't using GCC.
2682 # If it is relative, then search for the first ld in PATH.
2686 elif test "$with_gnu_ld" = yes; then
2687 echo "$as_me:2687: checking for GNU ld" >&5
2688 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2690 echo "$as_me:2690: checking for non-GNU ld" >&5
2691 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2693 if test "${lt_cv_path_LD+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 if test -z "$LD"; then
2697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2698 for ac_dir in $PATH; do
2699 test -z "$ac_dir" && ac_dir=.
2700 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2701 lt_cv_path_LD="$ac_dir/$ac_prog"
2702 # Check to see if the program is GNU ld. I'd rather use --version,
2703 # but apparently some GNU ld's only accept -v.
2704 # Break only if it was the GNU/non-GNU ld that we prefer.
2705 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2706 test "$with_gnu_ld" != no && break
2708 test "$with_gnu_ld" != yes && break
2714 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2719 if test -n "$LD"; then
2720 echo "$as_me:2720: result: $LD" >&5
2721 echo "${ECHO_T}$LD" >&6
2723 echo "$as_me:2723: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2726 test -z "$LD" && { { echo "$as_me:2726: error: no acceptable ld found in \$PATH" >&5
2727 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2728 { (exit 1); exit 1; }; }
2729 echo "$as_me:2729: checking if the linker ($LD) is GNU ld" >&5
2730 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2731 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2735 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2736 lt_cv_prog_gnu_ld=yes
2738 lt_cv_prog_gnu_ld=no
2741 echo "$as_me:2741: result: $lt_cv_prog_gnu_ld" >&5
2742 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2743 with_gnu_ld=$lt_cv_prog_gnu_ld
2745 echo "$as_me:2745: checking for $LD option to reload object files" >&5
2746 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2747 if test "${lt_cv_ld_reload_flag+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 lt_cv_ld_reload_flag='-r'
2752 echo "$as_me:2752: result: $lt_cv_ld_reload_flag" >&5
2753 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2754 reload_flag=$lt_cv_ld_reload_flag
2755 test -n "$reload_flag" && reload_flag=" $reload_flag"
2757 echo "$as_me:2757: checking for BSD-compatible nm" >&5
2758 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2759 if test "${lt_cv_path_NM+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 if test -n "$NM"; then
2763 # Let the user override the test.
2766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2767 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2768 test -z "$ac_dir" && ac_dir=.
2769 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2770 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2771 # Check to see if the nm accepts a BSD-compat flag.
2772 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2773 # nm: unknown option "B" ignored
2774 # Tru64's nm complains that /dev/null is an invalid object file
2775 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2776 lt_cv_path_NM="$tmp_nm -B"
2778 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2779 lt_cv_path_NM="$tmp_nm -p"
2782 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2783 continue # so that we can try to find one that supports BSD flags
2788 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2793 echo "$as_me:2793: result: $NM" >&5
2794 echo "${ECHO_T}$NM" >&6
2796 echo "$as_me:2796: checking whether ln -s works" >&5
2797 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2799 if test "$LN_S" = "ln -s"; then
2800 echo "$as_me:2800: result: yes" >&5
2801 echo "${ECHO_T}yes" >&6
2803 echo "$as_me:2803: result: no, using $LN_S" >&5
2804 echo "${ECHO_T}no, using $LN_S" >&6
2807 echo "$as_me:2807: checking how to recognise dependant libraries" >&5
2808 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2809 if test "${lt_cv_deplibs_check_method+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 lt_cv_file_magic_cmd='$MAGIC_CMD'
2813 lt_cv_file_magic_test_file=
2814 lt_cv_deplibs_check_method='unknown'
2815 # Need to set the preceding variable on all platforms that support
2816 # interlibrary dependencies.
2817 # 'none' -- dependencies not supported.
2818 # `unknown' -- same as none, but documents that we really don't know.
2819 # 'pass_all' -- all dependencies passed with no checks.
2820 # 'test_compile' -- check by making test program.
2821 # ['file_magic [regex]'] -- check by looking for files in library path
2822 # which responds to the $file_magic_cmd with a given egrep regex.
2823 # If you have `file' or equivalent on your system and you're not sure
2824 # whether `pass_all' will *always* work, you probably want this one.
2828 lt_cv_deplibs_check_method=pass_all
2832 lt_cv_deplibs_check_method=pass_all
2836 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2837 lt_cv_file_magic_cmd='/usr/bin/file -L'
2838 lt_cv_file_magic_test_file=/shlib/libc.so
2841 cygwin* | mingw* | pw32*)
2842 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2843 lt_cv_file_magic_cmd='$OBJDUMP -f'
2846 darwin* | rhapsody*)
2847 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2848 lt_cv_file_magic_cmd='/usr/bin/file -L'
2850 rhapsody* | darwin1.012)
2851 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2854 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2860 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2863 # Not sure whether the presence of OpenBSD here was a mistake.
2864 # Let's accept both of them until this is cleared up.
2865 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2866 lt_cv_file_magic_cmd=/usr/bin/file
2867 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2871 lt_cv_deplibs_check_method=pass_all
2876 lt_cv_deplibs_check_method=pass_all
2880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2881 lt_cv_file_magic_cmd=/usr/bin/file
2882 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2888 # this will be overridden with pass_all, but let us keep it just in case
2889 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2893 *-32|*"-32 ") libmagic=32-bit;;
2894 *-n32|*"-n32 ") libmagic=N32;;
2895 *-64|*"-64 ") libmagic=64-bit;;
2896 *) libmagic=never-match;;
2898 # this will be overridden with pass_all, but let us keep it just in case
2899 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2902 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2903 lt_cv_deplibs_check_method=pass_all
2906 # This must be Linux ELF.
2909 alpha* | i*86 | powerpc* | sparc* | ia64* )
2910 lt_cv_deplibs_check_method=pass_all ;;
2912 # glibc up to 2.1.1 does not perform some relocations on ARM
2913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2915 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2919 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2920 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2922 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2928 lt_cv_file_magic_cmd=/usr/bin/file
2929 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2932 osf3* | osf4* | osf5*)
2933 # this will be overridden with pass_all, but let us keep it just in case
2934 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2935 lt_cv_file_magic_test_file=/shlib/libc.so
2936 lt_cv_deplibs_check_method=pass_all
2940 lt_cv_deplibs_check_method=pass_all
2944 lt_cv_deplibs_check_method=pass_all
2945 lt_cv_file_magic_test_file=/lib/libc.so
2948 sysv5uw[78]* | sysv4*uw2*)
2949 lt_cv_deplibs_check_method=pass_all
2952 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2953 case $host_vendor in
2955 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]'
2956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2959 lt_cv_deplibs_check_method=pass_all
2962 lt_cv_file_magic_cmd='/bin/file'
2963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2966 lt_cv_file_magic_cmd='/bin/file'
2967 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2968 lt_cv_file_magic_test_file=/lib/libc.so
2975 echo "$as_me:2975: result: $lt_cv_deplibs_check_method" >&5
2976 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2977 file_magic_cmd=$lt_cv_file_magic_cmd
2978 deplibs_check_method=$lt_cv_deplibs_check_method
2980 # Check for command to grab the raw symbol name followed by C symbol from nm.
2981 echo "$as_me:2981: checking command to parse $NM output" >&5
2982 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2983 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 # These are sane defaults that work on at least a few old systems.
2988 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2990 # Character class describing NM global symbol codes.
2991 symcode='[BCDEGRST]'
2993 # Regexp to match symbols that can be accessed directly from C.
2994 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2996 # Transform the above into a raw symbol and a C symbol.
2997 symxfrm='\1 \2\3 \3'
2999 # Transform an extracted symbol line into a proper C declaration
3000 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3002 # Define system-specific variables.
3007 cygwin* | mingw* | pw32*)
3008 symcode='[ABCDGISTW]'
3010 hpux*) # Its linker distinguishes data from code symbols
3011 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3014 symcode='[BCDEGRST]'
3024 # Handle CRLF in mingw tool chain
3028 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3032 # If we're using GNU nm, then use its standard symbol codes.
3033 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3034 symcode='[ABCDGISTW]'
3037 # Try without a prefix undercore, then with it.
3038 for ac_symprfx in "" "_"; do
3040 # Write the raw and C identifiers.
3041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3043 # Check to see that the pipe works correctly.
3046 cat > conftest.$ac_ext <<EOF
3051 void nm_test_func(){}
3055 int main(){nm_test_var='a';nm_test_func();return(0);}
3058 if { (eval echo "$as_me:3058: \"$ac_compile\"") >&5
3059 (eval $ac_compile) 2>&5
3061 echo "$as_me:3061: \$? = $ac_status" >&5
3062 (exit $ac_status); }; then
3063 # Now try to grab the symbols.
3065 if { (eval echo "$as_me:3065: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3066 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3068 echo "$as_me:3068: \$? = $ac_status" >&5
3069 (exit $ac_status); } && test -s "$nlist"; then
3070 # Try sorting and uniquifying the output.
3071 if sort "$nlist" | uniq > "$nlist"T; then
3072 mv -f "$nlist"T "$nlist"
3077 # Make sure that we snagged all the symbols we need.
3078 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3079 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3080 cat <<EOF > conftest.$ac_ext
3086 # Now generate the symbol file.
3087 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3089 cat <<EOF >> conftest.$ac_ext
3090 #if defined (__STDC__) && __STDC__
3091 # define lt_ptr_t void *
3093 # define lt_ptr_t char *
3097 /* The mapping between symbol names and symbols. */
3102 lt_preloaded_symbols[] =
3105 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3106 cat <<\EOF >> conftest.$ac_ext
3114 # Now try linking the two files.
3115 mv conftest.$ac_objext conftstm.$ac_objext
3117 save_CFLAGS="$CFLAGS"
3118 LIBS="conftstm.$ac_objext"
3119 CFLAGS="$CFLAGS$no_builtin_flag"
3120 if { (eval echo "$as_me:3120: \"$ac_link\"") >&5
3121 (eval $ac_link) 2>&5
3123 echo "$as_me:3123: \$? = $ac_status" >&5
3124 (exit $ac_status); } && test -s conftest; then
3128 CFLAGS="$save_CFLAGS"
3130 echo "cannot find nm_test_func in $nlist" >&5
3133 echo "cannot find nm_test_var in $nlist" >&5
3136 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3139 echo "$progname: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3142 rm -f conftest* conftst*
3144 # Do not use the global_symbol_pipe unless it works.
3145 if test "$pipe_works" = yes; then
3148 lt_cv_sys_global_symbol_pipe=
3154 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3155 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3156 global_symbol_to_cdecl=
3158 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3160 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3161 echo "$as_me:3161: result: failed" >&5
3162 echo "${ECHO_T}failed" >&6
3164 echo "$as_me:3164: result: ok" >&5
3165 echo "${ECHO_T}ok" >&6
3168 for ac_header in dlfcn.h
3170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3171 echo "$as_me:3171: checking for $ac_header" >&5
3172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 cat >conftest.$ac_ext <<_ACEOF
3177 #line 3177 "configure"
3178 #include "confdefs.h"
3179 #include <$ac_header>
3181 if { (eval echo "$as_me:3181: \"$ac_cpp conftest.$ac_ext\"") >&5
3182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3184 egrep -v '^ *\+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:3187: \$? = $ac_status" >&5
3188 (exit $ac_status); } >/dev/null; then
3189 if test -s conftest.err; then
3190 ac_cpp_err=$ac_c_preproc_warn_flag
3197 if test -z "$ac_cpp_err"; then
3198 eval "$as_ac_Header=yes"
3200 echo "$as_me: failed program was:" >&5
3201 cat conftest.$ac_ext >&5
3202 eval "$as_ac_Header=no"
3204 rm -f conftest.err conftest.$ac_ext
3206 echo "$as_me:3206: result: `eval echo '${'$as_ac_Header'}'`" >&5
3207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3209 cat >>confdefs.h <<EOF
3210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3216 # Only perform the check for file, if the check method requires it
3217 case $deplibs_check_method in
3219 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3220 echo "$as_me:3220: checking for ${ac_tool_prefix}file" >&5
3221 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3230 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3233 ac_save_MAGIC_CMD="$MAGIC_CMD"
3234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3235 ac_dummy="/usr/bin:$PATH"
3236 for ac_dir in $ac_dummy; do
3237 test -z "$ac_dir" && ac_dir=.
3238 if test -f $ac_dir/${ac_tool_prefix}file; then
3239 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3240 if test -n "$file_magic_test_file"; then
3241 case $deplibs_check_method in
3243 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3246 egrep "$file_magic_regex" > /dev/null; then
3251 *** Warning: the command libtool uses to detect shared libraries,
3252 *** $file_magic_cmd, produces output that libtool cannot recognize.
3253 *** The result is that libtool may fail to recognize shared libraries
3254 *** as such. This will affect the creation of libtool libraries that
3255 *** depend on shared libraries, but programs linked with such libtool
3256 *** libraries will work regardless of this problem. Nevertheless, you
3257 *** may want to report the problem to your system manager and/or to
3258 *** bug-libtool@gnu.org
3268 MAGIC_CMD="$ac_save_MAGIC_CMD"
3273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3274 if test -n "$MAGIC_CMD"; then
3275 echo "$as_me:3275: result: $MAGIC_CMD" >&5
3276 echo "${ECHO_T}$MAGIC_CMD" >&6
3278 echo "$as_me:3278: result: no" >&5
3279 echo "${ECHO_T}no" >&6
3282 if test -z "$lt_cv_path_MAGIC_CMD"; then
3283 if test -n "$ac_tool_prefix"; then
3284 echo "$as_me:3284: checking for file" >&5
3285 echo $ECHO_N "checking for file... $ECHO_C" >&6
3286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3297 ac_save_MAGIC_CMD="$MAGIC_CMD"
3298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3299 ac_dummy="/usr/bin:$PATH"
3300 for ac_dir in $ac_dummy; do
3301 test -z "$ac_dir" && ac_dir=.
3302 if test -f $ac_dir/file; then
3303 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3304 if test -n "$file_magic_test_file"; then
3305 case $deplibs_check_method in
3307 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3308 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3309 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3310 egrep "$file_magic_regex" > /dev/null; then
3315 *** Warning: the command libtool uses to detect shared libraries,
3316 *** $file_magic_cmd, produces output that libtool cannot recognize.
3317 *** The result is that libtool may fail to recognize shared libraries
3318 *** as such. This will affect the creation of libtool libraries that
3319 *** depend on shared libraries, but programs linked with such libtool
3320 *** libraries will work regardless of this problem. Nevertheless, you
3321 *** may want to report the problem to your system manager and/or to
3322 *** bug-libtool@gnu.org
3332 MAGIC_CMD="$ac_save_MAGIC_CMD"
3337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3338 if test -n "$MAGIC_CMD"; then
3339 echo "$as_me:3339: result: $MAGIC_CMD" >&5
3340 echo "${ECHO_T}$MAGIC_CMD" >&6
3342 echo "$as_me:3342: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3358 echo "$as_me:3358: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3366 ac_save_IFS=$IFS; IFS=$ac_path_separator
3368 for ac_dir in $ac_dummy; do
3370 test -z "$ac_dir" && ac_dir=.
3371 $as_executable_p "$ac_dir/$ac_word" || continue
3372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3373 echo "$as_me:3373: found $ac_dir/$ac_word" >&5
3379 RANLIB=$ac_cv_prog_RANLIB
3380 if test -n "$RANLIB"; then
3381 echo "$as_me:3381: result: $RANLIB" >&5
3382 echo "${ECHO_T}$RANLIB" >&6
3384 echo "$as_me:3384: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3389 if test -z "$ac_cv_prog_RANLIB"; then
3390 ac_ct_RANLIB=$RANLIB
3391 # Extract the first word of "ranlib", so it can be a program name with args.
3392 set dummy ranlib; ac_word=$2
3393 echo "$as_me:3393: checking for $ac_word" >&5
3394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 if test -n "$ac_ct_RANLIB"; then
3399 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3401 ac_save_IFS=$IFS; IFS=$ac_path_separator
3403 for ac_dir in $ac_dummy; do
3405 test -z "$ac_dir" && ac_dir=.
3406 $as_executable_p "$ac_dir/$ac_word" || continue
3407 ac_cv_prog_ac_ct_RANLIB="ranlib"
3408 echo "$as_me:3408: found $ac_dir/$ac_word" >&5
3412 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3416 if test -n "$ac_ct_RANLIB"; then
3417 echo "$as_me:3417: result: $ac_ct_RANLIB" >&5
3418 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3420 echo "$as_me:3420: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3424 RANLIB=$ac_ct_RANLIB
3426 RANLIB="$ac_cv_prog_RANLIB"
3429 if test -n "$ac_tool_prefix"; then
3430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3431 set dummy ${ac_tool_prefix}strip; ac_word=$2
3432 echo "$as_me:3432: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_prog_STRIP+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 if test -n "$STRIP"; then
3438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3440 ac_save_IFS=$IFS; IFS=$ac_path_separator
3442 for ac_dir in $ac_dummy; do
3444 test -z "$ac_dir" && ac_dir=.
3445 $as_executable_p "$ac_dir/$ac_word" || continue
3446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3447 echo "$as_me:3447: found $ac_dir/$ac_word" >&5
3453 STRIP=$ac_cv_prog_STRIP
3454 if test -n "$STRIP"; then
3455 echo "$as_me:3455: result: $STRIP" >&5
3456 echo "${ECHO_T}$STRIP" >&6
3458 echo "$as_me:3458: result: no" >&5
3459 echo "${ECHO_T}no" >&6
3463 if test -z "$ac_cv_prog_STRIP"; then
3465 # Extract the first word of "strip", so it can be a program name with args.
3466 set dummy strip; ac_word=$2
3467 echo "$as_me:3467: checking for $ac_word" >&5
3468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 if test -n "$ac_ct_STRIP"; then
3473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3475 ac_save_IFS=$IFS; IFS=$ac_path_separator
3477 for ac_dir in $ac_dummy; do
3479 test -z "$ac_dir" && ac_dir=.
3480 $as_executable_p "$ac_dir/$ac_word" || continue
3481 ac_cv_prog_ac_ct_STRIP="strip"
3482 echo "$as_me:3482: found $ac_dir/$ac_word" >&5
3486 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3489 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3490 if test -n "$ac_ct_STRIP"; then
3491 echo "$as_me:3491: result: $ac_ct_STRIP" >&5
3492 echo "${ECHO_T}$ac_ct_STRIP" >&6
3494 echo "$as_me:3494: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3500 STRIP="$ac_cv_prog_STRIP"
3506 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3507 if test "${enable_libtool_lock+set}" = set; then
3508 enableval="$enable_libtool_lock"
3511 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3513 # Some flags need to be propagated to the compiler or linker for good
3517 # Find out which ABI we are using.
3518 echo '#line 3518 "configure"' > conftest.$ac_ext
3519 if { (eval echo "$as_me:3519: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>&5
3522 echo "$as_me:3522: \$? = $ac_status" >&5
3523 (exit $ac_status); }; then
3524 case `/usr/bin/file conftest.$ac_objext` in
3540 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3541 SAVE_CFLAGS="$CFLAGS"
3542 CFLAGS="$CFLAGS -belf"
3543 echo "$as_me:3543: checking whether the C compiler needs -belf" >&5
3544 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3545 if test "${lt_cv_cc_needs_belf+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 ac_cpp='$CPP $CPPFLAGS'
3551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 cat >conftest.$ac_ext <<_ACEOF
3556 #line 3556 "configure"
3557 #include "confdefs.h"
3567 rm -f conftest.$ac_objext conftest$ac_exeext
3568 if { (eval echo "$as_me:3568: \"$ac_link\"") >&5
3569 (eval $ac_link) 2>&5
3571 echo "$as_me:3571: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -s conftest$ac_exeext'
3574 { (eval echo "$as_me:3574: \"$ac_try\"") >&5
3577 echo "$as_me:3577: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 lt_cv_cc_needs_belf=yes
3581 echo "$as_me: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3583 lt_cv_cc_needs_belf=no
3585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593 echo "$as_me:3593: result: $lt_cv_cc_needs_belf" >&5
3594 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3595 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3596 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3597 CFLAGS="$SAVE_CFLAGS"
3603 # Sed substitution that helps us do robust quoting. It backslashifies
3604 # metacharacters that are still active within double-quoted strings.
3605 Xsed='sed -e s/^X//'
3606 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3608 # Same as above, but do not quote variable references.
3609 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3611 # Sed substitution to delay expansion of an escaped shell variable in a
3612 # double_quote_subst'ed string.
3613 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3619 default_ofile=libtool
3620 can_build_shared=yes
3622 # All known linkers require a `.a' archive for static linking (except M$VC,
3623 # which needs '.lib').
3625 ltmain="$ac_aux_dir/ltmain.sh"
3626 ofile="$default_ofile"
3627 with_gnu_ld="$lt_cv_prog_gnu_ld"
3628 need_locks="$enable_libtool_lock"
3631 old_CFLAGS="$CFLAGS"
3633 # Set sane defaults for various variables
3634 test -z "$AR" && AR=ar
3635 test -z "$AR_FLAGS" && AR_FLAGS=cru
3636 test -z "$AS" && AS=as
3637 test -z "$CC" && CC=cc
3638 test -z "$DLLTOOL" && DLLTOOL=dlltool
3639 test -z "$LD" && LD=ld
3640 test -z "$LN_S" && LN_S="ln -s"
3641 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3642 test -z "$NM" && NM=nm
3643 test -z "$OBJDUMP" && OBJDUMP=objdump
3644 test -z "$RANLIB" && RANLIB=:
3645 test -z "$STRIP" && STRIP=:
3646 test -z "$ac_objext" && ac_objext=o
3648 if test x"$host" != x"$build"; then
3649 ac_tool_prefix=${host_alias}-
3654 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3657 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3662 # AIX sometimes has problems with the GCC collect2 program. For some
3663 # reason, if we set the COLLECT_NAMES environment variable, the problems
3664 # vanish in a puff of smoke.
3665 if test "X${COLLECT_NAMES+set}" != Xset; then
3667 export COLLECT_NAMES
3672 # Determine commands to create old-style static archives.
3673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3674 old_postinstall_cmds='chmod 644 $oldlib'
3675 old_postuninstall_cmds=
3677 if test -n "$RANLIB"; then
3678 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3679 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3682 # Allow CC to be a program name with arguments.
3686 echo "$as_me:3686: checking for objdir" >&5
3687 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3688 rm -f .libs 2>/dev/null
3689 mkdir .libs 2>/dev/null
3690 if test -d .libs; then
3693 # MS-DOS does not allow filenames that begin with a dot.
3696 rmdir .libs 2>/dev/null
3697 echo "$as_me:3697: result: $objdir" >&5
3698 echo "${ECHO_T}$objdir" >&6
3700 # Check whether --with-pic or --without-pic was given.
3701 if test "${with_pic+set}" = set; then
3707 test -z "$pic_mode" && pic_mode=default
3709 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3710 # in isolation, and that seeing it set (from the cache) indicates that
3711 # the associated values are set (in the cache) correctly too.
3712 echo "$as_me:3712: checking for $compiler option to produce PIC" >&5
3713 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3714 if test "${lt_cv_prog_cc_pic+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 lt_cv_prog_cc_shlib=
3720 lt_cv_prog_cc_static=
3721 lt_cv_prog_cc_no_builtin=
3722 lt_cv_prog_cc_can_build_shared=$can_build_shared
3724 if test "$GCC" = yes; then
3725 lt_cv_prog_cc_wl='-Wl,'
3726 lt_cv_prog_cc_static='-static'
3730 # Below there is a dirty hack to force normal static linking with -ldl
3731 # The problem is because libdl dynamically linked with both libc and
3732 # libC (AIX C++ library), which obviously doesn't included in libraries
3733 # list by gcc. This cause undefined symbols with -static flags.
3734 # This hack allows C programs to be linked with "-static -ldl", but
3735 # we not sure about C++ programs.
3736 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3739 # FIXME: we need at least 68020 code to build shared libraries, but
3740 # adding the `-m68020' flag to GCC prevents building anything better,
3742 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3744 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3745 # PIC is the default for these OSes.
3747 darwin* | rhapsody*)
3748 # PIC is the default on this platform
3749 # Common symbols not allowed in MH_DYLIB files
3750 lt_cv_prog_cc_pic='-fno-common'
3752 cygwin* | mingw* | pw32* | os2*)
3753 # This hack is so that the source file can tell whether it is being
3754 # built for inclusion in a dll (and should export symbols for example).
3755 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3758 if test -d /usr/nec; then
3759 lt_cv_prog_cc_pic=-Kconform_pic
3763 lt_cv_prog_cc_pic='-fPIC'
3767 # PORTME Check for PIC flags for the system compiler.
3769 aix3* | aix4* | aix5*)
3770 # All AIX code is PIC.
3771 if test "$host_cpu" = ia64; then
3772 # AIX 5 now supports IA64 processor
3773 lt_cv_prog_cc_static='-Bstatic'
3774 lt_cv_prog_cc_wl='-Wl,'
3776 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3780 hpux9* | hpux10* | hpux11*)
3781 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3782 lt_cv_prog_cc_wl='-Wl,'
3783 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3784 lt_cv_prog_cc_pic='+Z'
3788 lt_cv_prog_cc_wl='-Wl,'
3789 lt_cv_prog_cc_static='-non_shared'
3790 # PIC (with -KPIC) is the default.
3793 cygwin* | mingw* | pw32* | os2*)
3794 # This hack is so that the source file can tell whether it is being
3795 # built for inclusion in a dll (and should export symbols for example).
3796 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3800 lt_cv_prog_cc_pic='-KPIC'
3801 lt_cv_prog_cc_static='-Bstatic'
3804 osf3* | osf4* | osf5*)
3805 # All OSF/1 code is PIC.
3806 lt_cv_prog_cc_wl='-Wl,'
3807 lt_cv_prog_cc_static='-non_shared'
3811 lt_cv_prog_cc_pic='-Kpic'
3812 lt_cv_prog_cc_static='-dn'
3813 lt_cv_prog_cc_shlib='-belf'
3817 lt_cv_prog_cc_pic='-KPIC'
3818 lt_cv_prog_cc_static='-Bstatic'
3819 lt_cv_prog_cc_wl='-Wl,'
3823 lt_cv_prog_cc_pic='-PIC'
3824 lt_cv_prog_cc_static='-Bstatic'
3825 lt_cv_prog_cc_wl='-Qoption ld '
3828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3829 lt_cv_prog_cc_pic='-KPIC'
3830 lt_cv_prog_cc_static='-Bstatic'
3831 if test "x$host_vendor" = xsni; then
3832 lt_cv_prog_cc_wl='-LD'
3834 lt_cv_prog_cc_wl='-Wl,'
3839 lt_cv_prog_cc_pic='-pic'
3840 lt_cv_prog_cc_static='-Bstatic'
3844 if test -d /usr/nec ;then
3845 lt_cv_prog_cc_pic='-Kconform_pic'
3846 lt_cv_prog_cc_static='-Bstatic'
3851 lt_cv_prog_cc_can_build_shared=no
3858 if test -z "$lt_cv_prog_cc_pic"; then
3859 echo "$as_me:3859: result: none" >&5
3860 echo "${ECHO_T}none" >&6
3862 echo "$as_me:3862: result: $lt_cv_prog_cc_pic" >&5
3863 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3865 # Check to make sure the pic_flag actually works.
3866 echo "$as_me:3866: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3867 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3868 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 save_CFLAGS="$CFLAGS"
3872 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3873 cat >conftest.$ac_ext <<_ACEOF
3874 #line 3874 "configure"
3875 #include "confdefs.h"
3885 rm -f conftest.$ac_objext
3886 if { (eval echo "$as_me:3886: \"$ac_compile\"") >&5
3887 (eval $ac_compile) 2>&5
3889 echo "$as_me:3889: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:3892: \"$ac_try\"") >&5
3895 echo "$as_me:3895: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3898 hpux9* | hpux10* | hpux11*)
3899 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3900 # they create non-PIC objects. So, if there were any warnings, we
3901 # assume that PIC is not supported.
3902 if test -s conftest.err; then
3903 lt_cv_prog_cc_pic_works=no
3905 lt_cv_prog_cc_pic_works=yes
3909 lt_cv_prog_cc_pic_works=yes
3914 echo "$as_me: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 lt_cv_prog_cc_pic_works=no
3919 rm -f conftest.$ac_objext conftest.$ac_ext
3920 CFLAGS="$save_CFLAGS"
3924 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3926 lt_cv_prog_cc_can_build_shared=no
3928 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3931 echo "$as_me:3931: result: $lt_cv_prog_cc_pic_works" >&5
3932 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3935 # Check for any special shared library compilation flags.
3936 if test -n "$lt_cv_prog_cc_shlib"; then
3937 { echo "$as_me:3937: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3938 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3939 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
3941 { echo "$as_me:3941: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3942 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3943 lt_cv_prog_cc_can_build_shared=no
3947 echo "$as_me:3947: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3948 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3949 if test "${lt_cv_prog_cc_static_works+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 lt_cv_prog_cc_static_works=no
3953 save_LDFLAGS="$LDFLAGS"
3954 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3955 cat >conftest.$ac_ext <<_ACEOF
3956 #line 3956 "configure"
3957 #include "confdefs.h"
3967 rm -f conftest.$ac_objext conftest$ac_exeext
3968 if { (eval echo "$as_me:3968: \"$ac_link\"") >&5
3969 (eval $ac_link) 2>&5
3971 echo "$as_me:3971: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -s conftest$ac_exeext'
3974 { (eval echo "$as_me:3974: \"$ac_try\"") >&5
3977 echo "$as_me:3977: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3979 lt_cv_prog_cc_static_works=yes
3981 echo "$as_me: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3985 LDFLAGS="$save_LDFLAGS"
3989 # Belt *and* braces to stop my trousers falling down:
3990 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3991 echo "$as_me:3991: result: $lt_cv_prog_cc_static_works" >&5
3992 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
3994 pic_flag="$lt_cv_prog_cc_pic"
3995 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3996 wl="$lt_cv_prog_cc_wl"
3997 link_static_flag="$lt_cv_prog_cc_static"
3998 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3999 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4001 # Check to see if options -o and -c are simultaneously supported by compiler
4002 echo "$as_me:4002: checking if $compiler supports -c -o file.$ac_objext" >&5
4003 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4004 if test "${lt_cv_compiler_c_o+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 $rm -r conftest 2>/dev/null
4011 echo "int some_variable = 0;" > conftest.$ac_ext
4013 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4014 # that will create temporary files in the current directory regardless of
4015 # the output directory. Thus, making CWD read-only will cause this test
4016 # to fail, enabling locking or at least warning the user not to do parallel
4019 save_CFLAGS="$CFLAGS"
4020 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4022 if { (eval echo configure:4022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4023 # The compiler can only warn and ignore the option if not recognized
4024 # So say no if there are warnings
4025 if test -s out/conftest.err; then
4026 lt_cv_compiler_c_o=no
4028 lt_cv_compiler_c_o=yes
4031 # Append any errors to the config.log.
4032 cat out/conftest.err 1>&5
4033 lt_cv_compiler_c_o=no
4035 CFLAGS="$save_CFLAGS"
4041 $rm -r conftest 2>/dev/null
4045 compiler_c_o=$lt_cv_compiler_c_o
4046 echo "$as_me:4046: result: $compiler_c_o" >&5
4047 echo "${ECHO_T}$compiler_c_o" >&6
4049 if test x"$compiler_c_o" = x"yes"; then
4050 # Check to see if we can write to a .lo
4051 echo "$as_me:4051: checking if $compiler supports -c -o file.lo" >&5
4052 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4053 if test "${lt_cv_compiler_o_lo+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 lt_cv_compiler_o_lo=no
4058 save_CFLAGS="$CFLAGS"
4059 CFLAGS="$CFLAGS -c -o conftest.lo"
4060 cat >conftest.$ac_ext <<_ACEOF
4061 #line 4061 "configure"
4062 #include "confdefs.h"
4067 int some_variable = 0;
4072 rm -f conftest.$ac_objext
4073 if { (eval echo "$as_me:4073: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>&5
4076 echo "$as_me:4076: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:4079: \"$ac_try\"") >&5
4082 echo "$as_me:4082: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 # The compiler can only warn and ignore the option if not recognized
4085 # So say no if there are warnings
4086 if test -s conftest.err; then
4087 lt_cv_compiler_o_lo=no
4089 lt_cv_compiler_o_lo=yes
4093 echo "$as_me: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4096 rm -f conftest.$ac_objext conftest.$ac_ext
4097 CFLAGS="$save_CFLAGS"
4101 compiler_o_lo=$lt_cv_compiler_o_lo
4102 echo "$as_me:4102: result: $compiler_c_lo" >&5
4103 echo "${ECHO_T}$compiler_c_lo" >&6
4108 # Check to see if we can do hard links to lock some files if needed
4109 hard_links="nottested"
4110 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4111 # do not overwrite the value of need_locks provided by the user
4112 echo "$as_me:4112: checking if we can lock with hard links" >&5
4113 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4118 ln conftest.a conftest.b 2>&5 || hard_links=no
4119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4120 echo "$as_me:4120: result: $hard_links" >&5
4121 echo "${ECHO_T}$hard_links" >&6
4122 if test "$hard_links" = no; then
4123 { echo "$as_me:4123: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4124 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4131 if test "$GCC" = yes; then
4132 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4133 echo "$as_me:4133: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4134 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4135 echo "int some_variable = 0;" > conftest.$ac_ext
4136 save_CFLAGS="$CFLAGS"
4137 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4138 compiler_rtti_exceptions=no
4139 cat >conftest.$ac_ext <<_ACEOF
4140 #line 4140 "configure"
4141 #include "confdefs.h"
4146 int some_variable = 0;
4151 rm -f conftest.$ac_objext
4152 if { (eval echo "$as_me:4152: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>&5
4155 echo "$as_me:4155: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (eval echo "$as_me:4158: \"$ac_try\"") >&5
4161 echo "$as_me:4161: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 # The compiler can only warn and ignore the option if not recognized
4164 # So say no if there are warnings
4165 if test -s conftest.err; then
4166 compiler_rtti_exceptions=no
4168 compiler_rtti_exceptions=yes
4172 echo "$as_me: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4175 rm -f conftest.$ac_objext conftest.$ac_ext
4176 CFLAGS="$save_CFLAGS"
4177 echo "$as_me:4177: result: $compiler_rtti_exceptions" >&5
4178 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4180 if test "$compiler_rtti_exceptions" = "yes"; then
4181 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4183 no_builtin_flag=' -fno-builtin'
4187 # See if the linker supports building shared libraries.
4188 echo "$as_me:4188: checking whether the linker ($LD) supports shared libraries" >&5
4189 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4191 allow_undefined_flag=
4193 need_lib_prefix=unknown
4194 need_version=unknown
4195 # when you set need_version to no, make sure it does not cause -set_version
4196 # flags to be left without arguments
4198 archive_expsym_cmds=
4199 old_archive_from_new_cmds=
4200 old_archive_from_expsyms_cmds=
4201 export_dynamic_flag_spec=
4202 whole_archive_flag_spec=
4203 thread_safe_flag_spec=
4204 hardcode_into_libs=no
4205 hardcode_libdir_flag_spec=
4206 hardcode_libdir_separator=
4209 hardcode_shlibpath_var=unsupported
4211 link_all_deplibs=unknown
4212 always_export_symbols=no
4213 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4214 # include_expsyms should be a list of space-separated symbols to be *always*
4215 # included in the symbol list
4217 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4218 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4219 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4220 # as well as any symbol that contains `d'.
4221 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4222 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4223 # platforms (ab)use it in PIC code, but their linkers get confused if
4224 # the symbol is explicitly referenced. Since portable code cannot
4225 # rely on this symbol name, it's probably fine to never include it in
4226 # preloaded symbol tables.
4227 extract_expsyms_cmds=
4230 cygwin* | mingw* | pw32* )
4231 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4232 # When not using gcc, we currently assume that we are using
4233 # Microsoft Visual C++.
4234 if test "$GCC" != yes; then
4242 if test "$with_gnu_ld" = yes; then
4243 # If archive_cmds runs LD, not CC, wlarc should be empty
4246 # See if GNU ld supports shared libraries.
4248 aix3* | aix4* | aix5*)
4249 # On AIX, the GNU linker is very broken
4250 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4254 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4255 *** to be unable to reliably create shared libraries on AIX.
4256 *** Therefore, libtool is disabling shared libraries support. If you
4257 *** really care for shared libraries, you may want to modify your PATH
4258 *** so that a non-GNU linker is found, and then restart.
4264 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)'
4265 hardcode_libdir_flag_spec='-L$libdir'
4266 hardcode_minus_L=yes
4268 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4269 # that the semantics of dynamic libraries on AmigaOS, at least up
4270 # to version 4, is to share data among multiple programs linked
4271 # with the same dynamic library. Since this doesn't match the
4272 # behavior of shared libraries on other platforms, we can use
4278 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4279 allow_undefined_flag=unsupported
4280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4281 # support --undefined. This deserves some investigation. FIXME
4282 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4288 cygwin* | mingw* | pw32*)
4289 # hardcode_libdir_flag_spec is actually meaningless, as there is
4290 # no search path for DLLs.
4291 hardcode_libdir_flag_spec='-L$libdir'
4292 allow_undefined_flag=unsupported
4293 always_export_symbols=yes
4295 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4296 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4297 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4298 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4299 else $CC -o impgen impgen.c ; fi)~
4300 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4302 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4304 # cygwin and mingw dlls have different entry points and sets of symbols
4306 # FIXME: what about values for MSVC?
4307 dll_entry=__cygwin_dll_entry@12
4308 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4312 dll_entry=_DllMainCRTStartup@12
4313 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4317 # mingw and cygwin differ, and it's simplest to just exclude the union
4318 # of the two symbol sets.
4319 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4321 # recent cygwin and mingw systems supply a stub DllMain which the user
4322 # can override, but on older systems we have to supply one (in ltdll.c)
4323 if test "x$lt_cv_need_dllmain" = "xyes"; then
4324 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4325 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~
4326 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4332 # Extract the symbol export list from an `--export-all' def file,
4333 # then regenerate the def file from the symbol export list, so that
4334 # the compiled dll only exports the symbol export list.
4335 # Be careful not to strip the DATA tag left be newer dlltools.
4336 export_symbols_cmds="$ltdll_cmds"'
4337 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4338 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4340 # If the export-symbols file already is a .def file (1st line
4341 # is EXPORTS), use it as is.
4342 # If DATA tags from a recent dlltool are present, honour them!
4343 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4344 cp $export_symbols $output_objdir/$soname-def;
4346 echo EXPORTS > $output_objdir/$soname-def;
4348 cat $export_symbols | while read symbol; do
4351 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4352 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4354 _lt_hint=`expr 1 + \$_lt_hint`;
4358 $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~
4359 $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~
4360 $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~
4361 $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~
4362 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4367 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4370 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4371 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4376 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4380 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4381 *** create shared libraries on Solaris systems. Therefore, libtool
4382 *** is disabling shared libraries support. We urge you to upgrade GNU
4383 *** binutils to release 2.9.1 or newer. Another option is to modify
4384 *** your PATH or compiler configuration so that the native linker is
4385 *** used, and then restart.
4388 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4397 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4400 hardcode_shlibpath_var=no
4404 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4413 if test "$ld_shlibs" = yes; then
4414 runpath_var=LD_RUN_PATH
4415 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4416 export_dynamic_flag_spec='${wl}--export-dynamic'
4418 cygwin* | mingw* | pw32*)
4419 # dlltool doesn't understand --whole-archive et. al.
4420 whole_archive_flag_spec=
4423 # ancient GNU ld didn't support --whole-archive et. al.
4424 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4425 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4427 whole_archive_flag_spec=
4433 # PORTME fill in a description of your system's linker (not GNU ld)
4436 allow_undefined_flag=unsupported
4437 always_export_symbols=yes
4438 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'
4439 # Note: this linker hardcodes the directories in LIBPATH if there
4440 # are no directories specified by -L.
4441 hardcode_minus_L=yes
4442 if test "$GCC" = yes && test -z "$link_static_flag"; then
4443 # Neither direct hardcoding nor static linking is supported with a
4445 hardcode_direct=unsupported
4450 # When large executables or shared objects are built, AIX ld can
4451 # have problems creating the table of contents. If linking a library
4452 # or program results in "error TOC overflow" add -mminimal-toc to
4453 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4454 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4457 hardcode_libdir_separator=':'
4458 if test "$GCC" = yes; then
4459 collect2name=`${CC} -print-prog-name=collect2`
4460 if test -f "$collect2name" && \
4461 strings "$collect2name" | grep resolve_lib_name >/dev/null
4463 # We have reworked collect2
4466 # We have old collect2
4467 hardcode_direct=unsupported
4468 # It fails to find uninstalled libraries when the uninstalled
4469 # path is not listed in the libpath. Setting hardcode_minus_L
4470 # to unsupported forces relinking
4471 hardcode_minus_L=yes
4472 hardcode_libdir_flag_spec='-L$libdir'
4473 hardcode_libdir_separator=
4475 shared_flag='-shared'
4477 if test "$host_cpu" = ia64; then
4480 shared_flag='${wl}-bM:SRE'
4485 if test "$host_cpu" = ia64; then
4486 # On IA64, the linker does run time linking by default, so we don't
4487 # have to do anything special.
4488 aix_use_runtimelinking=no
4489 exp_sym_flag='-Bexport'
4492 # Test if we are trying to use run time linking, or normal AIX style linking.
4493 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
4494 aix_use_runtimelinking=no
4495 for ld_flag in $LDFLAGS; do
4496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
4497 aix_use_runtimelinking=yes
4501 exp_sym_flag='-bexport'
4502 no_entry_flag='-bnoentry'
4504 # It seems that -bexpall can do strange things, so it is better to
4505 # generate a list of symbols to export.
4506 always_export_symbols=yes
4507 if test "$aix_use_runtimelinking" = yes; then
4508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4509 allow_undefined_flag=' -Wl,-G'
4510 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"
4512 if test "$host_cpu" = ia64; then
4513 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4514 allow_undefined_flag="-znodefs"
4515 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"
4517 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4518 # Warning - without using the other run time loading flags, -berok will
4519 # link without error, but may produce a broken library.
4520 allow_undefined_flag='${wl}-berok"
4521 # This is a bit strange, but is similar to how AIX traditionally builds
4522 # it's shared libraries.
4523 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'
4529 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)'
4530 hardcode_libdir_flag_spec='-L$libdir'
4531 hardcode_minus_L=yes
4532 # see comment about different semantics on the GNU ld section
4536 cygwin* | mingw* | pw32*)
4537 # When not using gcc, we currently assume that we are using
4538 # Microsoft Visual C++.
4539 # hardcode_libdir_flag_spec is actually meaningless, as there is
4540 # no search path for DLLs.
4541 hardcode_libdir_flag_spec=' '
4542 allow_undefined_flag=unsupported
4543 # Tell ltmain to make .lib files, not .a files.
4545 # FIXME: Setting linknames here is a bad hack.
4546 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4547 # The linker will automatically build a .lib file if we build a DLL.
4548 old_archive_from_new_cmds='true'
4549 # FIXME: Should let the user specify the lib program.
4550 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4551 fix_srcfile_path='`cygpath -w "$srcfile"`'
4554 darwin* | rhapsody*)
4555 allow_undefined_flag='-undefined suppress'
4556 # FIXME: Relying on posixy $() will cause problems for
4557 # cross-compilation, but unfortunately the echo tests do not
4558 # yet detect zsh echo's removal of \ escapes.
4559 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
4560 # We need to add '_' to the symbols in $export_symbols first
4561 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4563 hardcode_shlibpath_var=no
4564 whole_archive_flag_spec='-all_load $convenience'
4571 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4572 # support. Future versions do this automatically, but an explicit c++rt0.o
4573 # does not break anything, and helps significantly (at the cost of a little
4576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4577 hardcode_libdir_flag_spec='-R$libdir'
4579 hardcode_shlibpath_var=no
4582 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4586 hardcode_minus_L=yes
4587 hardcode_shlibpath_var=no
4590 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4592 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4593 hardcode_libdir_flag_spec='-R$libdir'
4595 hardcode_shlibpath_var=no
4598 hpux9* | hpux10* | hpux11*)
4600 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' ;;
4601 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4604 hardcode_libdir_separator=:
4606 hardcode_minus_L=yes # Not in the search PATH, but as the default
4607 # location of the library.
4608 export_dynamic_flag_spec='${wl}-E'
4612 if test "$GCC" = yes; then
4613 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'
4615 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'
4617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4618 hardcode_libdir_separator=:
4619 link_all_deplibs=yes
4623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4626 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4628 hardcode_libdir_flag_spec='-R$libdir'
4630 hardcode_shlibpath_var=no
4634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
4636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4637 hardcode_libdir_separator=:
4638 hardcode_shlibpath_var=no
4642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4643 hardcode_libdir_flag_spec='-R$libdir'
4645 hardcode_shlibpath_var=no
4649 hardcode_libdir_flag_spec='-L$libdir'
4650 hardcode_minus_L=yes
4651 allow_undefined_flag=unsupported
4652 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'
4653 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4657 if test "$GCC" = yes; then
4658 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4659 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'
4661 allow_undefined_flag=' -expect_unresolved \*'
4662 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'
4664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4665 hardcode_libdir_separator=:
4668 osf4* | osf5*) # as osf3* with the addition of -msym flag
4669 if test "$GCC" = yes; then
4670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4671 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'
4672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4674 allow_undefined_flag=' -expect_unresolved \*'
4675 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'
4676 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4677 $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'
4679 #Both c and cxx compiler support -rpath directly
4680 hardcode_libdir_flag_spec='-rpath $libdir'
4682 hardcode_libdir_separator=:
4686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4687 hardcode_shlibpath_var=no
4688 runpath_var=LD_RUN_PATH
4689 hardcode_runpath_var=yes
4693 no_undefined_flag=' -z defs'
4694 # $CC -shared without GNU ld will not create a library from C++
4695 # object files and a static libstdc++, better avoid it by now
4696 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4697 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4698 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4699 hardcode_libdir_flag_spec='-R$libdir'
4700 hardcode_shlibpath_var=no
4702 solaris2.[0-5] | solaris2.[0-5].*) ;;
4703 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4704 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4706 link_all_deplibs=yes
4710 if test "x$host_vendor" = xsequent; then
4711 # Use $CC to link under sequent, because it throws in some extra .o
4712 # files that make .init and .fini sections work.
4713 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4715 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4717 hardcode_libdir_flag_spec='-L$libdir'
4719 hardcode_minus_L=yes
4720 hardcode_shlibpath_var=no
4724 if test "x$host_vendor" = xsno; then
4725 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
4726 hardcode_direct=yes # is this really true???
4728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4729 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4731 runpath_var='LD_RUN_PATH'
4732 hardcode_shlibpath_var=no
4736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4737 hardcode_shlibpath_var=no
4738 export_dynamic_flag_spec='-Bexport'
4742 no_undefined_flag=' -z text'
4743 # $CC -shared without GNU ld will not create a library from C++
4744 # object files and a static libstdc++, better avoid it by now
4745 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4746 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4747 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4748 hardcode_libdir_flag_spec=
4749 hardcode_shlibpath_var=no
4750 runpath_var='LD_RUN_PATH'
4754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4755 hardcode_libdir_flag_spec='-L$libdir'
4756 hardcode_shlibpath_var=no
4760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4761 hardcode_libdir_flag_spec='-L$libdir'
4762 hardcode_shlibpath_var=no
4766 if test -d /usr/nec; then
4767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4768 hardcode_shlibpath_var=no
4769 runpath_var=LD_RUN_PATH
4770 hardcode_runpath_var=yes
4776 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4779 hardcode_shlibpath_var=no
4780 hardcode_runpath_var=yes
4781 runpath_var=LD_RUN_PATH
4784 sysv5uw7* | unixware7*)
4785 no_undefined_flag='${wl}-z ${wl}text'
4786 if test "$GCC" = yes; then
4787 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4789 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4791 runpath_var='LD_RUN_PATH'
4792 hardcode_shlibpath_var=no
4800 echo "$as_me:4800: result: $ld_shlibs" >&5
4801 echo "${ECHO_T}$ld_shlibs" >&6
4802 test "$ld_shlibs" = no && can_build_shared=no
4804 # Check hardcoding attributes.
4805 echo "$as_me:4805: checking how to hardcode library paths into programs" >&5
4806 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4808 if test -n "$hardcode_libdir_flag_spec" || \
4809 test -n "$runpath_var"; then
4811 # We can hardcode non-existant directories.
4812 if test "$hardcode_direct" != no &&
4813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4814 # have to relink, otherwise we might link with an installed library
4815 # when we should be linking with a yet-to-be-installed one
4816 ## test "$hardcode_shlibpath_var" != no &&
4817 test "$hardcode_minus_L" != no; then
4818 # Linking always hardcodes the temporary library directory.
4819 hardcode_action=relink
4821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4822 hardcode_action=immediate
4825 # We cannot hardcode anything, or else we can only hardcode existing
4827 hardcode_action=unsupported
4829 echo "$as_me:4829: result: $hardcode_action" >&5
4830 echo "${ECHO_T}$hardcode_action" >&6
4834 echo "$as_me:4834: checking whether stripping libraries is possible" >&5
4835 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4836 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4838 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4839 echo "$as_me:4839: result: yes" >&5
4840 echo "${ECHO_T}yes" >&6
4842 echo "$as_me:4842: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4849 # PORTME Fill in your ld.so characteristics
4850 echo "$as_me:4850: checking dynamic linker characteristics" >&5
4851 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4853 libname_spec='lib$name'
4860 shlibpath_overrides_runpath=unknown
4862 dynamic_linker="$host_os ld.so"
4863 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4864 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4869 library_names_spec='${libname}${release}.so$versuffix $libname.a'
4870 shlibpath_var=LIBPATH
4872 # AIX has no versioning support, so we append a major version to the name.
4873 soname_spec='${libname}${release}.so$major'
4878 if test "$host_cpu" = ia64; then
4879 # AIX 5 supports IA64
4880 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4881 shlibpath_var=LD_LIBRARY_PATH
4883 # With GCC up to 2.95.x, collect2 would create an import file
4884 # for dependence libraries. The import file would start with
4885 # the line `#! .'. This would cause the generated library to
4886 # depend on `.', always an invalid library. This was fixed in
4887 # development snapshots of GCC prior to 3.0.
4889 aix4 | aix4.[01] | aix4.[01].*)
4890 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4892 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4899 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4900 # soname into executable. Probably we can add versioning support to
4901 # collect2, so additional links can be useful in future.
4902 if test "$aix_use_runtimelinking" = yes; then
4903 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
4904 # lib<name>.a to let people know that these are not typical AIX shared libraries.
4905 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4907 # We preserve .a as extension for shared libraries through AIX4.2
4908 # and later when we are not doing run time linking.
4909 library_names_spec='${libname}${release}.a $libname.a'
4910 soname_spec='${libname}${release}.so$major'
4912 shlibpath_var=LIBPATH
4913 deplibs_check_method=pass_all
4918 library_names_spec='$libname.ixlibrary $libname.a'
4919 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4920 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'
4924 library_names_spec='${libname}.so'
4925 dynamic_linker="$host_os ld.so"
4926 shlibpath_var=LIBRARY_PATH
4932 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4933 soname_spec='${libname}${release}.so$major'
4934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4935 shlibpath_var=LD_LIBRARY_PATH
4936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4938 export_dynamic_flag_spec=-rdynamic
4939 # the default ld.so.conf also contains /usr/contrib/lib and
4940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4941 # libtool to hard-code these into programs
4944 cygwin* | mingw* | pw32*)
4945 version_type=windows
4948 case $GCC,$host_os in
4950 library_names_spec='$libname.dll.a'
4951 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4952 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4953 dldir=$destdir/`dirname \$dlpath`~
4954 test -d \$dldir || mkdir -p \$dldir~
4955 $install_prog .libs/$dlname \$dldir/$dlname'
4956 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4957 dlpath=$dir/\$dldll~
4961 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4965 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4968 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4971 dynamic_linker='Win32 ld.exe'
4972 # FIXME: first we should search . and the directory the executable is in
4976 darwin* | rhapsody*)
4977 dynamic_linker="$host_os dyld"
4981 # FIXME: Relying on posixy $() will cause problems for
4982 # cross-compilation, but unfortunately the echo tests do not
4983 # yet detect zsh echo's removal of \ escapes.
4984 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)'
4985 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4986 shlibpath_overrides_runpath=yes
4987 shlibpath_var=DYLD_LIBRARY_PATH
4995 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4996 version_type=freebsd-$objformat
4997 case $version_type in
4999 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5004 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5008 shlibpath_var=LD_LIBRARY_PATH
5011 shlibpath_overrides_runpath=yes
5014 shlibpath_overrides_runpath=no
5015 hardcode_into_libs=yes
5024 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5025 soname_spec='${libname}${release}.so$major'
5026 shlibpath_var=LD_LIBRARY_PATH
5027 hardcode_into_libs=yes
5030 hpux9* | hpux10* | hpux11*)
5031 # Give a soname corresponding to the major version so that dld.sl refuses to
5032 # link against other versions.
5033 dynamic_linker="$host_os dld.sl"
5037 shlibpath_var=SHLIB_PATH
5038 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5039 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5040 soname_spec='${libname}${release}.sl$major'
5041 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5042 postinstall_cmds='chmod 555 $lib'
5049 soname_spec='${libname}${release}.so$major'
5050 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5056 case $LD in # libtool.m4 will add one of these switches to LD
5057 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5058 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5059 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5060 *) libsuff= shlibsuff= libmagic=never-match;;
5064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5065 shlibpath_overrides_runpath=no
5066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5070 # No shared lib support for Linux oldld, aout, or coff.
5071 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5075 # This must be Linux ELF.
5080 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5081 soname_spec='${libname}${release}.so$major'
5082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5083 shlibpath_var=LD_LIBRARY_PATH
5084 shlibpath_overrides_runpath=no
5085 # This implies no fast_install, which is unacceptable.
5086 # Some rework will be needed to allow for fast_install
5087 # before this can be enabled.
5088 hardcode_into_libs=yes
5090 # We used to test for /lib/ld.so.1 and disable shared libraries on
5091 # powerpc, because MkLinux only supported shared libraries with the
5092 # GNU dynamic linker. Since this was broken with cross compilers,
5093 # most powerpc-linux boxes support dynamic linking these days and
5094 # people can always --disable-shared, the test was removed, and we
5095 # assume the GNU/Linux dynamic linker is in use.
5096 dynamic_linker='GNU/Linux ld.so'
5103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5104 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5106 dynamic_linker='NetBSD (a.out) ld.so'
5108 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5109 soname_spec='${libname}${release}.so$major'
5110 dynamic_linker='NetBSD ld.elf_so'
5112 shlibpath_var=LD_LIBRARY_PATH
5113 shlibpath_overrides_runpath=yes
5114 hardcode_into_libs=yes
5119 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5120 shlibpath_var=LD_LIBRARY_PATH
5121 shlibpath_overrides_runpath=yes
5126 if test "$with_gnu_ld" = yes; then
5130 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5132 shlibpath_var=LD_LIBRARY_PATH
5136 libname_spec='$name'
5138 library_names_spec='$libname.dll $libname.a'
5139 dynamic_linker='OS/2 ld.exe'
5140 shlibpath_var=LIBPATH
5143 osf3* | osf4* | osf5*)
5146 soname_spec='${libname}${release}.so'
5147 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5148 shlibpath_var=LD_LIBRARY_PATH
5149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5155 soname_spec='${libname}${release}.so$major'
5156 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5157 shlibpath_var=LD_LIBRARY_PATH
5164 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5165 soname_spec='${libname}${release}.so$major'
5166 shlibpath_var=LD_LIBRARY_PATH
5167 shlibpath_overrides_runpath=yes
5168 hardcode_into_libs=yes
5169 # ldd complains unless libraries are executable
5170 postinstall_cmds='chmod +x $lib'
5175 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5177 shlibpath_var=LD_LIBRARY_PATH
5178 shlibpath_overrides_runpath=yes
5179 if test "$with_gnu_ld" = yes; then
5185 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5187 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5188 soname_spec='${libname}${release}.so$major'
5189 shlibpath_var=LD_LIBRARY_PATH
5190 case $host_vendor in
5192 shlibpath_overrides_runpath=no
5197 shlibpath_overrides_runpath=no
5198 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5205 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5206 soname_spec='${libname}${release}.so$major'
5207 shlibpath_var=LD_LIBRARY_PATH
5214 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5215 soname_spec='${libname}${release}.so$major'
5216 shlibpath_var=LD_LIBRARY_PATH
5220 if test -d /usr/nec ;then
5222 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5223 soname_spec='$libname.so.$major'
5224 shlibpath_var=LD_LIBRARY_PATH
5232 echo "$as_me:5232: result: $dynamic_linker" >&5
5233 echo "${ECHO_T}$dynamic_linker" >&6
5234 test "$dynamic_linker" = no && can_build_shared=no
5236 # Report the final consequences.
5237 echo "$as_me:5237: checking if libtool supports shared libraries" >&5
5238 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5239 echo "$as_me:5239: result: $can_build_shared" >&5
5240 echo "${ECHO_T}$can_build_shared" >&6
5242 if test "$hardcode_action" = relink; then
5243 # Fast installation is not supported
5244 enable_fast_install=no
5245 elif test "$shlibpath_overrides_runpath" = yes ||
5246 test "$enable_shared" = no; then
5247 # Fast installation is not necessary
5248 enable_fast_install=needless
5251 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5252 if test "$GCC" = yes; then
5253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5256 if test "x$enable_dlopen" != xyes; then
5257 enable_dlopen=unknown
5258 enable_dlopen_self=unknown
5259 enable_dlopen_self_static=unknown
5266 lt_cv_dlopen="load_add_on"
5268 lt_cv_dlopen_self=yes
5271 cygwin* | mingw* | pw32*)
5272 lt_cv_dlopen="LoadLibrary"
5277 echo "$as_me:5277: checking for dlopen in -ldl" >&5
5278 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5279 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 ac_check_lib_save_LIBS=$LIBS
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line 5285 "configure"
5286 #include "confdefs.h"
5288 /* Override any gcc2 internal prototype to avoid an error. */
5292 /* We use char because int might match the return type of a gcc2
5293 builtin and then its argument prototype would still apply. */
5303 rm -f conftest.$ac_objext conftest$ac_exeext
5304 if { (eval echo "$as_me:5304: \"$ac_link\"") >&5
5305 (eval $ac_link) 2>&5
5307 echo "$as_me:5307: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -s conftest$ac_exeext'
5310 { (eval echo "$as_me:5310: \"$ac_try\"") >&5
5313 echo "$as_me:5313: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 ac_cv_lib_dl_dlopen=yes
5317 echo "$as_me: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5319 ac_cv_lib_dl_dlopen=no
5321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
5324 echo "$as_me:5324: result: $ac_cv_lib_dl_dlopen" >&5
5325 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5326 if test $ac_cv_lib_dl_dlopen = yes; then
5327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5329 echo "$as_me:5329: checking for dlopen" >&5
5330 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5331 if test "${ac_cv_func_dlopen+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 cat >conftest.$ac_ext <<_ACEOF
5335 #line 5335 "configure"
5336 #include "confdefs.h"
5337 /* System header to define __stub macros and hopefully few prototypes,
5338 which can conflict with char dlopen (); below. */
5340 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5352 /* The GNU C library defines this for functions which it implements
5353 to always fail with ENOSYS. Some functions are actually named
5354 something starting with __ and the normal name is an alias. */
5355 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (eval echo "$as_me:5366: \"$ac_link\"") >&5
5367 (eval $ac_link) 2>&5
5369 echo "$as_me:5369: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -s conftest$ac_exeext'
5372 { (eval echo "$as_me:5372: \"$ac_try\"") >&5
5375 echo "$as_me:5375: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5377 ac_cv_func_dlopen=yes
5379 echo "$as_me: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 ac_cv_func_dlopen=no
5383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5385 echo "$as_me:5385: result: $ac_cv_func_dlopen" >&5
5386 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5387 if test $ac_cv_func_dlopen = yes; then
5388 lt_cv_dlopen="dlopen"
5390 echo "$as_me:5390: checking for shl_load" >&5
5391 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5392 if test "${ac_cv_func_shl_load+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 cat >conftest.$ac_ext <<_ACEOF
5396 #line 5396 "configure"
5397 #include "confdefs.h"
5398 /* System header to define __stub macros and hopefully few prototypes,
5399 which can conflict with char shl_load (); below. */
5401 /* Override any gcc2 internal prototype to avoid an error. */
5405 /* We use char because int might match the return type of a gcc2
5406 builtin and then its argument prototype would still apply. */
5413 /* The GNU C library defines this for functions which it implements
5414 to always fail with ENOSYS. Some functions are actually named
5415 something starting with __ and the normal name is an alias. */
5416 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:5427: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>&5
5430 echo "$as_me:5430: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -s conftest$ac_exeext'
5433 { (eval echo "$as_me:5433: \"$ac_try\"") >&5
5436 echo "$as_me:5436: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_cv_func_shl_load=yes
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_func_shl_load=no
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5446 echo "$as_me:5446: result: $ac_cv_func_shl_load" >&5
5447 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5448 if test $ac_cv_func_shl_load = yes; then
5449 lt_cv_dlopen="shl_load"
5451 echo "$as_me:5451: checking for dlopen in -lsvld" >&5
5452 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5453 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 ac_check_lib_save_LIBS=$LIBS
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line 5459 "configure"
5460 #include "confdefs.h"
5462 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (eval echo "$as_me:5478: \"$ac_link\"") >&5
5479 (eval $ac_link) 2>&5
5481 echo "$as_me:5481: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -s conftest$ac_exeext'
5484 { (eval echo "$as_me:5484: \"$ac_try\"") >&5
5487 echo "$as_me:5487: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 ac_cv_lib_svld_dlopen=yes
5491 echo "$as_me: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5493 ac_cv_lib_svld_dlopen=no
5495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5496 LIBS=$ac_check_lib_save_LIBS
5498 echo "$as_me:5498: result: $ac_cv_lib_svld_dlopen" >&5
5499 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5500 if test $ac_cv_lib_svld_dlopen = yes; then
5501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5503 echo "$as_me:5503: checking for shl_load in -ldld" >&5
5504 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5505 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 ac_check_lib_save_LIBS=$LIBS
5510 cat >conftest.$ac_ext <<_ACEOF
5511 #line 5511 "configure"
5512 #include "confdefs.h"
5514 /* Override any gcc2 internal prototype to avoid an error. */
5518 /* We use char because int might match the return type of a gcc2
5519 builtin and then its argument prototype would still apply. */
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:5530: \"$ac_link\"") >&5
5531 (eval $ac_link) 2>&5
5533 echo "$as_me:5533: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 { ac_try='test -s conftest$ac_exeext'
5536 { (eval echo "$as_me:5536: \"$ac_try\"") >&5
5539 echo "$as_me:5539: \$? = $ac_status" >&5
5540 (exit $ac_status); }; }; then
5541 ac_cv_lib_dld_shl_load=yes
5543 echo "$as_me: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5545 ac_cv_lib_dld_shl_load=no
5547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5548 LIBS=$ac_check_lib_save_LIBS
5550 echo "$as_me:5550: result: $ac_cv_lib_dld_shl_load" >&5
5551 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5552 if test $ac_cv_lib_dld_shl_load = yes; then
5553 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5567 if test "x$lt_cv_dlopen" != xno; then
5573 case $lt_cv_dlopen in
5575 save_CPPFLAGS="$CPPFLAGS"
5576 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5578 save_LDFLAGS="$LDFLAGS"
5579 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5582 LIBS="$lt_cv_dlopen_libs $LIBS"
5584 echo "$as_me:5584: checking whether a program can dlopen itself" >&5
5585 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5586 if test "${lt_cv_dlopen_self+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 if test "$cross_compiling" = yes; then :
5590 lt_cv_dlopen_self=cross
5592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5593 lt_status=$lt_dlunknown
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5595 "configure"
5596 #include "confdefs.h"
5605 # define LT_DLGLOBAL RTLD_GLOBAL
5608 # define LT_DLGLOBAL DL_GLOBAL
5610 # define LT_DLGLOBAL 0
5614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5615 find out it does not work in some platform. */
5616 #ifndef LT_DLLAZY_OR_NOW
5618 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5621 # define LT_DLLAZY_OR_NOW DL_LAZY
5624 # define LT_DLLAZY_OR_NOW RTLD_NOW
5627 # define LT_DLLAZY_OR_NOW DL_NOW
5629 # define LT_DLLAZY_OR_NOW 0
5637 extern "C" void exit (int);
5640 void fnord() { int i=42;}
5643 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5644 int status = $lt_dlunknown;
5648 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5649 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5650 /* dlclose (self); */
5656 if { (eval echo "$as_me:5656: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>&5
5659 echo "$as_me:5659: \$? = $ac_status" >&5
5660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5661 (./conftest; exit; ) 2>/dev/null
5664 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5665 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5666 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5669 # compilation failed
5670 lt_cv_dlopen_self=no
5676 echo "$as_me:5676: result: $lt_cv_dlopen_self" >&5
5677 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5679 if test "x$lt_cv_dlopen_self" = xyes; then
5680 LDFLAGS="$LDFLAGS $link_static_flag"
5681 echo "$as_me:5681: checking whether a statically linked program can dlopen itself" >&5
5682 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5683 if test "${lt_cv_dlopen_self_static+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 if test "$cross_compiling" = yes; then :
5687 lt_cv_dlopen_self_static=cross
5689 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5690 lt_status=$lt_dlunknown
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5692 "configure"
5693 #include "confdefs.h"
5702 # define LT_DLGLOBAL RTLD_GLOBAL
5705 # define LT_DLGLOBAL DL_GLOBAL
5707 # define LT_DLGLOBAL 0
5711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5712 find out it does not work in some platform. */
5713 #ifndef LT_DLLAZY_OR_NOW
5715 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5718 # define LT_DLLAZY_OR_NOW DL_LAZY
5721 # define LT_DLLAZY_OR_NOW RTLD_NOW
5724 # define LT_DLLAZY_OR_NOW DL_NOW
5726 # define LT_DLLAZY_OR_NOW 0
5734 extern "C" void exit (int);
5737 void fnord() { int i=42;}
5740 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5741 int status = $lt_dlunknown;
5745 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5746 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5747 /* dlclose (self); */
5753 if { (eval echo "$as_me:5753: \"$ac_link\"") >&5
5754 (eval $ac_link) 2>&5
5756 echo "$as_me:5756: \$? = $ac_status" >&5
5757 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5758 (./conftest; exit; ) 2>/dev/null
5761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5763 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5766 # compilation failed
5767 lt_cv_dlopen_self_static=no
5773 echo "$as_me:5773: result: $lt_cv_dlopen_self_static" >&5
5774 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5777 CPPFLAGS="$save_CPPFLAGS"
5778 LDFLAGS="$save_LDFLAGS"
5783 case $lt_cv_dlopen_self in
5784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5785 *) enable_dlopen_self=unknown ;;
5788 case $lt_cv_dlopen_self_static in
5789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5790 *) enable_dlopen_self_static=unknown ;;
5794 if test "$enable_shared" = yes && test "$GCC" = yes; then
5795 case $archive_cmds in
5797 # FIXME: we may have to deal with multi-command sequences.
5800 # Test whether the compiler implicitly links with -lc since on some
5801 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5802 # to ld, don't add -lc before -lgcc.
5803 echo "$as_me:5803: checking whether -lc should be explicitly linked in" >&5
5804 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5805 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 echo 'static int dummy;' > conftest.$ac_ext
5811 if { (eval echo "$as_me:5811: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>&5
5814 echo "$as_me:5814: \$? = $ac_status" >&5
5815 (exit $ac_status); }; then
5818 libobjs=conftest.$ac_objext
5820 wl=$lt_cv_prog_cc_wl
5826 save_allow_undefined_flag=$allow_undefined_flag
5827 allow_undefined_flag=
5828 if { (eval echo "$as_me:5828: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5829 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5831 echo "$as_me:5831: \$? = $ac_status" >&5
5832 (exit $ac_status); }
5834 lt_cv_archive_cmds_need_lc=no
5836 lt_cv_archive_cmds_need_lc=yes
5838 allow_undefined_flag=$save_allow_undefined_flag
5840 cat conftest.err 1>&5
5844 echo "$as_me:5844: result: $lt_cv_archive_cmds_need_lc" >&5
5845 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5849 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5851 # The second clause should only fire when bootstrapping the
5852 # libtool distribution, otherwise you forgot to ship ltmain.sh
5853 # with your package, and you will get complaints that there are
5854 # no rules to generate ltmain.sh.
5855 if test -f "$ltmain"; then
5858 # If there is no Makefile yet, we rely on a make rule to execute
5859 # `config.status --recheck' to rerun these tests and create the
5860 # libtool script then.
5861 test -f Makefile && make "$ltmain"
5864 if test -f "$ltmain"; then
5865 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5868 echo creating $ofile
5870 # Now quote all the things that may contain metacharacters while being
5871 # careful not to overquote the AC_SUBSTed values. We take copies of the
5872 # variables and quote the copies for generation of the libtool script.
5873 for var in echo old_CC old_CFLAGS \
5874 AR AR_FLAGS CC LD LN_S NM SHELL \
5875 reload_flag reload_cmds wl \
5876 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5877 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5878 library_names_spec soname_spec \
5879 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5880 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5881 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5882 old_striplib striplib file_magic_cmd export_symbols_cmds \
5883 deplibs_check_method allow_undefined_flag no_undefined_flag \
5884 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5885 hardcode_libdir_flag_spec hardcode_libdir_separator \
5886 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5887 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5890 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5891 old_postinstall_cmds | old_postuninstall_cmds | \
5892 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5893 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5894 postinstall_cmds | postuninstall_cmds | \
5895 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5896 # Double-quote double-evaled strings.
5897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5905 cat <<__EOF__ > "${ofile}T"
5908 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5909 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5910 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5912 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5913 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5915 # This program is free software; you can redistribute it and/or modify
5916 # it under the terms of the GNU General Public License as published by
5917 # the Free Software Foundation; either version 2 of the License, or
5918 # (at your option) any later version.
5920 # This program is distributed in the hope that it will be useful, but
5921 # WITHOUT ANY WARRANTY; without even the implied warranty of
5922 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5923 # General Public License for more details.
5925 # You should have received a copy of the GNU General Public License
5926 # along with this program; if not, write to the Free Software
5927 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5929 # As a special exception to the GNU General Public License, if you
5930 # distribute this file as part of a program that contains a
5931 # configuration script generated by Autoconf, you may include it under
5932 # the same distribution terms that you use for the rest of that program.
5934 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5935 Xsed="sed -e s/^X//"
5937 # The HP-UX ksh and POSIX shell print the target directory to stdout
5939 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5941 # ### BEGIN LIBTOOL CONFIG
5943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5945 # Shell to use when invoking shell scripts.
5948 # Whether or not to build shared libraries.
5949 build_libtool_libs=$enable_shared
5951 # Whether or not to add -lc for building shared libraries.
5952 build_libtool_need_lc=$need_lc
5954 # Whether or not to build static libraries.
5955 build_old_libs=$enable_static
5957 # Whether or not to optimize for fast installation.
5958 fast_install=$enable_fast_install
5961 host_alias=$host_alias
5964 # An echo program that does not interpret backslashes.
5969 AR_FLAGS=$lt_AR_FLAGS
5971 # The default C compiler.
5974 # Is the compiler the GNU C compiler?
5977 # The linker used to build libraries.
5980 # Whether we need hard or soft links.
5983 # A BSD-compatible nm program.
5986 # A symbol stripping program
5989 # Used to examine libraries when file_magic_cmd begins "file"
5990 MAGIC_CMD=$MAGIC_CMD
5992 # Used on cygwin: DLL creation program.
5995 # Used on cygwin: object dumper.
5998 # Used on cygwin: assembler.
6001 # The name of the directory that contains temporary libtool files.
6004 # How to create reloadable object files.
6005 reload_flag=$lt_reload_flag
6006 reload_cmds=$lt_reload_cmds
6008 # How to pass a linker flag through the compiler.
6011 # Object file suffix (normally "o").
6014 # Old archive suffix (normally "a").
6017 # Executable file suffix (normally "").
6020 # Additional compiler flags for building library objects.
6021 pic_flag=$lt_pic_flag
6024 # Does compiler simultaneously support -c and -o options?
6025 compiler_c_o=$lt_compiler_c_o
6027 # Can we write directly to a .lo ?
6028 compiler_o_lo=$lt_compiler_o_lo
6030 # Must we lock files when doing compilation ?
6031 need_locks=$lt_need_locks
6033 # Do we need the lib prefix for modules?
6034 need_lib_prefix=$need_lib_prefix
6036 # Do we need a version for libraries?
6037 need_version=$need_version
6039 # Whether dlopen is supported.
6040 dlopen_support=$enable_dlopen
6042 # Whether dlopen of programs is supported.
6043 dlopen_self=$enable_dlopen_self
6045 # Whether dlopen of statically linked programs is supported.
6046 dlopen_self_static=$enable_dlopen_self_static
6048 # Compiler flag to prevent dynamic linking.
6049 link_static_flag=$lt_link_static_flag
6051 # Compiler flag to turn off builtin functions.
6052 no_builtin_flag=$lt_no_builtin_flag
6054 # Compiler flag to allow reflexive dlopens.
6055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6057 # Compiler flag to generate shared objects directly from archives.
6058 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6060 # Compiler flag to generate thread-safe objects.
6061 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6063 # Library versioning type.
6064 version_type=$version_type
6066 # Format of library name prefix.
6067 libname_spec=$lt_libname_spec
6069 # List of archive names. First name is the real one, the rest are links.
6070 # The last name is the one that the linker finds with -lNAME.
6071 library_names_spec=$lt_library_names_spec
6073 # The coded name of the library, if different from the real name.
6074 soname_spec=$lt_soname_spec
6076 # Commands used to build and install an old-style archive.
6078 old_archive_cmds=$lt_old_archive_cmds
6079 old_postinstall_cmds=$lt_old_postinstall_cmds
6080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6082 # Create an old-style archive from a shared archive.
6083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6085 # Create a temporary old-style archive to link instead of a shared archive.
6086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6088 # Commands used to build and install a shared archive.
6089 archive_cmds=$lt_archive_cmds
6090 archive_expsym_cmds=$lt_archive_expsym_cmds
6091 postinstall_cmds=$lt_postinstall_cmds
6092 postuninstall_cmds=$lt_postuninstall_cmds
6094 # Commands to strip libraries.
6095 old_striplib=$lt_old_striplib
6096 striplib=$lt_striplib
6098 # Method to check whether dependent libraries are shared objects.
6099 deplibs_check_method=$lt_deplibs_check_method
6101 # Command to use when deplibs_check_method == file_magic.
6102 file_magic_cmd=$lt_file_magic_cmd
6104 # Flag that allows shared libraries with undefined symbols to be built.
6105 allow_undefined_flag=$lt_allow_undefined_flag
6107 # Flag that forces no undefined symbols.
6108 no_undefined_flag=$lt_no_undefined_flag
6110 # Commands used to finish a libtool library installation in a directory.
6111 finish_cmds=$lt_finish_cmds
6113 # Same as above, but a single script fragment to be evaled but not shown.
6114 finish_eval=$lt_finish_eval
6116 # Take the output of nm and produce a listing of raw symbols and C names.
6117 global_symbol_pipe=$lt_global_symbol_pipe
6119 # Transform the output of nm in a proper C declaration
6120 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6122 # This is the shared library runtime path variable.
6123 runpath_var=$runpath_var
6125 # This is the shared library path variable.
6126 shlibpath_var=$shlibpath_var
6128 # Is shlibpath searched before the hard-coded library search path?
6129 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6131 # How to hardcode a shared library path into an executable.
6132 hardcode_action=$hardcode_action
6134 # Whether we should hardcode library paths into libraries.
6135 hardcode_into_libs=$hardcode_into_libs
6137 # Flag to hardcode \$libdir into a binary during linking.
6138 # This must work even if \$libdir does not exist.
6139 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6141 # Whether we need a single -rpath flag with a separated argument.
6142 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6144 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6146 hardcode_direct=$hardcode_direct
6148 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6150 hardcode_minus_L=$hardcode_minus_L
6152 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6153 # the resulting binary.
6154 hardcode_shlibpath_var=$hardcode_shlibpath_var
6156 # Variables whose values should be saved in libtool wrapper scripts and
6157 # restored at relink time.
6158 variables_saved_for_relink="$variables_saved_for_relink"
6160 # Whether libtool must link a program against all its dependency libraries.
6161 link_all_deplibs=$link_all_deplibs
6163 # Compile-time system search path for libraries
6164 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6166 # Run-time system search path for libraries
6167 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6169 # Fix the shell variable \$srcfile for the compiler.
6170 fix_srcfile_path="$fix_srcfile_path"
6172 # Set to yes if exported symbols are required.
6173 always_export_symbols=$always_export_symbols
6175 # The commands to list exported symbols.
6176 export_symbols_cmds=$lt_export_symbols_cmds
6178 # The commands to extract the exported symbol list from a shared archive.
6179 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6181 # Symbols that should not be listed in the preloaded symbols.
6182 exclude_expsyms=$lt_exclude_expsyms
6184 # Symbols that must always be exported.
6185 include_expsyms=$lt_include_expsyms
6187 # ### END LIBTOOL CONFIG
6193 cat <<\EOF >> "${ofile}T"
6195 # AIX sometimes has problems with the GCC collect2 program. For some
6196 # reason, if we set the COLLECT_NAMES environment variable, the problems
6197 # vanish in a puff of smoke.
6198 if test "X${COLLECT_NAMES+set}" != Xset; then
6200 export COLLECT_NAMES
6207 cygwin* | mingw* | pw32* | os2*)
6208 cat <<'EOF' >> "${ofile}T"
6209 # This is a source program that is used to create dlls on Windows
6210 # Don't remove nor modify the starting and closing comments
6211 # /* ltdll.c starts here */
6212 # #define WIN32_LEAN_AND_MEAN
6213 # #include <windows.h>
6214 # #undef WIN32_LEAN_AND_MEAN
6215 # #include <stdio.h>
6217 # #ifndef __CYGWIN__
6218 # # ifdef __CYGWIN32__
6219 # # define __CYGWIN__ __CYGWIN32__
6223 # #ifdef __cplusplus
6226 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6227 # #ifdef __cplusplus
6232 # #include <cygwin/cygwin_dll.h>
6233 # DECLARE_CYGWIN_DLL( DllMain );
6235 # HINSTANCE __hDllInstance_base;
6238 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6240 # __hDllInstance_base = hInst;
6243 # /* ltdll.c ends here */
6244 # This is a source program that is used to create import libraries
6245 # on Windows for dlls which lack them. Don't remove nor modify the
6246 # starting and closing comments
6247 # /* impgen.c starts here */
6248 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6250 # This file is part of GNU libtool.
6252 # This program is free software; you can redistribute it and/or modify
6253 # it under the terms of the GNU General Public License as published by
6254 # the Free Software Foundation; either version 2 of the License, or
6255 # (at your option) any later version.
6257 # This program is distributed in the hope that it will be useful,
6258 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6259 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6260 # GNU General Public License for more details.
6262 # You should have received a copy of the GNU General Public License
6263 # along with this program; if not, write to the Free Software
6264 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6267 # #include <stdio.h> /* for printf() */
6268 # #include <unistd.h> /* for open(), lseek(), read() */
6269 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6270 # #include <string.h> /* for strdup() */
6272 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6274 # #define O_BINARY 0
6277 # static unsigned int
6278 # pe_get16 (fd, offset)
6282 # unsigned char b[2];
6283 # lseek (fd, offset, SEEK_SET);
6285 # return b[0] + (b[1]<<8);
6288 # static unsigned int
6289 # pe_get32 (fd, offset)
6293 # unsigned char b[4];
6294 # lseek (fd, offset, SEEK_SET);
6296 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6299 # static unsigned int
6303 # unsigned char *b = ptr;
6304 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6313 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6314 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6315 # unsigned long name_rvas, nexp;
6316 # unsigned char *expdata, *erva;
6317 # char *filename, *dll_name;
6319 # filename = argv[1];
6321 # dll = open(filename, O_RDONLY|O_BINARY);
6325 # dll_name = filename;
6327 # for (i=0; filename[i]; i++)
6328 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6329 # dll_name = filename + i +1;
6331 # pe_header_offset = pe_get32 (dll, 0x3c);
6332 # opthdr_ofs = pe_header_offset + 4 + 20;
6333 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6335 # if (num_entries < 1) /* no exports */
6338 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6339 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6340 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6341 # secptr = (pe_header_offset + 4 + 20 +
6342 # pe_get16 (dll, pe_header_offset + 4 + 16));
6345 # for (i = 0; i < nsections; i++)
6348 # unsigned long secptr1 = secptr + 40 * i;
6349 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6350 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6351 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6352 # lseek(dll, secptr1, SEEK_SET);
6353 # read(dll, sname, 8);
6354 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6356 # expptr = fptr + (export_rva - vaddr);
6357 # if (export_rva + export_size > vaddr + vsize)
6358 # export_size = vsize - (export_rva - vaddr);
6363 # expdata = (unsigned char*)malloc(export_size);
6364 # lseek (dll, expptr, SEEK_SET);
6365 # read (dll, expdata, export_size);
6366 # erva = expdata - export_rva;
6368 # nexp = pe_as32 (expdata+24);
6369 # name_rvas = pe_as32 (expdata+32);
6371 # printf ("EXPORTS\n");
6372 # for (i = 0; i<nexp; i++)
6374 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6375 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6380 # /* impgen.c ends here */
6386 # We use sed instead of cat because bash on DJGPP gets confused if
6387 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6388 # text mode, it properly converts lines to CR/LF. This bash problem
6389 # is reportedly fixed, but why not run on old versions too?
6390 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6392 mv -f "${ofile}T" "$ofile" || \
6393 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6397 # This can be used to rebuild libtool when needed
6398 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6400 # Always use our own libtool.
6401 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6403 # Prevent multiple expansion
6405 echo "$as_me:6405: checking for main in -lnsl" >&5
6406 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
6407 if test "${ac_cv_lib_nsl_main+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 ac_check_lib_save_LIBS=$LIBS
6412 cat >conftest.$ac_ext <<_ACEOF
6413 #line 6413 "configure"
6414 #include "confdefs.h"
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:6425: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6428 echo "$as_me:6428: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try='test -s conftest$ac_exeext'
6431 { (eval echo "$as_me:6431: \"$ac_try\"") >&5
6434 echo "$as_me:6434: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 ac_cv_lib_nsl_main=yes
6438 echo "$as_me: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 ac_cv_lib_nsl_main=no
6442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6443 LIBS=$ac_check_lib_save_LIBS
6445 echo "$as_me:6445: result: $ac_cv_lib_nsl_main" >&5
6446 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
6447 if test $ac_cv_lib_nsl_main = yes; then
6448 cat >>confdefs.h <<EOF
6449 #define HAVE_LIBNSL 1
6455 ac_cv_lib_nsl=ac_cv_lib_nsl_main
6457 echo "$as_me:6457: checking for main in -lresolv" >&5
6458 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
6459 if test "${ac_cv_lib_resolv_main+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 ac_check_lib_save_LIBS=$LIBS
6463 LIBS="-lresolv $LIBS"
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line 6465 "configure"
6466 #include "confdefs.h"
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (eval echo "$as_me:6477: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
6480 echo "$as_me:6480: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try='test -s conftest$ac_exeext'
6483 { (eval echo "$as_me:6483: \"$ac_try\"") >&5
6486 echo "$as_me:6486: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 ac_cv_lib_resolv_main=yes
6490 echo "$as_me: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6492 ac_cv_lib_resolv_main=no
6494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6495 LIBS=$ac_check_lib_save_LIBS
6497 echo "$as_me:6497: result: $ac_cv_lib_resolv_main" >&5
6498 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6499 if test $ac_cv_lib_resolv_main = yes; then
6500 cat >>confdefs.h <<EOF
6501 #define HAVE_LIBRESOLV 1
6504 LIBS="-lresolv $LIBS"
6507 ac_cv_lib_resolv=ac_cv_lib_resolv_main
6509 echo "$as_me:6509: checking for main in -lsocket" >&5
6510 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
6511 if test "${ac_cv_lib_socket_main+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 ac_check_lib_save_LIBS=$LIBS
6515 LIBS="-lsocket $LIBS"
6516 cat >conftest.$ac_ext <<_ACEOF
6517 #line 6517 "configure"
6518 #include "confdefs.h"
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:6529: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>&5
6532 echo "$as_me:6532: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -s conftest$ac_exeext'
6535 { (eval echo "$as_me:6535: \"$ac_try\"") >&5
6538 echo "$as_me:6538: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_lib_socket_main=yes
6542 echo "$as_me: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6544 ac_cv_lib_socket_main=no
6546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6547 LIBS=$ac_check_lib_save_LIBS
6549 echo "$as_me:6549: result: $ac_cv_lib_socket_main" >&5
6550 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
6551 if test $ac_cv_lib_socket_main = yes; then
6552 cat >>confdefs.h <<EOF
6553 #define HAVE_LIBSOCKET 1
6556 LIBS="-lsocket $LIBS"
6559 ac_cv_lib_socket=ac_cv_lib_socket_main
6561 echo "$as_me:6561: checking for main in -ldnet_stub" >&5
6562 echo $ECHO_N "checking for main in -ldnet_stub... $ECHO_C" >&6
6563 if test "${ac_cv_lib_dnet_stub_main+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 ac_check_lib_save_LIBS=$LIBS
6567 LIBS="-ldnet_stub $LIBS"
6568 cat >conftest.$ac_ext <<_ACEOF
6569 #line 6569 "configure"
6570 #include "confdefs.h"
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (eval echo "$as_me:6581: \"$ac_link\"") >&5
6582 (eval $ac_link) 2>&5
6584 echo "$as_me:6584: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:6587: \"$ac_try\"") >&5
6590 echo "$as_me:6590: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_cv_lib_dnet_stub_main=yes
6594 echo "$as_me: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6596 ac_cv_lib_dnet_stub_main=no
6598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6599 LIBS=$ac_check_lib_save_LIBS
6601 echo "$as_me:6601: result: $ac_cv_lib_dnet_stub_main" >&5
6602 echo "${ECHO_T}$ac_cv_lib_dnet_stub_main" >&6
6603 if test $ac_cv_lib_dnet_stub_main = yes; then
6604 cat >>confdefs.h <<EOF
6605 #define HAVE_LIBDNET_STUB 1
6608 LIBS="-ldnet_stub $LIBS"
6611 ac_cv_lib_dnet_stub=ac_cv_lib_dnet_stub_main
6613 echo "$as_me:6613: checking for main in -lieee" >&5
6614 echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6
6615 if test "${ac_cv_lib_ieee_main+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 ac_check_lib_save_LIBS=$LIBS
6620 cat >conftest.$ac_ext <<_ACEOF
6621 #line 6621 "configure"
6622 #include "confdefs.h"
6632 rm -f conftest.$ac_objext conftest$ac_exeext
6633 if { (eval echo "$as_me:6633: \"$ac_link\"") >&5
6634 (eval $ac_link) 2>&5
6636 echo "$as_me:6636: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -s conftest$ac_exeext'
6639 { (eval echo "$as_me:6639: \"$ac_try\"") >&5
6642 echo "$as_me:6642: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 ac_cv_lib_ieee_main=yes
6646 echo "$as_me: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 ac_cv_lib_ieee_main=no
6650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6651 LIBS=$ac_check_lib_save_LIBS
6653 echo "$as_me:6653: result: $ac_cv_lib_ieee_main" >&5
6654 echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6
6655 if test $ac_cv_lib_ieee_main = yes; then
6656 cat >>confdefs.h <<EOF
6657 #define HAVE_LIBIEEE 1
6663 ac_cv_lib_ieee=ac_cv_lib_ieee_main
6665 echo "$as_me:6665: checking for main in -lpthread" >&5
6666 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6667 if test "${ac_cv_lib_pthread_main+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 ac_check_lib_save_LIBS=$LIBS
6671 LIBS="-lpthread $LIBS"
6672 cat >conftest.$ac_ext <<_ACEOF
6673 #line 6673 "configure"
6674 #include "confdefs.h"
6684 rm -f conftest.$ac_objext conftest$ac_exeext
6685 if { (eval echo "$as_me:6685: \"$ac_link\"") >&5
6686 (eval $ac_link) 2>&5
6688 echo "$as_me:6688: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
6690 { ac_try='test -s conftest$ac_exeext'
6691 { (eval echo "$as_me:6691: \"$ac_try\"") >&5
6694 echo "$as_me:6694: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 ac_cv_lib_pthread_main=yes
6698 echo "$as_me: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 ac_cv_lib_pthread_main=no
6702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6703 LIBS=$ac_check_lib_save_LIBS
6705 echo "$as_me:6705: result: $ac_cv_lib_pthread_main" >&5
6706 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6707 if test $ac_cv_lib_pthread_main = yes; then
6709 cat >>confdefs.h <<\EOF
6710 #define HAVE_LIBPTHREAD 1
6716 ac_cv_lib_pthread=ac_cv_lib_pthread_main
6718 echo "$as_me:6718: checking for ANSI C header files" >&5
6719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6720 if test "${ac_cv_header_stdc+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 cat >conftest.$ac_ext <<_ACEOF
6724 #line 6724 "configure"
6725 #include "confdefs.h"
6732 if { (eval echo "$as_me:6732: \"$ac_cpp conftest.$ac_ext\"") >&5
6733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6735 egrep -v '^ *\+' conftest.er1 >conftest.err
6737 cat conftest.err >&5
6738 echo "$as_me:6738: \$? = $ac_status" >&5
6739 (exit $ac_status); } >/dev/null; then
6740 if test -s conftest.err; then
6741 ac_cpp_err=$ac_c_preproc_warn_flag
6748 if test -z "$ac_cpp_err"; then
6749 ac_cv_header_stdc=yes
6751 echo "$as_me: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6753 ac_cv_header_stdc=no
6755 rm -f conftest.err conftest.$ac_ext
6757 if test $ac_cv_header_stdc = yes; then
6758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6759 cat >conftest.$ac_ext <<_ACEOF
6760 #line 6760 "configure"
6761 #include "confdefs.h"
6765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6766 egrep "memchr" >/dev/null 2>&1; then
6769 ac_cv_header_stdc=no
6775 if test $ac_cv_header_stdc = yes; then
6776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6777 cat >conftest.$ac_ext <<_ACEOF
6778 #line 6778 "configure"
6779 #include "confdefs.h"
6783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784 egrep "free" >/dev/null 2>&1; then
6787 ac_cv_header_stdc=no
6793 if test $ac_cv_header_stdc = yes; then
6794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6795 if test "$cross_compiling" = yes; then
6798 cat >conftest.$ac_ext <<_ACEOF
6799 #line 6799 "configure"
6800 #include "confdefs.h"
6802 #if ((' ' & 0x0FF) == 0x020)
6803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6806 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6807 || ('j' <= (c) && (c) <= 'r') \
6808 || ('s' <= (c) && (c) <= 'z'))
6809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6817 for (i = 0; i < 256; i++)
6818 if (XOR (islower (i), ISLOWER (i))
6819 || toupper (i) != TOUPPER (i))
6824 rm -f conftest$ac_exeext
6825 if { (eval echo "$as_me:6825: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>&5
6828 echo "$as_me:6828: \$? = $ac_status" >&5
6829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6830 { (eval echo "$as_me:6830: \"$ac_try\"") >&5
6833 echo "$as_me:6833: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6837 echo "$as_me: program exited with status $ac_status" >&5
6838 echo "$as_me: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6840 ac_cv_header_stdc=no
6842 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6846 echo "$as_me:6846: result: $ac_cv_header_stdc" >&5
6847 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6848 if test $ac_cv_header_stdc = yes; then
6850 cat >>confdefs.h <<\EOF
6851 #define STDC_HEADERS 1
6856 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6858 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6859 inttypes.h stdint.h unistd.h
6861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6862 echo "$as_me:6862: checking for $ac_header" >&5
6863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 cat >conftest.$ac_ext <<_ACEOF
6868 #line 6868 "configure"
6869 #include "confdefs.h"
6870 $ac_includes_default
6871 #include <$ac_header>
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:6874: \"$ac_compile\"") >&5
6875 (eval $ac_compile) 2>&5
6877 echo "$as_me:6877: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -s conftest.$ac_objext'
6880 { (eval echo "$as_me:6880: \"$ac_try\"") >&5
6883 echo "$as_me:6883: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 eval "$as_ac_Header=yes"
6887 echo "$as_me: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 eval "$as_ac_Header=no"
6891 rm -f conftest.$ac_objext conftest.$ac_ext
6893 echo "$as_me:6893: result: `eval echo '${'$as_ac_Header'}'`" >&5
6894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6896 cat >>confdefs.h <<EOF
6897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6903 echo "$as_me:6903: checking for $CC option to accept ANSI C" >&5
6904 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6905 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 ac_cv_prog_cc_stdc=no
6910 cat >conftest.$ac_ext <<_ACEOF
6911 #line 6911 "configure"
6912 #include "confdefs.h"
6915 #include <sys/types.h>
6916 #include <sys/stat.h>
6917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6918 struct buf { int x; };
6919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6920 static char *e (p, i)
6926 static char *f (char * (*g) (char **, int), char **p, ...)
6931 s = g (p, va_arg (v,int));
6935 int test (int i, double x);
6936 struct s1 {int (*f) (int a);};
6937 struct s2 {int (*f) (double a);};
6938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6944 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6949 # Don't try gcc -ansi; that turns off useful extensions and
6950 # breaks some systems' header files.
6951 # AIX -qlanglvl=ansi
6952 # Ultrix and OSF/1 -std1
6953 # HP-UX 10.20 and later -Ae
6954 # HP-UX older versions -Aa -D_HPUX_SOURCE
6955 # SVR4 -Xc -D__EXTENSIONS__
6956 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6958 CC="$ac_save_CC $ac_arg"
6959 rm -f conftest.$ac_objext
6960 if { (eval echo "$as_me:6960: \"$ac_compile\"") >&5
6961 (eval $ac_compile) 2>&5
6963 echo "$as_me:6963: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -s conftest.$ac_objext'
6966 { (eval echo "$as_me:6966: \"$ac_try\"") >&5
6969 echo "$as_me:6969: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_prog_cc_stdc=$ac_arg
6974 echo "$as_me: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6977 rm -f conftest.$ac_objext
6979 rm -f conftest.$ac_ext conftest.$ac_objext
6984 case "x$ac_cv_prog_cc_stdc" in
6986 echo "$as_me:6986: result: none needed" >&5
6987 echo "${ECHO_T}none needed" >&6 ;;
6989 echo "$as_me:6989: result: $ac_cv_prog_cc_stdc" >&5
6990 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6991 CC="$CC $ac_cv_prog_cc_stdc" ;;
6994 echo "$as_me:6994: checking for ssize_t" >&5
6995 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6996 if test "${ac_cv_type_ssize_t+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 cat >conftest.$ac_ext <<_ACEOF
7000 #line 7000 "configure"
7001 #include "confdefs.h"
7002 $ac_includes_default
7008 if (sizeof (ssize_t))
7014 rm -f conftest.$ac_objext
7015 if { (eval echo "$as_me:7015: \"$ac_compile\"") >&5
7016 (eval $ac_compile) 2>&5
7018 echo "$as_me:7018: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -s conftest.$ac_objext'
7021 { (eval echo "$as_me:7021: \"$ac_try\"") >&5
7024 echo "$as_me:7024: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 ac_cv_type_ssize_t=yes
7028 echo "$as_me: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7030 ac_cv_type_ssize_t=no
7032 rm -f conftest.$ac_objext conftest.$ac_ext
7034 echo "$as_me:7034: result: $ac_cv_type_ssize_t" >&5
7035 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7036 if test $ac_cv_type_ssize_t = yes; then
7040 cat >>confdefs.h <<EOF
7046 echo "$as_me:7046: checking for sun_len in sys/un.h" >&5
7047 echo $ECHO_N "checking for sun_len in sys/un.h... $ECHO_C" >&6
7048 cat >conftest.$ac_ext <<_ACEOF
7049 #line 7049 "configure"
7050 #include "confdefs.h"
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 egrep "sun_len" >/dev/null 2>&1; then
7056 echo "$as_me:7056: result: yes" >&5
7057 echo "${ECHO_T}yes" >&6
7059 cat >>confdefs.h <<\EOF
7060 #define HAVE_SOCKADDR_UN_SUN_LEN 1
7064 echo "$as_me:7064: result: no" >&5
7065 echo "${ECHO_T}no" >&6
7069 echo "$as_me:7069: checking for fpos_t in stdio.h" >&5
7070 echo $ECHO_N "checking for fpos_t in stdio.h... $ECHO_C" >&6
7071 cat >conftest.$ac_ext <<_ACEOF
7072 #line 7072 "configure"
7073 #include "confdefs.h"
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078 egrep "fpos_t" >/dev/null 2>&1; then
7079 echo "$as_me:7079: result: yes" >&5
7080 echo "${ECHO_T}yes" >&6
7082 cat >>confdefs.h <<\EOF
7087 echo "$as_me:7087: result: no" >&5
7088 echo "${ECHO_T}no" >&6
7092 for ac_header in sys/socket.h netdb.h netinet/in.h arpa/inet.h
7094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7095 echo "$as_me:7095: checking for $ac_header" >&5
7096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7101 #line 7101 "configure"
7102 #include "confdefs.h"
7103 #include <$ac_header>
7105 if { (eval echo "$as_me:7105: \"$ac_cpp conftest.$ac_ext\"") >&5
7106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7108 egrep -v '^ *\+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 echo "$as_me:7111: \$? = $ac_status" >&5
7112 (exit $ac_status); } >/dev/null; then
7113 if test -s conftest.err; then
7114 ac_cpp_err=$ac_c_preproc_warn_flag
7121 if test -z "$ac_cpp_err"; then
7122 eval "$as_ac_Header=yes"
7124 echo "$as_me: failed program was:" >&5
7125 cat conftest.$ac_ext >&5
7126 eval "$as_ac_Header=no"
7128 rm -f conftest.err conftest.$ac_ext
7130 echo "$as_me:7130: result: `eval echo '${'$as_ac_Header'}'`" >&5
7131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7133 cat >>confdefs.h <<EOF
7134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7140 for ac_header in sys/time.h limits.h sys/param.h unistd.h
7142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143 echo "$as_me:7143: checking for $ac_header" >&5
7144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 cat >conftest.$ac_ext <<_ACEOF
7149 #line 7149 "configure"
7150 #include "confdefs.h"
7151 #include <$ac_header>
7153 if { (eval echo "$as_me:7153: \"$ac_cpp conftest.$ac_ext\"") >&5
7154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7156 egrep -v '^ *\+' conftest.er1 >conftest.err
7158 cat conftest.err >&5
7159 echo "$as_me:7159: \$? = $ac_status" >&5
7160 (exit $ac_status); } >/dev/null; then
7161 if test -s conftest.err; then
7162 ac_cpp_err=$ac_c_preproc_warn_flag
7169 if test -z "$ac_cpp_err"; then
7170 eval "$as_ac_Header=yes"
7172 echo "$as_me: failed program was:" >&5
7173 cat conftest.$ac_ext >&5
7174 eval "$as_ac_Header=no"
7176 rm -f conftest.err conftest.$ac_ext
7178 echo "$as_me:7178: result: `eval echo '${'$as_ac_Header'}'`" >&5
7179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7181 cat >>confdefs.h <<EOF
7182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7188 echo "$as_me:7188: checking for a fileno() prototype in stdio.h" >&5
7189 echo $ECHO_N "checking for a fileno() prototype in stdio.h... $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line 7191 "configure"
7192 #include "confdefs.h"
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 egrep "fileno" >/dev/null 2>&1; then
7198 echo "$as_me:7198: result: yes" >&5
7199 echo "${ECHO_T}yes" >&6
7201 cat >>confdefs.h <<\EOF
7202 #define HAVE_FILENO_PROTO 1
7206 echo "$as_me:7206: result: no" >&5
7207 echo "${ECHO_T}no" >&6
7211 if test "$HAVE_SYS_SOCKET_H"; then
7212 echo "$as_me:7212: checking for socklen_t in sys/socket.h" >&5
7213 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line 7215 "configure"
7216 #include "confdefs.h"
7217 #include <sys/socket.h>
7220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7221 egrep "socklen_t" >/dev/null 2>&1; then
7222 echo "$as_me:7222: result: yes" >&5
7223 echo "${ECHO_T}yes" >&6
7225 cat >>confdefs.h <<\EOF
7226 #define HAVE_SOCKLEN 1
7230 echo "$as_me:7230: result: no" >&5
7231 echo "${ECHO_T}no" >&6
7237 #--------------------------------------------------------------------
7238 # Do we need cross-process locking on this platform?
7239 #--------------------------------------------------------------------
7240 echo "$as_me:7240: checking whether cross-process locking is required by accept()" >&5
7241 echo $ECHO_N "checking whether cross-process locking is required by accept()... $ECHO_C" >&6
7242 case "`uname -sr`" in
7243 IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0)
7244 echo "$as_me:7244: result: yes" >&5
7245 echo "${ECHO_T}yes" >&6
7247 cat >>confdefs.h <<\EOF
7248 #define USE_LOCKING 1
7253 echo "$as_me:7253: result: no" >&5
7254 echo "${ECHO_T}no" >&6
7258 #--------------------------------------------------------------------
7259 # Does va_arg(arg, long double) crash the compiler?
7260 # hpux 9.04 compiler does and so does Stratus FTX (uses HP's compiler)
7261 #--------------------------------------------------------------------
7262 echo "$as_me:7262: checking whether va_arg(arg, long double) crashes the compiler" >&5
7263 echo $ECHO_N "checking whether va_arg(arg, long double) crashes the compiler... $ECHO_C" >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7265 #line 7265 "configure"
7266 #include "confdefs.h"
7271 long double lDblArg; va_list arg; lDblArg = va_arg(arg, long double);
7276 rm -f conftest.$ac_objext
7277 if { (eval echo "$as_me:7277: \"$ac_compile\"") >&5
7278 (eval $ac_compile) 2>&5
7280 echo "$as_me:7280: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:7283: \"$ac_try\"") >&5
7286 echo "$as_me:7286: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 echo "$as_me:7288: result: no" >&5
7289 echo "${ECHO_T}no" >&6
7291 echo "$as_me: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7293 echo "$as_me:7293: result: yes" >&5
7294 echo "${ECHO_T}yes" >&6
7296 cat >>confdefs.h <<\EOF
7297 #define HAVE_VA_ARG_LONG_DOUBLE_BUG 1
7301 rm -f conftest.$ac_objext conftest.$ac_ext
7303 echo "$as_me:7303: checking for an ANSI C-conforming const" >&5
7304 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7305 if test "${ac_cv_c_const+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 cat >conftest.$ac_ext <<_ACEOF
7309 #line 7309 "configure"
7310 #include "confdefs.h"
7315 /* FIXME: Include the comments suggested by Paul. */
7317 /* Ultrix mips cc rejects this. */
7318 typedef int charset[2];
7320 /* SunOS 4.1.1 cc rejects this. */
7321 char const *const *ccp;
7323 /* NEC SVR4.0.2 mips cc rejects this. */
7324 struct point {int x, y;};
7325 static struct point const zero = {0,0};
7326 /* AIX XL C 1.02.0.0 rejects this.
7327 It does not let you subtract one const X* pointer from another in
7328 an arm of an if-expression whose if-part is not a constant
7330 const char *g = "string";
7331 ccp = &g + (g ? g-g : 0);
7332 /* HPUX 7.0 cc rejects these. */
7335 ccp = (char const *const *) p;
7336 { /* SCO 3.2v4 cc rejects this. */
7338 char const *s = 0 ? (char *) 0 : (char const *) 0;
7342 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7344 const int *foo = &x[0];
7347 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7348 typedef const int *iptr;
7352 { /* AIX XL C 1.02.0.0 rejects this saying
7353 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7354 struct s { int j; const int *ap[3]; };
7355 struct s *b; b->j = 5;
7357 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7366 rm -f conftest.$ac_objext
7367 if { (eval echo "$as_me:7367: \"$ac_compile\"") >&5
7368 (eval $ac_compile) 2>&5
7370 echo "$as_me:7370: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try='test -s conftest.$ac_objext'
7373 { (eval echo "$as_me:7373: \"$ac_try\"") >&5
7376 echo "$as_me:7376: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7380 echo "$as_me: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7384 rm -f conftest.$ac_objext conftest.$ac_ext
7386 echo "$as_me:7386: result: $ac_cv_c_const" >&5
7387 echo "${ECHO_T}$ac_cv_c_const" >&6
7388 if test $ac_cv_c_const = no; then
7390 cat >>confdefs.h <<\EOF
7396 for ac_func in strerror
7398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7399 echo "$as_me:7399: checking for $ac_func" >&5
7400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7401 if eval "test \"\${$as_ac_var+set}\" = set"; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 cat >conftest.$ac_ext <<_ACEOF
7405 #line 7405 "configure"
7406 #include "confdefs.h"
7407 /* System header to define __stub macros and hopefully few prototypes,
7408 which can conflict with char $ac_func (); below. */
7410 /* Override any gcc2 internal prototype to avoid an error. */
7414 /* We use char because int might match the return type of a gcc2
7415 builtin and then its argument prototype would still apply. */
7422 /* The GNU C library defines this for functions which it implements
7423 to always fail with ENOSYS. Some functions are actually named
7424 something starting with __ and the normal name is an alias. */
7425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:7436: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>&5
7439 echo "$as_me:7439: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try='test -s conftest$ac_exeext'
7442 { (eval echo "$as_me:7442: \"$ac_try\"") >&5
7445 echo "$as_me:7445: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7447 eval "$as_ac_var=yes"
7449 echo "$as_me: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7451 eval "$as_ac_var=no"
7453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7455 echo "$as_me:7455: result: `eval echo '${'$as_ac_var'}'`" >&5
7456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7457 if test `eval echo '${'$as_ac_var'}'` = yes; then
7458 cat >>confdefs.h <<EOF
7459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7463 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7467 echo "$as_me:7467: checking for inline" >&5
7468 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7469 if test "${ac_cv_c_inline+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 for ac_kw in inline __inline__ __inline; do
7474 cat >conftest.$ac_ext <<_ACEOF
7475 #line 7475 "configure"
7476 #include "confdefs.h"
7478 static $ac_kw int static_foo () {return 0; }
7479 $ac_kw int foo () {return 0; }
7483 rm -f conftest.$ac_objext
7484 if { (eval echo "$as_me:7484: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>&5
7487 echo "$as_me:7487: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -s conftest.$ac_objext'
7490 { (eval echo "$as_me:7490: \"$ac_try\"") >&5
7493 echo "$as_me:7493: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 ac_cv_c_inline=$ac_kw; break
7497 echo "$as_me: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7500 rm -f conftest.$ac_objext conftest.$ac_ext
7504 echo "$as_me:7504: result: $ac_cv_c_inline" >&5
7505 echo "${ECHO_T}$ac_cv_c_inline" >&6
7506 case $ac_cv_c_inline in
7509 cat >>confdefs.h <<\EOF
7513 *) cat >>confdefs.h <<EOF
7514 #define inline $ac_cv_c_inline
7519 #--------------------------------------------------------------------
7520 # This is a little hokie in that it avoids including config.guess
7521 # and config.sub in the distribution, but its been working so far.
7522 # Windows builds don't run configure so we should be safe fixing
7523 # this to 'unix' (at least for now).
7524 #--------------------------------------------------------------------
7527 if test "$GCC"; then
7528 CCDEFS="$CCDEFS -Wall -Wmissing-prototypes"
7531 ac_config_files="$ac_config_files Makefile libfcgi/Makefile cgi-fcgi/Makefile examples/Makefile"
7533 cat >confcache <<\_ACEOF
7534 # This file is a shell script that caches the results of configure
7535 # tests run on this system so they can be shared between configure
7536 # scripts and configure runs, see configure's option --config-cache.
7537 # It is not useful on other systems. If it contains results you don't
7538 # want to keep, you may remove or edit it.
7540 # config.status only pays attention to the cache file if you give it
7541 # the --recheck option to rerun configure.
7543 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7544 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7549 # The following way of writing the cache mishandles newlines in values,
7550 # but we know of no workaround that is simple, portable, and efficient.
7551 # So, don't put newlines in cache variables' values.
7552 # Ultrix sh set writes to stderr and can't be redirected directly,
7553 # and sets the high bit in the cache file unless we assign to the vars.
7556 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7558 # `set' does not quote correctly, so add quotes (double-quote
7559 # substitution turns \\\\ into \\, and sed turns \\ into \).
7562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7565 # `set' quotes correctly as required by POSIX, so do not add quotes.
7567 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7574 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7576 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7578 if cmp -s $cache_file confcache; then :; else
7579 if test -w $cache_file; then
7580 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7581 cat confcache >$cache_file
7583 echo "not updating unwritable cache $cache_file"
7588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7589 # Let make expand exec_prefix.
7590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7592 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7593 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7594 # trailing colons and then remove the whole line if VPATH becomes empty
7595 # (actually we leave an empty line to preserve line numbers).
7596 if test "x$srcdir" = x.; then
7597 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7598 s/:*\$(srcdir):*/:/;
7599 s/:*\${srcdir}:*/:/;
7601 s/^\([^=]*=[ ]*\):*/\1/;
7607 DEFS=-DHAVE_CONFIG_H
7609 : ${CONFIG_STATUS=./config.status}
7610 ac_clean_files_save=$ac_clean_files
7611 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7612 { echo "$as_me:7612: creating $CONFIG_STATUS" >&5
7613 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7614 cat >$CONFIG_STATUS <<_ACEOF
7616 # Generated automatically by configure.
7617 # Run this file to recreate the current configuration.
7618 # Compiler output produced by configure, useful for debugging
7619 # configure, is in config.log if it exists.
7622 SHELL=\${CONFIG_SHELL-$SHELL}
7623 ac_cs_invocation="\$0 \$@"
7627 cat >>$CONFIG_STATUS <<\_ACEOF
7628 # Be Bourne compatible
7629 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7632 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7636 # Name of the executable.
7637 as_me=`echo "$0" |sed 's,.*[\\/],,'`
7639 if expr a : '\(a\)' >/dev/null 2>&1; then
7645 rm -f conf$$ conf$$.exe conf$$.file
7647 if ln -s conf$$.file conf$$ 2>/dev/null; then
7648 # We could just check for DJGPP; but this test a) works b) is more generic
7649 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7650 if test -f conf$$.exe; then
7651 # Don't use ln at all; we don't have any links
7656 elif ln conf$$.file conf$$ 2>/dev/null; then
7661 rm -f conf$$ conf$$.exe conf$$.file
7663 as_executable_p="test -f"
7665 # Support unset when possible.
7666 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7673 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7674 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7675 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7676 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7677 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7678 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7679 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7680 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7683 # We need space, tab and new line, in precisely that order.
7689 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7695 # Files that config.status was made for.
7696 if test -n "$ac_config_files"; then
7697 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7700 if test -n "$ac_config_headers"; then
7701 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7704 if test -n "$ac_config_links"; then
7705 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7708 if test -n "$ac_config_commands"; then
7709 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7712 cat >>$CONFIG_STATUS <<\EOF
7715 \`$as_me' instantiates files from templates according to the
7716 current configuration.
7718 Usage: $0 [OPTIONS] [FILE]...
7720 -h, --help print this help, then exit
7721 -V, --version print version number, then exit
7722 -d, --debug don't remove temporary files
7723 --recheck update $as_me by reconfiguring in the same conditions
7724 --file=FILE[:TEMPLATE]
7725 instantiate the configuration file FILE
7726 --header=FILE[:TEMPLATE]
7727 instantiate the configuration header FILE
7729 Configuration files:
7732 Configuration headers:
7735 Configuration commands:
7738 Report bugs to <bug-autoconf@gnu.org>."
7741 cat >>$CONFIG_STATUS <<EOF
7744 configured by $0, generated by GNU Autoconf 2.52,
7745 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7747 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7748 Free Software Foundation, Inc.
7749 This config.status script is free software; the Free Software Foundation
7750 gives unlimited permission to copy, distribute and modify it."
7755 cat >>$CONFIG_STATUS <<\EOF
7756 # If no file are specified by the user, then we need to provide default
7757 # value. By we need to know if files were specified by the user.
7763 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7764 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7766 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7770 *) # This is not an option, so the user has probably given explicit
7772 ac_need_defaults=false;;
7776 # Handling of the options.
7778 cat >>$CONFIG_STATUS <<EOF
7779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7780 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7781 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7783 cat >>$CONFIG_STATUS <<\EOF
7784 --version | --vers* | -V )
7785 echo "$ac_cs_version"; exit 0 ;;
7787 # Conflict between --help and --header
7788 { { echo "$as_me:7788: error: ambiguous option: $1
7789 Try \`$0 --help' for more information." >&5
7790 echo "$as_me: error: ambiguous option: $1
7791 Try \`$0 --help' for more information." >&2;}
7792 { (exit 1); exit 1; }; };;
7793 --help | --hel | -h )
7794 echo "$ac_cs_usage"; exit 0 ;;
7795 --debug | --d* | -d )
7797 --file | --fil | --fi | --f )
7799 CONFIG_FILES="$CONFIG_FILES $1"
7800 ac_need_defaults=false;;
7801 --header | --heade | --head | --hea )
7803 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7804 ac_need_defaults=false;;
7807 -*) { { echo "$as_me:7807: error: unrecognized option: $1
7808 Try \`$0 --help' for more information." >&5
7809 echo "$as_me: error: unrecognized option: $1
7810 Try \`$0 --help' for more information." >&2;}
7811 { (exit 1); exit 1; }; } ;;
7813 *) ac_config_targets="$ac_config_targets $1" ;;
7822 ## ----------------------- ##
7823 ## Running config.status. ##
7824 ## ----------------------- ##
7826 This file was extended by $as_me 2.52, executed with
7827 CONFIG_FILES = $CONFIG_FILES
7828 CONFIG_HEADERS = $CONFIG_HEADERS
7829 CONFIG_LINKS = $CONFIG_LINKS
7830 CONFIG_COMMANDS = $CONFIG_COMMANDS
7832 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7837 cat >>$CONFIG_STATUS <<EOF
7839 # INIT-COMMANDS section.
7842 AMDEP_TRUE="$AMDEP_TRUE"
7843 ac_aux_dir="$ac_aux_dir"
7847 cat >>$CONFIG_STATUS <<\EOF
7848 for ac_config_target in $ac_config_targets
7850 case "$ac_config_target" in
7851 # Handling of arguments.
7852 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7853 "libfcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libfcgi/Makefile" ;;
7854 "cgi-fcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-fcgi/Makefile" ;;
7855 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
7856 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7857 "include/fcgi_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/fcgi_config.h" ;;
7858 *) { { echo "$as_me:7858: error: invalid argument: $ac_config_target" >&5
7859 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7860 { (exit 1); exit 1; }; };;
7864 # If the user did not use the arguments to specify the items to instantiate,
7865 # then the envvar interface is used. Set only those that are not.
7866 # We use the long form for the default assignment because of an extremely
7867 # bizarre bug on SunOS 4.1.3.
7868 if $ac_need_defaults; then
7869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7870 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7871 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7874 # Create a temporary directory, and hook for its removal unless debugging.
7877 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7878 trap '{ (exit 1); exit 1; }' 1 2 13 15
7881 # Create a (secure) tmp directory for tmp files.
7884 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7885 test -n "$tmp" && test -d "$tmp"
7888 tmp=$TMPDIR/cs$$-$RANDOM
7889 (umask 077 && mkdir $tmp)
7892 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7893 { (exit 1); exit 1; }
7898 cat >>$CONFIG_STATUS <<EOF
7901 # CONFIG_FILES section.
7904 # No need to generate the scripts if there are no CONFIG_FILES.
7905 # This happens for instance when ./config.status config.h
7906 if test -n "\$CONFIG_FILES"; then
7907 # Protect against being on the right side of a sed subst in config.status.
7908 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7909 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7910 s,@SHELL@,$SHELL,;t t
7911 s,@exec_prefix@,$exec_prefix,;t t
7912 s,@prefix@,$prefix,;t t
7913 s,@program_transform_name@,$program_transform_name,;t t
7914 s,@bindir@,$bindir,;t t
7915 s,@sbindir@,$sbindir,;t t
7916 s,@libexecdir@,$libexecdir,;t t
7917 s,@datadir@,$datadir,;t t
7918 s,@sysconfdir@,$sysconfdir,;t t
7919 s,@sharedstatedir@,$sharedstatedir,;t t
7920 s,@localstatedir@,$localstatedir,;t t
7921 s,@libdir@,$libdir,;t t
7922 s,@includedir@,$includedir,;t t
7923 s,@oldincludedir@,$oldincludedir,;t t
7924 s,@infodir@,$infodir,;t t
7925 s,@mandir@,$mandir,;t t
7926 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7927 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7928 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7929 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7930 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7931 s,@build_alias@,$build_alias,;t t
7932 s,@host_alias@,$host_alias,;t t
7933 s,@target_alias@,$target_alias,;t t
7934 s,@ECHO_C@,$ECHO_C,;t t
7935 s,@ECHO_N@,$ECHO_N,;t t
7936 s,@ECHO_T@,$ECHO_T,;t t
7937 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7940 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7941 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7942 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7943 s,@PACKAGE@,$PACKAGE,;t t
7944 s,@VERSION@,$VERSION,;t t
7945 s,@EXEEXT@,$EXEEXT,;t t
7946 s,@OBJEXT@,$OBJEXT,;t t
7947 s,@ACLOCAL@,$ACLOCAL,;t t
7948 s,@AUTOCONF@,$AUTOCONF,;t t
7949 s,@AUTOMAKE@,$AUTOMAKE,;t t
7950 s,@AUTOHEADER@,$AUTOHEADER,;t t
7951 s,@MAKEINFO@,$MAKEINFO,;t t
7952 s,@AMTAR@,$AMTAR,;t t
7953 s,@install_sh@,$install_sh,;t t
7954 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7956 s,@SET_MAKE@,$SET_MAKE,;t t
7957 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7958 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7959 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7960 s,@DEPDIR@,$DEPDIR,;t t
7962 s,@CFLAGS@,$CFLAGS,;t t
7963 s,@LDFLAGS@,$LDFLAGS,;t t
7964 s,@CPPFLAGS@,$CPPFLAGS,;t t
7965 s,@ac_ct_CC@,$ac_ct_CC,;t t
7966 s,@am__include@,$am__include,;t t
7967 s,@am__quote@,$am__quote,;t t
7968 s,@CCDEPMODE@,$CCDEPMODE,;t t
7970 s,@build@,$build,;t t
7971 s,@build_cpu@,$build_cpu,;t t
7972 s,@build_vendor@,$build_vendor,;t t
7973 s,@build_os@,$build_os,;t t
7975 s,@host_cpu@,$host_cpu,;t t
7976 s,@host_vendor@,$host_vendor,;t t
7977 s,@host_os@,$host_os,;t t
7980 s,@RANLIB@,$RANLIB,;t t
7981 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7982 s,@STRIP@,$STRIP,;t t
7983 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7984 s,@LIBTOOL@,$LIBTOOL,;t t
7985 s,@threaded@,$threaded,;t t
7986 s,@HAVE_LIBPTHREAD@,$HAVE_LIBPTHREAD,;t t
7987 s,@LIBOBJS@,$LIBOBJS,;t t
7988 s,@SYSTEM@,$SYSTEM,;t t
7989 s,@CCDEFS@,$CCDEFS,;t t
7994 cat >>$CONFIG_STATUS <<\EOF
7995 # Split the substitutions into bite-sized pieces for seds with
7996 # small command number limits, like on Digital OSF/1 and HP-UX.
7998 ac_sed_frag=1 # Number of current file.
7999 ac_beg=1 # First line for current file.
8000 ac_end=$ac_max_sed_lines # Line after last line for current file.
8003 while $ac_more_lines; do
8004 if test $ac_beg -gt 1; then
8005 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8007 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8009 if test ! -s $tmp/subs.frag; then
8012 # The purpose of the label and of the branching condition is to
8013 # speed up the sed processing (if there are no `@' at all, there
8014 # is no need to browse any of the substitutions).
8015 # These are the two extra sed commands mentioned above.
8017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8018 if test -z "$ac_sed_cmds"; then
8019 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8021 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8023 ac_sed_frag=`expr $ac_sed_frag + 1`
8025 ac_end=`expr $ac_end + $ac_max_sed_lines`
8028 if test -z "$ac_sed_cmds"; then
8031 fi # test -n "$CONFIG_FILES"
8034 cat >>$CONFIG_STATUS <<\EOF
8035 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8036 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8038 - | *:- | *:-:* ) # input from stdin
8040 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8042 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8043 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8044 * ) ac_file_in=$ac_file.in ;;
8047 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8048 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8049 X"$ac_file" : 'X\(//\)[^/]' \| \
8050 X"$ac_file" : 'X\(//\)$' \| \
8051 X"$ac_file" : 'X\(/\)' \| \
8052 . : '\(.\)' 2>/dev/null ||
8054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8056 /^X\(\/\/\)$/{ s//\1/; q; }
8057 /^X\(\/\).*/{ s//\1/; q; }
8059 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8061 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8065 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8066 case $as_mkdir_dir in
8067 # Skip DOS drivespec
8068 ?:) as_incr_dir=$as_mkdir_dir ;;
8070 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8071 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8076 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
8077 # A "../" for each directory in $ac_dir_suffix.
8078 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8080 ac_dir_suffix= ac_dots=
8085 if test -z "$ac_dots"; then
8088 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8091 ac_srcdir=$srcdir$ac_dir_suffix;
8092 ac_top_srcdir=$srcdir ;;
8094 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8095 ac_top_srcdir=$ac_dots$srcdir ;;
8099 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8100 *) ac_INSTALL=$ac_dots$INSTALL ;;
8103 if test x"$ac_file" != x-; then
8104 { echo "$as_me:8104: creating $ac_file" >&5
8105 echo "$as_me: creating $ac_file" >&6;}
8108 # Let's still pretend it is `configure' which instantiates (i.e., don't
8109 # use $as_me), people would be surprised to read:
8110 # /* config.h. Generated automatically by config.status. */
8111 configure_input="Generated automatically from `echo $ac_file_in |
8112 sed 's,.*/,,'` by configure."
8114 # First look for the input files in the build tree, otherwise in the
8116 ac_file_inputs=`IFS=:
8117 for f in $ac_file_in; do
8119 -) echo $tmp/stdin ;;
8121 # Absolute (can't be DOS-style, as IFS=:)
8122 test -f "$f" || { { echo "$as_me:8122: error: cannot find input file: $f" >&5
8123 echo "$as_me: error: cannot find input file: $f" >&2;}
8124 { (exit 1); exit 1; }; }
8127 if test -f "$f"; then
8130 elif test -f "$srcdir/$f"; then
8135 { { echo "$as_me:8135: error: cannot find input file: $f" >&5
8136 echo "$as_me: error: cannot find input file: $f" >&2;}
8137 { (exit 1); exit 1; }; }
8140 done` || { (exit 1); exit 1; }
8142 cat >>$CONFIG_STATUS <<EOF
8146 cat >>$CONFIG_STATUS <<\EOF
8148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8149 s,@configure_input@,$configure_input,;t t
8150 s,@srcdir@,$ac_srcdir,;t t
8151 s,@top_srcdir@,$ac_top_srcdir,;t t
8152 s,@INSTALL@,$ac_INSTALL,;t t
8153 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8155 if test x"$ac_file" != x-; then
8156 mv $tmp/out $ac_file
8164 cat >>$CONFIG_STATUS <<\EOF
8167 # CONFIG_HEADER section.
8170 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8171 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8173 # ac_d sets the value in "#define NAME VALUE" lines.
8174 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8175 ac_dB='[ ].*$,\1#\2'
8178 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8179 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8180 ac_uB='$,\1#\2define\3'
8184 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8185 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8187 - | *:- | *:-:* ) # input from stdin
8189 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8191 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8192 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8193 * ) ac_file_in=$ac_file.in ;;
8196 test x"$ac_file" != x- && { echo "$as_me:8196: creating $ac_file" >&5
8197 echo "$as_me: creating $ac_file" >&6;}
8199 # First look for the input files in the build tree, otherwise in the
8201 ac_file_inputs=`IFS=:
8202 for f in $ac_file_in; do
8204 -) echo $tmp/stdin ;;
8206 # Absolute (can't be DOS-style, as IFS=:)
8207 test -f "$f" || { { echo "$as_me:8207: error: cannot find input file: $f" >&5
8208 echo "$as_me: error: cannot find input file: $f" >&2;}
8209 { (exit 1); exit 1; }; }
8212 if test -f "$f"; then
8215 elif test -f "$srcdir/$f"; then
8220 { { echo "$as_me:8220: error: cannot find input file: $f" >&5
8221 echo "$as_me: error: cannot find input file: $f" >&2;}
8222 { (exit 1); exit 1; }; }
8225 done` || { (exit 1); exit 1; }
8226 # Remove the trailing spaces.
8227 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8231 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8232 # `conftest.undefs', that substitutes the proper values into
8233 # config.h.in to produce config.h. The first handles `#define'
8234 # templates, and the second `#undef' templates.
8235 # And first: Protect against being on the right side of a sed subst in
8236 # config.status. Protect against being in an unquoted here document
8238 rm -f conftest.defines conftest.undefs
8239 # Using a here document instead of a string reduces the quoting nightmare.
8240 # Putting comments in sed scripts is not portable.
8242 # `end' is used to avoid that the second main sed command (meant for
8243 # 0-ary CPP macros) applies to n-ary macro definitions.
8244 # See the Autoconf documentation for `clear'.
8245 cat >confdef2sed.sed <<\EOF
8250 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8252 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8255 # If some macros were called several times there might be several times
8256 # the same #defines, which is useless. Nevertheless, we may not want to
8257 # sort them, since we want the *last* AC-DEFINE to be honored.
8258 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8259 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8260 rm -f confdef2sed.sed
8262 # This sed command replaces #undef with comments. This is necessary, for
8263 # example, in the case of _POSIX_SOURCE, which is predefined and required
8264 # on some systems where configure will not decide to define it.
8265 cat >>conftest.undefs <<\EOF
8266 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8269 # Break up conftest.defines because some shells have a limit on the size
8270 # of here documents, and old seds have small limits too (100 cmds).
8271 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8272 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8273 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8274 echo ' :' >>$CONFIG_STATUS
8276 while grep . conftest.defines >/dev/null
8278 # Write a limited-size here document to $tmp/defines.sed.
8279 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8280 # Speed up: don't consider the non `#define' lines.
8281 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8282 # Work around the forget-to-reset-the-flag bug.
8283 echo 't clr' >>$CONFIG_STATUS
8284 echo ': clr' >>$CONFIG_STATUS
8285 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8287 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8291 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8292 rm -f conftest.defines
8293 mv conftest.tail conftest.defines
8295 rm -f conftest.defines
8296 echo ' fi # egrep' >>$CONFIG_STATUS
8297 echo >>$CONFIG_STATUS
8299 # Break up conftest.undefs because some shells have a limit on the size
8300 # of here documents, and old seds have small limits too (100 cmds).
8301 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8303 while grep . conftest.undefs >/dev/null
8305 # Write a limited-size here document to $tmp/undefs.sed.
8306 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8307 # Speed up: don't consider the non `#undef'
8308 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8309 # Work around the forget-to-reset-the-flag bug.
8310 echo 't clr' >>$CONFIG_STATUS
8311 echo ': clr' >>$CONFIG_STATUS
8312 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8314 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8318 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8319 rm -f conftest.undefs
8320 mv conftest.tail conftest.undefs
8322 rm -f conftest.undefs
8324 cat >>$CONFIG_STATUS <<\EOF
8325 # Let's still pretend it is `configure' which instantiates (i.e., don't
8326 # use $as_me), people would be surprised to read:
8327 # /* config.h. Generated automatically by config.status. */
8328 if test x"$ac_file" = x-; then
8329 echo "/* Generated automatically by configure. */" >$tmp/config.h
8331 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
8333 cat $tmp/in >>$tmp/config.h
8335 if test x"$ac_file" != x-; then
8336 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8337 { echo "$as_me:8337: $ac_file is unchanged" >&5
8338 echo "$as_me: $ac_file is unchanged" >&6;}
8340 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8341 X"$ac_file" : 'X\(//\)[^/]' \| \
8342 X"$ac_file" : 'X\(//\)$' \| \
8343 X"$ac_file" : 'X\(/\)' \| \
8344 . : '\(.\)' 2>/dev/null ||
8346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8348 /^X\(\/\/\)$/{ s//\1/; q; }
8349 /^X\(\/\).*/{ s//\1/; q; }
8351 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8353 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8357 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8358 case $as_mkdir_dir in
8359 # Skip DOS drivespec
8360 ?:) as_incr_dir=$as_mkdir_dir ;;
8362 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8363 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8370 mv $tmp/config.h $ac_file
8376 # Run the commands associated with the file.
8378 include/fcgi_config.h ) # update the timestamp
8379 echo timestamp >"include/stamp-h1"
8384 cat >>$CONFIG_STATUS <<\EOF
8387 # CONFIG_COMMANDS section.
8389 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8390 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8391 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8395 test x"$AMDEP_TRUE" != x"" ||
8396 for mf in $CONFIG_FILES; do
8398 Makefile) dirpart=.;;
8399 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
8402 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8403 # Extract the definition of DEP_FILES from the Makefile without
8405 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8406 test -z "$DEPDIR" && continue
8407 # When using ansi2knr, U may be empty or an underscore; expand it
8408 U=`sed -n -e '/^U = / s///p' < "$mf"`
8409 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8410 # We invoke sed twice because it is the simplest approach to
8411 # changing $(DEPDIR) to its actual value in the expansion.
8412 for file in `sed -n -e '
8413 /^DEP_FILES = .*\\\\$/ {
8422 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8423 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8424 # Make sure the directory exists.
8425 test -f "$dirpart/$file" && continue
8426 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
8427 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
8428 # echo "creating $dirpart/$file"
8429 echo '# dummy' > "$dirpart/$file"
8437 cat >>$CONFIG_STATUS <<\EOF
8439 { (exit 0); exit 0; }
8441 chmod +x $CONFIG_STATUS
8442 ac_clean_files=$ac_clean_files_save
8444 # configure is writing to config.log, and then calls config.status.
8445 # config.status does its own redirection, appending to config.log.
8446 # Unfortunately, on DOS this fails, as config.log is still kept open
8447 # by configure, so config.status won't be able to write to it; its
8448 # output is simply discarded. So we exec the FD to /dev/null,
8449 # effectively closing config.log, so it can be properly (re)opened and
8450 # appended to by config.status. When coming back to configure, we
8451 # need to make the FD available again.
8452 if test "$no_create" != yes; then
8455 $SHELL $CONFIG_STATUS || ac_cs_success=false
8457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8458 # would make configure fail if this is the last instruction.
8459 $ac_cs_success || { (exit 1); exit 1; }