2 # From configure.in Revision: 1.158 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52d.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Find the correct PATH separator. Usually this is `:', but
12 # DJGPP uses `;' like DOS.
13 if test "X${PATH_SEPARATOR+set}" != Xset; then
14 UNAME=${UNAME-`uname 2>/dev/null`}
16 *-DOS) lt_cv_sys_path_separator=';' ;;
17 *) lt_cv_sys_path_separator=':' ;;
19 PATH_SEPARATOR=$lt_cv_sys_path_separator
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
27 # Remove one level of quotation (which was required for Make).
28 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
33 if test "X$1" = X--no-reexec; then
34 # Discard the --no-reexec flag, and continue.
36 elif test "X$1" = X--fallback-echo; then
37 # Avoid inline document here, it may be left over
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40 # Yippee, $echo works!
43 # Restart under the correct shell.
44 exec $SHELL "$0" --no-reexec ${1+"$@"}
47 if test "X$1" = X--fallback-echo; then
48 # used as fallback echo
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66 echo_test_string="`eval $cmd`" &&
67 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76 test "X$echo_testing_string" = "X$echo_test_string"; then
79 # The Solaris, AIX, and Digital Unix default echo programs unquote
80 # backslashes. This makes it impossible to quote backslashes using
81 # echo "$something" | sed 's/\\/\\\\/g'
83 # So, first we look for a working echo in the user's PATH.
85 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86 for dir in $PATH /usr/ucb; do
87 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90 test "X$echo_testing_string" = "X$echo_test_string"; then
97 if test "X$echo" = Xecho; then
98 # We didn't find a better echo, so look for alternatives.
99 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101 test "X$echo_testing_string" = "X$echo_test_string"; then
102 # This shell has a builtin print -r that does the trick.
104 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105 test "X$CONFIG_SHELL" != X/bin/ksh; then
106 # If we have ksh, try running configure again with it.
107 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108 export ORIGINAL_CONFIG_SHELL
109 CONFIG_SHELL=/bin/ksh
111 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
115 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117 test "X$echo_testing_string" = "X$echo_test_string"; then
120 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
126 SHELL="$CONFIG_SHELL"
128 echo="$CONFIG_SHELL $0 --fallback-echo"
129 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130 test "X$echo_testing_string" = 'X\t' &&
131 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132 test "X$echo_testing_string" = "X$echo_test_string"; then
133 echo="$CONFIG_SHELL $0 --fallback-echo"
135 # maybe with a smaller string...
138 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
146 if test "$prev" != 'sed 50q "$0"'; then
147 echo_test_string=`eval $prev`
148 export echo_test_string
149 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
151 # Oops. We lost completely, so just stick with echo.
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
167 # Avoid depending upon Character Ranges.
168 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
169 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
170 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
171 as_cr_digits='0123456789'
172 as_cr_alnum=$as_cr_Letters$as_cr_digits
174 # Sed expression to map a string onto a valid variable name.
175 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
177 # Sed expression to map a string onto a valid CPP name.
178 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
180 ## --------------------- ##
181 ## M4sh Initialization. ##
182 ## --------------------- ##
184 # Be Bourne compatible
185 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
188 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
192 # Name of the executable.
193 as_me=`echo "$0" |sed 's,.*[\\/],,'`
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 as_executable_p="test -f"
221 # Support unset when possible.
222 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
229 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
230 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
231 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
232 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
233 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
234 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
235 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
236 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
239 # We need space, tab and new line, in precisely that order.
245 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix=/usr/local
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 ac_unique_file="src/main/radiusd.c"
269 # Factoring default headers for most tests.
270 ac_includes_default="\
273 # include <sys/types.h>
276 # include <sys/stat.h>
287 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <strings.h>
296 # include <inttypes.h>
306 ac_subdirs_all="$ac_subdirs_all libltdl"
307 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
309 # Initialize some variables set by options.
311 ac_init_version=false
312 # The variables have the same names as the options, with
313 # dashes changed to underlines.
321 program_transform_name=s,x,x,
329 # Installation directory options.
330 # These are left unexpanded so users can "make install exec_prefix=/foo"
331 # and all the variables that are supposed to be based on exec_prefix
332 # by default will actually change.
333 # Use braces instead of parens because sh, perl, etc. also accept them.
334 bindir='${exec_prefix}/bin'
335 sbindir='${exec_prefix}/sbin'
336 libexecdir='${exec_prefix}/libexec'
337 datadir='${prefix}/share'
338 sysconfdir='${prefix}/etc'
339 sharedstatedir='${prefix}/com'
340 localstatedir='${prefix}/var'
341 libdir='${exec_prefix}/lib'
342 includedir='${prefix}/include'
343 oldincludedir='/usr/include'
344 infodir='${prefix}/info'
345 mandir='${prefix}/man'
347 # Identity of this package.
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
688 # FIXME: should be removed in autoconf 3.0.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
709 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
710 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
762 # Report the --help message.
764 if test "$ac_init_help" = "long"; then
765 # Omit some internal or obsolete options to make the list less imposing.
766 # This message is too long to be a string in the A/UX 3.1 sh.
768 \`configure' configures this package to adapt to many kinds of systems.
770 Usage: $0 [OPTION]... [VAR=VALUE]...
772 To assign environment variables (e.g., CC, CFLAGS...), specify them as
773 VAR=VALUE. See below for descriptions of some of the useful variables.
775 Defaults for the options are specified in brackets.
778 -h, --help display this help and exit
779 --help=short display options specific to this package
780 --help=recursive display the short help of all the included packages
781 -V, --version display version information and exit
782 -q, --quiet, --silent do not print \`checking...' messages
783 --cache-file=FILE cache test results in FILE [disabled]
784 -C, --config-cache alias for \`--cache-file=config.cache'
785 -n, --no-create do not create output files
786 --srcdir=DIR find the sources in DIR [configure dir or \`..']
791 Installation directories:
792 --prefix=PREFIX install architecture-independent files in PREFIX
794 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
797 By default, \`make install' will install all the files in
798 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
799 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
800 for instance \`--prefix=\$HOME'.
802 For better control, use the options below.
804 Fine tuning of the installation directories:
805 --bindir=DIR user executables [EPREFIX/bin]
806 --sbindir=DIR system admin executables [EPREFIX/sbin]
807 --libexecdir=DIR program executables [EPREFIX/libexec]
808 --datadir=DIR read-only architecture-independent data [PREFIX/share]
809 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
810 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
811 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
812 --libdir=DIR object code libraries [EPREFIX/lib]
813 --includedir=DIR C header files [PREFIX/include]
814 --oldincludedir=DIR C header files for non-gcc [/usr/include]
815 --infodir=DIR info documentation [PREFIX/info]
816 --mandir=DIR man documentation [PREFIX/man]
822 --build=BUILD configure for building on BUILD [guessed]
823 --host=HOST build programs to run on HOST [BUILD]
827 if test -n "$ac_init_help"; then
832 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
833 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
834 --enable-shared=PKGS build shared libraries default=yes
835 --enable-static=PKGS build static libraries default=yes
836 --enable-fast-install=PKGS optimize for fast installation default=yes
837 --disable-libtool-lock avoid locking (might break parallel builds)
838 --enable-strict-dependencies Fail configure on lack of module dependancy.
839 --disable-ltdl-install do not install libltdl
840 --enable-developer Enables features of interest to developers.
843 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
844 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
845 --with-gnu-ld assume the C compiler uses GNU ld default=no
846 --with-pic try to use only PIC/non-PIC objects default=use both
847 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
848 --with-radacctdir=PATH Directory for detail files LOGDIR/radacct
849 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
850 --with-dict-nocase Make dictionary case-independant (default=yes)
851 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
852 --with-threads Use threads, if available. (default=yes)
853 --with-snmp Compile in SNMP support. (default=yes)
854 --with-static-modules=QUOTED-MODULE-LIST
855 --with-experimental-modules Use experimental and unstable modules. (default=no)
856 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
857 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
859 Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
874 if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 if test "$ac_dir" != .; then
880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
881 # A "../" for each directory in $ac_dir_suffix.
882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
884 ac_dir_suffix= ac_top_builddir=
888 .) # No --srcdir option. We are building in place.
890 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 [\\/]* | ?:[\\/]* ) # Absolute path.
896 ac_srcdir=$srcdir$ac_dir_suffix;
897 ac_top_srcdir=$srcdir ;;
899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
903 # Check for guested configure; otherwise get Cygnus style configure.
904 if test -f $ac_srcdir/configure.gnu; then
906 $SHELL $ac_srcdir/configure.gnu --help=recursive
907 elif test -f $ac_srcdir/configure; then
909 $SHELL $ac_srcdir/configure --help=recursive
910 elif test -f $ac_srcdir/configure.ac ||
911 test -f $ac_srcdir/configure.in; then
915 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
921 test -n "$ac_init_help" && exit 0
922 if $ac_init_version; then
925 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
926 Free Software Foundation, Inc.
927 This configure script is free software; the Free Software Foundation
928 gives unlimited permission to copy, distribute and modify it.
934 This file contains any messages produced by compilers while
935 running configure, to aid debugging if configure makes a mistake.
937 It was created by $as_me, which was
938 generated by GNU Autoconf 2.52d. Invocation command line was
949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
958 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
959 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
962 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
963 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
964 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978 # Keep a trace of the command line.
979 # Strip out --no-create and --no-recursion so they do not pile up.
980 # Also quote any args containing shell meta-characters.
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c) ;;
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
990 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
991 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
992 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
994 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
997 # Get rid of the leading space.
1000 # When interrupted or exit'd, cleanup temporary files, and complete
1001 # config.log. We remove comments because anyway the quotes in there
1002 # would cause problems or look ugly.
1003 # WARNING: Be sure not to use single quotes in there, as some shells,
1004 # such as our DU 5.0 friend, will then `close' the trap.
1005 trap 'exit_status=$?
1006 # Save into config.log some information that might help in debugging.
1010 ## ---------------- ##
1011 ## Cache variables. ##
1012 ## ---------------- ##
1015 # The following way of writing the cache mishandles newlines in values,
1018 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1021 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1026 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1031 if test -s confdefs.h; then
1038 sed "/^$/d" confdefs.h
1041 test "$ac_signal" != 0 &&
1042 echo "$as_me: caught signal $ac_signal"
1043 echo "$as_me: exit $exit_status"
1045 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1048 for ac_signal in 1 2 13 15; do
1049 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1054 rm -rf conftest* confdefs.h
1055 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1058 # Let the site file select an alternate cache file if it wants to.
1059 # Prefer explicitly selected file to automatically selected ones.
1060 if test -z "$CONFIG_SITE"; then
1061 if test "x$prefix" != xNONE; then
1062 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1064 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1067 for ac_site_file in $CONFIG_SITE; do
1068 if test -r "$ac_site_file"; then
1069 { echo "$as_me:1069: loading site script $ac_site_file" >&5
1070 echo "$as_me: loading site script $ac_site_file" >&6;}
1071 sed 's/^/| /' "$ac_site_file" >&5
1076 if test -r "$cache_file"; then
1077 # Some versions of bash will fail to source /dev/null (special
1078 # files actually), so we avoid doing that.
1079 if test -f "$cache_file"; then
1080 { echo "$as_me:1080: loading cache $cache_file" >&5
1081 echo "$as_me: loading cache $cache_file" >&6;}
1083 [\\/]* | ?:[\\/]* ) . $cache_file;;
1084 *) . ./$cache_file;;
1088 { echo "$as_me:1088: creating cache $cache_file" >&5
1089 echo "$as_me: creating cache $cache_file" >&6;}
1093 # Check that the precious variables saved in the cache have kept the same
1095 ac_cache_corrupted=false
1096 for ac_var in `(set) 2>&1 |
1097 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1098 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1099 eval ac_new_set=\$ac_env_${ac_var}_set
1100 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1101 eval ac_new_val="\$ac_env_${ac_var}_value"
1102 case $ac_old_set,$ac_new_set in
1104 { echo "$as_me:1104: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1105 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1106 ac_cache_corrupted=: ;;
1108 { echo "$as_me:1108: error: \`$ac_var' was not set in the previous run" >&5
1109 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1110 ac_cache_corrupted=: ;;
1113 if test "x$ac_old_val" != "x$ac_new_val"; then
1114 { echo "$as_me:1114: error: \`$ac_var' has changed since the previous run:" >&5
1115 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1116 { echo "$as_me:1116: former value: $ac_old_val" >&5
1117 echo "$as_me: former value: $ac_old_val" >&2;}
1118 { echo "$as_me:1118: current value: $ac_new_val" >&5
1119 echo "$as_me: current value: $ac_new_val" >&2;}
1120 ac_cache_corrupted=:
1123 # Pass precious variables to config.status. It doesn't matter if
1124 # we pass some twice (in addition to the command line arguments).
1125 if test "$ac_new_set" = set; then
1127 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1128 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1129 ac_configure_args="$ac_configure_args '$ac_arg'"
1131 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1136 if $ac_cache_corrupted; then
1137 { echo "$as_me:1137: error: changes in the environment can compromise the build" >&5
1138 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1139 { { echo "$as_me:1139: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1140 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1141 { (exit 1); exit 1; }; }
1145 ac_cpp='$CPP $CPPFLAGS'
1146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1150 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1151 *c*,-n*) ECHO_N= ECHO_C='
1153 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1154 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1156 echo "#! $SHELL" >conftest.sh
1157 echo "exit 0" >>conftest.sh
1158 chmod +x conftest.sh
1159 if { (echo "$as_me:1159: PATH=\".;.\"; conftest.sh") >&5
1160 (PATH=".;."; conftest.sh) 2>&5
1162 echo "$as_me:1162: \$? = $ac_status" >&5
1163 (exit $ac_status); }; then
1164 ac_path_separator=';'
1168 PATH_SEPARATOR="$ac_path_separator"
1171 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1173 RADIUSD_MAJOR_VERSION=0
1174 RADIUSD_MINOR_VERSION=7-pre
1175 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1178 ac_cpp='$CPP $CPPFLAGS'
1179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1182 if test -n "$ac_tool_prefix"; then
1183 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1184 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1185 echo "$as_me:1185: checking for $ac_word" >&5
1186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1187 if test "${ac_cv_prog_CC+set}" = set; then
1188 echo $ECHO_N "(cached) $ECHO_C" >&6
1190 if test -n "$CC"; then
1191 ac_cv_prog_CC="$CC" # Let the user override the test.
1193 ac_save_IFS=$IFS; IFS=$ac_path_separator
1195 for ac_dir in $ac_dummy; do
1197 test -z "$ac_dir" && ac_dir=.
1198 $as_executable_p "$ac_dir/$ac_word" || continue
1199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1200 echo "$as_me:1200: found $ac_dir/$ac_word" >&5
1207 if test -n "$CC"; then
1208 echo "$as_me:1208: result: $CC" >&5
1209 echo "${ECHO_T}$CC" >&6
1211 echo "$as_me:1211: result: no" >&5
1212 echo "${ECHO_T}no" >&6
1216 if test -z "$ac_cv_prog_CC"; then
1218 # Extract the first word of "gcc", so it can be a program name with args.
1219 set dummy gcc; ac_word=$2
1220 echo "$as_me:1220: checking for $ac_word" >&5
1221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1223 echo $ECHO_N "(cached) $ECHO_C" >&6
1225 if test -n "$ac_ct_CC"; then
1226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1228 ac_save_IFS=$IFS; IFS=$ac_path_separator
1230 for ac_dir in $ac_dummy; do
1232 test -z "$ac_dir" && ac_dir=.
1233 $as_executable_p "$ac_dir/$ac_word" || continue
1234 ac_cv_prog_ac_ct_CC="gcc"
1235 echo "$as_me:1235: found $ac_dir/$ac_word" >&5
1241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1242 if test -n "$ac_ct_CC"; then
1243 echo "$as_me:1243: result: $ac_ct_CC" >&5
1244 echo "${ECHO_T}$ac_ct_CC" >&6
1246 echo "$as_me:1246: result: no" >&5
1247 echo "${ECHO_T}no" >&6
1255 if test -z "$CC"; then
1256 if test -n "$ac_tool_prefix"; then
1257 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1258 set dummy ${ac_tool_prefix}cc; ac_word=$2
1259 echo "$as_me:1259: checking for $ac_word" >&5
1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261 if test "${ac_cv_prog_CC+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 if test -n "$CC"; then
1265 ac_cv_prog_CC="$CC" # Let the user override the test.
1267 ac_save_IFS=$IFS; IFS=$ac_path_separator
1269 for ac_dir in $ac_dummy; do
1271 test -z "$ac_dir" && ac_dir=.
1272 $as_executable_p "$ac_dir/$ac_word" || continue
1273 ac_cv_prog_CC="${ac_tool_prefix}cc"
1274 echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1281 if test -n "$CC"; then
1282 echo "$as_me:1282: result: $CC" >&5
1283 echo "${ECHO_T}$CC" >&6
1285 echo "$as_me:1285: result: no" >&5
1286 echo "${ECHO_T}no" >&6
1290 if test -z "$ac_cv_prog_CC"; then
1292 # Extract the first word of "cc", so it can be a program name with args.
1293 set dummy cc; ac_word=$2
1294 echo "$as_me:1294: checking for $ac_word" >&5
1295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1296 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1297 echo $ECHO_N "(cached) $ECHO_C" >&6
1299 if test -n "$ac_ct_CC"; then
1300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1302 ac_save_IFS=$IFS; IFS=$ac_path_separator
1304 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 $as_executable_p "$ac_dir/$ac_word" || continue
1308 ac_cv_prog_ac_ct_CC="cc"
1309 echo "$as_me:1309: found $ac_dir/$ac_word" >&5
1315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1316 if test -n "$ac_ct_CC"; then
1317 echo "$as_me:1317: result: $ac_ct_CC" >&5
1318 echo "${ECHO_T}$ac_ct_CC" >&6
1320 echo "$as_me:1320: result: no" >&5
1321 echo "${ECHO_T}no" >&6
1330 if test -z "$CC"; then
1331 # Extract the first word of "cc", so it can be a program name with args.
1332 set dummy cc; ac_word=$2
1333 echo "$as_me:1333: checking for $ac_word" >&5
1334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1335 if test "${ac_cv_prog_CC+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 if test -n "$CC"; then
1339 ac_cv_prog_CC="$CC" # Let the user override the test.
1342 ac_save_IFS=$IFS; IFS=$ac_path_separator
1344 for ac_dir in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir=.
1347 $as_executable_p "$ac_dir/$ac_word" || continue
1348 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1349 ac_prog_rejected=yes
1353 echo "$as_me:1353: found $ac_dir/$ac_word" >&5
1357 if test $ac_prog_rejected = yes; then
1358 # We found a bogon in the path, so make sure we never use it.
1359 set dummy $ac_cv_prog_CC
1361 if test $# != 0; then
1362 # We chose a different compiler from the bogus one.
1363 # However, it has the same basename, so the bogon will be chosen
1364 # first if we set CC to just the basename; use the full file name.
1366 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1374 if test -n "$CC"; then
1375 echo "$as_me:1375: result: $CC" >&5
1376 echo "${ECHO_T}$CC" >&6
1378 echo "$as_me:1378: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1383 if test -z "$CC"; then
1384 if test -n "$ac_tool_prefix"; then
1387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1389 echo "$as_me:1389: checking for $ac_word" >&5
1390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391 if test "${ac_cv_prog_CC+set}" = set; then
1392 echo $ECHO_N "(cached) $ECHO_C" >&6
1394 if test -n "$CC"; then
1395 ac_cv_prog_CC="$CC" # Let the user override the test.
1397 ac_save_IFS=$IFS; IFS=$ac_path_separator
1399 for ac_dir in $ac_dummy; do
1401 test -z "$ac_dir" && ac_dir=.
1402 $as_executable_p "$ac_dir/$ac_word" || continue
1403 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1404 echo "$as_me:1404: found $ac_dir/$ac_word" >&5
1411 if test -n "$CC"; then
1412 echo "$as_me:1412: result: $CC" >&5
1413 echo "${ECHO_T}$CC" >&6
1415 echo "$as_me:1415: result: no" >&5
1416 echo "${ECHO_T}no" >&6
1419 test -n "$CC" && break
1422 if test -z "$CC"; then
1426 # Extract the first word of "$ac_prog", so it can be a program name with args.
1427 set dummy $ac_prog; ac_word=$2
1428 echo "$as_me:1428: checking for $ac_word" >&5
1429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 if test -n "$ac_ct_CC"; then
1434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436 ac_save_IFS=$IFS; IFS=$ac_path_separator
1438 for ac_dir in $ac_dummy; do
1440 test -z "$ac_dir" && ac_dir=.
1441 $as_executable_p "$ac_dir/$ac_word" || continue
1442 ac_cv_prog_ac_ct_CC="$ac_prog"
1443 echo "$as_me:1443: found $ac_dir/$ac_word" >&5
1449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1450 if test -n "$ac_ct_CC"; then
1451 echo "$as_me:1451: result: $ac_ct_CC" >&5
1452 echo "${ECHO_T}$ac_ct_CC" >&6
1454 echo "$as_me:1454: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1458 test -n "$ac_ct_CC" && break
1466 test -z "$CC" && { { echo "$as_me:1466: error: no acceptable cc found in \$PATH" >&5
1467 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1468 { (exit 1); exit 1; }; }
1470 # Provide some information about the compiler.
1471 echo "$as_me:1471:" \
1472 "checking for C compiler version" >&5
1473 ac_compiler=`set X $ac_compile; echo $2`
1474 { (eval echo "$as_me:1474: \"$ac_compiler --version </dev/null >&5\"") >&5
1475 (eval $ac_compiler --version </dev/null >&5) 2>&5
1477 echo "$as_me:1477: \$? = $ac_status" >&5
1478 (exit $ac_status); }
1479 { (eval echo "$as_me:1479: \"$ac_compiler -v </dev/null >&5\"") >&5
1480 (eval $ac_compiler -v </dev/null >&5) 2>&5
1482 echo "$as_me:1482: \$? = $ac_status" >&5
1483 (exit $ac_status); }
1484 { (eval echo "$as_me:1484: \"$ac_compiler -V </dev/null >&5\"") >&5
1485 (eval $ac_compiler -V </dev/null >&5) 2>&5
1487 echo "$as_me:1487: \$? = $ac_status" >&5
1488 (exit $ac_status); }
1490 cat >conftest.$ac_ext <<_ACEOF
1491 #line 1491 "configure"
1492 #include "confdefs.h"
1494 #ifdef F77_DUMMY_MAIN
1498 int F77_DUMMY_MAIN() { return 1; }
1508 ac_clean_files_save=$ac_clean_files
1509 ac_clean_files="$ac_clean_files a.out a.exe"
1510 # Try to create an executable without -o first, disregard a.out.
1511 # It will help us diagnose broken compilers, and finding out an intuition
1513 echo "$as_me:1513: checking for C compiler default output" >&5
1514 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1516 if { (eval echo "$as_me:1516: \"$ac_link_default\"") >&5
1517 (eval $ac_link_default) 2>&5
1519 echo "$as_me:1519: \$? = $ac_status" >&5
1520 (exit $ac_status); }; then
1521 # Find the output, starting from the most likely. This scheme is
1522 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1524 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1525 ls a.out conftest 2>/dev/null;
1526 ls a.* conftest.* 2>/dev/null`; do
1528 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1529 a.out ) # We found the default executable, but exeext='' is most
1532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1533 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1540 echo "$as_me: failed program was:" >&5
1541 cat conftest.$ac_ext >&5
1542 { { echo "$as_me:1542: error: C compiler cannot create executables" >&5
1543 echo "$as_me: error: C compiler cannot create executables" >&2;}
1544 { (exit 77); exit 77; }; }
1547 ac_exeext=$ac_cv_exeext
1548 echo "$as_me:1548: result: $ac_file" >&5
1549 echo "${ECHO_T}$ac_file" >&6
1551 # Check the compiler produces executables we can run. If not, either
1552 # the compiler is broken, or we cross compile.
1553 echo "$as_me:1553: checking whether the C compiler works" >&5
1554 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1555 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1556 # If not cross compiling, check that we can run a simple program.
1557 if test "$cross_compiling" != yes; then
1558 if { ac_try='./$ac_file'
1559 { (eval echo "$as_me:1559: \"$ac_try\"") >&5
1562 echo "$as_me:1562: \$? = $ac_status" >&5
1563 (exit $ac_status); }; }; then
1566 if test "$cross_compiling" = maybe; then
1569 { { echo "$as_me:1569: error: cannot run C compiled programs.
1570 If you meant to cross compile, use \`--host'." >&5
1571 echo "$as_me: error: cannot run C compiled programs.
1572 If you meant to cross compile, use \`--host'." >&2;}
1573 { (exit 1); exit 1; }; }
1577 echo "$as_me:1577: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1580 rm -f a.out a.exe conftest$ac_cv_exeext
1581 ac_clean_files=$ac_clean_files_save
1582 # Check the compiler produces executables we can run. If not, either
1583 # the compiler is broken, or we cross compile.
1584 echo "$as_me:1584: checking whether we are cross compiling" >&5
1585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1586 echo "$as_me:1586: result: $cross_compiling" >&5
1587 echo "${ECHO_T}$cross_compiling" >&6
1589 echo "$as_me:1589: checking for executable suffix" >&5
1590 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1591 if { (eval echo "$as_me:1591: \"$ac_link\"") >&5
1592 (eval $ac_link) 2>&5
1594 echo "$as_me:1594: \$? = $ac_status" >&5
1595 (exit $ac_status); }; then
1596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1598 # work properly (i.e., refer to `conftest.exe'), while it won't with
1600 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1602 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1603 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1610 { { echo "$as_me:1610: error: cannot compute EXEEXT: cannot compile and link" >&5
1611 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1612 { (exit 1); exit 1; }; }
1615 rm -f conftest$ac_cv_exeext
1616 echo "$as_me:1616: result: $ac_cv_exeext" >&5
1617 echo "${ECHO_T}$ac_cv_exeext" >&6
1619 rm -f conftest.$ac_ext
1620 EXEEXT=$ac_cv_exeext
1622 echo "$as_me:1622: checking for object suffix" >&5
1623 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1624 if test "${ac_cv_objext+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 cat >conftest.$ac_ext <<_ACEOF
1628 #line 1628 "configure"
1629 #include "confdefs.h"
1631 #ifdef F77_DUMMY_MAIN
1635 int F77_DUMMY_MAIN() { return 1; }
1645 rm -f conftest.o conftest.obj
1646 if { (eval echo "$as_me:1646: \"$ac_compile\"") >&5
1647 (eval $ac_compile) 2>&5
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); }; then
1651 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1659 echo "$as_me: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1661 { { echo "$as_me:1661: error: cannot compute OBJEXT: cannot compile" >&5
1662 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1663 { (exit 1); exit 1; }; }
1666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1668 echo "$as_me:1668: result: $ac_cv_objext" >&5
1669 echo "${ECHO_T}$ac_cv_objext" >&6
1670 OBJEXT=$ac_cv_objext
1672 echo "$as_me:1672: checking whether we are using the GNU C compiler" >&5
1673 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1674 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 cat >conftest.$ac_ext <<_ACEOF
1678 #line 1678 "configure"
1679 #include "confdefs.h"
1681 #ifdef F77_DUMMY_MAIN
1685 int F77_DUMMY_MAIN() { return 1; }
1698 rm -f conftest.$ac_objext
1699 if { (eval echo "$as_me:1699: \"$ac_compile\"") >&5
1700 (eval $ac_compile) 2>&5
1702 echo "$as_me:1702: \$? = $ac_status" >&5
1703 (exit $ac_status); } &&
1704 { ac_try='test -s conftest.$ac_objext'
1705 { (eval echo "$as_me:1705: \"$ac_try\"") >&5
1708 echo "$as_me:1708: \$? = $ac_status" >&5
1709 (exit $ac_status); }; }; then
1712 echo "$as_me: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1716 rm -f conftest.$ac_objext conftest.$ac_ext
1717 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1720 echo "$as_me:1720: result: $ac_cv_c_compiler_gnu" >&5
1721 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1722 GCC=`test $ac_compiler_gnu = yes && echo yes`
1723 ac_test_CFLAGS=${CFLAGS+set}
1724 ac_save_CFLAGS=$CFLAGS
1726 echo "$as_me:1726: checking whether $CC accepts -g" >&5
1727 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1728 if test "${ac_cv_prog_cc_g+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 cat >conftest.$ac_ext <<_ACEOF
1732 #line 1732 "configure"
1733 #include "confdefs.h"
1735 #ifdef F77_DUMMY_MAIN
1739 int F77_DUMMY_MAIN() { return 1; }
1749 rm -f conftest.$ac_objext
1750 if { (eval echo "$as_me:1750: \"$ac_compile\"") >&5
1751 (eval $ac_compile) 2>&5
1753 echo "$as_me:1753: \$? = $ac_status" >&5
1754 (exit $ac_status); } &&
1755 { ac_try='test -s conftest.$ac_objext'
1756 { (eval echo "$as_me:1756: \"$ac_try\"") >&5
1759 echo "$as_me:1759: \$? = $ac_status" >&5
1760 (exit $ac_status); }; }; then
1763 echo "$as_me: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1767 rm -f conftest.$ac_objext conftest.$ac_ext
1769 echo "$as_me:1769: result: $ac_cv_prog_cc_g" >&5
1770 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1771 if test "$ac_test_CFLAGS" = set; then
1772 CFLAGS=$ac_save_CFLAGS
1773 elif test $ac_cv_prog_cc_g = yes; then
1774 if test "$GCC" = yes; then
1780 if test "$GCC" = yes; then
1786 # Some people use a C++ compiler to compile C. Since we use `exit',
1787 # in C++ we need to declare it. In case someone uses the same compiler
1788 # for both compiling C and C++ we need to have the C++ compiler decide
1789 # the declaration of exit, since it's the most demanding environment.
1790 cat >conftest.$ac_ext <<_ACEOF
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1807 for ac_declaration in \
1809 '#include <stdlib.h>' \
1810 'extern "C" void std::exit (int) throw (); using std::exit;' \
1811 'extern "C" void std::exit (int); using std::exit;' \
1812 'extern "C" void exit (int) throw ();' \
1813 'extern "C" void exit (int);' \
1816 cat >conftest.$ac_ext <<_ACEOF
1817 #line 1817 "configure"
1818 #include "confdefs.h"
1821 #ifdef F77_DUMMY_MAIN
1825 int F77_DUMMY_MAIN() { return 1; }
1835 rm -f conftest.$ac_objext
1836 if { (eval echo "$as_me:1836: \"$ac_compile\"") >&5
1837 (eval $ac_compile) 2>&5
1839 echo "$as_me:1839: \$? = $ac_status" >&5
1840 (exit $ac_status); } &&
1841 { ac_try='test -s conftest.$ac_objext'
1842 { (eval echo "$as_me:1842: \"$ac_try\"") >&5
1845 echo "$as_me:1845: \$? = $ac_status" >&5
1846 (exit $ac_status); }; }; then
1849 echo "$as_me: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1853 rm -f conftest.$ac_objext conftest.$ac_ext
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line 1855 "configure"
1856 #include "confdefs.h"
1858 #ifdef F77_DUMMY_MAIN
1862 int F77_DUMMY_MAIN() { return 1; }
1872 rm -f conftest.$ac_objext
1873 if { (eval echo "$as_me:1873: \"$ac_compile\"") >&5
1874 (eval $ac_compile) 2>&5
1876 echo "$as_me:1876: \$? = $ac_status" >&5
1877 (exit $ac_status); } &&
1878 { ac_try='test -s conftest.$ac_objext'
1879 { (eval echo "$as_me:1879: \"$ac_try\"") >&5
1882 echo "$as_me:1882: \$? = $ac_status" >&5
1883 (exit $ac_status); }; }; then
1886 echo "$as_me: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1889 rm -f conftest.$ac_objext conftest.$ac_ext
1892 if test -n "$ac_declaration"; then
1893 echo '#ifdef __cplusplus' >>confdefs.h
1894 echo $ac_declaration >>confdefs.h
1895 echo '#endif' >>confdefs.h
1899 echo "$as_me: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1902 rm -f conftest.$ac_objext conftest.$ac_ext
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 echo "$as_me:1914: checking how to run the C preprocessor" >&5
1915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1916 # On Suns, sometimes $CPP names a directory.
1917 if test -n "$CPP" && test -d "$CPP"; then
1920 if test -z "$CPP"; then
1921 if test "${ac_cv_prog_CPP+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 # Double quotes because CPP needs to be expanded
1925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1928 for ac_c_preproc_warn_flag in '' yes
1930 # Use a header file that comes with gcc, so configuring glibc
1931 # with a fresh cross-compiler works.
1932 # On the NeXT, cc -E runs the code through the compiler's parser,
1933 # not just through cpp. "Syntax error" is here to catch this case.
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line 1935 "configure"
1936 #include "confdefs.h"
1940 if { (eval echo "$as_me:1940: \"$ac_cpp conftest.$ac_ext\"") >&5
1941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1943 egrep -v '^ *\+' conftest.er1 >conftest.err
1945 cat conftest.err >&5
1946 echo "$as_me:1946: \$? = $ac_status" >&5
1947 (exit $ac_status); } >/dev/null; then
1948 if test -s conftest.err; then
1949 ac_cpp_err=$ac_c_preproc_warn_flag
1956 if test -z "$ac_cpp_err"; then
1959 echo "$as_me: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 # Broken: fails on valid input.
1964 rm -f conftest.err conftest.$ac_ext
1966 # OK, works on sane cases. Now check whether non-existent headers
1967 # can be detected and how.
1968 cat >conftest.$ac_ext <<_ACEOF
1969 #line 1969 "configure"
1970 #include "confdefs.h"
1971 #include <ac_nonexistent.h>
1973 if { (eval echo "$as_me:1973: \"$ac_cpp conftest.$ac_ext\"") >&5
1974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1976 egrep -v '^ *\+' conftest.er1 >conftest.err
1978 cat conftest.err >&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } >/dev/null; then
1981 if test -s conftest.err; then
1982 ac_cpp_err=$ac_c_preproc_warn_flag
1989 if test -z "$ac_cpp_err"; then
1990 # Broken: success on invalid input.
1993 echo "$as_me: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1995 # Passes both tests.
1999 rm -f conftest.err conftest.$ac_ext
2002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2003 rm -f conftest.err conftest.$ac_ext
2004 if $ac_preproc_ok; then
2016 echo "$as_me:2016: result: $CPP" >&5
2017 echo "${ECHO_T}$CPP" >&6
2019 for ac_c_preproc_warn_flag in '' yes
2021 # Use a header file that comes with gcc, so configuring glibc
2022 # with a fresh cross-compiler works.
2023 # On the NeXT, cc -E runs the code through the compiler's parser,
2024 # not just through cpp. "Syntax error" is here to catch this case.
2025 cat >conftest.$ac_ext <<_ACEOF
2026 #line 2026 "configure"
2027 #include "confdefs.h"
2031 if { (eval echo "$as_me:2031: \"$ac_cpp conftest.$ac_ext\"") >&5
2032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2034 egrep -v '^ *\+' conftest.er1 >conftest.err
2036 cat conftest.err >&5
2037 echo "$as_me:2037: \$? = $ac_status" >&5
2038 (exit $ac_status); } >/dev/null; then
2039 if test -s conftest.err; then
2040 ac_cpp_err=$ac_c_preproc_warn_flag
2047 if test -z "$ac_cpp_err"; then
2050 echo "$as_me: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2052 # Broken: fails on valid input.
2055 rm -f conftest.err conftest.$ac_ext
2057 # OK, works on sane cases. Now check whether non-existent headers
2058 # can be detected and how.
2059 cat >conftest.$ac_ext <<_ACEOF
2060 #line 2060 "configure"
2061 #include "confdefs.h"
2062 #include <ac_nonexistent.h>
2064 if { (eval echo "$as_me:2064: \"$ac_cpp conftest.$ac_ext\"") >&5
2065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2067 egrep -v '^ *\+' conftest.er1 >conftest.err
2069 cat conftest.err >&5
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); } >/dev/null; then
2072 if test -s conftest.err; then
2073 ac_cpp_err=$ac_c_preproc_warn_flag
2080 if test -z "$ac_cpp_err"; then
2081 # Broken: success on invalid input.
2084 echo "$as_me: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2086 # Passes both tests.
2090 rm -f conftest.err conftest.$ac_ext
2093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2094 rm -f conftest.err conftest.$ac_ext
2095 if $ac_preproc_ok; then
2098 { { echo "$as_me:2098: error: C preprocessor \"$CPP\" fails sanity check" >&5
2099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2100 { (exit 1); exit 1; }; }
2104 ac_cpp='$CPP $CPPFLAGS'
2105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109 if test $ac_cv_c_compiler_gnu = yes; then
2110 echo "$as_me:2110: checking whether $CC needs -traditional" >&5
2111 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2112 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 ac_pattern="Autoconf.*'x'"
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line 2117 "configure"
2118 #include "confdefs.h"
2122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2123 egrep "$ac_pattern" >/dev/null 2>&1; then
2124 ac_cv_prog_gcc_traditional=yes
2126 ac_cv_prog_gcc_traditional=no
2130 if test $ac_cv_prog_gcc_traditional = no; then
2131 cat >conftest.$ac_ext <<_ACEOF
2132 #line 2132 "configure"
2133 #include "confdefs.h"
2137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2138 egrep "$ac_pattern" >/dev/null 2>&1; then
2139 ac_cv_prog_gcc_traditional=yes
2145 echo "$as_me:2145: result: $ac_cv_prog_gcc_traditional" >&5
2146 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2147 if test $ac_cv_prog_gcc_traditional = yes; then
2148 CC="$CC -traditional"
2152 echo "$as_me:2152: checking whether we are using SUNPro C" >&5
2153 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2154 if test "${ac_cv_prog_suncc+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 cat > conftest.c <<EOF
2162 if { ac_try='${CC-cc} -E conftest.c'
2163 { (eval echo "$as_me:2163: \"$ac_try\"") >&5
2166 echo "$as_me:2166: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2168 ac_cv_prog_suncc=yes
2173 echo "$as_me:2173: result: $ac_cv_prog_suncc" >&5
2174 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2178 echo "$as_me:2178: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_RANLIB+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test -n "$RANLIB"; then
2184 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2186 ac_save_IFS=$IFS; IFS=$ac_path_separator
2188 for ac_dir in $ac_dummy; do
2190 test -z "$ac_dir" && ac_dir=.
2191 $as_executable_p "$ac_dir/$ac_word" || continue
2192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2193 echo "$as_me:2193: found $ac_dir/$ac_word" >&5
2199 RANLIB=$ac_cv_prog_RANLIB
2200 if test -n "$RANLIB"; then
2201 echo "$as_me:2201: result: $RANLIB" >&5
2202 echo "${ECHO_T}$RANLIB" >&6
2204 echo "$as_me:2204: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2209 if test -z "$ac_cv_prog_RANLIB"; then
2210 ac_ct_RANLIB=$RANLIB
2211 # Extract the first word of "ranlib", so it can be a program name with args.
2212 set dummy ranlib; ac_word=$2
2213 echo "$as_me:2213: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$ac_ct_RANLIB"; then
2219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2221 ac_save_IFS=$IFS; IFS=$ac_path_separator
2223 for ac_dir in $ac_dummy; do
2225 test -z "$ac_dir" && ac_dir=.
2226 $as_executable_p "$ac_dir/$ac_word" || continue
2227 ac_cv_prog_ac_ct_RANLIB="ranlib"
2228 echo "$as_me:2228: found $ac_dir/$ac_word" >&5
2232 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2236 if test -n "$ac_ct_RANLIB"; then
2237 echo "$as_me:2237: result: $ac_ct_RANLIB" >&5
2238 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2240 echo "$as_me:2240: result: no" >&5
2241 echo "${ECHO_T}no" >&6
2244 RANLIB=$ac_ct_RANLIB
2246 RANLIB="$ac_cv_prog_RANLIB"
2251 echo "$as_me:2251: checking for AIX" >&5
2252 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #line 2254 "configure"
2255 #include "confdefs.h"
2261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2262 egrep "yes" >/dev/null 2>&1; then
2263 echo "$as_me:2263: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6
2265 cat >>confdefs.h <<\_ACEOF
2266 #define _ALL_SOURCE 1
2270 echo "$as_me:2270: result: no" >&5
2271 echo "${ECHO_T}no" >&6
2275 # Extract the first word of "gmake", so it can be a program name with args.
2276 set dummy gmake; ac_word=$2
2277 echo "$as_me:2277: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_GMAKE+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$GMAKE"; then
2283 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
2285 ac_save_IFS=$IFS; IFS=$ac_path_separator
2287 for ac_dir in $ac_dummy; do
2289 test -z "$ac_dir" && ac_dir=.
2290 $as_executable_p "$ac_dir/$ac_word" || continue
2291 ac_cv_prog_GMAKE="yes"
2292 echo "$as_me:2292: found $ac_dir/$ac_word" >&5
2296 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
2299 GMAKE=$ac_cv_prog_GMAKE
2300 if test -n "$GMAKE"; then
2301 echo "$as_me:2301: result: $GMAKE" >&5
2302 echo "${ECHO_T}$GMAKE" >&6
2304 echo "$as_me:2304: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2308 if test $GMAKE = no; then
2309 # Extract the first word of "make", so it can be a program name with args.
2310 set dummy make; ac_word=$2
2311 echo "$as_me:2311: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_path_MAKE+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2321 ac_save_IFS=$IFS; IFS=$ac_path_separator
2323 for ac_dir in $ac_dummy; do
2325 test -z "$ac_dir" && ac_dir=.
2326 if $as_executable_p "$ac_dir/$ac_word"; then
2327 ac_cv_path_MAKE="$ac_dir/$ac_word"
2328 echo "$as_me:2328: found $ac_dir/$ac_word" >&5
2333 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
2337 MAKE=$ac_cv_path_MAKE
2339 if test -n "$MAKE"; then
2340 echo "$as_me:2340: result: $MAKE" >&5
2341 echo "${ECHO_T}$MAKE" >&6
2343 echo "$as_me:2343: result: no" >&5
2344 echo "${ECHO_T}no" >&6
2348 # Extract the first word of "gmake", so it can be a program name with args.
2349 set dummy gmake; ac_word=$2
2350 echo "$as_me:2350: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_path_MAKE+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2360 ac_save_IFS=$IFS; IFS=$ac_path_separator
2362 for ac_dir in $ac_dummy; do
2364 test -z "$ac_dir" && ac_dir=.
2365 if $as_executable_p "$ac_dir/$ac_word"; then
2366 ac_cv_path_MAKE="$ac_dir/$ac_word"
2367 echo "$as_me:2367: found $ac_dir/$ac_word" >&5
2372 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
2376 MAKE=$ac_cv_path_MAKE
2378 if test -n "$MAKE"; then
2379 echo "$as_me:2379: result: $MAKE" >&5
2380 echo "${ECHO_T}$MAKE" >&6
2382 echo "$as_me:2382: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2387 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
2388 if test -z "$makever"; then
2389 { { echo "$as_me:2389: error: GNU Make is not installed. Please download and install it
2390 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
2391 echo "$as_me: error: GNU Make is not installed. Please download and install it
2392 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
2393 { (exit 1); exit 1; }; }
2396 echo "$as_me:2396: checking for main in -lltdl" >&5
2397 echo $ECHO_N "checking for main in -lltdl... $ECHO_C" >&6
2398 if test "${ac_cv_lib_ltdl_main+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 ac_check_lib_save_LIBS=$LIBS
2403 cat >conftest.$ac_ext <<_ACEOF
2404 #line 2404 "configure"
2405 #include "confdefs.h"
2407 #ifdef F77_DUMMY_MAIN
2411 int F77_DUMMY_MAIN() { return 1; }
2421 rm -f conftest.$ac_objext conftest$ac_exeext
2422 if { (eval echo "$as_me:2422: \"$ac_link\"") >&5
2423 (eval $ac_link) 2>&5
2425 echo "$as_me:2425: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try='test -s conftest$ac_exeext'
2428 { (eval echo "$as_me:2428: \"$ac_try\"") >&5
2431 echo "$as_me:2431: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
2433 ac_cv_lib_ltdl_main=yes
2435 echo "$as_me: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2437 ac_cv_lib_ltdl_main=no
2439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2440 LIBS=$ac_check_lib_save_LIBS
2442 echo "$as_me:2442: result: $ac_cv_lib_ltdl_main" >&5
2443 echo "${ECHO_T}$ac_cv_lib_ltdl_main" >&6
2444 if test $ac_cv_lib_ltdl_main = yes; then
2445 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
2447 if test x"$enable_ltdl_install" = xno; then
2448 { echo "$as_me:2448: WARNING: libltdl not installed, but installation disabled" >&5
2449 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
2451 enable_ltdl_install=yes
2456 if test x"$enable_ltdl_install" = x"yes"; then
2457 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2458 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
2459 INCLTDL='-I${top_srcdir}/''libltdl'
2461 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2466 # Check whether --enable-shared or --disable-shared was given.
2467 if test "${enable_shared+set}" = set; then
2468 enableval="$enable_shared"
2469 p=${PACKAGE-default}
2471 yes) enable_shared=yes ;;
2472 no) enable_shared=no ;;
2475 # Look at the argument we got. We use all the common list separators.
2476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2477 for pkg in $enableval; do
2478 if test "X$pkg" = "X$p"; then
2488 # Check whether --enable-static or --disable-static was given.
2489 if test "${enable_static+set}" = set; then
2490 enableval="$enable_static"
2491 p=${PACKAGE-default}
2493 yes) enable_static=yes ;;
2494 no) enable_static=no ;;
2497 # Look at the argument we got. We use all the common list separators.
2498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2499 for pkg in $enableval; do
2500 if test "X$pkg" = "X$p"; then
2510 # Check whether --enable-fast-install or --disable-fast-install was given.
2511 if test "${enable_fast_install+set}" = set; then
2512 enableval="$enable_fast_install"
2513 p=${PACKAGE-default}
2515 yes) enable_fast_install=yes ;;
2516 no) enable_fast_install=no ;;
2518 enable_fast_install=no
2519 # Look at the argument we got. We use all the common list separators.
2520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2521 for pkg in $enableval; do
2522 if test "X$pkg" = "X$p"; then
2523 enable_fast_install=yes
2530 enable_fast_install=yes
2533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2534 if test -f $ac_dir/install-sh; then
2536 ac_install_sh="$ac_aux_dir/install-sh -c"
2538 elif test -f $ac_dir/install.sh; then
2540 ac_install_sh="$ac_aux_dir/install.sh -c"
2542 elif test -f $ac_dir/shtool; then
2544 ac_install_sh="$ac_aux_dir/shtool install -c"
2548 if test -z "$ac_aux_dir"; then
2549 { { echo "$as_me:2549: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2551 { (exit 1); exit 1; }; }
2553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2557 # Make sure we can run config.sub.
2558 $ac_config_sub sun4 >/dev/null 2>&1 ||
2559 { { echo "$as_me:2559: error: cannot run $ac_config_sub" >&5
2560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2561 { (exit 1); exit 1; }; }
2563 echo "$as_me:2563: checking build system type" >&5
2564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2565 if test "${ac_cv_build+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 ac_cv_build_alias=$build_alias
2569 test -z "$ac_cv_build_alias" &&
2570 ac_cv_build_alias=`$ac_config_guess`
2571 test -z "$ac_cv_build_alias" &&
2572 { { echo "$as_me:2572: error: cannot guess build type; you must specify one" >&5
2573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2574 { (exit 1); exit 1; }; }
2575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2576 { { echo "$as_me:2576: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2578 { (exit 1); exit 1; }; }
2581 echo "$as_me:2581: result: $ac_cv_build" >&5
2582 echo "${ECHO_T}$ac_cv_build" >&6
2584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2588 echo "$as_me:2588: checking host system type" >&5
2589 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2590 if test "${ac_cv_host+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 ac_cv_host_alias=$host_alias
2594 test -z "$ac_cv_host_alias" &&
2595 ac_cv_host_alias=$ac_cv_build_alias
2596 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2597 { { echo "$as_me:2597: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2598 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2599 { (exit 1); exit 1; }; }
2602 echo "$as_me:2602: result: $ac_cv_host" >&5
2603 echo "${ECHO_T}$ac_cv_host" >&6
2605 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2606 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2607 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2609 # Find the correct PATH separator. Usually this is `:', but
2610 # DJGPP uses `;' like DOS.
2611 if test "X${PATH_SEPARATOR+set}" != Xset; then
2612 UNAME=${UNAME-`uname 2>/dev/null`}
2614 *-DOS) lt_cv_sys_path_separator=';' ;;
2615 *) lt_cv_sys_path_separator=':' ;;
2617 PATH_SEPARATOR=$lt_cv_sys_path_separator
2620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2621 if test "${with_gnu_ld+set}" = set; then
2622 withval="$with_gnu_ld"
2623 test "$withval" = no || with_gnu_ld=yes
2628 if test "$GCC" = yes; then
2629 # Check if gcc -print-prog-name=ld gives a path.
2630 echo "$as_me:2630: checking for ld used by GCC" >&5
2631 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2634 # gcc leaves a trailing carriage return which upsets mingw
2635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2640 # Accept absolute paths.
2641 [\\/]* | [A-Za-z]:[\\/]*)
2642 re_direlt='/[^/][^/]*/\.\./'
2643 # Canonicalize the path of ld
2644 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2645 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2646 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2648 test -z "$LD" && LD="$ac_prog"
2651 # If it fails, then pretend we aren't using GCC.
2655 # If it is relative, then search for the first ld in PATH.
2659 elif test "$with_gnu_ld" = yes; then
2660 echo "$as_me:2660: checking for GNU ld" >&5
2661 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2663 echo "$as_me:2663: checking for non-GNU ld" >&5
2664 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2666 if test "${lt_cv_path_LD+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 if test -z "$LD"; then
2670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2671 for ac_dir in $PATH; do
2672 test -z "$ac_dir" && ac_dir=.
2673 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2674 lt_cv_path_LD="$ac_dir/$ac_prog"
2675 # Check to see if the program is GNU ld. I'd rather use --version,
2676 # but apparently some GNU ld's only accept -v.
2677 # Break only if it was the GNU/non-GNU ld that we prefer.
2678 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2679 test "$with_gnu_ld" != no && break
2681 test "$with_gnu_ld" != yes && break
2687 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2692 if test -n "$LD"; then
2693 echo "$as_me:2693: result: $LD" >&5
2694 echo "${ECHO_T}$LD" >&6
2696 echo "$as_me:2696: result: no" >&5
2697 echo "${ECHO_T}no" >&6
2699 test -z "$LD" && { { echo "$as_me:2699: error: no acceptable ld found in \$PATH" >&5
2700 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2701 { (exit 1); exit 1; }; }
2702 echo "$as_me:2702: checking if the linker ($LD) is GNU ld" >&5
2703 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2704 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2708 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2709 lt_cv_prog_gnu_ld=yes
2711 lt_cv_prog_gnu_ld=no
2714 echo "$as_me:2714: result: $lt_cv_prog_gnu_ld" >&5
2715 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2716 with_gnu_ld=$lt_cv_prog_gnu_ld
2718 echo "$as_me:2718: checking for $LD option to reload object files" >&5
2719 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2720 if test "${lt_cv_ld_reload_flag+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 lt_cv_ld_reload_flag='-r'
2725 echo "$as_me:2725: result: $lt_cv_ld_reload_flag" >&5
2726 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2727 reload_flag=$lt_cv_ld_reload_flag
2728 test -n "$reload_flag" && reload_flag=" $reload_flag"
2730 echo "$as_me:2730: checking for BSD-compatible nm" >&5
2731 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2732 if test "${lt_cv_path_NM+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$NM"; then
2736 # Let the user override the test.
2739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2740 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2741 test -z "$ac_dir" && ac_dir=.
2742 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2743 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2744 # Check to see if the nm accepts a BSD-compat flag.
2745 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2746 # nm: unknown option "B" ignored
2747 # Tru64's nm complains that /dev/null is an invalid object file
2748 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2749 lt_cv_path_NM="$tmp_nm -B"
2751 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2752 lt_cv_path_NM="$tmp_nm -p"
2755 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2756 continue # so that we can try to find one that supports BSD flags
2761 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2766 echo "$as_me:2766: result: $NM" >&5
2767 echo "${ECHO_T}$NM" >&6
2769 echo "$as_me:2769: checking whether ln -s works" >&5
2770 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2772 if test "$LN_S" = "ln -s"; then
2773 echo "$as_me:2773: result: yes" >&5
2774 echo "${ECHO_T}yes" >&6
2776 echo "$as_me:2776: result: no, using $LN_S" >&5
2777 echo "${ECHO_T}no, using $LN_S" >&6
2780 echo "$as_me:2780: checking how to recognise dependant libraries" >&5
2781 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2782 if test "${lt_cv_deplibs_check_method+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 lt_cv_file_magic_cmd='$MAGIC_CMD'
2786 lt_cv_file_magic_test_file=
2787 lt_cv_deplibs_check_method='unknown'
2788 # Need to set the preceding variable on all platforms that support
2789 # interlibrary dependencies.
2790 # 'none' -- dependencies not supported.
2791 # `unknown' -- same as none, but documents that we really don't know.
2792 # 'pass_all' -- all dependencies passed with no checks.
2793 # 'test_compile' -- check by making test program.
2794 # 'file_magic [[regex]]' -- check by looking for files in library path
2795 # which responds to the $file_magic_cmd with a given egrep regex.
2796 # If you have `file' or equivalent on your system and you're not sure
2797 # whether `pass_all' will *always* work, you probably want this one.
2801 lt_cv_deplibs_check_method=pass_all
2805 lt_cv_deplibs_check_method=pass_all
2809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2810 lt_cv_file_magic_cmd='/usr/bin/file -L'
2811 lt_cv_file_magic_test_file=/shlib/libc.so
2814 cygwin* | mingw* | pw32*)
2815 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2816 lt_cv_file_magic_cmd='$OBJDUMP -f'
2819 darwin* | rhapsody*)
2820 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2821 lt_cv_file_magic_cmd='/usr/bin/file -L'
2823 rhapsody* | darwin1.[012])
2824 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2827 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2833 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2836 # Not sure whether the presence of OpenBSD here was a mistake.
2837 # Let's accept both of them until this is cleared up.
2838 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2839 lt_cv_file_magic_cmd=/usr/bin/file
2840 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2844 lt_cv_deplibs_check_method=pass_all
2849 lt_cv_deplibs_check_method=pass_all
2853 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2854 lt_cv_file_magic_cmd=/usr/bin/file
2855 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2861 # this will be overridden with pass_all, but let us keep it just in case
2862 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2866 *-32|*"-32 ") libmagic=32-bit;;
2867 *-n32|*"-n32 ") libmagic=N32;;
2868 *-64|*"-64 ") libmagic=64-bit;;
2869 *) libmagic=never-match;;
2871 # this will be overridden with pass_all, but let us keep it just in case
2872 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2875 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2876 lt_cv_deplibs_check_method=pass_all
2879 # This must be Linux ELF.
2882 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
2883 lt_cv_deplibs_check_method=pass_all ;;
2885 # glibc up to 2.1.1 does not perform some relocations on ARM
2886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2888 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2892 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2893 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2895 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2901 lt_cv_file_magic_cmd=/usr/bin/file
2902 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2906 lt_cv_file_magic_cmd=/usr/bin/file
2907 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2911 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2915 osf3* | osf4* | osf5*)
2916 # this will be overridden with pass_all, but let us keep it just in case
2917 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2918 lt_cv_file_magic_test_file=/shlib/libc.so
2919 lt_cv_deplibs_check_method=pass_all
2923 lt_cv_deplibs_check_method=pass_all
2927 lt_cv_deplibs_check_method=pass_all
2928 lt_cv_file_magic_test_file=/lib/libc.so
2931 sysv5uw[78]* | sysv4*uw2*)
2932 lt_cv_deplibs_check_method=pass_all
2935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2936 case $host_vendor in
2938 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]'
2939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2942 lt_cv_deplibs_check_method=pass_all
2945 lt_cv_file_magic_cmd='/bin/file'
2946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2949 lt_cv_file_magic_cmd='/bin/file'
2950 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2951 lt_cv_file_magic_test_file=/lib/libc.so
2958 echo "$as_me:2958: result: $lt_cv_deplibs_check_method" >&5
2959 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2960 file_magic_cmd=$lt_cv_file_magic_cmd
2961 deplibs_check_method=$lt_cv_deplibs_check_method
2963 # Check for command to grab the raw symbol name followed by C symbol from nm.
2964 echo "$as_me:2964: checking command to parse $NM output" >&5
2965 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2966 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 # These are sane defaults that work on at least a few old systems.
2971 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2973 # Character class describing NM global symbol codes.
2974 symcode='[BCDEGRST]'
2976 # Regexp to match symbols that can be accessed directly from C.
2977 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2979 # Transform the above into a raw symbol and a C symbol.
2980 symxfrm='\1 \2\3 \3'
2982 # Transform an extracted symbol line into a proper C declaration
2983 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2985 # Transform an extracted symbol line into symbol name and symbol address
2986 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2988 # Define system-specific variables.
2993 cygwin* | mingw* | pw32*)
2994 symcode='[ABCDGISTW]'
2996 hpux*) # Its linker distinguishes data from code symbols
2997 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2998 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3001 symcode='[BCDEGRST]'
3011 # Handle CRLF in mingw tool chain
3015 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3019 # If we're using GNU nm, then use its standard symbol codes.
3020 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3021 symcode='[ABCDGISTW]'
3024 # Try without a prefix undercore, then with it.
3025 for ac_symprfx in "" "_"; do
3027 # Write the raw and C identifiers.
3028 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3030 # Check to see that the pipe works correctly.
3033 cat > conftest.$ac_ext <<EOF
3038 void nm_test_func(){}
3042 int main(){nm_test_var='a';nm_test_func();return(0);}
3045 if { (eval echo "$as_me:3045: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>&5
3048 echo "$as_me:3048: \$? = $ac_status" >&5
3049 (exit $ac_status); }; then
3050 # Now try to grab the symbols.
3052 if { (eval echo "$as_me:3052: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3053 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3055 echo "$as_me:3055: \$? = $ac_status" >&5
3056 (exit $ac_status); } && test -s "$nlist"; then
3057 # Try sorting and uniquifying the output.
3058 if sort "$nlist" | uniq > "$nlist"T; then
3059 mv -f "$nlist"T "$nlist"
3064 # Make sure that we snagged all the symbols we need.
3065 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3066 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3067 cat <<EOF > conftest.$ac_ext
3073 # Now generate the symbol file.
3074 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3076 cat <<EOF >> conftest.$ac_ext
3077 #if defined (__STDC__) && __STDC__
3078 # define lt_ptr void *
3080 # define lt_ptr char *
3084 /* The mapping between symbol names and symbols. */
3089 lt_preloaded_symbols[] =
3092 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3093 cat <<\EOF >> conftest.$ac_ext
3101 # Now try linking the two files.
3102 mv conftest.$ac_objext conftstm.$ac_objext
3104 save_CFLAGS="$CFLAGS"
3105 LIBS="conftstm.$ac_objext"
3106 CFLAGS="$CFLAGS$no_builtin_flag"
3107 if { (eval echo "$as_me:3107: \"$ac_link\"") >&5
3108 (eval $ac_link) 2>&5
3110 echo "$as_me:3110: \$? = $ac_status" >&5
3111 (exit $ac_status); } && test -s conftest; then
3115 CFLAGS="$save_CFLAGS"
3117 echo "cannot find nm_test_func in $nlist" >&5
3120 echo "cannot find nm_test_var in $nlist" >&5
3123 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3126 echo "$progname: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3129 rm -f conftest* conftst*
3131 # Do not use the global_symbol_pipe unless it works.
3132 if test "$pipe_works" = yes; then
3135 lt_cv_sys_global_symbol_pipe=
3141 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3143 global_symbol_to_cdecl=
3144 global_symbol_to_c_name_address=
3146 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3147 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3149 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3151 echo "$as_me:3151: result: failed" >&5
3152 echo "${ECHO_T}failed" >&6
3154 echo "$as_me:3154: result: ok" >&5
3155 echo "${ECHO_T}ok" >&6
3158 echo "$as_me:3158: checking for ANSI C header files" >&5
3159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3160 if test "${ac_cv_header_stdc+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 cat >conftest.$ac_ext <<_ACEOF
3164 #line 3164 "configure"
3165 #include "confdefs.h"
3172 if { (eval echo "$as_me:3172: \"$ac_cpp conftest.$ac_ext\"") >&5
3173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175 egrep -v '^ *\+' conftest.er1 >conftest.err
3177 cat conftest.err >&5
3178 echo "$as_me:3178: \$? = $ac_status" >&5
3179 (exit $ac_status); } >/dev/null; then
3180 if test -s conftest.err; then
3181 ac_cpp_err=$ac_c_preproc_warn_flag
3188 if test -z "$ac_cpp_err"; then
3189 ac_cv_header_stdc=yes
3191 echo "$as_me: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3193 ac_cv_header_stdc=no
3195 rm -f conftest.err conftest.$ac_ext
3197 if test $ac_cv_header_stdc = yes; then
3198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3199 cat >conftest.$ac_ext <<_ACEOF
3200 #line 3200 "configure"
3201 #include "confdefs.h"
3205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3206 egrep "memchr" >/dev/null 2>&1; then
3209 ac_cv_header_stdc=no
3215 if test $ac_cv_header_stdc = yes; then
3216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3217 cat >conftest.$ac_ext <<_ACEOF
3218 #line 3218 "configure"
3219 #include "confdefs.h"
3223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3224 egrep "free" >/dev/null 2>&1; then
3227 ac_cv_header_stdc=no
3233 if test $ac_cv_header_stdc = yes; then
3234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3235 if test "$cross_compiling" = yes; then
3238 cat >conftest.$ac_ext <<_ACEOF
3239 #line 3239 "configure"
3240 #include "confdefs.h"
3242 #if ((' ' & 0x0FF) == 0x020)
3243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3246 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3247 || ('j' <= (c) && (c) <= 'r') \
3248 || ('s' <= (c) && (c) <= 'z'))
3249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3257 for (i = 0; i < 256; i++)
3258 if (XOR (islower (i), ISLOWER (i))
3259 || toupper (i) != TOUPPER (i))
3264 rm -f conftest$ac_exeext
3265 if { (eval echo "$as_me:3265: \"$ac_link\"") >&5
3266 (eval $ac_link) 2>&5
3268 echo "$as_me:3268: \$? = $ac_status" >&5
3269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3270 { (eval echo "$as_me:3270: \"$ac_try\"") >&5
3273 echo "$as_me:3273: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3277 echo "$as_me: program exited with status $ac_status" >&5
3278 echo "$as_me: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 ac_cv_header_stdc=no
3282 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3286 echo "$as_me:3286: result: $ac_cv_header_stdc" >&5
3287 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3288 if test $ac_cv_header_stdc = yes; then
3290 cat >>confdefs.h <<\_ACEOF
3291 #define STDC_HEADERS 1
3296 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3299 inttypes.h stdint.h unistd.h
3301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3302 echo "$as_me:3302: checking for $ac_header" >&5
3303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 cat >conftest.$ac_ext <<_ACEOF
3308 #line 3308 "configure"
3309 #include "confdefs.h"
3310 $ac_includes_default
3312 #include <$ac_header>
3314 rm -f conftest.$ac_objext
3315 if { (eval echo "$as_me:3315: \"$ac_compile\"") >&5
3316 (eval $ac_compile) 2>&5
3318 echo "$as_me:3318: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -s conftest.$ac_objext'
3321 { (eval echo "$as_me:3321: \"$ac_try\"") >&5
3324 echo "$as_me:3324: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 eval "$as_ac_Header=yes"
3328 echo "$as_me: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3330 eval "$as_ac_Header=no"
3332 rm -f conftest.$ac_objext conftest.$ac_ext
3334 echo "$as_me:3334: result: `eval echo '${'$as_ac_Header'}'`" >&5
3335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3337 cat >>confdefs.h <<_ACEOF
3338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3345 for ac_header in dlfcn.h
3347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3349 echo "$as_me:3349: checking for $ac_header" >&5
3350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 echo "$as_me:3354: result: `eval echo '${'$as_ac_Header'}'`" >&5
3355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3357 # Is the header compilable?
3358 echo "$as_me:3358: checking $ac_header usability" >&5
3359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3360 cat >conftest.$ac_ext <<_ACEOF
3361 #line 3361 "configure"
3362 #include "confdefs.h"
3363 $ac_includes_default
3364 #include <$ac_header>
3366 rm -f conftest.$ac_objext
3367 if { (eval echo "$as_me:3367: \"$ac_compile\"") >&5
3368 (eval $ac_compile) 2>&5
3370 echo "$as_me:3370: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -s conftest.$ac_objext'
3373 { (eval echo "$as_me:3373: \"$ac_try\"") >&5
3376 echo "$as_me:3376: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 ac_header_compiler=yes
3380 echo "$as_me: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3382 ac_header_compiler=no
3384 rm -f conftest.$ac_objext conftest.$ac_ext
3385 echo "$as_me:3385: result: $ac_header_compiler" >&5
3386 echo "${ECHO_T}$ac_header_compiler" >&6
3388 # Is the header present?
3389 echo "$as_me:3389: checking $ac_header presence" >&5
3390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3391 cat >conftest.$ac_ext <<_ACEOF
3392 #line 3392 "configure"
3393 #include "confdefs.h"
3394 #include <$ac_header>
3396 if { (eval echo "$as_me:3396: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3399 egrep -v '^ *\+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:3402: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_c_preproc_warn_flag
3412 if test -z "$ac_cpp_err"; then
3413 ac_header_preproc=yes
3415 echo "$as_me: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3417 ac_header_preproc=no
3419 rm -f conftest.err conftest.$ac_ext
3420 echo "$as_me:3420: result: $ac_header_preproc" >&5
3421 echo "${ECHO_T}$ac_header_preproc" >&6
3423 # So? What about this header?
3424 case $ac_header_compiler:$ac_header_preproc in
3426 { echo "$as_me:3426: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3428 { echo "$as_me:3428: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3431 { echo "$as_me:3431: WARNING: $ac_header: present but cannot be compiled." >&5
3432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3433 { echo "$as_me:3433: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3435 { echo "$as_me:3435: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3438 echo "$as_me:3438: checking for $ac_header" >&5
3439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 eval "$as_ac_Header=$ac_header_preproc"
3445 echo "$as_me:3445: result: `eval echo '${'$as_ac_Header'}'`" >&5
3446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3450 cat >>confdefs.h <<_ACEOF
3451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3458 # Only perform the check for file, if the check method requires it
3459 case $deplibs_check_method in
3461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3462 echo "$as_me:3462: checking for ${ac_tool_prefix}file" >&5
3463 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3464 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3472 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3475 ac_save_MAGIC_CMD="$MAGIC_CMD"
3476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3477 ac_dummy="/usr/bin:$PATH"
3478 for ac_dir in $ac_dummy; do
3479 test -z "$ac_dir" && ac_dir=.
3480 if test -f $ac_dir/${ac_tool_prefix}file; then
3481 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3482 if test -n "$file_magic_test_file"; then
3483 case $deplibs_check_method in
3485 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3488 egrep "$file_magic_regex" > /dev/null; then
3493 *** Warning: the command libtool uses to detect shared libraries,
3494 *** $file_magic_cmd, produces output that libtool cannot recognize.
3495 *** The result is that libtool may fail to recognize shared libraries
3496 *** as such. This will affect the creation of libtool libraries that
3497 *** depend on shared libraries, but programs linked with such libtool
3498 *** libraries will work regardless of this problem. Nevertheless, you
3499 *** may want to report the problem to your system manager and/or to
3500 *** bug-libtool@gnu.org
3510 MAGIC_CMD="$ac_save_MAGIC_CMD"
3515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3516 if test -n "$MAGIC_CMD"; then
3517 echo "$as_me:3517: result: $MAGIC_CMD" >&5
3518 echo "${ECHO_T}$MAGIC_CMD" >&6
3520 echo "$as_me:3520: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 if test -z "$lt_cv_path_MAGIC_CMD"; then
3525 if test -n "$ac_tool_prefix"; then
3526 echo "$as_me:3526: checking for file" >&5
3527 echo $ECHO_N "checking for file... $ECHO_C" >&6
3528 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3539 ac_save_MAGIC_CMD="$MAGIC_CMD"
3540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3541 ac_dummy="/usr/bin:$PATH"
3542 for ac_dir in $ac_dummy; do
3543 test -z "$ac_dir" && ac_dir=.
3544 if test -f $ac_dir/file; then
3545 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3546 if test -n "$file_magic_test_file"; then
3547 case $deplibs_check_method in
3549 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3552 egrep "$file_magic_regex" > /dev/null; then
3557 *** Warning: the command libtool uses to detect shared libraries,
3558 *** $file_magic_cmd, produces output that libtool cannot recognize.
3559 *** The result is that libtool may fail to recognize shared libraries
3560 *** as such. This will affect the creation of libtool libraries that
3561 *** depend on shared libraries, but programs linked with such libtool
3562 *** libraries will work regardless of this problem. Nevertheless, you
3563 *** may want to report the problem to your system manager and/or to
3564 *** bug-libtool@gnu.org
3574 MAGIC_CMD="$ac_save_MAGIC_CMD"
3579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3580 if test -n "$MAGIC_CMD"; then
3581 echo "$as_me:3581: result: $MAGIC_CMD" >&5
3582 echo "${ECHO_T}$MAGIC_CMD" >&6
3584 echo "$as_me:3584: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3597 if test -n "$ac_tool_prefix"; then
3598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3600 echo "$as_me:3600: checking for $ac_word" >&5
3601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3602 if test "${ac_cv_prog_RANLIB+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 if test -n "$RANLIB"; then
3606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3608 ac_save_IFS=$IFS; IFS=$ac_path_separator
3610 for ac_dir in $ac_dummy; do
3612 test -z "$ac_dir" && ac_dir=.
3613 $as_executable_p "$ac_dir/$ac_word" || continue
3614 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3615 echo "$as_me:3615: found $ac_dir/$ac_word" >&5
3621 RANLIB=$ac_cv_prog_RANLIB
3622 if test -n "$RANLIB"; then
3623 echo "$as_me:3623: result: $RANLIB" >&5
3624 echo "${ECHO_T}$RANLIB" >&6
3626 echo "$as_me:3626: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3631 if test -z "$ac_cv_prog_RANLIB"; then
3632 ac_ct_RANLIB=$RANLIB
3633 # Extract the first word of "ranlib", so it can be a program name with args.
3634 set dummy ranlib; ac_word=$2
3635 echo "$as_me:3635: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 if test -n "$ac_ct_RANLIB"; then
3641 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3643 ac_save_IFS=$IFS; IFS=$ac_path_separator
3645 for ac_dir in $ac_dummy; do
3647 test -z "$ac_dir" && ac_dir=.
3648 $as_executable_p "$ac_dir/$ac_word" || continue
3649 ac_cv_prog_ac_ct_RANLIB="ranlib"
3650 echo "$as_me:3650: found $ac_dir/$ac_word" >&5
3654 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3658 if test -n "$ac_ct_RANLIB"; then
3659 echo "$as_me:3659: result: $ac_ct_RANLIB" >&5
3660 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3662 echo "$as_me:3662: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3666 RANLIB=$ac_ct_RANLIB
3668 RANLIB="$ac_cv_prog_RANLIB"
3671 if test -n "$ac_tool_prefix"; then
3672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3673 set dummy ${ac_tool_prefix}strip; ac_word=$2
3674 echo "$as_me:3674: checking for $ac_word" >&5
3675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3676 if test "${ac_cv_prog_STRIP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 if test -n "$STRIP"; then
3680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3682 ac_save_IFS=$IFS; IFS=$ac_path_separator
3684 for ac_dir in $ac_dummy; do
3686 test -z "$ac_dir" && ac_dir=.
3687 $as_executable_p "$ac_dir/$ac_word" || continue
3688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3689 echo "$as_me:3689: found $ac_dir/$ac_word" >&5
3695 STRIP=$ac_cv_prog_STRIP
3696 if test -n "$STRIP"; then
3697 echo "$as_me:3697: result: $STRIP" >&5
3698 echo "${ECHO_T}$STRIP" >&6
3700 echo "$as_me:3700: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3705 if test -z "$ac_cv_prog_STRIP"; then
3707 # Extract the first word of "strip", so it can be a program name with args.
3708 set dummy strip; ac_word=$2
3709 echo "$as_me:3709: checking for $ac_word" >&5
3710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3711 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 if test -n "$ac_ct_STRIP"; then
3715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3717 ac_save_IFS=$IFS; IFS=$ac_path_separator
3719 for ac_dir in $ac_dummy; do
3721 test -z "$ac_dir" && ac_dir=.
3722 $as_executable_p "$ac_dir/$ac_word" || continue
3723 ac_cv_prog_ac_ct_STRIP="strip"
3724 echo "$as_me:3724: found $ac_dir/$ac_word" >&5
3728 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3732 if test -n "$ac_ct_STRIP"; then
3733 echo "$as_me:3733: result: $ac_ct_STRIP" >&5
3734 echo "${ECHO_T}$ac_ct_STRIP" >&6
3736 echo "$as_me:3736: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3742 STRIP="$ac_cv_prog_STRIP"
3748 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3749 if test "${enable_libtool_lock+set}" = set; then
3750 enableval="$enable_libtool_lock"
3753 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3755 # Some flags need to be propagated to the compiler or linker for good
3759 # Find out which ABI we are using.
3760 echo '#line 3760 "configure"' > conftest.$ac_ext
3761 if { (eval echo "$as_me:3761: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>&5
3764 echo "$as_me:3764: \$? = $ac_status" >&5
3765 (exit $ac_status); }; then
3766 case `/usr/bin/file conftest.$ac_objext` in
3782 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3783 SAVE_CFLAGS="$CFLAGS"
3784 CFLAGS="$CFLAGS -belf"
3785 echo "$as_me:3785: checking whether the C compiler needs -belf" >&5
3786 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3787 if test "${lt_cv_cc_needs_belf+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 cat >conftest.$ac_ext <<_ACEOF
3798 #line 3798 "configure"
3799 #include "confdefs.h"
3801 #ifdef F77_DUMMY_MAIN
3805 int F77_DUMMY_MAIN() { return 1; }
3815 rm -f conftest.$ac_objext conftest$ac_exeext
3816 if { (eval echo "$as_me:3816: \"$ac_link\"") >&5
3817 (eval $ac_link) 2>&5
3819 echo "$as_me:3819: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try='test -s conftest$ac_exeext'
3822 { (eval echo "$as_me:3822: \"$ac_try\"") >&5
3825 echo "$as_me:3825: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 lt_cv_cc_needs_belf=yes
3829 echo "$as_me: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 lt_cv_cc_needs_belf=no
3833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 echo "$as_me:3841: result: $lt_cv_cc_needs_belf" >&5
3842 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3843 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3844 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3845 CFLAGS="$SAVE_CFLAGS"
3851 # Sed substitution that helps us do robust quoting. It backslashifies
3852 # metacharacters that are still active within double-quoted strings.
3853 Xsed='sed -e s/^X//'
3854 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3856 # Same as above, but do not quote variable references.
3857 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3859 # Sed substitution to delay expansion of an escaped shell variable in a
3860 # double_quote_subst'ed string.
3861 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3867 default_ofile=libtool
3868 can_build_shared=yes
3870 # All known linkers require a `.a' archive for static linking (except M$VC,
3871 # which needs '.lib').
3873 ltmain="$ac_aux_dir/ltmain.sh"
3874 ofile="$default_ofile"
3875 with_gnu_ld="$lt_cv_prog_gnu_ld"
3876 need_locks="$enable_libtool_lock"
3879 old_CFLAGS="$CFLAGS"
3881 # Set sane defaults for various variables
3882 test -z "$AR" && AR=ar
3883 test -z "$AR_FLAGS" && AR_FLAGS=cru
3884 test -z "$AS" && AS=as
3885 test -z "$CC" && CC=cc
3886 test -z "$DLLTOOL" && DLLTOOL=dlltool
3887 test -z "$LD" && LD=ld
3888 test -z "$LN_S" && LN_S="ln -s"
3889 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3890 test -z "$NM" && NM=nm
3891 test -z "$OBJDUMP" && OBJDUMP=objdump
3892 test -z "$RANLIB" && RANLIB=:
3893 test -z "$STRIP" && STRIP=:
3894 test -z "$ac_objext" && ac_objext=o
3896 if test x"$host" != x"$build"; then
3897 ac_tool_prefix=${host_alias}-
3902 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3905 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3910 # AIX sometimes has problems with the GCC collect2 program. For some
3911 # reason, if we set the COLLECT_NAMES environment variable, the problems
3912 # vanish in a puff of smoke.
3913 if test "X${COLLECT_NAMES+set}" != Xset; then
3915 export COLLECT_NAMES
3920 # Determine commands to create old-style static archives.
3921 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3922 old_postinstall_cmds='chmod 644 $oldlib'
3923 old_postuninstall_cmds=
3925 if test -n "$RANLIB"; then
3928 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3931 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3934 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3937 # Allow CC to be a program name with arguments.
3941 ## FIXME: this should be a separate macro
3943 echo "$as_me:3943: checking for objdir" >&5
3944 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3945 rm -f .libs 2>/dev/null
3946 mkdir .libs 2>/dev/null
3947 if test -d .libs; then
3950 # MS-DOS does not allow filenames that begin with a dot.
3953 rmdir .libs 2>/dev/null
3954 echo "$as_me:3954: result: $objdir" >&5
3955 echo "${ECHO_T}$objdir" >&6
3959 ## FIXME: this should be a separate macro
3962 # Check whether --with-pic or --without-pic was given.
3963 if test "${with_pic+set}" = set; then
3969 test -z "$pic_mode" && pic_mode=default
3971 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3972 # in isolation, and that seeing it set (from the cache) indicates that
3973 # the associated values are set (in the cache) correctly too.
3974 echo "$as_me:3974: checking for $compiler option to produce PIC" >&5
3975 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3976 if test "${lt_cv_prog_cc_pic+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 lt_cv_prog_cc_shlib=
3982 lt_cv_prog_cc_static=
3983 lt_cv_prog_cc_no_builtin=
3984 lt_cv_prog_cc_can_build_shared=$can_build_shared
3986 if test "$GCC" = yes; then
3987 lt_cv_prog_cc_wl='-Wl,'
3988 lt_cv_prog_cc_static='-static'
3992 # Below there is a dirty hack to force normal static linking with -ldl
3993 # The problem is because libdl dynamically linked with both libc and
3994 # libC (AIX C++ library), which obviously doesn't included in libraries
3995 # list by gcc. This cause undefined symbols with -static flags.
3996 # This hack allows C programs to be linked with "-static -ldl", but
3997 # not sure about C++ programs.
3998 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4001 # FIXME: we need at least 68020 code to build shared libraries, but
4002 # adding the `-m68020' flag to GCC prevents building anything better,
4004 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4006 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4007 # PIC is the default for these OSes.
4009 darwin* | rhapsody*)
4010 # PIC is the default on this platform
4011 # Common symbols not allowed in MH_DYLIB files
4012 lt_cv_prog_cc_pic='-fno-common'
4014 cygwin* | mingw* | pw32* | os2*)
4015 # This hack is so that the source file can tell whether it is being
4016 # built for inclusion in a dll (and should export symbols for example).
4017 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4020 if test -d /usr/nec; then
4021 lt_cv_prog_cc_pic=-Kconform_pic
4025 lt_cv_prog_cc_pic='-fPIC'
4029 # PORTME Check for PIC flags for the system compiler.
4031 aix3* | aix4* | aix5*)
4032 lt_cv_prog_cc_wl='-Wl,'
4033 # All AIX code is PIC.
4034 if test "$host_cpu" = ia64; then
4035 # AIX 5 now supports IA64 processor
4036 lt_cv_prog_cc_static='-Bstatic'
4038 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4042 hpux9* | hpux10* | hpux11*)
4043 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4044 lt_cv_prog_cc_wl='-Wl,'
4045 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4046 lt_cv_prog_cc_pic='+Z'
4050 lt_cv_prog_cc_wl='-Wl,'
4051 lt_cv_prog_cc_static='-non_shared'
4052 # PIC (with -KPIC) is the default.
4055 cygwin* | mingw* | pw32* | os2*)
4056 # This hack is so that the source file can tell whether it is being
4057 # built for inclusion in a dll (and should export symbols for example).
4058 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4062 lt_cv_prog_cc_pic='-KPIC'
4063 lt_cv_prog_cc_static='-Bstatic'
4066 osf3* | osf4* | osf5*)
4067 # All OSF/1 code is PIC.
4068 lt_cv_prog_cc_wl='-Wl,'
4069 lt_cv_prog_cc_static='-non_shared'
4073 lt_cv_prog_cc_pic='-Kpic'
4074 lt_cv_prog_cc_static='-dn'
4075 lt_cv_prog_cc_shlib='-belf'
4079 lt_cv_prog_cc_pic='-KPIC'
4080 lt_cv_prog_cc_static='-Bstatic'
4081 lt_cv_prog_cc_wl='-Wl,'
4085 lt_cv_prog_cc_pic='-PIC'
4086 lt_cv_prog_cc_static='-Bstatic'
4087 lt_cv_prog_cc_wl='-Qoption ld '
4090 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4091 lt_cv_prog_cc_pic='-KPIC'
4092 lt_cv_prog_cc_static='-Bstatic'
4093 if test "x$host_vendor" = xsni; then
4094 lt_cv_prog_cc_wl='-LD'
4096 lt_cv_prog_cc_wl='-Wl,'
4101 lt_cv_prog_cc_pic='-pic'
4102 lt_cv_prog_cc_static='-Bstatic'
4106 if test -d /usr/nec ;then
4107 lt_cv_prog_cc_pic='-Kconform_pic'
4108 lt_cv_prog_cc_static='-Bstatic'
4113 lt_cv_prog_cc_can_build_shared=no
4120 if test -z "$lt_cv_prog_cc_pic"; then
4121 echo "$as_me:4121: result: none" >&5
4122 echo "${ECHO_T}none" >&6
4124 echo "$as_me:4124: result: $lt_cv_prog_cc_pic" >&5
4125 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4127 # Check to make sure the pic_flag actually works.
4128 echo "$as_me:4128: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4129 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4130 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 save_CFLAGS="$CFLAGS"
4134 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4135 cat >conftest.$ac_ext <<_ACEOF
4136 #line 4136 "configure"
4137 #include "confdefs.h"
4139 #ifdef F77_DUMMY_MAIN
4143 int F77_DUMMY_MAIN() { return 1; }
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:4154: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:4160: \"$ac_try\"") >&5
4163 echo "$as_me:4163: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4166 hpux9* | hpux10* | hpux11*)
4167 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4168 # they create non-PIC objects. So, if there were any warnings, we
4169 # assume that PIC is not supported.
4170 if test -s conftest.err; then
4171 lt_cv_prog_cc_pic_works=no
4173 lt_cv_prog_cc_pic_works=yes
4177 lt_cv_prog_cc_pic_works=yes
4182 echo "$as_me: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4184 lt_cv_prog_cc_pic_works=no
4187 rm -f conftest.$ac_objext conftest.$ac_ext
4188 CFLAGS="$save_CFLAGS"
4192 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4194 lt_cv_prog_cc_can_build_shared=no
4196 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4199 echo "$as_me:4199: result: $lt_cv_prog_cc_pic_works" >&5
4200 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4205 # Check for any special shared library compilation flags.
4206 if test -n "$lt_cv_prog_cc_shlib"; then
4207 { echo "$as_me:4207: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4208 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4209 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4211 { echo "$as_me:4211: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4212 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4213 lt_cv_prog_cc_can_build_shared=no
4217 ## FIXME: this should be a separate macro
4219 echo "$as_me:4219: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4220 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4221 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 lt_cv_prog_cc_static_works=no
4225 save_LDFLAGS="$LDFLAGS"
4226 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4227 cat >conftest.$ac_ext <<_ACEOF
4228 #line 4228 "configure"
4229 #include "confdefs.h"
4231 #ifdef F77_DUMMY_MAIN
4235 int F77_DUMMY_MAIN() { return 1; }
4245 rm -f conftest.$ac_objext conftest$ac_exeext
4246 if { (eval echo "$as_me:4246: \"$ac_link\"") >&5
4247 (eval $ac_link) 2>&5
4249 echo "$as_me:4249: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -s conftest$ac_exeext'
4252 { (eval echo "$as_me:4252: \"$ac_try\"") >&5
4255 echo "$as_me:4255: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4257 lt_cv_prog_cc_static_works=yes
4259 echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4263 LDFLAGS="$save_LDFLAGS"
4267 # Belt *and* braces to stop my trousers falling down:
4268 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4269 echo "$as_me:4269: result: $lt_cv_prog_cc_static_works" >&5
4270 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4272 pic_flag="$lt_cv_prog_cc_pic"
4273 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4274 wl="$lt_cv_prog_cc_wl"
4275 link_static_flag="$lt_cv_prog_cc_static"
4276 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4277 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4281 ## FIXME: this should be a separate macro
4283 # Check to see if options -o and -c are simultaneously supported by compiler
4284 echo "$as_me:4284: checking if $compiler supports -c -o file.$ac_objext" >&5
4285 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4286 if test "${lt_cv_compiler_c_o+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 $rm -r conftest 2>/dev/null
4293 echo "int some_variable = 0;" > conftest.$ac_ext
4295 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4296 # that will create temporary files in the current directory regardless of
4297 # the output directory. Thus, making CWD read-only will cause this test
4298 # to fail, enabling locking or at least warning the user not to do parallel
4301 save_CFLAGS="$CFLAGS"
4302 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4304 if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4305 # The compiler can only warn and ignore the option if not recognized
4306 # So say no if there are warnings
4307 if test -s out/conftest.err; then
4308 lt_cv_compiler_c_o=no
4310 lt_cv_compiler_c_o=yes
4313 # Append any errors to the config.log.
4314 cat out/conftest.err 1>&5
4315 lt_cv_compiler_c_o=no
4317 CFLAGS="$save_CFLAGS"
4323 $rm -r conftest 2>/dev/null
4327 compiler_c_o=$lt_cv_compiler_c_o
4328 echo "$as_me:4328: result: $compiler_c_o" >&5
4329 echo "${ECHO_T}$compiler_c_o" >&6
4331 if test x"$compiler_c_o" = x"yes"; then
4332 # Check to see if we can write to a .lo
4333 echo "$as_me:4333: checking if $compiler supports -c -o file.lo" >&5
4334 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4335 if test "${lt_cv_compiler_o_lo+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 lt_cv_compiler_o_lo=no
4340 save_CFLAGS="$CFLAGS"
4341 CFLAGS="$CFLAGS -c -o conftest.lo"
4342 save_objext="$ac_objext"
4344 cat >conftest.$ac_ext <<_ACEOF
4345 #line 4345 "configure"
4346 #include "confdefs.h"
4348 #ifdef F77_DUMMY_MAIN
4352 int F77_DUMMY_MAIN() { return 1; }
4357 int some_variable = 0;
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:4363: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>&5
4366 echo "$as_me:4366: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:4369: \"$ac_try\"") >&5
4372 echo "$as_me:4372: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 # The compiler can only warn and ignore the option if not recognized
4375 # So say no if there are warnings
4376 if test -s conftest.err; then
4377 lt_cv_compiler_o_lo=no
4379 lt_cv_compiler_o_lo=yes
4383 echo "$as_me: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4386 rm -f conftest.$ac_objext conftest.$ac_ext
4387 ac_objext="$save_objext"
4388 CFLAGS="$save_CFLAGS"
4392 compiler_o_lo=$lt_cv_compiler_o_lo
4393 echo "$as_me:4393: result: $compiler_o_lo" >&5
4394 echo "${ECHO_T}$compiler_o_lo" >&6
4401 ## FIXME: this should be a separate macro
4403 # Check to see if we can do hard links to lock some files if needed
4404 hard_links="nottested"
4405 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4406 # do not overwrite the value of need_locks provided by the user
4407 echo "$as_me:4407: checking if we can lock with hard links" >&5
4408 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4411 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4413 ln conftest.a conftest.b 2>&5 || hard_links=no
4414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4415 echo "$as_me:4415: result: $hard_links" >&5
4416 echo "${ECHO_T}$hard_links" >&6
4417 if test "$hard_links" = no; then
4418 { echo "$as_me:4418: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4419 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4428 ## FIXME: this should be a separate macro
4430 if test "$GCC" = yes; then
4431 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4432 echo "$as_me:4432: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4433 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4434 echo "int some_variable = 0;" > conftest.$ac_ext
4435 save_CFLAGS="$CFLAGS"
4436 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4437 compiler_rtti_exceptions=no
4438 cat >conftest.$ac_ext <<_ACEOF
4439 #line 4439 "configure"
4440 #include "confdefs.h"
4442 #ifdef F77_DUMMY_MAIN
4446 int F77_DUMMY_MAIN() { return 1; }
4451 int some_variable = 0;
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:4457: \"$ac_compile\"") >&5
4458 (eval $ac_compile) 2>&5
4460 echo "$as_me:4460: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:4463: \"$ac_try\"") >&5
4466 echo "$as_me:4466: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 # The compiler can only warn and ignore the option if not recognized
4469 # So say no if there are warnings
4470 if test -s conftest.err; then
4471 compiler_rtti_exceptions=no
4473 compiler_rtti_exceptions=yes
4477 echo "$as_me: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 rm -f conftest.$ac_objext conftest.$ac_ext
4481 CFLAGS="$save_CFLAGS"
4482 echo "$as_me:4482: result: $compiler_rtti_exceptions" >&5
4483 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4485 if test "$compiler_rtti_exceptions" = "yes"; then
4486 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4488 no_builtin_flag=' -fno-builtin'
4494 ## FIXME: this should be a separate macro
4496 # See if the linker supports building shared libraries.
4497 echo "$as_me:4497: checking whether the linker ($LD) supports shared libraries" >&5
4498 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4500 allow_undefined_flag=
4502 need_lib_prefix=unknown
4503 need_version=unknown
4504 # when you set need_version to no, make sure it does not cause -set_version
4505 # flags to be left without arguments
4507 archive_expsym_cmds=
4508 old_archive_from_new_cmds=
4509 old_archive_from_expsyms_cmds=
4510 export_dynamic_flag_spec=
4511 whole_archive_flag_spec=
4512 thread_safe_flag_spec=
4513 hardcode_into_libs=no
4514 hardcode_libdir_flag_spec=
4515 hardcode_libdir_separator=
4518 hardcode_shlibpath_var=unsupported
4520 link_all_deplibs=unknown
4521 always_export_symbols=no
4522 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4523 # include_expsyms should be a list of space-separated symbols to be *always*
4524 # included in the symbol list
4526 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4527 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4528 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4529 # as well as any symbol that contains `d'.
4530 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4531 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4532 # platforms (ab)use it in PIC code, but their linkers get confused if
4533 # the symbol is explicitly referenced. Since portable code cannot
4534 # rely on this symbol name, it's probably fine to never include it in
4535 # preloaded symbol tables.
4536 extract_expsyms_cmds=
4539 cygwin* | mingw* | pw32*)
4540 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4541 # When not using gcc, we currently assume that we are using
4542 # Microsoft Visual C++.
4543 if test "$GCC" != yes; then
4553 if test "$with_gnu_ld" = yes; then
4554 # If archive_cmds runs LD, not CC, wlarc should be empty
4557 # See if GNU ld supports shared libraries.
4559 aix3* | aix4* | aix5*)
4560 # On AIX, the GNU linker is very broken
4561 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4565 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4566 *** to be unable to reliably create shared libraries on AIX.
4567 *** Therefore, libtool is disabling shared libraries support. If you
4568 *** really care for shared libraries, you may want to modify your PATH
4569 *** so that a non-GNU linker is found, and then restart.
4575 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)'
4576 hardcode_libdir_flag_spec='-L$libdir'
4577 hardcode_minus_L=yes
4579 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4580 # that the semantics of dynamic libraries on AmigaOS, at least up
4581 # to version 4, is to share data among multiple programs linked
4582 # with the same dynamic library. Since this doesn't match the
4583 # behavior of shared libraries on other platforms, we can use
4589 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4590 allow_undefined_flag=unsupported
4591 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4592 # support --undefined. This deserves some investigation. FIXME
4593 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4599 cygwin* | mingw* | pw32*)
4600 # hardcode_libdir_flag_spec is actually meaningless, as there is
4601 # no search path for DLLs.
4602 hardcode_libdir_flag_spec='-L$libdir'
4603 allow_undefined_flag=unsupported
4604 always_export_symbols=yes
4606 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4607 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4608 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4609 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4610 else $CC -o impgen impgen.c ; fi)~
4611 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4613 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4615 # cygwin and mingw dlls have different entry points and sets of symbols
4617 # FIXME: what about values for MSVC?
4618 dll_entry=__cygwin_dll_entry@12
4619 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4623 dll_entry=_DllMainCRTStartup@12
4624 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4628 # mingw and cygwin differ, and it's simplest to just exclude the union
4629 # of the two symbol sets.
4630 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4632 # recent cygwin and mingw systems supply a stub DllMain which the user
4633 # can override, but on older systems we have to supply one (in ltdll.c)
4634 if test "x$lt_cv_need_dllmain" = "xyes"; then
4635 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4636 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~
4637 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4643 # Extract the symbol export list from an `--export-all' def file,
4644 # then regenerate the def file from the symbol export list, so that
4645 # the compiled dll only exports the symbol export list.
4646 # Be careful not to strip the DATA tag left be newer dlltools.
4647 export_symbols_cmds="$ltdll_cmds"'
4648 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4649 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4651 # If the export-symbols file already is a .def file (1st line
4652 # is EXPORTS), use it as is.
4653 # If DATA tags from a recent dlltool are present, honour them!
4654 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4655 cp $export_symbols $output_objdir/$soname-def;
4657 echo EXPORTS > $output_objdir/$soname-def;
4659 cat $export_symbols | while read symbol; do
4662 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4663 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4665 _lt_hint=`expr 1 + \$_lt_hint`;
4669 $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~
4670 $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~
4671 $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~
4672 $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~
4673 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4678 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4681 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4682 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4687 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4691 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4692 *** create shared libraries on Solaris systems. Therefore, libtool
4693 *** is disabling shared libraries support. We urge you to upgrade GNU
4694 *** binutils to release 2.9.1 or newer. Another option is to modify
4695 *** your PATH or compiler configuration so that the native linker is
4696 *** used, and then restart.
4699 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4708 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4711 hardcode_shlibpath_var=no
4715 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4724 if test "$ld_shlibs" = yes; then
4725 runpath_var=LD_RUN_PATH
4726 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4727 export_dynamic_flag_spec='${wl}--export-dynamic'
4729 cygwin* | mingw* | pw32*)
4730 # dlltool doesn't understand --whole-archive et. al.
4731 whole_archive_flag_spec=
4734 # ancient GNU ld didn't support --whole-archive et. al.
4735 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4738 whole_archive_flag_spec=
4744 # PORTME fill in a description of your system's linker (not GNU ld)
4747 allow_undefined_flag=unsupported
4748 always_export_symbols=yes
4749 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'
4750 # Note: this linker hardcodes the directories in LIBPATH if there
4751 # are no directories specified by -L.
4752 hardcode_minus_L=yes
4753 if test "$GCC" = yes && test -z "$link_static_flag"; then
4754 # Neither direct hardcoding nor static linking is supported with a
4756 hardcode_direct=unsupported
4761 if test "$host_cpu" = ia64; then
4762 # On IA64, the linker does run time linking by default, so we don't
4763 # have to do anything special.
4764 aix_use_runtimelinking=no
4765 exp_sym_flag='-Bexport'
4768 aix_use_runtimelinking=no
4770 # Test if we are trying to use run time linking or normal
4771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4772 # need to do runtime linking.
4773 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4774 for ld_flag in $LDFLAGS; do
4775 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4776 aix_use_runtimelinking=yes
4782 exp_sym_flag='-bexport'
4783 no_entry_flag='-bnoentry'
4786 # When large executables or shared objects are built, AIX ld can
4787 # have problems creating the table of contents. If linking a library
4788 # or program results in "error TOC overflow" add -mminimal-toc to
4789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4794 hardcode_libdir_separator=':'
4795 if test "$GCC" = yes; then
4796 case $host_os in aix4.[012]|aix4.[012].*)
4797 collect2name=`${CC} -print-prog-name=collect2`
4798 if test -f "$collect2name" && \
4799 strings "$collect2name" | grep resolve_lib_name >/dev/null
4801 # We have reworked collect2
4804 # We have old collect2
4805 hardcode_direct=unsupported
4806 # It fails to find uninstalled libraries when the uninstalled
4807 # path is not listed in the libpath. Setting hardcode_minus_L
4808 # to unsupported forces relinking
4809 hardcode_minus_L=yes
4810 hardcode_libdir_flag_spec='-L$libdir'
4811 hardcode_libdir_separator=
4815 shared_flag='-shared'
4818 if test "$host_cpu" = ia64; then
4819 shared_flag='${wl}-G'
4821 if test "$aix_use_runtimelinking" = yes; then
4822 shared_flag='${wl}-G'
4824 shared_flag='${wl}-bM:SRE'
4829 # It seems that -bexpall can do strange things, so it is better to
4830 # generate a list of symbols to export.
4831 always_export_symbols=yes
4832 if test "$aix_use_runtimelinking" = yes; then
4833 # Warning - without using the other runtime loading flags (-brtl),
4834 # -berok will link without error, but may produce a broken library.
4835 allow_undefined_flag='-berok'
4836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4837 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4839 if test "$host_cpu" = ia64; then
4840 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4841 allow_undefined_flag="-z nodefs"
4842 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"
4844 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4845 # Warning - without using the other run time loading flags,
4846 # -berok will link without error, but may produce a broken library.
4847 allow_undefined_flag='${wl}-berok'
4848 # This is a bit strange, but is similar to how AIX traditionally builds
4849 # it's shared libraries.
4850 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'
4856 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)'
4857 hardcode_libdir_flag_spec='-L$libdir'
4858 hardcode_minus_L=yes
4859 # see comment about different semantics on the GNU ld section
4863 cygwin* | mingw* | pw32*)
4864 # When not using gcc, we currently assume that we are using
4865 # Microsoft Visual C++.
4866 # hardcode_libdir_flag_spec is actually meaningless, as there is
4867 # no search path for DLLs.
4868 hardcode_libdir_flag_spec=' '
4869 allow_undefined_flag=unsupported
4870 # Tell ltmain to make .lib files, not .a files.
4872 # FIXME: Setting linknames here is a bad hack.
4873 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4874 # The linker will automatically build a .lib file if we build a DLL.
4875 old_archive_from_new_cmds='true'
4876 # FIXME: Should let the user specify the lib program.
4877 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4878 fix_srcfile_path='`cygpath -w "$srcfile"`'
4881 darwin* | rhapsody*)
4883 rhapsody* | darwin1.[012])
4884 allow_undefined_flag='-undefined suppress'
4887 allow_undefined_flag='-flat_namespace -undefined suppress'
4890 # FIXME: Relying on posixy $() will cause problems for
4891 # cross-compilation, but unfortunately the echo tests do not
4892 # yet detect zsh echo's removal of \ escapes.
4893 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4894 # We need to add '_' to the symbols in $export_symbols first
4895 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4897 hardcode_shlibpath_var=no
4898 whole_archive_flag_spec='-all_load $convenience'
4905 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4906 # support. Future versions do this automatically, but an explicit c++rt0.o
4907 # does not break anything, and helps significantly (at the cost of a little
4910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4911 hardcode_libdir_flag_spec='-R$libdir'
4913 hardcode_shlibpath_var=no
4916 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4920 hardcode_minus_L=yes
4921 hardcode_shlibpath_var=no
4924 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4926 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4927 hardcode_libdir_flag_spec='-R$libdir'
4929 hardcode_shlibpath_var=no
4932 hpux9* | hpux10* | hpux11*)
4934 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' ;;
4935 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4938 hardcode_libdir_separator=:
4940 hardcode_minus_L=yes # Not in the search PATH, but as the default
4941 # location of the library.
4942 export_dynamic_flag_spec='${wl}-E'
4946 if test "$GCC" = yes; then
4947 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'
4949 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'
4951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4952 hardcode_libdir_separator=:
4953 link_all_deplibs=yes
4957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4960 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4962 hardcode_libdir_flag_spec='-R$libdir'
4964 hardcode_shlibpath_var=no
4968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4971 hardcode_libdir_separator=:
4972 hardcode_shlibpath_var=no
4977 hardcode_shlibpath_var=no
4978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4981 export_dynamic_flag_spec='${wl}-E'
4984 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4986 hardcode_libdir_flag_spec='-R$libdir'
4989 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4990 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4997 hardcode_libdir_flag_spec='-L$libdir'
4998 hardcode_minus_L=yes
4999 allow_undefined_flag=unsupported
5000 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'
5001 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5005 if test "$GCC" = yes; then
5006 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5007 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'
5009 allow_undefined_flag=' -expect_unresolved \*'
5010 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'
5012 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5013 hardcode_libdir_separator=:
5016 osf4* | osf5*) # as osf3* with the addition of -msym flag
5017 if test "$GCC" = yes; then
5018 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5019 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'
5020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5022 allow_undefined_flag=' -expect_unresolved \*'
5023 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'
5024 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5025 $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'
5027 #Both c and cxx compiler support -rpath directly
5028 hardcode_libdir_flag_spec='-rpath $libdir'
5030 hardcode_libdir_separator=:
5034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5035 hardcode_shlibpath_var=no
5036 runpath_var=LD_RUN_PATH
5037 hardcode_runpath_var=yes
5038 export_dynamic_flag_spec='${wl}-Bexport'
5042 # gcc --version < 3.0 without binutils cannot create self contained
5043 # shared libraries reliably, requiring libgcc.a to resolve some of
5044 # the object symbols generated in some cases. Libraries that use
5045 # assert need libgcc.a to resolve __eprintf, for example. Linking
5046 # a copy of libgcc.a into every shared library to guarantee resolving
5047 # such symbols causes other problems: According to Tim Van Holder
5048 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5049 # (to the application) exception stack for one thing.
5050 no_undefined_flag=' -z defs'
5051 if test "$GCC" = yes; then
5052 case `$CC --version 2>/dev/null` in
5056 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5057 *** create self contained shared libraries on Solaris systems, without
5058 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5059 *** -no-undefined support, which will at least allow you to build shared
5060 *** libraries. However, you may find that when you link such libraries
5061 *** into an application without using GCC, you have to manually add
5062 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5063 *** upgrade to a newer version of GCC. Another option is to rebuild your
5064 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5071 # $CC -shared without GNU ld will not create a library from C++
5072 # object files and a static libstdc++, better avoid it by now
5073 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5074 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5075 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5076 hardcode_libdir_flag_spec='-R$libdir'
5077 hardcode_shlibpath_var=no
5079 solaris2.[0-5] | solaris2.[0-5].*) ;;
5080 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5081 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5083 link_all_deplibs=yes
5087 if test "x$host_vendor" = xsequent; then
5088 # Use $CC to link under sequent, because it throws in some extra .o
5089 # files that make .init and .fini sections work.
5090 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5092 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5094 hardcode_libdir_flag_spec='-L$libdir'
5096 hardcode_minus_L=yes
5097 hardcode_shlibpath_var=no
5101 if test "x$host_vendor" = xsno; then
5102 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5103 hardcode_direct=yes # is this really true???
5105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5106 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5108 runpath_var='LD_RUN_PATH'
5109 hardcode_shlibpath_var=no
5113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5114 hardcode_shlibpath_var=no
5115 export_dynamic_flag_spec='-Bexport'
5119 no_undefined_flag=' -z text'
5120 # $CC -shared without GNU ld will not create a library from C++
5121 # object files and a static libstdc++, better avoid it by now
5122 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5123 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5124 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5125 hardcode_libdir_flag_spec=
5126 hardcode_shlibpath_var=no
5127 runpath_var='LD_RUN_PATH'
5131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5132 hardcode_libdir_flag_spec='-L$libdir'
5133 hardcode_shlibpath_var=no
5137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5138 hardcode_libdir_flag_spec='-L$libdir'
5139 hardcode_shlibpath_var=no
5143 if test -d /usr/nec; then
5144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5145 hardcode_shlibpath_var=no
5146 runpath_var=LD_RUN_PATH
5147 hardcode_runpath_var=yes
5153 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5156 hardcode_shlibpath_var=no
5157 hardcode_runpath_var=yes
5158 runpath_var=LD_RUN_PATH
5161 sysv5uw7* | unixware7*)
5162 no_undefined_flag='${wl}-z ${wl}text'
5163 if test "$GCC" = yes; then
5164 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5166 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5168 runpath_var='LD_RUN_PATH'
5169 hardcode_shlibpath_var=no
5177 echo "$as_me:5177: result: $ld_shlibs" >&5
5178 echo "${ECHO_T}$ld_shlibs" >&6
5179 test "$ld_shlibs" = no && can_build_shared=no
5183 ## FIXME: this should be a separate macro
5185 # Check hardcoding attributes.
5186 echo "$as_me:5186: checking how to hardcode library paths into programs" >&5
5187 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5189 if test -n "$hardcode_libdir_flag_spec" || \
5190 test -n "$runpath_var"; then
5192 # We can hardcode non-existant directories.
5193 if test "$hardcode_direct" != no &&
5194 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5195 # have to relink, otherwise we might link with an installed library
5196 # when we should be linking with a yet-to-be-installed one
5197 ## test "$hardcode_shlibpath_var" != no &&
5198 test "$hardcode_minus_L" != no; then
5199 # Linking always hardcodes the temporary library directory.
5200 hardcode_action=relink
5202 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5203 hardcode_action=immediate
5206 # We cannot hardcode anything, or else we can only hardcode existing
5208 hardcode_action=unsupported
5210 echo "$as_me:5210: result: $hardcode_action" >&5
5211 echo "${ECHO_T}$hardcode_action" >&6
5215 ## FIXME: this should be a separate macro
5219 echo "$as_me:5219: checking whether stripping libraries is possible" >&5
5220 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5221 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5222 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5223 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5224 echo "$as_me:5224: result: yes" >&5
5225 echo "${ECHO_T}yes" >&6
5227 echo "$as_me:5227: result: no" >&5
5228 echo "${ECHO_T}no" >&6
5233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5234 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5236 ## FIXME: this should be a separate macro
5238 # PORTME Fill in your ld.so characteristics
5239 echo "$as_me:5239: checking dynamic linker characteristics" >&5
5240 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5242 libname_spec='lib$name'
5249 shlibpath_overrides_runpath=unknown
5251 dynamic_linker="$host_os ld.so"
5252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5253 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5258 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5259 shlibpath_var=LIBPATH
5261 # AIX has no versioning support, so we append a major version to the name.
5262 soname_spec='${libname}${release}.so$major'
5267 if test "$host_cpu" = ia64; then
5268 # AIX 5 supports IA64
5269 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5270 shlibpath_var=LD_LIBRARY_PATH
5272 # With GCC up to 2.95.x, collect2 would create an import file
5273 # for dependence libraries. The import file would start with
5274 # the line `#! .'. This would cause the generated library to
5275 # depend on `.', always an invalid library. This was fixed in
5276 # development snapshots of GCC prior to 3.0.
5278 aix4 | aix4.[01] | aix4.[01].*)
5279 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5281 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5288 # AIX (on Power*) has no versioning support, so currently we can
5289 # not hardcode correct soname into executable. Probably we can
5290 # add versioning support to collect2, so additional links can
5291 # be useful in future.
5292 if test "$aix_use_runtimelinking" = yes; then
5293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5294 # instead of lib<name>.a to let people know that these are not
5295 # typical AIX shared libraries.
5296 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5298 # We preserve .a as extension for shared libraries through AIX4.2
5299 # and later when we are not doing run time linking.
5300 library_names_spec='${libname}${release}.a $libname.a'
5301 soname_spec='${libname}${release}.so$major'
5303 shlibpath_var=LIBPATH
5308 library_names_spec='$libname.ixlibrary $libname.a'
5309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5310 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'
5314 library_names_spec='${libname}.so'
5315 dynamic_linker="$host_os ld.so"
5316 shlibpath_var=LIBRARY_PATH
5322 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5323 soname_spec='${libname}${release}.so$major'
5324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5325 shlibpath_var=LD_LIBRARY_PATH
5326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5328 export_dynamic_flag_spec=-rdynamic
5329 # the default ld.so.conf also contains /usr/contrib/lib and
5330 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5331 # libtool to hard-code these into programs
5334 cygwin* | mingw* | pw32*)
5335 version_type=windows
5338 case $GCC,$host_os in
5340 library_names_spec='$libname.dll.a'
5341 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5342 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5343 dldir=$destdir/`dirname \$dlpath`~
5344 test -d \$dldir || mkdir -p \$dldir~
5345 $install_prog .libs/$dlname \$dldir/$dlname'
5346 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5347 dlpath=$dir/\$dldll~
5351 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5355 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5358 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5361 dynamic_linker='Win32 ld.exe'
5362 # FIXME: first we should search . and the directory the executable is in
5366 darwin* | rhapsody*)
5367 dynamic_linker="$host_os dyld"
5371 # FIXME: Relying on posixy $() will cause problems for
5372 # cross-compilation, but unfortunately the echo tests do not
5373 # yet detect zsh echo's removal of \ escapes.
5374 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)'
5375 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5376 shlibpath_overrides_runpath=yes
5377 shlibpath_var=DYLD_LIBRARY_PATH
5385 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5386 version_type=freebsd-$objformat
5387 case $version_type in
5389 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5394 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5398 shlibpath_var=LD_LIBRARY_PATH
5401 shlibpath_overrides_runpath=yes
5404 shlibpath_overrides_runpath=no
5405 hardcode_into_libs=yes
5414 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5415 soname_spec='${libname}${release}.so$major'
5416 shlibpath_var=LD_LIBRARY_PATH
5417 hardcode_into_libs=yes
5420 hpux9* | hpux10* | hpux11*)
5421 # Give a soname corresponding to the major version so that dld.sl refuses to
5422 # link against other versions.
5423 dynamic_linker="$host_os dld.sl"
5427 shlibpath_var=SHLIB_PATH
5428 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5429 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5430 soname_spec='${libname}${release}.sl$major'
5431 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5432 postinstall_cmds='chmod 555 $lib'
5439 soname_spec='${libname}${release}.so$major'
5440 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5446 case $LD in # libtool.m4 will add one of these switches to LD
5447 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5448 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5449 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5450 *) libsuff= shlibsuff= libmagic=never-match;;
5454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5455 shlibpath_overrides_runpath=no
5456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5460 # No shared lib support for Linux oldld, aout, or coff.
5461 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5465 # This must be Linux ELF.
5470 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5471 soname_spec='${libname}${release}.so$major'
5472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5473 shlibpath_var=LD_LIBRARY_PATH
5474 shlibpath_overrides_runpath=no
5475 # This implies no fast_install, which is unacceptable.
5476 # Some rework will be needed to allow for fast_install
5477 # before this can be enabled.
5478 hardcode_into_libs=yes
5480 # We used to test for /lib/ld.so.1 and disable shared libraries on
5481 # powerpc, because MkLinux only supported shared libraries with the
5482 # GNU dynamic linker. Since this was broken with cross compilers,
5483 # most powerpc-linux boxes support dynamic linking these days and
5484 # people can always --disable-shared, the test was removed, and we
5485 # assume the GNU/Linux dynamic linker is in use.
5486 dynamic_linker='GNU/Linux ld.so'
5493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5494 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5496 dynamic_linker='NetBSD (a.out) ld.so'
5498 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5499 soname_spec='${libname}${release}.so$major'
5500 dynamic_linker='NetBSD ld.elf_so'
5502 shlibpath_var=LD_LIBRARY_PATH
5503 shlibpath_overrides_runpath=yes
5504 hardcode_into_libs=yes
5509 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5510 shlibpath_var=LD_LIBRARY_PATH
5511 shlibpath_overrides_runpath=yes
5518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5520 openbsd2.[89] | openbsd2.[89].*)
5521 shlibpath_overrides_runpath=no
5524 shlibpath_overrides_runpath=yes
5528 shlibpath_overrides_runpath=yes
5530 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5532 shlibpath_var=LD_LIBRARY_PATH
5536 libname_spec='$name'
5538 library_names_spec='$libname.dll $libname.a'
5539 dynamic_linker='OS/2 ld.exe'
5540 shlibpath_var=LIBPATH
5543 osf3* | osf4* | osf5*)
5546 soname_spec='${libname}${release}.so'
5547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5548 shlibpath_var=LD_LIBRARY_PATH
5549 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5550 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5555 soname_spec='${libname}${release}.so$major'
5556 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5557 shlibpath_var=LD_LIBRARY_PATH
5564 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5565 soname_spec='${libname}${release}.so$major'
5566 shlibpath_var=LD_LIBRARY_PATH
5567 shlibpath_overrides_runpath=yes
5568 hardcode_into_libs=yes
5569 # ldd complains unless libraries are executable
5570 postinstall_cmds='chmod +x $lib'
5575 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5576 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5577 shlibpath_var=LD_LIBRARY_PATH
5578 shlibpath_overrides_runpath=yes
5579 if test "$with_gnu_ld" = yes; then
5585 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5587 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5588 soname_spec='${libname}${release}.so$major'
5589 shlibpath_var=LD_LIBRARY_PATH
5590 case $host_vendor in
5592 shlibpath_overrides_runpath=no
5597 shlibpath_overrides_runpath=no
5598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5605 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5606 soname_spec='${libname}${release}.so$major'
5607 shlibpath_var=LD_LIBRARY_PATH
5614 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5615 soname_spec='${libname}${release}.so$major'
5616 shlibpath_var=LD_LIBRARY_PATH
5620 if test -d /usr/nec ;then
5622 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5623 soname_spec='$libname.so.$major'
5624 shlibpath_var=LD_LIBRARY_PATH
5632 echo "$as_me:5632: result: $dynamic_linker" >&5
5633 echo "${ECHO_T}$dynamic_linker" >&6
5634 test "$dynamic_linker" = no && can_build_shared=no
5638 ## FIXME: this should be a separate macro
5640 # Report the final consequences.
5641 echo "$as_me:5641: checking if libtool supports shared libraries" >&5
5642 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5643 echo "$as_me:5643: result: $can_build_shared" >&5
5644 echo "${ECHO_T}$can_build_shared" >&6
5648 ## FIXME: this should be a separate macro
5650 echo "$as_me:5650: checking whether to build shared libraries" >&5
5651 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5652 test "$can_build_shared" = "no" && enable_shared=no
5654 # On AIX, shared libraries and static libraries use the same namespace, and
5655 # are all built from PIC.
5658 test "$enable_shared" = yes && enable_static=no
5659 if test -n "$RANLIB"; then
5660 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5661 postinstall_cmds='$RANLIB $lib'
5666 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5667 test "$enable_shared" = yes && enable_static=no
5671 echo "$as_me:5671: result: $enable_shared" >&5
5672 echo "${ECHO_T}$enable_shared" >&6
5676 ## FIXME: this should be a separate macro
5678 echo "$as_me:5678: checking whether to build static libraries" >&5
5679 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5680 # Make sure either enable_shared or enable_static is yes.
5681 test "$enable_shared" = yes || enable_static=yes
5682 echo "$as_me:5682: result: $enable_static" >&5
5683 echo "${ECHO_T}$enable_static" >&6
5687 if test "$hardcode_action" = relink; then
5688 # Fast installation is not supported
5689 enable_fast_install=no
5690 elif test "$shlibpath_overrides_runpath" = yes ||
5691 test "$enable_shared" = no; then
5692 # Fast installation is not necessary
5693 enable_fast_install=needless
5696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5697 if test "$GCC" = yes; then
5698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5701 if test "x$enable_dlopen" != xyes; then
5702 enable_dlopen=unknown
5703 enable_dlopen_self=unknown
5704 enable_dlopen_self_static=unknown
5711 lt_cv_dlopen="load_add_on"
5713 lt_cv_dlopen_self=yes
5716 cygwin* | mingw* | pw32*)
5717 lt_cv_dlopen="LoadLibrary"
5722 echo "$as_me:5722: checking for shl_load" >&5
5723 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5724 if test "${ac_cv_func_shl_load+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 cat >conftest.$ac_ext <<_ACEOF
5728 #line 5728 "configure"
5729 #include "confdefs.h"
5730 /* System header to define __stub macros and hopefully few prototypes,
5731 which can conflict with char shl_load (); below. */
5733 /* Override any gcc2 internal prototype to avoid an error. */
5737 /* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */
5742 #ifdef F77_DUMMY_MAIN
5746 int F77_DUMMY_MAIN() { return 1; }
5751 /* The GNU C library defines this for functions which it implements
5752 to always fail with ENOSYS. Some functions are actually named
5753 something starting with __ and the normal name is an alias. */
5754 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5764 rm -f conftest.$ac_objext conftest$ac_exeext
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); } &&
5770 { ac_try='test -s conftest$ac_exeext'
5771 { (eval echo "$as_me:5771: \"$ac_try\"") >&5
5774 echo "$as_me:5774: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 ac_cv_func_shl_load=yes
5778 echo "$as_me: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5780 ac_cv_func_shl_load=no
5782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5784 echo "$as_me:5784: result: $ac_cv_func_shl_load" >&5
5785 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5786 if test $ac_cv_func_shl_load = yes; then
5787 lt_cv_dlopen="shl_load"
5789 echo "$as_me:5789: checking for shl_load in -ldld" >&5
5790 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 ac_check_lib_save_LIBS=$LIBS
5796 cat >conftest.$ac_ext <<_ACEOF
5797 #line 5797 "configure"
5798 #include "confdefs.h"
5800 /* Override any gcc2 internal prototype to avoid an error. */
5804 /* We use char because int might match the return type of a gcc2
5805 builtin and then its argument prototype would still apply. */
5807 #ifdef F77_DUMMY_MAIN
5811 int F77_DUMMY_MAIN() { return 1; }
5821 rm -f conftest.$ac_objext conftest$ac_exeext
5822 if { (eval echo "$as_me:5822: \"$ac_link\"") >&5
5823 (eval $ac_link) 2>&5
5825 echo "$as_me:5825: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -s conftest$ac_exeext'
5828 { (eval echo "$as_me:5828: \"$ac_try\"") >&5
5831 echo "$as_me:5831: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_cv_lib_dld_shl_load=yes
5835 echo "$as_me: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5837 ac_cv_lib_dld_shl_load=no
5839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5840 LIBS=$ac_check_lib_save_LIBS
5842 echo "$as_me:5842: result: $ac_cv_lib_dld_shl_load" >&5
5843 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5844 if test $ac_cv_lib_dld_shl_load = yes; then
5845 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5847 echo "$as_me:5847: checking for dlopen" >&5
5848 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5849 if test "${ac_cv_func_dlopen+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 cat >conftest.$ac_ext <<_ACEOF
5853 #line 5853 "configure"
5854 #include "confdefs.h"
5855 /* System header to define __stub macros and hopefully few prototypes,
5856 which can conflict with char dlopen (); below. */
5858 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5867 #ifdef F77_DUMMY_MAIN
5871 int F77_DUMMY_MAIN() { return 1; }
5876 /* The GNU C library defines this for functions which it implements
5877 to always fail with ENOSYS. Some functions are actually named
5878 something starting with __ and the normal name is an alias. */
5879 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (eval echo "$as_me:5890: \"$ac_link\"") >&5
5891 (eval $ac_link) 2>&5
5893 echo "$as_me:5893: \$? = $ac_status" >&5
5894 (exit $ac_status); } &&
5895 { ac_try='test -s conftest$ac_exeext'
5896 { (eval echo "$as_me:5896: \"$ac_try\"") >&5
5899 echo "$as_me:5899: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_cv_func_dlopen=yes
5903 echo "$as_me: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5905 ac_cv_func_dlopen=no
5907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5909 echo "$as_me:5909: result: $ac_cv_func_dlopen" >&5
5910 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5911 if test $ac_cv_func_dlopen = yes; then
5912 lt_cv_dlopen="dlopen"
5914 echo "$as_me:5914: checking for dlopen in -ldl" >&5
5915 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5916 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 ac_check_lib_save_LIBS=$LIBS
5921 cat >conftest.$ac_ext <<_ACEOF
5922 #line 5922 "configure"
5923 #include "confdefs.h"
5925 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5932 #ifdef F77_DUMMY_MAIN
5936 int F77_DUMMY_MAIN() { return 1; }
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:5947: \"$ac_link\"") >&5
5948 (eval $ac_link) 2>&5
5950 echo "$as_me:5950: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -s conftest$ac_exeext'
5953 { (eval echo "$as_me:5953: \"$ac_try\"") >&5
5956 echo "$as_me:5956: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_lib_dl_dlopen=yes
5960 echo "$as_me: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5962 ac_cv_lib_dl_dlopen=no
5964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5965 LIBS=$ac_check_lib_save_LIBS
5967 echo "$as_me:5967: result: $ac_cv_lib_dl_dlopen" >&5
5968 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5969 if test $ac_cv_lib_dl_dlopen = yes; then
5970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5972 echo "$as_me:5972: checking for dlopen in -lsvld" >&5
5973 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5974 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 ac_check_lib_save_LIBS=$LIBS
5979 cat >conftest.$ac_ext <<_ACEOF
5980 #line 5980 "configure"
5981 #include "confdefs.h"
5983 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5990 #ifdef F77_DUMMY_MAIN
5994 int F77_DUMMY_MAIN() { return 1; }
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (eval echo "$as_me:6005: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>&5
6008 echo "$as_me:6008: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -s conftest$ac_exeext'
6011 { (eval echo "$as_me:6011: \"$ac_try\"") >&5
6014 echo "$as_me:6014: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_lib_svld_dlopen=yes
6018 echo "$as_me: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6020 ac_cv_lib_svld_dlopen=no
6022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6023 LIBS=$ac_check_lib_save_LIBS
6025 echo "$as_me:6025: result: $ac_cv_lib_svld_dlopen" >&5
6026 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6027 if test $ac_cv_lib_svld_dlopen = yes; then
6028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6030 echo "$as_me:6030: checking for dld_link in -ldld" >&5
6031 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6032 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_check_lib_save_LIBS=$LIBS
6037 cat >conftest.$ac_ext <<_ACEOF
6038 #line 6038 "configure"
6039 #include "confdefs.h"
6041 /* Override any gcc2 internal prototype to avoid an error. */
6045 /* We use char because int might match the return type of a gcc2
6046 builtin and then its argument prototype would still apply. */
6048 #ifdef F77_DUMMY_MAIN
6052 int F77_DUMMY_MAIN() { return 1; }
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (eval echo "$as_me:6063: \"$ac_link\"") >&5
6064 (eval $ac_link) 2>&5
6066 echo "$as_me:6066: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -s conftest$ac_exeext'
6069 { (eval echo "$as_me:6069: \"$ac_try\"") >&5
6072 echo "$as_me:6072: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6074 ac_cv_lib_dld_dld_link=yes
6076 echo "$as_me: failed program was:" >&5
6077 cat conftest.$ac_ext >&5
6078 ac_cv_lib_dld_dld_link=no
6080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6081 LIBS=$ac_check_lib_save_LIBS
6083 echo "$as_me:6083: result: $ac_cv_lib_dld_dld_link" >&5
6084 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6085 if test $ac_cv_lib_dld_dld_link = yes; then
6086 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6102 if test "x$lt_cv_dlopen" != xno; then
6108 case $lt_cv_dlopen in
6110 save_CPPFLAGS="$CPPFLAGS"
6111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6113 save_LDFLAGS="$LDFLAGS"
6114 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6117 LIBS="$lt_cv_dlopen_libs $LIBS"
6119 echo "$as_me:6119: checking whether a program can dlopen itself" >&5
6120 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6121 if test "${lt_cv_dlopen_self+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 if test "$cross_compiling" = yes; then :
6125 lt_cv_dlopen_self=cross
6127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6128 lt_status=$lt_dlunknown
6129 cat > conftest.$ac_ext <<EOF
6130 #line 6130 "configure"
6131 #include "confdefs.h"
6140 # define LT_DLGLOBAL RTLD_GLOBAL
6143 # define LT_DLGLOBAL DL_GLOBAL
6145 # define LT_DLGLOBAL 0
6149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6150 find out it does not work in some platform. */
6151 #ifndef LT_DLLAZY_OR_NOW
6153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6156 # define LT_DLLAZY_OR_NOW DL_LAZY
6159 # define LT_DLLAZY_OR_NOW RTLD_NOW
6162 # define LT_DLLAZY_OR_NOW DL_NOW
6164 # define LT_DLLAZY_OR_NOW 0
6172 extern "C" void exit (int);
6175 void fnord() { int i=42;}
6178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6179 int status = $lt_dlunknown;
6183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6185 /* dlclose (self); */
6191 if { (eval echo "$as_me:6191: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6194 echo "$as_me:6194: \$? = $ac_status" >&5
6195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6196 (./conftest; exit; ) 2>/dev/null
6199 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6200 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6201 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6204 # compilation failed
6205 lt_cv_dlopen_self=no
6211 echo "$as_me:6211: result: $lt_cv_dlopen_self" >&5
6212 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6214 if test "x$lt_cv_dlopen_self" = xyes; then
6215 LDFLAGS="$LDFLAGS $link_static_flag"
6216 echo "$as_me:6216: checking whether a statically linked program can dlopen itself" >&5
6217 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6218 if test "${lt_cv_dlopen_self_static+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 if test "$cross_compiling" = yes; then :
6222 lt_cv_dlopen_self_static=cross
6224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6225 lt_status=$lt_dlunknown
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6227 "configure"
6228 #include "confdefs.h"
6237 # define LT_DLGLOBAL RTLD_GLOBAL
6240 # define LT_DLGLOBAL DL_GLOBAL
6242 # define LT_DLGLOBAL 0
6246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6247 find out it does not work in some platform. */
6248 #ifndef LT_DLLAZY_OR_NOW
6250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6253 # define LT_DLLAZY_OR_NOW DL_LAZY
6256 # define LT_DLLAZY_OR_NOW RTLD_NOW
6259 # define LT_DLLAZY_OR_NOW DL_NOW
6261 # define LT_DLLAZY_OR_NOW 0
6269 extern "C" void exit (int);
6272 void fnord() { int i=42;}
6275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6276 int status = $lt_dlunknown;
6280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6281 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6282 /* dlclose (self); */
6288 if { (eval echo "$as_me:6288: \"$ac_link\"") >&5
6289 (eval $ac_link) 2>&5
6291 echo "$as_me:6291: \$? = $ac_status" >&5
6292 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6293 (./conftest; exit; ) 2>/dev/null
6296 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6297 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6298 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6301 # compilation failed
6302 lt_cv_dlopen_self_static=no
6308 echo "$as_me:6308: result: $lt_cv_dlopen_self_static" >&5
6309 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6312 CPPFLAGS="$save_CPPFLAGS"
6313 LDFLAGS="$save_LDFLAGS"
6318 case $lt_cv_dlopen_self in
6319 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6320 *) enable_dlopen_self=unknown ;;
6323 case $lt_cv_dlopen_self_static in
6324 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6325 *) enable_dlopen_self_static=unknown ;;
6329 ## FIXME: this should be a separate macro
6331 if test "$enable_shared" = yes && test "$GCC" = yes; then
6332 case $archive_cmds in
6334 # FIXME: we may have to deal with multi-command sequences.
6337 # Test whether the compiler implicitly links with -lc since on some
6338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6339 # to ld, don't add -lc before -lgcc.
6340 echo "$as_me:6340: checking whether -lc should be explicitly linked in" >&5
6341 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6342 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 echo 'static int dummy;' > conftest.$ac_ext
6348 if { (eval echo "$as_me:6348: \"$ac_compile\"") >&5
6349 (eval $ac_compile) 2>&5
6351 echo "$as_me:6351: \$? = $ac_status" >&5
6352 (exit $ac_status); }; then
6355 libobjs=conftest.$ac_objext
6357 wl=$lt_cv_prog_cc_wl
6363 save_allow_undefined_flag=$allow_undefined_flag
6364 allow_undefined_flag=
6365 if { (eval echo "$as_me:6365: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6366 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6368 echo "$as_me:6368: \$? = $ac_status" >&5
6369 (exit $ac_status); }
6371 lt_cv_archive_cmds_need_lc=no
6373 lt_cv_archive_cmds_need_lc=yes
6375 allow_undefined_flag=$save_allow_undefined_flag
6377 cat conftest.err 1>&5
6381 echo "$as_me:6381: result: $lt_cv_archive_cmds_need_lc" >&5
6382 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6386 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6390 ## FIXME: this should be a separate macro
6392 # The second clause should only fire when bootstrapping the
6393 # libtool distribution, otherwise you forgot to ship ltmain.sh
6394 # with your package, and you will get complaints that there are
6395 # no rules to generate ltmain.sh.
6396 if test -f "$ltmain"; then
6399 # If there is no Makefile yet, we rely on a make rule to execute
6400 # `config.status --recheck' to rerun these tests and create the
6401 # libtool script then.
6402 test -f Makefile && make "$ltmain"
6405 if test -f "$ltmain"; then
6406 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6409 echo creating $ofile
6411 # Now quote all the things that may contain metacharacters while being
6412 # careful not to overquote the AC_SUBSTed values. We take copies of the
6413 # variables and quote the copies for generation of the libtool script.
6414 for var in echo old_CC old_CFLAGS \
6415 AR AR_FLAGS CC LD LN_S NM SHELL \
6416 reload_flag reload_cmds wl \
6417 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6418 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6419 library_names_spec soname_spec \
6420 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6421 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6422 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6423 old_striplib striplib file_magic_cmd export_symbols_cmds \
6424 deplibs_check_method allow_undefined_flag no_undefined_flag \
6425 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6426 global_symbol_to_c_name_address \
6427 hardcode_libdir_flag_spec hardcode_libdir_separator \
6428 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6429 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6432 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6433 old_postinstall_cmds | old_postuninstall_cmds | \
6434 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6435 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6436 postinstall_cmds | postuninstall_cmds | \
6437 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6438 # Double-quote double-evaled strings.
6439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6447 cat <<__EOF__ > "${ofile}T"
6450 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6451 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6452 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6454 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6455 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6457 # This program is free software; you can redistribute it and/or modify
6458 # it under the terms of the GNU General Public License as published by
6459 # the Free Software Foundation; either version 2 of the License, or
6460 # (at your option) any later version.
6462 # This program is distributed in the hope that it will be useful, but
6463 # WITHOUT ANY WARRANTY; without even the implied warranty of
6464 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6465 # General Public License for more details.
6467 # You should have received a copy of the GNU General Public License
6468 # along with this program; if not, write to the Free Software
6469 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6471 # As a special exception to the GNU General Public License, if you
6472 # distribute this file as part of a program that contains a
6473 # configuration script generated by Autoconf, you may include it under
6474 # the same distribution terms that you use for the rest of that program.
6476 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6477 Xsed="sed -e s/^X//"
6479 # The HP-UX ksh and POSIX shell print the target directory to stdout
6481 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6483 # ### BEGIN LIBTOOL CONFIG
6485 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6487 # Shell to use when invoking shell scripts.
6490 # Whether or not to build shared libraries.
6491 build_libtool_libs=$enable_shared
6493 # Whether or not to build static libraries.
6494 build_old_libs=$enable_static
6496 # Whether or not to add -lc for building shared libraries.
6497 build_libtool_need_lc=$need_lc
6499 # Whether or not to optimize for fast installation.
6500 fast_install=$enable_fast_install
6503 host_alias=$host_alias
6506 # An echo program that does not interpret backslashes.
6511 AR_FLAGS=$lt_AR_FLAGS
6513 # The default C compiler.
6516 # Is the compiler the GNU C compiler?
6519 # The linker used to build libraries.
6522 # Whether we need hard or soft links.
6525 # A BSD-compatible nm program.
6528 # A symbol stripping program
6531 # Used to examine libraries when file_magic_cmd begins "file"
6532 MAGIC_CMD=$MAGIC_CMD
6534 # Used on cygwin: DLL creation program.
6537 # Used on cygwin: object dumper.
6540 # Used on cygwin: assembler.
6543 # The name of the directory that contains temporary libtool files.
6546 # How to create reloadable object files.
6547 reload_flag=$lt_reload_flag
6548 reload_cmds=$lt_reload_cmds
6550 # How to pass a linker flag through the compiler.
6553 # Object file suffix (normally "o").
6556 # Old archive suffix (normally "a").
6559 # Executable file suffix (normally "").
6562 # Additional compiler flags for building library objects.
6563 pic_flag=$lt_pic_flag
6566 # Does compiler simultaneously support -c and -o options?
6567 compiler_c_o=$lt_compiler_c_o
6569 # Can we write directly to a .lo ?
6570 compiler_o_lo=$lt_compiler_o_lo
6572 # Must we lock files when doing compilation ?
6573 need_locks=$lt_need_locks
6575 # Do we need the lib prefix for modules?
6576 need_lib_prefix=$need_lib_prefix
6578 # Do we need a version for libraries?
6579 need_version=$need_version
6581 # Whether dlopen is supported.
6582 dlopen_support=$enable_dlopen
6584 # Whether dlopen of programs is supported.
6585 dlopen_self=$enable_dlopen_self
6587 # Whether dlopen of statically linked programs is supported.
6588 dlopen_self_static=$enable_dlopen_self_static
6590 # Compiler flag to prevent dynamic linking.
6591 link_static_flag=$lt_link_static_flag
6593 # Compiler flag to turn off builtin functions.
6594 no_builtin_flag=$lt_no_builtin_flag
6596 # Compiler flag to allow reflexive dlopens.
6597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6599 # Compiler flag to generate shared objects directly from archives.
6600 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6602 # Compiler flag to generate thread-safe objects.
6603 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6605 # Library versioning type.
6606 version_type=$version_type
6608 # Format of library name prefix.
6609 libname_spec=$lt_libname_spec
6611 # List of archive names. First name is the real one, the rest are links.
6612 # The last name is the one that the linker finds with -lNAME.
6613 library_names_spec=$lt_library_names_spec
6615 # The coded name of the library, if different from the real name.
6616 soname_spec=$lt_soname_spec
6618 # Commands used to build and install an old-style archive.
6620 old_archive_cmds=$lt_old_archive_cmds
6621 old_postinstall_cmds=$lt_old_postinstall_cmds
6622 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6624 # Create an old-style archive from a shared archive.
6625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6627 # Create a temporary old-style archive to link instead of a shared archive.
6628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6630 # Commands used to build and install a shared archive.
6631 archive_cmds=$lt_archive_cmds
6632 archive_expsym_cmds=$lt_archive_expsym_cmds
6633 postinstall_cmds=$lt_postinstall_cmds
6634 postuninstall_cmds=$lt_postuninstall_cmds
6636 # Commands to strip libraries.
6637 old_striplib=$lt_old_striplib
6638 striplib=$lt_striplib
6640 # Method to check whether dependent libraries are shared objects.
6641 deplibs_check_method=$lt_deplibs_check_method
6643 # Command to use when deplibs_check_method == file_magic.
6644 file_magic_cmd=$lt_file_magic_cmd
6646 # Flag that allows shared libraries with undefined symbols to be built.
6647 allow_undefined_flag=$lt_allow_undefined_flag
6649 # Flag that forces no undefined symbols.
6650 no_undefined_flag=$lt_no_undefined_flag
6652 # Commands used to finish a libtool library installation in a directory.
6653 finish_cmds=$lt_finish_cmds
6655 # Same as above, but a single script fragment to be evaled but not shown.
6656 finish_eval=$lt_finish_eval
6658 # Take the output of nm and produce a listing of raw symbols and C names.
6659 global_symbol_pipe=$lt_global_symbol_pipe
6661 # Transform the output of nm in a proper C declaration
6662 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6664 # Transform the output of nm in a C name address pair
6665 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6667 # This is the shared library runtime path variable.
6668 runpath_var=$runpath_var
6670 # This is the shared library path variable.
6671 shlibpath_var=$shlibpath_var
6673 # Is shlibpath searched before the hard-coded library search path?
6674 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6676 # How to hardcode a shared library path into an executable.
6677 hardcode_action=$hardcode_action
6679 # Whether we should hardcode library paths into libraries.
6680 hardcode_into_libs=$hardcode_into_libs
6682 # Flag to hardcode \$libdir into a binary during linking.
6683 # This must work even if \$libdir does not exist.
6684 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6686 # Whether we need a single -rpath flag with a separated argument.
6687 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6689 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6691 hardcode_direct=$hardcode_direct
6693 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6695 hardcode_minus_L=$hardcode_minus_L
6697 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6698 # the resulting binary.
6699 hardcode_shlibpath_var=$hardcode_shlibpath_var
6701 # Variables whose values should be saved in libtool wrapper scripts and
6702 # restored at relink time.
6703 variables_saved_for_relink="$variables_saved_for_relink"
6705 # Whether libtool must link a program against all its dependency libraries.
6706 link_all_deplibs=$link_all_deplibs
6708 # Compile-time system search path for libraries
6709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6711 # Run-time system search path for libraries
6712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6714 # Fix the shell variable \$srcfile for the compiler.
6715 fix_srcfile_path="$fix_srcfile_path"
6717 # Set to yes if exported symbols are required.
6718 always_export_symbols=$always_export_symbols
6720 # The commands to list exported symbols.
6721 export_symbols_cmds=$lt_export_symbols_cmds
6723 # The commands to extract the exported symbol list from a shared archive.
6724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6726 # Symbols that should not be listed in the preloaded symbols.
6727 exclude_expsyms=$lt_exclude_expsyms
6729 # Symbols that must always be exported.
6730 include_expsyms=$lt_include_expsyms
6732 # ### END LIBTOOL CONFIG
6738 cat <<\EOF >> "${ofile}T"
6740 # AIX sometimes has problems with the GCC collect2 program. For some
6741 # reason, if we set the COLLECT_NAMES environment variable, the problems
6742 # vanish in a puff of smoke.
6743 if test "X${COLLECT_NAMES+set}" != Xset; then
6745 export COLLECT_NAMES
6752 cygwin* | mingw* | pw32* | os2*)
6753 cat <<'EOF' >> "${ofile}T"
6754 # This is a source program that is used to create dlls on Windows
6755 # Don't remove nor modify the starting and closing comments
6756 # /* ltdll.c starts here */
6757 # #define WIN32_LEAN_AND_MEAN
6758 # #include <windows.h>
6759 # #undef WIN32_LEAN_AND_MEAN
6760 # #include <stdio.h>
6762 # #ifndef __CYGWIN__
6763 # # ifdef __CYGWIN32__
6764 # # define __CYGWIN__ __CYGWIN32__
6768 # #ifdef __cplusplus
6771 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6772 # #ifdef __cplusplus
6777 # #include <cygwin/cygwin_dll.h>
6778 # DECLARE_CYGWIN_DLL( DllMain );
6780 # HINSTANCE __hDllInstance_base;
6783 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6785 # __hDllInstance_base = hInst;
6788 # /* ltdll.c ends here */
6789 # This is a source program that is used to create import libraries
6790 # on Windows for dlls which lack them. Don't remove nor modify the
6791 # starting and closing comments
6792 # /* impgen.c starts here */
6793 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6795 # This file is part of GNU libtool.
6797 # This program is free software; you can redistribute it and/or modify
6798 # it under the terms of the GNU General Public License as published by
6799 # the Free Software Foundation; either version 2 of the License, or
6800 # (at your option) any later version.
6802 # This program is distributed in the hope that it will be useful,
6803 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6805 # GNU General Public License for more details.
6807 # You should have received a copy of the GNU General Public License
6808 # along with this program; if not, write to the Free Software
6809 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6812 # #include <stdio.h> /* for printf() */
6813 # #include <unistd.h> /* for open(), lseek(), read() */
6814 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6815 # #include <string.h> /* for strdup() */
6817 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6819 # #define O_BINARY 0
6822 # static unsigned int
6823 # pe_get16 (fd, offset)
6827 # unsigned char b[2];
6828 # lseek (fd, offset, SEEK_SET);
6830 # return b[0] + (b[1]<<8);
6833 # static unsigned int
6834 # pe_get32 (fd, offset)
6838 # unsigned char b[4];
6839 # lseek (fd, offset, SEEK_SET);
6841 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6844 # static unsigned int
6848 # unsigned char *b = ptr;
6849 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6858 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6859 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6860 # unsigned long name_rvas, nexp;
6861 # unsigned char *expdata, *erva;
6862 # char *filename, *dll_name;
6864 # filename = argv[1];
6866 # dll = open(filename, O_RDONLY|O_BINARY);
6870 # dll_name = filename;
6872 # for (i=0; filename[i]; i++)
6873 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6874 # dll_name = filename + i +1;
6876 # pe_header_offset = pe_get32 (dll, 0x3c);
6877 # opthdr_ofs = pe_header_offset + 4 + 20;
6878 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6880 # if (num_entries < 1) /* no exports */
6883 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6884 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6885 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6886 # secptr = (pe_header_offset + 4 + 20 +
6887 # pe_get16 (dll, pe_header_offset + 4 + 16));
6890 # for (i = 0; i < nsections; i++)
6893 # unsigned long secptr1 = secptr + 40 * i;
6894 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6895 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6896 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6897 # lseek(dll, secptr1, SEEK_SET);
6898 # read(dll, sname, 8);
6899 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6901 # expptr = fptr + (export_rva - vaddr);
6902 # if (export_rva + export_size > vaddr + vsize)
6903 # export_size = vsize - (export_rva - vaddr);
6908 # expdata = (unsigned char*)malloc(export_size);
6909 # lseek (dll, expptr, SEEK_SET);
6910 # read (dll, expdata, export_size);
6911 # erva = expdata - export_rva;
6913 # nexp = pe_as32 (expdata+24);
6914 # name_rvas = pe_as32 (expdata+32);
6916 # printf ("EXPORTS\n");
6917 # for (i = 0; i<nexp; i++)
6919 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6920 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6925 # /* impgen.c ends here */
6931 # We use sed instead of cat because bash on DJGPP gets confused if
6932 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6933 # text mode, it properly converts lines to CR/LF. This bash problem
6934 # is reportedly fixed, but why not run on old versions too?
6935 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6937 mv -f "${ofile}T" "$ofile" || \
6938 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6944 # This can be used to rebuild libtool when needed
6945 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6947 # Always use our own libtool.
6948 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6950 # Prevent multiple expansion
6952 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
6953 if test "${enable_strict_dependencies+set}" = set; then
6954 enableval="$enable_strict_dependencies"
6958 logdir='${localstatedir}/log/radius'
6959 echo "$as_me:6959: checking logdir" >&5
6960 echo $ECHO_N "checking logdir... $ECHO_C" >&6
6962 # Check whether --with-logdir or --without-logdir was given.
6963 if test "${with_logdir+set}" = set; then
6964 withval="$with_logdir"
6967 { { echo "$as_me:6967: error: Need logdir" >&5
6968 echo "$as_me: error: Need logdir" >&2;}
6969 { (exit 1); exit 1; }; }
6980 echo "$as_me:6980: result: $logdir" >&5
6981 echo "${ECHO_T}$logdir" >&6
6983 radacctdir='${logdir}/radacct'
6984 echo "$as_me:6984: checking radacctdir" >&5
6985 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
6987 # Check whether --with-radacctdir or --without-radacctdir was given.
6988 if test "${with_radacctdir+set}" = set; then
6989 withval="$with_radacctdir"
6992 { { echo "$as_me:6992: error: Need radacctdir" >&5
6993 echo "$as_me: error: Need radacctdir" >&2;}
6994 { (exit 1); exit 1; }; }
6999 radacctdir="$withval"
7005 echo "$as_me:7005: result: $radacctdir" >&5
7006 echo "${ECHO_T}$radacctdir" >&6
7008 raddbdir='${sysconfdir}/raddb'
7009 echo "$as_me:7009: checking raddbdir" >&5
7010 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
7012 # Check whether --with-raddbdir or --without-raddbdir was given.
7013 if test "${with_raddbdir+set}" = set; then
7014 withval="$with_raddbdir"
7017 { { echo "$as_me:7017: error: Need raddbdir" >&5
7018 echo "$as_me: error: Need raddbdir" >&2;}
7019 { (exit 1); exit 1; }; }
7030 echo "$as_me:7030: result: $raddbdir" >&5
7031 echo "${ECHO_T}$raddbdir" >&6
7033 WITH_DICT_NOCASE=yes
7035 # Check whether --with-dict-nocase or --without-dict-nocase was given.
7036 if test "${with_dict_nocase+set}" = set; then
7037 withval="$with_dict_nocase"
7046 if test "X$WITH_DICT_NOCASE" = "Xyes"; then
7047 cat >>confdefs.h <<\_ACEOF
7048 #define WITH_DICT_NOCASE 1
7055 # Check whether --with-ascend-binary or --without-ascend-binary was given.
7056 if test "${with_ascend_binary+set}" = set; then
7057 withval="$with_ascend_binary"
7066 if test "X$ASCEND_BINARY" = "Xyes"; then
7067 cat >>confdefs.h <<\_ACEOF
7068 #define ASCEND_BINARY 1
7074 WITH_THREAD_POOL=yes
7076 # Check whether --with-threads or --without-threads was given.
7077 if test "${with_threads+set}" = set; then
7078 withval="$with_threads"
7091 # Check whether --with-snmp or --without-snmp was given.
7092 if test "${with_snmp+set}" = set; then
7093 withval="$with_snmp"
7103 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
7104 if test "${enable_ltdl_install+set}" = set; then
7105 enableval="$enable_ltdl_install"
7108 if test x"${enable_ltdl_install+set}" != xset; then
7109 enable_ltdl_install=yes
7110 ac_configure_args="$ac_configure_args --enable-ltdl-install"
7113 subdirs="$subdirs libltdl"
7117 # Check whether --with-static_modules or --without-static_modules was given.
7118 if test "${with_static_modules+set}" = set; then
7119 withval="$with_static_modules"
7121 for i in $withval; do
7122 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
7127 # Check whether --enable-developer or --disable-developer was given.
7128 if test "${enable_developer+set}" = set; then
7129 enableval="$enable_developer"
7140 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
7146 # Check whether --with-experimental-modules or --without-experimental-modules was given.
7147 if test "${with_experimental_modules+set}" = set; then
7148 withval="$with_experimental_modules"
7158 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
7159 if test "${with_rlm_FOO_lib_dir+set}" = set; then
7160 withval="$with_rlm_FOO_lib_dir"
7168 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
7169 if test "${with_rlm_FOO_include_dir+set}" = set; then
7170 withval="$with_rlm_FOO_include_dir"
7178 CHECKRAD=checkrad.pl
7179 # Extract the first word of "perl", so it can be a program name with args.
7180 set dummy perl; ac_word=$2
7181 echo "$as_me:7181: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7183 if test "${ac_cv_path_PERL+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7191 ac_save_IFS=$IFS; IFS=$ac_path_separator
7193 for ac_dir in $ac_dummy; do
7195 test -z "$ac_dir" && ac_dir=.
7196 if $as_executable_p "$ac_dir/$ac_word"; then
7197 ac_cv_path_PERL="$ac_dir/$ac_word"
7198 echo "$as_me:7198: found $ac_dir/$ac_word" >&5
7203 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
7207 PERL=$ac_cv_path_PERL
7209 if test -n "$PERL"; then
7210 echo "$as_me:7210: result: $PERL" >&5
7211 echo "${ECHO_T}$PERL" >&6
7213 echo "$as_me:7213: result: no" >&5
7214 echo "${ECHO_T}no" >&6
7217 if test "x$ac_cv_path_PERL" = "x"; then
7218 { echo "$as_me:7218: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
7219 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
7221 # Extract the first word of "snmpget", so it can be a program name with args.
7222 set dummy snmpget; ac_word=$2
7223 echo "$as_me:7223: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7225 if test "${ac_cv_path_SNMPGET+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
7233 ac_save_IFS=$IFS; IFS=$ac_path_separator
7235 for ac_dir in $ac_dummy; do
7237 test -z "$ac_dir" && ac_dir=.
7238 if $as_executable_p "$ac_dir/$ac_word"; then
7239 ac_cv_path_SNMPGET="$ac_dir/$ac_word"
7240 echo "$as_me:7240: found $ac_dir/$ac_word" >&5
7248 SNMPGET=$ac_cv_path_SNMPGET
7250 if test -n "$SNMPGET"; then
7251 echo "$as_me:7251: result: $SNMPGET" >&5
7252 echo "${ECHO_T}$SNMPGET" >&6
7254 echo "$as_me:7254: result: no" >&5
7255 echo "${ECHO_T}no" >&6
7258 if test "x$ac_cv_path_SNMPGET" = "x"; then
7259 { echo "$as_me:7259: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
7260 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
7263 # Extract the first word of "snmpwalk", so it can be a program name with args.
7264 set dummy snmpwalk; ac_word=$2
7265 echo "$as_me:7265: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267 if test "${ac_cv_path_SNMPWALK+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
7275 ac_save_IFS=$IFS; IFS=$ac_path_separator
7277 for ac_dir in $ac_dummy; do
7279 test -z "$ac_dir" && ac_dir=.
7280 if $as_executable_p "$ac_dir/$ac_word"; then
7281 ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
7282 echo "$as_me:7282: found $ac_dir/$ac_word" >&5
7290 SNMPWALK=$ac_cv_path_SNMPWALK
7292 if test -n "$SNMPWALK"; then
7293 echo "$as_me:7293: result: $SNMPWALK" >&5
7294 echo "${ECHO_T}$SNMPWALK" >&6
7296 echo "$as_me:7296: result: no" >&5
7297 echo "${ECHO_T}no" >&6
7300 if test "x$ac_cv_path_SNMPWALK" = "x"; then
7301 { echo "$as_me:7301: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
7302 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
7305 # Extract the first word of "rusers", so it can be a program name with args.
7306 set dummy rusers; ac_word=$2
7307 echo "$as_me:7307: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_path_RUSERS+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
7317 ac_save_IFS=$IFS; IFS=$ac_path_separator
7319 for ac_dir in $ac_dummy; do
7321 test -z "$ac_dir" && ac_dir=.
7322 if $as_executable_p "$ac_dir/$ac_word"; then
7323 ac_cv_path_RUSERS="$ac_dir/$ac_word"
7324 echo "$as_me:7324: found $ac_dir/$ac_word" >&5
7329 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
7333 RUSERS=$ac_cv_path_RUSERS
7335 if test -n "$RUSERS"; then
7336 echo "$as_me:7336: result: $RUSERS" >&5
7337 echo "${ECHO_T}$RUSERS" >&6
7339 echo "$as_me:7339: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7343 missing_dir=`cd $ac_aux_dir && pwd`
7344 echo "$as_me:7344: checking for working aclocal" >&5
7345 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
7346 # Run test in a subshell; some versions of sh will print an error if
7347 # an executable is not found, even if stderr is redirected.
7348 # Redirect stdin to placate older versions of autoconf. Sigh.
7349 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
7351 echo "$as_me:7351: result: found" >&5
7352 echo "${ECHO_T}found" >&6
7354 ACLOCAL="$missing_dir/missing aclocal"
7355 echo "$as_me:7355: result: missing" >&5
7356 echo "${ECHO_T}missing" >&6
7359 echo "$as_me:7359: checking for working autoconf" >&5
7360 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
7361 # Run test in a subshell; some versions of sh will print an error if
7362 # an executable is not found, even if stderr is redirected.
7363 # Redirect stdin to placate older versions of autoconf. Sigh.
7364 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
7366 echo "$as_me:7366: result: found" >&5
7367 echo "${ECHO_T}found" >&6
7369 AUTOCONF="$missing_dir/missing autoconf"
7370 echo "$as_me:7370: result: missing" >&5
7371 echo "${ECHO_T}missing" >&6
7374 echo "$as_me:7374: checking for working autoheader" >&5
7375 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
7376 # Run test in a subshell; some versions of sh will print an error if
7377 # an executable is not found, even if stderr is redirected.
7378 # Redirect stdin to placate older versions of autoconf. Sigh.
7379 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
7380 AUTOHEADER=autoheader
7381 echo "$as_me:7381: result: found" >&5
7382 echo "${ECHO_T}found" >&6
7384 AUTOHEADER="$missing_dir/missing autoheader"
7385 echo "$as_me:7385: result: missing" >&5
7386 echo "${ECHO_T}missing" >&6
7389 # Extract the first word of "locate", so it can be a program name with args.
7390 set dummy locate; ac_word=$2
7391 echo "$as_me:7391: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7393 if test "${ac_cv_path_LOCATE+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
7401 ac_save_IFS=$IFS; IFS=$ac_path_separator
7403 for ac_dir in $ac_dummy; do
7405 test -z "$ac_dir" && ac_dir=.
7406 if $as_executable_p "$ac_dir/$ac_word"; then
7407 ac_cv_path_LOCATE="$ac_dir/$ac_word"
7408 echo "$as_me:7408: found $ac_dir/$ac_word" >&5
7416 LOCATE=$ac_cv_path_LOCATE
7418 if test -n "$LOCATE"; then
7419 echo "$as_me:7419: result: $LOCATE" >&5
7420 echo "${ECHO_T}$LOCATE" >&6
7422 echo "$as_me:7422: result: no" >&5
7423 echo "${ECHO_T}no" >&6
7426 # Extract the first word of "dirname", so it can be a program name with args.
7427 set dummy dirname; ac_word=$2
7428 echo "$as_me:7428: checking for $ac_word" >&5
7429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430 if test "${ac_cv_path_DIRNAME+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7438 ac_save_IFS=$IFS; IFS=$ac_path_separator
7440 for ac_dir in $ac_dummy; do
7442 test -z "$ac_dir" && ac_dir=.
7443 if $as_executable_p "$ac_dir/$ac_word"; then
7444 ac_cv_path_DIRNAME="$ac_dir/$ac_word"
7445 echo "$as_me:7445: found $ac_dir/$ac_word" >&5
7453 DIRNAME=$ac_cv_path_DIRNAME
7455 if test -n "$DIRNAME"; then
7456 echo "$as_me:7456: result: $DIRNAME" >&5
7457 echo "${ECHO_T}$DIRNAME" >&6
7459 echo "$as_me:7459: result: no" >&5
7460 echo "${ECHO_T}no" >&6
7463 # Extract the first word of "grep", so it can be a program name with args.
7464 set dummy grep; ac_word=$2
7465 echo "$as_me:7465: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7467 if test "${ac_cv_path_GREP+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7475 ac_save_IFS=$IFS; IFS=$ac_path_separator
7477 for ac_dir in $ac_dummy; do
7479 test -z "$ac_dir" && ac_dir=.
7480 if $as_executable_p "$ac_dir/$ac_word"; then
7481 ac_cv_path_GREP="$ac_dir/$ac_word"
7482 echo "$as_me:7482: found $ac_dir/$ac_word" >&5
7490 GREP=$ac_cv_path_GREP
7492 if test -n "$GREP"; then
7493 echo "$as_me:7493: result: $GREP" >&5
7494 echo "${ECHO_T}$GREP" >&6
7496 echo "$as_me:7496: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7501 if test "$WITH_THREADS" = "yes"; then
7502 if test $ac_cv_prog_suncc = "yes"; then
7503 CFLAGS="$CFLAGS -mt"
7506 for ac_header in pthread.h
7508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7510 echo "$as_me:7510: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 echo "$as_me:7515: result: `eval echo '${'$as_ac_Header'}'`" >&5
7516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7518 # Is the header compilable?
7519 echo "$as_me:7519: checking $ac_header usability" >&5
7520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7522 #line 7522 "configure"
7523 #include "confdefs.h"
7524 $ac_includes_default
7525 #include <$ac_header>
7527 rm -f conftest.$ac_objext
7528 if { (eval echo "$as_me:7528: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>&5
7531 echo "$as_me:7531: \$? = $ac_status" >&5
7532 (exit $ac_status); } &&
7533 { ac_try='test -s conftest.$ac_objext'
7534 { (eval echo "$as_me:7534: \"$ac_try\"") >&5
7537 echo "$as_me:7537: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_header_compiler=yes
7541 echo "$as_me: failed program was:" >&5
7542 cat conftest.$ac_ext >&5
7543 ac_header_compiler=no
7545 rm -f conftest.$ac_objext conftest.$ac_ext
7546 echo "$as_me:7546: result: $ac_header_compiler" >&5
7547 echo "${ECHO_T}$ac_header_compiler" >&6
7549 # Is the header present?
7550 echo "$as_me:7550: checking $ac_header presence" >&5
7551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7552 cat >conftest.$ac_ext <<_ACEOF
7553 #line 7553 "configure"
7554 #include "confdefs.h"
7555 #include <$ac_header>
7557 if { (eval echo "$as_me:7557: \"$ac_cpp conftest.$ac_ext\"") >&5
7558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7560 egrep -v '^ *\+' conftest.er1 >conftest.err
7562 cat conftest.err >&5
7563 echo "$as_me:7563: \$? = $ac_status" >&5
7564 (exit $ac_status); } >/dev/null; then
7565 if test -s conftest.err; then
7566 ac_cpp_err=$ac_c_preproc_warn_flag
7573 if test -z "$ac_cpp_err"; then
7574 ac_header_preproc=yes
7576 echo "$as_me: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7578 ac_header_preproc=no
7580 rm -f conftest.err conftest.$ac_ext
7581 echo "$as_me:7581: result: $ac_header_preproc" >&5
7582 echo "${ECHO_T}$ac_header_preproc" >&6
7584 # So? What about this header?
7585 case $ac_header_compiler:$ac_header_preproc in
7587 { echo "$as_me:7587: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7589 { echo "$as_me:7589: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7592 { echo "$as_me:7592: WARNING: $ac_header: present but cannot be compiled." >&5
7593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7594 { echo "$as_me:7594: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7596 { echo "$as_me:7596: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7599 echo "$as_me:7599: checking for $ac_header" >&5
7600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 eval "$as_ac_Header=$ac_header_preproc"
7606 echo "$as_me:7606: result: `eval echo '${'$as_ac_Header'}'`" >&5
7607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7611 cat >>confdefs.h <<_ACEOF
7612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7619 if test "X$ac_cv_header_pthread_h" = "X"; then
7620 { { echo "$as_me:7620: error: \"You are trying to use threads without a POSIX <pthread.h>\"" >&5
7621 echo "$as_me: error: \"You are trying to use threads without a POSIX <pthread.h>\"" >&2;}
7622 { (exit 1); exit 1; }; }
7625 echo "$as_me:7625: checking for pthread_join" >&5
7626 echo $ECHO_N "checking for pthread_join... $ECHO_C" >&6
7627 if test "${ac_cv_func_pthread_join+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 cat >conftest.$ac_ext <<_ACEOF
7631 #line 7631 "configure"
7632 #include "confdefs.h"
7633 /* System header to define __stub macros and hopefully few prototypes,
7634 which can conflict with char pthread_join (); below. */
7636 /* Override any gcc2 internal prototype to avoid an error. */
7640 /* We use char because int might match the return type of a gcc2
7641 builtin and then its argument prototype would still apply. */
7642 char pthread_join ();
7645 #ifdef F77_DUMMY_MAIN
7649 int F77_DUMMY_MAIN() { return 1; }
7654 /* The GNU C library defines this for functions which it implements
7655 to always fail with ENOSYS. Some functions are actually named
7656 something starting with __ and the normal name is an alias. */
7657 #if defined (__stub_pthread_join) || defined (__stub___pthread_join)
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:7668: \"$ac_link\"") >&5
7669 (eval $ac_link) 2>&5
7671 echo "$as_me:7671: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:7674: \"$ac_try\"") >&5
7677 echo "$as_me:7677: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_func_pthread_join=yes
7681 echo "$as_me: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7683 ac_cv_func_pthread_join=no
7685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7687 echo "$as_me:7687: result: $ac_cv_func_pthread_join" >&5
7688 echo "${ECHO_T}$ac_cv_func_pthread_join" >&6
7689 if test $ac_cv_func_pthread_join = yes; then
7693 echo "$as_me:7693: checking for pthread_join in -lpthread" >&5
7694 echo $ECHO_N "checking for pthread_join in -lpthread... $ECHO_C" >&6
7695 if test "${ac_cv_lib_pthread_pthread_join+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 ac_check_lib_save_LIBS=$LIBS
7699 LIBS="-lpthread $LIBS"
7700 cat >conftest.$ac_ext <<_ACEOF
7701 #line 7701 "configure"
7702 #include "confdefs.h"
7704 /* Override any gcc2 internal prototype to avoid an error. */
7708 /* We use char because int might match the return type of a gcc2
7709 builtin and then its argument prototype would still apply. */
7710 char pthread_join ();
7711 #ifdef F77_DUMMY_MAIN
7715 int F77_DUMMY_MAIN() { return 1; }
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (eval echo "$as_me:7726: \"$ac_link\"") >&5
7727 (eval $ac_link) 2>&5
7729 echo "$as_me:7729: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -s conftest$ac_exeext'
7732 { (eval echo "$as_me:7732: \"$ac_try\"") >&5
7735 echo "$as_me:7735: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7737 ac_cv_lib_pthread_pthread_join=yes
7739 echo "$as_me: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7741 ac_cv_lib_pthread_pthread_join=no
7743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7744 LIBS=$ac_check_lib_save_LIBS
7746 echo "$as_me:7746: result: $ac_cv_lib_pthread_pthread_join" >&5
7747 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_join" >&6
7748 if test $ac_cv_lib_pthread_pthread_join = yes; then
7749 PTHREADLIB="-lpthread"
7753 echo "$as_me:7753: checking for library containing sem_init" >&5
7754 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
7755 if test "${ac_cv_search_sem_init+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 ac_func_search_save_LIBS=$LIBS
7759 ac_cv_search_sem_init=no
7760 cat >conftest.$ac_ext <<_ACEOF
7761 #line 7761 "configure"
7762 #include "confdefs.h"
7764 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7771 #ifdef F77_DUMMY_MAIN
7775 int F77_DUMMY_MAIN() { return 1; }
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (eval echo "$as_me:7786: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>&5
7789 echo "$as_me:7789: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try='test -s conftest$ac_exeext'
7792 { (eval echo "$as_me:7792: \"$ac_try\"") >&5
7795 echo "$as_me:7795: \$? = $ac_status" >&5
7796 (exit $ac_status); }; }; then
7797 ac_cv_search_sem_init="none required"
7799 echo "$as_me: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7803 if test "$ac_cv_search_sem_init" = no; then
7804 for ac_lib in pthread rt; do
7805 LIBS="-l$ac_lib "-lpthread"
7806 $ac_func_search_save_LIBS"
7807 cat >conftest.$ac_ext <<_ACEOF
7808 #line 7808 "configure"
7809 #include "confdefs.h"
7811 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7818 #ifdef F77_DUMMY_MAIN
7822 int F77_DUMMY_MAIN() { return 1; }
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:7833: \"$ac_link\"") >&5
7834 (eval $ac_link) 2>&5
7836 echo "$as_me:7836: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:7839: \"$ac_try\"") >&5
7842 echo "$as_me:7842: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_search_sem_init="-l$ac_lib"
7847 echo "$as_me: failed program was:" >&5
7848 cat conftest.$ac_ext >&5
7850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7853 LIBS=$ac_func_search_save_LIBS
7855 echo "$as_me:7855: result: $ac_cv_search_sem_init" >&5
7856 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
7857 if test "$ac_cv_search_sem_init" != no; then
7858 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
7862 if test "X$PTHREADLIB" = "X"; then
7863 SAVED_CFLAGS=$CFLAGS
7864 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
7865 echo "$as_me:7865: checking for pthread_create in -lc_r" >&5
7866 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
7867 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 ac_check_lib_save_LIBS=$LIBS
7872 cat >conftest.$ac_ext <<_ACEOF
7873 #line 7873 "configure"
7874 #include "confdefs.h"
7876 /* Override any gcc2 internal prototype to avoid an error. */
7880 /* We use char because int might match the return type of a gcc2
7881 builtin and then its argument prototype would still apply. */
7882 char pthread_create ();
7883 #ifdef F77_DUMMY_MAIN
7887 int F77_DUMMY_MAIN() { return 1; }
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (eval echo "$as_me:7898: \"$ac_link\"") >&5
7899 (eval $ac_link) 2>&5
7901 echo "$as_me:7901: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try='test -s conftest$ac_exeext'
7904 { (eval echo "$as_me:7904: \"$ac_try\"") >&5
7907 echo "$as_me:7907: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7909 ac_cv_lib_c_r_pthread_create=yes
7911 echo "$as_me: failed program was:" >&5
7912 cat conftest.$ac_ext >&5
7913 ac_cv_lib_c_r_pthread_create=no
7915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 LIBS=$ac_check_lib_save_LIBS
7918 echo "$as_me:7918: result: $ac_cv_lib_c_r_pthread_create" >&5
7919 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
7920 if test $ac_cv_lib_c_r_pthread_create = yes; then
7927 if test "x$PTHREADLIB" != "x"; then
7928 LIBS="$LIBS $PTHREADLIB"
7929 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
7933 if test "x$PTHREADLIB" = "x"; then
7934 CFLAGS=$SAVED_CFLAGS
7935 ac_cv_header_pthread_h="no"
7940 echo "$as_me:7940: checking for getsockname in -lsocket" >&5
7941 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
7942 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 ac_check_lib_save_LIBS=$LIBS
7946 LIBS="-lsocket $LIBS"
7947 cat >conftest.$ac_ext <<_ACEOF
7948 #line 7948 "configure"
7949 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */
7955 /* We use char because int might match the return type of a gcc2
7956 builtin and then its argument prototype would still apply. */
7957 char getsockname ();
7958 #ifdef F77_DUMMY_MAIN
7962 int F77_DUMMY_MAIN() { return 1; }
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:7973: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>&5
7976 echo "$as_me:7976: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:7979: \"$ac_try\"") >&5
7982 echo "$as_me:7982: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_lib_socket_getsockname=yes
7986 echo "$as_me: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7988 ac_cv_lib_socket_getsockname=no
7990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7991 LIBS=$ac_check_lib_save_LIBS
7993 echo "$as_me:7993: result: $ac_cv_lib_socket_getsockname" >&5
7994 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
7995 if test $ac_cv_lib_socket_getsockname = yes; then
7996 cat >>confdefs.h <<_ACEOF
7997 #define HAVE_LIBSOCKET 1
8000 LIBS="-lsocket $LIBS"
8004 echo "$as_me:8004: checking for inet_aton in -lresolv" >&5
8005 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
8006 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 ac_check_lib_save_LIBS=$LIBS
8010 LIBS="-lresolv $LIBS"
8011 cat >conftest.$ac_ext <<_ACEOF
8012 #line 8012 "configure"
8013 #include "confdefs.h"
8015 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8022 #ifdef F77_DUMMY_MAIN
8026 int F77_DUMMY_MAIN() { return 1; }
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:8037: \"$ac_link\"") >&5
8038 (eval $ac_link) 2>&5
8040 echo "$as_me:8040: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -s conftest$ac_exeext'
8043 { (eval echo "$as_me:8043: \"$ac_try\"") >&5
8046 echo "$as_me:8046: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_lib_resolv_inet_aton=yes
8050 echo "$as_me: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 ac_cv_lib_resolv_inet_aton=no
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8057 echo "$as_me:8057: result: $ac_cv_lib_resolv_inet_aton" >&5
8058 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
8059 if test $ac_cv_lib_resolv_inet_aton = yes; then
8060 cat >>confdefs.h <<_ACEOF
8061 #define HAVE_LIBRESOLV 1
8064 LIBS="-lresolv $LIBS"
8068 echo "$as_me:8068: checking for inet_ntoa in -lnsl" >&5
8069 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
8070 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 ac_check_lib_save_LIBS=$LIBS
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line 8076 "configure"
8077 #include "confdefs.h"
8079 /* Override any gcc2 internal prototype to avoid an error. */
8083 /* We use char because int might match the return type of a gcc2
8084 builtin and then its argument prototype would still apply. */
8086 #ifdef F77_DUMMY_MAIN
8090 int F77_DUMMY_MAIN() { return 1; }
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (eval echo "$as_me:8101: \"$ac_link\"") >&5
8102 (eval $ac_link) 2>&5
8104 echo "$as_me:8104: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -s conftest$ac_exeext'
8107 { (eval echo "$as_me:8107: \"$ac_try\"") >&5
8110 echo "$as_me:8110: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 ac_cv_lib_nsl_inet_ntoa=yes
8114 echo "$as_me: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8116 ac_cv_lib_nsl_inet_ntoa=no
8118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8119 LIBS=$ac_check_lib_save_LIBS
8121 echo "$as_me:8121: result: $ac_cv_lib_nsl_inet_ntoa" >&5
8122 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
8123 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
8124 cat >>confdefs.h <<_ACEOF
8125 #define HAVE_LIBNSL 1
8133 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8134 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8135 echo "$as_me:8135: checking for $ac_hdr that defines DIR" >&5
8136 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 cat >conftest.$ac_ext <<_ACEOF
8141 #line 8141 "configure"
8142 #include "confdefs.h"
8143 #include <sys/types.h>
8146 #ifdef F77_DUMMY_MAIN
8150 int F77_DUMMY_MAIN() { return 1; }
8161 rm -f conftest.$ac_objext
8162 if { (eval echo "$as_me:8162: \"$ac_compile\"") >&5
8163 (eval $ac_compile) 2>&5
8165 echo "$as_me:8165: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -s conftest.$ac_objext'
8168 { (eval echo "$as_me:8168: \"$ac_try\"") >&5
8171 echo "$as_me:8171: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 eval "$as_ac_Header=yes"
8175 echo "$as_me: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 eval "$as_ac_Header=no"
8179 rm -f conftest.$ac_objext conftest.$ac_ext
8181 echo "$as_me:8181: result: `eval echo '${'$as_ac_Header'}'`" >&5
8182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8184 cat >>confdefs.h <<_ACEOF
8185 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8188 ac_header_dirent=$ac_hdr; break
8192 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8193 if test $ac_header_dirent = dirent.h; then
8194 echo "$as_me:8194: checking for opendir in -ldir" >&5
8195 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
8196 if test "${ac_cv_lib_dir_opendir+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 ac_check_lib_save_LIBS=$LIBS
8201 cat >conftest.$ac_ext <<_ACEOF
8202 #line 8202 "configure"
8203 #include "confdefs.h"
8205 /* Override any gcc2 internal prototype to avoid an error. */
8209 /* We use char because int might match the return type of a gcc2
8210 builtin and then its argument prototype would still apply. */
8212 #ifdef F77_DUMMY_MAIN
8216 int F77_DUMMY_MAIN() { return 1; }
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:8227: \"$ac_link\"") >&5
8228 (eval $ac_link) 2>&5
8230 echo "$as_me:8230: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -s conftest$ac_exeext'
8233 { (eval echo "$as_me:8233: \"$ac_try\"") >&5
8236 echo "$as_me:8236: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_cv_lib_dir_opendir=yes
8240 echo "$as_me: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8242 ac_cv_lib_dir_opendir=no
8244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8247 echo "$as_me:8247: result: $ac_cv_lib_dir_opendir" >&5
8248 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
8249 if test $ac_cv_lib_dir_opendir = yes; then
8254 echo "$as_me:8254: checking for opendir in -lx" >&5
8255 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
8256 if test "${ac_cv_lib_x_opendir+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 ac_check_lib_save_LIBS=$LIBS
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line 8262 "configure"
8263 #include "confdefs.h"
8265 /* Override any gcc2 internal prototype to avoid an error. */
8269 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */
8272 #ifdef F77_DUMMY_MAIN
8276 int F77_DUMMY_MAIN() { return 1; }
8286 rm -f conftest.$ac_objext conftest$ac_exeext
8287 if { (eval echo "$as_me:8287: \"$ac_link\"") >&5
8288 (eval $ac_link) 2>&5
8290 echo "$as_me:8290: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -s conftest$ac_exeext'
8293 { (eval echo "$as_me:8293: \"$ac_try\"") >&5
8296 echo "$as_me:8296: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 ac_cv_lib_x_opendir=yes
8300 echo "$as_me: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8302 ac_cv_lib_x_opendir=no
8304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8305 LIBS=$ac_check_lib_save_LIBS
8307 echo "$as_me:8307: result: $ac_cv_lib_x_opendir" >&5
8308 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
8309 if test $ac_cv_lib_x_opendir = yes; then
8315 echo "$as_me:8315: checking for ANSI C header files" >&5
8316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8317 if test "${ac_cv_header_stdc+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8321 #line 8321 "configure"
8322 #include "confdefs.h"
8329 if { (eval echo "$as_me:8329: \"$ac_cpp conftest.$ac_ext\"") >&5
8330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8332 egrep -v '^ *\+' conftest.er1 >conftest.err
8334 cat conftest.err >&5
8335 echo "$as_me:8335: \$? = $ac_status" >&5
8336 (exit $ac_status); } >/dev/null; then
8337 if test -s conftest.err; then
8338 ac_cpp_err=$ac_c_preproc_warn_flag
8345 if test -z "$ac_cpp_err"; then
8346 ac_cv_header_stdc=yes
8348 echo "$as_me: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8350 ac_cv_header_stdc=no
8352 rm -f conftest.err conftest.$ac_ext
8354 if test $ac_cv_header_stdc = yes; then
8355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #line 8357 "configure"
8358 #include "confdefs.h"
8362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8363 egrep "memchr" >/dev/null 2>&1; then
8366 ac_cv_header_stdc=no
8372 if test $ac_cv_header_stdc = yes; then
8373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8374 cat >conftest.$ac_ext <<_ACEOF
8375 #line 8375 "configure"
8376 #include "confdefs.h"
8380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8381 egrep "free" >/dev/null 2>&1; then
8384 ac_cv_header_stdc=no
8390 if test $ac_cv_header_stdc = yes; then
8391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8392 if test "$cross_compiling" = yes; then
8395 cat >conftest.$ac_ext <<_ACEOF
8396 #line 8396 "configure"
8397 #include "confdefs.h"
8399 #if ((' ' & 0x0FF) == 0x020)
8400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8403 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8404 || ('j' <= (c) && (c) <= 'r') \
8405 || ('s' <= (c) && (c) <= 'z'))
8406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8414 for (i = 0; i < 256; i++)
8415 if (XOR (islower (i), ISLOWER (i))
8416 || toupper (i) != TOUPPER (i))
8421 rm -f conftest$ac_exeext
8422 if { (eval echo "$as_me:8422: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>&5
8425 echo "$as_me:8425: \$? = $ac_status" >&5
8426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8427 { (eval echo "$as_me:8427: \"$ac_try\"") >&5
8430 echo "$as_me:8430: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8434 echo "$as_me: program exited with status $ac_status" >&5
8435 echo "$as_me: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8437 ac_cv_header_stdc=no
8439 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8443 echo "$as_me:8443: result: $ac_cv_header_stdc" >&5
8444 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8445 if test $ac_cv_header_stdc = yes; then
8447 cat >>confdefs.h <<\_ACEOF
8448 #define STDC_HEADERS 1
8453 echo "$as_me:8453: checking whether time.h and sys/time.h may both be included" >&5
8454 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8455 if test "${ac_cv_header_time+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line 8459 "configure"
8460 #include "confdefs.h"
8461 #include <sys/types.h>
8462 #include <sys/time.h>
8465 #ifdef F77_DUMMY_MAIN
8469 int F77_DUMMY_MAIN() { return 1; }
8474 if ((struct tm *) 0)
8480 rm -f conftest.$ac_objext
8481 if { (eval echo "$as_me:8481: \"$ac_compile\"") >&5
8482 (eval $ac_compile) 2>&5
8484 echo "$as_me:8484: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -s conftest.$ac_objext'
8487 { (eval echo "$as_me:8487: \"$ac_try\"") >&5
8490 echo "$as_me:8490: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 ac_cv_header_time=yes
8494 echo "$as_me: failed program was:" >&5
8495 cat conftest.$ac_ext >&5
8496 ac_cv_header_time=no
8498 rm -f conftest.$ac_objext conftest.$ac_ext
8500 echo "$as_me:8500: result: $ac_cv_header_time" >&5
8501 echo "${ECHO_T}$ac_cv_header_time" >&6
8502 if test $ac_cv_header_time = yes; then
8504 cat >>confdefs.h <<\_ACEOF
8505 #define TIME_WITH_SYS_TIME 1
8510 echo "$as_me:8510: checking for sys/wait.h that is POSIX.1 compatible" >&5
8511 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8512 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8516 #line 8516 "configure"
8517 #include "confdefs.h"
8518 #include <sys/types.h>
8519 #include <sys/wait.h>
8521 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8524 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8527 #ifdef F77_DUMMY_MAIN
8531 int F77_DUMMY_MAIN() { return 1; }
8538 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8543 rm -f conftest.$ac_objext
8544 if { (eval echo "$as_me:8544: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>&5
8547 echo "$as_me:8547: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -s conftest.$ac_objext'
8550 { (eval echo "$as_me:8550: \"$ac_try\"") >&5
8553 echo "$as_me:8553: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_cv_header_sys_wait_h=yes
8557 echo "$as_me: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 ac_cv_header_sys_wait_h=no
8561 rm -f conftest.$ac_objext conftest.$ac_ext
8563 echo "$as_me:8563: result: $ac_cv_header_sys_wait_h" >&5
8564 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8565 if test $ac_cv_header_sys_wait_h = yes; then
8567 cat >>confdefs.h <<\_ACEOF
8568 #define HAVE_SYS_WAIT_H 1
8602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8604 echo "$as_me:8604: checking for $ac_header" >&5
8605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 echo "$as_me:8609: result: `eval echo '${'$as_ac_Header'}'`" >&5
8610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8612 # Is the header compilable?
8613 echo "$as_me:8613: checking $ac_header usability" >&5
8614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8616 #line 8616 "configure"
8617 #include "confdefs.h"
8618 $ac_includes_default
8619 #include <$ac_header>
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:8622: \"$ac_compile\"") >&5
8623 (eval $ac_compile) 2>&5
8625 echo "$as_me:8625: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -s conftest.$ac_objext'
8628 { (eval echo "$as_me:8628: \"$ac_try\"") >&5
8631 echo "$as_me:8631: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_header_compiler=yes
8635 echo "$as_me: failed program was:" >&5
8636 cat conftest.$ac_ext >&5
8637 ac_header_compiler=no
8639 rm -f conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me:8640: result: $ac_header_compiler" >&5
8641 echo "${ECHO_T}$ac_header_compiler" >&6
8643 # Is the header present?
8644 echo "$as_me:8644: checking $ac_header presence" >&5
8645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line 8647 "configure"
8648 #include "confdefs.h"
8649 #include <$ac_header>
8651 if { (eval echo "$as_me:8651: \"$ac_cpp conftest.$ac_ext\"") >&5
8652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8654 egrep -v '^ *\+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:8657: \$? = $ac_status" >&5
8658 (exit $ac_status); } >/dev/null; then
8659 if test -s conftest.err; then
8660 ac_cpp_err=$ac_c_preproc_warn_flag
8667 if test -z "$ac_cpp_err"; then
8668 ac_header_preproc=yes
8670 echo "$as_me: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8672 ac_header_preproc=no
8674 rm -f conftest.err conftest.$ac_ext
8675 echo "$as_me:8675: result: $ac_header_preproc" >&5
8676 echo "${ECHO_T}$ac_header_preproc" >&6
8678 # So? What about this header?
8679 case $ac_header_compiler:$ac_header_preproc in
8681 { echo "$as_me:8681: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8683 { echo "$as_me:8683: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8686 { echo "$as_me:8686: WARNING: $ac_header: present but cannot be compiled." >&5
8687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
8688 { echo "$as_me:8688: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8690 { echo "$as_me:8690: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8693 echo "$as_me:8693: checking for $ac_header" >&5
8694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 eval "$as_ac_Header=$ac_header_preproc"
8700 echo "$as_me:8700: result: `eval echo '${'$as_ac_Header'}'`" >&5
8701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8705 cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8714 if test "${ac_cv_header_regex_h+set}" = set; then
8715 echo "$as_me:8715: checking for regex.h" >&5
8716 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
8717 if test "${ac_cv_header_regex_h+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 echo "$as_me:8720: result: $ac_cv_header_regex_h" >&5
8721 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
8723 # Is the header compilable?
8724 echo "$as_me:8724: checking regex.h usability" >&5
8725 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
8726 cat >conftest.$ac_ext <<_ACEOF
8727 #line 8727 "configure"
8728 #include "confdefs.h"
8729 $ac_includes_default
8732 rm -f conftest.$ac_objext
8733 if { (eval echo "$as_me:8733: \"$ac_compile\"") >&5
8734 (eval $ac_compile) 2>&5
8736 echo "$as_me:8736: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -s conftest.$ac_objext'
8739 { (eval echo "$as_me:8739: \"$ac_try\"") >&5
8742 echo "$as_me:8742: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_header_compiler=yes
8746 echo "$as_me: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8748 ac_header_compiler=no
8750 rm -f conftest.$ac_objext conftest.$ac_ext
8751 echo "$as_me:8751: result: $ac_header_compiler" >&5
8752 echo "${ECHO_T}$ac_header_compiler" >&6
8754 # Is the header present?
8755 echo "$as_me:8755: checking regex.h presence" >&5
8756 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
8757 cat >conftest.$ac_ext <<_ACEOF
8758 #line 8758 "configure"
8759 #include "confdefs.h"
8762 if { (eval echo "$as_me:8762: \"$ac_cpp conftest.$ac_ext\"") >&5
8763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8765 egrep -v '^ *\+' conftest.er1 >conftest.err
8767 cat conftest.err >&5
8768 echo "$as_me:8768: \$? = $ac_status" >&5
8769 (exit $ac_status); } >/dev/null; then
8770 if test -s conftest.err; then
8771 ac_cpp_err=$ac_c_preproc_warn_flag
8778 if test -z "$ac_cpp_err"; then
8779 ac_header_preproc=yes
8781 echo "$as_me: failed program was:" >&5
8782 cat conftest.$ac_ext >&5
8783 ac_header_preproc=no
8785 rm -f conftest.err conftest.$ac_ext
8786 echo "$as_me:8786: result: $ac_header_preproc" >&5
8787 echo "${ECHO_T}$ac_header_preproc" >&6
8789 # So? What about this header?
8790 case $ac_header_compiler:$ac_header_preproc in
8792 { echo "$as_me:8792: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
8793 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8794 { echo "$as_me:8794: WARNING: regex.h: proceeding with the preprocessor's result" >&5
8795 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;};;
8797 { echo "$as_me:8797: WARNING: regex.h: present but cannot be compiled." >&5
8798 echo "$as_me: WARNING: regex.h: present but cannot be compiled." >&2;}
8799 { echo "$as_me:8799: WARNING: regex.h: check for missing prerequisite headers?" >&5
8800 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
8801 { echo "$as_me:8801: WARNING: regex.h: proceeding with the preprocessor's result" >&5
8802 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;};;
8804 echo "$as_me:8804: checking for regex.h" >&5
8805 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
8806 if test "${ac_cv_header_regex_h+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 ac_cv_header_regex_h=$ac_header_preproc
8811 echo "$as_me:8811: result: $ac_cv_header_regex_h" >&5
8812 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
8815 if test $ac_cv_header_regex_h = yes; then
8816 cat >>confdefs.h <<\_ACEOF
8817 #define HAVE_REGEX_H 1
8822 if test "x$ac_cv_header_regex_h" = "xyes"; then
8825 cat >conftest.$ac_ext <<_ACEOF
8826 #line 8826 "configure"
8827 #include "confdefs.h"
8834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8835 egrep "yes" >/dev/null 2>&1; then
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_REG_EXTENDED 1
8845 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
8847 cat >>confdefs.h <<\_ACEOF
8853 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
8855 cat >>confdefs.h <<\_ACEOF
8861 echo "$as_me:8861: checking for off_t" >&5
8862 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8863 if test "${ac_cv_type_off_t+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 cat >conftest.$ac_ext <<_ACEOF
8867 #line 8867 "configure"
8868 #include "confdefs.h"
8869 $ac_includes_default
8870 #ifdef F77_DUMMY_MAIN
8874 int F77_DUMMY_MAIN() { return 1; }
8887 rm -f conftest.$ac_objext
8888 if { (eval echo "$as_me:8888: \"$ac_compile\"") >&5
8889 (eval $ac_compile) 2>&5
8891 echo "$as_me:8891: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -s conftest.$ac_objext'
8894 { (eval echo "$as_me:8894: \"$ac_try\"") >&5
8897 echo "$as_me:8897: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 ac_cv_type_off_t=yes
8901 echo "$as_me: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8905 rm -f conftest.$ac_objext conftest.$ac_ext
8907 echo "$as_me:8907: result: $ac_cv_type_off_t" >&5
8908 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8909 if test $ac_cv_type_off_t = yes; then
8913 cat >>confdefs.h <<_ACEOF
8919 echo "$as_me:8919: checking for pid_t" >&5
8920 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8921 if test "${ac_cv_type_pid_t+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line 8925 "configure"
8926 #include "confdefs.h"
8927 $ac_includes_default
8928 #ifdef F77_DUMMY_MAIN
8932 int F77_DUMMY_MAIN() { return 1; }
8945 rm -f conftest.$ac_objext
8946 if { (eval echo "$as_me:8946: \"$ac_compile\"") >&5
8947 (eval $ac_compile) 2>&5
8949 echo "$as_me:8949: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:8952: \"$ac_try\"") >&5
8955 echo "$as_me:8955: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_cv_type_pid_t=yes
8959 echo "$as_me: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8963 rm -f conftest.$ac_objext conftest.$ac_ext
8965 echo "$as_me:8965: result: $ac_cv_type_pid_t" >&5
8966 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8967 if test $ac_cv_type_pid_t = yes; then
8971 cat >>confdefs.h <<_ACEOF
8977 echo "$as_me:8977: checking for size_t" >&5
8978 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8979 if test "${ac_cv_type_size_t+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8983 #line 8983 "configure"
8984 #include "confdefs.h"
8985 $ac_includes_default
8986 #ifdef F77_DUMMY_MAIN
8990 int F77_DUMMY_MAIN() { return 1; }
8997 if (sizeof (size_t))
9003 rm -f conftest.$ac_objext
9004 if { (eval echo "$as_me:9004: \"$ac_compile\"") >&5
9005 (eval $ac_compile) 2>&5
9007 echo "$as_me:9007: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try='test -s conftest.$ac_objext'
9010 { (eval echo "$as_me:9010: \"$ac_try\"") >&5
9013 echo "$as_me:9013: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_cv_type_size_t=yes
9017 echo "$as_me: failed program was:" >&5
9018 cat conftest.$ac_ext >&5
9019 ac_cv_type_size_t=no
9021 rm -f conftest.$ac_objext conftest.$ac_ext
9023 echo "$as_me:9023: result: $ac_cv_type_size_t" >&5
9024 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9025 if test $ac_cv_type_size_t = yes; then
9029 cat >>confdefs.h <<_ACEOF
9030 #define size_t unsigned
9035 echo "$as_me:9035: checking for uid_t in sys/types.h" >&5
9036 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9037 if test "${ac_cv_type_uid_t+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 cat >conftest.$ac_ext <<_ACEOF
9041 #line 9041 "configure"
9042 #include "confdefs.h"
9043 #include <sys/types.h>
9046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9047 egrep "uid_t" >/dev/null 2>&1; then
9048 ac_cv_type_uid_t=yes
9055 echo "$as_me:9055: result: $ac_cv_type_uid_t" >&5
9056 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9057 if test $ac_cv_type_uid_t = no; then
9059 cat >>confdefs.h <<\_ACEOF
9063 cat >>confdefs.h <<\_ACEOF
9069 echo "$as_me:9069: checking for socklen_t" >&5
9070 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9071 if test "${ac_cv_type_socklen_t+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 ac_cv_type_socklen_t=no
9075 cat >conftest.$ac_ext <<_ACEOF
9076 #line 9076 "configure"
9077 #include "confdefs.h"
9078 #ifdef HAVE_SYS_TYPES_H
9079 #include <sys/types.h>
9081 #ifdef HAVE_SYS_SOCKET_H
9082 #include <sys/socket.h>
9085 #ifdef F77_DUMMY_MAIN
9089 int F77_DUMMY_MAIN() { return 1; }
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:9100: \"$ac_compile\"") >&5
9101 (eval $ac_compile) 2>&5
9103 echo "$as_me:9103: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -s conftest.$ac_objext'
9106 { (eval echo "$as_me:9106: \"$ac_try\"") >&5
9109 echo "$as_me:9109: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_type_socklen_t=yes
9113 echo "$as_me: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9116 rm -f conftest.$ac_objext conftest.$ac_ext
9119 echo "$as_me:9119: result: $ac_cv_type_socklen_t" >&5
9120 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
9122 if test "$ac_cv_type_socklen_t" != "yes"; then
9123 cat >>confdefs.h <<\_ACEOF
9124 #define socklen_t int
9129 echo "$as_me:9129: checking for uint8_t" >&5
9130 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
9131 if test "${ac_cv_type_uint8_t+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 ac_cv_type_uint8_t=no
9135 cat >conftest.$ac_ext <<_ACEOF
9136 #line 9136 "configure"
9137 #include "confdefs.h"
9138 #ifdef HAVE_INTTYPES_H
9139 #include <inttypes.h>
9141 #ifdef HAVE_STDINT_H
9145 #ifdef F77_DUMMY_MAIN
9149 int F77_DUMMY_MAIN() { return 1; }
9159 rm -f conftest.$ac_objext
9160 if { (eval echo "$as_me:9160: \"$ac_compile\"") >&5
9161 (eval $ac_compile) 2>&5
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -s conftest.$ac_objext'
9166 { (eval echo "$as_me:9166: \"$ac_try\"") >&5
9169 echo "$as_me:9169: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_type_uint8_t=yes
9173 echo "$as_me: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 rm -f conftest.$ac_objext conftest.$ac_ext
9179 echo "$as_me:9179: result: $ac_cv_type_uint8_t" >&5
9180 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
9182 if test "$ac_cv_type_uint8_t" != "yes"; then
9183 cat >>confdefs.h <<\_ACEOF
9184 #define uint8_t unsigned char
9189 echo "$as_me:9189: checking for uint16_t" >&5
9190 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9191 if test "${ac_cv_type_uint16_t+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 ac_cv_type_uint16_t=no
9195 cat >conftest.$ac_ext <<_ACEOF
9196 #line 9196 "configure"
9197 #include "confdefs.h"
9198 #ifdef HAVE_INTTYPES_H
9199 #include <inttypes.h>
9201 #ifdef HAVE_STDINT_H
9205 #ifdef F77_DUMMY_MAIN
9209 int F77_DUMMY_MAIN() { return 1; }
9219 rm -f conftest.$ac_objext
9220 if { (eval echo "$as_me:9220: \"$ac_compile\"") >&5
9221 (eval $ac_compile) 2>&5
9223 echo "$as_me:9223: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -s conftest.$ac_objext'
9226 { (eval echo "$as_me:9226: \"$ac_try\"") >&5
9229 echo "$as_me:9229: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_type_uint16_t=yes
9233 echo "$as_me: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9236 rm -f conftest.$ac_objext conftest.$ac_ext
9239 echo "$as_me:9239: result: $ac_cv_type_uint16_t" >&5
9240 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
9242 if test "$ac_cv_type_uint16_t" != "yes"; then
9243 cat >>confdefs.h <<\_ACEOF
9244 #define uint16_t unsigned short
9249 echo "$as_me:9249: checking for uint32_t" >&5
9250 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9251 if test "${ac_cv_type_uint32_t+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 ac_cv_type_uint32_t=no
9255 cat >conftest.$ac_ext <<_ACEOF
9256 #line 9256 "configure"
9257 #include "confdefs.h"
9258 #ifdef HAVE_INTTYPES_H
9259 #include <inttypes.h>
9261 #ifdef HAVE_STDINT_H
9265 #ifdef F77_DUMMY_MAIN
9269 int F77_DUMMY_MAIN() { return 1; }
9279 rm -f conftest.$ac_objext
9280 if { (eval echo "$as_me:9280: \"$ac_compile\"") >&5
9281 (eval $ac_compile) 2>&5
9283 echo "$as_me:9283: \$? = $ac_status" >&5
9284 (exit $ac_status); } &&
9285 { ac_try='test -s conftest.$ac_objext'
9286 { (eval echo "$as_me:9286: \"$ac_try\"") >&5
9289 echo "$as_me:9289: \$? = $ac_status" >&5
9290 (exit $ac_status); }; }; then
9291 ac_cv_type_uint32_t=yes
9293 echo "$as_me: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9296 rm -f conftest.$ac_objext conftest.$ac_ext
9299 echo "$as_me:9299: result: $ac_cv_type_uint32_t" >&5
9300 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
9302 if test "$ac_cv_type_uint32_t" != "yes"; then
9303 cat >>confdefs.h <<\_ACEOF
9304 #define uint32_t unsigned int
9333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9334 echo "$as_me:9334: checking for $ac_func" >&5
9335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9336 if eval "test \"\${$as_ac_var+set}\" = set"; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line 9340 "configure"
9341 #include "confdefs.h"
9342 /* System header to define __stub macros and hopefully few prototypes,
9343 which can conflict with char $ac_func (); below. */
9345 /* Override any gcc2 internal prototype to avoid an error. */
9349 /* We use char because int might match the return type of a gcc2
9350 builtin and then its argument prototype would still apply. */
9354 #ifdef F77_DUMMY_MAIN
9358 int F77_DUMMY_MAIN() { return 1; }
9363 /* The GNU C library defines this for functions which it implements
9364 to always fail with ENOSYS. Some functions are actually named
9365 something starting with __ and the normal name is an alias. */
9366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:9377: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>&5
9380 echo "$as_me:9380: \$? = $ac_status" >&5
9381 (exit $ac_status); } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:9383: \"$ac_try\"") >&5
9386 echo "$as_me:9386: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 eval "$as_ac_var=yes"
9390 echo "$as_me: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9392 eval "$as_ac_var=no"
9394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9396 echo "$as_me:9396: result: `eval echo '${'$as_ac_var'}'`" >&5
9397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9398 if test `eval echo '${'$as_ac_var'}'` = yes; then
9399 cat >>confdefs.h <<_ACEOF
9400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9417 echo "$as_me:9417: checking whether $ac_func must be declared" >&5
9418 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
9419 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 cat >conftest.$ac_ext <<_ACEOF
9423 #line 9423 "configure"
9424 #include "confdefs.h"
9428 #ifdef HAVE_UNISTD_H
9437 #ifdef HAVE_RESOURCE_H
9438 #include <resource.h>
9440 #ifdef HAVE_GETOPT_H
9443 #ifdef HAVE_MALLOC_H
9452 #ifdef HAVE_SYS_SELECT_H
9453 #include <sys/select.h>
9461 #ifdef HAVE_SYSLOG_H
9464 #ifdef HAVE_INTTYPES_H
9465 #include <inttypes.h>
9467 #ifdef HAVE_STDINT_H
9470 #ifdef HAVE_ARPA_INET_H
9471 #include <arpa/inet.h>
9474 #ifdef F77_DUMMY_MAIN
9478 int F77_DUMMY_MAIN() { return 1; }
9483 char *(*pfn) = (char *(*)) $ac_func
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:9489: \"$ac_compile\"") >&5
9490 (eval $ac_compile) 2>&5
9492 echo "$as_me:9492: \$? = $ac_status" >&5
9493 (exit $ac_status); } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:9495: \"$ac_try\"") >&5
9498 echo "$as_me:9498: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 eval "radius_cv_decl_needed_$ac_func=no"
9502 echo "$as_me: failed program was:" >&5
9503 cat conftest.$ac_ext >&5
9504 eval "radius_cv_decl_needed_$ac_func=yes"
9506 rm -f conftest.$ac_objext conftest.$ac_ext
9509 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
9510 echo "$as_me:9510: result: yes" >&5
9511 echo "${ECHO_T}yes" >&6
9512 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9513 cat >>confdefs.h <<_ACEOF
9514 #define $radius_tr_decl 1
9518 echo "$as_me:9518: result: no" >&5
9519 echo "${ECHO_T}no" >&6
9524 echo "$as_me:9524: checking return type of signal handlers" >&5
9525 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9526 if test "${ac_cv_type_signal+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 cat >conftest.$ac_ext <<_ACEOF
9530 #line 9530 "configure"
9531 #include "confdefs.h"
9532 #include <sys/types.h>
9538 extern "C" void (*signal (int, void (*)(int)))(int);
9540 void (*signal ()) ();
9543 #ifdef F77_DUMMY_MAIN
9547 int F77_DUMMY_MAIN() { return 1; }
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:9558: \"$ac_compile\"") >&5
9559 (eval $ac_compile) 2>&5
9561 echo "$as_me:9561: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -s conftest.$ac_objext'
9564 { (eval echo "$as_me:9564: \"$ac_try\"") >&5
9567 echo "$as_me:9567: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_type_signal=void
9571 echo "$as_me: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 ac_cv_type_signal=int
9575 rm -f conftest.$ac_objext conftest.$ac_ext
9577 echo "$as_me:9577: result: $ac_cv_type_signal" >&5
9578 echo "${ECHO_T}$ac_cv_type_signal" >&6
9580 cat >>confdefs.h <<_ACEOF
9581 #define RETSIGTYPE $ac_cv_type_signal
9584 if test "x$ac_cv_header_utmpx_h" = "xyes"
9587 echo "$as_me:9587: checking for ut_xtime in struct utmpx" >&5
9588 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
9590 cat >conftest.$ac_ext <<_ACEOF
9591 #line 9591 "configure"
9592 #include "confdefs.h"
9596 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9599 #ifdef F77_DUMMY_MAIN
9603 int F77_DUMMY_MAIN() { return 1; }
9608 int foo = offsetof(struct utmpx, ut_xtime)
9613 rm -f conftest.$ac_objext
9614 if { (eval echo "$as_me:9614: \"$ac_compile\"") >&5
9615 (eval $ac_compile) 2>&5
9617 echo "$as_me:9617: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -s conftest.$ac_objext'
9620 { (eval echo "$as_me:9620: \"$ac_try\"") >&5
9623 echo "$as_me:9623: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9627 echo "$as_me: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9631 rm -f conftest.$ac_objext conftest.$ac_ext
9633 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
9634 if test "x$has_element" != "x"; then
9635 echo "$as_me:9635: result: yes" >&5
9636 echo "${ECHO_T}yes" >&6
9637 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
9639 echo "$as_me:9639: result: no" >&5
9640 echo "${ECHO_T}no" >&6
9641 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
9644 if test "x$ac_cv_type_struct_utmpx_ut_xtime" = "x"
9646 cat >>confdefs.h <<\_ACEOF
9647 #define ut_xtime ut_tv.tv_sec
9653 echo "$as_me:9653: checking for $CC option to accept ANSI C" >&5
9654 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
9655 if test "${ac_cv_prog_cc_stdc+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 ac_cv_prog_cc_stdc=no
9660 cat >conftest.$ac_ext <<_ACEOF
9661 #line 9661 "configure"
9662 #include "confdefs.h"
9665 #include <sys/types.h>
9666 #include <sys/stat.h>
9667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9668 struct buf { int x; };
9669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9670 static char *e (p, i)
9676 static char *f (char * (*g) (char **, int), char **p, ...)
9681 s = g (p, va_arg (v,int));
9685 int test (int i, double x);
9686 struct s1 {int (*f) (int a);};
9687 struct s2 {int (*f) (double a);};
9688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9691 #ifdef F77_DUMMY_MAIN
9695 int F77_DUMMY_MAIN() { return 1; }
9700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9705 # Don't try gcc -ansi; that turns off useful extensions and
9706 # breaks some systems' header files.
9707 # AIX -qlanglvl=ansi
9708 # Ultrix and OSF/1 -std1
9709 # HP-UX 10.20 and later -Ae
9710 # HP-UX older versions -Aa -D_HPUX_SOURCE
9711 # SVR4 -Xc -D__EXTENSIONS__
9712 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9714 CC="$ac_save_CC $ac_arg"
9715 rm -f conftest.$ac_objext
9716 if { (eval echo "$as_me:9716: \"$ac_compile\"") >&5
9717 (eval $ac_compile) 2>&5
9719 echo "$as_me:9719: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -s conftest.$ac_objext'
9722 { (eval echo "$as_me:9722: \"$ac_try\"") >&5
9725 echo "$as_me:9725: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_prog_cc_stdc=$ac_arg
9730 echo "$as_me: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9733 rm -f conftest.$ac_objext
9735 rm -f conftest.$ac_ext conftest.$ac_objext
9740 case "x$ac_cv_prog_cc_stdc" in
9742 echo "$as_me:9742: result: none needed" >&5
9743 echo "${ECHO_T}none needed" >&6 ;;
9745 echo "$as_me:9745: result: $ac_cv_prog_cc_stdc" >&5
9746 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
9747 CC="$CC $ac_cv_prog_cc_stdc" ;;
9750 echo "$as_me:9750: checking for an ANSI C-conforming const" >&5
9751 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9752 if test "${ac_cv_c_const+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 cat >conftest.$ac_ext <<_ACEOF
9756 #line 9756 "configure"
9757 #include "confdefs.h"
9759 #ifdef F77_DUMMY_MAIN
9763 int F77_DUMMY_MAIN() { return 1; }
9768 /* FIXME: Include the comments suggested by Paul. */
9770 /* Ultrix mips cc rejects this. */
9771 typedef int charset[2];
9773 /* SunOS 4.1.1 cc rejects this. */
9774 char const *const *ccp;
9776 /* NEC SVR4.0.2 mips cc rejects this. */
9777 struct point {int x, y;};
9778 static struct point const zero = {0,0};
9779 /* AIX XL C 1.02.0.0 rejects this.
9780 It does not let you subtract one const X* pointer from another in
9781 an arm of an if-expression whose if-part is not a constant
9783 const char *g = "string";
9784 ccp = &g + (g ? g-g : 0);
9785 /* HPUX 7.0 cc rejects these. */
9788 ccp = (char const *const *) p;
9789 { /* SCO 3.2v4 cc rejects this. */
9791 char const *s = 0 ? (char *) 0 : (char const *) 0;
9795 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9797 const int *foo = &x[0];
9800 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9801 typedef const int *iptr;
9805 { /* AIX XL C 1.02.0.0 rejects this saying
9806 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9807 struct s { int j; const int *ap[3]; };
9808 struct s *b; b->j = 5;
9810 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:9820: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>&5
9823 echo "$as_me:9823: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -s conftest.$ac_objext'
9826 { (eval echo "$as_me:9826: \"$ac_try\"") >&5
9829 echo "$as_me:9829: \$? = $ac_status" >&5
9830 (exit $ac_status); }; }; then
9833 echo "$as_me: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9837 rm -f conftest.$ac_objext conftest.$ac_ext
9839 echo "$as_me:9839: result: $ac_cv_c_const" >&5
9840 echo "${ECHO_T}$ac_cv_c_const" >&6
9841 if test $ac_cv_c_const = no; then
9843 cat >>confdefs.h <<\_ACEOF
9849 echo "$as_me:9849: checking type of OS" >&5
9850 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
9852 echo "$as_me:9852: result: $OS" >&5
9853 echo "${ECHO_T}$OS" >&6
9854 if test "$OS" = "OS/2"; then
9860 if test "x$GCC" = "xyes"; then
9861 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
9864 echo "$as_me:9864: checking for developer gcc flags" >&5
9865 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
9866 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
9867 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
9868 CFLAGS="$CFLAGS $devflags"
9870 echo "$as_me:9870: result: yes. Using $devflags" >&5
9871 echo "${ECHO_T}yes. Using $devflags" >&6
9874 CFLAGS="$CFLAGS -DNDEBUG"
9876 echo "$as_me:9876: result: no." >&5
9877 echo "${ECHO_T}no." >&6
9880 echo "$as_me:9880: checking for crypt in -lcrypt" >&5
9881 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9882 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 ac_check_lib_save_LIBS=$LIBS
9886 LIBS="-lcrypt $LIBS"
9887 cat >conftest.$ac_ext <<_ACEOF
9888 #line 9888 "configure"
9889 #include "confdefs.h"
9891 /* Override any gcc2 internal prototype to avoid an error. */
9895 /* We use char because int might match the return type of a gcc2
9896 builtin and then its argument prototype would still apply. */
9898 #ifdef F77_DUMMY_MAIN
9902 int F77_DUMMY_MAIN() { return 1; }
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:9913: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>&5
9916 echo "$as_me:9916: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -s conftest$ac_exeext'
9919 { (eval echo "$as_me:9919: \"$ac_try\"") >&5
9922 echo "$as_me:9922: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_cv_lib_crypt_crypt=yes
9926 echo "$as_me: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9928 ac_cv_lib_crypt_crypt=no
9930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9931 LIBS=$ac_check_lib_save_LIBS
9933 echo "$as_me:9933: result: $ac_cv_lib_crypt_crypt" >&5
9934 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9935 if test $ac_cv_lib_crypt_crypt = yes; then
9940 if test "$CRYPTLIB" != ""; then
9941 cat >>confdefs.h <<\_ACEOF
9942 #define HAVE_CRYPT 1
9946 echo "$as_me:9946: checking for crypt" >&5
9947 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
9948 if test "${ac_cv_func_crypt+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 cat >conftest.$ac_ext <<_ACEOF
9952 #line 9952 "configure"
9953 #include "confdefs.h"
9954 /* System header to define __stub macros and hopefully few prototypes,
9955 which can conflict with char crypt (); below. */
9957 /* Override any gcc2 internal prototype to avoid an error. */
9961 /* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */
9966 #ifdef F77_DUMMY_MAIN
9970 int F77_DUMMY_MAIN() { return 1; }
9975 /* The GNU C library defines this for functions which it implements
9976 to always fail with ENOSYS. Some functions are actually named
9977 something starting with __ and the normal name is an alias. */
9978 #if defined (__stub_crypt) || defined (__stub___crypt)
9988 rm -f conftest.$ac_objext conftest$ac_exeext
9989 if { (eval echo "$as_me:9989: \"$ac_link\"") >&5
9990 (eval $ac_link) 2>&5
9992 echo "$as_me:9992: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -s conftest$ac_exeext'
9995 { (eval echo "$as_me:9995: \"$ac_try\"") >&5
9998 echo "$as_me:9998: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10000 ac_cv_func_crypt=yes
10002 echo "$as_me: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
10004 ac_cv_func_crypt=no
10006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10008 echo "$as_me:10008: result: $ac_cv_func_crypt" >&5
10009 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10010 if test $ac_cv_func_crypt = yes; then
10011 cat >>confdefs.h <<\_ACEOF
10012 #define HAVE_CRYPT 1
10019 echo "$as_me:10019: checking for setkey in -lcipher" >&5
10020 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
10021 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 ac_check_lib_save_LIBS=$LIBS
10025 LIBS="-lcipher $LIBS"
10026 cat >conftest.$ac_ext <<_ACEOF
10027 #line 10027 "configure"
10028 #include "confdefs.h"
10030 /* Override any gcc2 internal prototype to avoid an error. */
10034 /* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10037 #ifdef F77_DUMMY_MAIN
10038 # ifdef __cplusplus
10041 int F77_DUMMY_MAIN() { return 1; }
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (eval echo "$as_me:10052: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>&5
10055 echo "$as_me:10055: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -s conftest$ac_exeext'
10058 { (eval echo "$as_me:10058: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:10061: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_lib_cipher_setkey=yes
10065 echo "$as_me: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10067 ac_cv_lib_cipher_setkey=no
10069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10070 LIBS=$ac_check_lib_save_LIBS
10072 echo "$as_me:10072: result: $ac_cv_lib_cipher_setkey" >&5
10073 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
10074 if test $ac_cv_lib_cipher_setkey = yes; then
10075 CRYPTLIB="${CRYPTLIB} -lcipher"
10079 if test "x$WITH_SNMP" = "xyes"; then
10081 echo "$as_me:10081: checking for asn1.h" >&5
10082 echo $ECHO_N "checking for asn1.h... $ECHO_C" >&6
10084 cat >conftest.$ac_ext <<_ACEOF
10085 #line 10085 "configure"
10086 #include "confdefs.h"
10088 #ifdef HAVE_SYS_TYPES_H
10089 #include <sys/types.h>
10091 #ifdef HAVE_STDINT_H
10092 #include <stdint.h>
10094 #ifdef HAVE_STDIO_H
10097 #ifdef HAVE_NETDB_H
10100 #ifdef HAVE_UNISTD_H
10101 #include <unistd.h>
10104 #ifdef F77_DUMMY_MAIN
10105 # ifdef __cplusplus
10108 int F77_DUMMY_MAIN() { return 1; }
10118 rm -f conftest.$ac_objext
10119 if { (eval echo "$as_me:10119: \"$ac_compile\"") >&5
10120 (eval $ac_compile) 2>&5
10122 echo "$as_me:10122: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -s conftest.$ac_objext'
10125 { (eval echo "$as_me:10125: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:10128: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10132 echo "$as_me: failed program was:" >&5
10133 cat conftest.$ac_ext >&5
10136 rm -f conftest.$ac_objext conftest.$ac_ext
10138 if test "x$SNMP_INCLUDE" = "x"; then
10139 old_CFLAGS="$CFLAGS"
10140 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
10141 CFLAGS="$old_CFLAGS -I$try"
10142 cat >conftest.$ac_ext <<_ACEOF
10143 #line 10143 "configure"
10144 #include "confdefs.h"
10146 #ifdef HAVE_SYS_TYPES_H
10147 #include <sys/types.h>
10149 #ifdef HAVE_STDINT_H
10150 #include <stdint.h>
10152 #ifdef HAVE_STDIO_H
10155 #ifdef HAVE_NETDB_H
10158 #ifdef HAVE_UNISTD_H
10159 #include <unistd.h>
10162 #ifdef F77_DUMMY_MAIN
10163 # ifdef __cplusplus
10166 int F77_DUMMY_MAIN() { return 1; }
10176 rm -f conftest.$ac_objext
10177 if { (eval echo "$as_me:10177: \"$ac_compile\"") >&5
10178 (eval $ac_compile) 2>&5
10180 echo "$as_me:10180: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -s conftest.$ac_objext'
10183 { (eval echo "$as_me:10183: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10186 echo "$as_me:10186: \$? = $ac_status" >&5
10187 (exit $ac_status); }; }; then
10188 SNMP_INCLUDE="-I$try"
10190 echo "$as_me: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10194 rm -f conftest.$ac_objext conftest.$ac_ext
10195 if test "x$SNMP_INCLUDE" != "x"; then
10199 CFLAGS="$old_CFLAGS"
10202 if test "x$SNMP_INCLUDE" = "x"; then
10203 echo "$as_me:10203: result: no" >&5
10204 echo "${ECHO_T}no" >&6
10206 echo "$as_me:10206: result: yes" >&5
10207 echo "${ECHO_T}yes" >&6
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_ASN1_H 1
10212 old_CFLAGS="$CFLAGS"
10213 CFLAGS="$CFLAGS $SNMP_INCLUDE"
10215 echo "$as_me:10215: checking for snmp.h" >&5
10216 echo $ECHO_N "checking for snmp.h... $ECHO_C" >&6
10217 cat >conftest.$ac_ext <<_ACEOF
10218 #line 10218 "configure"
10219 #include "confdefs.h"
10221 #ifdef HAVE_SYS_TYPES_H
10222 #include <sys/types.h>
10224 #ifdef HAVE_STDINT_H
10225 #include <stdint.h>
10227 #ifdef HAVE_STDIO_H
10230 #ifdef HAVE_NETDB_H
10233 #ifdef HAVE_UNISTD_H
10234 #include <unistd.h>
10240 #ifdef F77_DUMMY_MAIN
10241 # ifdef __cplusplus
10244 int F77_DUMMY_MAIN() { return 1; }
10254 rm -f conftest.$ac_objext
10255 if { (eval echo "$as_me:10255: \"$ac_compile\"") >&5
10256 (eval $ac_compile) 2>&5
10258 echo "$as_me:10258: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -s conftest.$ac_objext'
10261 { (eval echo "$as_me:10261: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10264 echo "$as_me:10264: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 cat >>confdefs.h <<\_ACEOF
10267 #define HAVE_SNMP_H 1
10269 ac_cv_header_snmp_h=yes
10271 echo "$as_me: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10274 rm -f conftest.$ac_objext conftest.$ac_ext
10275 if test "x$ac_cv_header_snmp_h" = "xyes"; then
10276 echo "$as_me:10276: result: yes" >&5
10277 echo "${ECHO_T}yes" >&6
10279 echo "$as_me:10279: result: no" >&5
10280 echo "${ECHO_T}no" >&6
10283 echo "$as_me:10283: checking for snmp_impl.h" >&5
10284 echo $ECHO_N "checking for snmp_impl.h... $ECHO_C" >&6
10285 cat >conftest.$ac_ext <<_ACEOF
10286 #line 10286 "configure"
10287 #include "confdefs.h"
10289 #ifdef HAVE_SYS_TYPES_H
10290 #include <sys/types.h>
10292 #ifdef HAVE_STDINT_H
10293 #include <stdint.h>
10295 #ifdef HAVE_STDIO_H
10298 #ifdef HAVE_NETDB_H
10301 #ifdef HAVE_UNISTD_H
10302 #include <unistd.h>
10310 #include <snmp_impl.h>
10311 #ifdef F77_DUMMY_MAIN
10312 # ifdef __cplusplus
10315 int F77_DUMMY_MAIN() { return 1; }
10325 rm -f conftest.$ac_objext
10326 if { (eval echo "$as_me:10326: \"$ac_compile\"") >&5
10327 (eval $ac_compile) 2>&5
10329 echo "$as_me:10329: \$? = $ac_status" >&5
10330 (exit $ac_status); } &&
10331 { ac_try='test -s conftest.$ac_objext'
10332 { (eval echo "$as_me:10332: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10335 echo "$as_me:10335: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 cat >>confdefs.h <<\_ACEOF
10338 #define HAVE_SNMP_IMPL_H 1
10340 ac_cv_header_snmp_impl_h=yes
10342 echo "$as_me: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10345 rm -f conftest.$ac_objext conftest.$ac_ext
10346 if test "x$ac_cv_header_snmp_h" = "xyes"; then
10347 echo "$as_me:10347: result: yes" >&5
10348 echo "${ECHO_T}yes" >&6
10350 echo "$as_me:10350: result: no" >&5
10351 echo "${ECHO_T}no" >&6
10354 echo "$as_me:10354: checking for snmp_build_var_op in -lsnmp" >&5
10355 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
10358 LIBS="$old_LIBS -lsnmp"
10359 cat >conftest.$ac_ext <<_ACEOF
10360 #line 10360 "configure"
10361 #include "confdefs.h"
10362 extern char snmp_build_var_op();
10363 #ifdef F77_DUMMY_MAIN
10364 # ifdef __cplusplus
10367 int F77_DUMMY_MAIN() { return 1; }
10372 snmp_build_var_op()
10377 rm -f conftest.$ac_objext conftest$ac_exeext
10378 if { (eval echo "$as_me:10378: \"$ac_link\"") >&5
10379 (eval $ac_link) 2>&5
10381 echo "$as_me:10381: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -s conftest$ac_exeext'
10384 { (eval echo "$as_me:10384: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:10387: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10391 echo "$as_me: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10397 if test "x$SNMP_LIBS" = "x"; then
10398 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
10399 LIBS="$old_LIBS -L$try -lsnmp"
10400 cat >conftest.$ac_ext <<_ACEOF
10401 #line 10401 "configure"
10402 #include "confdefs.h"
10403 extern char snmp_build_var_op();
10404 #ifdef F77_DUMMY_MAIN
10405 # ifdef __cplusplus
10408 int F77_DUMMY_MAIN() { return 1; }
10413 snmp_build_var_op()
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:10419: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>&5
10422 echo "$as_me:10422: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (eval echo "$as_me:10425: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:10428: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 SNMP_LIBS="-L$try -lsnmp"
10432 echo "$as_me: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10437 if test "x$SNMP_LIBS" != "x"; then
10440 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
10441 cat >conftest.$ac_ext <<_ACEOF
10442 #line 10442 "configure"
10443 #include "confdefs.h"
10444 extern char snmp_build_var_op();
10445 #ifdef F77_DUMMY_MAIN
10446 # ifdef __cplusplus
10449 int F77_DUMMY_MAIN() { return 1; }
10454 snmp_build_var_op()
10459 rm -f conftest.$ac_objext conftest$ac_exeext
10460 if { (eval echo "$as_me:10460: \"$ac_link\"") >&5
10461 (eval $ac_link) 2>&5
10463 echo "$as_me:10463: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:10466: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:10469: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 SNMP_LIBS="-L$try -lsnmp -lcrypto"
10473 echo "$as_me: failed program was:" >&5
10474 cat conftest.$ac_ext >&5
10477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10478 if test "x$SNMP_LIBS" != "x"; then
10485 CFLAGS="$old_CFLAGS"
10486 if test "x$SNMP_LIBS" = "x"; then
10487 echo "$as_me:10487: result: no" >&5
10488 echo "${ECHO_T}no" >&6
10491 echo "$as_me:10491: result: yes" >&5
10492 echo "${ECHO_T}yes" >&6
10493 cat >>confdefs.h <<\_ACEOF
10494 #define WITH_SNMP 1
10497 cat >>confdefs.h <<\_ACEOF
10498 #define HAVE_LIBSNMP 1
10506 if test "X$ac_cv_func_sem_init" = "Xno"; then
10508 echo "$as_me:10508: checking for sem_init in -lposix4" >&5
10509 echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6
10510 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 ac_check_lib_save_LIBS=$LIBS
10514 LIBS="-lposix4 $LIBS"
10515 cat >conftest.$ac_ext <<_ACEOF
10516 #line 10516 "configure"
10517 #include "confdefs.h"
10519 /* Override any gcc2 internal prototype to avoid an error. */
10523 /* We use char because int might match the return type of a gcc2
10524 builtin and then its argument prototype would still apply. */
10526 #ifdef F77_DUMMY_MAIN
10527 # ifdef __cplusplus
10530 int F77_DUMMY_MAIN() { return 1; }
10540 rm -f conftest.$ac_objext conftest$ac_exeext
10541 if { (eval echo "$as_me:10541: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>&5
10544 echo "$as_me:10544: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -s conftest$ac_exeext'
10547 { (eval echo "$as_me:10547: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10550 echo "$as_me:10550: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 ac_cv_lib_posix4_sem_init=yes
10554 echo "$as_me: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10556 ac_cv_lib_posix4_sem_init=no
10558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10561 echo "$as_me:10561: result: $ac_cv_lib_posix4_sem_init" >&5
10562 echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6
10563 if test $ac_cv_lib_posix4_sem_init = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565 #define HAVE_LIBPOSIX4 1
10568 LIBS="-lposix4 $LIBS"
10572 if test "X$ac_cv_lib_posix4_sem_init" = "X"; then
10573 if test "$WITH_THREAD_POOL" = "yes"; then
10574 { echo "$as_me:10574: WARNING: You do not have posix semaphores. Disabling thread pools" >&5
10575 echo "$as_me: WARNING: You do not have posix semaphores. Disabling thread pools" >&2;}
10577 WITH_THREAD_POOL=no
10581 gethostbyaddrrstyle=""
10582 echo "$as_me:10582: checking gethostbyaddr_r() syntax" >&5
10583 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
10584 cat >conftest.$ac_ext <<_ACEOF
10585 #line 10585 "configure"
10586 #include "confdefs.h"
10588 #ifdef F77_DUMMY_MAIN
10589 # ifdef __cplusplus
10592 int F77_DUMMY_MAIN() { return 1; }
10597 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
10602 rm -f conftest.$ac_objext
10603 if { (eval echo "$as_me:10603: \"$ac_compile\"") >&5
10604 (eval $ac_compile) 2>&5
10606 echo "$as_me:10606: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -s conftest.$ac_objext'
10609 { (eval echo "$as_me:10609: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:10612: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10615 cat >>confdefs.h <<\_ACEOF
10616 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
10619 gethostbyaddrrstyle=SYSV
10622 echo "$as_me: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10625 rm -f conftest.$ac_objext conftest.$ac_ext
10626 cat >conftest.$ac_ext <<_ACEOF
10627 #line 10627 "configure"
10628 #include "confdefs.h"
10630 #ifdef F77_DUMMY_MAIN
10631 # ifdef __cplusplus
10634 int F77_DUMMY_MAIN() { return 1; }
10639 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
10644 rm -f conftest.$ac_objext
10645 if { (eval echo "$as_me:10645: \"$ac_compile\"") >&5
10646 (eval $ac_compile) 2>&5
10648 echo "$as_me:10648: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try='test -s conftest.$ac_objext'
10651 { (eval echo "$as_me:10651: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10654 echo "$as_me:10654: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10657 cat >>confdefs.h <<\_ACEOF
10658 #define GETHOSTBYADDRRSTYLE GNUSTYLE
10661 gethostbyaddrrstyle=GNU
10664 echo "$as_me: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10667 rm -f conftest.$ac_objext conftest.$ac_ext
10669 cat >conftest.$ac_ext <<_ACEOF
10670 #line 10670 "configure"
10671 #include "confdefs.h"
10673 #ifdef F77_DUMMY_MAIN
10674 # ifdef __cplusplus
10677 int F77_DUMMY_MAIN() { return 1; }
10682 gethostbyaddr(NULL, 0, 0)
10687 rm -f conftest.$ac_objext
10688 if { (eval echo "$as_me:10688: \"$ac_compile\"") >&5
10689 (eval $ac_compile) 2>&5
10691 echo "$as_me:10691: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -s conftest.$ac_objext'
10694 { (eval echo "$as_me:10694: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:10697: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10700 cat >>confdefs.h <<\_ACEOF
10701 #define GETHOSTBYADDRRSTYLE BSDSTYLE
10704 gethostbyaddrrstyle=BSD
10707 echo "$as_me: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10710 rm -f conftest.$ac_objext conftest.$ac_ext
10712 if test "x$gethostbyaddrrstyle" = "x"; then
10713 echo "$as_me:10713: result: none! It must not exist, here." >&5
10714 echo "${ECHO_T}none! It must not exist, here." >&6
10716 echo "$as_me:10716: result: ${gethostbyaddrrstyle}-style" >&5
10717 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
10720 LIBTOOL="`pwd`/libtool"
10724 if test "x$INCLTDL" != "x";then
10725 INCLTDL='-I${top_builddir}/''libltdl'
10728 if test "$WITH_THREAD_POOL" = "yes"; then
10729 if test "$WITH_THREADS" != "yes"; then
10730 { { echo "$as_me:10730: error: You must have threads enabled for thread pools to work." >&5
10731 echo "$as_me: error: You must have threads enabled for thread pools to work." >&2;}
10732 { (exit 1); exit 1; }; }
10735 if test "X$PTHREADLIB" = "X"; then
10736 { { echo "$as_me:10736: error: You must have threading libraries for thread pools to work." >&5
10737 echo "$as_me: error: You must have threading libraries for thread pools to work." >&2;}
10738 { (exit 1); exit 1; }; }
10744 if test "x$EXPERIMENTAL" = "xyes"; then
10745 for foo in `find src/modules -name configure -print`; do
10746 bar=`echo $foo | sed 's%/configure$%%g'`
10747 mysubdirs="$mysubdirs $bar"
10750 for foo in `find \`cat src/modules/stable | sed 's%rlm%src/modules/rlm%g'\` -name configure -print`; do
10751 bar=`echo $foo | sed 's%/configure$%%g'`
10752 mysubdirs="$mysubdirs $bar"
10757 if test "x$EXPERIMENTAL" = "xyes"; then
10758 for foo in `ls src/modules | grep rlm_`; do
10759 MODULES="$MODULES $foo"
10762 for foo in `cat src/modules/stable`; do
10763 MODULES="$MODULES $foo"
10767 subdirs="$subdirs $mysubdirs"
10769 USE_SHARED_LIBS=$enable_shared
10771 USE_STATIC_LIBS=$enable_static
10775 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/radiusd.conf"
10776 cat >confcache <<\_ACEOF
10777 # This file is a shell script that caches the results of configure
10778 # tests run on this system so they can be shared between configure
10779 # scripts and configure runs, see configure's option --config-cache.
10780 # It is not useful on other systems. If it contains results you don't
10781 # want to keep, you may remove or edit it.
10783 # config.status only pays attention to the cache file if you give it
10784 # the --recheck option to rerun configure.
10786 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10788 # following values.
10792 # The following way of writing the cache mishandles newlines in values,
10793 # but we know of no workaround that is simple, portable, and efficient.
10794 # So, don't put newlines in cache variables' values.
10795 # Ultrix sh set writes to stderr and can't be redirected directly,
10796 # and sets the high bit in the cache file unless we assign to the vars.
10799 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10801 # `set' does not quote correctly, so add quotes (double-quote
10802 # substitution turns \\\\ into \\, and sed turns \\ into \).
10805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10808 # `set' quotes correctly as required by POSIX, so do not add quotes.
10810 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10819 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10821 if cmp -s $cache_file confcache; then :; else
10822 if test -w $cache_file; then
10823 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10824 cat confcache >$cache_file
10826 echo "not updating unwritable cache $cache_file"
10831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10832 # Let make expand exec_prefix.
10833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10835 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10836 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10837 # trailing colons and then remove the whole line if VPATH becomes empty
10838 # (actually we leave an empty line to preserve line numbers).
10839 if test "x$srcdir" = x.; then
10840 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10841 s/:*\$(srcdir):*/:/;
10842 s/:*\${srcdir}:*/:/;
10844 s/^\([^=]*=[ ]*\):*/\1/;
10850 DEFS=-DHAVE_CONFIG_H
10852 : ${CONFIG_STATUS=./config.status}
10853 ac_clean_files_save=$ac_clean_files
10854 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10855 { echo "$as_me:10855: creating $CONFIG_STATUS" >&5
10856 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10857 cat >$CONFIG_STATUS <<_ACEOF
10859 # Generated automatically by $as_me.
10860 # Run this file to recreate the current configuration.
10861 # Compiler output produced by configure, useful for debugging
10862 # configure, is in config.log if it exists.
10865 SHELL=\${CONFIG_SHELL-$SHELL}
10868 cat >>$CONFIG_STATUS <<\_ACEOF
10870 ## --------------------- ##
10871 ## M4sh Initialization. ##
10872 ## --------------------- ##
10874 # Be Bourne compatible
10875 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10878 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10882 # Name of the executable.
10883 as_me=`echo "$0" |sed 's,.*[\\/],,'`
10885 if expr a : '\(a\)' >/dev/null 2>&1; then
10891 rm -f conf$$ conf$$.exe conf$$.file
10893 if ln -s conf$$.file conf$$ 2>/dev/null; then
10894 # We could just check for DJGPP; but this test a) works b) is more generic
10895 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10896 if test -f conf$$.exe; then
10897 # Don't use ln at all; we don't have any links
10902 elif ln conf$$.file conf$$ 2>/dev/null; then
10907 rm -f conf$$ conf$$.exe conf$$.file
10909 as_executable_p="test -f"
10911 # Support unset when possible.
10912 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10919 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
10920 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
10921 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
10922 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
10923 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
10924 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
10925 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
10926 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10929 # We need space, tab and new line, in precisely that order.
10935 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10939 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10940 # report actual input values of CONFIG_FILES etc. instead of their
10941 # values after options handling. Logging --version etc. is OK.
10945 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10946 ## Running \$as_me. ##
10951 This file was extended by $as_me, which was
10952 generated by GNU Autoconf 2.52d. Invocation command line was
10954 CONFIG_FILES = $CONFIG_FILES
10955 CONFIG_HEADERS = $CONFIG_HEADERS
10956 CONFIG_LINKS = $CONFIG_LINKS
10957 CONFIG_COMMANDS = $CONFIG_COMMANDS
10961 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10965 # Files that config.status was made for.
10966 if test -n "$ac_config_files"; then
10967 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10970 if test -n "$ac_config_headers"; then
10971 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10974 if test -n "$ac_config_links"; then
10975 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10978 if test -n "$ac_config_commands"; then
10979 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10982 cat >>$CONFIG_STATUS <<\_ACEOF
10985 \`$as_me' instantiates files from templates according to the
10986 current configuration.
10988 Usage: $0 [OPTIONS] [FILE]...
10990 -h, --help print this help, then exit
10991 -V, --version print version number, then exit
10992 -d, --debug don't remove temporary files
10993 --recheck update $as_me by reconfiguring in the same conditions
10994 --file=FILE[:TEMPLATE]
10995 instantiate the configuration file FILE
10996 --header=FILE[:TEMPLATE]
10997 instantiate the configuration header FILE
10999 Configuration files:
11002 Configuration headers:
11005 Report bugs to <bug-autoconf@gnu.org>."
11008 cat >>$CONFIG_STATUS <<_ACEOF
11011 configured by $0, generated by GNU Autoconf 2.52d,
11012 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11014 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11015 Free Software Foundation, Inc.
11016 This config.status script is free software; the Free Software Foundation
11017 gives unlimited permission to copy, distribute and modify it."
11021 cat >>$CONFIG_STATUS <<\_ACEOF
11022 # If no file are specified by the user, then we need to provide default
11023 # value. By we need to know if files were specified by the user.
11029 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11030 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11032 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11036 *) # This is not an option, so the user has probably given explicit
11038 ac_need_defaults=false;;
11042 # Handling of the options.
11044 cat >>$CONFIG_STATUS <<_ACEOF
11045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11046 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11047 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11049 cat >>$CONFIG_STATUS <<\_ACEOF
11050 --version | --vers* | -V )
11051 echo "$ac_cs_version"; exit 0 ;;
11053 # Conflict between --help and --header
11054 { { echo "$as_me:11054: error: ambiguous option: $1
11055 Try \`$0 --help' for more information." >&5
11056 echo "$as_me: error: ambiguous option: $1
11057 Try \`$0 --help' for more information." >&2;}
11058 { (exit 1); exit 1; }; };;
11059 --help | --hel | -h )
11060 echo "$ac_cs_usage"; exit 0 ;;
11061 --debug | --d* | -d )
11063 --file | --fil | --fi | --f )
11065 CONFIG_FILES="$CONFIG_FILES $1"
11066 ac_need_defaults=false;;
11067 --header | --heade | --head | --hea )
11069 CONFIG_HEADERS="$CONFIG_HEADERS $1"
11070 ac_need_defaults=false;;
11072 # This is an error.
11073 -*) { { echo "$as_me:11073: error: unrecognized option: $1
11074 Try \`$0 --help' for more information." >&5
11075 echo "$as_me: error: unrecognized option: $1
11076 Try \`$0 --help' for more information." >&2;}
11077 { (exit 1); exit 1; }; } ;;
11079 *) ac_config_targets="$ac_config_targets $1" ;;
11087 cat >>$CONFIG_STATUS <<\_ACEOF
11088 for ac_config_target in $ac_config_targets
11090 case "$ac_config_target" in
11091 # Handling of arguments.
11092 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
11093 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
11094 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
11095 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
11096 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
11097 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
11098 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
11099 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
11100 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
11101 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
11102 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
11103 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
11104 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
11105 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
11106 *) { { echo "$as_me:11106: error: invalid argument: $ac_config_target" >&5
11107 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11108 { (exit 1); exit 1; }; };;
11112 # If the user did not use the arguments to specify the items to instantiate,
11113 # then the envvar interface is used. Set only those that are not.
11114 # We use the long form for the default assignment because of an extremely
11115 # bizarre bug on SunOS 4.1.3.
11116 if $ac_need_defaults; then
11117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11121 # Create a temporary directory, and hook for its removal unless debugging.
11124 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11125 trap '{ (exit 1); exit 1; }' 1 2 13 15
11128 # Create a (secure) tmp directory for tmp files.
11131 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11132 test -n "$tmp" && test -d "$tmp"
11135 tmp=$TMPDIR/cs$$-$RANDOM
11136 (umask 077 && mkdir $tmp)
11139 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11140 { (exit 1); exit 1; }
11145 cat >>$CONFIG_STATUS <<_ACEOF
11148 # CONFIG_FILES section.
11151 # No need to generate the scripts if there are no CONFIG_FILES.
11152 # This happens for instance when ./config.status config.h
11153 if test -n "\$CONFIG_FILES"; then
11154 # Protect against being on the right side of a sed subst in config.status.
11155 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11156 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11157 s,@SHELL@,$SHELL,;t t
11158 s,@exec_prefix@,$exec_prefix,;t t
11159 s,@prefix@,$prefix,;t t
11160 s,@program_transform_name@,$program_transform_name,;t t
11161 s,@bindir@,$bindir,;t t
11162 s,@sbindir@,$sbindir,;t t
11163 s,@libexecdir@,$libexecdir,;t t
11164 s,@datadir@,$datadir,;t t
11165 s,@sysconfdir@,$sysconfdir,;t t
11166 s,@sharedstatedir@,$sharedstatedir,;t t
11167 s,@localstatedir@,$localstatedir,;t t
11168 s,@libdir@,$libdir,;t t
11169 s,@includedir@,$includedir,;t t
11170 s,@oldincludedir@,$oldincludedir,;t t
11171 s,@infodir@,$infodir,;t t
11172 s,@mandir@,$mandir,;t t
11173 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11174 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11175 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11176 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11177 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11178 s,@build_alias@,$build_alias,;t t
11179 s,@host_alias@,$host_alias,;t t
11180 s,@target_alias@,$target_alias,;t t
11181 s,@ECHO_C@,$ECHO_C,;t t
11182 s,@ECHO_N@,$ECHO_N,;t t
11183 s,@ECHO_T@,$ECHO_T,;t t
11184 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11185 s,@DEFS@,$DEFS,;t t
11186 s,@LIBS@,$LIBS,;t t
11188 s,@CFLAGS@,$CFLAGS,;t t
11189 s,@LDFLAGS@,$LDFLAGS,;t t
11190 s,@CPPFLAGS@,$CPPFLAGS,;t t
11191 s,@ac_ct_CC@,$ac_ct_CC,;t t
11192 s,@EXEEXT@,$EXEEXT,;t t
11193 s,@OBJEXT@,$OBJEXT,;t t
11195 s,@RANLIB@,$RANLIB,;t t
11196 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11197 s,@GMAKE@,$GMAKE,;t t
11198 s,@MAKE@,$MAKE,;t t
11199 s,@build@,$build,;t t
11200 s,@build_cpu@,$build_cpu,;t t
11201 s,@build_vendor@,$build_vendor,;t t
11202 s,@build_os@,$build_os,;t t
11203 s,@host@,$host,;t t
11204 s,@host_cpu@,$host_cpu,;t t
11205 s,@host_vendor@,$host_vendor,;t t
11206 s,@host_os@,$host_os,;t t
11207 s,@LN_S@,$LN_S,;t t
11208 s,@ECHO@,$ECHO,;t t
11209 s,@STRIP@,$STRIP,;t t
11210 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11211 s,@LIBTOOL@,$LIBTOOL,;t t
11212 s,@logdir@,$logdir,;t t
11213 s,@radacctdir@,$radacctdir,;t t
11214 s,@raddbdir@,$raddbdir,;t t
11215 s,@subdirs@,$subdirs,;t t
11216 s,@PERL@,$PERL,;t t
11217 s,@SNMPGET@,$SNMPGET,;t t
11218 s,@SNMPWALK@,$SNMPWALK,;t t
11219 s,@RUSERS@,$RUSERS,;t t
11220 s,@ACLOCAL@,$ACLOCAL,;t t
11221 s,@AUTOCONF@,$AUTOCONF,;t t
11222 s,@AUTOHEADER@,$AUTOHEADER,;t t
11223 s,@LOCATE@,$LOCATE,;t t
11224 s,@DIRNAME@,$DIRNAME,;t t
11225 s,@GREP@,$GREP,;t t
11226 s,@REGEX@,$REGEX,;t t
11227 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
11228 s,@LIBPREFIX@,$LIBPREFIX,;t t
11229 s,@CRYPTLIB@,$CRYPTLIB,;t t
11230 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
11231 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
11232 s,@LIBLTDL@,$LIBLTDL,;t t
11233 s,@INCLTDL@,$INCLTDL,;t t
11234 s,@top_builddir@,$top_builddir,;t t
11235 s,@MODULES@,$MODULES,;t t
11236 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
11237 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
11238 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
11239 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
11240 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
11241 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
11242 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
11247 cat >>$CONFIG_STATUS <<\_ACEOF
11248 # Split the substitutions into bite-sized pieces for seds with
11249 # small command number limits, like on Digital OSF/1 and HP-UX.
11250 ac_max_sed_lines=48
11251 ac_sed_frag=1 # Number of current file.
11252 ac_beg=1 # First line for current file.
11253 ac_end=$ac_max_sed_lines # Line after last line for current file.
11256 while $ac_more_lines; do
11257 if test $ac_beg -gt 1; then
11258 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11260 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11262 if test ! -s $tmp/subs.frag; then
11263 ac_more_lines=false
11265 # The purpose of the label and of the branching condition is to
11266 # speed up the sed processing (if there are no `@' at all, there
11267 # is no need to browse any of the substitutions).
11268 # These are the two extra sed commands mentioned above.
11270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11271 if test -z "$ac_sed_cmds"; then
11272 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11274 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11276 ac_sed_frag=`expr $ac_sed_frag + 1`
11278 ac_end=`expr $ac_end + $ac_max_sed_lines`
11281 if test -z "$ac_sed_cmds"; then
11284 fi # test -n "$CONFIG_FILES"
11287 cat >>$CONFIG_STATUS <<\_ACEOF
11288 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11289 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11291 - | *:- | *:-:* ) # input from stdin
11293 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11294 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11295 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11296 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11297 * ) ac_file_in=$ac_file.in ;;
11300 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11301 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11302 X"$ac_file" : 'X\(//\)[^/]' \| \
11303 X"$ac_file" : 'X\(//\)$' \| \
11304 X"$ac_file" : 'X\(/\)' \| \
11305 . : '\(.\)' 2>/dev/null ||
11307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11309 /^X\(\/\/\)$/{ s//\1/; q; }
11310 /^X\(\/\).*/{ s//\1/; q; }
11312 { case "$ac_dir" in
11313 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11317 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11318 case $as_mkdir_dir in
11319 # Skip DOS drivespec
11320 ?:) as_incr_dir=$as_mkdir_dir ;;
11322 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11323 test -d "$as_incr_dir" ||
11324 mkdir "$as_incr_dir" ||
11325 { { echo "$as_me:11325: error: cannot create \"$ac_dir\"" >&5
11326 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11327 { (exit 1); exit 1; }; }
11332 if test "$ac_dir" != .; then
11333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
11334 # A "../" for each directory in $ac_dir_suffix.
11335 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
11337 ac_dir_suffix= ac_top_builddir=
11341 .) # No --srcdir option. We are building in place.
11343 if test -z "$ac_top_builddir"; then
11346 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11348 [\\/]* | ?:[\\/]* ) # Absolute path.
11349 ac_srcdir=$srcdir$ac_dir_suffix;
11350 ac_top_srcdir=$srcdir ;;
11351 *) # Relative path.
11352 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11353 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11356 if test x"$ac_file" != x-; then
11357 { echo "$as_me:11357: creating $ac_file" >&5
11358 echo "$as_me: creating $ac_file" >&6;}
11361 # Let's still pretend it is `configure' which instantiates (i.e., don't
11362 # use $as_me), people would be surprised to read:
11363 # /* config.h. Generated automatically by config.status. */
11364 configure_input="Generated automatically from `echo $ac_file_in |
11365 sed 's,.*/,,'` by configure."
11367 # First look for the input files in the build tree, otherwise in the
11369 ac_file_inputs=`IFS=:
11370 for f in $ac_file_in; do
11372 -) echo $tmp/stdin ;;
11374 # Absolute (can't be DOS-style, as IFS=:)
11375 test -f "$f" || { { echo "$as_me:11375: error: cannot find input file: $f" >&5
11376 echo "$as_me: error: cannot find input file: $f" >&2;}
11377 { (exit 1); exit 1; }; }
11380 if test -f "$f"; then
11383 elif test -f "$srcdir/$f"; then
11388 { { echo "$as_me:11388: error: cannot find input file: $f" >&5
11389 echo "$as_me: error: cannot find input file: $f" >&2;}
11390 { (exit 1); exit 1; }; }
11393 done` || { (exit 1); exit 1; }
11395 cat >>$CONFIG_STATUS <<_ACEOF
11399 cat >>$CONFIG_STATUS <<\_ACEOF
11401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11402 s,@configure_input@,$configure_input,;t t
11403 s,@srcdir@,$ac_srcdir,;t t
11404 s,@top_srcdir@,$ac_top_srcdir,;t t
11405 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11407 if test x"$ac_file" != x-; then
11408 mv $tmp/out $ac_file
11416 cat >>$CONFIG_STATUS <<\_ACEOF
11419 # CONFIG_HEADER section.
11422 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11423 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11425 # ac_d sets the value in "#define NAME VALUE" lines.
11426 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11427 ac_dB='[ ].*$,\1#\2'
11430 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11431 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11432 ac_uB='$,\1#\2define\3'
11436 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11437 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11439 - | *:- | *:-:* ) # input from stdin
11441 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11442 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11443 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11444 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11445 * ) ac_file_in=$ac_file.in ;;
11448 test x"$ac_file" != x- && { echo "$as_me:11448: creating $ac_file" >&5
11449 echo "$as_me: creating $ac_file" >&6;}
11451 # First look for the input files in the build tree, otherwise in the
11453 ac_file_inputs=`IFS=:
11454 for f in $ac_file_in; do
11456 -) echo $tmp/stdin ;;
11458 # Absolute (can't be DOS-style, as IFS=:)
11459 test -f "$f" || { { echo "$as_me:11459: error: cannot find input file: $f" >&5
11460 echo "$as_me: error: cannot find input file: $f" >&2;}
11461 { (exit 1); exit 1; }; }
11464 if test -f "$f"; then
11467 elif test -f "$srcdir/$f"; then
11472 { { echo "$as_me:11472: error: cannot find input file: $f" >&5
11473 echo "$as_me: error: cannot find input file: $f" >&2;}
11474 { (exit 1); exit 1; }; }
11477 done` || { (exit 1); exit 1; }
11478 # Remove the trailing spaces.
11479 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11483 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11484 # `conftest.undefs', that substitutes the proper values into
11485 # config.h.in to produce config.h. The first handles `#define'
11486 # templates, and the second `#undef' templates.
11487 # And first: Protect against being on the right side of a sed subst in
11488 # config.status. Protect against being in an unquoted here document
11489 # in config.status.
11490 rm -f conftest.defines conftest.undefs
11491 # Using a here document instead of a string reduces the quoting nightmare.
11492 # Putting comments in sed scripts is not portable.
11494 # `end' is used to avoid that the second main sed command (meant for
11495 # 0-ary CPP macros) applies to n-ary macro definitions.
11496 # See the Autoconf documentation for `clear'.
11497 cat >confdef2sed.sed <<\_ACEOF
11502 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
11504 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11507 # If some macros were called several times there might be several times
11508 # the same #defines, which is useless. Nevertheless, we may not want to
11509 # sort them, since we want the *last* AC-DEFINE to be honored.
11510 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11511 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11512 rm -f confdef2sed.sed
11514 # This sed command replaces #undef with comments. This is necessary, for
11515 # example, in the case of _POSIX_SOURCE, which is predefined and required
11516 # on some systems where configure will not decide to define it.
11517 cat >>conftest.undefs <<\_ACEOF
11518 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11521 # Break up conftest.defines because some shells have a limit on the size
11522 # of here documents, and old seds have small limits too (100 cmds).
11523 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11524 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11525 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11526 echo ' :' >>$CONFIG_STATUS
11527 rm -f conftest.tail
11528 while grep . conftest.defines >/dev/null
11530 # Write a limited-size here document to $tmp/defines.sed.
11531 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11532 # Speed up: don't consider the non `#define' lines.
11533 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11534 # Work around the forget-to-reset-the-flag bug.
11535 echo 't clr' >>$CONFIG_STATUS
11536 echo ': clr' >>$CONFIG_STATUS
11537 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11539 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11541 mv $tmp/out $tmp/in
11543 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11544 rm -f conftest.defines
11545 mv conftest.tail conftest.defines
11547 rm -f conftest.defines
11548 echo ' fi # egrep' >>$CONFIG_STATUS
11549 echo >>$CONFIG_STATUS
11551 # Break up conftest.undefs because some shells have a limit on the size
11552 # of here documents, and old seds have small limits too (100 cmds).
11553 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11554 rm -f conftest.tail
11555 while grep . conftest.undefs >/dev/null
11557 # Write a limited-size here document to $tmp/undefs.sed.
11558 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11559 # Speed up: don't consider the non `#undef'
11560 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11561 # Work around the forget-to-reset-the-flag bug.
11562 echo 't clr' >>$CONFIG_STATUS
11563 echo ': clr' >>$CONFIG_STATUS
11564 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11566 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11568 mv $tmp/out $tmp/in
11570 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11571 rm -f conftest.undefs
11572 mv conftest.tail conftest.undefs
11574 rm -f conftest.undefs
11576 cat >>$CONFIG_STATUS <<\_ACEOF
11577 # Let's still pretend it is `configure' which instantiates (i.e., don't
11578 # use $as_me), people would be surprised to read:
11579 # /* config.h. Generated automatically by config.status. */
11580 if test x"$ac_file" = x-; then
11581 echo "/* Generated automatically by configure. */" >$tmp/config.h
11583 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
11585 cat $tmp/in >>$tmp/config.h
11587 if test x"$ac_file" != x-; then
11588 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11589 { echo "$as_me:11589: $ac_file is unchanged" >&5
11590 echo "$as_me: $ac_file is unchanged" >&6;}
11592 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11593 X"$ac_file" : 'X\(//\)[^/]' \| \
11594 X"$ac_file" : 'X\(//\)$' \| \
11595 X"$ac_file" : 'X\(/\)' \| \
11596 . : '\(.\)' 2>/dev/null ||
11598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11600 /^X\(\/\/\)$/{ s//\1/; q; }
11601 /^X\(\/\).*/{ s//\1/; q; }
11603 { case "$ac_dir" in
11604 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11608 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11609 case $as_mkdir_dir in
11610 # Skip DOS drivespec
11611 ?:) as_incr_dir=$as_mkdir_dir ;;
11613 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11614 test -d "$as_incr_dir" ||
11615 mkdir "$as_incr_dir" ||
11616 { { echo "$as_me:11616: error: cannot create \"$ac_dir\"" >&5
11617 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11618 { (exit 1); exit 1; }; }
11624 mv $tmp/config.h $ac_file
11628 rm -f $tmp/config.h
11633 cat >>$CONFIG_STATUS <<\_ACEOF
11635 { (exit 0); exit 0; }
11637 chmod +x $CONFIG_STATUS
11638 ac_clean_files=$ac_clean_files_save
11640 # configure is writing to config.log, and then calls config.status.
11641 # config.status does its own redirection, appending to config.log.
11642 # Unfortunately, on DOS this fails, as config.log is still kept open
11643 # by configure, so config.status won't be able to write to it; its
11644 # output is simply discarded. So we exec the FD to /dev/null,
11645 # effectively closing config.log, so it can be properly (re)opened and
11646 # appended to by config.status. When coming back to configure, we
11647 # need to make the FD available again.
11648 if test "$no_create" != yes; then
11651 $SHELL $CONFIG_STATUS || ac_cs_success=false
11653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11654 # would make configure fail if this is the last instruction.
11655 $ac_cs_success || { (exit 1); exit 1; }
11659 # CONFIG_SUBDIRS section.
11661 if test "$no_recursion" != yes; then
11663 # Remove --cache-file and --srcdir arguments so they do not pile up.
11664 ac_sub_configure_args=
11666 for ac_arg in $ac_configure_args; do
11667 if test -n "$ac_prev"; then
11672 -cache-file | --cache-file | --cache-fil | --cache-fi \
11673 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11674 ac_prev=cache_file ;;
11675 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11676 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11679 --config-cache | -C)
11681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11685 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11687 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11689 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11693 # Always prepend --prefix to ensure using the same prefix
11694 # in subdir configurations.
11695 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
11697 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11699 # Do not complain, so a configure script can configure whichever
11700 # parts of a large source tree are present.
11701 test -d $srcdir/$ac_dir || continue
11703 { echo "$as_me:11703: configuring in $ac_dir" >&5
11704 echo "$as_me: configuring in $ac_dir" >&6;}
11705 { case "$ac_dir" in
11706 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11710 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11711 case $as_mkdir_dir in
11712 # Skip DOS drivespec
11713 ?:) as_incr_dir=$as_mkdir_dir ;;
11715 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11716 test -d "$as_incr_dir" ||
11717 mkdir "$as_incr_dir" ||
11718 { { echo "$as_me:11718: error: cannot create \"$ac_dir\"" >&5
11719 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11720 { (exit 1); exit 1; }; }
11727 if test "$ac_dir" != .; then
11728 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
11729 # A "../" for each directory in $ac_dir_suffix.
11730 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
11732 ac_dir_suffix= ac_top_builddir=
11736 .) # No --srcdir option. We are building in place.
11738 if test -z "$ac_top_builddir"; then
11741 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11743 [\\/]* | ?:[\\/]* ) # Absolute path.
11744 ac_srcdir=$srcdir$ac_dir_suffix;
11745 ac_top_srcdir=$srcdir ;;
11746 *) # Relative path.
11747 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11748 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11751 # Check for guested configure; otherwise get Cygnus style configure.
11752 if test -f $ac_srcdir/configure.gnu; then
11753 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
11754 elif test -f $ac_srcdir/configure; then
11755 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
11756 elif test -f $ac_srcdir/configure.in; then
11757 ac_sub_configure=$ac_configure
11759 { echo "$as_me:11759: WARNING: no configuration information is in $ac_dir" >&5
11760 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11764 # The recursion is here.
11765 if test -n "$ac_sub_configure"; then
11766 # Make the cache file name correct relative to the subdirectory.
11767 case $cache_file in
11768 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11769 *) # Relative path.
11770 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
11773 { echo "$as_me:11773: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11774 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11775 # The eval makes quoting arguments work.
11776 eval $ac_sub_configure $ac_sub_configure_args \
11777 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
11778 { { echo "$as_me:11778: error: $ac_sub_configure failed for $ac_dir" >&5
11779 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
11780 { (exit 1); exit 1; }; }
11787 ac_config_commands="$ac_config_commands default-1"
11789 ac_config_commands="$ac_config_commands default-2"
11791 ac_config_commands="$ac_config_commands default-3"
11793 ac_config_commands="$ac_config_commands default-4"
11795 ac_config_commands="$ac_config_commands default-5"