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 if test -f "FCGI.XL"; then
1456 if test "$FCGI_BUILD"; then
1458 ac_config_headers="$ac_config_headers fcgi_config.h"
1462 ac_config_headers="$ac_config_headers include/fcgi_config.h"
1467 ac_cpp='$CPP $CPPFLAGS'
1468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471 if test -n "$ac_tool_prefix"; then
1472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1473 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1474 echo "$as_me:1474: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 if test -n "$CC"; then
1480 ac_cv_prog_CC="$CC" # Let the user override the test.
1482 ac_save_IFS=$IFS; IFS=$ac_path_separator
1484 for ac_dir in $ac_dummy; do
1486 test -z "$ac_dir" && ac_dir=.
1487 $as_executable_p "$ac_dir/$ac_word" || continue
1488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489 echo "$as_me:1489: found $ac_dir/$ac_word" >&5
1496 if test -n "$CC"; then
1497 echo "$as_me:1497: result: $CC" >&5
1498 echo "${ECHO_T}$CC" >&6
1500 echo "$as_me:1500: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1505 if test -z "$ac_cv_prog_CC"; then
1507 # Extract the first word of "gcc", so it can be a program name with args.
1508 set dummy gcc; ac_word=$2
1509 echo "$as_me:1509: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 if test -n "$ac_ct_CC"; then
1515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517 ac_save_IFS=$IFS; IFS=$ac_path_separator
1519 for ac_dir in $ac_dummy; do
1521 test -z "$ac_dir" && ac_dir=.
1522 $as_executable_p "$ac_dir/$ac_word" || continue
1523 ac_cv_prog_ac_ct_CC="gcc"
1524 echo "$as_me:1524: found $ac_dir/$ac_word" >&5
1530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531 if test -n "$ac_ct_CC"; then
1532 echo "$as_me:1532: result: $ac_ct_CC" >&5
1533 echo "${ECHO_T}$ac_ct_CC" >&6
1535 echo "$as_me:1535: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1544 if test -z "$CC"; then
1545 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1547 set dummy ${ac_tool_prefix}cc; ac_word=$2
1548 echo "$as_me:1548: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1556 ac_save_IFS=$IFS; IFS=$ac_path_separator
1558 for ac_dir in $ac_dummy; do
1560 test -z "$ac_dir" && ac_dir=.
1561 $as_executable_p "$ac_dir/$ac_word" || continue
1562 ac_cv_prog_CC="${ac_tool_prefix}cc"
1563 echo "$as_me:1563: found $ac_dir/$ac_word" >&5
1570 if test -n "$CC"; then
1571 echo "$as_me:1571: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1574 echo "$as_me:1574: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1579 if test -z "$ac_cv_prog_CC"; then
1581 # Extract the first word of "cc", so it can be a program name with args.
1582 set dummy cc; ac_word=$2
1583 echo "$as_me:1583: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 if test -n "$ac_ct_CC"; then
1589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 ac_save_IFS=$IFS; IFS=$ac_path_separator
1593 for ac_dir in $ac_dummy; do
1595 test -z "$ac_dir" && ac_dir=.
1596 $as_executable_p "$ac_dir/$ac_word" || continue
1597 ac_cv_prog_ac_ct_CC="cc"
1598 echo "$as_me:1598: found $ac_dir/$ac_word" >&5
1604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605 if test -n "$ac_ct_CC"; then
1606 echo "$as_me:1606: result: $ac_ct_CC" >&5
1607 echo "${ECHO_T}$ac_ct_CC" >&6
1609 echo "$as_me:1609: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1619 if test -z "$CC"; then
1620 # Extract the first word of "cc", so it can be a program name with args.
1621 set dummy cc; ac_word=$2
1622 echo "$as_me:1622: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1631 ac_save_IFS=$IFS; IFS=$ac_path_separator
1633 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 $as_executable_p "$ac_dir/$ac_word" || continue
1637 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1638 ac_prog_rejected=yes
1642 echo "$as_me:1642: found $ac_dir/$ac_word" >&5
1646 if test $ac_prog_rejected = yes; then
1647 # We found a bogon in the path, so make sure we never use it.
1648 set dummy $ac_cv_prog_CC
1650 if test $# != 0; then
1651 # We chose a different compiler from the bogus one.
1652 # However, it has the same basename, so the bogon will be chosen
1653 # first if we set CC to just the basename; use the full file name.
1655 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1663 if test -n "$CC"; then
1664 echo "$as_me:1664: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1667 echo "$as_me:1667: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1672 if test -z "$CC"; then
1673 if test -n "$ac_tool_prefix"; then
1676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1678 echo "$as_me:1678: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1686 ac_save_IFS=$IFS; IFS=$ac_path_separator
1688 for ac_dir in $ac_dummy; do
1690 test -z "$ac_dir" && ac_dir=.
1691 $as_executable_p "$ac_dir/$ac_word" || continue
1692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1693 echo "$as_me:1693: found $ac_dir/$ac_word" >&5
1700 if test -n "$CC"; then
1701 echo "$as_me:1701: result: $CC" >&5
1702 echo "${ECHO_T}$CC" >&6
1704 echo "$as_me:1704: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1708 test -n "$CC" && break
1711 if test -z "$CC"; then
1715 # Extract the first word of "$ac_prog", so it can be a program name with args.
1716 set dummy $ac_prog; ac_word=$2
1717 echo "$as_me:1717: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$ac_ct_CC"; then
1723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725 ac_save_IFS=$IFS; IFS=$ac_path_separator
1727 for ac_dir in $ac_dummy; do
1729 test -z "$ac_dir" && ac_dir=.
1730 $as_executable_p "$ac_dir/$ac_word" || continue
1731 ac_cv_prog_ac_ct_CC="$ac_prog"
1732 echo "$as_me:1732: found $ac_dir/$ac_word" >&5
1738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1739 if test -n "$ac_ct_CC"; then
1740 echo "$as_me:1740: result: $ac_ct_CC" >&5
1741 echo "${ECHO_T}$ac_ct_CC" >&6
1743 echo "$as_me:1743: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 test -n "$ac_ct_CC" && break
1755 test -z "$CC" && { { echo "$as_me:1755: error: no acceptable cc found in \$PATH" >&5
1756 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1757 { (exit 1); exit 1; }; }
1759 # Provide some information about the compiler.
1760 echo "$as_me:1760:" \
1761 "checking for C compiler version" >&5
1762 ac_compiler=`set X $ac_compile; echo $2`
1763 { (eval echo "$as_me:1763: \"$ac_compiler --version </dev/null >&5\"") >&5
1764 (eval $ac_compiler --version </dev/null >&5) 2>&5
1766 echo "$as_me:1766: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1768 { (eval echo "$as_me:1768: \"$ac_compiler -v </dev/null >&5\"") >&5
1769 (eval $ac_compiler -v </dev/null >&5) 2>&5
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); }
1773 { (eval echo "$as_me:1773: \"$ac_compiler -V </dev/null >&5\"") >&5
1774 (eval $ac_compiler -V </dev/null >&5) 2>&5
1776 echo "$as_me:1776: \$? = $ac_status" >&5
1777 (exit $ac_status); }
1779 cat >conftest.$ac_ext <<_ACEOF
1780 #line 1780 "configure"
1781 #include "confdefs.h"
1791 ac_clean_files_save=$ac_clean_files
1792 ac_clean_files="$ac_clean_files a.out a.exe"
1793 # Try to create an executable without -o first, disregard a.out.
1794 # It will help us diagnose broken compilers, and finding out an intuition
1796 echo "$as_me:1796: checking for C compiler default output" >&5
1797 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1799 if { (eval echo "$as_me:1799: \"$ac_link_default\"") >&5
1800 (eval $ac_link_default) 2>&5
1802 echo "$as_me:1802: \$? = $ac_status" >&5
1803 (exit $ac_status); }; then
1804 # Find the output, starting from the most likely. This scheme is
1805 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1807 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1808 ls a.out conftest 2>/dev/null;
1809 ls a.* conftest.* 2>/dev/null`; do
1811 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1812 a.out ) # We found the default executable, but exeext='' is most
1815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1823 echo "$as_me: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1825 { { echo "$as_me:1825: error: C compiler cannot create executables" >&5
1826 echo "$as_me: error: C compiler cannot create executables" >&2;}
1827 { (exit 77); exit 77; }; }
1830 ac_exeext=$ac_cv_exeext
1831 echo "$as_me:1831: result: $ac_file" >&5
1832 echo "${ECHO_T}$ac_file" >&6
1834 # Check the compiler produces executables we can run. If not, either
1835 # the compiler is broken, or we cross compile.
1836 echo "$as_me:1836: checking whether the C compiler works" >&5
1837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1839 # If not cross compiling, check that we can run a simple program.
1840 if test "$cross_compiling" != yes; then
1841 if { ac_try='./$ac_file'
1842 { (eval echo "$as_me:1842: \"$ac_try\"") >&5
1845 echo "$as_me:1845: \$? = $ac_status" >&5
1846 (exit $ac_status); }; }; then
1849 if test "$cross_compiling" = maybe; then
1852 { { echo "$as_me:1852: error: cannot run C compiled programs.
1853 If you meant to cross compile, use \`--host'." >&5
1854 echo "$as_me: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'." >&2;}
1856 { (exit 1); exit 1; }; }
1860 echo "$as_me:1860: result: yes" >&5
1861 echo "${ECHO_T}yes" >&6
1863 rm -f a.out a.exe conftest$ac_cv_exeext
1864 ac_clean_files=$ac_clean_files_save
1865 # Check the compiler produces executables we can run. If not, either
1866 # the compiler is broken, or we cross compile.
1867 echo "$as_me:1867: checking whether we are cross compiling" >&5
1868 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1869 echo "$as_me:1869: result: $cross_compiling" >&5
1870 echo "${ECHO_T}$cross_compiling" >&6
1872 echo "$as_me:1872: checking for executable suffix" >&5
1873 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1874 if { (eval echo "$as_me:1874: \"$ac_link\"") >&5
1875 (eval $ac_link) 2>&5
1877 echo "$as_me:1877: \$? = $ac_status" >&5
1878 (exit $ac_status); }; then
1879 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1880 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1881 # work properly (i.e., refer to `conftest.exe'), while it won't with
1883 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1885 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1886 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1893 { { echo "$as_me:1893: error: cannot compute EXEEXT: cannot compile and link" >&5
1894 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1895 { (exit 1); exit 1; }; }
1898 rm -f conftest$ac_cv_exeext
1899 echo "$as_me:1899: result: $ac_cv_exeext" >&5
1900 echo "${ECHO_T}$ac_cv_exeext" >&6
1902 rm -f conftest.$ac_ext
1903 EXEEXT=$ac_cv_exeext
1905 echo "$as_me:1905: checking for object suffix" >&5
1906 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1907 if test "${ac_cv_objext+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 cat >conftest.$ac_ext <<_ACEOF
1911 #line 1911 "configure"
1912 #include "confdefs.h"
1922 rm -f conftest.o conftest.obj
1923 if { (eval echo "$as_me:1923: \"$ac_compile\"") >&5
1924 (eval $ac_compile) 2>&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); }; then
1928 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1931 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1936 echo "$as_me: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1938 { { echo "$as_me:1938: error: cannot compute OBJEXT: cannot compile" >&5
1939 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1940 { (exit 1); exit 1; }; }
1943 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1945 echo "$as_me:1945: result: $ac_cv_objext" >&5
1946 echo "${ECHO_T}$ac_cv_objext" >&6
1947 OBJEXT=$ac_cv_objext
1949 echo "$as_me:1949: checking whether we are using the GNU C compiler" >&5
1950 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1951 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 cat >conftest.$ac_ext <<_ACEOF
1955 #line 1955 "configure"
1956 #include "confdefs.h"
1969 rm -f conftest.$ac_objext
1970 if { (eval echo "$as_me:1970: \"$ac_compile\"") >&5
1971 (eval $ac_compile) 2>&5
1973 echo "$as_me:1973: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
1975 { ac_try='test -s conftest.$ac_objext'
1976 { (eval echo "$as_me:1976: \"$ac_try\"") >&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); }; }; then
1983 echo "$as_me: failed program was:" >&5
1984 cat conftest.$ac_ext >&5
1987 rm -f conftest.$ac_objext conftest.$ac_ext
1988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1991 echo "$as_me:1991: result: $ac_cv_c_compiler_gnu" >&5
1992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1993 GCC=`test $ac_compiler_gnu = yes && echo yes`
1994 ac_test_CFLAGS=${CFLAGS+set}
1995 ac_save_CFLAGS=$CFLAGS
1997 echo "$as_me:1997: checking whether $CC accepts -g" >&5
1998 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1999 if test "${ac_cv_prog_cc_g+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 cat >conftest.$ac_ext <<_ACEOF
2003 #line 2003 "configure"
2004 #include "confdefs.h"
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:2015: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>&5
2018 echo "$as_me:2018: \$? = $ac_status" >&5
2019 (exit $ac_status); } &&
2020 { ac_try='test -s conftest.$ac_objext'
2021 { (eval echo "$as_me:2021: \"$ac_try\"") >&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2032 rm -f conftest.$ac_objext conftest.$ac_ext
2034 echo "$as_me:2034: result: $ac_cv_prog_cc_g" >&5
2035 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2036 if test "$ac_test_CFLAGS" = set; then
2037 CFLAGS=$ac_save_CFLAGS
2038 elif test $ac_cv_prog_cc_g = yes; then
2039 if test "$GCC" = yes; then
2045 if test "$GCC" = yes; then
2051 # Some people use a C++ compiler to compile C. Since we use `exit',
2052 # in C++ we need to declare it. In case someone uses the same compiler
2053 # for both compiling C and C++ we need to have the C++ compiler decide
2054 # the declaration of exit, since it's the most demanding environment.
2055 cat >conftest.$ac_ext <<_ACEOF
2060 rm -f conftest.$ac_objext
2061 if { (eval echo "$as_me:2061: \"$ac_compile\"") >&5
2062 (eval $ac_compile) 2>&5
2064 echo "$as_me:2064: \$? = $ac_status" >&5
2065 (exit $ac_status); } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:2067: \"$ac_try\"") >&5
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 for ac_declaration in \
2074 '#include <stdlib.h>' \
2075 'extern "C" void std::exit (int) throw (); using std::exit;' \
2076 'extern "C" void std::exit (int); using std::exit;' \
2077 'extern "C" void exit (int) throw ();' \
2078 'extern "C" void exit (int);' \
2081 cat >conftest.$ac_ext <<_ACEOF
2082 #line 2082 "configure"
2083 #include "confdefs.h"
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:2095: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>&5
2098 echo "$as_me:2098: \$? = $ac_status" >&5
2099 (exit $ac_status); } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:2101: \"$ac_try\"") >&5
2104 echo "$as_me:2104: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2108 echo "$as_me: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2112 rm -f conftest.$ac_objext conftest.$ac_ext
2113 cat >conftest.$ac_ext <<_ACEOF
2114 #line 2114 "configure"
2115 #include "confdefs.h"
2125 rm -f conftest.$ac_objext
2126 if { (eval echo "$as_me:2126: \"$ac_compile\"") >&5
2127 (eval $ac_compile) 2>&5
2129 echo "$as_me:2129: \$? = $ac_status" >&5
2130 (exit $ac_status); } &&
2131 { ac_try='test -s conftest.$ac_objext'
2132 { (eval echo "$as_me:2132: \"$ac_try\"") >&5
2135 echo "$as_me:2135: \$? = $ac_status" >&5
2136 (exit $ac_status); }; }; then
2139 echo "$as_me: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2142 rm -f conftest.$ac_objext conftest.$ac_ext
2145 if test -n "$ac_declaration"; then
2146 echo '#ifdef __cplusplus' >>confdefs.h
2147 echo $ac_declaration >>confdefs.h
2148 echo '#endif' >>confdefs.h
2152 echo "$as_me: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2155 rm -f conftest.$ac_objext conftest.$ac_ext
2157 ac_cpp='$CPP $CPPFLAGS'
2158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2162 ac_config_commands="$ac_config_commands default-1"
2164 am_make=${MAKE-make}
2165 cat > confinc << 'END'
2169 # If we don't find an include directive, just comment out the code.
2170 echo "$as_me:2170: checking for style of include used by $am_make" >&5
2171 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2175 # First try GNU make style include.
2176 echo "include confinc" > confmf
2177 # We grep out `Entering directory' and `Leaving directory'
2178 # messages which can occur if `w' ends up in MAKEFLAGS.
2179 # In particular we don't look at `^make:' because GNU make might
2180 # be invoked under some other name (usually "gmake"), in which
2181 # case it prints its new name instead of `make'.
2182 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2187 # Now try BSD make style include.
2188 if test "$am__include" = "#"; then
2189 echo '.include "confinc"' > confmf
2190 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2191 am__include=.include
2197 echo "$as_me:2197: result: $_am_result" >&5
2198 echo "${ECHO_T}$_am_result" >&6
2199 rm -f confinc confmf
2201 depcc="$CC" am_compiler_list=
2203 echo "$as_me:2203: checking dependency style of $depcc" >&5
2204 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2205 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2209 # We make a subdir and do the tests there. Otherwise we can end up
2210 # making bogus files that we don't know about and never remove. For
2211 # instance it was reported that on HP-UX the gcc test will end up
2212 # making a dummy file named `D' -- because `-MD' means `put the output
2215 # Copy depcomp to subdir because otherwise we won't find it if we're
2216 # using a relative directory.
2217 cp "$am_depcomp" conftest.dir
2220 am_cv_CC_dependencies_compiler_type=none
2221 if test "$am_compiler_list" = ""; then
2222 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2224 for depmode in $am_compiler_list; do
2225 # We need to recreate these files for each test, as the compiler may
2226 # overwrite some of them when testing with obscure command lines.
2227 # This happens at least with the AIX C compiler.
2228 echo '#include "conftest.h"' > conftest.c
2229 echo 'int i;' > conftest.h
2230 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2234 # after this tag, mechanisms are not by side-effect, so they'll
2235 # only be used when explicitly requested
2236 if test "x$enable_dependency_tracking" = xyes; then
2244 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2245 # mode. It turns out that the SunPro C++ compiler does not properly
2246 # handle `-M -o', and we need to detect this.
2247 if depmode=$depmode \
2248 source=conftest.c object=conftest.o \
2249 depfile=conftest.Po tmpdepfile=conftest.TPo \
2250 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2251 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2252 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2253 am_cv_CC_dependencies_compiler_type=$depmode
2261 am_cv_CC_dependencies_compiler_type=none
2265 echo "$as_me:2265: result: $am_cv_CC_dependencies_compiler_type" >&5
2266 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2267 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274 echo "$as_me:2274: checking how to run the C preprocessor" >&5
2275 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2276 # On Suns, sometimes $CPP names a directory.
2277 if test -n "$CPP" && test -d "$CPP"; then
2280 if test -z "$CPP"; then
2281 if test "${ac_cv_prog_CPP+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 # Double quotes because CPP needs to be expanded
2285 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2288 for ac_c_preproc_warn_flag in '' yes
2290 # Use a header file that comes with gcc, so configuring glibc
2291 # with a fresh cross-compiler works.
2292 # On the NeXT, cc -E runs the code through the compiler's parser,
2293 # not just through cpp. "Syntax error" is here to catch this case.
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line 2295 "configure"
2296 #include "confdefs.h"
2300 if { (eval echo "$as_me:2300: \"$ac_cpp conftest.$ac_ext\"") >&5
2301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2303 egrep -v '^ *\+' conftest.er1 >conftest.err
2305 cat conftest.err >&5
2306 echo "$as_me:2306: \$? = $ac_status" >&5
2307 (exit $ac_status); } >/dev/null; then
2308 if test -s conftest.err; then
2309 ac_cpp_err=$ac_c_preproc_warn_flag
2316 if test -z "$ac_cpp_err"; then
2319 echo "$as_me: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 # Broken: fails on valid input.
2324 rm -f conftest.err conftest.$ac_ext
2326 # OK, works on sane cases. Now check whether non-existent headers
2327 # can be detected and how.
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line 2329 "configure"
2330 #include "confdefs.h"
2331 #include <ac_nonexistent.h>
2333 if { (eval echo "$as_me:2333: \"$ac_cpp conftest.$ac_ext\"") >&5
2334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2336 egrep -v '^ *\+' conftest.er1 >conftest.err
2338 cat conftest.err >&5
2339 echo "$as_me:2339: \$? = $ac_status" >&5
2340 (exit $ac_status); } >/dev/null; then
2341 if test -s conftest.err; then
2342 ac_cpp_err=$ac_c_preproc_warn_flag
2349 if test -z "$ac_cpp_err"; then
2350 # Broken: success on invalid input.
2353 echo "$as_me: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 # Passes both tests.
2359 rm -f conftest.err conftest.$ac_ext
2362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2363 rm -f conftest.err conftest.$ac_ext
2364 if $ac_preproc_ok; then
2376 echo "$as_me:2376: result: $CPP" >&5
2377 echo "${ECHO_T}$CPP" >&6
2379 for ac_c_preproc_warn_flag in '' yes
2381 # Use a header file that comes with gcc, so configuring glibc
2382 # with a fresh cross-compiler works.
2383 # On the NeXT, cc -E runs the code through the compiler's parser,
2384 # not just through cpp. "Syntax error" is here to catch this case.
2385 cat >conftest.$ac_ext <<_ACEOF
2386 #line 2386 "configure"
2387 #include "confdefs.h"
2391 if { (eval echo "$as_me:2391: \"$ac_cpp conftest.$ac_ext\"") >&5
2392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2394 egrep -v '^ *\+' conftest.er1 >conftest.err
2396 cat conftest.err >&5
2397 echo "$as_me:2397: \$? = $ac_status" >&5
2398 (exit $ac_status); } >/dev/null; then
2399 if test -s conftest.err; then
2400 ac_cpp_err=$ac_c_preproc_warn_flag
2407 if test -z "$ac_cpp_err"; then
2410 echo "$as_me: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2412 # Broken: fails on valid input.
2415 rm -f conftest.err conftest.$ac_ext
2417 # OK, works on sane cases. Now check whether non-existent headers
2418 # can be detected and how.
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #line 2420 "configure"
2421 #include "confdefs.h"
2422 #include <ac_nonexistent.h>
2424 if { (eval echo "$as_me:2424: \"$ac_cpp conftest.$ac_ext\"") >&5
2425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2427 egrep -v '^ *\+' conftest.er1 >conftest.err
2429 cat conftest.err >&5
2430 echo "$as_me:2430: \$? = $ac_status" >&5
2431 (exit $ac_status); } >/dev/null; then
2432 if test -s conftest.err; then
2433 ac_cpp_err=$ac_c_preproc_warn_flag
2440 if test -z "$ac_cpp_err"; then
2441 # Broken: success on invalid input.
2444 echo "$as_me: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 # Passes both tests.
2450 rm -f conftest.err conftest.$ac_ext
2453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2454 rm -f conftest.err conftest.$ac_ext
2455 if $ac_preproc_ok; then
2458 { { echo "$as_me:2458: error: C preprocessor \"$CPP\" fails sanity check" >&5
2459 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2460 { (exit 1); exit 1; }; }
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 # Find a good install program. We prefer a C program (faster),
2470 # so one script is as good as another. But avoid the broken or
2471 # incompatible versions:
2472 # SysV /etc/install, /usr/sbin/install
2473 # SunOS /usr/etc/install
2474 # IRIX /sbin/install
2476 # AmigaOS /C/install, which installs bootblocks on floppy discs
2477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2480 # ./install, which can be erroneously created by make from ./install.sh.
2481 echo "$as_me:2481: checking for a BSD compatible install" >&5
2482 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2483 if test -z "$INSTALL"; then
2484 if test "${ac_cv_path_install+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 ac_save_IFS=$IFS; IFS=$ac_path_separator
2488 for ac_dir in $PATH; do
2490 # Account for people who put trailing slashes in PATH elements.
2492 / | ./ | .// | /cC/* \
2493 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2496 # OSF1 and SCO ODT 3.0 have their own names for install.
2497 # Don't use installbsd from OSF since it installs stuff as root
2499 for ac_prog in ginstall scoinst install; do
2500 if $as_executable_p "$ac_dir/$ac_prog"; then
2501 if test $ac_prog = install &&
2502 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2503 # AIX install. It has an incompatible calling convention.
2505 elif test $ac_prog = install &&
2506 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2507 # program-specific install script used by HP pwplus--don't use.
2510 ac_cv_path_install="$ac_dir/$ac_prog -c"
2520 if test "${ac_cv_path_install+set}" = set; then
2521 INSTALL=$ac_cv_path_install
2523 # As a last resort, use the slow shell script. We don't cache a
2524 # path for INSTALL within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the path is relative.
2527 INSTALL=$ac_install_sh
2530 echo "$as_me:2530: result: $INSTALL" >&5
2531 echo "${ECHO_T}$INSTALL" >&6
2533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534 # It thinks the first close brace ends the variable substitution.
2535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2541 # Check whether --enable-shared or --disable-shared was given.
2542 if test "${enable_shared+set}" = set; then
2543 enableval="$enable_shared"
2544 p=${PACKAGE-default}
2546 yes) enable_shared=yes ;;
2547 no) enable_shared=no ;;
2550 # Look at the argument we got. We use all the common list separators.
2551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2552 for pkg in $enableval; do
2553 if test "X$pkg" = "X$p"; then
2563 # Check whether --enable-static or --disable-static was given.
2564 if test "${enable_static+set}" = set; then
2565 enableval="$enable_static"
2566 p=${PACKAGE-default}
2568 yes) enable_static=yes ;;
2569 no) enable_static=no ;;
2572 # Look at the argument we got. We use all the common list separators.
2573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2574 for pkg in $enableval; do
2575 if test "X$pkg" = "X$p"; then
2585 # Check whether --enable-fast-install or --disable-fast-install was given.
2586 if test "${enable_fast_install+set}" = set; then
2587 enableval="$enable_fast_install"
2588 p=${PACKAGE-default}
2590 yes) enable_fast_install=yes ;;
2591 no) enable_fast_install=no ;;
2593 enable_fast_install=no
2594 # Look at the argument we got. We use all the common list separators.
2595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2596 for pkg in $enableval; do
2597 if test "X$pkg" = "X$p"; then
2598 enable_fast_install=yes
2605 enable_fast_install=yes
2607 # Make sure we can run config.sub.
2608 $ac_config_sub sun4 >/dev/null 2>&1 ||
2609 { { echo "$as_me:2609: error: cannot run $ac_config_sub" >&5
2610 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2611 { (exit 1); exit 1; }; }
2613 echo "$as_me:2613: checking build system type" >&5
2614 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2615 if test "${ac_cv_build+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 ac_cv_build_alias=$build_alias
2619 test -z "$ac_cv_build_alias" &&
2620 ac_cv_build_alias=`$ac_config_guess`
2621 test -z "$ac_cv_build_alias" &&
2622 { { echo "$as_me:2622: error: cannot guess build type; you must specify one" >&5
2623 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2624 { (exit 1); exit 1; }; }
2625 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2626 { { echo "$as_me:2626: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2627 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2628 { (exit 1); exit 1; }; }
2631 echo "$as_me:2631: result: $ac_cv_build" >&5
2632 echo "${ECHO_T}$ac_cv_build" >&6
2634 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2635 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2636 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2638 echo "$as_me:2638: checking host system type" >&5
2639 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2640 if test "${ac_cv_host+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 ac_cv_host_alias=$host_alias
2644 test -z "$ac_cv_host_alias" &&
2645 ac_cv_host_alias=$ac_cv_build_alias
2646 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2647 { { echo "$as_me:2647: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2648 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2649 { (exit 1); exit 1; }; }
2652 echo "$as_me:2652: result: $ac_cv_host" >&5
2653 echo "${ECHO_T}$ac_cv_host" >&6
2655 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2656 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2657 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2659 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2660 if test "${with_gnu_ld+set}" = set; then
2661 withval="$with_gnu_ld"
2662 test "$withval" = no || with_gnu_ld=yes
2667 if test "$GCC" = yes; then
2668 # Check if gcc -print-prog-name=ld gives a path.
2669 echo "$as_me:2669: checking for ld used by GCC" >&5
2670 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2673 # gcc leaves a trailing carriage return which upsets mingw
2674 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2676 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2679 # Accept absolute paths.
2680 [\\/]* | [A-Za-z]:[\\/]*)
2681 re_direlt='/[^/][^/]*/\.\./'
2682 # Canonicalize the path of ld
2683 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2684 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2685 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2687 test -z "$LD" && LD="$ac_prog"
2690 # If it fails, then pretend we aren't using GCC.
2694 # If it is relative, then search for the first ld in PATH.
2698 elif test "$with_gnu_ld" = yes; then
2699 echo "$as_me:2699: checking for GNU ld" >&5
2700 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2702 echo "$as_me:2702: checking for non-GNU ld" >&5
2703 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2705 if test "${lt_cv_path_LD+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 if test -z "$LD"; then
2709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2710 for ac_dir in $PATH; do
2711 test -z "$ac_dir" && ac_dir=.
2712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2713 lt_cv_path_LD="$ac_dir/$ac_prog"
2714 # Check to see if the program is GNU ld. I'd rather use --version,
2715 # but apparently some GNU ld's only accept -v.
2716 # Break only if it was the GNU/non-GNU ld that we prefer.
2717 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2718 test "$with_gnu_ld" != no && break
2720 test "$with_gnu_ld" != yes && break
2726 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2731 if test -n "$LD"; then
2732 echo "$as_me:2732: result: $LD" >&5
2733 echo "${ECHO_T}$LD" >&6
2735 echo "$as_me:2735: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2738 test -z "$LD" && { { echo "$as_me:2738: error: no acceptable ld found in \$PATH" >&5
2739 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2740 { (exit 1); exit 1; }; }
2741 echo "$as_me:2741: checking if the linker ($LD) is GNU ld" >&5
2742 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2743 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2747 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2748 lt_cv_prog_gnu_ld=yes
2750 lt_cv_prog_gnu_ld=no
2753 echo "$as_me:2753: result: $lt_cv_prog_gnu_ld" >&5
2754 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2755 with_gnu_ld=$lt_cv_prog_gnu_ld
2757 echo "$as_me:2757: checking for $LD option to reload object files" >&5
2758 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2759 if test "${lt_cv_ld_reload_flag+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 lt_cv_ld_reload_flag='-r'
2764 echo "$as_me:2764: result: $lt_cv_ld_reload_flag" >&5
2765 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2766 reload_flag=$lt_cv_ld_reload_flag
2767 test -n "$reload_flag" && reload_flag=" $reload_flag"
2769 echo "$as_me:2769: checking for BSD-compatible nm" >&5
2770 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2771 if test "${lt_cv_path_NM+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$NM"; then
2775 # Let the user override the test.
2778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2779 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2780 test -z "$ac_dir" && ac_dir=.
2781 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2782 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2783 # Check to see if the nm accepts a BSD-compat flag.
2784 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2785 # nm: unknown option "B" ignored
2786 # Tru64's nm complains that /dev/null is an invalid object file
2787 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2788 lt_cv_path_NM="$tmp_nm -B"
2790 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2791 lt_cv_path_NM="$tmp_nm -p"
2794 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2795 continue # so that we can try to find one that supports BSD flags
2800 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2805 echo "$as_me:2805: result: $NM" >&5
2806 echo "${ECHO_T}$NM" >&6
2808 echo "$as_me:2808: checking whether ln -s works" >&5
2809 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2811 if test "$LN_S" = "ln -s"; then
2812 echo "$as_me:2812: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6
2815 echo "$as_me:2815: result: no, using $LN_S" >&5
2816 echo "${ECHO_T}no, using $LN_S" >&6
2819 echo "$as_me:2819: checking how to recognise dependant libraries" >&5
2820 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2821 if test "${lt_cv_deplibs_check_method+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 lt_cv_file_magic_cmd='$MAGIC_CMD'
2825 lt_cv_file_magic_test_file=
2826 lt_cv_deplibs_check_method='unknown'
2827 # Need to set the preceding variable on all platforms that support
2828 # interlibrary dependencies.
2829 # 'none' -- dependencies not supported.
2830 # `unknown' -- same as none, but documents that we really don't know.
2831 # 'pass_all' -- all dependencies passed with no checks.
2832 # 'test_compile' -- check by making test program.
2833 # ['file_magic [regex]'] -- check by looking for files in library path
2834 # which responds to the $file_magic_cmd with a given egrep regex.
2835 # If you have `file' or equivalent on your system and you're not sure
2836 # whether `pass_all' will *always* work, you probably want this one.
2840 lt_cv_deplibs_check_method=pass_all
2844 lt_cv_deplibs_check_method=pass_all
2848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2849 lt_cv_file_magic_cmd='/usr/bin/file -L'
2850 lt_cv_file_magic_test_file=/shlib/libc.so
2853 cygwin* | mingw* | pw32*)
2854 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2855 lt_cv_file_magic_cmd='$OBJDUMP -f'
2858 darwin* | rhapsody*)
2859 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2860 lt_cv_file_magic_cmd='/usr/bin/file -L'
2862 rhapsody* | darwin1.012)
2863 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2866 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2872 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2875 # Not sure whether the presence of OpenBSD here was a mistake.
2876 # Let's accept both of them until this is cleared up.
2877 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2878 lt_cv_file_magic_cmd=/usr/bin/file
2879 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2883 lt_cv_deplibs_check_method=pass_all
2888 lt_cv_deplibs_check_method=pass_all
2892 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2893 lt_cv_file_magic_cmd=/usr/bin/file
2894 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2900 # this will be overridden with pass_all, but let us keep it just in case
2901 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2905 *-32|*"-32 ") libmagic=32-bit;;
2906 *-n32|*"-n32 ") libmagic=N32;;
2907 *-64|*"-64 ") libmagic=64-bit;;
2908 *) libmagic=never-match;;
2910 # this will be overridden with pass_all, but let us keep it just in case
2911 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2914 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2915 lt_cv_deplibs_check_method=pass_all
2918 # This must be Linux ELF.
2921 alpha* | i*86 | powerpc* | sparc* | ia64* )
2922 lt_cv_deplibs_check_method=pass_all ;;
2924 # glibc up to 2.1.1 does not perform some relocations on ARM
2925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2927 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2931 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2932 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2934 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2940 lt_cv_file_magic_cmd=/usr/bin/file
2941 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2944 osf3* | osf4* | osf5*)
2945 # this will be overridden with pass_all, but let us keep it just in case
2946 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2947 lt_cv_file_magic_test_file=/shlib/libc.so
2948 lt_cv_deplibs_check_method=pass_all
2952 lt_cv_deplibs_check_method=pass_all
2956 lt_cv_deplibs_check_method=pass_all
2957 lt_cv_file_magic_test_file=/lib/libc.so
2960 sysv5uw[78]* | sysv4*uw2*)
2961 lt_cv_deplibs_check_method=pass_all
2964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2965 case $host_vendor in
2967 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]'
2968 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2971 lt_cv_deplibs_check_method=pass_all
2974 lt_cv_file_magic_cmd='/bin/file'
2975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2978 lt_cv_file_magic_cmd='/bin/file'
2979 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2980 lt_cv_file_magic_test_file=/lib/libc.so
2987 echo "$as_me:2987: result: $lt_cv_deplibs_check_method" >&5
2988 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2989 file_magic_cmd=$lt_cv_file_magic_cmd
2990 deplibs_check_method=$lt_cv_deplibs_check_method
2992 # Check for command to grab the raw symbol name followed by C symbol from nm.
2993 echo "$as_me:2993: checking command to parse $NM output" >&5
2994 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2995 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 # These are sane defaults that work on at least a few old systems.
3000 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3002 # Character class describing NM global symbol codes.
3003 symcode='[BCDEGRST]'
3005 # Regexp to match symbols that can be accessed directly from C.
3006 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3008 # Transform the above into a raw symbol and a C symbol.
3009 symxfrm='\1 \2\3 \3'
3011 # Transform an extracted symbol line into a proper C declaration
3012 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3014 # Define system-specific variables.
3019 cygwin* | mingw* | pw32*)
3020 symcode='[ABCDGISTW]'
3022 hpux*) # Its linker distinguishes data from code symbols
3023 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3026 symcode='[BCDEGRST]'
3036 # Handle CRLF in mingw tool chain
3040 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3044 # If we're using GNU nm, then use its standard symbol codes.
3045 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3046 symcode='[ABCDGISTW]'
3049 # Try without a prefix undercore, then with it.
3050 for ac_symprfx in "" "_"; do
3052 # Write the raw and C identifiers.
3053 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3055 # Check to see that the pipe works correctly.
3058 cat > conftest.$ac_ext <<EOF
3063 void nm_test_func(){}
3067 int main(){nm_test_var='a';nm_test_func();return(0);}
3070 if { (eval echo "$as_me:3070: \"$ac_compile\"") >&5
3071 (eval $ac_compile) 2>&5
3073 echo "$as_me:3073: \$? = $ac_status" >&5
3074 (exit $ac_status); }; then
3075 # Now try to grab the symbols.
3077 if { (eval echo "$as_me:3077: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3078 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3080 echo "$as_me:3080: \$? = $ac_status" >&5
3081 (exit $ac_status); } && test -s "$nlist"; then
3082 # Try sorting and uniquifying the output.
3083 if sort "$nlist" | uniq > "$nlist"T; then
3084 mv -f "$nlist"T "$nlist"
3089 # Make sure that we snagged all the symbols we need.
3090 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3091 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3092 cat <<EOF > conftest.$ac_ext
3098 # Now generate the symbol file.
3099 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3101 cat <<EOF >> conftest.$ac_ext
3102 #if defined (__STDC__) && __STDC__
3103 # define lt_ptr_t void *
3105 # define lt_ptr_t char *
3109 /* The mapping between symbol names and symbols. */
3114 lt_preloaded_symbols[] =
3117 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3118 cat <<\EOF >> conftest.$ac_ext
3126 # Now try linking the two files.
3127 mv conftest.$ac_objext conftstm.$ac_objext
3129 save_CFLAGS="$CFLAGS"
3130 LIBS="conftstm.$ac_objext"
3131 CFLAGS="$CFLAGS$no_builtin_flag"
3132 if { (eval echo "$as_me:3132: \"$ac_link\"") >&5
3133 (eval $ac_link) 2>&5
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); } && test -s conftest; then
3140 CFLAGS="$save_CFLAGS"
3142 echo "cannot find nm_test_func in $nlist" >&5
3145 echo "cannot find nm_test_var in $nlist" >&5
3148 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3151 echo "$progname: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3154 rm -f conftest* conftst*
3156 # Do not use the global_symbol_pipe unless it works.
3157 if test "$pipe_works" = yes; then
3160 lt_cv_sys_global_symbol_pipe=
3166 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3167 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3168 global_symbol_to_cdecl=
3170 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3172 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3173 echo "$as_me:3173: result: failed" >&5
3174 echo "${ECHO_T}failed" >&6
3176 echo "$as_me:3176: result: ok" >&5
3177 echo "${ECHO_T}ok" >&6
3180 for ac_header in dlfcn.h
3182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3183 echo "$as_me:3183: checking for $ac_header" >&5
3184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 cat >conftest.$ac_ext <<_ACEOF
3189 #line 3189 "configure"
3190 #include "confdefs.h"
3191 #include <$ac_header>
3193 if { (eval echo "$as_me:3193: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196 egrep -v '^ *\+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 echo "$as_me:3199: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null; then
3201 if test -s conftest.err; then
3202 ac_cpp_err=$ac_c_preproc_warn_flag
3209 if test -z "$ac_cpp_err"; then
3210 eval "$as_ac_Header=yes"
3212 echo "$as_me: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3214 eval "$as_ac_Header=no"
3216 rm -f conftest.err conftest.$ac_ext
3218 echo "$as_me:3218: result: `eval echo '${'$as_ac_Header'}'`" >&5
3219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3221 cat >>confdefs.h <<EOF
3222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3228 # Only perform the check for file, if the check method requires it
3229 case $deplibs_check_method in
3231 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3232 echo "$as_me:3232: checking for ${ac_tool_prefix}file" >&5
3233 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3234 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3245 ac_save_MAGIC_CMD="$MAGIC_CMD"
3246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3247 ac_dummy="/usr/bin:$PATH"
3248 for ac_dir in $ac_dummy; do
3249 test -z "$ac_dir" && ac_dir=.
3250 if test -f $ac_dir/${ac_tool_prefix}file; then
3251 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3252 if test -n "$file_magic_test_file"; then
3253 case $deplibs_check_method in
3255 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3258 egrep "$file_magic_regex" > /dev/null; then
3263 *** Warning: the command libtool uses to detect shared libraries,
3264 *** $file_magic_cmd, produces output that libtool cannot recognize.
3265 *** The result is that libtool may fail to recognize shared libraries
3266 *** as such. This will affect the creation of libtool libraries that
3267 *** depend on shared libraries, but programs linked with such libtool
3268 *** libraries will work regardless of this problem. Nevertheless, you
3269 *** may want to report the problem to your system manager and/or to
3270 *** bug-libtool@gnu.org
3280 MAGIC_CMD="$ac_save_MAGIC_CMD"
3285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3286 if test -n "$MAGIC_CMD"; then
3287 echo "$as_me:3287: result: $MAGIC_CMD" >&5
3288 echo "${ECHO_T}$MAGIC_CMD" >&6
3290 echo "$as_me:3290: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3294 if test -z "$lt_cv_path_MAGIC_CMD"; then
3295 if test -n "$ac_tool_prefix"; then
3296 echo "$as_me:3296: checking for file" >&5
3297 echo $ECHO_N "checking for file... $ECHO_C" >&6
3298 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3306 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3309 ac_save_MAGIC_CMD="$MAGIC_CMD"
3310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3311 ac_dummy="/usr/bin:$PATH"
3312 for ac_dir in $ac_dummy; do
3313 test -z "$ac_dir" && ac_dir=.
3314 if test -f $ac_dir/file; then
3315 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3316 if test -n "$file_magic_test_file"; then
3317 case $deplibs_check_method in
3319 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3322 egrep "$file_magic_regex" > /dev/null; then
3327 *** Warning: the command libtool uses to detect shared libraries,
3328 *** $file_magic_cmd, produces output that libtool cannot recognize.
3329 *** The result is that libtool may fail to recognize shared libraries
3330 *** as such. This will affect the creation of libtool libraries that
3331 *** depend on shared libraries, but programs linked with such libtool
3332 *** libraries will work regardless of this problem. Nevertheless, you
3333 *** may want to report the problem to your system manager and/or to
3334 *** bug-libtool@gnu.org
3344 MAGIC_CMD="$ac_save_MAGIC_CMD"
3349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3350 if test -n "$MAGIC_CMD"; then
3351 echo "$as_me:3351: result: $MAGIC_CMD" >&5
3352 echo "${ECHO_T}$MAGIC_CMD" >&6
3354 echo "$as_me:3354: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3370 echo "$as_me:3370: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_RANLIB+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if test -n "$RANLIB"; then
3376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3378 ac_save_IFS=$IFS; IFS=$ac_path_separator
3380 for ac_dir in $ac_dummy; do
3382 test -z "$ac_dir" && ac_dir=.
3383 $as_executable_p "$ac_dir/$ac_word" || continue
3384 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3385 echo "$as_me:3385: found $ac_dir/$ac_word" >&5
3391 RANLIB=$ac_cv_prog_RANLIB
3392 if test -n "$RANLIB"; then
3393 echo "$as_me:3393: result: $RANLIB" >&5
3394 echo "${ECHO_T}$RANLIB" >&6
3396 echo "$as_me:3396: result: no" >&5
3397 echo "${ECHO_T}no" >&6
3401 if test -z "$ac_cv_prog_RANLIB"; then
3402 ac_ct_RANLIB=$RANLIB
3403 # Extract the first word of "ranlib", so it can be a program name with args.
3404 set dummy ranlib; ac_word=$2
3405 echo "$as_me:3405: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 if test -n "$ac_ct_RANLIB"; then
3411 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3413 ac_save_IFS=$IFS; IFS=$ac_path_separator
3415 for ac_dir in $ac_dummy; do
3417 test -z "$ac_dir" && ac_dir=.
3418 $as_executable_p "$ac_dir/$ac_word" || continue
3419 ac_cv_prog_ac_ct_RANLIB="ranlib"
3420 echo "$as_me:3420: found $ac_dir/$ac_word" >&5
3424 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3427 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3428 if test -n "$ac_ct_RANLIB"; then
3429 echo "$as_me:3429: result: $ac_ct_RANLIB" >&5
3430 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3432 echo "$as_me:3432: result: no" >&5
3433 echo "${ECHO_T}no" >&6
3436 RANLIB=$ac_ct_RANLIB
3438 RANLIB="$ac_cv_prog_RANLIB"
3441 if test -n "$ac_tool_prefix"; then
3442 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3443 set dummy ${ac_tool_prefix}strip; ac_word=$2
3444 echo "$as_me:3444: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_STRIP+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 if test -n "$STRIP"; then
3450 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3452 ac_save_IFS=$IFS; IFS=$ac_path_separator
3454 for ac_dir in $ac_dummy; do
3456 test -z "$ac_dir" && ac_dir=.
3457 $as_executable_p "$ac_dir/$ac_word" || continue
3458 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3459 echo "$as_me:3459: found $ac_dir/$ac_word" >&5
3465 STRIP=$ac_cv_prog_STRIP
3466 if test -n "$STRIP"; then
3467 echo "$as_me:3467: result: $STRIP" >&5
3468 echo "${ECHO_T}$STRIP" >&6
3470 echo "$as_me:3470: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3475 if test -z "$ac_cv_prog_STRIP"; then
3477 # Extract the first word of "strip", so it can be a program name with args.
3478 set dummy strip; ac_word=$2
3479 echo "$as_me:3479: checking for $ac_word" >&5
3480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3481 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 if test -n "$ac_ct_STRIP"; then
3485 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3487 ac_save_IFS=$IFS; IFS=$ac_path_separator
3489 for ac_dir in $ac_dummy; do
3491 test -z "$ac_dir" && ac_dir=.
3492 $as_executable_p "$ac_dir/$ac_word" || continue
3493 ac_cv_prog_ac_ct_STRIP="strip"
3494 echo "$as_me:3494: found $ac_dir/$ac_word" >&5
3498 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3502 if test -n "$ac_ct_STRIP"; then
3503 echo "$as_me:3503: result: $ac_ct_STRIP" >&5
3504 echo "${ECHO_T}$ac_ct_STRIP" >&6
3506 echo "$as_me:3506: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3512 STRIP="$ac_cv_prog_STRIP"
3518 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3519 if test "${enable_libtool_lock+set}" = set; then
3520 enableval="$enable_libtool_lock"
3523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3525 # Some flags need to be propagated to the compiler or linker for good
3529 # Find out which ABI we are using.
3530 echo '#line 3530 "configure"' > conftest.$ac_ext
3531 if { (eval echo "$as_me:3531: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>&5
3534 echo "$as_me:3534: \$? = $ac_status" >&5
3535 (exit $ac_status); }; then
3536 case `/usr/bin/file conftest.$ac_objext` in
3552 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3553 SAVE_CFLAGS="$CFLAGS"
3554 CFLAGS="$CFLAGS -belf"
3555 echo "$as_me:3555: checking whether the C compiler needs -belf" >&5
3556 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3557 if test "${lt_cv_cc_needs_belf+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567 cat >conftest.$ac_ext <<_ACEOF
3568 #line 3568 "configure"
3569 #include "confdefs.h"
3579 rm -f conftest.$ac_objext conftest$ac_exeext
3580 if { (eval echo "$as_me:3580: \"$ac_link\"") >&5
3581 (eval $ac_link) 2>&5
3583 echo "$as_me:3583: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -s conftest$ac_exeext'
3586 { (eval echo "$as_me:3586: \"$ac_try\"") >&5
3589 echo "$as_me:3589: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 lt_cv_cc_needs_belf=yes
3593 echo "$as_me: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 lt_cv_cc_needs_belf=no
3597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 echo "$as_me:3605: result: $lt_cv_cc_needs_belf" >&5
3606 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3607 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3608 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3609 CFLAGS="$SAVE_CFLAGS"
3615 # Sed substitution that helps us do robust quoting. It backslashifies
3616 # metacharacters that are still active within double-quoted strings.
3617 Xsed='sed -e s/^X//'
3618 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3620 # Same as above, but do not quote variable references.
3621 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3623 # Sed substitution to delay expansion of an escaped shell variable in a
3624 # double_quote_subst'ed string.
3625 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3631 default_ofile=libtool
3632 can_build_shared=yes
3634 # All known linkers require a `.a' archive for static linking (except M$VC,
3635 # which needs '.lib').
3637 ltmain="$ac_aux_dir/ltmain.sh"
3638 ofile="$default_ofile"
3639 with_gnu_ld="$lt_cv_prog_gnu_ld"
3640 need_locks="$enable_libtool_lock"
3643 old_CFLAGS="$CFLAGS"
3645 # Set sane defaults for various variables
3646 test -z "$AR" && AR=ar
3647 test -z "$AR_FLAGS" && AR_FLAGS=cru
3648 test -z "$AS" && AS=as
3649 test -z "$CC" && CC=cc
3650 test -z "$DLLTOOL" && DLLTOOL=dlltool
3651 test -z "$LD" && LD=ld
3652 test -z "$LN_S" && LN_S="ln -s"
3653 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3654 test -z "$NM" && NM=nm
3655 test -z "$OBJDUMP" && OBJDUMP=objdump
3656 test -z "$RANLIB" && RANLIB=:
3657 test -z "$STRIP" && STRIP=:
3658 test -z "$ac_objext" && ac_objext=o
3660 if test x"$host" != x"$build"; then
3661 ac_tool_prefix=${host_alias}-
3666 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3669 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3674 # AIX sometimes has problems with the GCC collect2 program. For some
3675 # reason, if we set the COLLECT_NAMES environment variable, the problems
3676 # vanish in a puff of smoke.
3677 if test "X${COLLECT_NAMES+set}" != Xset; then
3679 export COLLECT_NAMES
3684 # Determine commands to create old-style static archives.
3685 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3686 old_postinstall_cmds='chmod 644 $oldlib'
3687 old_postuninstall_cmds=
3689 if test -n "$RANLIB"; then
3690 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3691 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3694 # Allow CC to be a program name with arguments.
3698 echo "$as_me:3698: checking for objdir" >&5
3699 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3700 rm -f .libs 2>/dev/null
3701 mkdir .libs 2>/dev/null
3702 if test -d .libs; then
3705 # MS-DOS does not allow filenames that begin with a dot.
3708 rmdir .libs 2>/dev/null
3709 echo "$as_me:3709: result: $objdir" >&5
3710 echo "${ECHO_T}$objdir" >&6
3712 # Check whether --with-pic or --without-pic was given.
3713 if test "${with_pic+set}" = set; then
3719 test -z "$pic_mode" && pic_mode=default
3721 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3722 # in isolation, and that seeing it set (from the cache) indicates that
3723 # the associated values are set (in the cache) correctly too.
3724 echo "$as_me:3724: checking for $compiler option to produce PIC" >&5
3725 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3726 if test "${lt_cv_prog_cc_pic+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 lt_cv_prog_cc_shlib=
3732 lt_cv_prog_cc_static=
3733 lt_cv_prog_cc_no_builtin=
3734 lt_cv_prog_cc_can_build_shared=$can_build_shared
3736 if test "$GCC" = yes; then
3737 lt_cv_prog_cc_wl='-Wl,'
3738 lt_cv_prog_cc_static='-static'
3742 # Below there is a dirty hack to force normal static linking with -ldl
3743 # The problem is because libdl dynamically linked with both libc and
3744 # libC (AIX C++ library), which obviously doesn't included in libraries
3745 # list by gcc. This cause undefined symbols with -static flags.
3746 # This hack allows C programs to be linked with "-static -ldl", but
3747 # we not sure about C++ programs.
3748 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3751 # FIXME: we need at least 68020 code to build shared libraries, but
3752 # adding the `-m68020' flag to GCC prevents building anything better,
3754 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3756 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3757 # PIC is the default for these OSes.
3759 darwin* | rhapsody*)
3760 # PIC is the default on this platform
3761 # Common symbols not allowed in MH_DYLIB files
3762 lt_cv_prog_cc_pic='-fno-common'
3764 cygwin* | mingw* | pw32* | os2*)
3765 # This hack is so that the source file can tell whether it is being
3766 # built for inclusion in a dll (and should export symbols for example).
3767 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3770 if test -d /usr/nec; then
3771 lt_cv_prog_cc_pic=-Kconform_pic
3775 lt_cv_prog_cc_pic='-fPIC'
3779 # PORTME Check for PIC flags for the system compiler.
3781 aix3* | aix4* | aix5*)
3782 # All AIX code is PIC.
3783 if test "$host_cpu" = ia64; then
3784 # AIX 5 now supports IA64 processor
3785 lt_cv_prog_cc_static='-Bstatic'
3786 lt_cv_prog_cc_wl='-Wl,'
3788 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3792 hpux9* | hpux10* | hpux11*)
3793 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3794 lt_cv_prog_cc_wl='-Wl,'
3795 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3796 lt_cv_prog_cc_pic='+Z'
3800 lt_cv_prog_cc_wl='-Wl,'
3801 lt_cv_prog_cc_static='-non_shared'
3802 # PIC (with -KPIC) is the default.
3805 cygwin* | mingw* | pw32* | os2*)
3806 # This hack is so that the source file can tell whether it is being
3807 # built for inclusion in a dll (and should export symbols for example).
3808 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3812 lt_cv_prog_cc_pic='-KPIC'
3813 lt_cv_prog_cc_static='-Bstatic'
3816 osf3* | osf4* | osf5*)
3817 # All OSF/1 code is PIC.
3818 lt_cv_prog_cc_wl='-Wl,'
3819 lt_cv_prog_cc_static='-non_shared'
3823 lt_cv_prog_cc_pic='-Kpic'
3824 lt_cv_prog_cc_static='-dn'
3825 lt_cv_prog_cc_shlib='-belf'
3829 lt_cv_prog_cc_pic='-KPIC'
3830 lt_cv_prog_cc_static='-Bstatic'
3831 lt_cv_prog_cc_wl='-Wl,'
3835 lt_cv_prog_cc_pic='-PIC'
3836 lt_cv_prog_cc_static='-Bstatic'
3837 lt_cv_prog_cc_wl='-Qoption ld '
3840 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3841 lt_cv_prog_cc_pic='-KPIC'
3842 lt_cv_prog_cc_static='-Bstatic'
3843 if test "x$host_vendor" = xsni; then
3844 lt_cv_prog_cc_wl='-LD'
3846 lt_cv_prog_cc_wl='-Wl,'
3851 lt_cv_prog_cc_pic='-pic'
3852 lt_cv_prog_cc_static='-Bstatic'
3856 if test -d /usr/nec ;then
3857 lt_cv_prog_cc_pic='-Kconform_pic'
3858 lt_cv_prog_cc_static='-Bstatic'
3863 lt_cv_prog_cc_can_build_shared=no
3870 if test -z "$lt_cv_prog_cc_pic"; then
3871 echo "$as_me:3871: result: none" >&5
3872 echo "${ECHO_T}none" >&6
3874 echo "$as_me:3874: result: $lt_cv_prog_cc_pic" >&5
3875 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3877 # Check to make sure the pic_flag actually works.
3878 echo "$as_me:3878: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3879 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3880 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 save_CFLAGS="$CFLAGS"
3884 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3885 cat >conftest.$ac_ext <<_ACEOF
3886 #line 3886 "configure"
3887 #include "confdefs.h"
3897 rm -f conftest.$ac_objext
3898 if { (eval echo "$as_me:3898: \"$ac_compile\"") >&5
3899 (eval $ac_compile) 2>&5
3901 echo "$as_me:3901: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:3904: \"$ac_try\"") >&5
3907 echo "$as_me:3907: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3910 hpux9* | hpux10* | hpux11*)
3911 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3912 # they create non-PIC objects. So, if there were any warnings, we
3913 # assume that PIC is not supported.
3914 if test -s conftest.err; then
3915 lt_cv_prog_cc_pic_works=no
3917 lt_cv_prog_cc_pic_works=yes
3921 lt_cv_prog_cc_pic_works=yes
3926 echo "$as_me: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 lt_cv_prog_cc_pic_works=no
3931 rm -f conftest.$ac_objext conftest.$ac_ext
3932 CFLAGS="$save_CFLAGS"
3936 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3938 lt_cv_prog_cc_can_build_shared=no
3940 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3943 echo "$as_me:3943: result: $lt_cv_prog_cc_pic_works" >&5
3944 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3947 # Check for any special shared library compilation flags.
3948 if test -n "$lt_cv_prog_cc_shlib"; then
3949 { echo "$as_me:3949: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3950 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3951 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
3953 { echo "$as_me:3953: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3954 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3955 lt_cv_prog_cc_can_build_shared=no
3959 echo "$as_me:3959: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3960 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3961 if test "${lt_cv_prog_cc_static_works+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 lt_cv_prog_cc_static_works=no
3965 save_LDFLAGS="$LDFLAGS"
3966 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3967 cat >conftest.$ac_ext <<_ACEOF
3968 #line 3968 "configure"
3969 #include "confdefs.h"
3979 rm -f conftest.$ac_objext conftest$ac_exeext
3980 if { (eval echo "$as_me:3980: \"$ac_link\"") >&5
3981 (eval $ac_link) 2>&5
3983 echo "$as_me:3983: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -s conftest$ac_exeext'
3986 { (eval echo "$as_me:3986: \"$ac_try\"") >&5
3989 echo "$as_me:3989: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 lt_cv_prog_cc_static_works=yes
3993 echo "$as_me: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3997 LDFLAGS="$save_LDFLAGS"
4001 # Belt *and* braces to stop my trousers falling down:
4002 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4003 echo "$as_me:4003: result: $lt_cv_prog_cc_static_works" >&5
4004 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4006 pic_flag="$lt_cv_prog_cc_pic"
4007 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4008 wl="$lt_cv_prog_cc_wl"
4009 link_static_flag="$lt_cv_prog_cc_static"
4010 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4011 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4013 # Check to see if options -o and -c are simultaneously supported by compiler
4014 echo "$as_me:4014: checking if $compiler supports -c -o file.$ac_objext" >&5
4015 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4016 if test "${lt_cv_compiler_c_o+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 $rm -r conftest 2>/dev/null
4023 echo "int some_variable = 0;" > conftest.$ac_ext
4025 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4026 # that will create temporary files in the current directory regardless of
4027 # the output directory. Thus, making CWD read-only will cause this test
4028 # to fail, enabling locking or at least warning the user not to do parallel
4031 save_CFLAGS="$CFLAGS"
4032 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4034 if { (eval echo configure:4034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4035 # The compiler can only warn and ignore the option if not recognized
4036 # So say no if there are warnings
4037 if test -s out/conftest.err; then
4038 lt_cv_compiler_c_o=no
4040 lt_cv_compiler_c_o=yes
4043 # Append any errors to the config.log.
4044 cat out/conftest.err 1>&5
4045 lt_cv_compiler_c_o=no
4047 CFLAGS="$save_CFLAGS"
4053 $rm -r conftest 2>/dev/null
4057 compiler_c_o=$lt_cv_compiler_c_o
4058 echo "$as_me:4058: result: $compiler_c_o" >&5
4059 echo "${ECHO_T}$compiler_c_o" >&6
4061 if test x"$compiler_c_o" = x"yes"; then
4062 # Check to see if we can write to a .lo
4063 echo "$as_me:4063: checking if $compiler supports -c -o file.lo" >&5
4064 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4065 if test "${lt_cv_compiler_o_lo+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 lt_cv_compiler_o_lo=no
4070 save_CFLAGS="$CFLAGS"
4071 CFLAGS="$CFLAGS -c -o conftest.lo"
4072 cat >conftest.$ac_ext <<_ACEOF
4073 #line 4073 "configure"
4074 #include "confdefs.h"
4079 int some_variable = 0;
4084 rm -f conftest.$ac_objext
4085 if { (eval echo "$as_me:4085: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>&5
4088 echo "$as_me:4088: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:4091: \"$ac_try\"") >&5
4094 echo "$as_me:4094: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 # The compiler can only warn and ignore the option if not recognized
4097 # So say no if there are warnings
4098 if test -s conftest.err; then
4099 lt_cv_compiler_o_lo=no
4101 lt_cv_compiler_o_lo=yes
4105 echo "$as_me: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4108 rm -f conftest.$ac_objext conftest.$ac_ext
4109 CFLAGS="$save_CFLAGS"
4113 compiler_o_lo=$lt_cv_compiler_o_lo
4114 echo "$as_me:4114: result: $compiler_c_lo" >&5
4115 echo "${ECHO_T}$compiler_c_lo" >&6
4120 # Check to see if we can do hard links to lock some files if needed
4121 hard_links="nottested"
4122 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4123 # do not overwrite the value of need_locks provided by the user
4124 echo "$as_me:4124: checking if we can lock with hard links" >&5
4125 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4130 ln conftest.a conftest.b 2>&5 || hard_links=no
4131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4132 echo "$as_me:4132: result: $hard_links" >&5
4133 echo "${ECHO_T}$hard_links" >&6
4134 if test "$hard_links" = no; then
4135 { echo "$as_me:4135: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4136 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4143 if test "$GCC" = yes; then
4144 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4145 echo "$as_me:4145: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4146 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4147 echo "int some_variable = 0;" > conftest.$ac_ext
4148 save_CFLAGS="$CFLAGS"
4149 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4150 compiler_rtti_exceptions=no
4151 cat >conftest.$ac_ext <<_ACEOF
4152 #line 4152 "configure"
4153 #include "confdefs.h"
4158 int some_variable = 0;
4163 rm -f conftest.$ac_objext
4164 if { (eval echo "$as_me:4164: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>&5
4167 echo "$as_me:4167: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:4170: \"$ac_try\"") >&5
4173 echo "$as_me:4173: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 # The compiler can only warn and ignore the option if not recognized
4176 # So say no if there are warnings
4177 if test -s conftest.err; then
4178 compiler_rtti_exceptions=no
4180 compiler_rtti_exceptions=yes
4184 echo "$as_me: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4187 rm -f conftest.$ac_objext conftest.$ac_ext
4188 CFLAGS="$save_CFLAGS"
4189 echo "$as_me:4189: result: $compiler_rtti_exceptions" >&5
4190 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4192 if test "$compiler_rtti_exceptions" = "yes"; then
4193 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4195 no_builtin_flag=' -fno-builtin'
4199 # See if the linker supports building shared libraries.
4200 echo "$as_me:4200: checking whether the linker ($LD) supports shared libraries" >&5
4201 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4203 allow_undefined_flag=
4205 need_lib_prefix=unknown
4206 need_version=unknown
4207 # when you set need_version to no, make sure it does not cause -set_version
4208 # flags to be left without arguments
4210 archive_expsym_cmds=
4211 old_archive_from_new_cmds=
4212 old_archive_from_expsyms_cmds=
4213 export_dynamic_flag_spec=
4214 whole_archive_flag_spec=
4215 thread_safe_flag_spec=
4216 hardcode_into_libs=no
4217 hardcode_libdir_flag_spec=
4218 hardcode_libdir_separator=
4221 hardcode_shlibpath_var=unsupported
4223 link_all_deplibs=unknown
4224 always_export_symbols=no
4225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4226 # include_expsyms should be a list of space-separated symbols to be *always*
4227 # included in the symbol list
4229 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4230 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4231 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4232 # as well as any symbol that contains `d'.
4233 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4234 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4235 # platforms (ab)use it in PIC code, but their linkers get confused if
4236 # the symbol is explicitly referenced. Since portable code cannot
4237 # rely on this symbol name, it's probably fine to never include it in
4238 # preloaded symbol tables.
4239 extract_expsyms_cmds=
4242 cygwin* | mingw* | pw32* )
4243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4244 # When not using gcc, we currently assume that we are using
4245 # Microsoft Visual C++.
4246 if test "$GCC" != yes; then
4254 if test "$with_gnu_ld" = yes; then
4255 # If archive_cmds runs LD, not CC, wlarc should be empty
4258 # See if GNU ld supports shared libraries.
4260 aix3* | aix4* | aix5*)
4261 # On AIX, the GNU linker is very broken
4262 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4266 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4267 *** to be unable to reliably create shared libraries on AIX.
4268 *** Therefore, libtool is disabling shared libraries support. If you
4269 *** really care for shared libraries, you may want to modify your PATH
4270 *** so that a non-GNU linker is found, and then restart.
4276 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)'
4277 hardcode_libdir_flag_spec='-L$libdir'
4278 hardcode_minus_L=yes
4280 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4281 # that the semantics of dynamic libraries on AmigaOS, at least up
4282 # to version 4, is to share data among multiple programs linked
4283 # with the same dynamic library. Since this doesn't match the
4284 # behavior of shared libraries on other platforms, we can use
4290 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4291 allow_undefined_flag=unsupported
4292 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4293 # support --undefined. This deserves some investigation. FIXME
4294 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4300 cygwin* | mingw* | pw32*)
4301 # hardcode_libdir_flag_spec is actually meaningless, as there is
4302 # no search path for DLLs.
4303 hardcode_libdir_flag_spec='-L$libdir'
4304 allow_undefined_flag=unsupported
4305 always_export_symbols=yes
4307 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4308 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4309 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4310 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4311 else $CC -o impgen impgen.c ; fi)~
4312 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4314 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4316 # cygwin and mingw dlls have different entry points and sets of symbols
4318 # FIXME: what about values for MSVC?
4319 dll_entry=__cygwin_dll_entry@12
4320 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4324 dll_entry=_DllMainCRTStartup@12
4325 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4329 # mingw and cygwin differ, and it's simplest to just exclude the union
4330 # of the two symbol sets.
4331 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4333 # recent cygwin and mingw systems supply a stub DllMain which the user
4334 # can override, but on older systems we have to supply one (in ltdll.c)
4335 if test "x$lt_cv_need_dllmain" = "xyes"; then
4336 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4337 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~
4338 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4344 # Extract the symbol export list from an `--export-all' def file,
4345 # then regenerate the def file from the symbol export list, so that
4346 # the compiled dll only exports the symbol export list.
4347 # Be careful not to strip the DATA tag left be newer dlltools.
4348 export_symbols_cmds="$ltdll_cmds"'
4349 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4350 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4352 # If the export-symbols file already is a .def file (1st line
4353 # is EXPORTS), use it as is.
4354 # If DATA tags from a recent dlltool are present, honour them!
4355 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4356 cp $export_symbols $output_objdir/$soname-def;
4358 echo EXPORTS > $output_objdir/$soname-def;
4360 cat $export_symbols | while read symbol; do
4363 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4364 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4366 _lt_hint=`expr 1 + \$_lt_hint`;
4370 $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~
4371 $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~
4372 $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~
4373 $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~
4374 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4379 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4382 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4383 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4388 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4392 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4393 *** create shared libraries on Solaris systems. Therefore, libtool
4394 *** is disabling shared libraries support. We urge you to upgrade GNU
4395 *** binutils to release 2.9.1 or newer. Another option is to modify
4396 *** your PATH or compiler configuration so that the native linker is
4397 *** used, and then restart.
4400 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4409 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4412 hardcode_shlibpath_var=no
4416 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4425 if test "$ld_shlibs" = yes; then
4426 runpath_var=LD_RUN_PATH
4427 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4428 export_dynamic_flag_spec='${wl}--export-dynamic'
4430 cygwin* | mingw* | pw32*)
4431 # dlltool doesn't understand --whole-archive et. al.
4432 whole_archive_flag_spec=
4435 # ancient GNU ld didn't support --whole-archive et. al.
4436 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4437 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4439 whole_archive_flag_spec=
4445 # PORTME fill in a description of your system's linker (not GNU ld)
4448 allow_undefined_flag=unsupported
4449 always_export_symbols=yes
4450 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'
4451 # Note: this linker hardcodes the directories in LIBPATH if there
4452 # are no directories specified by -L.
4453 hardcode_minus_L=yes
4454 if test "$GCC" = yes && test -z "$link_static_flag"; then
4455 # Neither direct hardcoding nor static linking is supported with a
4457 hardcode_direct=unsupported
4462 # When large executables or shared objects are built, AIX ld can
4463 # have problems creating the table of contents. If linking a library
4464 # or program results in "error TOC overflow" add -mminimal-toc to
4465 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4466 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4469 hardcode_libdir_separator=':'
4470 if test "$GCC" = yes; then
4471 collect2name=`${CC} -print-prog-name=collect2`
4472 if test -f "$collect2name" && \
4473 strings "$collect2name" | grep resolve_lib_name >/dev/null
4475 # We have reworked collect2
4478 # We have old collect2
4479 hardcode_direct=unsupported
4480 # It fails to find uninstalled libraries when the uninstalled
4481 # path is not listed in the libpath. Setting hardcode_minus_L
4482 # to unsupported forces relinking
4483 hardcode_minus_L=yes
4484 hardcode_libdir_flag_spec='-L$libdir'
4485 hardcode_libdir_separator=
4487 shared_flag='-shared'
4489 if test "$host_cpu" = ia64; then
4492 shared_flag='${wl}-bM:SRE'
4497 if test "$host_cpu" = ia64; then
4498 # On IA64, the linker does run time linking by default, so we don't
4499 # have to do anything special.
4500 aix_use_runtimelinking=no
4501 exp_sym_flag='-Bexport'
4504 # Test if we are trying to use run time linking, or normal AIX style linking.
4505 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
4506 aix_use_runtimelinking=no
4507 for ld_flag in $LDFLAGS; do
4508 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
4509 aix_use_runtimelinking=yes
4513 exp_sym_flag='-bexport'
4514 no_entry_flag='-bnoentry'
4516 # It seems that -bexpall can do strange things, so it is better to
4517 # generate a list of symbols to export.
4518 always_export_symbols=yes
4519 if test "$aix_use_runtimelinking" = yes; then
4520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4521 allow_undefined_flag=' -Wl,-G'
4522 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"
4524 if test "$host_cpu" = ia64; then
4525 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4526 allow_undefined_flag="-znodefs"
4527 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"
4529 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4530 # Warning - without using the other run time loading flags, -berok will
4531 # link without error, but may produce a broken library.
4532 allow_undefined_flag='${wl}-berok"
4533 # This is a bit strange, but is similar to how AIX traditionally builds
4534 # it's shared libraries.
4535 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'
4541 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)'
4542 hardcode_libdir_flag_spec='-L$libdir'
4543 hardcode_minus_L=yes
4544 # see comment about different semantics on the GNU ld section
4548 cygwin* | mingw* | pw32*)
4549 # When not using gcc, we currently assume that we are using
4550 # Microsoft Visual C++.
4551 # hardcode_libdir_flag_spec is actually meaningless, as there is
4552 # no search path for DLLs.
4553 hardcode_libdir_flag_spec=' '
4554 allow_undefined_flag=unsupported
4555 # Tell ltmain to make .lib files, not .a files.
4557 # FIXME: Setting linknames here is a bad hack.
4558 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4559 # The linker will automatically build a .lib file if we build a DLL.
4560 old_archive_from_new_cmds='true'
4561 # FIXME: Should let the user specify the lib program.
4562 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4563 fix_srcfile_path='`cygpath -w "$srcfile"`'
4566 darwin* | rhapsody*)
4567 allow_undefined_flag='-undefined suppress'
4568 # FIXME: Relying on posixy $() will cause problems for
4569 # cross-compilation, but unfortunately the echo tests do not
4570 # yet detect zsh echo's removal of \ escapes.
4571 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)'
4572 # We need to add '_' to the symbols in $export_symbols first
4573 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4575 hardcode_shlibpath_var=no
4576 whole_archive_flag_spec='-all_load $convenience'
4583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4584 # support. Future versions do this automatically, but an explicit c++rt0.o
4585 # does not break anything, and helps significantly (at the cost of a little
4588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4589 hardcode_libdir_flag_spec='-R$libdir'
4591 hardcode_shlibpath_var=no
4594 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4598 hardcode_minus_L=yes
4599 hardcode_shlibpath_var=no
4602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4604 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4605 hardcode_libdir_flag_spec='-R$libdir'
4607 hardcode_shlibpath_var=no
4610 hpux9* | hpux10* | hpux11*)
4612 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' ;;
4613 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4616 hardcode_libdir_separator=:
4618 hardcode_minus_L=yes # Not in the search PATH, but as the default
4619 # location of the library.
4620 export_dynamic_flag_spec='${wl}-E'
4624 if test "$GCC" = yes; then
4625 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'
4627 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'
4629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4630 hardcode_libdir_separator=:
4631 link_all_deplibs=yes
4635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4638 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4640 hardcode_libdir_flag_spec='-R$libdir'
4642 hardcode_shlibpath_var=no
4646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
4648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4649 hardcode_libdir_separator=:
4650 hardcode_shlibpath_var=no
4654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4655 hardcode_libdir_flag_spec='-R$libdir'
4657 hardcode_shlibpath_var=no
4661 hardcode_libdir_flag_spec='-L$libdir'
4662 hardcode_minus_L=yes
4663 allow_undefined_flag=unsupported
4664 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'
4665 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4673 allow_undefined_flag=' -expect_unresolved \*'
4674 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'
4676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4677 hardcode_libdir_separator=:
4680 osf4* | osf5*) # as osf3* with the addition of -msym flag
4681 if test "$GCC" = yes; then
4682 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4683 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'
4684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4686 allow_undefined_flag=' -expect_unresolved \*'
4687 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'
4688 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4689 $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'
4691 #Both c and cxx compiler support -rpath directly
4692 hardcode_libdir_flag_spec='-rpath $libdir'
4694 hardcode_libdir_separator=:
4698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4699 hardcode_shlibpath_var=no
4700 runpath_var=LD_RUN_PATH
4701 hardcode_runpath_var=yes
4705 no_undefined_flag=' -z defs'
4706 # $CC -shared without GNU ld will not create a library from C++
4707 # object files and a static libstdc++, better avoid it by now
4708 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4709 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4710 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4711 hardcode_libdir_flag_spec='-R$libdir'
4712 hardcode_shlibpath_var=no
4714 solaris2.[0-5] | solaris2.[0-5].*) ;;
4715 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4716 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4718 link_all_deplibs=yes
4722 if test "x$host_vendor" = xsequent; then
4723 # Use $CC to link under sequent, because it throws in some extra .o
4724 # files that make .init and .fini sections work.
4725 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4727 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4729 hardcode_libdir_flag_spec='-L$libdir'
4731 hardcode_minus_L=yes
4732 hardcode_shlibpath_var=no
4736 if test "x$host_vendor" = xsno; then
4737 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
4738 hardcode_direct=yes # is this really true???
4740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4741 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4743 runpath_var='LD_RUN_PATH'
4744 hardcode_shlibpath_var=no
4748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4749 hardcode_shlibpath_var=no
4750 export_dynamic_flag_spec='-Bexport'
4754 no_undefined_flag=' -z text'
4755 # $CC -shared without GNU ld will not create a library from C++
4756 # object files and a static libstdc++, better avoid it by now
4757 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4758 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4759 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4760 hardcode_libdir_flag_spec=
4761 hardcode_shlibpath_var=no
4762 runpath_var='LD_RUN_PATH'
4766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4767 hardcode_libdir_flag_spec='-L$libdir'
4768 hardcode_shlibpath_var=no
4772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4773 hardcode_libdir_flag_spec='-L$libdir'
4774 hardcode_shlibpath_var=no
4778 if test -d /usr/nec; then
4779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4780 hardcode_shlibpath_var=no
4781 runpath_var=LD_RUN_PATH
4782 hardcode_runpath_var=yes
4788 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4791 hardcode_shlibpath_var=no
4792 hardcode_runpath_var=yes
4793 runpath_var=LD_RUN_PATH
4796 sysv5uw7* | unixware7*)
4797 no_undefined_flag='${wl}-z ${wl}text'
4798 if test "$GCC" = yes; then
4799 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4801 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4803 runpath_var='LD_RUN_PATH'
4804 hardcode_shlibpath_var=no
4812 echo "$as_me:4812: result: $ld_shlibs" >&5
4813 echo "${ECHO_T}$ld_shlibs" >&6
4814 test "$ld_shlibs" = no && can_build_shared=no
4816 # Check hardcoding attributes.
4817 echo "$as_me:4817: checking how to hardcode library paths into programs" >&5
4818 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4820 if test -n "$hardcode_libdir_flag_spec" || \
4821 test -n "$runpath_var"; then
4823 # We can hardcode non-existant directories.
4824 if test "$hardcode_direct" != no &&
4825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4826 # have to relink, otherwise we might link with an installed library
4827 # when we should be linking with a yet-to-be-installed one
4828 ## test "$hardcode_shlibpath_var" != no &&
4829 test "$hardcode_minus_L" != no; then
4830 # Linking always hardcodes the temporary library directory.
4831 hardcode_action=relink
4833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4834 hardcode_action=immediate
4837 # We cannot hardcode anything, or else we can only hardcode existing
4839 hardcode_action=unsupported
4841 echo "$as_me:4841: result: $hardcode_action" >&5
4842 echo "${ECHO_T}$hardcode_action" >&6
4846 echo "$as_me:4846: checking whether stripping libraries is possible" >&5
4847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4848 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4849 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4850 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4851 echo "$as_me:4851: result: yes" >&5
4852 echo "${ECHO_T}yes" >&6
4854 echo "$as_me:4854: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4858 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4859 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4861 # PORTME Fill in your ld.so characteristics
4862 echo "$as_me:4862: checking dynamic linker characteristics" >&5
4863 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4865 libname_spec='lib$name'
4872 shlibpath_overrides_runpath=unknown
4874 dynamic_linker="$host_os ld.so"
4875 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4876 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4881 library_names_spec='${libname}${release}.so$versuffix $libname.a'
4882 shlibpath_var=LIBPATH
4884 # AIX has no versioning support, so we append a major version to the name.
4885 soname_spec='${libname}${release}.so$major'
4890 if test "$host_cpu" = ia64; then
4891 # AIX 5 supports IA64
4892 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4893 shlibpath_var=LD_LIBRARY_PATH
4895 # With GCC up to 2.95.x, collect2 would create an import file
4896 # for dependence libraries. The import file would start with
4897 # the line `#! .'. This would cause the generated library to
4898 # depend on `.', always an invalid library. This was fixed in
4899 # development snapshots of GCC prior to 3.0.
4901 aix4 | aix4.[01] | aix4.[01].*)
4902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4904 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4912 # soname into executable. Probably we can add versioning support to
4913 # collect2, so additional links can be useful in future.
4914 if test "$aix_use_runtimelinking" = yes; then
4915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
4916 # lib<name>.a to let people know that these are not typical AIX shared libraries.
4917 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4919 # We preserve .a as extension for shared libraries through AIX4.2
4920 # and later when we are not doing run time linking.
4921 library_names_spec='${libname}${release}.a $libname.a'
4922 soname_spec='${libname}${release}.so$major'
4924 shlibpath_var=LIBPATH
4925 deplibs_check_method=pass_all
4930 library_names_spec='$libname.ixlibrary $libname.a'
4931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4932 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'
4936 library_names_spec='${libname}.so'
4937 dynamic_linker="$host_os ld.so"
4938 shlibpath_var=LIBRARY_PATH
4944 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4945 soname_spec='${libname}${release}.so$major'
4946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4947 shlibpath_var=LD_LIBRARY_PATH
4948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4950 export_dynamic_flag_spec=-rdynamic
4951 # the default ld.so.conf also contains /usr/contrib/lib and
4952 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4953 # libtool to hard-code these into programs
4956 cygwin* | mingw* | pw32*)
4957 version_type=windows
4960 case $GCC,$host_os in
4962 library_names_spec='$libname.dll.a'
4963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4964 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4965 dldir=$destdir/`dirname \$dlpath`~
4966 test -d \$dldir || mkdir -p \$dldir~
4967 $install_prog .libs/$dlname \$dldir/$dlname'
4968 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4969 dlpath=$dir/\$dldll~
4973 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4974 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4977 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4980 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4983 dynamic_linker='Win32 ld.exe'
4984 # FIXME: first we should search . and the directory the executable is in
4988 darwin* | rhapsody*)
4989 dynamic_linker="$host_os dyld"
4993 # FIXME: Relying on posixy $() will cause problems for
4994 # cross-compilation, but unfortunately the echo tests do not
4995 # yet detect zsh echo's removal of \ escapes.
4996 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)'
4997 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4998 shlibpath_overrides_runpath=yes
4999 shlibpath_var=DYLD_LIBRARY_PATH
5007 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5008 version_type=freebsd-$objformat
5009 case $version_type in
5011 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5016 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5020 shlibpath_var=LD_LIBRARY_PATH
5023 shlibpath_overrides_runpath=yes
5026 shlibpath_overrides_runpath=no
5027 hardcode_into_libs=yes
5036 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5037 soname_spec='${libname}${release}.so$major'
5038 shlibpath_var=LD_LIBRARY_PATH
5039 hardcode_into_libs=yes
5042 hpux9* | hpux10* | hpux11*)
5043 # Give a soname corresponding to the major version so that dld.sl refuses to
5044 # link against other versions.
5045 dynamic_linker="$host_os dld.sl"
5049 shlibpath_var=SHLIB_PATH
5050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5051 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5052 soname_spec='${libname}${release}.sl$major'
5053 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5054 postinstall_cmds='chmod 555 $lib'
5061 soname_spec='${libname}${release}.so$major'
5062 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5068 case $LD in # libtool.m4 will add one of these switches to LD
5069 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5070 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5071 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5072 *) libsuff= shlibsuff= libmagic=never-match;;
5076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5077 shlibpath_overrides_runpath=no
5078 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5079 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5082 # No shared lib support for Linux oldld, aout, or coff.
5083 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5087 # This must be Linux ELF.
5092 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5093 soname_spec='${libname}${release}.so$major'
5094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5095 shlibpath_var=LD_LIBRARY_PATH
5096 shlibpath_overrides_runpath=no
5097 # This implies no fast_install, which is unacceptable.
5098 # Some rework will be needed to allow for fast_install
5099 # before this can be enabled.
5100 hardcode_into_libs=yes
5102 # We used to test for /lib/ld.so.1 and disable shared libraries on
5103 # powerpc, because MkLinux only supported shared libraries with the
5104 # GNU dynamic linker. Since this was broken with cross compilers,
5105 # most powerpc-linux boxes support dynamic linking these days and
5106 # people can always --disable-shared, the test was removed, and we
5107 # assume the GNU/Linux dynamic linker is in use.
5108 dynamic_linker='GNU/Linux ld.so'
5115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5116 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5118 dynamic_linker='NetBSD (a.out) ld.so'
5120 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5121 soname_spec='${libname}${release}.so$major'
5122 dynamic_linker='NetBSD ld.elf_so'
5124 shlibpath_var=LD_LIBRARY_PATH
5125 shlibpath_overrides_runpath=yes
5126 hardcode_into_libs=yes
5131 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5132 shlibpath_var=LD_LIBRARY_PATH
5133 shlibpath_overrides_runpath=yes
5138 if test "$with_gnu_ld" = yes; then
5142 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5144 shlibpath_var=LD_LIBRARY_PATH
5148 libname_spec='$name'
5150 library_names_spec='$libname.dll $libname.a'
5151 dynamic_linker='OS/2 ld.exe'
5152 shlibpath_var=LIBPATH
5155 osf3* | osf4* | osf5*)
5158 soname_spec='${libname}${release}.so'
5159 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5160 shlibpath_var=LD_LIBRARY_PATH
5161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5167 soname_spec='${libname}${release}.so$major'
5168 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5169 shlibpath_var=LD_LIBRARY_PATH
5176 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5177 soname_spec='${libname}${release}.so$major'
5178 shlibpath_var=LD_LIBRARY_PATH
5179 shlibpath_overrides_runpath=yes
5180 hardcode_into_libs=yes
5181 # ldd complains unless libraries are executable
5182 postinstall_cmds='chmod +x $lib'
5187 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5188 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5189 shlibpath_var=LD_LIBRARY_PATH
5190 shlibpath_overrides_runpath=yes
5191 if test "$with_gnu_ld" = yes; then
5197 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5199 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5200 soname_spec='${libname}${release}.so$major'
5201 shlibpath_var=LD_LIBRARY_PATH
5202 case $host_vendor in
5204 shlibpath_overrides_runpath=no
5209 shlibpath_overrides_runpath=no
5210 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5217 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5218 soname_spec='${libname}${release}.so$major'
5219 shlibpath_var=LD_LIBRARY_PATH
5226 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5227 soname_spec='${libname}${release}.so$major'
5228 shlibpath_var=LD_LIBRARY_PATH
5232 if test -d /usr/nec ;then
5234 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5235 soname_spec='$libname.so.$major'
5236 shlibpath_var=LD_LIBRARY_PATH
5244 echo "$as_me:5244: result: $dynamic_linker" >&5
5245 echo "${ECHO_T}$dynamic_linker" >&6
5246 test "$dynamic_linker" = no && can_build_shared=no
5248 # Report the final consequences.
5249 echo "$as_me:5249: checking if libtool supports shared libraries" >&5
5250 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5251 echo "$as_me:5251: result: $can_build_shared" >&5
5252 echo "${ECHO_T}$can_build_shared" >&6
5254 if test "$hardcode_action" = relink; then
5255 # Fast installation is not supported
5256 enable_fast_install=no
5257 elif test "$shlibpath_overrides_runpath" = yes ||
5258 test "$enable_shared" = no; then
5259 # Fast installation is not necessary
5260 enable_fast_install=needless
5263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5264 if test "$GCC" = yes; then
5265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5268 if test "x$enable_dlopen" != xyes; then
5269 enable_dlopen=unknown
5270 enable_dlopen_self=unknown
5271 enable_dlopen_self_static=unknown
5278 lt_cv_dlopen="load_add_on"
5280 lt_cv_dlopen_self=yes
5283 cygwin* | mingw* | pw32*)
5284 lt_cv_dlopen="LoadLibrary"
5289 echo "$as_me:5289: checking for dlopen in -ldl" >&5
5290 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 ac_check_lib_save_LIBS=$LIBS
5296 cat >conftest.$ac_ext <<_ACEOF
5297 #line 5297 "configure"
5298 #include "confdefs.h"
5300 /* Override any gcc2 internal prototype to avoid an error. */
5304 /* We use char because int might match the return type of a gcc2
5305 builtin and then its argument prototype would still apply. */
5315 rm -f conftest.$ac_objext conftest$ac_exeext
5316 if { (eval echo "$as_me:5316: \"$ac_link\"") >&5
5317 (eval $ac_link) 2>&5
5319 echo "$as_me:5319: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try='test -s conftest$ac_exeext'
5322 { (eval echo "$as_me:5322: \"$ac_try\"") >&5
5325 echo "$as_me:5325: \$? = $ac_status" >&5
5326 (exit $ac_status); }; }; then
5327 ac_cv_lib_dl_dlopen=yes
5329 echo "$as_me: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5331 ac_cv_lib_dl_dlopen=no
5333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5334 LIBS=$ac_check_lib_save_LIBS
5336 echo "$as_me:5336: result: $ac_cv_lib_dl_dlopen" >&5
5337 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5338 if test $ac_cv_lib_dl_dlopen = yes; then
5339 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5341 echo "$as_me:5341: checking for dlopen" >&5
5342 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5343 if test "${ac_cv_func_dlopen+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 cat >conftest.$ac_ext <<_ACEOF
5347 #line 5347 "configure"
5348 #include "confdefs.h"
5349 /* System header to define __stub macros and hopefully few prototypes,
5350 which can conflict with char dlopen (); below. */
5352 /* Override any gcc2 internal prototype to avoid an error. */
5356 /* We use char because int might match the return type of a gcc2
5357 builtin and then its argument prototype would still apply. */
5364 /* The GNU C library defines this for functions which it implements
5365 to always fail with ENOSYS. Some functions are actually named
5366 something starting with __ and the normal name is an alias. */
5367 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (eval echo "$as_me:5378: \"$ac_link\"") >&5
5379 (eval $ac_link) 2>&5
5381 echo "$as_me:5381: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -s conftest$ac_exeext'
5384 { (eval echo "$as_me:5384: \"$ac_try\"") >&5
5387 echo "$as_me:5387: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_func_dlopen=yes
5391 echo "$as_me: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5393 ac_cv_func_dlopen=no
5395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5397 echo "$as_me:5397: result: $ac_cv_func_dlopen" >&5
5398 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5399 if test $ac_cv_func_dlopen = yes; then
5400 lt_cv_dlopen="dlopen"
5402 echo "$as_me:5402: checking for shl_load" >&5
5403 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5404 if test "${ac_cv_func_shl_load+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line 5408 "configure"
5409 #include "confdefs.h"
5410 /* System header to define __stub macros and hopefully few prototypes,
5411 which can conflict with char shl_load (); below. */
5413 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5425 /* The GNU C library defines this for functions which it implements
5426 to always fail with ENOSYS. Some functions are actually named
5427 something starting with __ and the normal name is an alias. */
5428 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5438 rm -f conftest.$ac_objext conftest$ac_exeext
5439 if { (eval echo "$as_me:5439: \"$ac_link\"") >&5
5440 (eval $ac_link) 2>&5
5442 echo "$as_me:5442: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -s conftest$ac_exeext'
5445 { (eval echo "$as_me:5445: \"$ac_try\"") >&5
5448 echo "$as_me:5448: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_cv_func_shl_load=yes
5452 echo "$as_me: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 ac_cv_func_shl_load=no
5456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5458 echo "$as_me:5458: result: $ac_cv_func_shl_load" >&5
5459 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5460 if test $ac_cv_func_shl_load = yes; then
5461 lt_cv_dlopen="shl_load"
5463 echo "$as_me:5463: checking for dlopen in -lsvld" >&5
5464 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5465 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 ac_check_lib_save_LIBS=$LIBS
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line 5471 "configure"
5472 #include "confdefs.h"
5474 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:5490: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5493 echo "$as_me:5493: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -s conftest$ac_exeext'
5496 { (eval echo "$as_me:5496: \"$ac_try\"") >&5
5499 echo "$as_me:5499: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_lib_svld_dlopen=yes
5503 echo "$as_me: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5505 ac_cv_lib_svld_dlopen=no
5507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5508 LIBS=$ac_check_lib_save_LIBS
5510 echo "$as_me:5510: result: $ac_cv_lib_svld_dlopen" >&5
5511 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5512 if test $ac_cv_lib_svld_dlopen = yes; then
5513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5515 echo "$as_me:5515: checking for shl_load in -ldld" >&5
5516 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5517 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 ac_check_lib_save_LIBS=$LIBS
5522 cat >conftest.$ac_ext <<_ACEOF
5523 #line 5523 "configure"
5524 #include "confdefs.h"
5526 /* Override any gcc2 internal prototype to avoid an error. */
5530 /* We use char because int might match the return type of a gcc2
5531 builtin and then its argument prototype would still apply. */
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (eval echo "$as_me:5542: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>&5
5545 echo "$as_me:5545: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try='test -s conftest$ac_exeext'
5548 { (eval echo "$as_me:5548: \"$ac_try\"") >&5
5551 echo "$as_me:5551: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_cv_lib_dld_shl_load=yes
5555 echo "$as_me: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 ac_cv_lib_dld_shl_load=no
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5562 echo "$as_me:5562: result: $ac_cv_lib_dld_shl_load" >&5
5563 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5564 if test $ac_cv_lib_dld_shl_load = yes; then
5565 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5579 if test "x$lt_cv_dlopen" != xno; then
5585 case $lt_cv_dlopen in
5587 save_CPPFLAGS="$CPPFLAGS"
5588 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5590 save_LDFLAGS="$LDFLAGS"
5591 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5594 LIBS="$lt_cv_dlopen_libs $LIBS"
5596 echo "$as_me:5596: checking whether a program can dlopen itself" >&5
5597 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5598 if test "${lt_cv_dlopen_self+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 if test "$cross_compiling" = yes; then :
5602 lt_cv_dlopen_self=cross
5604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5605 lt_status=$lt_dlunknown
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5607 "configure"
5608 #include "confdefs.h"
5617 # define LT_DLGLOBAL RTLD_GLOBAL
5620 # define LT_DLGLOBAL DL_GLOBAL
5622 # define LT_DLGLOBAL 0
5626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5627 find out it does not work in some platform. */
5628 #ifndef LT_DLLAZY_OR_NOW
5630 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5633 # define LT_DLLAZY_OR_NOW DL_LAZY
5636 # define LT_DLLAZY_OR_NOW RTLD_NOW
5639 # define LT_DLLAZY_OR_NOW DL_NOW
5641 # define LT_DLLAZY_OR_NOW 0
5649 extern "C" void exit (int);
5652 void fnord() { int i=42;}
5655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5656 int status = $lt_dlunknown;
5660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5661 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5662 /* dlclose (self); */
5668 if { (eval echo "$as_me:5668: \"$ac_link\"") >&5
5669 (eval $ac_link) 2>&5
5671 echo "$as_me:5671: \$? = $ac_status" >&5
5672 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5673 (./conftest; exit; ) 2>/dev/null
5676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5678 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5681 # compilation failed
5682 lt_cv_dlopen_self=no
5688 echo "$as_me:5688: result: $lt_cv_dlopen_self" >&5
5689 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5691 if test "x$lt_cv_dlopen_self" = xyes; then
5692 LDFLAGS="$LDFLAGS $link_static_flag"
5693 echo "$as_me:5693: checking whether a statically linked program can dlopen itself" >&5
5694 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5695 if test "${lt_cv_dlopen_self_static+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 if test "$cross_compiling" = yes; then :
5699 lt_cv_dlopen_self_static=cross
5701 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5702 lt_status=$lt_dlunknown
5703 cat > conftest.$ac_ext <<EOF
5704 #line 5704 "configure"
5705 #include "confdefs.h"
5714 # define LT_DLGLOBAL RTLD_GLOBAL
5717 # define LT_DLGLOBAL DL_GLOBAL
5719 # define LT_DLGLOBAL 0
5723 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5724 find out it does not work in some platform. */
5725 #ifndef LT_DLLAZY_OR_NOW
5727 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5730 # define LT_DLLAZY_OR_NOW DL_LAZY
5733 # define LT_DLLAZY_OR_NOW RTLD_NOW
5736 # define LT_DLLAZY_OR_NOW DL_NOW
5738 # define LT_DLLAZY_OR_NOW 0
5746 extern "C" void exit (int);
5749 void fnord() { int i=42;}
5752 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5753 int status = $lt_dlunknown;
5757 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5758 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5759 /* dlclose (self); */
5765 if { (eval echo "$as_me:5765: \"$ac_link\"") >&5
5766 (eval $ac_link) 2>&5
5768 echo "$as_me:5768: \$? = $ac_status" >&5
5769 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5770 (./conftest; exit; ) 2>/dev/null
5773 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5774 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5775 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5778 # compilation failed
5779 lt_cv_dlopen_self_static=no
5785 echo "$as_me:5785: result: $lt_cv_dlopen_self_static" >&5
5786 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5789 CPPFLAGS="$save_CPPFLAGS"
5790 LDFLAGS="$save_LDFLAGS"
5795 case $lt_cv_dlopen_self in
5796 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5797 *) enable_dlopen_self=unknown ;;
5800 case $lt_cv_dlopen_self_static in
5801 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5802 *) enable_dlopen_self_static=unknown ;;
5806 if test "$enable_shared" = yes && test "$GCC" = yes; then
5807 case $archive_cmds in
5809 # FIXME: we may have to deal with multi-command sequences.
5812 # Test whether the compiler implicitly links with -lc since on some
5813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5814 # to ld, don't add -lc before -lgcc.
5815 echo "$as_me:5815: checking whether -lc should be explicitly linked in" >&5
5816 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5817 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 echo 'static int dummy;' > conftest.$ac_ext
5823 if { (eval echo "$as_me:5823: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>&5
5826 echo "$as_me:5826: \$? = $ac_status" >&5
5827 (exit $ac_status); }; then
5830 libobjs=conftest.$ac_objext
5832 wl=$lt_cv_prog_cc_wl
5838 save_allow_undefined_flag=$allow_undefined_flag
5839 allow_undefined_flag=
5840 if { (eval echo "$as_me:5840: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5841 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5843 echo "$as_me:5843: \$? = $ac_status" >&5
5844 (exit $ac_status); }
5846 lt_cv_archive_cmds_need_lc=no
5848 lt_cv_archive_cmds_need_lc=yes
5850 allow_undefined_flag=$save_allow_undefined_flag
5852 cat conftest.err 1>&5
5856 echo "$as_me:5856: result: $lt_cv_archive_cmds_need_lc" >&5
5857 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5861 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5863 # The second clause should only fire when bootstrapping the
5864 # libtool distribution, otherwise you forgot to ship ltmain.sh
5865 # with your package, and you will get complaints that there are
5866 # no rules to generate ltmain.sh.
5867 if test -f "$ltmain"; then
5870 # If there is no Makefile yet, we rely on a make rule to execute
5871 # `config.status --recheck' to rerun these tests and create the
5872 # libtool script then.
5873 test -f Makefile && make "$ltmain"
5876 if test -f "$ltmain"; then
5877 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5880 echo creating $ofile
5882 # Now quote all the things that may contain metacharacters while being
5883 # careful not to overquote the AC_SUBSTed values. We take copies of the
5884 # variables and quote the copies for generation of the libtool script.
5885 for var in echo old_CC old_CFLAGS \
5886 AR AR_FLAGS CC LD LN_S NM SHELL \
5887 reload_flag reload_cmds wl \
5888 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5889 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5890 library_names_spec soname_spec \
5891 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5892 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5893 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5894 old_striplib striplib file_magic_cmd export_symbols_cmds \
5895 deplibs_check_method allow_undefined_flag no_undefined_flag \
5896 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5897 hardcode_libdir_flag_spec hardcode_libdir_separator \
5898 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5899 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5902 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5903 old_postinstall_cmds | old_postuninstall_cmds | \
5904 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5905 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5906 postinstall_cmds | postuninstall_cmds | \
5907 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5908 # Double-quote double-evaled strings.
5909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5917 cat <<__EOF__ > "${ofile}T"
5920 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5921 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5922 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5924 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5925 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5927 # This program is free software; you can redistribute it and/or modify
5928 # it under the terms of the GNU General Public License as published by
5929 # the Free Software Foundation; either version 2 of the License, or
5930 # (at your option) any later version.
5932 # This program is distributed in the hope that it will be useful, but
5933 # WITHOUT ANY WARRANTY; without even the implied warranty of
5934 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5935 # General Public License for more details.
5937 # You should have received a copy of the GNU General Public License
5938 # along with this program; if not, write to the Free Software
5939 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5941 # As a special exception to the GNU General Public License, if you
5942 # distribute this file as part of a program that contains a
5943 # configuration script generated by Autoconf, you may include it under
5944 # the same distribution terms that you use for the rest of that program.
5946 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5947 Xsed="sed -e s/^X//"
5949 # The HP-UX ksh and POSIX shell print the target directory to stdout
5951 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5953 # ### BEGIN LIBTOOL CONFIG
5955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5957 # Shell to use when invoking shell scripts.
5960 # Whether or not to build shared libraries.
5961 build_libtool_libs=$enable_shared
5963 # Whether or not to add -lc for building shared libraries.
5964 build_libtool_need_lc=$need_lc
5966 # Whether or not to build static libraries.
5967 build_old_libs=$enable_static
5969 # Whether or not to optimize for fast installation.
5970 fast_install=$enable_fast_install
5973 host_alias=$host_alias
5976 # An echo program that does not interpret backslashes.
5981 AR_FLAGS=$lt_AR_FLAGS
5983 # The default C compiler.
5986 # Is the compiler the GNU C compiler?
5989 # The linker used to build libraries.
5992 # Whether we need hard or soft links.
5995 # A BSD-compatible nm program.
5998 # A symbol stripping program
6001 # Used to examine libraries when file_magic_cmd begins "file"
6002 MAGIC_CMD=$MAGIC_CMD
6004 # Used on cygwin: DLL creation program.
6007 # Used on cygwin: object dumper.
6010 # Used on cygwin: assembler.
6013 # The name of the directory that contains temporary libtool files.
6016 # How to create reloadable object files.
6017 reload_flag=$lt_reload_flag
6018 reload_cmds=$lt_reload_cmds
6020 # How to pass a linker flag through the compiler.
6023 # Object file suffix (normally "o").
6026 # Old archive suffix (normally "a").
6029 # Executable file suffix (normally "").
6032 # Additional compiler flags for building library objects.
6033 pic_flag=$lt_pic_flag
6036 # Does compiler simultaneously support -c and -o options?
6037 compiler_c_o=$lt_compiler_c_o
6039 # Can we write directly to a .lo ?
6040 compiler_o_lo=$lt_compiler_o_lo
6042 # Must we lock files when doing compilation ?
6043 need_locks=$lt_need_locks
6045 # Do we need the lib prefix for modules?
6046 need_lib_prefix=$need_lib_prefix
6048 # Do we need a version for libraries?
6049 need_version=$need_version
6051 # Whether dlopen is supported.
6052 dlopen_support=$enable_dlopen
6054 # Whether dlopen of programs is supported.
6055 dlopen_self=$enable_dlopen_self
6057 # Whether dlopen of statically linked programs is supported.
6058 dlopen_self_static=$enable_dlopen_self_static
6060 # Compiler flag to prevent dynamic linking.
6061 link_static_flag=$lt_link_static_flag
6063 # Compiler flag to turn off builtin functions.
6064 no_builtin_flag=$lt_no_builtin_flag
6066 # Compiler flag to allow reflexive dlopens.
6067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6069 # Compiler flag to generate shared objects directly from archives.
6070 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6072 # Compiler flag to generate thread-safe objects.
6073 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6075 # Library versioning type.
6076 version_type=$version_type
6078 # Format of library name prefix.
6079 libname_spec=$lt_libname_spec
6081 # List of archive names. First name is the real one, the rest are links.
6082 # The last name is the one that the linker finds with -lNAME.
6083 library_names_spec=$lt_library_names_spec
6085 # The coded name of the library, if different from the real name.
6086 soname_spec=$lt_soname_spec
6088 # Commands used to build and install an old-style archive.
6090 old_archive_cmds=$lt_old_archive_cmds
6091 old_postinstall_cmds=$lt_old_postinstall_cmds
6092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6094 # Create an old-style archive from a shared archive.
6095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6097 # Create a temporary old-style archive to link instead of a shared archive.
6098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6100 # Commands used to build and install a shared archive.
6101 archive_cmds=$lt_archive_cmds
6102 archive_expsym_cmds=$lt_archive_expsym_cmds
6103 postinstall_cmds=$lt_postinstall_cmds
6104 postuninstall_cmds=$lt_postuninstall_cmds
6106 # Commands to strip libraries.
6107 old_striplib=$lt_old_striplib
6108 striplib=$lt_striplib
6110 # Method to check whether dependent libraries are shared objects.
6111 deplibs_check_method=$lt_deplibs_check_method
6113 # Command to use when deplibs_check_method == file_magic.
6114 file_magic_cmd=$lt_file_magic_cmd
6116 # Flag that allows shared libraries with undefined symbols to be built.
6117 allow_undefined_flag=$lt_allow_undefined_flag
6119 # Flag that forces no undefined symbols.
6120 no_undefined_flag=$lt_no_undefined_flag
6122 # Commands used to finish a libtool library installation in a directory.
6123 finish_cmds=$lt_finish_cmds
6125 # Same as above, but a single script fragment to be evaled but not shown.
6126 finish_eval=$lt_finish_eval
6128 # Take the output of nm and produce a listing of raw symbols and C names.
6129 global_symbol_pipe=$lt_global_symbol_pipe
6131 # Transform the output of nm in a proper C declaration
6132 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6134 # This is the shared library runtime path variable.
6135 runpath_var=$runpath_var
6137 # This is the shared library path variable.
6138 shlibpath_var=$shlibpath_var
6140 # Is shlibpath searched before the hard-coded library search path?
6141 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6143 # How to hardcode a shared library path into an executable.
6144 hardcode_action=$hardcode_action
6146 # Whether we should hardcode library paths into libraries.
6147 hardcode_into_libs=$hardcode_into_libs
6149 # Flag to hardcode \$libdir into a binary during linking.
6150 # This must work even if \$libdir does not exist.
6151 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6153 # Whether we need a single -rpath flag with a separated argument.
6154 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6156 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6158 hardcode_direct=$hardcode_direct
6160 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6162 hardcode_minus_L=$hardcode_minus_L
6164 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6165 # the resulting binary.
6166 hardcode_shlibpath_var=$hardcode_shlibpath_var
6168 # Variables whose values should be saved in libtool wrapper scripts and
6169 # restored at relink time.
6170 variables_saved_for_relink="$variables_saved_for_relink"
6172 # Whether libtool must link a program against all its dependency libraries.
6173 link_all_deplibs=$link_all_deplibs
6175 # Compile-time system search path for libraries
6176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6178 # Run-time system search path for libraries
6179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6181 # Fix the shell variable \$srcfile for the compiler.
6182 fix_srcfile_path="$fix_srcfile_path"
6184 # Set to yes if exported symbols are required.
6185 always_export_symbols=$always_export_symbols
6187 # The commands to list exported symbols.
6188 export_symbols_cmds=$lt_export_symbols_cmds
6190 # The commands to extract the exported symbol list from a shared archive.
6191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6193 # Symbols that should not be listed in the preloaded symbols.
6194 exclude_expsyms=$lt_exclude_expsyms
6196 # Symbols that must always be exported.
6197 include_expsyms=$lt_include_expsyms
6199 # ### END LIBTOOL CONFIG
6205 cat <<\EOF >> "${ofile}T"
6207 # AIX sometimes has problems with the GCC collect2 program. For some
6208 # reason, if we set the COLLECT_NAMES environment variable, the problems
6209 # vanish in a puff of smoke.
6210 if test "X${COLLECT_NAMES+set}" != Xset; then
6212 export COLLECT_NAMES
6219 cygwin* | mingw* | pw32* | os2*)
6220 cat <<'EOF' >> "${ofile}T"
6221 # This is a source program that is used to create dlls on Windows
6222 # Don't remove nor modify the starting and closing comments
6223 # /* ltdll.c starts here */
6224 # #define WIN32_LEAN_AND_MEAN
6225 # #include <windows.h>
6226 # #undef WIN32_LEAN_AND_MEAN
6227 # #include <stdio.h>
6229 # #ifndef __CYGWIN__
6230 # # ifdef __CYGWIN32__
6231 # # define __CYGWIN__ __CYGWIN32__
6235 # #ifdef __cplusplus
6238 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6239 # #ifdef __cplusplus
6244 # #include <cygwin/cygwin_dll.h>
6245 # DECLARE_CYGWIN_DLL( DllMain );
6247 # HINSTANCE __hDllInstance_base;
6250 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6252 # __hDllInstance_base = hInst;
6255 # /* ltdll.c ends here */
6256 # This is a source program that is used to create import libraries
6257 # on Windows for dlls which lack them. Don't remove nor modify the
6258 # starting and closing comments
6259 # /* impgen.c starts here */
6260 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6262 # This file is part of GNU libtool.
6264 # This program is free software; you can redistribute it and/or modify
6265 # it under the terms of the GNU General Public License as published by
6266 # the Free Software Foundation; either version 2 of the License, or
6267 # (at your option) any later version.
6269 # This program is distributed in the hope that it will be useful,
6270 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6271 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6272 # GNU General Public License for more details.
6274 # You should have received a copy of the GNU General Public License
6275 # along with this program; if not, write to the Free Software
6276 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6279 # #include <stdio.h> /* for printf() */
6280 # #include <unistd.h> /* for open(), lseek(), read() */
6281 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6282 # #include <string.h> /* for strdup() */
6284 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6286 # #define O_BINARY 0
6289 # static unsigned int
6290 # pe_get16 (fd, offset)
6294 # unsigned char b[2];
6295 # lseek (fd, offset, SEEK_SET);
6297 # return b[0] + (b[1]<<8);
6300 # static unsigned int
6301 # pe_get32 (fd, offset)
6305 # unsigned char b[4];
6306 # lseek (fd, offset, SEEK_SET);
6308 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6311 # static unsigned int
6315 # unsigned char *b = ptr;
6316 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6325 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6326 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6327 # unsigned long name_rvas, nexp;
6328 # unsigned char *expdata, *erva;
6329 # char *filename, *dll_name;
6331 # filename = argv[1];
6333 # dll = open(filename, O_RDONLY|O_BINARY);
6337 # dll_name = filename;
6339 # for (i=0; filename[i]; i++)
6340 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6341 # dll_name = filename + i +1;
6343 # pe_header_offset = pe_get32 (dll, 0x3c);
6344 # opthdr_ofs = pe_header_offset + 4 + 20;
6345 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6347 # if (num_entries < 1) /* no exports */
6350 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6351 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6352 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6353 # secptr = (pe_header_offset + 4 + 20 +
6354 # pe_get16 (dll, pe_header_offset + 4 + 16));
6357 # for (i = 0; i < nsections; i++)
6360 # unsigned long secptr1 = secptr + 40 * i;
6361 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6362 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6363 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6364 # lseek(dll, secptr1, SEEK_SET);
6365 # read(dll, sname, 8);
6366 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6368 # expptr = fptr + (export_rva - vaddr);
6369 # if (export_rva + export_size > vaddr + vsize)
6370 # export_size = vsize - (export_rva - vaddr);
6375 # expdata = (unsigned char*)malloc(export_size);
6376 # lseek (dll, expptr, SEEK_SET);
6377 # read (dll, expdata, export_size);
6378 # erva = expdata - export_rva;
6380 # nexp = pe_as32 (expdata+24);
6381 # name_rvas = pe_as32 (expdata+32);
6383 # printf ("EXPORTS\n");
6384 # for (i = 0; i<nexp; i++)
6386 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6387 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6392 # /* impgen.c ends here */
6398 # We use sed instead of cat because bash on DJGPP gets confused if
6399 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6400 # text mode, it properly converts lines to CR/LF. This bash problem
6401 # is reportedly fixed, but why not run on old versions too?
6402 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6404 mv -f "${ofile}T" "$ofile" || \
6405 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6409 # This can be used to rebuild libtool when needed
6410 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6412 # Always use our own libtool.
6413 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6415 # Prevent multiple expansion
6417 if test -n "$ac_tool_prefix"; then
6418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6420 echo "$as_me:6420: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6422 if test "${ac_cv_prog_RANLIB+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 if test -n "$RANLIB"; then
6426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6428 ac_save_IFS=$IFS; IFS=$ac_path_separator
6430 for ac_dir in $ac_dummy; do
6432 test -z "$ac_dir" && ac_dir=.
6433 $as_executable_p "$ac_dir/$ac_word" || continue
6434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6435 echo "$as_me:6435: found $ac_dir/$ac_word" >&5
6441 RANLIB=$ac_cv_prog_RANLIB
6442 if test -n "$RANLIB"; then
6443 echo "$as_me:6443: result: $RANLIB" >&5
6444 echo "${ECHO_T}$RANLIB" >&6
6446 echo "$as_me:6446: result: no" >&5
6447 echo "${ECHO_T}no" >&6
6451 if test -z "$ac_cv_prog_RANLIB"; then
6452 ac_ct_RANLIB=$RANLIB
6453 # Extract the first word of "ranlib", so it can be a program name with args.
6454 set dummy ranlib; ac_word=$2
6455 echo "$as_me:6455: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6457 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 if test -n "$ac_ct_RANLIB"; then
6461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6463 ac_save_IFS=$IFS; IFS=$ac_path_separator
6465 for ac_dir in $ac_dummy; do
6467 test -z "$ac_dir" && ac_dir=.
6468 $as_executable_p "$ac_dir/$ac_word" || continue
6469 ac_cv_prog_ac_ct_RANLIB="ranlib"
6470 echo "$as_me:6470: found $ac_dir/$ac_word" >&5
6474 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6478 if test -n "$ac_ct_RANLIB"; then
6479 echo "$as_me:6479: result: $ac_ct_RANLIB" >&5
6480 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6482 echo "$as_me:6482: result: no" >&5
6483 echo "${ECHO_T}no" >&6
6486 RANLIB=$ac_ct_RANLIB
6488 RANLIB="$ac_cv_prog_RANLIB"
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}ar; ac_word=$2
6494 echo "$as_me:6494: checking for $ac_word" >&5
6495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6496 if test "${ac_cv_prog_AR+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 if test -n "$AR"; then
6500 ac_cv_prog_AR="$AR" # Let the user override the test.
6502 ac_save_IFS=$IFS; IFS=$ac_path_separator
6504 for ac_dir in $ac_dummy; do
6506 test -z "$ac_dir" && ac_dir=.
6507 $as_executable_p "$ac_dir/$ac_word" || continue
6508 ac_cv_prog_AR="${ac_tool_prefix}ar"
6509 echo "$as_me:6509: found $ac_dir/$ac_word" >&5
6516 if test -n "$AR"; then
6517 echo "$as_me:6517: result: $AR" >&5
6518 echo "${ECHO_T}$AR" >&6
6520 echo "$as_me:6520: result: no" >&5
6521 echo "${ECHO_T}no" >&6
6525 if test -z "$ac_cv_prog_AR"; then
6527 # Extract the first word of "ar", so it can be a program name with args.
6528 set dummy ar; ac_word=$2
6529 echo "$as_me:6529: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6531 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 if test -n "$ac_ct_AR"; then
6535 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6537 ac_save_IFS=$IFS; IFS=$ac_path_separator
6539 for ac_dir in $ac_dummy; do
6541 test -z "$ac_dir" && ac_dir=.
6542 $as_executable_p "$ac_dir/$ac_word" || continue
6543 ac_cv_prog_ac_ct_AR="ar"
6544 echo "$as_me:6544: found $ac_dir/$ac_word" >&5
6548 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
6551 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6552 if test -n "$ac_ct_AR"; then
6553 echo "$as_me:6553: result: $ac_ct_AR" >&5
6554 echo "${ECHO_T}$ac_ct_AR" >&6
6556 echo "$as_me:6556: result: no" >&5
6557 echo "${ECHO_T}no" >&6
6565 echo "$as_me:6565: checking for main in -lnsl" >&5
6566 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
6567 if test "${ac_cv_lib_nsl_main+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 ac_check_lib_save_LIBS=$LIBS
6572 cat >conftest.$ac_ext <<_ACEOF
6573 #line 6573 "configure"
6574 #include "confdefs.h"
6584 rm -f conftest.$ac_objext conftest$ac_exeext
6585 if { (eval echo "$as_me:6585: \"$ac_link\"") >&5
6586 (eval $ac_link) 2>&5
6588 echo "$as_me:6588: \$? = $ac_status" >&5
6589 (exit $ac_status); } &&
6590 { ac_try='test -s conftest$ac_exeext'
6591 { (eval echo "$as_me:6591: \"$ac_try\"") >&5
6594 echo "$as_me:6594: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_lib_nsl_main=yes
6598 echo "$as_me: failed program was:" >&5
6599 cat conftest.$ac_ext >&5
6600 ac_cv_lib_nsl_main=no
6602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6603 LIBS=$ac_check_lib_save_LIBS
6605 echo "$as_me:6605: result: $ac_cv_lib_nsl_main" >&5
6606 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
6607 if test $ac_cv_lib_nsl_main = yes; then
6608 cat >>confdefs.h <<EOF
6609 #define HAVE_LIBNSL 1
6615 ac_cv_lib_nsl=ac_cv_lib_nsl_main
6617 echo "$as_me:6617: checking for main in -lresolv" >&5
6618 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
6619 if test "${ac_cv_lib_resolv_main+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_check_lib_save_LIBS=$LIBS
6623 LIBS="-lresolv $LIBS"
6624 cat >conftest.$ac_ext <<_ACEOF
6625 #line 6625 "configure"
6626 #include "confdefs.h"
6636 rm -f conftest.$ac_objext conftest$ac_exeext
6637 if { (eval echo "$as_me:6637: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
6640 echo "$as_me:6640: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:6643: \"$ac_try\"") >&5
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_lib_resolv_main=yes
6650 echo "$as_me: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6652 ac_cv_lib_resolv_main=no
6654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6655 LIBS=$ac_check_lib_save_LIBS
6657 echo "$as_me:6657: result: $ac_cv_lib_resolv_main" >&5
6658 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6659 if test $ac_cv_lib_resolv_main = yes; then
6660 cat >>confdefs.h <<EOF
6661 #define HAVE_LIBRESOLV 1
6664 LIBS="-lresolv $LIBS"
6667 ac_cv_lib_resolv=ac_cv_lib_resolv_main
6669 echo "$as_me:6669: checking for main in -lsocket" >&5
6670 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
6671 if test "${ac_cv_lib_socket_main+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 ac_check_lib_save_LIBS=$LIBS
6675 LIBS="-lsocket $LIBS"
6676 cat >conftest.$ac_ext <<_ACEOF
6677 #line 6677 "configure"
6678 #include "confdefs.h"
6688 rm -f conftest.$ac_objext conftest$ac_exeext
6689 if { (eval echo "$as_me:6689: \"$ac_link\"") >&5
6690 (eval $ac_link) 2>&5
6692 echo "$as_me:6692: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try='test -s conftest$ac_exeext'
6695 { (eval echo "$as_me:6695: \"$ac_try\"") >&5
6698 echo "$as_me:6698: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 ac_cv_lib_socket_main=yes
6702 echo "$as_me: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6704 ac_cv_lib_socket_main=no
6706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6707 LIBS=$ac_check_lib_save_LIBS
6709 echo "$as_me:6709: result: $ac_cv_lib_socket_main" >&5
6710 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
6711 if test $ac_cv_lib_socket_main = yes; then
6712 cat >>confdefs.h <<EOF
6713 #define HAVE_LIBSOCKET 1
6716 LIBS="-lsocket $LIBS"
6719 ac_cv_lib_socket=ac_cv_lib_socket_main
6721 echo "$as_me:6721: checking for main in -ldnet_stub" >&5
6722 echo $ECHO_N "checking for main in -ldnet_stub... $ECHO_C" >&6
6723 if test "${ac_cv_lib_dnet_stub_main+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 ac_check_lib_save_LIBS=$LIBS
6727 LIBS="-ldnet_stub $LIBS"
6728 cat >conftest.$ac_ext <<_ACEOF
6729 #line 6729 "configure"
6730 #include "confdefs.h"
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (eval echo "$as_me:6741: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>&5
6744 echo "$as_me:6744: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -s conftest$ac_exeext'
6747 { (eval echo "$as_me:6747: \"$ac_try\"") >&5
6750 echo "$as_me:6750: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_lib_dnet_stub_main=yes
6754 echo "$as_me: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6756 ac_cv_lib_dnet_stub_main=no
6758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6759 LIBS=$ac_check_lib_save_LIBS
6761 echo "$as_me:6761: result: $ac_cv_lib_dnet_stub_main" >&5
6762 echo "${ECHO_T}$ac_cv_lib_dnet_stub_main" >&6
6763 if test $ac_cv_lib_dnet_stub_main = yes; then
6764 cat >>confdefs.h <<EOF
6765 #define HAVE_LIBDNET_STUB 1
6768 LIBS="-ldnet_stub $LIBS"
6771 ac_cv_lib_dnet_stub=ac_cv_lib_dnet_stub_main
6773 echo "$as_me:6773: checking for main in -lieee" >&5
6774 echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6
6775 if test "${ac_cv_lib_ieee_main+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 ac_check_lib_save_LIBS=$LIBS
6780 cat >conftest.$ac_ext <<_ACEOF
6781 #line 6781 "configure"
6782 #include "confdefs.h"
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (eval echo "$as_me:6793: \"$ac_link\"") >&5
6794 (eval $ac_link) 2>&5
6796 echo "$as_me:6796: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -s conftest$ac_exeext'
6799 { (eval echo "$as_me:6799: \"$ac_try\"") >&5
6802 echo "$as_me:6802: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 ac_cv_lib_ieee_main=yes
6806 echo "$as_me: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6808 ac_cv_lib_ieee_main=no
6810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6811 LIBS=$ac_check_lib_save_LIBS
6813 echo "$as_me:6813: result: $ac_cv_lib_ieee_main" >&5
6814 echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6
6815 if test $ac_cv_lib_ieee_main = yes; then
6816 cat >>confdefs.h <<EOF
6817 #define HAVE_LIBIEEE 1
6823 ac_cv_lib_ieee=ac_cv_lib_ieee_main
6825 echo "$as_me:6825: checking for main in -lpthread" >&5
6826 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6827 if test "${ac_cv_lib_pthread_main+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 ac_check_lib_save_LIBS=$LIBS
6831 LIBS="-lpthread $LIBS"
6832 cat >conftest.$ac_ext <<_ACEOF
6833 #line 6833 "configure"
6834 #include "confdefs.h"
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:6845: \"$ac_link\"") >&5
6846 (eval $ac_link) 2>&5
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try='test -s conftest$ac_exeext'
6851 { (eval echo "$as_me:6851: \"$ac_try\"") >&5
6854 echo "$as_me:6854: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6856 ac_cv_lib_pthread_main=yes
6858 echo "$as_me: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6860 ac_cv_lib_pthread_main=no
6862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6863 LIBS=$ac_check_lib_save_LIBS
6865 echo "$as_me:6865: result: $ac_cv_lib_pthread_main" >&5
6866 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6867 if test $ac_cv_lib_pthread_main = yes; then
6869 cat >>confdefs.h <<\EOF
6870 #define HAVE_LIBPTHREAD 1
6876 ac_cv_lib_pthread=ac_cv_lib_pthread_main
6878 echo "$as_me:6878: checking for ANSI C header files" >&5
6879 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6880 if test "${ac_cv_header_stdc+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 cat >conftest.$ac_ext <<_ACEOF
6884 #line 6884 "configure"
6885 #include "confdefs.h"
6892 if { (eval echo "$as_me:6892: \"$ac_cpp conftest.$ac_ext\"") >&5
6893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6895 egrep -v '^ *\+' conftest.er1 >conftest.err
6897 cat conftest.err >&5
6898 echo "$as_me:6898: \$? = $ac_status" >&5
6899 (exit $ac_status); } >/dev/null; then
6900 if test -s conftest.err; then
6901 ac_cpp_err=$ac_c_preproc_warn_flag
6908 if test -z "$ac_cpp_err"; then
6909 ac_cv_header_stdc=yes
6911 echo "$as_me: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6913 ac_cv_header_stdc=no
6915 rm -f conftest.err conftest.$ac_ext
6917 if test $ac_cv_header_stdc = yes; then
6918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6919 cat >conftest.$ac_ext <<_ACEOF
6920 #line 6920 "configure"
6921 #include "confdefs.h"
6925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6926 egrep "memchr" >/dev/null 2>&1; then
6929 ac_cv_header_stdc=no
6935 if test $ac_cv_header_stdc = yes; then
6936 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6937 cat >conftest.$ac_ext <<_ACEOF
6938 #line 6938 "configure"
6939 #include "confdefs.h"
6943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6944 egrep "free" >/dev/null 2>&1; then
6947 ac_cv_header_stdc=no
6953 if test $ac_cv_header_stdc = yes; then
6954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6955 if test "$cross_compiling" = yes; then
6958 cat >conftest.$ac_ext <<_ACEOF
6959 #line 6959 "configure"
6960 #include "confdefs.h"
6962 #if ((' ' & 0x0FF) == 0x020)
6963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6966 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6967 || ('j' <= (c) && (c) <= 'r') \
6968 || ('s' <= (c) && (c) <= 'z'))
6969 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6972 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6977 for (i = 0; i < 256; i++)
6978 if (XOR (islower (i), ISLOWER (i))
6979 || toupper (i) != TOUPPER (i))
6984 rm -f conftest$ac_exeext
6985 if { (eval echo "$as_me:6985: \"$ac_link\"") >&5
6986 (eval $ac_link) 2>&5
6988 echo "$as_me:6988: \$? = $ac_status" >&5
6989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6990 { (eval echo "$as_me:6990: \"$ac_try\"") >&5
6993 echo "$as_me:6993: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6997 echo "$as_me: program exited with status $ac_status" >&5
6998 echo "$as_me: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7000 ac_cv_header_stdc=no
7002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7006 echo "$as_me:7006: result: $ac_cv_header_stdc" >&5
7007 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7008 if test $ac_cv_header_stdc = yes; then
7010 cat >>confdefs.h <<\EOF
7011 #define STDC_HEADERS 1
7016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7018 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7019 inttypes.h stdint.h unistd.h
7021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7022 echo "$as_me:7022: checking for $ac_header" >&5
7023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 cat >conftest.$ac_ext <<_ACEOF
7028 #line 7028 "configure"
7029 #include "confdefs.h"
7030 $ac_includes_default
7031 #include <$ac_header>
7033 rm -f conftest.$ac_objext
7034 if { (eval echo "$as_me:7034: \"$ac_compile\"") >&5
7035 (eval $ac_compile) 2>&5
7037 echo "$as_me:7037: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:7040: \"$ac_try\"") >&5
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 eval "$as_ac_Header=yes"
7047 echo "$as_me: failed program was:" >&5
7048 cat conftest.$ac_ext >&5
7049 eval "$as_ac_Header=no"
7051 rm -f conftest.$ac_objext conftest.$ac_ext
7053 echo "$as_me:7053: result: `eval echo '${'$as_ac_Header'}'`" >&5
7054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7056 cat >>confdefs.h <<EOF
7057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7063 echo "$as_me:7063: checking for ssize_t" >&5
7064 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7065 if test "${ac_cv_type_ssize_t+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 cat >conftest.$ac_ext <<_ACEOF
7069 #line 7069 "configure"
7070 #include "confdefs.h"
7071 $ac_includes_default
7077 if (sizeof (ssize_t))
7083 rm -f conftest.$ac_objext
7084 if { (eval echo "$as_me:7084: \"$ac_compile\"") >&5
7085 (eval $ac_compile) 2>&5
7087 echo "$as_me:7087: \$? = $ac_status" >&5
7088 (exit $ac_status); } &&
7089 { ac_try='test -s conftest.$ac_objext'
7090 { (eval echo "$as_me:7090: \"$ac_try\"") >&5
7093 echo "$as_me:7093: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 ac_cv_type_ssize_t=yes
7097 echo "$as_me: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7099 ac_cv_type_ssize_t=no
7101 rm -f conftest.$ac_objext conftest.$ac_ext
7103 echo "$as_me:7103: result: $ac_cv_type_ssize_t" >&5
7104 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7105 if test $ac_cv_type_ssize_t = yes; then
7109 cat >>confdefs.h <<EOF
7115 echo "$as_me:7115: checking for sun_len in sys/un.h" >&5
7116 echo $ECHO_N "checking for sun_len in sys/un.h... $ECHO_C" >&6
7117 cat >conftest.$ac_ext <<_ACEOF
7118 #line 7118 "configure"
7119 #include "confdefs.h"
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124 egrep "sun_len" >/dev/null 2>&1; then
7125 echo "$as_me:7125: result: yes" >&5
7126 echo "${ECHO_T}yes" >&6
7128 cat >>confdefs.h <<\EOF
7129 #define HAVE_SOCKADDR_UN_SUN_LEN 1
7133 echo "$as_me:7133: result: no" >&5
7134 echo "${ECHO_T}no" >&6
7138 for ac_func in strerror
7140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7141 echo "$as_me:7141: checking for $ac_func" >&5
7142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7143 if eval "test \"\${$as_ac_var+set}\" = set"; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 cat >conftest.$ac_ext <<_ACEOF
7147 #line 7147 "configure"
7148 #include "confdefs.h"
7149 /* System header to define __stub macros and hopefully few prototypes,
7150 which can conflict with char $ac_func (); below. */
7152 /* Override any gcc2 internal prototype to avoid an error. */
7156 /* We use char because int might match the return type of a gcc2
7157 builtin and then its argument prototype would still apply. */
7164 /* The GNU C library defines this for functions which it implements
7165 to always fail with ENOSYS. Some functions are actually named
7166 something starting with __ and the normal name is an alias. */
7167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:7178: \"$ac_link\"") >&5
7179 (eval $ac_link) 2>&5
7181 echo "$as_me:7181: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try='test -s conftest$ac_exeext'
7184 { (eval echo "$as_me:7184: \"$ac_try\"") >&5
7187 echo "$as_me:7187: \$? = $ac_status" >&5
7188 (exit $ac_status); }; }; then
7189 eval "$as_ac_var=yes"
7191 echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7193 eval "$as_ac_var=no"
7195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7197 echo "$as_me:7197: result: `eval echo '${'$as_ac_var'}'`" >&5
7198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7199 if test `eval echo '${'$as_ac_var'}'` = yes; then
7200 cat >>confdefs.h <<EOF
7201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7205 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7209 echo "$as_me:7209: checking for fpos_t in stdio.h" >&5
7210 echo $ECHO_N "checking for fpos_t in stdio.h... $ECHO_C" >&6
7211 cat >conftest.$ac_ext <<_ACEOF
7212 #line 7212 "configure"
7213 #include "confdefs.h"
7217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218 egrep "fpos_t" >/dev/null 2>&1; then
7219 echo "$as_me:7219: result: yes" >&5
7220 echo "${ECHO_T}yes" >&6
7222 cat >>confdefs.h <<\EOF
7227 echo "$as_me:7227: result: no" >&5
7228 echo "${ECHO_T}no" >&6
7232 for ac_header in sys/socket.h netdb.h netinet/in.h arpa/inet.h sys/time.h limits.h sys/param.h unistd.h
7234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 echo "$as_me:7235: checking for $ac_header" >&5
7236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 cat >conftest.$ac_ext <<_ACEOF
7241 #line 7241 "configure"
7242 #include "confdefs.h"
7243 #include <$ac_header>
7245 if { (eval echo "$as_me:7245: \"$ac_cpp conftest.$ac_ext\"") >&5
7246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7248 egrep -v '^ *\+' conftest.er1 >conftest.err
7250 cat conftest.err >&5
7251 echo "$as_me:7251: \$? = $ac_status" >&5
7252 (exit $ac_status); } >/dev/null; then
7253 if test -s conftest.err; then
7254 ac_cpp_err=$ac_c_preproc_warn_flag
7261 if test -z "$ac_cpp_err"; then
7262 eval "$as_ac_Header=yes"
7264 echo "$as_me: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7266 eval "$as_ac_Header=no"
7268 rm -f conftest.err conftest.$ac_ext
7270 echo "$as_me:7270: result: `eval echo '${'$as_ac_Header'}'`" >&5
7271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7273 cat >>confdefs.h <<EOF
7274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7280 echo "$as_me:7280: checking for a fileno() prototype in stdio.h" >&5
7281 echo $ECHO_N "checking for a fileno() prototype in stdio.h... $ECHO_C" >&6
7282 cat >conftest.$ac_ext <<_ACEOF
7283 #line 7283 "configure"
7284 #include "confdefs.h"
7288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7289 egrep "fileno" >/dev/null 2>&1; then
7290 echo "$as_me:7290: result: yes" >&5
7291 echo "${ECHO_T}yes" >&6
7293 cat >>confdefs.h <<\EOF
7294 #define HAVE_FILENO_PROTO 1
7298 echo "$as_me:7298: result: no" >&5
7299 echo "${ECHO_T}no" >&6
7303 if test "$HAVE_SYS_SOCKET_H"; then
7304 echo "$as_me:7304: checking for socklen_t in sys/socket.h" >&5
7305 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
7306 cat >conftest.$ac_ext <<_ACEOF
7307 #line 7307 "configure"
7308 #include "confdefs.h"
7309 #include <sys/socket.h>
7312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313 egrep "socklen_t" >/dev/null 2>&1; then
7314 echo "$as_me:7314: result: yes" >&5
7315 echo "${ECHO_T}yes" >&6
7317 cat >>confdefs.h <<\EOF
7318 #define HAVE_SOCKLEN 1
7322 echo "$as_me:7322: result: no" >&5
7323 echo "${ECHO_T}no" >&6
7329 #--------------------------------------------------------------------
7330 # Do we need cross-process locking on this platform?
7331 #--------------------------------------------------------------------
7332 echo "$as_me:7332: checking whether cross-process locking is required by accept()" >&5
7333 echo $ECHO_N "checking whether cross-process locking is required by accept()... $ECHO_C" >&6
7334 case "`uname -sr`" in
7335 IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0)
7336 echo "$as_me:7336: result: yes" >&5
7337 echo "${ECHO_T}yes" >&6
7339 cat >>confdefs.h <<\EOF
7340 #define USE_LOCKING 1
7345 echo "$as_me:7345: result: no" >&5
7346 echo "${ECHO_T}no" >&6
7350 #--------------------------------------------------------------------
7351 # Does va_arg(arg, long double) crash the compiler?
7352 # hpux 9.04 compiler does and so does Stratus FTX (uses HP's compiler)
7353 #--------------------------------------------------------------------
7354 echo "$as_me:7354: checking whether va_arg(arg, long double) crashes the compiler" >&5
7355 echo $ECHO_N "checking whether va_arg(arg, long double) crashes the compiler... $ECHO_C" >&6
7356 cat >conftest.$ac_ext <<_ACEOF
7357 #line 7357 "configure"
7358 #include "confdefs.h"
7363 long double lDblArg; va_list arg; lDblArg = va_arg(arg, long double);
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:7369: \"$ac_compile\"") >&5
7370 (eval $ac_compile) 2>&5
7372 echo "$as_me:7372: \$? = $ac_status" >&5
7373 (exit $ac_status); } &&
7374 { ac_try='test -s conftest.$ac_objext'
7375 { (eval echo "$as_me:7375: \"$ac_try\"") >&5
7378 echo "$as_me:7378: \$? = $ac_status" >&5
7379 (exit $ac_status); }; }; then
7380 echo "$as_me:7380: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7383 echo "$as_me: failed program was:" >&5
7384 cat conftest.$ac_ext >&5
7385 echo "$as_me:7385: result: yes" >&5
7386 echo "${ECHO_T}yes" >&6
7388 cat >>confdefs.h <<\EOF
7389 #define HAVE_VA_ARG_LONG_DOUBLE_BUG 1
7393 rm -f conftest.$ac_objext conftest.$ac_ext
7395 echo "$as_me:7395: checking for $CC option to accept ANSI C" >&5
7396 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7397 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 ac_cv_prog_cc_stdc=no
7402 cat >conftest.$ac_ext <<_ACEOF
7403 #line 7403 "configure"
7404 #include "confdefs.h"
7407 #include <sys/types.h>
7408 #include <sys/stat.h>
7409 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7410 struct buf { int x; };
7411 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7412 static char *e (p, i)
7418 static char *f (char * (*g) (char **, int), char **p, ...)
7423 s = g (p, va_arg (v,int));
7427 int test (int i, double x);
7428 struct s1 {int (*f) (int a);};
7429 struct s2 {int (*f) (double a);};
7430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7436 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7441 # Don't try gcc -ansi; that turns off useful extensions and
7442 # breaks some systems' header files.
7443 # AIX -qlanglvl=ansi
7444 # Ultrix and OSF/1 -std1
7445 # HP-UX 10.20 and later -Ae
7446 # HP-UX older versions -Aa -D_HPUX_SOURCE
7447 # SVR4 -Xc -D__EXTENSIONS__
7448 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7450 CC="$ac_save_CC $ac_arg"
7451 rm -f conftest.$ac_objext
7452 if { (eval echo "$as_me:7452: \"$ac_compile\"") >&5
7453 (eval $ac_compile) 2>&5
7455 echo "$as_me:7455: \$? = $ac_status" >&5
7456 (exit $ac_status); } &&
7457 { ac_try='test -s conftest.$ac_objext'
7458 { (eval echo "$as_me:7458: \"$ac_try\"") >&5
7461 echo "$as_me:7461: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_prog_cc_stdc=$ac_arg
7466 echo "$as_me: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7469 rm -f conftest.$ac_objext
7471 rm -f conftest.$ac_ext conftest.$ac_objext
7476 case "x$ac_cv_prog_cc_stdc" in
7478 echo "$as_me:7478: result: none needed" >&5
7479 echo "${ECHO_T}none needed" >&6 ;;
7481 echo "$as_me:7481: result: $ac_cv_prog_cc_stdc" >&5
7482 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7483 CC="$CC $ac_cv_prog_cc_stdc" ;;
7486 echo "$as_me:7486: checking for an ANSI C-conforming const" >&5
7487 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7488 if test "${ac_cv_c_const+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 cat >conftest.$ac_ext <<_ACEOF
7492 #line 7492 "configure"
7493 #include "confdefs.h"
7498 /* FIXME: Include the comments suggested by Paul. */
7500 /* Ultrix mips cc rejects this. */
7501 typedef int charset[2];
7503 /* SunOS 4.1.1 cc rejects this. */
7504 char const *const *ccp;
7506 /* NEC SVR4.0.2 mips cc rejects this. */
7507 struct point {int x, y;};
7508 static struct point const zero = {0,0};
7509 /* AIX XL C 1.02.0.0 rejects this.
7510 It does not let you subtract one const X* pointer from another in
7511 an arm of an if-expression whose if-part is not a constant
7513 const char *g = "string";
7514 ccp = &g + (g ? g-g : 0);
7515 /* HPUX 7.0 cc rejects these. */
7518 ccp = (char const *const *) p;
7519 { /* SCO 3.2v4 cc rejects this. */
7521 char const *s = 0 ? (char *) 0 : (char const *) 0;
7525 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7527 const int *foo = &x[0];
7530 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7531 typedef const int *iptr;
7535 { /* AIX XL C 1.02.0.0 rejects this saying
7536 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7537 struct s { int j; const int *ap[3]; };
7538 struct s *b; b->j = 5;
7540 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7549 rm -f conftest.$ac_objext
7550 if { (eval echo "$as_me:7550: \"$ac_compile\"") >&5
7551 (eval $ac_compile) 2>&5
7553 echo "$as_me:7553: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -s conftest.$ac_objext'
7556 { (eval echo "$as_me:7556: \"$ac_try\"") >&5
7559 echo "$as_me:7559: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7563 echo "$as_me: failed program was:" >&5
7564 cat conftest.$ac_ext >&5
7567 rm -f conftest.$ac_objext conftest.$ac_ext
7569 echo "$as_me:7569: result: $ac_cv_c_const" >&5
7570 echo "${ECHO_T}$ac_cv_c_const" >&6
7571 if test $ac_cv_c_const = no; then
7573 cat >>confdefs.h <<\EOF
7579 echo "$as_me:7579: checking for inline" >&5
7580 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7581 if test "${ac_cv_c_inline+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 for ac_kw in inline __inline__ __inline; do
7586 cat >conftest.$ac_ext <<_ACEOF
7587 #line 7587 "configure"
7588 #include "confdefs.h"
7590 static $ac_kw int static_foo () {return 0; }
7591 $ac_kw int foo () {return 0; }
7595 rm -f conftest.$ac_objext
7596 if { (eval echo "$as_me:7596: \"$ac_compile\"") >&5
7597 (eval $ac_compile) 2>&5
7599 echo "$as_me:7599: \$? = $ac_status" >&5
7600 (exit $ac_status); } &&
7601 { ac_try='test -s conftest.$ac_objext'
7602 { (eval echo "$as_me:7602: \"$ac_try\"") >&5
7605 echo "$as_me:7605: \$? = $ac_status" >&5
7606 (exit $ac_status); }; }; then
7607 ac_cv_c_inline=$ac_kw; break
7609 echo "$as_me: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7612 rm -f conftest.$ac_objext conftest.$ac_ext
7616 echo "$as_me:7616: result: $ac_cv_c_inline" >&5
7617 echo "${ECHO_T}$ac_cv_c_inline" >&6
7618 case $ac_cv_c_inline in
7621 cat >>confdefs.h <<\EOF
7625 *) cat >>confdefs.h <<EOF
7626 #define inline $ac_cv_c_inline
7631 #--------------------------------------------------------------------
7632 # This is a little hokie in that it avoids including config.guess
7633 # and config.sub in the distribution, but its been working so far.
7634 # Windows builds don't run configure so we should be safe fixing
7635 # this to 'unix' (at least for now).
7636 #--------------------------------------------------------------------
7641 if test "$GCC"; then
7642 CCDEFS="$CCDEFS -Wall -Wmissing-prototypes"
7645 if test -z "$FCGI_BUILD"; then
7646 ac_config_files="$ac_config_files Makefile libfcgi/Makefile cgi-fcgi/Makefile examples/Makefile"
7650 cat >confcache <<\_ACEOF
7651 # This file is a shell script that caches the results of configure
7652 # tests run on this system so they can be shared between configure
7653 # scripts and configure runs, see configure's option --config-cache.
7654 # It is not useful on other systems. If it contains results you don't
7655 # want to keep, you may remove or edit it.
7657 # config.status only pays attention to the cache file if you give it
7658 # the --recheck option to rerun configure.
7660 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7661 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7666 # The following way of writing the cache mishandles newlines in values,
7667 # but we know of no workaround that is simple, portable, and efficient.
7668 # So, don't put newlines in cache variables' values.
7669 # Ultrix sh set writes to stderr and can't be redirected directly,
7670 # and sets the high bit in the cache file unless we assign to the vars.
7673 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7675 # `set' does not quote correctly, so add quotes (double-quote
7676 # substitution turns \\\\ into \\, and sed turns \\ into \).
7679 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7682 # `set' quotes correctly as required by POSIX, so do not add quotes.
7684 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7691 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7693 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7695 if cmp -s $cache_file confcache; then :; else
7696 if test -w $cache_file; then
7697 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7698 cat confcache >$cache_file
7700 echo "not updating unwritable cache $cache_file"
7705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7706 # Let make expand exec_prefix.
7707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7709 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7710 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7711 # trailing colons and then remove the whole line if VPATH becomes empty
7712 # (actually we leave an empty line to preserve line numbers).
7713 if test "x$srcdir" = x.; then
7714 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7715 s/:*\$(srcdir):*/:/;
7716 s/:*\${srcdir}:*/:/;
7718 s/^\([^=]*=[ ]*\):*/\1/;
7724 DEFS=-DHAVE_CONFIG_H
7726 : ${CONFIG_STATUS=./config.status}
7727 ac_clean_files_save=$ac_clean_files
7728 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7729 { echo "$as_me:7729: creating $CONFIG_STATUS" >&5
7730 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7731 cat >$CONFIG_STATUS <<_ACEOF
7733 # Generated automatically by configure.
7734 # Run this file to recreate the current configuration.
7735 # Compiler output produced by configure, useful for debugging
7736 # configure, is in config.log if it exists.
7739 SHELL=\${CONFIG_SHELL-$SHELL}
7740 ac_cs_invocation="\$0 \$@"
7744 cat >>$CONFIG_STATUS <<\_ACEOF
7745 # Be Bourne compatible
7746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7749 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7753 # Name of the executable.
7754 as_me=`echo "$0" |sed 's,.*[\\/],,'`
7756 if expr a : '\(a\)' >/dev/null 2>&1; then
7762 rm -f conf$$ conf$$.exe conf$$.file
7764 if ln -s conf$$.file conf$$ 2>/dev/null; then
7765 # We could just check for DJGPP; but this test a) works b) is more generic
7766 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7767 if test -f conf$$.exe; then
7768 # Don't use ln at all; we don't have any links
7773 elif ln conf$$.file conf$$ 2>/dev/null; then
7778 rm -f conf$$ conf$$.exe conf$$.file
7780 as_executable_p="test -f"
7782 # Support unset when possible.
7783 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7790 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7791 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7792 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7793 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7794 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7795 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7796 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7797 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7800 # We need space, tab and new line, in precisely that order.
7806 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7812 # Files that config.status was made for.
7813 if test -n "$ac_config_files"; then
7814 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7817 if test -n "$ac_config_headers"; then
7818 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7821 if test -n "$ac_config_links"; then
7822 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7825 if test -n "$ac_config_commands"; then
7826 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7829 cat >>$CONFIG_STATUS <<\EOF
7832 \`$as_me' instantiates files from templates according to the
7833 current configuration.
7835 Usage: $0 [OPTIONS] [FILE]...
7837 -h, --help print this help, then exit
7838 -V, --version print version number, then exit
7839 -d, --debug don't remove temporary files
7840 --recheck update $as_me by reconfiguring in the same conditions
7841 --file=FILE[:TEMPLATE]
7842 instantiate the configuration file FILE
7843 --header=FILE[:TEMPLATE]
7844 instantiate the configuration header FILE
7846 Configuration files:
7849 Configuration headers:
7852 Configuration commands:
7855 Report bugs to <bug-autoconf@gnu.org>."
7858 cat >>$CONFIG_STATUS <<EOF
7861 configured by $0, generated by GNU Autoconf 2.52,
7862 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7864 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7865 Free Software Foundation, Inc.
7866 This config.status script is free software; the Free Software Foundation
7867 gives unlimited permission to copy, distribute and modify it."
7872 cat >>$CONFIG_STATUS <<\EOF
7873 # If no file are specified by the user, then we need to provide default
7874 # value. By we need to know if files were specified by the user.
7880 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7881 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7883 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7887 *) # This is not an option, so the user has probably given explicit
7889 ac_need_defaults=false;;
7893 # Handling of the options.
7895 cat >>$CONFIG_STATUS <<EOF
7896 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7897 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7898 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7900 cat >>$CONFIG_STATUS <<\EOF
7901 --version | --vers* | -V )
7902 echo "$ac_cs_version"; exit 0 ;;
7904 # Conflict between --help and --header
7905 { { echo "$as_me:7905: error: ambiguous option: $1
7906 Try \`$0 --help' for more information." >&5
7907 echo "$as_me: error: ambiguous option: $1
7908 Try \`$0 --help' for more information." >&2;}
7909 { (exit 1); exit 1; }; };;
7910 --help | --hel | -h )
7911 echo "$ac_cs_usage"; exit 0 ;;
7912 --debug | --d* | -d )
7914 --file | --fil | --fi | --f )
7916 CONFIG_FILES="$CONFIG_FILES $1"
7917 ac_need_defaults=false;;
7918 --header | --heade | --head | --hea )
7920 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7921 ac_need_defaults=false;;
7924 -*) { { echo "$as_me:7924: error: unrecognized option: $1
7925 Try \`$0 --help' for more information." >&5
7926 echo "$as_me: error: unrecognized option: $1
7927 Try \`$0 --help' for more information." >&2;}
7928 { (exit 1); exit 1; }; } ;;
7930 *) ac_config_targets="$ac_config_targets $1" ;;
7939 ## ----------------------- ##
7940 ## Running config.status. ##
7941 ## ----------------------- ##
7943 This file was extended by $as_me 2.52, executed with
7944 CONFIG_FILES = $CONFIG_FILES
7945 CONFIG_HEADERS = $CONFIG_HEADERS
7946 CONFIG_LINKS = $CONFIG_LINKS
7947 CONFIG_COMMANDS = $CONFIG_COMMANDS
7949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7954 cat >>$CONFIG_STATUS <<EOF
7956 # INIT-COMMANDS section.
7959 AMDEP_TRUE="$AMDEP_TRUE"
7960 ac_aux_dir="$ac_aux_dir"
7964 cat >>$CONFIG_STATUS <<\EOF
7965 for ac_config_target in $ac_config_targets
7967 case "$ac_config_target" in
7968 # Handling of arguments.
7969 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7970 "libfcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libfcgi/Makefile" ;;
7971 "cgi-fcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-fcgi/Makefile" ;;
7972 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
7973 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7974 "fcgi_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fcgi_config.h" ;;
7975 "include/fcgi_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/fcgi_config.h" ;;
7976 *) { { echo "$as_me:7976: error: invalid argument: $ac_config_target" >&5
7977 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7978 { (exit 1); exit 1; }; };;
7982 # If the user did not use the arguments to specify the items to instantiate,
7983 # then the envvar interface is used. Set only those that are not.
7984 # We use the long form for the default assignment because of an extremely
7985 # bizarre bug on SunOS 4.1.3.
7986 if $ac_need_defaults; then
7987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7992 # Create a temporary directory, and hook for its removal unless debugging.
7995 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7996 trap '{ (exit 1); exit 1; }' 1 2 13 15
7999 # Create a (secure) tmp directory for tmp files.
8002 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8003 test -n "$tmp" && test -d "$tmp"
8006 tmp=$TMPDIR/cs$$-$RANDOM
8007 (umask 077 && mkdir $tmp)
8010 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8011 { (exit 1); exit 1; }
8016 cat >>$CONFIG_STATUS <<EOF
8019 # CONFIG_FILES section.
8022 # No need to generate the scripts if there are no CONFIG_FILES.
8023 # This happens for instance when ./config.status config.h
8024 if test -n "\$CONFIG_FILES"; then
8025 # Protect against being on the right side of a sed subst in config.status.
8026 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8027 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8028 s,@SHELL@,$SHELL,;t t
8029 s,@exec_prefix@,$exec_prefix,;t t
8030 s,@prefix@,$prefix,;t t
8031 s,@program_transform_name@,$program_transform_name,;t t
8032 s,@bindir@,$bindir,;t t
8033 s,@sbindir@,$sbindir,;t t
8034 s,@libexecdir@,$libexecdir,;t t
8035 s,@datadir@,$datadir,;t t
8036 s,@sysconfdir@,$sysconfdir,;t t
8037 s,@sharedstatedir@,$sharedstatedir,;t t
8038 s,@localstatedir@,$localstatedir,;t t
8039 s,@libdir@,$libdir,;t t
8040 s,@includedir@,$includedir,;t t
8041 s,@oldincludedir@,$oldincludedir,;t t
8042 s,@infodir@,$infodir,;t t
8043 s,@mandir@,$mandir,;t t
8044 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8045 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8046 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8047 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8048 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8049 s,@build_alias@,$build_alias,;t t
8050 s,@host_alias@,$host_alias,;t t
8051 s,@target_alias@,$target_alias,;t t
8052 s,@ECHO_C@,$ECHO_C,;t t
8053 s,@ECHO_N@,$ECHO_N,;t t
8054 s,@ECHO_T@,$ECHO_T,;t t
8055 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8058 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8059 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8060 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8061 s,@PACKAGE@,$PACKAGE,;t t
8062 s,@VERSION@,$VERSION,;t t
8063 s,@EXEEXT@,$EXEEXT,;t t
8064 s,@OBJEXT@,$OBJEXT,;t t
8065 s,@ACLOCAL@,$ACLOCAL,;t t
8066 s,@AUTOCONF@,$AUTOCONF,;t t
8067 s,@AUTOMAKE@,$AUTOMAKE,;t t
8068 s,@AUTOHEADER@,$AUTOHEADER,;t t
8069 s,@MAKEINFO@,$MAKEINFO,;t t
8070 s,@AMTAR@,$AMTAR,;t t
8071 s,@install_sh@,$install_sh,;t t
8072 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8074 s,@SET_MAKE@,$SET_MAKE,;t t
8075 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8076 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8077 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8078 s,@DEPDIR@,$DEPDIR,;t t
8080 s,@CFLAGS@,$CFLAGS,;t t
8081 s,@LDFLAGS@,$LDFLAGS,;t t
8082 s,@CPPFLAGS@,$CPPFLAGS,;t t
8083 s,@ac_ct_CC@,$ac_ct_CC,;t t
8084 s,@am__include@,$am__include,;t t
8085 s,@am__quote@,$am__quote,;t t
8086 s,@CCDEPMODE@,$CCDEPMODE,;t t
8088 s,@build@,$build,;t t
8089 s,@build_cpu@,$build_cpu,;t t
8090 s,@build_vendor@,$build_vendor,;t t
8091 s,@build_os@,$build_os,;t t
8093 s,@host_cpu@,$host_cpu,;t t
8094 s,@host_vendor@,$host_vendor,;t t
8095 s,@host_os@,$host_os,;t t
8098 s,@RANLIB@,$RANLIB,;t t
8099 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8100 s,@STRIP@,$STRIP,;t t
8101 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8102 s,@LIBTOOL@,$LIBTOOL,;t t
8104 s,@ac_ct_AR@,$ac_ct_AR,;t t
8105 s,@threaded@,$threaded,;t t
8106 s,@HAVE_LIBPTHREAD@,$HAVE_LIBPTHREAD,;t t
8107 s,@LIBOBJS@,$LIBOBJS,;t t
8108 s,@SYSTEM@,$SYSTEM,;t t
8110 s,@CCDEFS@,$CCDEFS,;t t
8115 cat >>$CONFIG_STATUS <<\EOF
8116 # Split the substitutions into bite-sized pieces for seds with
8117 # small command number limits, like on Digital OSF/1 and HP-UX.
8119 ac_sed_frag=1 # Number of current file.
8120 ac_beg=1 # First line for current file.
8121 ac_end=$ac_max_sed_lines # Line after last line for current file.
8124 while $ac_more_lines; do
8125 if test $ac_beg -gt 1; then
8126 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8128 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8130 if test ! -s $tmp/subs.frag; then
8133 # The purpose of the label and of the branching condition is to
8134 # speed up the sed processing (if there are no `@' at all, there
8135 # is no need to browse any of the substitutions).
8136 # These are the two extra sed commands mentioned above.
8138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8139 if test -z "$ac_sed_cmds"; then
8140 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8142 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8144 ac_sed_frag=`expr $ac_sed_frag + 1`
8146 ac_end=`expr $ac_end + $ac_max_sed_lines`
8149 if test -z "$ac_sed_cmds"; then
8152 fi # test -n "$CONFIG_FILES"
8155 cat >>$CONFIG_STATUS <<\EOF
8156 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8157 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8159 - | *:- | *:-:* ) # input from stdin
8161 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8162 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8163 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8165 * ) ac_file_in=$ac_file.in ;;
8168 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8169 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8170 X"$ac_file" : 'X\(//\)[^/]' \| \
8171 X"$ac_file" : 'X\(//\)$' \| \
8172 X"$ac_file" : 'X\(/\)' \| \
8173 . : '\(.\)' 2>/dev/null ||
8175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8177 /^X\(\/\/\)$/{ s//\1/; q; }
8178 /^X\(\/\).*/{ s//\1/; q; }
8180 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8182 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8186 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8187 case $as_mkdir_dir in
8188 # Skip DOS drivespec
8189 ?:) as_incr_dir=$as_mkdir_dir ;;
8191 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8192 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8197 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
8198 # A "../" for each directory in $ac_dir_suffix.
8199 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8201 ac_dir_suffix= ac_dots=
8206 if test -z "$ac_dots"; then
8209 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8212 ac_srcdir=$srcdir$ac_dir_suffix;
8213 ac_top_srcdir=$srcdir ;;
8215 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8216 ac_top_srcdir=$ac_dots$srcdir ;;
8220 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8221 *) ac_INSTALL=$ac_dots$INSTALL ;;
8224 if test x"$ac_file" != x-; then
8225 { echo "$as_me:8225: creating $ac_file" >&5
8226 echo "$as_me: creating $ac_file" >&6;}
8229 # Let's still pretend it is `configure' which instantiates (i.e., don't
8230 # use $as_me), people would be surprised to read:
8231 # /* config.h. Generated automatically by config.status. */
8232 configure_input="Generated automatically from `echo $ac_file_in |
8233 sed 's,.*/,,'` by configure."
8235 # First look for the input files in the build tree, otherwise in the
8237 ac_file_inputs=`IFS=:
8238 for f in $ac_file_in; do
8240 -) echo $tmp/stdin ;;
8242 # Absolute (can't be DOS-style, as IFS=:)
8243 test -f "$f" || { { echo "$as_me:8243: error: cannot find input file: $f" >&5
8244 echo "$as_me: error: cannot find input file: $f" >&2;}
8245 { (exit 1); exit 1; }; }
8248 if test -f "$f"; then
8251 elif test -f "$srcdir/$f"; then
8256 { { echo "$as_me:8256: error: cannot find input file: $f" >&5
8257 echo "$as_me: error: cannot find input file: $f" >&2;}
8258 { (exit 1); exit 1; }; }
8261 done` || { (exit 1); exit 1; }
8263 cat >>$CONFIG_STATUS <<EOF
8267 cat >>$CONFIG_STATUS <<\EOF
8269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8270 s,@configure_input@,$configure_input,;t t
8271 s,@srcdir@,$ac_srcdir,;t t
8272 s,@top_srcdir@,$ac_top_srcdir,;t t
8273 s,@INSTALL@,$ac_INSTALL,;t t
8274 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8276 if test x"$ac_file" != x-; then
8277 mv $tmp/out $ac_file
8285 cat >>$CONFIG_STATUS <<\EOF
8288 # CONFIG_HEADER section.
8291 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8292 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8294 # ac_d sets the value in "#define NAME VALUE" lines.
8295 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8296 ac_dB='[ ].*$,\1#\2'
8299 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8300 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8301 ac_uB='$,\1#\2define\3'
8305 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8308 - | *:- | *:-:* ) # input from stdin
8310 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8312 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8314 * ) ac_file_in=$ac_file.in ;;
8317 test x"$ac_file" != x- && { echo "$as_me:8317: creating $ac_file" >&5
8318 echo "$as_me: creating $ac_file" >&6;}
8320 # First look for the input files in the build tree, otherwise in the
8322 ac_file_inputs=`IFS=:
8323 for f in $ac_file_in; do
8325 -) echo $tmp/stdin ;;
8327 # Absolute (can't be DOS-style, as IFS=:)
8328 test -f "$f" || { { echo "$as_me:8328: error: cannot find input file: $f" >&5
8329 echo "$as_me: error: cannot find input file: $f" >&2;}
8330 { (exit 1); exit 1; }; }
8333 if test -f "$f"; then
8336 elif test -f "$srcdir/$f"; then
8341 { { echo "$as_me:8341: error: cannot find input file: $f" >&5
8342 echo "$as_me: error: cannot find input file: $f" >&2;}
8343 { (exit 1); exit 1; }; }
8346 done` || { (exit 1); exit 1; }
8347 # Remove the trailing spaces.
8348 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8352 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8353 # `conftest.undefs', that substitutes the proper values into
8354 # config.h.in to produce config.h. The first handles `#define'
8355 # templates, and the second `#undef' templates.
8356 # And first: Protect against being on the right side of a sed subst in
8357 # config.status. Protect against being in an unquoted here document
8359 rm -f conftest.defines conftest.undefs
8360 # Using a here document instead of a string reduces the quoting nightmare.
8361 # Putting comments in sed scripts is not portable.
8363 # `end' is used to avoid that the second main sed command (meant for
8364 # 0-ary CPP macros) applies to n-ary macro definitions.
8365 # See the Autoconf documentation for `clear'.
8366 cat >confdef2sed.sed <<\EOF
8371 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8373 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8376 # If some macros were called several times there might be several times
8377 # the same #defines, which is useless. Nevertheless, we may not want to
8378 # sort them, since we want the *last* AC-DEFINE to be honored.
8379 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8380 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8381 rm -f confdef2sed.sed
8383 # This sed command replaces #undef with comments. This is necessary, for
8384 # example, in the case of _POSIX_SOURCE, which is predefined and required
8385 # on some systems where configure will not decide to define it.
8386 cat >>conftest.undefs <<\EOF
8387 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8390 # Break up conftest.defines because some shells have a limit on the size
8391 # of here documents, and old seds have small limits too (100 cmds).
8392 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8393 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8394 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8395 echo ' :' >>$CONFIG_STATUS
8397 while grep . conftest.defines >/dev/null
8399 # Write a limited-size here document to $tmp/defines.sed.
8400 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8401 # Speed up: don't consider the non `#define' lines.
8402 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8403 # Work around the forget-to-reset-the-flag bug.
8404 echo 't clr' >>$CONFIG_STATUS
8405 echo ': clr' >>$CONFIG_STATUS
8406 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8408 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8412 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8413 rm -f conftest.defines
8414 mv conftest.tail conftest.defines
8416 rm -f conftest.defines
8417 echo ' fi # egrep' >>$CONFIG_STATUS
8418 echo >>$CONFIG_STATUS
8420 # Break up conftest.undefs because some shells have a limit on the size
8421 # of here documents, and old seds have small limits too (100 cmds).
8422 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8424 while grep . conftest.undefs >/dev/null
8426 # Write a limited-size here document to $tmp/undefs.sed.
8427 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8428 # Speed up: don't consider the non `#undef'
8429 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8430 # Work around the forget-to-reset-the-flag bug.
8431 echo 't clr' >>$CONFIG_STATUS
8432 echo ': clr' >>$CONFIG_STATUS
8433 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8435 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8439 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8440 rm -f conftest.undefs
8441 mv conftest.tail conftest.undefs
8443 rm -f conftest.undefs
8445 cat >>$CONFIG_STATUS <<\EOF
8446 # Let's still pretend it is `configure' which instantiates (i.e., don't
8447 # use $as_me), people would be surprised to read:
8448 # /* config.h. Generated automatically by config.status. */
8449 if test x"$ac_file" = x-; then
8450 echo "/* Generated automatically by configure. */" >$tmp/config.h
8452 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
8454 cat $tmp/in >>$tmp/config.h
8456 if test x"$ac_file" != x-; then
8457 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8458 { echo "$as_me:8458: $ac_file is unchanged" >&5
8459 echo "$as_me: $ac_file is unchanged" >&6;}
8461 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8462 X"$ac_file" : 'X\(//\)[^/]' \| \
8463 X"$ac_file" : 'X\(//\)$' \| \
8464 X"$ac_file" : 'X\(/\)' \| \
8465 . : '\(.\)' 2>/dev/null ||
8467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8469 /^X\(\/\/\)$/{ s//\1/; q; }
8470 /^X\(\/\).*/{ s//\1/; q; }
8472 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8474 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8478 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8479 case $as_mkdir_dir in
8480 # Skip DOS drivespec
8481 ?:) as_incr_dir=$as_mkdir_dir ;;
8483 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8484 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8491 mv $tmp/config.h $ac_file
8497 # Run the commands associated with the file.
8499 fcgi_config.h ) # update the timestamp
8500 echo timestamp >"./stamp-h1"
8502 include/fcgi_config.h ) # update the timestamp
8503 echo timestamp >"include/stamp-h1"
8508 cat >>$CONFIG_STATUS <<\EOF
8511 # CONFIG_COMMANDS section.
8513 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8514 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8515 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8519 test x"$AMDEP_TRUE" != x"" ||
8520 for mf in $CONFIG_FILES; do
8522 Makefile) dirpart=.;;
8523 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
8526 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8527 # Extract the definition of DEP_FILES from the Makefile without
8529 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8530 test -z "$DEPDIR" && continue
8531 # When using ansi2knr, U may be empty or an underscore; expand it
8532 U=`sed -n -e '/^U = / s///p' < "$mf"`
8533 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8534 # We invoke sed twice because it is the simplest approach to
8535 # changing $(DEPDIR) to its actual value in the expansion.
8536 for file in `sed -n -e '
8537 /^DEP_FILES = .*\\\\$/ {
8546 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8547 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8548 # Make sure the directory exists.
8549 test -f "$dirpart/$file" && continue
8550 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
8551 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
8552 # echo "creating $dirpart/$file"
8553 echo '# dummy' > "$dirpart/$file"
8561 cat >>$CONFIG_STATUS <<\EOF
8563 { (exit 0); exit 0; }
8565 chmod +x $CONFIG_STATUS
8566 ac_clean_files=$ac_clean_files_save
8568 # configure is writing to config.log, and then calls config.status.
8569 # config.status does its own redirection, appending to config.log.
8570 # Unfortunately, on DOS this fails, as config.log is still kept open
8571 # by configure, so config.status won't be able to write to it; its
8572 # output is simply discarded. So we exec the FD to /dev/null,
8573 # effectively closing config.log, so it can be properly (re)opened and
8574 # appended to by config.status. When coming back to configure, we
8575 # need to make the FD available again.
8576 if test "$no_create" != yes; then
8579 $SHELL $CONFIG_STATUS || ac_cs_success=false
8581 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8582 # would make configure fail if this is the last instruction.
8583 $ac_cs_success || { (exit 1); exit 1; }