2 # From configure.in Revision: 1.229 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
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 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=${tagnames+${tagnames},}CXX
397 tagnames=${tagnames+${tagnames},}F77
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
429 ac_unique_file="src/main/radiusd.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP RANLIB ac_ct_RANLIB GMAKE MAKE LIBLTDLPATH LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS PCAP_LIBS LIBPREFIX CRYPTLIB SNMP_LIBS SNMP_INCLUDE HOSTINFO LIBLTDL INCLTDL subdirs MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures this package to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 if test -n "$ac_init_help"; then
1021 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1022 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1023 --disable-largefile omit support for large files
1024 --enable-shared[=PKGS]
1025 build shared libraries [default=yes]
1026 --enable-static[=PKGS]
1027 build static libraries [default=yes]
1028 --enable-fast-install[=PKGS]
1029 optimize for fast installation [default=yes]
1030 --disable-libtool-lock avoid locking (might break parallel builds)
1031 --enable-strict-dependencies Fail configure on lack of module dependancy.
1032 --enable-developer Enables features of interest to developers.
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037 --with-system-libtool try to use libtool installed in your system default=use our own
1038 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1039 --with-pic try to use only PIC/non-PIC objects [default=use
1042 include additional configurations [automatic]
1043 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1044 --with-radacctdir=PATH Directory for detail files LOGDIR/radacct
1045 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1046 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1047 --with-threads Use threads, if available. (default=yes)
1048 --with-snmp Compile in SNMP support. (default=yes)
1049 --with-static-modules=QUOTED-MODULE-LIST
1050 --with-experimental-modules Use experimental and unstable modules. (default=no)
1051 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1052 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1053 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1054 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1055 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1057 Some influential environment variables:
1058 CC C compiler command
1059 CFLAGS C compiler flags
1060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061 nonstandard directory <lib dir>
1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063 headers in a nonstandard directory <include dir>
1064 CXX C++ compiler command
1065 CXXFLAGS C++ compiler flags
1067 CXXCPP C++ preprocessor
1068 F77 Fortran 77 compiler command
1069 FFLAGS Fortran 77 compiler flags
1071 Use these variables to override the choices made by `configure' or to help
1072 it to find libraries and programs with nonstandard names/locations.
1077 if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1084 if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089 ac_dir_suffix= ac_top_builddir=
1093 .) # No --srcdir option. We are building in place.
1095 if test -z "$ac_top_builddir"; then
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 # Do not use `cd foo && pwd` to compute absolute paths, because
1109 # the directories may not exist.
1111 .) ac_abs_builddir="$ac_dir";;
1114 .) ac_abs_builddir=`pwd`;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119 case $ac_abs_builddir in
1120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 case ${ac_top_builddir}. in
1123 .) ac_abs_top_builddir=$ac_abs_builddir;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128 case $ac_abs_builddir in
1129 .) ac_abs_srcdir=$ac_srcdir;;
1132 .) ac_abs_srcdir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137 case $ac_abs_builddir in
1138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 case $ac_top_srcdir in
1141 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148 # Check for guested configure; otherwise get Cygnus style configure.
1149 if test -f $ac_srcdir/configure.gnu; then
1151 $SHELL $ac_srcdir/configure.gnu --help=recursive
1152 elif test -f $ac_srcdir/configure; then
1154 $SHELL $ac_srcdir/configure --help=recursive
1155 elif test -f $ac_srcdir/configure.ac ||
1156 test -f $ac_srcdir/configure.in; then
1158 $ac_configure --help
1160 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166 test -n "$ac_init_help" && exit 0
1167 if $ac_init_version; then
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1181 It was created by $as_me, which was
1182 generated by GNU Autoconf 2.59. Invocation command line was
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216 test -z "$as_dir" && as_dir=.
1217 echo "PATH: $as_dir"
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1241 ac_must_keep_next=false
1247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258 if test $ac_must_keep_next = true; then
1259 ac_must_keep_next=false # Got value, back to normal.
1262 *=* | --config-cache | -C | -disable-* | --disable-* \
1263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265 | -with-* | --with-* | -without-* | --without-* | --x)
1266 case "$ac_configure_args0 " in
1267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270 -* ) ac_must_keep_next=true ;;
1273 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274 # Get rid of the leading space.
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log. We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289 # Save into config.log some information that might help in debugging.
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1299 # The following way of writing the cache mishandles newlines in values,
1302 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1322 for ac_var in $ac_subst_vars
1324 eval ac_val=$`echo $ac_var`
1325 echo "$ac_var='"'"'$ac_val'"'"'"
1329 if test -n "$ac_subst_files"; then
1336 for ac_var in $ac_subst_files
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1344 if test -s confdefs.h; then
1351 sed "/^$/d" confdefs.h | sort
1354 test "$ac_signal" != 0 &&
1355 echo "$as_me: caught signal $ac_signal"
1356 echo "$as_me: exit $exit_status"
1358 rm -f core *.core &&
1359 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362 for ac_signal in 1 2 13 15; do
1363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 # Predefined preprocessor variables.
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402 if test "x$prefix" != xNONE; then
1403 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408 for ac_site_file in $CONFIG_SITE; do
1409 if test -r "$ac_site_file"; then
1410 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412 sed 's/^/| /' "$ac_site_file" >&5
1417 if test -r "$cache_file"; then
1418 # Some versions of bash will fail to source /dev/null (special
1419 # files actually), so we avoid doing that.
1420 if test -f "$cache_file"; then
1421 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1424 [\\/]* | ?:[\\/]* ) . $cache_file;;
1425 *) . ./$cache_file;;
1429 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1434 # Check that the precious variables saved in the cache have kept the same
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440 eval ac_new_set=\$ac_env_${ac_var}_set
1441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442 eval ac_new_val="\$ac_env_${ac_var}_value"
1443 case $ac_old_set,$ac_new_set in
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1454 if test "x$ac_old_val" != "x$ac_new_val"; then
1455 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1458 echo "$as_me: former value: $ac_old_val" >&2;}
1459 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1460 echo "$as_me: current value: $ac_new_val" >&2;}
1461 ac_cache_corrupted=:
1464 # Pass precious variables to config.status.
1465 if test "$ac_new_set" = set; then
1467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 *) ac_arg=$ac_var=$ac_new_val ;;
1471 case " $ac_configure_args " in
1472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477 if $ac_cache_corrupted; then
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1509 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1512 RADIUSD_MAJOR_VERSION=2
1513 RADIUSD_MINOR_VERSION=0.0-pre0
1514 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 if test -n "$CC"; then
1552 echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1560 if test -z "$ac_cv_prog_CC"; then
1562 # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="gcc"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1602 if test -z "$CC"; then
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1640 if test -z "$ac_cv_prog_CC"; then
1642 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="cc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1683 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703 ac_prog_rejected=yes
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 if test $ac_prog_rejected = yes; then
1714 # We found a bogon in the path, so make sure we never use it.
1715 set dummy $ac_cv_prog_CC
1717 if test $# != 0; then
1718 # We chose a different compiler from the bogus one.
1719 # However, it has the same basename, so the bogon will be chosen
1720 # first if we set CC to just the basename; use the full file name.
1722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1737 if test -z "$CC"; then
1738 if test -n "$ac_tool_prefix"; then
1741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 if test -n "$CC"; then
1769 echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1776 test -n "$CC" && break
1779 if test -z "$CC"; then
1783 # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="$ac_prog"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1818 test -n "$ac_ct_CC" && break
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835 "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838 (eval $ac_compiler --version </dev/null >&5) 2>&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843 (eval $ac_compiler -v </dev/null >&5) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848 (eval $ac_compiler -V </dev/null >&5) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1853 cat >conftest.$ac_ext <<_ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h. */
1868 ac_clean_files_save=$ac_clean_files
1869 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1870 # Try to create an executable without -o first, disregard a.out.
1871 # It will help us diagnose broken compilers, and finding out an intuition
1873 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1874 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1875 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1877 (eval $ac_link_default) 2>&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # Find the output, starting from the most likely. This scheme is
1882 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1885 # Be careful to initialize this variable, since it used to be cached.
1886 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 # b.out is created by i960 compilers.
1889 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 test -f "$ac_file" || continue
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1896 # This is the source file.
1899 # We found the default executable, but exeext='' is most
1903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1904 # FIXME: I believe we export ac_cv_exeext for Libtool,
1905 # but it would be cool to find out if it's true. Does anybody
1906 # maintain Libtool? --akim.
1914 echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1918 See \`config.log' for more details." >&5
1919 echo "$as_me: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&2;}
1921 { (exit 77); exit 77; }; }
1924 ac_exeext=$ac_cv_exeext
1925 echo "$as_me:$LINENO: result: $ac_file" >&5
1926 echo "${ECHO_T}$ac_file" >&6
1928 # Check the compiler produces executables we can run. If not, either
1929 # the compiler is broken, or we cross compile.
1930 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1931 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1932 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1933 # If not cross compiling, check that we can run a simple program.
1934 if test "$cross_compiling" != yes; then
1935 if { ac_try='./$ac_file'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 if test "$cross_compiling" = maybe; then
1946 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&5
1949 echo "$as_me: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&2;}
1952 { (exit 1); exit 1; }; }
1956 echo "$as_me:$LINENO: result: yes" >&5
1957 echo "${ECHO_T}yes" >&6
1959 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1960 ac_clean_files=$ac_clean_files_save
1961 # Check the compiler produces executables we can run. If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1964 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1965 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1966 echo "${ECHO_T}$cross_compiling" >&6
1968 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1969 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1971 (eval $ac_link) 2>&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; then
1975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1977 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 for ac_file in conftest.exe conftest conftest.*; do
1980 test -f "$ac_file" || continue
1982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&2;}
1994 { (exit 1); exit 1; }; }
1997 rm -f conftest$ac_cv_exeext
1998 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1999 echo "${ECHO_T}$ac_cv_exeext" >&6
2001 rm -f conftest.$ac_ext
2002 EXEEXT=$ac_cv_exeext
2004 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2005 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2006 if test "${ac_cv_objext+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 cat >conftest.$ac_ext <<_ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2024 rm -f conftest.o conftest.obj
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; then
2030 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2038 echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&2;}
2045 { (exit 1); exit 1; }; }
2048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2050 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2051 echo "${ECHO_T}$ac_cv_objext" >&6
2052 OBJEXT=$ac_cv_objext
2054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 cat >conftest.$ac_ext <<_ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h. */
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>conftest.er1
2081 grep -v '^ *+' conftest.er1 >conftest.err
2083 cat conftest.err >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2109 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2111 GCC=`test $ac_compiler_gnu = yes && echo yes`
2112 ac_test_CFLAGS=${CFLAGS+set}
2113 ac_save_CFLAGS=$CFLAGS
2115 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_g+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>conftest.er1
2139 grep -v '^ *+' conftest.er1 >conftest.err
2141 cat conftest.err >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
2144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2165 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2166 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2167 if test "$ac_test_CFLAGS" = set; then
2168 CFLAGS=$ac_save_CFLAGS
2169 elif test $ac_cv_prog_cc_g = yes; then
2170 if test "$GCC" = yes; then
2176 if test "$GCC" = yes; then
2182 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2183 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2184 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 ac_cv_prog_cc_stdc=no
2189 cat >conftest.$ac_ext <<_ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2197 #include <sys/types.h>
2198 #include <sys/stat.h>
2199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2200 struct buf { int x; };
2201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2202 static char *e (p, i)
2208 static char *f (char * (*g) (char **, int), char **p, ...)
2213 s = g (p, va_arg (v,int));
2218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2219 function prototypes and stuff, but not '\xHH' hex character constants.
2220 These don't provoke an error unfortunately, instead are silently treated
2221 as 'x'. The following induces an error, until -std1 is added to get
2222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2223 array size at least. It's necessary to write '\x00'==0 to get something
2224 that's true only with -std1. */
2225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2227 int test (int i, double x);
2228 struct s1 {int (*f) (int a);};
2229 struct s2 {int (*f) (double a);};
2230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2241 # Don't try gcc -ansi; that turns off useful extensions and
2242 # breaks some systems' header files.
2243 # AIX -qlanglvl=ansi
2244 # Ultrix and OSF/1 -std1
2245 # HP-UX 10.20 and later -Ae
2246 # HP-UX older versions -Aa -D_HPUX_SOURCE
2247 # SVR4 -Xc -D__EXTENSIONS__
2248 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2250 CC="$ac_save_CC $ac_arg"
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2255 grep -v '^ *+' conftest.er1 >conftest.err
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 ac_cv_prog_cc_stdc=$ac_arg
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2279 rm -f conftest.err conftest.$ac_objext
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2286 case "x$ac_cv_prog_cc_stdc" in
2288 echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2291 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293 CC="$CC $ac_cv_prog_cc_stdc" ;;
2296 # Some people use a C++ compiler to compile C. Since we use `exit',
2297 # in C++ we need to declare it. In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 for ac_declaration in \
2328 'extern "C" void std::exit (int) throw (); using std::exit;' \
2329 'extern "C" void std::exit (int); using std::exit;' \
2330 'extern "C" void exit (int) throw ();' \
2331 'extern "C" void exit (int);' \
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1 >conftest.err
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 cat >conftest.$ac_ext <<_ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>conftest.er1
2398 grep -v '^ *+' conftest.er1 >conftest.err
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2424 if test -n "$ac_declaration"; then
2425 echo '#ifdef __cplusplus' >>confdefs.h
2426 echo $ac_declaration >>confdefs.h
2427 echo '#endif' >>confdefs.h
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443 ac_cpp='$CXXCPP $CPPFLAGS'
2444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2447 if test -n "$ac_tool_prefix"; then
2448 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2452 echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_CXX+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$CXX"; then
2458 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 if test -n "$CXX"; then
2478 echo "$as_me:$LINENO: result: $CXX" >&5
2479 echo "${ECHO_T}$CXX" >&6
2481 echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2485 test -n "$CXX" && break
2488 if test -z "$CXX"; then
2490 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2492 # Extract the first word of "$ac_prog", so it can be a program name with args.
2493 set dummy $ac_prog; ac_word=$2
2494 echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 if test -n "$ac_ct_CXX"; then
2500 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509 ac_cv_prog_ac_ct_CXX="$ac_prog"
2510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2519 if test -n "$ac_ct_CXX"; then
2520 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2521 echo "${ECHO_T}$ac_ct_CXX" >&6
2523 echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2527 test -n "$ac_ct_CXX" && break
2529 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2535 # Provide some information about the compiler.
2536 echo "$as_me:$LINENO:" \
2537 "checking for C++ compiler version" >&5
2538 ac_compiler=`set X $ac_compile; echo $2`
2539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2540 (eval $ac_compiler --version </dev/null >&5) 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2545 (eval $ac_compiler -v </dev/null >&5) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }
2549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2550 (eval $ac_compiler -V </dev/null >&5) 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 cat >conftest.$ac_ext <<_ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2612 GXX=`test $ac_compiler_gnu = yes && echo yes`
2613 ac_test_CXXFLAGS=${CXXFLAGS+set}
2614 ac_save_CXXFLAGS=$CXXFLAGS
2616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2618 if test "${ac_cv_prog_cxx_g+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.$ac_ext <<_ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2640 grep -v '^ *+' conftest.er1 >conftest.err
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 ac_cv_prog_cxx_g=yes
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2667 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2668 if test "$ac_test_CXXFLAGS" = set; then
2669 CXXFLAGS=$ac_save_CXXFLAGS
2670 elif test $ac_cv_prog_cxx_g = yes; then
2671 if test "$GXX" = yes; then
2677 if test "$GXX" = yes; then
2683 for ac_declaration in \
2685 'extern "C" void std::exit (int) throw (); using std::exit;' \
2686 'extern "C" void std::exit (int); using std::exit;' \
2687 'extern "C" void exit (int) throw ();' \
2688 'extern "C" void exit (int);' \
2691 cat >conftest.$ac_ext <<_ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>conftest.er1
2711 grep -v '^ *+' conftest.er1 >conftest.err
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 cat >conftest.$ac_ext <<_ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>conftest.er1
2755 grep -v '^ *+' conftest.er1 >conftest.err
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 if test -n "$ac_declaration"; then
2782 echo '#ifdef __cplusplus' >>confdefs.h
2783 echo $ac_declaration >>confdefs.h
2784 echo '#endif' >>confdefs.h
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2801 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2802 # On Suns, sometimes $CPP names a directory.
2803 if test -n "$CPP" && test -d "$CPP"; then
2806 if test -z "$CPP"; then
2807 if test "${ac_cv_prog_CPP+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 # Double quotes because CPP needs to be expanded
2811 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2814 for ac_c_preproc_warn_flag in '' yes
2816 # Use a header file that comes with gcc, so configuring glibc
2817 # with a fresh cross-compiler works.
2818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2819 # <limits.h> exists even on freestanding compilers.
2820 # On the NeXT, cc -E runs the code through the compiler's parser,
2821 # not just through cpp. "Syntax error" is here to catch this case.
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2829 # include <limits.h>
2831 # include <assert.h>
2835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2838 grep -v '^ *+' conftest.er1 >conftest.err
2840 cat conftest.err >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } >/dev/null; then
2843 if test -s conftest.err; then
2844 ac_cpp_err=$ac_c_preproc_warn_flag
2845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2852 if test -z "$ac_cpp_err"; then
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2858 # Broken: fails on valid input.
2861 rm -f conftest.err conftest.$ac_ext
2863 # OK, works on sane cases. Now check whether non-existent headers
2864 # can be detected and how.
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 #include <ac_nonexistent.h>
2873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } >/dev/null; then
2881 if test -s conftest.err; then
2882 ac_cpp_err=$ac_c_preproc_warn_flag
2883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2890 if test -z "$ac_cpp_err"; then
2891 # Broken: success on invalid input.
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 # Passes both tests.
2901 rm -f conftest.err conftest.$ac_ext
2904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2905 rm -f conftest.err conftest.$ac_ext
2906 if $ac_preproc_ok; then
2918 echo "$as_me:$LINENO: result: $CPP" >&5
2919 echo "${ECHO_T}$CPP" >&6
2921 for ac_c_preproc_warn_flag in '' yes
2923 # Use a header file that comes with gcc, so configuring glibc
2924 # with a fresh cross-compiler works.
2925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2926 # <limits.h> exists even on freestanding compilers.
2927 # On the NeXT, cc -E runs the code through the compiler's parser,
2928 # not just through cpp. "Syntax error" is here to catch this case.
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2936 # include <limits.h>
2938 # include <assert.h>
2942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } >/dev/null; then
2950 if test -s conftest.err; then
2951 ac_cpp_err=$ac_c_preproc_warn_flag
2952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959 if test -z "$ac_cpp_err"; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 # Broken: fails on valid input.
2968 rm -f conftest.err conftest.$ac_ext
2970 # OK, works on sane cases. Now check whether non-existent headers
2971 # can be detected and how.
2972 cat >conftest.$ac_ext <<_ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2978 #include <ac_nonexistent.h>
2980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2983 grep -v '^ *+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } >/dev/null; then
2988 if test -s conftest.err; then
2989 ac_cpp_err=$ac_c_preproc_warn_flag
2990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2997 if test -z "$ac_cpp_err"; then
2998 # Broken: success on invalid input.
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 # Passes both tests.
3008 rm -f conftest.err conftest.$ac_ext
3011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3012 rm -f conftest.err conftest.$ac_ext
3013 if $ac_preproc_ok; then
3016 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3017 See \`config.log' for more details." >&5
3018 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3019 See \`config.log' for more details." >&2;}
3020 { (exit 1); exit 1; }; }
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 echo "$as_me:$LINENO: checking for egrep" >&5
3031 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3032 if test "${ac_cv_prog_egrep+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3036 then ac_cv_prog_egrep='grep -E'
3037 else ac_cv_prog_egrep='egrep'
3040 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3041 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3042 EGREP=$ac_cv_prog_egrep
3046 echo "$as_me:$LINENO: checking for AIX" >&5
3047 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3048 cat >conftest.$ac_ext <<_ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3060 $EGREP "yes" >/dev/null 2>&1; then
3061 echo "$as_me:$LINENO: result: yes" >&5
3062 echo "${ECHO_T}yes" >&6
3063 cat >>confdefs.h <<\_ACEOF
3064 #define _ALL_SOURCE 1
3068 echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6
3075 if test $ac_cv_c_compiler_gnu = yes; then
3076 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3077 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3078 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 ac_pattern="Autoconf.*'x'"
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3092 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3093 ac_cv_prog_gcc_traditional=yes
3095 ac_cv_prog_gcc_traditional=no
3100 if test $ac_cv_prog_gcc_traditional = no; then
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3111 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3112 ac_cv_prog_gcc_traditional=yes
3118 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3119 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3120 if test $ac_cv_prog_gcc_traditional = yes; then
3121 CC="$CC -traditional"
3125 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3126 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
3127 if test "${ac_cv_prog_suncc+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 cat > conftest.c <<EOF
3135 if { ac_try='${CC-cc} -E conftest.c'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3141 ac_cv_prog_suncc=yes
3146 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3147 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3151 echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_prog_RANLIB+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if test -n "$RANLIB"; then
3157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 RANLIB=$ac_cv_prog_RANLIB
3176 if test -n "$RANLIB"; then
3177 echo "$as_me:$LINENO: result: $RANLIB" >&5
3178 echo "${ECHO_T}$RANLIB" >&6
3180 echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6
3185 if test -z "$ac_cv_prog_RANLIB"; then
3186 ac_ct_RANLIB=$RANLIB
3187 # Extract the first word of "ranlib", so it can be a program name with args.
3188 set dummy ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$ac_ct_RANLIB"; then
3195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_RANLIB="ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215 if test -n "$ac_ct_RANLIB"; then
3216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3223 RANLIB=$ac_ct_RANLIB
3225 RANLIB="$ac_cv_prog_RANLIB"
3229 # Check whether --enable-largefile or --disable-largefile was given.
3230 if test "${enable_largefile+set}" = set; then
3231 enableval="$enable_largefile"
3234 if test "$enable_largefile" != no; then
3236 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3237 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3238 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 ac_cv_sys_largefile_CC=no
3242 if test "$GCC" != yes; then
3245 # IRIX 6.2 and later do not support large files by default,
3246 # so use the C compiler's -n32 option if that helps.
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3253 #include <sys/types.h>
3254 /* Check that off_t can represent 2**63 - 1 correctly.
3255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3256 since some C++ compilers masquerading as C compilers
3257 incorrectly reject 9223372036854775807. */
3258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3260 && LARGE_OFF_T % 2147483647 == 1)
3270 rm -f conftest.$ac_objext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272 (eval $ac_compile) 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; } &&
3285 { ac_try='test -s conftest.$ac_objext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3297 rm -f conftest.err conftest.$ac_objext
3299 rm -f conftest.$ac_objext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3301 (eval $ac_compile) 2>conftest.er1
3303 grep -v '^ *+' conftest.er1 >conftest.err
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 ac_cv_sys_largefile_CC=' -n32'; break
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3326 rm -f conftest.err conftest.$ac_objext
3330 rm -f conftest.$ac_ext
3333 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3334 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3335 if test "$ac_cv_sys_largefile_CC" != no; then
3336 CC=$CC$ac_cv_sys_largefile_CC
3339 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3340 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3341 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 ac_cv_sys_file_offset_bits=no
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3352 #include <sys/types.h>
3353 /* Check that off_t can represent 2**63 - 1 correctly.
3354 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3355 since some C++ compilers masquerading as C compilers
3356 incorrectly reject 9223372036854775807. */
3357 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3358 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3359 && LARGE_OFF_T % 2147483647 == 1)
3369 rm -f conftest.$ac_objext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371 (eval $ac_compile) 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #define _FILE_OFFSET_BITS 64
3404 #include <sys/types.h>
3405 /* Check that off_t can represent 2**63 - 1 correctly.
3406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3407 since some C++ compilers masquerading as C compilers
3408 incorrectly reject 9223372036854775807. */
3409 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3411 && LARGE_OFF_T % 2147483647 == 1)
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_sys_file_offset_bits=64; break
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3452 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3453 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3454 if test "$ac_cv_sys_file_offset_bits" != no; then
3456 cat >>confdefs.h <<_ACEOF
3457 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3462 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3463 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3464 if test "${ac_cv_sys_large_files+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 ac_cv_sys_large_files=no
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 #include <sys/types.h>
3476 /* Check that off_t can represent 2**63 - 1 correctly.
3477 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3478 since some C++ compilers masquerading as C compilers
3479 incorrectly reject 9223372036854775807. */
3480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3482 && LARGE_OFF_T % 2147483647 == 1)
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #define _LARGE_FILES 1
3527 #include <sys/types.h>
3528 /* Check that off_t can represent 2**63 - 1 correctly.
3529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3530 since some C++ compilers masquerading as C compilers
3531 incorrectly reject 9223372036854775807. */
3532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3534 && LARGE_OFF_T % 2147483647 == 1)
3544 rm -f conftest.$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; } &&
3559 { ac_try='test -s conftest.$ac_objext'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; }; then
3565 ac_cv_sys_large_files=1; break
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3576 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3577 if test "$ac_cv_sys_large_files" != no; then
3579 cat >>confdefs.h <<_ACEOF
3580 #define _LARGE_FILES $ac_cv_sys_large_files
3588 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3589 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3590 if test "${ac_cv_c_bigendian+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 # See if sys/param.h defines the BYTE_ORDER macro.
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 #include <sys/types.h>
3601 #include <sys/param.h>
3606 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3618 grep -v '^ *+' conftest.er1 >conftest.err
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3635 # It does; now see whether it defined to BIG_ENDIAN or not.
3636 cat >conftest.$ac_ext <<_ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 #include <sys/types.h>
3643 #include <sys/param.h>
3648 #if BYTE_ORDER != BIG_ENDIAN
3656 rm -f conftest.$ac_objext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>conftest.er1
3660 grep -v '^ *+' conftest.er1 >conftest.err
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_c_bigendian=yes
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 ac_cv_c_bigendian=no
3684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 # It does not; compile a test program.
3690 if test "$cross_compiling" = yes; then
3691 # try to guess the endianness by grepping values into an object file
3692 ac_cv_c_bigendian=unknown
3693 cat >conftest.$ac_ext <<_ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3700 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3701 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3702 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3703 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3704 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3708 _ascii (); _ebcdic ();
3713 rm -f conftest.$ac_objext
3714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715 (eval $ac_compile) 2>conftest.er1
3717 grep -v '^ *+' conftest.er1 >conftest.err
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3735 ac_cv_c_bigendian=yes
3737 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3738 if test "$ac_cv_c_bigendian" = unknown; then
3739 ac_cv_c_bigendian=no
3741 # finding both strings is unlikely to happen, but who knows?
3742 ac_cv_c_bigendian=unknown
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3761 /* Are we little or big endian? From Harbison&Steele. */
3765 char c[sizeof (long)];
3768 exit (u.c[sizeof (long) - 1] == 1);
3771 rm -f conftest$ac_exeext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773 (eval $ac_link) 2>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3782 ac_cv_c_bigendian=no
3784 echo "$as_me: program exited with status $ac_status" >&5
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3789 ac_cv_c_bigendian=yes
3791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3796 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3797 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3798 case $ac_cv_c_bigendian in
3801 cat >>confdefs.h <<\_ACEOF
3802 #define WORDS_BIGENDIAN 1
3808 { { echo "$as_me:$LINENO: error: unknown endianness
3809 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3810 echo "$as_me: error: unknown endianness
3811 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3812 { (exit 1); exit 1; }; } ;;
3816 # Extract the first word of "gmake", so it can be a program name with args.
3817 set dummy gmake; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_prog_GMAKE+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 if test -n "$GMAKE"; then
3824 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_GMAKE="yes"
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3843 GMAKE=$ac_cv_prog_GMAKE
3844 if test -n "$GMAKE"; then
3845 echo "$as_me:$LINENO: result: $GMAKE" >&5
3846 echo "${ECHO_T}$GMAKE" >&6
3848 echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3852 if test $GMAKE = no; then
3853 # Extract the first word of "make", so it can be a program name with args.
3854 set dummy make; ac_word=$2
3855 echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_path_MAKE+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3883 MAKE=$ac_cv_path_MAKE
3885 if test -n "$MAKE"; then
3886 echo "$as_me:$LINENO: result: $MAKE" >&5
3887 echo "${ECHO_T}$MAKE" >&6
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3894 # Extract the first word of "gmake", so it can be a program name with args.
3895 set dummy gmake; ac_word=$2
3896 echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_path_MAKE+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3924 MAKE=$ac_cv_path_MAKE
3926 if test -n "$MAKE"; then
3927 echo "$as_me:$LINENO: result: $MAKE" >&5
3928 echo "${ECHO_T}$MAKE" >&6
3930 echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3935 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3936 if test -z "$makever"; then
3937 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3938 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3939 echo "$as_me: error: GNU Make is not installed. Please download and install it
3940 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3941 { (exit 1); exit 1; }; }
3944 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3945 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3946 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 ac_check_lib_save_LIBS=$LIBS
3951 cat >conftest.$ac_ext <<_ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3958 /* Override any gcc2 internal prototype to avoid an error. */
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3973 rm -f conftest.$ac_objext conftest$ac_exeext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3975 (eval $ac_link) 2>conftest.er1
3977 grep -v '^ *+' conftest.er1 >conftest.err
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } &&
3982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; } &&
3988 { ac_try='test -s conftest$ac_exeext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_cv_lib_ltdl_lt_dlinit=yes
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3999 ac_cv_lib_ltdl_lt_dlinit=no
4001 rm -f conftest.err conftest.$ac_objext \
4002 conftest$ac_exeext conftest.$ac_ext
4003 LIBS=$ac_check_lib_save_LIBS
4005 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4006 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
4007 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4008 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4010 if test x"$enable_ltdl_install" = xno; then
4011 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4012 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4014 enable_ltdl_install=yes
4019 if test x"$enable_ltdl_install" = x"yes"; then
4020 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4021 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4022 LTDLINCL='-I${top_srcdir}/''libltdl'
4025 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4031 # For backwards non-gettext consistent compatibility...
4035 # Check whether --enable-shared or --disable-shared was given.
4036 if test "${enable_shared+set}" = set; then
4037 enableval="$enable_shared"
4038 p=${PACKAGE-default}
4040 yes) enable_shared=yes ;;
4041 no) enable_shared=no ;;
4044 # Look at the argument we got. We use all the common list separators.
4045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4046 for pkg in $enableval; do
4048 if test "X$pkg" = "X$p"; then
4059 # Check whether --enable-static or --disable-static was given.
4060 if test "${enable_static+set}" = set; then
4061 enableval="$enable_static"
4062 p=${PACKAGE-default}
4064 yes) enable_static=yes ;;
4065 no) enable_static=no ;;
4068 # Look at the argument we got. We use all the common list separators.
4069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4070 for pkg in $enableval; do
4072 if test "X$pkg" = "X$p"; then
4083 # Check whether --enable-fast-install or --disable-fast-install was given.
4084 if test "${enable_fast_install+set}" = set; then
4085 enableval="$enable_fast_install"
4086 p=${PACKAGE-default}
4088 yes) enable_fast_install=yes ;;
4089 no) enable_fast_install=no ;;
4091 enable_fast_install=no
4092 # Look at the argument we got. We use all the common list separators.
4093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094 for pkg in $enableval; do
4096 if test "X$pkg" = "X$p"; then
4097 enable_fast_install=yes
4104 enable_fast_install=yes
4108 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4109 if test -f $ac_dir/install-sh; then
4111 ac_install_sh="$ac_aux_dir/install-sh -c"
4113 elif test -f $ac_dir/install.sh; then
4115 ac_install_sh="$ac_aux_dir/install.sh -c"
4117 elif test -f $ac_dir/shtool; then
4119 ac_install_sh="$ac_aux_dir/shtool install -c"
4123 if test -z "$ac_aux_dir"; then
4124 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4125 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4126 { (exit 1); exit 1; }; }
4128 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4129 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4130 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4132 # Make sure we can run config.sub.
4133 $ac_config_sub sun4 >/dev/null 2>&1 ||
4134 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4135 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4136 { (exit 1); exit 1; }; }
4138 echo "$as_me:$LINENO: checking build system type" >&5
4139 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4140 if test "${ac_cv_build+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 ac_cv_build_alias=$build_alias
4144 test -z "$ac_cv_build_alias" &&
4145 ac_cv_build_alias=`$ac_config_guess`
4146 test -z "$ac_cv_build_alias" &&
4147 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4148 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4149 { (exit 1); exit 1; }; }
4150 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4151 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4152 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4153 { (exit 1); exit 1; }; }
4156 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4157 echo "${ECHO_T}$ac_cv_build" >&6
4159 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4160 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4161 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4164 echo "$as_me:$LINENO: checking host system type" >&5
4165 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4166 if test "${ac_cv_host+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 ac_cv_host_alias=$host_alias
4170 test -z "$ac_cv_host_alias" &&
4171 ac_cv_host_alias=$ac_cv_build_alias
4172 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4173 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4174 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4175 { (exit 1); exit 1; }; }
4178 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4179 echo "${ECHO_T}$ac_cv_host" >&6
4181 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4182 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4183 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4186 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4187 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4188 if test "${lt_cv_path_SED+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 # Loop through the user's path and test for sed and gsed.
4192 # Then use that list of sed's as ones to test for truncation.
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir=.
4198 for lt_ac_prog in sed gsed; do
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4201 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4208 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4209 # along with /bin/sed that truncates output.
4210 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4211 test ! -f $lt_ac_sed && break
4212 cat /dev/null > conftest.in
4214 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4215 # Check for GNU sed and select it if it is found.
4216 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4217 lt_cv_path_SED=$lt_ac_sed
4221 cat conftest.in conftest.in >conftest.tmp
4222 mv conftest.tmp conftest.in
4223 cp conftest.in conftest.nl
4225 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4226 cmp -s conftest.out conftest.nl || break
4227 # 10000 chars as input seems more than enough
4228 test $lt_ac_count -gt 10 && break
4229 lt_ac_count=`expr $lt_ac_count + 1`
4230 if test $lt_ac_count -gt $lt_ac_max; then
4231 lt_ac_max=$lt_ac_count
4232 lt_cv_path_SED=$lt_ac_sed
4240 echo "$as_me:$LINENO: result: $SED" >&5
4241 echo "${ECHO_T}$SED" >&6
4244 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4245 if test "${with_gnu_ld+set}" = set; then
4246 withval="$with_gnu_ld"
4247 test "$withval" = no || with_gnu_ld=yes
4252 if test "$GCC" = yes; then
4253 # Check if gcc -print-prog-name=ld gives a path.
4254 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4255 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4258 # gcc leaves a trailing carriage return which upsets mingw
4259 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4261 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4264 # Accept absolute paths.
4266 re_direlt='/[^/][^/]*/\.\./'
4267 # Canonicalize the pathname of ld
4268 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4269 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4270 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4272 test -z "$LD" && LD="$ac_prog"
4275 # If it fails, then pretend we aren't using GCC.
4279 # If it is relative, then search for the first ld in PATH.
4283 elif test "$with_gnu_ld" = yes; then
4284 echo "$as_me:$LINENO: checking for GNU ld" >&5
4285 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4287 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4288 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4290 if test "${lt_cv_path_LD+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 if test -z "$LD"; then
4294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4295 for ac_dir in $PATH; do
4297 test -z "$ac_dir" && ac_dir=.
4298 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4299 lt_cv_path_LD="$ac_dir/$ac_prog"
4300 # Check to see if the program is GNU ld. I'd rather use --version,
4301 # but apparently some GNU ld's only accept -v.
4302 # Break only if it was the GNU/non-GNU ld that we prefer.
4303 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4304 *GNU* | *'with BFD'*)
4305 test "$with_gnu_ld" != no && break
4308 test "$with_gnu_ld" != yes && break
4315 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4320 if test -n "$LD"; then
4321 echo "$as_me:$LINENO: result: $LD" >&5
4322 echo "${ECHO_T}$LD" >&6
4324 echo "$as_me:$LINENO: result: no" >&5
4325 echo "${ECHO_T}no" >&6
4327 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4328 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4329 { (exit 1); exit 1; }; }
4330 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4331 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4332 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4336 case `$LD -v 2>&1 </dev/null` in
4337 *GNU* | *'with BFD'*)
4338 lt_cv_prog_gnu_ld=yes
4341 lt_cv_prog_gnu_ld=no
4345 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4346 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4347 with_gnu_ld=$lt_cv_prog_gnu_ld
4350 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4351 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4352 if test "${lt_cv_ld_reload_flag+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 lt_cv_ld_reload_flag='-r'
4357 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4358 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4359 reload_flag=$lt_cv_ld_reload_flag
4360 case $reload_flag in
4362 *) reload_flag=" $reload_flag" ;;
4364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4366 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4367 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4368 if test "${lt_cv_path_NM+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 if test -n "$NM"; then
4372 # Let the user override the test.
4375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4376 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4378 test -z "$ac_dir" && ac_dir=.
4379 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4380 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4381 # Check to see if the nm accepts a BSD-compat flag.
4382 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4383 # nm: unknown option "B" ignored
4384 # Tru64's nm complains that /dev/null is an invalid object file
4385 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4386 */dev/null* | *'Invalid file or object type'*)
4387 lt_cv_path_NM="$tmp_nm -B"
4391 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4393 lt_cv_path_NM="$tmp_nm -p"
4397 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4398 continue # so that we can try to find one that supports BSD flags
4405 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4408 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4409 echo "${ECHO_T}$lt_cv_path_NM" >&6
4412 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4413 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4415 if test "$LN_S" = "ln -s"; then
4416 echo "$as_me:$LINENO: result: yes" >&5
4417 echo "${ECHO_T}yes" >&6
4419 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4420 echo "${ECHO_T}no, using $LN_S" >&6
4423 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4424 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4425 if test "${lt_cv_deplibs_check_method+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 lt_cv_file_magic_cmd='$MAGIC_CMD'
4429 lt_cv_file_magic_test_file=
4430 lt_cv_deplibs_check_method='unknown'
4431 # Need to set the preceding variable on all platforms that support
4432 # interlibrary dependencies.
4433 # 'none' -- dependencies not supported.
4434 # `unknown' -- same as none, but documents that we really don't know.
4435 # 'pass_all' -- all dependencies passed with no checks.
4436 # 'test_compile' -- check by making test program.
4437 # 'file_magic [[regex]]' -- check by looking for files in library path
4438 # which responds to the $file_magic_cmd with a given extended regex.
4439 # If you have `file' or equivalent on your system and you're not sure
4440 # whether `pass_all' will *always* work, you probably want this one.
4444 lt_cv_deplibs_check_method=pass_all
4448 lt_cv_deplibs_check_method=pass_all
4452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4453 lt_cv_file_magic_cmd='/usr/bin/file -L'
4454 lt_cv_file_magic_test_file=/shlib/libc.so
4458 # func_win32_libid is a shell function defined in ltmain.sh
4459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4460 lt_cv_file_magic_cmd='func_win32_libid'
4464 # Base MSYS/MinGW do not provide the 'file' command needed by
4465 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4466 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4467 lt_cv_file_magic_cmd='$OBJDUMP -f'
4470 darwin* | rhapsody*)
4471 lt_cv_deplibs_check_method=pass_all
4474 freebsd* | kfreebsd*-gnu)
4475 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4478 # Not sure whether the presence of OpenBSD here was a mistake.
4479 # Let's accept both of them until this is cleared up.
4480 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4481 lt_cv_file_magic_cmd=/usr/bin/file
4482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4486 lt_cv_deplibs_check_method=pass_all
4491 lt_cv_deplibs_check_method=pass_all
4494 hpux10.20* | hpux11*)
4495 lt_cv_file_magic_cmd=/usr/bin/file
4498 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4499 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4502 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4503 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4507 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4512 irix5* | irix6* | nonstopux*)
4514 *-32|*"-32 ") libmagic=32-bit;;
4515 *-n32|*"-n32 ") libmagic=N32;;
4516 *-64|*"-64 ") libmagic=64-bit;;
4517 *) libmagic=never-match;;
4519 lt_cv_deplibs_check_method=pass_all
4522 # This must be Linux ELF.
4524 lt_cv_deplibs_check_method=pass_all
4527 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4528 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4537 lt_cv_file_magic_cmd=/usr/bin/file
4538 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4542 lt_cv_deplibs_check_method=unknown
4546 lt_cv_file_magic_cmd=/usr/bin/file
4547 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4548 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4551 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4555 osf3* | osf4* | osf5*)
4556 lt_cv_deplibs_check_method=pass_all
4560 lt_cv_deplibs_check_method=pass_all
4564 lt_cv_deplibs_check_method=pass_all
4567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4568 case $host_vendor in
4570 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]'
4571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4574 lt_cv_deplibs_check_method=pass_all
4577 lt_cv_file_magic_cmd='/bin/file'
4578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4581 lt_cv_file_magic_cmd='/bin/file'
4582 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4583 lt_cv_file_magic_test_file=/lib/libc.so
4586 lt_cv_deplibs_check_method=pass_all
4591 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4592 lt_cv_deplibs_check_method=pass_all
4597 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4598 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4599 file_magic_cmd=$lt_cv_file_magic_cmd
4600 deplibs_check_method=$lt_cv_deplibs_check_method
4601 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4606 # If no C compiler was specified, use CC.
4609 # Allow CC to be a program name with arguments.
4612 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4613 if test "${enable_libtool_lock+set}" = set; then
4614 enableval="$enable_libtool_lock"
4617 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4619 # Some flags need to be propagated to the compiler or linker for good
4623 # Find out which ABI we are using.
4624 echo 'int i;' > conftest.$ac_ext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; then
4630 case `/usr/bin/file conftest.$ac_objext` in
4642 # Find out which ABI we are using.
4643 echo '#line 4643 "configure"' > conftest.$ac_ext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; then
4649 if test "$lt_cv_prog_gnu_ld" = yes; then
4650 case `/usr/bin/file conftest.$ac_objext` in
4652 LD="${LD-ld} -melf32bsmip"
4655 LD="${LD-ld} -melf32bmipn32"
4658 LD="${LD-ld} -melf64bmip"
4662 case `/usr/bin/file conftest.$ac_objext` in
4678 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4679 # Find out which ABI we are using.
4680 echo 'int i;' > conftest.$ac_ext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; then
4686 case "`/usr/bin/file conftest.o`" in
4690 LD="${LD-ld} -m elf_i386"
4692 ppc64-*linux*|powerpc64-*linux*)
4693 LD="${LD-ld} -m elf32ppclinux"
4696 LD="${LD-ld} -m elf_s390"
4699 LD="${LD-ld} -m elf32_sparc"
4706 LD="${LD-ld} -m elf_x86_64"
4708 ppc*-*linux*|powerpc*-*linux*)
4709 LD="${LD-ld} -m elf64ppc"
4712 LD="${LD-ld} -m elf64_s390"
4715 LD="${LD-ld} -m elf64_sparc"
4725 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4726 SAVE_CFLAGS="$CFLAGS"
4727 CFLAGS="$CFLAGS -belf"
4728 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4729 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4730 if test "${lt_cv_cc_needs_belf+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739 cat >conftest.$ac_ext <<_ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756 (eval $ac_link) 2>conftest.er1
4758 grep -v '^ *+' conftest.er1 >conftest.err
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; } &&
4769 { ac_try='test -s conftest$ac_exeext'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 lt_cv_cc_needs_belf=yes
4777 echo "$as_me: failed program was:" >&5
4778 sed 's/^/| /' conftest.$ac_ext >&5
4780 lt_cv_cc_needs_belf=no
4782 rm -f conftest.err conftest.$ac_objext \
4783 conftest$ac_exeext conftest.$ac_ext
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4792 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4793 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4794 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4795 CFLAGS="$SAVE_CFLAGS"
4801 need_locks="$enable_libtool_lock"
4804 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4805 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4806 if test "${ac_cv_header_stdc+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_header_stdc=yes
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 ac_cv_header_stdc=no
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858 if test $ac_cv_header_stdc = yes; then
4859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "memchr" >/dev/null 2>&1; then
4873 ac_cv_header_stdc=no
4879 if test $ac_cv_header_stdc = yes; then
4880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881 cat >conftest.$ac_ext <<_ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "free" >/dev/null 2>&1; then
4894 ac_cv_header_stdc=no
4900 if test $ac_cv_header_stdc = yes; then
4901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902 if test "$cross_compiling" = yes; then
4905 cat >conftest.$ac_ext <<_ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4912 #if ((' ' & 0x0FF) == 0x020)
4913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4916 # define ISLOWER(c) \
4917 (('a' <= (c) && (c) <= 'i') \
4918 || ('j' <= (c) && (c) <= 'r') \
4919 || ('s' <= (c) && (c) <= 'z'))
4920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 for (i = 0; i < 256; i++)
4929 if (XOR (islower (i), ISLOWER (i))
4930 || toupper (i) != TOUPPER (i))
4935 rm -f conftest$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4948 echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4953 ac_cv_header_stdc=no
4955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4961 if test $ac_cv_header_stdc = yes; then
4963 cat >>confdefs.h <<\_ACEOF
4964 #define STDC_HEADERS 1
4969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4980 inttypes.h stdint.h unistd.h
4982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 echo "$as_me:$LINENO: checking for $ac_header" >&5
4984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 $ac_includes_default
4996 #include <$ac_header>
4998 rm -f conftest.$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1 >conftest.err
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; } &&
5013 { ac_try='test -s conftest.$ac_objext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 eval "$as_ac_Header=yes"
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5024 eval "$as_ac_Header=no"
5026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5031 cat >>confdefs.h <<_ACEOF
5032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5041 for ac_header in dlfcn.h
5043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5045 echo "$as_me:$LINENO: checking for $ac_header" >&5
5046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5053 # Is the header compilable?
5054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5056 cat >conftest.$ac_ext <<_ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5062 $ac_includes_default
5063 #include <$ac_header>
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_header_compiler=yes
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 ac_header_compiler=no
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5095 echo "${ECHO_T}$ac_header_compiler" >&6
5097 # Is the header present?
5098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 #include <$ac_header>
5108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5111 grep -v '^ *+' conftest.er1 >conftest.err
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } >/dev/null; then
5116 if test -s conftest.err; then
5117 ac_cpp_err=$ac_c_preproc_warn_flag
5118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5125 if test -z "$ac_cpp_err"; then
5126 ac_header_preproc=yes
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5131 ac_header_preproc=no
5133 rm -f conftest.err conftest.$ac_ext
5134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5135 echo "${ECHO_T}$ac_header_preproc" >&6
5137 # So? What about this header?
5138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5144 ac_header_preproc=yes
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5161 ## ------------------------------------------ ##
5162 ## Report this to the AC_PACKAGE_NAME lists. ##
5163 ## ------------------------------------------ ##
5166 sed "s/^/$as_me: WARNING: /" >&2
5169 echo "$as_me:$LINENO: checking for $ac_header" >&5
5170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 eval "$as_ac_Header=\$ac_header_preproc"
5176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5181 cat >>confdefs.h <<_ACEOF
5182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5190 ac_cpp='$CXXCPP $CPPFLAGS'
5191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5194 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5195 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5196 if test -z "$CXXCPP"; then
5197 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 # Double quotes because CXXCPP needs to be expanded
5201 for CXXCPP in "$CXX -E" "/lib/cpp"
5204 for ac_cxx_preproc_warn_flag in '' yes
5206 # Use a header file that comes with gcc, so configuring glibc
5207 # with a fresh cross-compiler works.
5208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209 # <limits.h> exists even on freestanding compilers.
5210 # On the NeXT, cc -E runs the code through the compiler's parser,
5211 # not just through cpp. "Syntax error" is here to catch this case.
5212 cat >conftest.$ac_ext <<_ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5219 # include <limits.h>
5221 # include <assert.h>
5225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5228 grep -v '^ *+' conftest.er1 >conftest.err
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } >/dev/null; then
5233 if test -s conftest.err; then
5234 ac_cpp_err=$ac_cxx_preproc_warn_flag
5235 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5242 if test -z "$ac_cpp_err"; then
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5248 # Broken: fails on valid input.
5251 rm -f conftest.err conftest.$ac_ext
5253 # OK, works on sane cases. Now check whether non-existent headers
5254 # can be detected and how.
5255 cat >conftest.$ac_ext <<_ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261 #include <ac_nonexistent.h>
5263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266 grep -v '^ *+' conftest.er1 >conftest.err
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } >/dev/null; then
5271 if test -s conftest.err; then
5272 ac_cpp_err=$ac_cxx_preproc_warn_flag
5273 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5280 if test -z "$ac_cpp_err"; then
5281 # Broken: success on invalid input.
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 # Passes both tests.
5291 rm -f conftest.err conftest.$ac_ext
5294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295 rm -f conftest.err conftest.$ac_ext
5296 if $ac_preproc_ok; then
5301 ac_cv_prog_CXXCPP=$CXXCPP
5304 CXXCPP=$ac_cv_prog_CXXCPP
5306 ac_cv_prog_CXXCPP=$CXXCPP
5308 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5309 echo "${ECHO_T}$CXXCPP" >&6
5311 for ac_cxx_preproc_warn_flag in '' yes
5313 # Use a header file that comes with gcc, so configuring glibc
5314 # with a fresh cross-compiler works.
5315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316 # <limits.h> exists even on freestanding compilers.
5317 # On the NeXT, cc -E runs the code through the compiler's parser,
5318 # not just through cpp. "Syntax error" is here to catch this case.
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5326 # include <limits.h>
5328 # include <assert.h>
5332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5335 grep -v '^ *+' conftest.er1 >conftest.err
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } >/dev/null; then
5340 if test -s conftest.err; then
5341 ac_cpp_err=$ac_cxx_preproc_warn_flag
5342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5349 if test -z "$ac_cpp_err"; then
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 # Broken: fails on valid input.
5358 rm -f conftest.err conftest.$ac_ext
5360 # OK, works on sane cases. Now check whether non-existent headers
5361 # can be detected and how.
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 #include <ac_nonexistent.h>
5370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5373 grep -v '^ *+' conftest.er1 >conftest.err
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } >/dev/null; then
5378 if test -s conftest.err; then
5379 ac_cpp_err=$ac_cxx_preproc_warn_flag
5380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5387 if test -z "$ac_cpp_err"; then
5388 # Broken: success on invalid input.
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 # Passes both tests.
5398 rm -f conftest.err conftest.$ac_ext
5401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5402 rm -f conftest.err conftest.$ac_ext
5403 if $ac_preproc_ok; then
5406 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5407 See \`config.log' for more details." >&5
5408 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5409 See \`config.log' for more details." >&2;}
5410 { (exit 1); exit 1; }; }
5414 ac_cpp='$CXXCPP $CPPFLAGS'
5415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5421 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5422 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5424 if test -n "$ac_tool_prefix"; then
5425 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5429 echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5431 if test "${ac_cv_prog_F77+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 if test -n "$F77"; then
5435 ac_cv_prog_F77="$F77" # Let the user override the test.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 if test -n "$F77"; then
5455 echo "$as_me:$LINENO: result: $F77" >&5
5456 echo "${ECHO_T}$F77" >&6
5458 echo "$as_me:$LINENO: result: no" >&5
5459 echo "${ECHO_T}no" >&6
5462 test -n "$F77" && break
5465 if test -z "$F77"; then
5467 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5469 # Extract the first word of "$ac_prog", so it can be a program name with args.
5470 set dummy $ac_prog; ac_word=$2
5471 echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5473 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 if test -n "$ac_ct_F77"; then
5477 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_ac_ct_F77="$ac_prog"
5487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5496 if test -n "$ac_ct_F77"; then
5497 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5498 echo "${ECHO_T}$ac_ct_F77" >&6
5500 echo "$as_me:$LINENO: result: no" >&5
5501 echo "${ECHO_T}no" >&6
5504 test -n "$ac_ct_F77" && break
5511 # Provide some information about the compiler.
5512 echo "$as_me:5512:" \
5513 "checking for Fortran 77 compiler version" >&5
5514 ac_compiler=`set X $ac_compile; echo $2`
5515 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5516 (eval $ac_compiler --version </dev/null >&5) 2>&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }
5520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5521 (eval $ac_compiler -v </dev/null >&5) 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }
5525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5526 (eval $ac_compiler -V </dev/null >&5) 2>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }
5532 # If we don't use `.F' as extension, the preprocessor is not run on the
5533 # input file. (Note that this only needs to work for GNU compilers.)
5536 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5537 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5538 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 cat >conftest.$ac_ext <<_ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>conftest.er1
5553 grep -v '^ *+' conftest.er1 >conftest.err
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } &&
5558 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; } &&
5564 { ac_try='test -s conftest.$ac_objext'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5578 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5581 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5582 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5584 ac_test_FFLAGS=${FFLAGS+set}
5585 ac_save_FFLAGS=$FFLAGS
5587 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5588 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5589 if test "${ac_cv_prog_f77_g+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 cat >conftest.$ac_ext <<_ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600 (eval $ac_compile) 2>conftest.er1
5602 grep -v '^ *+' conftest.er1 >conftest.err
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_cv_prog_f77_g=yes
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5630 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5631 if test "$ac_test_FFLAGS" = set; then
5632 FFLAGS=$ac_save_FFLAGS
5633 elif test $ac_cv_prog_f77_g = yes; then
5634 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5640 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5647 G77=`test $ac_compiler_gnu = yes && echo yes`
5649 ac_cpp='$CPP $CPPFLAGS'
5650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5658 # find the maximum length of command line arguments
5659 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5660 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5661 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 # On DJGPP, this test can blow up pretty badly due to problems in libc
5670 # (any single argument exceeding 2000 bytes causes a buffer overrun
5671 # during glob expansion). Even if it were fixed, the result of this
5672 # check would be larger than it should be.
5673 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5677 # Under GNU Hurd, this test is not required because there is
5678 # no limit to the length of command line arguments.
5679 # Libtool will interpret -1 as no limit whatsoever
5680 lt_cv_sys_max_cmd_len=-1;
5684 # On Win9x/ME, this test blows up -- it succeeds, but takes
5685 # about 5 minutes as the teststring grows exponentially.
5686 # Worse, since 9x/ME are not pre-emptively multitasking,
5687 # you end up with a "frozen" computer, even though with patience
5688 # the test eventually succeeds (with a max line length of 256k).
5689 # Instead, let's just punt: use the minimum linelength reported by
5690 # all of the supported platforms: 8192 (on NT/2K/XP).
5691 lt_cv_sys_max_cmd_len=8192;
5695 # On AmigaOS with pdksh, this test takes hours, literally.
5696 # So we just punt and use a minimum line length of 8192.
5697 lt_cv_sys_max_cmd_len=8192;
5701 # If test is not a shell built-in, we'll probably end up computing a
5702 # maximum length that is only half of the actual maximum length, but
5704 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5705 = "XX$teststring") >/dev/null 2>&1 &&
5706 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5707 lt_cv_sys_max_cmd_len=$new_result &&
5708 test $i != 17 # 1/2 MB should be enough
5711 teststring=$teststring$teststring
5714 # Add a significant safety factor because C++ compilers can tack on massive
5715 # amounts of additional arguments before passing them to the linker.
5716 # It appears as though 1/2 is a usable value.
5717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5723 if test -n $lt_cv_sys_max_cmd_len ; then
5724 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5725 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5727 echo "$as_me:$LINENO: result: none" >&5
5728 echo "${ECHO_T}none" >&6
5734 # Check for command to grab the raw symbol name followed by C symbol from nm.
5735 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5736 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5737 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 # These are sane defaults that work on at least a few old systems.
5742 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5744 # Character class describing NM global symbol codes.
5745 symcode='[BCDEGRST]'
5747 # Regexp to match symbols that can be accessed directly from C.
5748 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5750 # Transform the above into a raw symbol and a C symbol.
5751 symxfrm='\1 \2\3 \3'
5753 # Transform an extracted symbol line into a proper C declaration
5754 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5756 # Transform an extracted symbol line into symbol name and symbol address
5757 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5759 # Define system-specific variables.
5764 cygwin* | mingw* | pw32*)
5765 symcode='[ABCDGISTW]'
5767 hpux*) # Its linker distinguishes data from code symbols
5768 if test "$host_cpu" = ia64; then
5769 symcode='[ABCDEGRST]'
5771 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5772 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5775 symcode='[BCDEGRST]'
5778 symcode='[BCDEGQRST]'
5788 # Handle CRLF in mingw tool chain
5792 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5796 # If we're using GNU nm, then use its standard symbol codes.
5797 case `$NM -V 2>&1` in
5798 *GNU* | *'with BFD'*)
5799 symcode='[ABCDGIRSTW]' ;;
5802 # Try without a prefix undercore, then with it.
5803 for ac_symprfx in "" "_"; do
5805 # Write the raw and C identifiers.
5806 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5808 # Check to see that the pipe works correctly.
5812 cat > conftest.$ac_ext <<EOF
5817 void nm_test_func(){}
5821 int main(){nm_test_var='a';nm_test_func();return(0);}
5824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825 (eval $ac_compile) 2>&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; then
5829 # Now try to grab the symbols.
5831 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5832 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && test -s "$nlist"; then
5836 # Try sorting and uniquifying the output.
5837 if sort "$nlist" | uniq > "$nlist"T; then
5838 mv -f "$nlist"T "$nlist"
5843 # Make sure that we snagged all the symbols we need.
5844 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5845 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5846 cat <<EOF > conftest.$ac_ext
5852 # Now generate the symbol file.
5853 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5855 cat <<EOF >> conftest.$ac_ext
5856 #if defined (__STDC__) && __STDC__
5857 # define lt_ptr_t void *
5859 # define lt_ptr_t char *
5863 /* The mapping between symbol names and symbols. */
5868 lt_preloaded_symbols[] =
5871 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5872 cat <<\EOF >> conftest.$ac_ext
5880 # Now try linking the two files.
5881 mv conftest.$ac_objext conftstm.$ac_objext
5882 lt_save_LIBS="$LIBS"
5883 lt_save_CFLAGS="$CFLAGS"
5884 LIBS="conftstm.$ac_objext"
5885 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5887 (eval $ac_link) 2>&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5893 LIBS="$lt_save_LIBS"
5894 CFLAGS="$lt_save_CFLAGS"
5896 echo "cannot find nm_test_func in $nlist" >&5
5899 echo "cannot find nm_test_var in $nlist" >&5
5902 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5905 echo "$progname: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5908 rm -f conftest* conftst*
5910 # Do not use the global_symbol_pipe unless it works.
5911 if test "$pipe_works" = yes; then
5914 lt_cv_sys_global_symbol_pipe=
5920 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5921 lt_cv_sys_global_symbol_to_cdecl=
5923 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5924 echo "$as_me:$LINENO: result: failed" >&5
5925 echo "${ECHO_T}failed" >&6
5927 echo "$as_me:$LINENO: result: ok" >&5
5928 echo "${ECHO_T}ok" >&6
5931 echo "$as_me:$LINENO: checking for objdir" >&5
5932 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5933 if test "${lt_cv_objdir+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 rm -f .libs 2>/dev/null
5937 mkdir .libs 2>/dev/null
5938 if test -d .libs; then
5941 # MS-DOS does not allow filenames that begin with a dot.
5944 rmdir .libs 2>/dev/null
5946 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5947 echo "${ECHO_T}$lt_cv_objdir" >&6
5948 objdir=$lt_cv_objdir
5956 # AIX sometimes has problems with the GCC collect2 program. For some
5957 # reason, if we set the COLLECT_NAMES environment variable, the problems
5958 # vanish in a puff of smoke.
5959 if test "X${COLLECT_NAMES+set}" != Xset; then
5961 export COLLECT_NAMES
5966 # Sed substitution that helps us do robust quoting. It backslashifies
5967 # metacharacters that are still active within double-quoted strings.
5968 Xsed='sed -e s/^X//'
5969 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5971 # Same as above, but do not quote variable references.
5972 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5974 # Sed substitution to delay expansion of an escaped shell variable in a
5975 # double_quote_subst'ed string.
5976 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5978 # Sed substitution to avoid accidental globbing in evaled expressions
5979 no_glob_subst='s/\*/\\\*/g'
5985 default_ofile=libtool
5986 can_build_shared=yes
5988 # All known linkers require a `.a' archive for static linking (except M$VC,
5989 # which needs '.lib').
5991 ltmain="$ac_aux_dir/ltmain.sh"
5992 ofile="$default_ofile"
5993 with_gnu_ld="$lt_cv_prog_gnu_ld"
5995 if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}ar; ac_word=$2
5998 echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6000 if test "${ac_cv_prog_AR+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 if test -n "$AR"; then
6004 ac_cv_prog_AR="$AR" # Let the user override the test.
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_AR="${ac_tool_prefix}ar"
6014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 if test -n "$AR"; then
6024 echo "$as_me:$LINENO: result: $AR" >&5
6025 echo "${ECHO_T}$AR" >&6
6027 echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6
6032 if test -z "$ac_cv_prog_AR"; then
6034 # Extract the first word of "ar", so it can be a program name with args.
6035 set dummy ar; ac_word=$2
6036 echo "$as_me:$LINENO: checking for $ac_word" >&5
6037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6038 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 if test -n "$ac_ct_AR"; then
6042 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_AR="ar"
6052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6061 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6062 if test -n "$ac_ct_AR"; then
6063 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6064 echo "${ECHO_T}$ac_ct_AR" >&6
6066 echo "$as_me:$LINENO: result: no" >&5
6067 echo "${ECHO_T}no" >&6
6075 if test -n "$ac_tool_prefix"; then
6076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6078 echo "$as_me:$LINENO: checking for $ac_word" >&5
6079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6080 if test "${ac_cv_prog_RANLIB+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 if test -n "$RANLIB"; then
6084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 RANLIB=$ac_cv_prog_RANLIB
6103 if test -n "$RANLIB"; then
6104 echo "$as_me:$LINENO: result: $RANLIB" >&5
6105 echo "${ECHO_T}$RANLIB" >&6
6107 echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6
6112 if test -z "$ac_cv_prog_RANLIB"; then
6113 ac_ct_RANLIB=$RANLIB
6114 # Extract the first word of "ranlib", so it can be a program name with args.
6115 set dummy ranlib; ac_word=$2
6116 echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6118 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 if test -n "$ac_ct_RANLIB"; then
6122 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_ac_ct_RANLIB="ranlib"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6141 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6142 if test -n "$ac_ct_RANLIB"; then
6143 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6144 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6146 echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6
6150 RANLIB=$ac_ct_RANLIB
6152 RANLIB="$ac_cv_prog_RANLIB"
6155 if test -n "$ac_tool_prefix"; then
6156 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6157 set dummy ${ac_tool_prefix}strip; ac_word=$2
6158 echo "$as_me:$LINENO: checking for $ac_word" >&5
6159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6160 if test "${ac_cv_prog_STRIP+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 if test -n "$STRIP"; then
6164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6173 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 STRIP=$ac_cv_prog_STRIP
6183 if test -n "$STRIP"; then
6184 echo "$as_me:$LINENO: result: $STRIP" >&5
6185 echo "${ECHO_T}$STRIP" >&6
6187 echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6192 if test -z "$ac_cv_prog_STRIP"; then
6194 # Extract the first word of "strip", so it can be a program name with args.
6195 set dummy strip; ac_word=$2
6196 echo "$as_me:$LINENO: checking for $ac_word" >&5
6197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 if test -n "$ac_ct_STRIP"; then
6202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211 ac_cv_prog_ac_ct_STRIP="strip"
6212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6222 if test -n "$ac_ct_STRIP"; then
6223 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6224 echo "${ECHO_T}$ac_ct_STRIP" >&6
6226 echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6
6232 STRIP="$ac_cv_prog_STRIP"
6237 old_CFLAGS="$CFLAGS"
6239 # Set sane defaults for various variables
6240 test -z "$AR" && AR=ar
6241 test -z "$AR_FLAGS" && AR_FLAGS=cru
6242 test -z "$AS" && AS=as
6243 test -z "$CC" && CC=cc
6244 test -z "$LTCC" && LTCC=$CC
6245 test -z "$DLLTOOL" && DLLTOOL=dlltool
6246 test -z "$LD" && LD=ld
6247 test -z "$LN_S" && LN_S="ln -s"
6248 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6249 test -z "$NM" && NM=nm
6250 test -z "$SED" && SED=sed
6251 test -z "$OBJDUMP" && OBJDUMP=objdump
6252 test -z "$RANLIB" && RANLIB=:
6253 test -z "$STRIP" && STRIP=:
6254 test -z "$ac_objext" && ac_objext=o
6256 # Determine commands to create old-style static archives.
6257 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6258 old_postinstall_cmds='chmod 644 $oldlib'
6259 old_postuninstall_cmds=
6261 if test -n "$RANLIB"; then
6264 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6267 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6270 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6273 # Only perform the check for file, if the check method requires it
6274 case $deplibs_check_method in
6276 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6277 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6278 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6279 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6287 lt_save_MAGIC_CMD="$MAGIC_CMD"
6288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6290 for ac_dir in $ac_dummy; do
6292 test -z "$ac_dir" && ac_dir=.
6293 if test -f $ac_dir/${ac_tool_prefix}file; then
6294 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6295 if test -n "$file_magic_test_file"; then
6296 case $deplibs_check_method in
6298 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6301 $EGREP "$file_magic_regex" > /dev/null; then
6306 *** Warning: the command libtool uses to detect shared libraries,
6307 *** $file_magic_cmd, produces output that libtool cannot recognize.
6308 *** The result is that libtool may fail to recognize shared libraries
6309 *** as such. This will affect the creation of libtool libraries that
6310 *** depend on shared libraries, but programs linked with such libtool
6311 *** libraries will work regardless of this problem. Nevertheless, you
6312 *** may want to report the problem to your system manager and/or to
6313 *** bug-libtool@gnu.org
6323 MAGIC_CMD="$lt_save_MAGIC_CMD"
6328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6329 if test -n "$MAGIC_CMD"; then
6330 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6331 echo "${ECHO_T}$MAGIC_CMD" >&6
6333 echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6
6337 if test -z "$lt_cv_path_MAGIC_CMD"; then
6338 if test -n "$ac_tool_prefix"; then
6339 echo "$as_me:$LINENO: checking for file" >&5
6340 echo $ECHO_N "checking for file... $ECHO_C" >&6
6341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6349 lt_save_MAGIC_CMD="$MAGIC_CMD"
6350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6352 for ac_dir in $ac_dummy; do
6354 test -z "$ac_dir" && ac_dir=.
6355 if test -f $ac_dir/file; then
6356 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6357 if test -n "$file_magic_test_file"; then
6358 case $deplibs_check_method in
6360 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6363 $EGREP "$file_magic_regex" > /dev/null; then
6368 *** Warning: the command libtool uses to detect shared libraries,
6369 *** $file_magic_cmd, produces output that libtool cannot recognize.
6370 *** The result is that libtool may fail to recognize shared libraries
6371 *** as such. This will affect the creation of libtool libraries that
6372 *** depend on shared libraries, but programs linked with such libtool
6373 *** libraries will work regardless of this problem. Nevertheless, you
6374 *** may want to report the problem to your system manager and/or to
6375 *** bug-libtool@gnu.org
6385 MAGIC_CMD="$lt_save_MAGIC_CMD"
6390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6391 if test -n "$MAGIC_CMD"; then
6392 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6393 echo "${ECHO_T}$MAGIC_CMD" >&6
6395 echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6
6411 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6412 if test "${enable_libtool_lock+set}" = set; then
6413 enableval="$enable_libtool_lock"
6416 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6419 # Check whether --with-pic or --without-pic was given.
6420 if test "${with_pic+set}" = set; then
6426 test -z "$pic_mode" && pic_mode=default
6428 # Use C for the default configuration in the libtool script
6432 ac_cpp='$CPP $CPPFLAGS'
6433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438 # Source file extension for C test sources.
6441 # Object file extension for compiled C test sources.
6445 # Code to be used in simple compile tests
6446 lt_simple_compile_test_code="int some_variable = 0;\n"
6448 # Code to be used in simple link tests
6449 lt_simple_link_test_code='int main(){return(0);}\n'
6452 # If no C compiler was specified, use CC.
6455 # Allow CC to be a program name with arguments.
6460 # Check for any special shared library compilation flags.
6463 if test "$GCC" = no; then
6466 lt_prog_cc_shlib='-belf'
6470 if test -n "$lt_prog_cc_shlib"; then
6471 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6472 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6473 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6475 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6476 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6477 lt_cv_prog_cc_can_build_shared=no
6483 # Check to make sure the static flag actually works.
6485 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6486 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6487 if test "${lt_prog_compiler_static_works+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 lt_prog_compiler_static_works=no
6491 save_LDFLAGS="$LDFLAGS"
6492 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6493 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6495 # The compiler can only warn and ignore the option if not recognized
6496 # So say no if there are warnings
6497 if test -s conftest.err; then
6498 # Append any errors to the config.log.
6499 cat conftest.err 1>&5
6501 lt_prog_compiler_static_works=yes
6505 LDFLAGS="$save_LDFLAGS"
6508 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6509 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6511 if test x"$lt_prog_compiler_static_works" = xyes; then
6514 lt_prog_compiler_static=
6520 lt_prog_compiler_no_builtin_flag=
6522 if test "$GCC" = yes; then
6523 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6526 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6527 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 lt_cv_prog_compiler_rtti_exceptions=no
6532 ac_outfile=conftest.$ac_objext
6533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6534 lt_compiler_flag="-fno-rtti -fno-exceptions"
6535 # Insert the option either (1) after the last *FLAGS variable, or
6536 # (2) before a word containing "conftest.", or (3) at the end.
6537 # Note that $ac_compile itself does not contain backslashes and begins
6538 # with a dollar sign (not a hyphen), so the echo should work correctly.
6539 # The option is referenced via a variable to avoid confusing sed.
6540 lt_compile=`echo "$ac_compile" | $SED \
6541 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6543 -e 's:$: $lt_compiler_flag:'`
6544 (eval echo "\"\$as_me:6544: $lt_compile\"" >&5)
6545 (eval "$lt_compile" 2>conftest.err)
6547 cat conftest.err >&5
6548 echo "$as_me:6548: \$? = $ac_status" >&5
6549 if (exit $ac_status) && test -s "$ac_outfile"; then
6550 # The compiler can only warn and ignore the option if not recognized
6551 # So say no if there are warnings
6552 if test ! -s conftest.err; then
6553 lt_cv_prog_compiler_rtti_exceptions=yes
6559 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6560 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6563 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6570 lt_prog_compiler_wl=
6571 lt_prog_compiler_pic=
6572 lt_prog_compiler_static=
6574 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6575 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6577 if test "$GCC" = yes; then
6578 lt_prog_compiler_wl='-Wl,'
6579 lt_prog_compiler_static='-static'
6583 # All AIX code is PIC.
6584 if test "$host_cpu" = ia64; then
6585 # AIX 5 now supports IA64 processor
6586 lt_prog_compiler_static='-Bstatic'
6591 # FIXME: we need at least 68020 code to build shared libraries, but
6592 # adding the `-m68020' flag to GCC prevents building anything better,
6594 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6597 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6598 # PIC is the default for these OSes.
6601 mingw* | pw32* | os2*)
6602 # This hack is so that the source file can tell whether it is being
6603 # built for inclusion in a dll (and should export symbols for example).
6604 lt_prog_compiler_pic='-DDLL_EXPORT'
6607 darwin* | rhapsody*)
6608 # PIC is the default on this platform
6609 # Common symbols not allowed in MH_DYLIB files
6610 lt_prog_compiler_pic='-fno-common'
6614 # Just because we use GCC doesn't mean we suddenly get shared libraries
6615 # on systems that don't support them.
6616 lt_prog_compiler_can_build_shared=no
6621 if test -d /usr/nec; then
6622 lt_prog_compiler_pic=-Kconform_pic
6627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6634 lt_prog_compiler_pic='-fPIC'
6640 lt_prog_compiler_pic='-fPIC'
6644 # PORTME Check for flag to pass linker flags through the system compiler.
6647 lt_prog_compiler_wl='-Wl,'
6648 if test "$host_cpu" = ia64; then
6649 # AIX 5 now supports IA64 processor
6650 lt_prog_compiler_static='-Bstatic'
6652 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6656 mingw* | pw32* | os2*)
6657 # This hack is so that the source file can tell whether it is being
6658 # built for inclusion in a dll (and should export symbols for example).
6659 lt_prog_compiler_pic='-DDLL_EXPORT'
6662 hpux9* | hpux10* | hpux11*)
6663 lt_prog_compiler_wl='-Wl,'
6664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6671 lt_prog_compiler_pic='+Z'
6674 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6675 lt_prog_compiler_static='${wl}-a ${wl}archive'
6678 irix5* | irix6* | nonstopux*)
6679 lt_prog_compiler_wl='-Wl,'
6680 # PIC (with -KPIC) is the default.
6681 lt_prog_compiler_static='-non_shared'
6685 lt_prog_compiler_pic='-KPIC'
6686 lt_prog_compiler_static='-Bstatic'
6692 lt_prog_compiler_wl='-Wl,'
6693 lt_prog_compiler_pic='-KPIC'
6694 lt_prog_compiler_static='-static'
6697 lt_prog_compiler_wl='-Wl,'
6698 # All Alpha code is PIC.
6699 lt_prog_compiler_static='-non_shared'
6704 osf3* | osf4* | osf5*)
6705 lt_prog_compiler_wl='-Wl,'
6706 # All OSF/1 code is PIC.
6707 lt_prog_compiler_static='-non_shared'
6711 lt_prog_compiler_pic='-Kpic'
6712 lt_prog_compiler_static='-dn'
6716 lt_prog_compiler_wl='-Wl,'
6717 lt_prog_compiler_pic='-KPIC'
6718 lt_prog_compiler_static='-Bstatic'
6722 lt_prog_compiler_wl='-Qoption ld '
6723 lt_prog_compiler_pic='-PIC'
6724 lt_prog_compiler_static='-Bstatic'
6727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6728 lt_prog_compiler_wl='-Wl,'
6729 lt_prog_compiler_pic='-KPIC'
6730 lt_prog_compiler_static='-Bstatic'
6734 if test -d /usr/nec ;then
6735 lt_prog_compiler_pic='-Kconform_pic'
6736 lt_prog_compiler_static='-Bstatic'
6741 lt_prog_compiler_pic='-pic'
6742 lt_prog_compiler_static='-Bstatic'
6746 lt_prog_compiler_can_build_shared=no
6751 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6752 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6755 # Check to make sure the PIC flag actually works.
6757 if test -n "$lt_prog_compiler_pic"; then
6759 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6760 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6761 if test "${lt_prog_compiler_pic_works+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 lt_prog_compiler_pic_works=no
6765 ac_outfile=conftest.$ac_objext
6766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6767 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6768 # Insert the option either (1) after the last *FLAGS variable, or
6769 # (2) before a word containing "conftest.", or (3) at the end.
6770 # Note that $ac_compile itself does not contain backslashes and begins
6771 # with a dollar sign (not a hyphen), so the echo should work correctly.
6772 # The option is referenced via a variable to avoid confusing sed.
6773 lt_compile=`echo "$ac_compile" | $SED \
6774 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6776 -e 's:$: $lt_compiler_flag:'`
6777 (eval echo "\"\$as_me:6777: $lt_compile\"" >&5)
6778 (eval "$lt_compile" 2>conftest.err)
6780 cat conftest.err >&5
6781 echo "$as_me:6781: \$? = $ac_status" >&5
6782 if (exit $ac_status) && test -s "$ac_outfile"; then
6783 # The compiler can only warn and ignore the option if not recognized
6784 # So say no if there are warnings
6785 if test ! -s conftest.err; then
6786 lt_prog_compiler_pic_works=yes
6792 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6793 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6795 if test x"$lt_prog_compiler_pic_works" = xyes; then
6796 case $lt_prog_compiler_pic in
6798 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6801 lt_prog_compiler_pic=
6802 lt_prog_compiler_can_build_shared=no
6807 # For platforms which do not support PIC, -DPIC is meaningless:
6809 lt_prog_compiler_pic=
6812 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6816 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6818 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 lt_cv_prog_compiler_c_o=no
6822 $rm -r conftest 2>/dev/null
6826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6828 lt_compiler_flag="-o out/conftest2.$ac_objext"
6829 # Insert the option either (1) after the last *FLAGS variable, or
6830 # (2) before a word containing "conftest.", or (3) at the end.
6831 # Note that $ac_compile itself does not contain backslashes and begins
6832 # with a dollar sign (not a hyphen), so the echo should work correctly.
6833 lt_compile=`echo "$ac_compile" | $SED \
6834 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6836 -e 's:$: $lt_compiler_flag:'`
6837 (eval echo "\"\$as_me:6837: $lt_compile\"" >&5)
6838 (eval "$lt_compile" 2>out/conftest.err)
6840 cat out/conftest.err >&5
6841 echo "$as_me:6841: \$? = $ac_status" >&5
6842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6844 # The compiler can only warn and ignore the option if not recognized
6845 # So say no if there are warnings
6846 if test ! -s out/conftest.err; then
6847 lt_cv_prog_compiler_c_o=yes
6852 # SGI C++ compiler will create directory out/ii_files/ for
6853 # template instantiation
6854 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6855 $rm out/* && rmdir out
6861 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6865 hard_links="nottested"
6866 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6867 # do not overwrite the value of need_locks provided by the user
6868 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6874 ln conftest.a conftest.b 2>&5 || hard_links=no
6875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6876 echo "$as_me:$LINENO: result: $hard_links" >&5
6877 echo "${ECHO_T}$hard_links" >&6
6878 if test "$hard_links" = no; then
6879 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6887 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6891 allow_undefined_flag=
6892 enable_shared_with_static_runtimes=no
6894 archive_expsym_cmds=
6895 old_archive_From_new_cmds=
6896 old_archive_from_expsyms_cmds=
6897 export_dynamic_flag_spec=
6898 whole_archive_flag_spec=
6899 thread_safe_flag_spec=
6900 hardcode_libdir_flag_spec=
6901 hardcode_libdir_flag_spec_ld=
6902 hardcode_libdir_separator=
6905 hardcode_shlibpath_var=unsupported
6906 link_all_deplibs=unknown
6907 hardcode_automatic=no
6910 always_export_symbols=no
6911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6912 # include_expsyms should be a list of space-separated symbols to be *always*
6913 # included in the symbol list
6915 # exclude_expsyms can be an extended regexp of symbols to exclude
6916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6918 # as well as any symbol that contains `d'.
6919 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6921 # platforms (ab)use it in PIC code, but their linkers get confused if
6922 # the symbol is explicitly referenced. Since portable code cannot
6923 # rely on this symbol name, it's probably fine to never include it in
6924 # preloaded symbol tables.
6925 extract_expsyms_cmds=
6928 cygwin* | mingw* | pw32*)
6929 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6930 # When not using gcc, we currently assume that we are using
6931 # Microsoft Visual C++.
6932 if test "$GCC" != yes; then
6942 if test "$with_gnu_ld" = yes; then
6943 # If archive_cmds runs LD, not CC, wlarc should be empty
6946 # See if GNU ld supports shared libraries.
6948 aix3* | aix4* | aix5*)
6949 # On AIX/PPC, the GNU linker is very broken
6950 if test "$host_cpu" != ia64; then
6954 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6955 *** to be unable to reliably create shared libraries on AIX.
6956 *** Therefore, libtool is disabling shared libraries support. If you
6957 *** really care for shared libraries, you may want to modify your PATH
6958 *** so that a non-GNU linker is found, and then restart.
6965 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)'
6966 hardcode_libdir_flag_spec='-L$libdir'
6967 hardcode_minus_L=yes
6969 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6970 # that the semantics of dynamic libraries on AmigaOS, at least up
6971 # to version 4, is to share data among multiple programs linked
6972 # with the same dynamic library. Since this doesn't match the
6973 # behavior of shared libraries on other platforms, we can't use
6979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6980 allow_undefined_flag=unsupported
6981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6982 # support --undefined. This deserves some investigation. FIXME
6983 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6989 cygwin* | mingw* | pw32*)
6990 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6991 # as there is no search path for DLLs.
6992 hardcode_libdir_flag_spec='-L$libdir'
6993 allow_undefined_flag=unsupported
6994 always_export_symbols=no
6995 enable_shared_with_static_runtimes=yes
6996 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6998 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7000 # If the export-symbols file already is a .def file (1st line
7001 # is EXPORTS), use it as is; otherwise, prepend...
7002 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7003 cp $export_symbols $output_objdir/$soname.def;
7005 echo EXPORTS > $output_objdir/$soname.def;
7006 cat $export_symbols >> $output_objdir/$soname.def;
7008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7014 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7016 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7025 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7030 *** create shared libraries on Solaris systems. Therefore, libtool
7031 *** is disabling shared libraries support. We urge you to upgrade GNU
7032 *** binutils to release 2.9.1 or newer. Another option is to modify
7033 *** your PATH or compiler configuration so that the native linker is
7034 *** used, and then restart.
7037 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7046 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7049 hardcode_shlibpath_var=no
7053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7054 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7055 archive_cmds="$tmp_archive_cmds"
7056 supports_anon_versioning=no
7057 case `$LD -v 2>/dev/null` in
7058 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7059 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7060 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7061 *\ 2.11.*) ;; # other 2.11 versions
7062 *) supports_anon_versioning=yes ;;
7064 if test $supports_anon_versioning = yes; then
7065 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7067 $echo "local: *; };" >> $output_objdir/$libname.ver~
7068 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7070 archive_expsym_cmds="$tmp_archive_cmds"
7079 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7088 if test "$ld_shlibs" = yes; then
7089 runpath_var=LD_RUN_PATH
7090 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7091 export_dynamic_flag_spec='${wl}--export-dynamic'
7092 # ancient GNU ld didn't support --whole-archive et. al.
7093 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7094 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7096 whole_archive_flag_spec=
7100 # PORTME fill in a description of your system's linker (not GNU ld)
7103 allow_undefined_flag=unsupported
7104 always_export_symbols=yes
7105 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'
7106 # Note: this linker hardcodes the directories in LIBPATH if there
7107 # are no directories specified by -L.
7108 hardcode_minus_L=yes
7109 if test "$GCC" = yes && test -z "$link_static_flag"; then
7110 # Neither direct hardcoding nor static linking is supported with a
7112 hardcode_direct=unsupported
7117 if test "$host_cpu" = ia64; then
7118 # On IA64, the linker does run time linking by default, so we don't
7119 # have to do anything special.
7120 aix_use_runtimelinking=no
7121 exp_sym_flag='-Bexport'
7124 # If we're using GNU nm, then we don't want the "-C" option.
7125 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7126 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7127 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7129 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7131 aix_use_runtimelinking=no
7133 # Test if we are trying to use run time linking or normal
7134 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7135 # need to do runtime linking.
7136 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7137 for ld_flag in $LDFLAGS; do
7138 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7139 aix_use_runtimelinking=yes
7145 exp_sym_flag='-bexport'
7146 no_entry_flag='-bnoentry'
7149 # When large executables or shared objects are built, AIX ld can
7150 # have problems creating the table of contents. If linking a library
7151 # or program results in "error TOC overflow" add -mminimal-toc to
7152 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7153 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7157 hardcode_libdir_separator=':'
7158 link_all_deplibs=yes
7160 if test "$GCC" = yes; then
7161 case $host_os in aix4.012|aix4.012.*)
7162 # We only want to do this on AIX 4.2 and lower, the check
7163 # below for broken collect2 doesn't work under 4.3+
7164 collect2name=`${CC} -print-prog-name=collect2`
7165 if test -f "$collect2name" && \
7166 strings "$collect2name" | grep resolve_lib_name >/dev/null
7168 # We have reworked collect2
7171 # We have old collect2
7172 hardcode_direct=unsupported
7173 # It fails to find uninstalled libraries when the uninstalled
7174 # path is not listed in the libpath. Setting hardcode_minus_L
7175 # to unsupported forces relinking
7176 hardcode_minus_L=yes
7177 hardcode_libdir_flag_spec='-L$libdir'
7178 hardcode_libdir_separator=
7181 shared_flag='-shared'
7184 if test "$host_cpu" = ia64; then
7185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7186 # chokes on -Wl,-G. The following line is correct:
7189 if test "$aix_use_runtimelinking" = yes; then
7190 shared_flag='${wl}-G'
7192 shared_flag='${wl}-bM:SRE'
7197 # It seems that -bexpall does not export symbols beginning with
7198 # underscore (_), so it is better to generate a list of symbols to export.
7199 always_export_symbols=yes
7200 if test "$aix_use_runtimelinking" = yes; then
7201 # Warning - without using the other runtime loading flags (-brtl),
7202 # -berok will link without error, but may produce a broken library.
7203 allow_undefined_flag='-berok'
7204 # Determine the default libpath from the value encoded in an empty executable.
7205 cat >conftest.$ac_ext <<_ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7220 rm -f conftest.$ac_objext conftest$ac_exeext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7222 (eval $ac_link) 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; } &&
7235 { ac_try='test -s conftest$ac_exeext'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; }; then
7242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7244 # Check for a 64-bit object if we didn't find anything.
7245 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7252 rm -f conftest.err conftest.$ac_objext \
7253 conftest$ac_exeext conftest.$ac_ext
7254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7257 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"
7259 if test "$host_cpu" = ia64; then
7260 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7261 allow_undefined_flag="-z nodefs"
7262 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7264 # Determine the default libpath from the value encoded in an empty executable.
7265 cat >conftest.$ac_ext <<_ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282 (eval $ac_link) 2>conftest.er1
7284 grep -v '^ *+' conftest.er1 >conftest.err
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest$ac_exeext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7304 # Check for a 64-bit object if we didn't find anything.
7305 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7312 rm -f conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7317 # Warning - without using the other run time loading flags,
7318 # -berok will link without error, but may produce a broken library.
7319 no_undefined_flag=' ${wl}-bernotok'
7320 allow_undefined_flag=' ${wl}-berok'
7321 # -bexpall does not export symbols beginning with underscore (_)
7322 always_export_symbols=yes
7323 # Exported symbols can be pulled into shared objects from archives
7324 whole_archive_flag_spec=' '
7325 archive_cmds_need_lc=yes
7326 # This is similar to how AIX traditionally builds it's shared libraries.
7327 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7333 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)'
7334 hardcode_libdir_flag_spec='-L$libdir'
7335 hardcode_minus_L=yes
7336 # see comment about different semantics on the GNU ld section
7341 export_dynamic_flag_spec=-rdynamic
7344 cygwin* | mingw* | pw32*)
7345 # When not using gcc, we currently assume that we are using
7346 # Microsoft Visual C++.
7347 # hardcode_libdir_flag_spec is actually meaningless, as there is
7348 # no search path for DLLs.
7349 hardcode_libdir_flag_spec=' '
7350 allow_undefined_flag=unsupported
7351 # Tell ltmain to make .lib files, not .a files.
7353 # Tell ltmain to make .dll files, not .so files.
7355 # FIXME: Setting linknames here is a bad hack.
7356 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7357 # The linker will automatically build a .lib file if we build a DLL.
7358 old_archive_From_new_cmds='true'
7359 # FIXME: Should let the user specify the lib program.
7360 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7361 fix_srcfile_path='`cygpath -w "$srcfile"`'
7362 enable_shared_with_static_runtimes=yes
7365 darwin* | rhapsody*)
7366 if test "$GXX" = yes ; then
7367 archive_cmds_need_lc=no
7369 rhapsody* | darwin1.[012])
7370 allow_undefined_flag='-undefined suppress'
7373 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7374 allow_undefined_flag='-flat_namespace -undefined suppress'
7376 case ${MACOSX_DEPLOYMENT_TARGET} in
7378 allow_undefined_flag='-flat_namespace -undefined suppress'
7381 allow_undefined_flag='-undefined dynamic_lookup'
7387 lt_int_apple_cc_single_mod=no
7388 output_verbose_link_cmd='echo'
7389 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7390 lt_int_apple_cc_single_mod=yes
7392 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7393 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7395 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7397 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7398 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7399 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7400 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7402 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7404 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7406 hardcode_automatic=yes
7407 hardcode_shlibpath_var=unsupported
7408 whole_archive_flag_spec='-all_load $convenience'
7409 link_all_deplibs=yes
7416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7417 hardcode_libdir_flag_spec='-L$libdir'
7418 hardcode_shlibpath_var=no
7425 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7426 # support. Future versions do this automatically, but an explicit c++rt0.o
7427 # does not break anything, and helps significantly (at the cost of a little
7430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7431 hardcode_libdir_flag_spec='-R$libdir'
7433 hardcode_shlibpath_var=no
7436 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7440 hardcode_minus_L=yes
7441 hardcode_shlibpath_var=no
7444 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7445 freebsd* | kfreebsd*-gnu)
7446 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7447 hardcode_libdir_flag_spec='-R$libdir'
7449 hardcode_shlibpath_var=no
7453 if test "$GCC" = yes; then
7454 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7456 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'
7458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7459 hardcode_libdir_separator=:
7462 # hardcode_minus_L: Not really in the search PATH,
7463 # but as the default location of the library.
7464 hardcode_minus_L=yes
7465 export_dynamic_flag_spec='${wl}-E'
7469 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7472 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7475 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7481 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7488 if test "$with_gnu_ld" = no; then
7491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7492 hardcode_libdir_flag_spec_ld='+b $libdir'
7493 hardcode_libdir_separator=:
7495 hardcode_shlibpath_var=no
7498 hardcode_libdir_flag_spec='-L$libdir'
7500 hardcode_shlibpath_var=no
7502 # hardcode_minus_L: Not really in the search PATH,
7503 # but as the default location of the library.
7504 hardcode_minus_L=yes
7507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7508 hardcode_libdir_separator=:
7510 export_dynamic_flag_spec='${wl}-E'
7512 # hardcode_minus_L: Not really in the search PATH,
7513 # but as the default location of the library.
7514 hardcode_minus_L=yes
7520 irix5* | irix6* | nonstopux*)
7521 if test "$GCC" = yes; then
7522 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'
7524 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'
7525 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7528 hardcode_libdir_separator=:
7529 link_all_deplibs=yes
7532 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7536 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7538 hardcode_libdir_flag_spec='-R$libdir'
7540 hardcode_shlibpath_var=no
7544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7547 hardcode_libdir_separator=:
7548 hardcode_shlibpath_var=no
7553 hardcode_shlibpath_var=no
7554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7557 export_dynamic_flag_spec='${wl}-E'
7560 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7562 hardcode_libdir_flag_spec='-R$libdir'
7565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7573 hardcode_libdir_flag_spec='-L$libdir'
7574 hardcode_minus_L=yes
7575 allow_undefined_flag=unsupported
7576 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'
7577 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7581 if test "$GCC" = yes; then
7582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7583 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'
7585 allow_undefined_flag=' -expect_unresolved \*'
7586 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'
7588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7589 hardcode_libdir_separator=:
7592 osf4* | osf5*) # as osf3* with the addition of -msym flag
7593 if test "$GCC" = yes; then
7594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7595 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'
7596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7598 allow_undefined_flag=' -expect_unresolved \*'
7599 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'
7600 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7601 $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'
7603 # Both c and cxx compiler support -rpath directly
7604 hardcode_libdir_flag_spec='-rpath $libdir'
7606 hardcode_libdir_separator=:
7610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7611 hardcode_shlibpath_var=no
7612 export_dynamic_flag_spec='${wl}-Bexport'
7613 runpath_var=LD_RUN_PATH
7614 hardcode_runpath_var=yes
7618 no_undefined_flag=' -z text'
7619 if test "$GCC" = yes; then
7620 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7621 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7622 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7624 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7625 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7626 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7628 hardcode_libdir_flag_spec='-R$libdir'
7629 hardcode_shlibpath_var=no
7631 solaris2.[0-5] | solaris2.[0-5].*) ;;
7632 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7633 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7635 link_all_deplibs=yes
7639 if test "x$host_vendor" = xsequent; then
7640 # Use $CC to link under sequent, because it throws in some extra .o
7641 # files that make .init and .fini sections work.
7642 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7644 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7646 hardcode_libdir_flag_spec='-L$libdir'
7648 hardcode_minus_L=yes
7649 hardcode_shlibpath_var=no
7653 case $host_vendor in
7655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7656 hardcode_direct=yes # is this really true???
7659 ## LD is ld it makes a PLAMLIB
7660 ## CC just makes a GrossModule.
7661 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7662 reload_cmds='$CC -r -o $output$reload_objs'
7666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7667 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7670 runpath_var='LD_RUN_PATH'
7671 hardcode_shlibpath_var=no
7675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7676 hardcode_shlibpath_var=no
7677 export_dynamic_flag_spec='-Bexport'
7681 if test -d /usr/nec; then
7682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7683 hardcode_shlibpath_var=no
7684 runpath_var=LD_RUN_PATH
7685 hardcode_runpath_var=yes
7691 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7694 hardcode_shlibpath_var=no
7695 hardcode_runpath_var=yes
7696 runpath_var=LD_RUN_PATH
7699 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7700 no_undefined_flag='${wl}-z ${wl}text'
7701 if test "$GCC" = yes; then
7702 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7704 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7706 runpath_var='LD_RUN_PATH'
7707 hardcode_shlibpath_var=no
7711 no_undefined_flag=' -z text'
7712 # $CC -shared without GNU ld will not create a library from C++
7713 # object files and a static libstdc++, better avoid it by now
7714 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7715 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7716 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7717 hardcode_libdir_flag_spec=
7718 hardcode_shlibpath_var=no
7719 runpath_var='LD_RUN_PATH'
7723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7724 hardcode_libdir_flag_spec='-L$libdir'
7725 hardcode_shlibpath_var=no
7734 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7735 echo "${ECHO_T}$ld_shlibs" >&6
7736 test "$ld_shlibs" = no && can_build_shared=no
7738 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7739 if test "$GCC" = yes; then
7740 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7744 # Do we need to explicitly link libc?
7746 case "x$archive_cmds_need_lc" in
7748 # Assume -lc should be added
7749 archive_cmds_need_lc=yes
7751 if test "$enable_shared" = yes && test "$GCC" = yes; then
7752 case $archive_cmds in
7754 # FIXME: we may have to deal with multi-command sequences.
7757 # Test whether the compiler implicitly links with -lc since on some
7758 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7759 # to ld, don't add -lc before -lgcc.
7760 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7761 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7763 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766 (eval $ac_compile) 2>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } 2>conftest.err; then
7772 libobjs=conftest.$ac_objext
7774 wl=$lt_prog_compiler_wl
7780 lt_save_allow_undefined_flag=$allow_undefined_flag
7781 allow_undefined_flag=
7782 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7783 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }
7788 archive_cmds_need_lc=no
7790 archive_cmds_need_lc=yes
7792 allow_undefined_flag=$lt_save_allow_undefined_flag
7794 cat conftest.err 1>&5
7797 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7798 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7805 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7806 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7808 libname_spec='lib$name'
7816 shlibpath_overrides_runpath=unknown
7818 dynamic_linker="$host_os ld.so"
7819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7820 if test "$GCC" = yes; then
7821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7822 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7823 # if the path contains ";" then we assume it to be the separator
7824 # otherwise default to the standard path separator (i.e. ":") - it is
7825 # assumed that no part of a normal pathname contains ";" but that should
7826 # okay in the real world where ";" in dirpaths is itself problematic.
7827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7832 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7834 need_lib_prefix=unknown
7835 hardcode_into_libs=no
7837 # when you set need_version to no, make sure it does not cause -set_version
7838 # flags to be left without arguments
7839 need_version=unknown
7844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7845 shlibpath_var=LIBPATH
7847 # AIX 3 has no versioning support, so we append a major version to the name.
7848 soname_spec='${libname}${release}${shared_ext}$major'
7855 hardcode_into_libs=yes
7856 if test "$host_cpu" = ia64; then
7857 # AIX 5 supports IA64
7858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7859 shlibpath_var=LD_LIBRARY_PATH
7861 # With GCC up to 2.95.x, collect2 would create an import file
7862 # for dependence libraries. The import file would start with
7863 # the line `#! .'. This would cause the generated library to
7864 # depend on `.', always an invalid library. This was fixed in
7865 # development snapshots of GCC prior to 3.0.
7867 aix4 | aix4.[01] | aix4.[01].*)
7868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7870 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7878 # soname into executable. Probably we can add versioning support to
7879 # collect2, so additional links can be useful in future.
7880 if test "$aix_use_runtimelinking" = yes; then
7881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7882 # instead of lib<name>.a to let people know that these are not
7883 # typical AIX shared libraries.
7884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7886 # We preserve .a as extension for shared libraries through AIX4.2
7887 # and later when we are not doing run time linking.
7888 library_names_spec='${libname}${release}.a $libname.a'
7889 soname_spec='${libname}${release}${shared_ext}$major'
7891 shlibpath_var=LIBPATH
7896 library_names_spec='$libname.ixlibrary $libname.a'
7897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7898 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'
7902 library_names_spec='${libname}${shared_ext}'
7903 dynamic_linker="$host_os ld.so"
7904 shlibpath_var=LIBRARY_PATH
7910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7911 soname_spec='${libname}${release}${shared_ext}$major'
7912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7913 shlibpath_var=LD_LIBRARY_PATH
7914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7916 # the default ld.so.conf also contains /usr/contrib/lib and
7917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7918 # libtool to hard-code these into programs
7921 cygwin* | mingw* | pw32*)
7922 version_type=windows
7927 case $GCC,$host_os in
7928 yes,cygwin* | yes,mingw* | yes,pw32*)
7929 library_names_spec='$libname.dll.a'
7930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7931 postinstall_cmds='base_file=`basename \${file}`~
7932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7933 dldir=$destdir/`dirname \$dlpath`~
7934 test -d \$dldir || mkdir -p \$dldir~
7935 $install_prog $dir/$dlname \$dldir/$dlname'
7936 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7937 dlpath=$dir/\$dldll~
7939 shlibpath_overrides_runpath=yes
7943 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7944 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7945 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7948 # MinGW DLLs use traditional 'lib' prefix
7949 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7950 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7951 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7952 # It is most probably a Windows format PATH printed by
7953 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7954 # path with ; separators, and with drive letters. We can handle the
7955 # drive letters (cygwin fileutils understands them), so leave them,
7956 # especially as we might pass files found there to a mingw objdump,
7957 # which wouldn't understand a cygwinified path. Ahh.
7958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7964 # pw32 DLLs use 'pw' prefix rather than 'lib'
7965 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7971 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7974 dynamic_linker='Win32 ld.exe'
7975 # FIXME: first we should search . and the directory the executable is in
7979 darwin* | rhapsody*)
7980 dynamic_linker="$host_os dyld"
7984 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7985 soname_spec='${libname}${release}${major}$shared_ext'
7986 shlibpath_overrides_runpath=yes
7987 shlibpath_var=DYLD_LIBRARY_PATH
7988 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7989 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7990 if test "$GCC" = yes; then
7991 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7993 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7995 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8003 soname_spec='${libname}${release}${shared_ext}$major'
8004 shlibpath_var=LD_LIBRARY_PATH
8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8016 soname_spec='${libname}${release}${shared_ext}$major'
8017 shlibpath_var=LD_LIBRARY_PATH
8018 shlibpath_overrides_runpath=no
8019 hardcode_into_libs=yes
8020 dynamic_linker='GNU ld.so'
8024 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8025 version_type=freebsd-$objformat
8026 case $version_type in
8028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8037 shlibpath_var=LD_LIBRARY_PATH
8040 shlibpath_overrides_runpath=yes
8042 freebsd3.01* | freebsdelf3.01*)
8043 shlibpath_overrides_runpath=yes
8044 hardcode_into_libs=yes
8047 shlibpath_overrides_runpath=no
8048 hardcode_into_libs=yes
8057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8058 soname_spec='${libname}${release}${shared_ext}$major'
8059 shlibpath_var=LD_LIBRARY_PATH
8060 hardcode_into_libs=yes
8063 hpux9* | hpux10* | hpux11*)
8064 # Give a soname corresponding to the major version so that dld.sl refuses to
8065 # link against other versions.
8072 hardcode_into_libs=yes
8073 dynamic_linker="$host_os dld.so"
8074 shlibpath_var=LD_LIBRARY_PATH
8075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8077 soname_spec='${libname}${release}${shared_ext}$major'
8078 if test "X$HPUX_IA64_MODE" = X32; then
8079 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8081 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8087 hardcode_into_libs=yes
8088 dynamic_linker="$host_os dld.sl"
8089 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8092 soname_spec='${libname}${release}${shared_ext}$major'
8093 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8098 dynamic_linker="$host_os dld.sl"
8099 shlibpath_var=SHLIB_PATH
8100 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8102 soname_spec='${libname}${release}${shared_ext}$major'
8105 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8106 postinstall_cmds='chmod 555 $lib'
8109 irix5* | irix6* | nonstopux*)
8111 nonstopux*) version_type=nonstopux ;;
8113 if test "$lt_cv_prog_gnu_ld" = yes; then
8121 soname_spec='${libname}${release}${shared_ext}$major'
8122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8124 irix5* | nonstopux*)
8128 case $LD in # libtool.m4 will add one of these switches to LD
8129 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8130 libsuff= shlibsuff= libmagic=32-bit;;
8131 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8132 libsuff=32 shlibsuff=N32 libmagic=N32;;
8133 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8134 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8135 *) libsuff= shlibsuff= libmagic=never-match;;
8139 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8140 shlibpath_overrides_runpath=no
8141 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8142 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8143 hardcode_into_libs=yes
8146 # No shared lib support for Linux oldld, aout, or coff.
8147 linux*oldld* | linux*aout* | linux*coff*)
8151 # This must be Linux ELF.
8156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8157 soname_spec='${libname}${release}${shared_ext}$major'
8158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8159 shlibpath_var=LD_LIBRARY_PATH
8160 shlibpath_overrides_runpath=no
8161 # This implies no fast_install, which is unacceptable.
8162 # Some rework will be needed to allow for fast_install
8163 # before this can be enabled.
8164 hardcode_into_libs=yes
8166 # Append ld.so.conf contents to the search path
8167 if test -f /etc/ld.so.conf; then
8168 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8169 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8172 # We used to test for /lib/ld.so.1 and disable shared libraries on
8173 # powerpc, because MkLinux only supported shared libraries with the
8174 # GNU dynamic linker. Since this was broken with cross compilers,
8175 # most powerpc-linux boxes support dynamic linking these days and
8176 # people can always --disable-shared, the test was removed, and we
8177 # assume the GNU/Linux dynamic linker is in use.
8178 dynamic_linker='GNU/Linux ld.so'
8185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8186 soname_spec='${libname}${release}${shared_ext}$major'
8187 shlibpath_var=LD_LIBRARY_PATH
8188 shlibpath_overrides_runpath=no
8189 hardcode_into_libs=yes
8190 dynamic_linker='NetBSD ld.elf_so'
8197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8198 soname_spec='${libname}${release}${shared_ext}$major'
8199 shlibpath_var=LD_LIBRARY_PATH
8200 shlibpath_overrides_runpath=no
8201 hardcode_into_libs=yes
8202 dynamic_linker='GNU ld.so'
8209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8212 dynamic_linker='NetBSD (a.out) ld.so'
8214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8215 soname_spec='${libname}${release}${shared_ext}$major'
8216 dynamic_linker='NetBSD ld.elf_so'
8218 shlibpath_var=LD_LIBRARY_PATH
8219 shlibpath_overrides_runpath=yes
8220 hardcode_into_libs=yes
8225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8226 shlibpath_var=LD_LIBRARY_PATH
8227 shlibpath_overrides_runpath=yes
8234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8235 soname_spec='${libname}${release}${shared_ext}$major'
8236 shlibpath_var=LD_LIBRARY_PATH
8237 shlibpath_overrides_runpath=yes
8244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8246 shlibpath_var=LD_LIBRARY_PATH
8247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8249 openbsd2.[89] | openbsd2.[89].*)
8250 shlibpath_overrides_runpath=no
8253 shlibpath_overrides_runpath=yes
8257 shlibpath_overrides_runpath=yes
8262 libname_spec='$name'
8265 library_names_spec='$libname${shared_ext} $libname.a'
8266 dynamic_linker='OS/2 ld.exe'
8267 shlibpath_var=LIBPATH
8270 osf3* | osf4* | osf5*)
8274 soname_spec='${libname}${release}${shared_ext}$major'
8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8276 shlibpath_var=LD_LIBRARY_PATH
8277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8283 soname_spec='${libname}${release}${shared_ext}$major'
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 shlibpath_var=LD_LIBRARY_PATH
8292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8293 soname_spec='${libname}${release}${shared_ext}$major'
8294 shlibpath_var=LD_LIBRARY_PATH
8295 shlibpath_overrides_runpath=yes
8296 hardcode_into_libs=yes
8297 # ldd complains unless libraries are executable
8298 postinstall_cmds='chmod +x $lib'
8303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8305 shlibpath_var=LD_LIBRARY_PATH
8306 shlibpath_overrides_runpath=yes
8307 if test "$with_gnu_ld" = yes; then
8313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8316 soname_spec='${libname}${release}${shared_ext}$major'
8317 shlibpath_var=LD_LIBRARY_PATH
8318 case $host_vendor in
8320 shlibpath_overrides_runpath=no
8322 export_dynamic_flag_spec='${wl}-Blargedynsym'
8323 runpath_var=LD_RUN_PATH
8331 shlibpath_overrides_runpath=no
8332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8338 if test -d /usr/nec ;then
8340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8341 soname_spec='$libname${shared_ext}.$major'
8342 shlibpath_var=LD_LIBRARY_PATH
8348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8349 soname_spec='${libname}${release}${shared_ext}$major'
8350 shlibpath_var=LD_LIBRARY_PATH
8357 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8358 echo "${ECHO_T}$dynamic_linker" >&6
8359 test "$dynamic_linker" = no && can_build_shared=no
8361 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8362 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8364 if test -n "$hardcode_libdir_flag_spec" || \
8365 test -n "$runpath_var " || \
8366 test "X$hardcode_automatic"="Xyes" ; then
8368 # We can hardcode non-existant directories.
8369 if test "$hardcode_direct" != no &&
8370 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8371 # have to relink, otherwise we might link with an installed library
8372 # when we should be linking with a yet-to-be-installed one
8373 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8374 test "$hardcode_minus_L" != no; then
8375 # Linking always hardcodes the temporary library directory.
8376 hardcode_action=relink
8378 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8379 hardcode_action=immediate
8382 # We cannot hardcode anything, or else we can only hardcode existing
8384 hardcode_action=unsupported
8386 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8387 echo "${ECHO_T}$hardcode_action" >&6
8389 if test "$hardcode_action" = relink; then
8390 # Fast installation is not supported
8391 enable_fast_install=no
8392 elif test "$shlibpath_overrides_runpath" = yes ||
8393 test "$enable_shared" = no; then
8394 # Fast installation is not necessary
8395 enable_fast_install=needless
8400 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8401 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8402 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8403 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8404 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8405 echo "$as_me:$LINENO: result: yes" >&5
8406 echo "${ECHO_T}yes" >&6
8408 # FIXME - insert some real tests, host_os isn't really good enough
8411 if test -n "$STRIP" ; then
8412 striplib="$STRIP -x"
8413 echo "$as_me:$LINENO: result: yes" >&5
8414 echo "${ECHO_T}yes" >&6
8416 echo "$as_me:$LINENO: result: no" >&5
8417 echo "${ECHO_T}no" >&6
8421 echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6
8427 if test "x$enable_dlopen" != xyes; then
8428 enable_dlopen=unknown
8429 enable_dlopen_self=unknown
8430 enable_dlopen_self_static=unknown
8437 lt_cv_dlopen="load_add_on"
8439 lt_cv_dlopen_self=yes
8443 lt_cv_dlopen="LoadLibrary"
8448 lt_cv_dlopen="dlopen"
8453 # if libdl is installed we need to link against it
8454 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8455 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8456 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 ac_check_lib_save_LIBS=$LIBS
8461 cat >conftest.$ac_ext <<_ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8468 /* Override any gcc2 internal prototype to avoid an error. */
8472 /* We use char because int might match the return type of a gcc2
8473 builtin and then its argument prototype would still apply. */
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_cv_lib_dl_dlopen=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_cv_lib_dl_dlopen=no
8511 rm -f conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8513 LIBS=$ac_check_lib_save_LIBS
8515 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8516 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8517 if test $ac_cv_lib_dl_dlopen = yes; then
8518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8523 lt_cv_dlopen_self=yes
8530 echo "$as_me:$LINENO: checking for shl_load" >&5
8531 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8532 if test "${ac_cv_func_shl_load+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 cat >conftest.$ac_ext <<_ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8543 #define shl_load innocuous_shl_load
8545 /* System header to define __stub macros and hopefully few prototypes,
8546 which can conflict with char shl_load (); below.
8547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8548 <limits.h> exists even on freestanding compilers. */
8551 # include <limits.h>
8553 # include <assert.h>
8558 /* Override any gcc2 internal prototype to avoid an error. */
8563 /* We use char because int might match the return type of a gcc2
8564 builtin and then its argument prototype would still apply. */
8566 /* The GNU C library defines this for functions which it implements
8567 to always fail with ENOSYS. Some functions are actually named
8568 something starting with __ and the normal name is an alias. */
8569 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8572 char (*f) () = shl_load;
8581 return f != shl_load;
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588 (eval $ac_link) 2>conftest.er1
8590 grep -v '^ *+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest$ac_exeext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_cv_func_shl_load=yes
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_cv_func_shl_load=no
8614 rm -f conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8617 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8618 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8619 if test $ac_cv_func_shl_load = yes; then
8620 lt_cv_dlopen="shl_load"
8622 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8623 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8624 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 ac_check_lib_save_LIBS=$LIBS
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8636 /* Override any gcc2 internal prototype to avoid an error. */
8640 /* We use char because int might match the return type of a gcc2
8641 builtin and then its argument prototype would still apply. */
8651 rm -f conftest.$ac_objext conftest$ac_exeext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653 (eval $ac_link) 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest$ac_exeext'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_cv_lib_dld_shl_load=yes
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 ac_cv_lib_dld_shl_load=no
8679 rm -f conftest.err conftest.$ac_objext \
8680 conftest$ac_exeext conftest.$ac_ext
8681 LIBS=$ac_check_lib_save_LIBS
8683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8684 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8685 if test $ac_cv_lib_dld_shl_load = yes; then
8686 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8688 echo "$as_me:$LINENO: checking for dlopen" >&5
8689 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8690 if test "${ac_cv_func_dlopen+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 cat >conftest.$ac_ext <<_ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8701 #define dlopen innocuous_dlopen
8703 /* System header to define __stub macros and hopefully few prototypes,
8704 which can conflict with char dlopen (); below.
8705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8706 <limits.h> exists even on freestanding compilers. */
8709 # include <limits.h>
8711 # include <assert.h>
8716 /* Override any gcc2 internal prototype to avoid an error. */
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8724 /* The GNU C library defines this for functions which it implements
8725 to always fail with ENOSYS. Some functions are actually named
8726 something starting with __ and the normal name is an alias. */
8727 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8730 char (*f) () = dlopen;
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>conftest.er1
8748 grep -v '^ *+' conftest.er1 >conftest.err
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; } &&
8759 { ac_try='test -s conftest$ac_exeext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 ac_cv_func_dlopen=yes
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 ac_cv_func_dlopen=no
8772 rm -f conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8775 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8776 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8777 if test $ac_cv_func_dlopen = yes; then
8778 lt_cv_dlopen="dlopen"
8780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 ac_check_lib_save_LIBS=$LIBS
8787 cat >conftest.$ac_ext <<_ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8794 /* Override any gcc2 internal prototype to avoid an error. */
8798 /* We use char because int might match the return type of a gcc2
8799 builtin and then its argument prototype would still apply. */
8809 rm -f conftest.$ac_objext conftest$ac_exeext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8811 (eval $ac_link) 2>conftest.er1
8813 grep -v '^ *+' conftest.er1 >conftest.err
8815 cat conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } &&
8818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; } &&
8824 { ac_try='test -s conftest$ac_exeext'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 ac_cv_lib_dl_dlopen=yes
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8835 ac_cv_lib_dl_dlopen=no
8837 rm -f conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839 LIBS=$ac_check_lib_save_LIBS
8841 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8842 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8843 if test $ac_cv_lib_dl_dlopen = yes; then
8844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8846 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8847 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8848 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 ac_check_lib_save_LIBS=$LIBS
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8860 /* Override any gcc2 internal prototype to avoid an error. */
8864 /* We use char because int might match the return type of a gcc2
8865 builtin and then its argument prototype would still apply. */
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877 (eval $ac_link) 2>conftest.er1
8879 grep -v '^ *+' conftest.er1 >conftest.err
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } &&
8884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; } &&
8890 { ac_try='test -s conftest$ac_exeext'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; }; then
8896 ac_cv_lib_svld_dlopen=yes
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8901 ac_cv_lib_svld_dlopen=no
8903 rm -f conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8905 LIBS=$ac_check_lib_save_LIBS
8907 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8908 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8909 if test $ac_cv_lib_svld_dlopen = yes; then
8910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8912 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8913 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8914 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 ac_check_lib_save_LIBS=$LIBS
8919 cat >conftest.$ac_ext <<_ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8926 /* Override any gcc2 internal prototype to avoid an error. */
8930 /* We use char because int might match the return type of a gcc2
8931 builtin and then its argument prototype would still apply. */
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>conftest.er1
8945 grep -v '^ *+' conftest.er1 >conftest.err
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_lib_dld_dld_link=yes
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ac_cv_lib_dld_dld_link=no
8969 rm -f conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8971 LIBS=$ac_check_lib_save_LIBS
8973 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8974 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8975 if test $ac_cv_lib_dld_dld_link = yes; then
8976 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8997 if test "x$lt_cv_dlopen" != xno; then
9003 case $lt_cv_dlopen in
9005 save_CPPFLAGS="$CPPFLAGS"
9006 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9008 save_LDFLAGS="$LDFLAGS"
9009 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9012 LIBS="$lt_cv_dlopen_libs $LIBS"
9014 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9015 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9016 if test "${lt_cv_dlopen_self+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 if test "$cross_compiling" = yes; then :
9020 lt_cv_dlopen_self=cross
9022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9023 lt_status=$lt_dlunknown
9024 cat > conftest.$ac_ext <<EOF
9025 #line 9025 "configure"
9026 #include "confdefs.h"
9035 # define LT_DLGLOBAL RTLD_GLOBAL
9038 # define LT_DLGLOBAL DL_GLOBAL
9040 # define LT_DLGLOBAL 0
9044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9045 find out it does not work in some platform. */
9046 #ifndef LT_DLLAZY_OR_NOW
9048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9051 # define LT_DLLAZY_OR_NOW DL_LAZY
9054 # define LT_DLLAZY_OR_NOW RTLD_NOW
9057 # define LT_DLLAZY_OR_NOW DL_NOW
9059 # define LT_DLLAZY_OR_NOW 0
9067 extern "C" void exit (int);
9070 void fnord() { int i=42;}
9073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9074 int status = $lt_dlunknown;
9078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9079 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9080 /* dlclose (self); */
9086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087 (eval $ac_link) 2>&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9091 (./conftest; exit; ) 2>/dev/null
9094 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9095 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9096 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9099 # compilation failed
9100 lt_cv_dlopen_self=no
9107 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9108 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9110 if test "x$lt_cv_dlopen_self" = xyes; then
9111 LDFLAGS="$LDFLAGS $link_static_flag"
9112 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9113 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9114 if test "${lt_cv_dlopen_self_static+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 if test "$cross_compiling" = yes; then :
9118 lt_cv_dlopen_self_static=cross
9120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9121 lt_status=$lt_dlunknown
9122 cat > conftest.$ac_ext <<EOF
9123 #line 9123 "configure"
9124 #include "confdefs.h"
9133 # define LT_DLGLOBAL RTLD_GLOBAL
9136 # define LT_DLGLOBAL DL_GLOBAL
9138 # define LT_DLGLOBAL 0
9142 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9143 find out it does not work in some platform. */
9144 #ifndef LT_DLLAZY_OR_NOW
9146 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9149 # define LT_DLLAZY_OR_NOW DL_LAZY
9152 # define LT_DLLAZY_OR_NOW RTLD_NOW
9155 # define LT_DLLAZY_OR_NOW DL_NOW
9157 # define LT_DLLAZY_OR_NOW 0
9165 extern "C" void exit (int);
9168 void fnord() { int i=42;}
9171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9172 int status = $lt_dlunknown;
9176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9177 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9178 /* dlclose (self); */
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185 (eval $ac_link) 2>&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9189 (./conftest; exit; ) 2>/dev/null
9192 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9193 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9194 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9197 # compilation failed
9198 lt_cv_dlopen_self_static=no
9205 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9206 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9209 CPPFLAGS="$save_CPPFLAGS"
9210 LDFLAGS="$save_LDFLAGS"
9215 case $lt_cv_dlopen_self in
9216 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9217 *) enable_dlopen_self=unknown ;;
9220 case $lt_cv_dlopen_self_static in
9221 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9222 *) enable_dlopen_self_static=unknown ;;
9227 # Report which librarie types wil actually be built
9228 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9229 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9230 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9231 echo "${ECHO_T}$can_build_shared" >&6
9233 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9234 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9235 test "$can_build_shared" = "no" && enable_shared=no
9237 # On AIX, shared libraries and static libraries use the same namespace, and
9238 # are all built from PIC.
9241 test "$enable_shared" = yes && enable_static=no
9242 if test -n "$RANLIB"; then
9243 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9244 postinstall_cmds='$RANLIB $lib'
9249 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9250 test "$enable_shared" = yes && enable_static=no
9253 darwin* | rhapsody*)
9254 if test "$GCC" = yes; then
9255 archive_cmds_need_lc=no
9257 rhapsody* | darwin1.[012])
9258 allow_undefined_flag='-undefined suppress'
9261 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9262 allow_undefined_flag='-flat_namespace -undefined suppress'
9264 case ${MACOSX_DEPLOYMENT_TARGET} in
9266 allow_undefined_flag='-flat_namespace -undefined suppress'
9269 allow_undefined_flag='-undefined dynamic_lookup'
9275 output_verbose_link_cmd='echo'
9276 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9277 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9278 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9279 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9280 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9282 hardcode_automatic=yes
9283 hardcode_shlibpath_var=unsupported
9284 whole_archive_flag_spec='-all_load $convenience'
9285 link_all_deplibs=yes
9291 echo "$as_me:$LINENO: result: $enable_shared" >&5
9292 echo "${ECHO_T}$enable_shared" >&6
9294 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9295 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9296 # Make sure either enable_shared or enable_static is yes.
9297 test "$enable_shared" = yes || enable_static=yes
9298 echo "$as_me:$LINENO: result: $enable_static" >&5
9299 echo "${ECHO_T}$enable_static" >&6
9301 # The else clause should only fire when bootstrapping the
9302 # libtool distribution, otherwise you forgot to ship ltmain.sh
9303 # with your package, and you will get complaints that there are
9304 # no rules to generate ltmain.sh.
9305 if test -f "$ltmain"; then
9306 # See if we are running on zsh, and set the options which allow our commands through
9307 # without removal of \ escapes.
9308 if test -n "${ZSH_VERSION+set}" ; then
9309 setopt NO_GLOB_SUBST
9311 # Now quote all the things that may contain metacharacters while being
9312 # careful not to overquote the AC_SUBSTed values. We take copies of the
9313 # variables and quote the copies for generation of the libtool script.
9314 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9316 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9317 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9318 deplibs_check_method reload_flag reload_cmds need_locks \
9319 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9320 lt_cv_sys_global_symbol_to_c_name_address \
9321 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9322 old_postinstall_cmds old_postuninstall_cmds \
9326 lt_prog_compiler_wl \
9327 lt_prog_compiler_pic \
9328 lt_prog_compiler_static \
9329 lt_prog_compiler_no_builtin_flag \
9330 export_dynamic_flag_spec \
9331 thread_safe_flag_spec \
9332 whole_archive_flag_spec \
9333 enable_shared_with_static_runtimes \
9335 old_archive_from_new_cmds \
9340 compiler_lib_search_path \
9342 archive_expsym_cmds \
9344 postuninstall_cmds \
9345 old_archive_from_expsyms_cmds \
9346 allow_undefined_flag \
9348 export_symbols_cmds \
9349 hardcode_libdir_flag_spec \
9350 hardcode_libdir_flag_spec_ld \
9351 hardcode_libdir_separator \
9352 hardcode_automatic \
9354 module_expsym_cmds \
9355 lt_cv_prog_compiler_c_o \
9360 old_archive_cmds | \
9361 old_archive_from_new_cmds | \
9363 archive_expsym_cmds | \
9365 module_expsym_cmds | \
9366 old_archive_from_expsyms_cmds | \
9367 export_symbols_cmds | \
9368 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9369 postinstall_cmds | postuninstall_cmds | \
9370 old_postinstall_cmds | old_postuninstall_cmds | \
9371 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9372 # Double-quote double-evaled strings.
9373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9376 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9382 *'\$0 --fallback-echo"')
9383 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9388 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9390 { echo "$as_me:$LINENO: creating $ofile" >&5
9391 echo "$as_me: creating $ofile" >&6;}
9393 cat <<__EOF__ >> "$cfgfile"
9396 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9397 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9398 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9400 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9401 # Free Software Foundation, Inc.
9403 # This file is part of GNU Libtool:
9404 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9406 # This program is free software; you can redistribute it and/or modify
9407 # it under the terms of the GNU General Public License as published by
9408 # the Free Software Foundation; either version 2 of the License, or
9409 # (at your option) any later version.
9411 # This program is distributed in the hope that it will be useful, but
9412 # WITHOUT ANY WARRANTY; without even the implied warranty of
9413 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9414 # General Public License for more details.
9416 # You should have received a copy of the GNU General Public License
9417 # along with this program; if not, write to the Free Software
9418 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9420 # As a special exception to the GNU General Public License, if you
9421 # distribute this file as part of a program that contains a
9422 # configuration script generated by Autoconf, you may include it under
9423 # the same distribution terms that you use for the rest of that program.
9425 # A sed program that does not truncate output.
9428 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9429 Xsed="$SED -e s/^X//"
9431 # The HP-UX ksh and POSIX shell print the target directory to stdout
9433 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9435 # The names of the tagged configurations supported by this script.
9438 # ### BEGIN LIBTOOL CONFIG
9440 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9442 # Shell to use when invoking shell scripts.
9445 # Whether or not to build shared libraries.
9446 build_libtool_libs=$enable_shared
9448 # Whether or not to build static libraries.
9449 build_old_libs=$enable_static
9451 # Whether or not to add -lc for building shared libraries.
9452 build_libtool_need_lc=$archive_cmds_need_lc
9454 # Whether or not to disallow shared libs when runtime libs are static
9455 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9457 # Whether or not to optimize for fast installation.
9458 fast_install=$enable_fast_install
9461 host_alias=$host_alias
9464 # An echo program that does not interpret backslashes.
9469 AR_FLAGS=$lt_AR_FLAGS
9474 # A language-specific compiler.
9477 # Is the compiler the GNU C compiler?
9483 # The linker used to build libraries.
9486 # Whether we need hard or soft links.
9489 # A BSD-compatible nm program.
9492 # A symbol stripping program
9495 # Used to examine libraries when file_magic_cmd begins "file"
9496 MAGIC_CMD=$MAGIC_CMD
9498 # Used on cygwin: DLL creation program.
9501 # Used on cygwin: object dumper.
9504 # Used on cygwin: assembler.
9507 # The name of the directory that contains temporary libtool files.
9510 # How to create reloadable object files.
9511 reload_flag=$lt_reload_flag
9512 reload_cmds=$lt_reload_cmds
9514 # How to pass a linker flag through the compiler.
9515 wl=$lt_lt_prog_compiler_wl
9517 # Object file suffix (normally "o").
9520 # Old archive suffix (normally "a").
9523 # Shared library suffix (normally ".so").
9524 shrext_cmds='$shrext_cmds'
9526 # Executable file suffix (normally "").
9529 # Additional compiler flags for building library objects.
9530 pic_flag=$lt_lt_prog_compiler_pic
9533 # What is the maximum length of a command?
9534 max_cmd_len=$lt_cv_sys_max_cmd_len
9536 # Does compiler simultaneously support -c and -o options?
9537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9539 # Must we lock files when doing compilation ?
9540 need_locks=$lt_need_locks
9542 # Do we need the lib prefix for modules?
9543 need_lib_prefix=$need_lib_prefix
9545 # Do we need a version for libraries?
9546 need_version=$need_version
9548 # Whether dlopen is supported.
9549 dlopen_support=$enable_dlopen
9551 # Whether dlopen of programs is supported.
9552 dlopen_self=$enable_dlopen_self
9554 # Whether dlopen of statically linked programs is supported.
9555 dlopen_self_static=$enable_dlopen_self_static
9557 # Compiler flag to prevent dynamic linking.
9558 link_static_flag=$lt_lt_prog_compiler_static
9560 # Compiler flag to turn off builtin functions.
9561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9563 # Compiler flag to allow reflexive dlopens.
9564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9566 # Compiler flag to generate shared objects directly from archives.
9567 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9569 # Compiler flag to generate thread-safe objects.
9570 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9572 # Library versioning type.
9573 version_type=$version_type
9575 # Format of library name prefix.
9576 libname_spec=$lt_libname_spec
9578 # List of archive names. First name is the real one, the rest are links.
9579 # The last name is the one that the linker finds with -lNAME.
9580 library_names_spec=$lt_library_names_spec
9582 # The coded name of the library, if different from the real name.
9583 soname_spec=$lt_soname_spec
9585 # Commands used to build and install an old-style archive.
9587 old_archive_cmds=$lt_old_archive_cmds
9588 old_postinstall_cmds=$lt_old_postinstall_cmds
9589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9591 # Create an old-style archive from a shared archive.
9592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9594 # Create a temporary old-style archive to link instead of a shared archive.
9595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9597 # Commands used to build and install a shared archive.
9598 archive_cmds=$lt_archive_cmds
9599 archive_expsym_cmds=$lt_archive_expsym_cmds
9600 postinstall_cmds=$lt_postinstall_cmds
9601 postuninstall_cmds=$lt_postuninstall_cmds
9603 # Commands used to build a loadable module (assumed same as above if empty)
9604 module_cmds=$lt_module_cmds
9605 module_expsym_cmds=$lt_module_expsym_cmds
9607 # Commands to strip libraries.
9608 old_striplib=$lt_old_striplib
9609 striplib=$lt_striplib
9611 # Dependencies to place before the objects being linked to create a
9613 predep_objects=$lt_predep_objects
9615 # Dependencies to place after the objects being linked to create a
9617 postdep_objects=$lt_postdep_objects
9619 # Dependencies to place before the objects being linked to create a
9623 # Dependencies to place after the objects being linked to create a
9625 postdeps=$lt_postdeps
9627 # The library search path used internally by the compiler when linking
9629 compiler_lib_search_path=$lt_compiler_lib_search_path
9631 # Method to check whether dependent libraries are shared objects.
9632 deplibs_check_method=$lt_deplibs_check_method
9634 # Command to use when deplibs_check_method == file_magic.
9635 file_magic_cmd=$lt_file_magic_cmd
9637 # Flag that allows shared libraries with undefined symbols to be built.
9638 allow_undefined_flag=$lt_allow_undefined_flag
9640 # Flag that forces no undefined symbols.
9641 no_undefined_flag=$lt_no_undefined_flag
9643 # Commands used to finish a libtool library installation in a directory.
9644 finish_cmds=$lt_finish_cmds
9646 # Same as above, but a single script fragment to be evaled but not shown.
9647 finish_eval=$lt_finish_eval
9649 # Take the output of nm and produce a listing of raw symbols and C names.
9650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9652 # Transform the output of nm in a proper C declaration
9653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9655 # Transform the output of nm in a C name address pair
9656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9658 # This is the shared library runtime path variable.
9659 runpath_var=$runpath_var
9661 # This is the shared library path variable.
9662 shlibpath_var=$shlibpath_var
9664 # Is shlibpath searched before the hard-coded library search path?
9665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9667 # How to hardcode a shared library path into an executable.
9668 hardcode_action=$hardcode_action
9670 # Whether we should hardcode library paths into libraries.
9671 hardcode_into_libs=$hardcode_into_libs
9673 # Flag to hardcode \$libdir into a binary during linking.
9674 # This must work even if \$libdir does not exist.
9675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9677 # If ld is used when linking, flag to hardcode \$libdir into
9678 # a binary during linking. This must work even if \$libdir does
9680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9682 # Whether we need a single -rpath flag with a separated argument.
9683 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9687 hardcode_direct=$hardcode_direct
9689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9691 hardcode_minus_L=$hardcode_minus_L
9693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9694 # the resulting binary.
9695 hardcode_shlibpath_var=$hardcode_shlibpath_var
9697 # Set to yes if building a shared library automatically hardcodes DIR into the library
9698 # and all subsequent libraries and executables linked against it.
9699 hardcode_automatic=$hardcode_automatic
9701 # Variables whose values should be saved in libtool wrapper scripts and
9702 # restored at relink time.
9703 variables_saved_for_relink="$variables_saved_for_relink"
9705 # Whether libtool must link a program against all its dependency libraries.
9706 link_all_deplibs=$link_all_deplibs
9708 # Compile-time system search path for libraries
9709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9711 # Run-time system search path for libraries
9712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9714 # Fix the shell variable \$srcfile for the compiler.
9715 fix_srcfile_path="$fix_srcfile_path"
9717 # Set to yes if exported symbols are required.
9718 always_export_symbols=$always_export_symbols
9720 # The commands to list exported symbols.
9721 export_symbols_cmds=$lt_export_symbols_cmds
9723 # The commands to extract the exported symbol list from a shared archive.
9724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9726 # Symbols that should not be listed in the preloaded symbols.
9727 exclude_expsyms=$lt_exclude_expsyms
9729 # Symbols that must always be exported.
9730 include_expsyms=$lt_include_expsyms
9732 # ### END LIBTOOL CONFIG
9739 cat <<\EOF >> "$cfgfile"
9741 # AIX sometimes has problems with the GCC collect2 program. For some
9742 # reason, if we set the COLLECT_NAMES environment variable, the problems
9743 # vanish in a puff of smoke.
9744 if test "X${COLLECT_NAMES+set}" != Xset; then
9746 export COLLECT_NAMES
9752 # We use sed instead of cat because bash on DJGPP gets confused if
9753 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9754 # text mode, it properly converts lines to CR/LF. This bash problem
9755 # is reportedly fixed, but why not run on old versions too?
9756 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9758 mv -f "$cfgfile" "$ofile" || \
9759 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9763 # If there is no Makefile yet, we rely on a make rule to execute
9764 # `config.status --recheck' to rerun these tests and create the
9765 # libtool script then.
9766 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9767 if test -f "$ltmain_in"; then
9768 test -f Makefile && make "$ltmain"
9774 ac_cpp='$CPP $CPPFLAGS'
9775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9782 # Check whether --with-tags or --without-tags was given.
9783 if test "${with_tags+set}" = set; then
9784 withval="$with_tags"
9788 if test -f "$ltmain" && test -n "$tagnames"; then
9789 if test ! -f "${ofile}"; then
9790 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9791 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9794 if test -z "$LTCC"; then
9795 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9796 if test -z "$LTCC"; then
9797 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9798 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9801 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9805 # Extract list of available tagged configurations in $ofile.
9806 # Note that this assumes the entire list is on one line.
9807 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9810 for tagname in $tagnames; do
9812 # Check whether tagname contains only valid characters
9813 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9815 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9816 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9817 { (exit 1); exit 1; }; }
9821 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9823 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9824 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9825 { (exit 1); exit 1; }; }
9828 # Update the list of available tags.
9829 if test -n "$tagname"; then
9830 echo appending configuration tag \"$tagname\" to $ofile
9834 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9836 ac_cpp='$CXXCPP $CPPFLAGS'
9837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9844 archive_cmds_need_lc_CXX=no
9845 allow_undefined_flag_CXX=
9846 always_export_symbols_CXX=no
9847 archive_expsym_cmds_CXX=
9848 export_dynamic_flag_spec_CXX=
9849 hardcode_direct_CXX=no
9850 hardcode_libdir_flag_spec_CXX=
9851 hardcode_libdir_flag_spec_ld_CXX=
9852 hardcode_libdir_separator_CXX=
9853 hardcode_minus_L_CXX=no
9854 hardcode_automatic_CXX=no
9856 module_expsym_cmds_CXX=
9857 link_all_deplibs_CXX=unknown
9858 old_archive_cmds_CXX=$old_archive_cmds
9859 no_undefined_flag_CXX=
9860 whole_archive_flag_spec_CXX=
9861 enable_shared_with_static_runtimes_CXX=no
9863 # Dependencies to place before and after the object being linked:
9865 postdep_objects_CXX=
9868 compiler_lib_search_path_CXX=
9870 # Source file extension for C++ test sources.
9873 # Object file extension for compiled C++ test sources.
9877 # Code to be used in simple compile tests
9878 lt_simple_compile_test_code="int some_variable = 0;\n"
9880 # Code to be used in simple link tests
9881 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9885 # If no C compiler was specified, use CC.
9888 # Allow CC to be a program name with arguments.
9892 # Allow CC to be a program name with arguments.
9897 lt_save_with_gnu_ld=$with_gnu_ld
9898 lt_save_path_LD=$lt_cv_path_LD
9899 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9900 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9902 unset lt_cv_prog_gnu_ld
9904 if test -n "${lt_cv_path_LDCXX+set}"; then
9905 lt_cv_path_LD=$lt_cv_path_LDCXX
9909 test -z "${LDCXX+set}" || LD=$LDCXX
9913 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9915 # We don't want -fno-exception wen compiling C++ code, so set the
9916 # no_builtin_flag separately
9917 if test "$GXX" = yes; then
9918 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9920 lt_prog_compiler_no_builtin_flag_CXX=
9923 if test "$GXX" = yes; then
9924 # Set up default GNU C++ configuration
9927 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9928 if test "${with_gnu_ld+set}" = set; then
9929 withval="$with_gnu_ld"
9930 test "$withval" = no || with_gnu_ld=yes
9935 if test "$GCC" = yes; then
9936 # Check if gcc -print-prog-name=ld gives a path.
9937 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9938 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9941 # gcc leaves a trailing carriage return which upsets mingw
9942 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9944 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9947 # Accept absolute paths.
9949 re_direlt='/[^/][^/]*/\.\./'
9950 # Canonicalize the pathname of ld
9951 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9952 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9953 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9955 test -z "$LD" && LD="$ac_prog"
9958 # If it fails, then pretend we aren't using GCC.
9962 # If it is relative, then search for the first ld in PATH.
9966 elif test "$with_gnu_ld" = yes; then
9967 echo "$as_me:$LINENO: checking for GNU ld" >&5
9968 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9970 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9971 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9973 if test "${lt_cv_path_LD+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 if test -z "$LD"; then
9977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9978 for ac_dir in $PATH; do
9980 test -z "$ac_dir" && ac_dir=.
9981 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9982 lt_cv_path_LD="$ac_dir/$ac_prog"
9983 # Check to see if the program is GNU ld. I'd rather use --version,
9984 # but apparently some GNU ld's only accept -v.
9985 # Break only if it was the GNU/non-GNU ld that we prefer.
9986 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9987 *GNU* | *'with BFD'*)
9988 test "$with_gnu_ld" != no && break
9991 test "$with_gnu_ld" != yes && break
9998 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10002 LD="$lt_cv_path_LD"
10003 if test -n "$LD"; then
10004 echo "$as_me:$LINENO: result: $LD" >&5
10005 echo "${ECHO_T}$LD" >&6
10007 echo "$as_me:$LINENO: result: no" >&5
10008 echo "${ECHO_T}no" >&6
10010 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10011 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10012 { (exit 1); exit 1; }; }
10013 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10014 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10015 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10019 case `$LD -v 2>&1 </dev/null` in
10020 *GNU* | *'with BFD'*)
10021 lt_cv_prog_gnu_ld=yes
10024 lt_cv_prog_gnu_ld=no
10028 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10029 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10030 with_gnu_ld=$lt_cv_prog_gnu_ld
10034 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10035 # archiving commands below assume that GNU ld is being used.
10036 if test "$with_gnu_ld" = yes; then
10037 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10038 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10040 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10041 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10043 # If archive_cmds runs LD, not CC, wlarc should be empty
10044 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10045 # investigate it a little bit more. (MM)
10048 # ancient GNU ld didn't support --whole-archive et. al.
10049 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10050 grep 'no-whole-archive' > /dev/null; then
10051 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10053 whole_archive_flag_spec_CXX=
10059 # A generic and very simple default shared library creation
10060 # command for GNU C++ for the case where it uses the native
10061 # linker, instead of GNU ld. If possible, this setting should
10062 # overridden to take advantage of the native linker features on
10063 # the platform it is being used on.
10064 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10067 # Commands to make compiler produce verbose output that lists
10068 # what "hidden" libraries, object files and flags are used when
10069 # linking a shared library.
10070 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10078 # PORTME: fill in a description of your system's C++ link characteristics
10079 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10084 # FIXME: insert proper C++ library support
10088 if test "$host_cpu" = ia64; then
10089 # On IA64, the linker does run time linking by default, so we don't
10090 # have to do anything special.
10091 aix_use_runtimelinking=no
10092 exp_sym_flag='-Bexport'
10095 aix_use_runtimelinking=no
10097 # Test if we are trying to use run time linking or normal
10098 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10099 # need to do runtime linking.
10100 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10101 for ld_flag in $LDFLAGS; do
10104 aix_use_runtimelinking=yes
10111 exp_sym_flag='-bexport'
10112 no_entry_flag='-bnoentry'
10115 # When large executables or shared objects are built, AIX ld can
10116 # have problems creating the table of contents. If linking a library
10117 # or program results in "error TOC overflow" add -mminimal-toc to
10118 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10119 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10121 archive_cmds_CXX=''
10122 hardcode_direct_CXX=yes
10123 hardcode_libdir_separator_CXX=':'
10124 link_all_deplibs_CXX=yes
10126 if test "$GXX" = yes; then
10127 case $host_os in aix4.012|aix4.012.*)
10128 # We only want to do this on AIX 4.2 and lower, the check
10129 # below for broken collect2 doesn't work under 4.3+
10130 collect2name=`${CC} -print-prog-name=collect2`
10131 if test -f "$collect2name" && \
10132 strings "$collect2name" | grep resolve_lib_name >/dev/null
10134 # We have reworked collect2
10135 hardcode_direct_CXX=yes
10137 # We have old collect2
10138 hardcode_direct_CXX=unsupported
10139 # It fails to find uninstalled libraries when the uninstalled
10140 # path is not listed in the libpath. Setting hardcode_minus_L
10141 # to unsupported forces relinking
10142 hardcode_minus_L_CXX=yes
10143 hardcode_libdir_flag_spec_CXX='-L$libdir'
10144 hardcode_libdir_separator_CXX=
10147 shared_flag='-shared'
10150 if test "$host_cpu" = ia64; then
10151 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10152 # chokes on -Wl,-G. The following line is correct:
10155 if test "$aix_use_runtimelinking" = yes; then
10156 shared_flag='${wl}-G'
10158 shared_flag='${wl}-bM:SRE'
10163 # It seems that -bexpall does not export symbols beginning with
10164 # underscore (_), so it is better to generate a list of symbols to export.
10165 always_export_symbols_CXX=yes
10166 if test "$aix_use_runtimelinking" = yes; then
10167 # Warning - without using the other runtime loading flags (-brtl),
10168 # -berok will link without error, but may produce a broken library.
10169 allow_undefined_flag_CXX='-berok'
10170 # Determine the default libpath from the value encoded in an empty executable.
10171 cat >conftest.$ac_ext <<_ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10190 grep -v '^ *+' conftest.er1 >conftest.err
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10210 # Check for a 64-bit object if we didn't find anything.
10211 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10218 rm -f conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10222 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10224 archive_expsym_cmds_CXX="\$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"
10226 if test "$host_cpu" = ia64; then
10227 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10228 allow_undefined_flag_CXX="-z nodefs"
10229 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10231 # Determine the default libpath from the value encoded in an empty executable.
10232 cat >conftest.$ac_ext <<_ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249 (eval $ac_link) 2>conftest.er1
10251 grep -v '^ *+' conftest.er1 >conftest.err
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10271 # Check for a 64-bit object if we didn't find anything.
10272 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10279 rm -f conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10283 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10284 # Warning - without using the other run time loading flags,
10285 # -berok will link without error, but may produce a broken library.
10286 no_undefined_flag_CXX=' ${wl}-bernotok'
10287 allow_undefined_flag_CXX=' ${wl}-berok'
10288 # -bexpall does not export symbols beginning with underscore (_)
10289 always_export_symbols_CXX=yes
10290 # Exported symbols can be pulled into shared objects from archives
10291 whole_archive_flag_spec_CXX=' '
10292 archive_cmds_need_lc_CXX=yes
10293 # This is similar to how AIX traditionally builds it's shared libraries.
10294 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10299 case $cc_basename in
10301 # FIXME: insert proper C++ library support
10307 cygwin* | mingw* | pw32*)
10308 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10309 # as there is no search path for DLLs.
10310 hardcode_libdir_flag_spec_CXX='-L$libdir'
10311 allow_undefined_flag_CXX=unsupported
10312 always_export_symbols_CXX=no
10313 enable_shared_with_static_runtimes_CXX=yes
10315 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10316 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10317 # If the export-symbols file already is a .def file (1st line
10318 # is EXPORTS), use it as is; otherwise, prepend...
10319 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10320 cp $export_symbols $output_objdir/$soname.def;
10322 echo EXPORTS > $output_objdir/$soname.def;
10323 cat $export_symbols >> $output_objdir/$soname.def;
10325 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10331 darwin* | rhapsody*)
10332 if test "$GXX" = yes; then
10333 archive_cmds_need_lc_CXX=no
10335 rhapsody* | darwin1.[012])
10336 allow_undefined_flag_CXX='-undefined suppress'
10339 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10340 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10342 case ${MACOSX_DEPLOYMENT_TARGET} in
10344 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10347 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10353 lt_int_apple_cc_single_mod=no
10354 output_verbose_link_cmd='echo'
10355 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10356 lt_int_apple_cc_single_mod=yes
10358 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10359 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10361 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10363 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10366 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10367 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10369 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10371 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10372 hardcode_direct_CXX=no
10373 hardcode_automatic_CXX=yes
10374 hardcode_shlibpath_var_CXX=unsupported
10375 whole_archive_flag_spec_CXX='-all_load $convenience'
10376 link_all_deplibs_CXX=yes
10383 case $cc_basename in
10385 # FIXME: insert proper C++ library support
10389 # Green Hills C++ Compiler
10390 # FIXME: insert proper C++ library support
10394 # FIXME: insert proper C++ library support
10400 # C++ shared libraries reported to be fairly broken before switch to ELF
10404 archive_cmds_need_lc_CXX=no
10406 freebsd* | kfreebsd*-gnu)
10407 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10414 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10415 hardcode_libdir_separator_CXX=:
10416 export_dynamic_flag_spec_CXX='${wl}-E'
10417 hardcode_direct_CXX=yes
10418 hardcode_minus_L_CXX=yes # Not in the search PATH,
10419 # but as the default
10420 # location of the library.
10422 case $cc_basename in
10424 # FIXME: insert proper C++ library support
10428 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10429 # Commands to make compiler produce verbose output that lists
10430 # what "hidden" libraries, object files and flags are used when
10431 # linking a shared library.
10433 # There doesn't appear to be a way to prevent this compiler from
10434 # explicitly linking system object files so we need to strip them
10435 # from the output so that they don't get included in the library
10437 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10440 if test "$GXX" = yes; then
10441 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10443 # FIXME: insert proper C++ library support
10450 if test $with_gnu_ld = no; then
10451 case "$host_cpu" in
10453 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10454 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10455 hardcode_libdir_separator_CXX=:
10458 hardcode_libdir_flag_spec_CXX='-L$libdir'
10461 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10462 hardcode_libdir_separator_CXX=:
10463 export_dynamic_flag_spec_CXX='${wl}-E'
10467 case "$host_cpu" in
10469 hardcode_direct_CXX=no
10470 hardcode_shlibpath_var_CXX=no
10473 hardcode_direct_CXX=no
10474 hardcode_shlibpath_var_CXX=no
10475 hardcode_minus_L_CXX=yes # Not in the search PATH,
10476 # but as the default
10477 # location of the library.
10480 hardcode_direct_CXX=yes
10481 hardcode_minus_L_CXX=yes # Not in the search PATH,
10482 # but as the default
10483 # location of the library.
10487 case $cc_basename in
10489 # FIXME: insert proper C++ library support
10493 case "$host_cpu" in
10495 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10498 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10501 # Commands to make compiler produce verbose output that lists
10502 # what "hidden" libraries, object files and flags are used when
10503 # linking a shared library.
10505 # There doesn't appear to be a way to prevent this compiler from
10506 # explicitly linking system object files so we need to strip them
10507 # from the output so that they don't get included in the library
10509 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10512 if test "$GXX" = yes; then
10513 if test $with_gnu_ld = no; then
10514 case "$host_cpu" in
10516 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10519 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10524 # FIXME: insert proper C++ library support
10531 case $cc_basename in
10534 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10536 # Archives containing C++ object files must be created using
10537 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10538 # necessary to make sure instantiated templates are included
10540 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10543 if test "$GXX" = yes; then
10544 if test "$with_gnu_ld" = no; then
10545 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10547 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10550 link_all_deplibs_CXX=yes
10553 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10554 hardcode_libdir_separator_CXX=:
10557 case $cc_basename in
10559 # Kuck and Associates, Inc. (KAI) C++ Compiler
10561 # KCC will only create a shared library if the output file
10562 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10563 # to its proper name (with version) after linking.
10564 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10565 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10566 # Commands to make compiler produce verbose output that lists
10567 # what "hidden" libraries, object files and flags are used when
10568 # linking a shared library.
10570 # There doesn't appear to be a way to prevent this compiler from
10571 # explicitly linking system object files so we need to strip them
10572 # from the output so that they don't get included in the library
10574 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10576 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10577 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10579 # Archives containing C++ object files must be created using
10580 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10581 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10586 archive_cmds_need_lc_CXX=no
10587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10588 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10589 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10590 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10591 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10595 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10596 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10598 runpath_var=LD_RUN_PATH
10599 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10600 hardcode_libdir_separator_CXX=:
10602 # Commands to make compiler produce verbose output that lists
10603 # what "hidden" libraries, object files and flags are used when
10604 # linking a shared library.
10606 # There doesn't appear to be a way to prevent this compiler from
10607 # explicitly linking system object files so we need to strip them
10608 # from the output so that they don't get included in the library
10610 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10615 # FIXME: insert proper C++ library support
10619 # FIXME: insert proper C++ library support
10623 case $cc_basename in
10625 # FIXME: insert proper C++ library support
10629 # FIXME: insert proper C++ library support
10634 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10636 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10638 hardcode_libdir_flag_spec_CXX='-R$libdir'
10639 hardcode_direct_CXX=yes
10640 hardcode_shlibpath_var_CXX=no
10642 # Workaround some broken pre-1.5 toolchains
10643 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10646 case $cc_basename in
10648 # Kuck and Associates, Inc. (KAI) C++ Compiler
10650 # KCC will only create a shared library if the output file
10651 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10652 # to its proper name (with version) after linking.
10653 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10656 hardcode_libdir_separator_CXX=:
10658 # Archives containing C++ object files must be created using
10659 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10660 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10664 # Rational C++ 2.4.1
10665 # FIXME: insert proper C++ library support
10669 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10670 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10673 hardcode_libdir_separator_CXX=:
10675 # Commands to make compiler produce verbose output that lists
10676 # what "hidden" libraries, object files and flags are used when
10677 # linking a shared library.
10679 # There doesn't appear to be a way to prevent this compiler from
10680 # explicitly linking system object files so we need to strip them
10681 # from the output so that they don't get included in the library
10683 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10686 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10687 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10688 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10691 hardcode_libdir_separator_CXX=:
10693 # Commands to make compiler produce verbose output that lists
10694 # what "hidden" libraries, object files and flags are used when
10695 # linking a shared library.
10696 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10699 # FIXME: insert proper C++ library support
10706 case $cc_basename in
10708 # Kuck and Associates, Inc. (KAI) C++ Compiler
10710 # KCC will only create a shared library if the output file
10711 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10712 # to its proper name (with version) after linking.
10713 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10716 hardcode_libdir_separator_CXX=:
10718 # Archives containing C++ object files must be created using
10719 # the KAI C++ compiler.
10720 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10723 # Rational C++ 2.4.1
10724 # FIXME: insert proper C++ library support
10728 allow_undefined_flag_CXX=' -expect_unresolved \*'
10729 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10730 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10731 echo "-hidden">> $lib.exp~
10732 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10735 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10736 hardcode_libdir_separator_CXX=:
10738 # Commands to make compiler produce verbose output that lists
10739 # what "hidden" libraries, object files and flags are used when
10740 # linking a shared library.
10742 # There doesn't appear to be a way to prevent this compiler from
10743 # explicitly linking system object files so we need to strip them
10744 # from the output so that they don't get included in the library
10746 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10750 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10751 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10754 hardcode_libdir_separator_CXX=:
10756 # Commands to make compiler produce verbose output that lists
10757 # what "hidden" libraries, object files and flags are used when
10758 # linking a shared library.
10759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10762 # FIXME: insert proper C++ library support
10769 # FIXME: insert proper C++ library support
10773 archive_cmds_need_lc_CXX=no
10774 case $cc_basename in
10776 # FIXME: insert proper C++ library support
10780 # FIXME: insert proper C++ library support
10786 case $cc_basename in
10789 # FIXME: insert proper C++ library support
10794 # FIXME: insert proper C++ library support
10798 # FIXME: insert proper C++ library support
10804 case $cc_basename in
10806 # Sun C++ 4.2, 5.x and Centerline C++
10807 no_undefined_flag_CXX=' -zdefs'
10808 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10809 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10810 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10812 hardcode_libdir_flag_spec_CXX='-R$libdir'
10813 hardcode_shlibpath_var_CXX=no
10815 solaris2.0-5 | solaris2.0-5.*) ;;
10817 # The C++ compiler is used as linker so we must use $wl
10818 # flag to pass the commands to the underlying system
10820 # Supported since Solaris 2.6 (maybe 2.5.1?)
10821 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10824 link_all_deplibs_CXX=yes
10826 # Commands to make compiler produce verbose output that lists
10827 # what "hidden" libraries, object files and flags are used when
10828 # linking a shared library.
10830 # There doesn't appear to be a way to prevent this compiler from
10831 # explicitly linking system object files so we need to strip them
10832 # from the output so that they don't get included in the library
10834 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10836 # Archives containing C++ object files must be created using
10837 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10838 # necessary to make sure instantiated templates are included
10840 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10843 # Green Hills C++ Compiler
10844 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10846 # The C++ compiler must be used to create the archive.
10847 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10850 # GNU C++ compiler with Solaris linker
10851 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10852 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10853 if $CC --version | grep -v '^2\.7' > /dev/null; then
10854 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10855 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10856 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10858 # Commands to make compiler produce verbose output that lists
10859 # what "hidden" libraries, object files and flags are used when
10860 # linking a shared library.
10861 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10863 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10865 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10866 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10867 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10869 # Commands to make compiler produce verbose output that lists
10870 # what "hidden" libraries, object files and flags are used when
10871 # linking a shared library.
10872 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10875 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10880 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10881 archive_cmds_need_lc_CXX=no
10884 case $cc_basename in
10886 # NonStop-UX NCC 3.20
10887 # FIXME: insert proper C++ library support
10891 # FIXME: insert proper C++ library support
10897 # FIXME: insert proper C++ library support
10901 # FIXME: insert proper C++ library support
10905 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10906 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10907 test "$ld_shlibs_CXX" = no && can_build_shared=no
10913 cat > conftest.$ac_ext <<EOF
10917 Foo (void) { a = 0; }
10923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924 (eval $ac_compile) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; then
10928 # Parse the compiler output and extract the necessary
10929 # objects, libraries and library flags.
10931 # Sentinel used to keep track of whether or not we are before
10932 # the conftest object file.
10933 pre_test_object_deps_done=no
10935 # The `*' in the case matches for architectures that use `case' in
10936 # $output_verbose_cmd can trigger glob expansion during the loop
10937 # eval without this substitution.
10938 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10940 for p in `eval $output_verbose_link_cmd`; do
10944 # Some compilers place space between "-{L,R}" and the path.
10945 # Remove the space.
10946 if test $p = "-L" \
10947 || test $p = "-R"; then
10954 if test "$pre_test_object_deps_done" = no; then
10957 # Internal compiler library paths should come after those
10958 # provided the user. The postdeps already come after the
10959 # user supplied libs so there is no need to process them.
10960 if test -z "$compiler_lib_search_path_CXX"; then
10961 compiler_lib_search_path_CXX="${prev}${p}"
10963 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10966 # The "-l" case would never come before the object being
10967 # linked, so don't bother handling this case.
10970 if test -z "$postdeps_CXX"; then
10971 postdeps_CXX="${prev}${p}"
10973 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10979 # This assumes that the test object file only shows up
10980 # once in the compiler output.
10981 if test "$p" = "conftest.$objext"; then
10982 pre_test_object_deps_done=yes
10986 if test "$pre_test_object_deps_done" = no; then
10987 if test -z "$predep_objects_CXX"; then
10988 predep_objects_CXX="$p"
10990 predep_objects_CXX="$predep_objects_CXX $p"
10993 if test -z "$postdep_objects_CXX"; then
10994 postdep_objects_CXX="$p"
10996 postdep_objects_CXX="$postdep_objects_CXX $p"
11001 *) ;; # Ignore the rest.
11009 echo "libtool.m4: error: problem compiling CXX test program"
11012 $rm -f confest.$objext
11014 case " $postdeps_CXX " in
11015 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11018 lt_prog_compiler_wl_CXX=
11019 lt_prog_compiler_pic_CXX=
11020 lt_prog_compiler_static_CXX=
11022 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11023 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11025 # C++ specific cases for pic, static, wl, etc.
11026 if test "$GXX" = yes; then
11027 lt_prog_compiler_wl_CXX='-Wl,'
11028 lt_prog_compiler_static_CXX='-static'
11032 # All AIX code is PIC.
11033 if test "$host_cpu" = ia64; then
11034 # AIX 5 now supports IA64 processor
11035 lt_prog_compiler_static_CXX='-Bstatic'
11039 # FIXME: we need at least 68020 code to build shared libraries, but
11040 # adding the `-m68020' flag to GCC prevents building anything better,
11042 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11044 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11045 # PIC is the default for these OSes.
11047 mingw* | os2* | pw32*)
11048 # This hack is so that the source file can tell whether it is being
11049 # built for inclusion in a dll (and should export symbols for example).
11050 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11052 darwin* | rhapsody*)
11053 # PIC is the default on this platform
11054 # Common symbols not allowed in MH_DYLIB files
11055 lt_prog_compiler_pic_CXX='-fno-common'
11058 # DJGPP does not support shared libraries at all
11059 lt_prog_compiler_pic_CXX=
11062 if test -d /usr/nec; then
11063 lt_prog_compiler_pic_CXX=-Kconform_pic
11067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11068 # not for PA HP-UX.
11069 case "$host_cpu" in
11073 lt_prog_compiler_pic_CXX='-fPIC'
11078 lt_prog_compiler_pic_CXX='-fPIC'
11084 # All AIX code is PIC.
11085 if test "$host_cpu" = ia64; then
11086 # AIX 5 now supports IA64 processor
11087 lt_prog_compiler_static_CXX='-Bstatic'
11089 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11093 case $cc_basename in
11095 # Green Hills C++ Compiler
11096 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11101 case $cc_basename in
11103 lt_prog_compiler_pic_CXX='-KPIC'
11106 # Green Hills C++ Compiler
11107 lt_prog_compiler_pic_CXX='-pic'
11113 freebsd* | kfreebsd*-gnu)
11114 # FreeBSD uses GNU C++
11116 hpux9* | hpux10* | hpux11*)
11117 case $cc_basename in
11119 lt_prog_compiler_wl_CXX='-Wl,'
11120 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11121 if test "$host_cpu" != ia64; then
11122 lt_prog_compiler_pic_CXX='+Z'
11126 lt_prog_compiler_wl_CXX='-Wl,'
11127 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11128 case "$host_cpu" in
11133 lt_prog_compiler_pic_CXX='+Z'
11141 irix5* | irix6* | nonstopux*)
11142 case $cc_basename in
11144 lt_prog_compiler_wl_CXX='-Wl,'
11145 lt_prog_compiler_static_CXX='-non_shared'
11146 # CC pic flag -KPIC is the default.
11153 case $cc_basename in
11156 lt_prog_compiler_wl_CXX='--backend -Wl,'
11157 lt_prog_compiler_pic_CXX='-fPIC'
11161 lt_prog_compiler_wl_CXX='-Wl,'
11162 lt_prog_compiler_pic_CXX='-KPIC'
11163 lt_prog_compiler_static_CXX='-static'
11167 # Make sure the PIC flag is empty. It appears that all Alpha
11168 # Linux and Compaq Tru64 Unix objects are PIC.
11169 lt_prog_compiler_pic_CXX=
11170 lt_prog_compiler_static_CXX='-non_shared'
11181 case $cc_basename in
11183 lt_prog_compiler_pic_CXX='-W c,exportall'
11189 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11191 osf3* | osf4* | osf5*)
11192 case $cc_basename in
11194 lt_prog_compiler_wl_CXX='--backend -Wl,'
11197 # Rational C++ 2.4.1
11198 lt_prog_compiler_pic_CXX='-pic'
11201 # Digital/Compaq C++
11202 lt_prog_compiler_wl_CXX='-Wl,'
11203 # Make sure the PIC flag is empty. It appears that all Alpha
11204 # Linux and Compaq Tru64 Unix objects are PIC.
11205 lt_prog_compiler_pic_CXX=
11206 lt_prog_compiler_static_CXX='-non_shared'
11215 case $cc_basename in
11217 lt_prog_compiler_pic_CXX='-fPIC'
11224 case $cc_basename in
11226 # Sun C++ 4.2, 5.x and Centerline C++
11227 lt_prog_compiler_pic_CXX='-KPIC'
11228 lt_prog_compiler_static_CXX='-Bstatic'
11229 lt_prog_compiler_wl_CXX='-Qoption ld '
11232 # Green Hills C++ Compiler
11233 lt_prog_compiler_pic_CXX='-PIC'
11240 case $cc_basename in
11243 lt_prog_compiler_pic_CXX='-pic'
11244 lt_prog_compiler_static_CXX='-Bstatic'
11248 lt_prog_compiler_pic_CXX='-pic'
11255 case $cc_basename in
11257 # NonStop-UX NCC 3.20
11258 lt_prog_compiler_pic_CXX='-KPIC'
11269 lt_prog_compiler_can_build_shared_CXX=no
11274 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11275 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11278 # Check to make sure the PIC flag actually works.
11280 if test -n "$lt_prog_compiler_pic_CXX"; then
11282 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11284 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 lt_prog_compiler_pic_works_CXX=no
11288 ac_outfile=conftest.$ac_objext
11289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11290 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11291 # Insert the option either (1) after the last *FLAGS variable, or
11292 # (2) before a word containing "conftest.", or (3) at the end.
11293 # Note that $ac_compile itself does not contain backslashes and begins
11294 # with a dollar sign (not a hyphen), so the echo should work correctly.
11295 # The option is referenced via a variable to avoid confusing sed.
11296 lt_compile=`echo "$ac_compile" | $SED \
11297 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11299 -e 's:$: $lt_compiler_flag:'`
11300 (eval echo "\"\$as_me:11300: $lt_compile\"" >&5)
11301 (eval "$lt_compile" 2>conftest.err)
11303 cat conftest.err >&5
11304 echo "$as_me:11304: \$? = $ac_status" >&5
11305 if (exit $ac_status) && test -s "$ac_outfile"; then
11306 # The compiler can only warn and ignore the option if not recognized
11307 # So say no if there are warnings
11308 if test ! -s conftest.err; then
11309 lt_prog_compiler_pic_works_CXX=yes
11315 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11316 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11318 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11319 case $lt_prog_compiler_pic_CXX in
11321 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11324 lt_prog_compiler_pic_CXX=
11325 lt_prog_compiler_can_build_shared_CXX=no
11330 # For platforms which do not support PIC, -DPIC is meaningless:
11332 lt_prog_compiler_pic_CXX=
11335 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11339 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11340 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11341 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11344 lt_cv_prog_compiler_c_o_CXX=no
11345 $rm -r conftest 2>/dev/null
11349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11351 lt_compiler_flag="-o out/conftest2.$ac_objext"
11352 # Insert the option either (1) after the last *FLAGS variable, or
11353 # (2) before a word containing "conftest.", or (3) at the end.
11354 # Note that $ac_compile itself does not contain backslashes and begins
11355 # with a dollar sign (not a hyphen), so the echo should work correctly.
11356 lt_compile=`echo "$ac_compile" | $SED \
11357 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11359 -e 's:$: $lt_compiler_flag:'`
11360 (eval echo "\"\$as_me:11360: $lt_compile\"" >&5)
11361 (eval "$lt_compile" 2>out/conftest.err)
11363 cat out/conftest.err >&5
11364 echo "$as_me:11364: \$? = $ac_status" >&5
11365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11367 # The compiler can only warn and ignore the option if not recognized
11368 # So say no if there are warnings
11369 if test ! -s out/conftest.err; then
11370 lt_cv_prog_compiler_c_o_CXX=yes
11375 # SGI C++ compiler will create directory out/ii_files/ for
11376 # template instantiation
11377 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11378 $rm out/* && rmdir out
11384 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11385 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11388 hard_links="nottested"
11389 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11390 # do not overwrite the value of need_locks provided by the user
11391 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11392 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11397 ln conftest.a conftest.b 2>&5 || hard_links=no
11398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11399 echo "$as_me:$LINENO: result: $hard_links" >&5
11400 echo "${ECHO_T}$hard_links" >&6
11401 if test "$hard_links" = no; then
11402 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11403 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11410 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11411 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11413 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11416 # If we're using GNU nm, then we don't want the "-C" option.
11417 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11418 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11419 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11421 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11425 export_symbols_cmds_CXX="$ltdll_cmds"
11428 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11431 link_all_deplibs_CXX=no
11434 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11438 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11439 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11440 test "$ld_shlibs_CXX" = no && can_build_shared=no
11442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11443 if test "$GCC" = yes; then
11444 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11448 # Do we need to explicitly link libc?
11450 case "x$archive_cmds_need_lc_CXX" in
11452 # Assume -lc should be added
11453 archive_cmds_need_lc_CXX=yes
11455 if test "$enable_shared" = yes && test "$GCC" = yes; then
11456 case $archive_cmds_CXX in
11458 # FIXME: we may have to deal with multi-command sequences.
11461 # Test whether the compiler implicitly links with -lc since on some
11462 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11463 # to ld, don't add -lc before -lgcc.
11464 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11465 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470 (eval $ac_compile) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } 2>conftest.err; then
11476 libobjs=conftest.$ac_objext
11478 wl=$lt_prog_compiler_wl_CXX
11484 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11485 allow_undefined_flag_CXX=
11486 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11487 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }
11492 archive_cmds_need_lc_CXX=no
11494 archive_cmds_need_lc_CXX=yes
11496 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11498 cat conftest.err 1>&5
11501 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11502 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11509 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11510 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11511 library_names_spec=
11512 libname_spec='lib$name'
11516 postuninstall_cmds=
11520 shlibpath_overrides_runpath=unknown
11522 dynamic_linker="$host_os ld.so"
11523 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11524 if test "$GCC" = yes; then
11525 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11526 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11527 # if the path contains ";" then we assume it to be the separator
11528 # otherwise default to the standard path separator (i.e. ":") - it is
11529 # assumed that no part of a normal pathname contains ";" but that should
11530 # okay in the real world where ";" in dirpaths is itself problematic.
11531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11536 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11538 need_lib_prefix=unknown
11539 hardcode_into_libs=no
11541 # when you set need_version to no, make sure it does not cause -set_version
11542 # flags to be left without arguments
11543 need_version=unknown
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11549 shlibpath_var=LIBPATH
11551 # AIX 3 has no versioning support, so we append a major version to the name.
11552 soname_spec='${libname}${release}${shared_ext}$major'
11559 hardcode_into_libs=yes
11560 if test "$host_cpu" = ia64; then
11561 # AIX 5 supports IA64
11562 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11563 shlibpath_var=LD_LIBRARY_PATH
11565 # With GCC up to 2.95.x, collect2 would create an import file
11566 # for dependence libraries. The import file would start with
11567 # the line `#! .'. This would cause the generated library to
11568 # depend on `.', always an invalid library. This was fixed in
11569 # development snapshots of GCC prior to 3.0.
11571 aix4 | aix4.[01] | aix4.[01].*)
11572 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11574 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11577 can_build_shared=no
11581 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11582 # soname into executable. Probably we can add versioning support to
11583 # collect2, so additional links can be useful in future.
11584 if test "$aix_use_runtimelinking" = yes; then
11585 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11586 # instead of lib<name>.a to let people know that these are not
11587 # typical AIX shared libraries.
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590 # We preserve .a as extension for shared libraries through AIX4.2
11591 # and later when we are not doing run time linking.
11592 library_names_spec='${libname}${release}.a $libname.a'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11595 shlibpath_var=LIBPATH
11600 library_names_spec='$libname.ixlibrary $libname.a'
11601 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11602 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'
11606 library_names_spec='${libname}${shared_ext}'
11607 dynamic_linker="$host_os ld.so"
11608 shlibpath_var=LIBRARY_PATH
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11619 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11620 # the default ld.so.conf also contains /usr/contrib/lib and
11621 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11622 # libtool to hard-code these into programs
11625 cygwin* | mingw* | pw32*)
11626 version_type=windows
11631 case $GCC,$host_os in
11632 yes,cygwin* | yes,mingw* | yes,pw32*)
11633 library_names_spec='$libname.dll.a'
11634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11635 postinstall_cmds='base_file=`basename \${file}`~
11636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11637 dldir=$destdir/`dirname \$dlpath`~
11638 test -d \$dldir || mkdir -p \$dldir~
11639 $install_prog $dir/$dlname \$dldir/$dlname'
11640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11641 dlpath=$dir/\$dldll~
11643 shlibpath_overrides_runpath=yes
11647 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11648 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11649 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11652 # MinGW DLLs use traditional 'lib' prefix
11653 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11654 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11655 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11656 # It is most probably a Windows format PATH printed by
11657 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11658 # path with ; separators, and with drive letters. We can handle the
11659 # drive letters (cygwin fileutils understands them), so leave them,
11660 # especially as we might pass files found there to a mingw objdump,
11661 # which wouldn't understand a cygwinified path. Ahh.
11662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11668 # pw32 DLLs use 'pw' prefix rather than 'lib'
11669 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11675 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11678 dynamic_linker='Win32 ld.exe'
11679 # FIXME: first we should search . and the directory the executable is in
11683 darwin* | rhapsody*)
11684 dynamic_linker="$host_os dyld"
11685 version_type=darwin
11688 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11689 soname_spec='${libname}${release}${major}$shared_ext'
11690 shlibpath_overrides_runpath=yes
11691 shlibpath_var=DYLD_LIBRARY_PATH
11692 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11693 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11694 if test "$GCC" = yes; then
11695 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11697 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11699 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 shlibpath_overrides_runpath=no
11723 hardcode_into_libs=yes
11724 dynamic_linker='GNU ld.so'
11728 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11729 version_type=freebsd-$objformat
11730 case $version_type in
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11741 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=yes
11746 freebsd3.01* | freebsdelf3.01*)
11747 shlibpath_overrides_runpath=yes
11748 hardcode_into_libs=yes
11751 shlibpath_overrides_runpath=no
11752 hardcode_into_libs=yes
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 hardcode_into_libs=yes
11767 hpux9* | hpux10* | hpux11*)
11768 # Give a soname corresponding to the major version so that dld.sl refuses to
11769 # link against other versions.
11773 case "$host_cpu" in
11776 hardcode_into_libs=yes
11777 dynamic_linker="$host_os dld.so"
11778 shlibpath_var=LD_LIBRARY_PATH
11779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 if test "X$HPUX_IA64_MODE" = X32; then
11783 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11785 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11791 hardcode_into_libs=yes
11792 dynamic_linker="$host_os dld.sl"
11793 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11802 dynamic_linker="$host_os dld.sl"
11803 shlibpath_var=SHLIB_PATH
11804 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 soname_spec='${libname}${release}${shared_ext}$major'
11809 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11810 postinstall_cmds='chmod 555 $lib'
11813 irix5* | irix6* | nonstopux*)
11815 nonstopux*) version_type=nonstopux ;;
11817 if test "$lt_cv_prog_gnu_ld" = yes; then
11825 soname_spec='${libname}${release}${shared_ext}$major'
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11828 irix5* | nonstopux*)
11829 libsuff= shlibsuff=
11832 case $LD in # libtool.m4 will add one of these switches to LD
11833 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11834 libsuff= shlibsuff= libmagic=32-bit;;
11835 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11836 libsuff=32 shlibsuff=N32 libmagic=N32;;
11837 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11838 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11839 *) libsuff= shlibsuff= libmagic=never-match;;
11843 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11844 shlibpath_overrides_runpath=no
11845 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11846 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11847 hardcode_into_libs=yes
11850 # No shared lib support for Linux oldld, aout, or coff.
11851 linux*oldld* | linux*aout* | linux*coff*)
11855 # This must be Linux ELF.
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 soname_spec='${libname}${release}${shared_ext}$major'
11862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=no
11865 # This implies no fast_install, which is unacceptable.
11866 # Some rework will be needed to allow for fast_install
11867 # before this can be enabled.
11868 hardcode_into_libs=yes
11870 # Append ld.so.conf contents to the search path
11871 if test -f /etc/ld.so.conf; then
11872 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11873 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11876 # We used to test for /lib/ld.so.1 and disable shared libraries on
11877 # powerpc, because MkLinux only supported shared libraries with the
11878 # GNU dynamic linker. Since this was broken with cross compilers,
11879 # most powerpc-linux boxes support dynamic linking these days and
11880 # people can always --disable-shared, the test was removed, and we
11881 # assume the GNU/Linux dynamic linker is in use.
11882 dynamic_linker='GNU/Linux ld.so'
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=no
11893 hardcode_into_libs=yes
11894 dynamic_linker='NetBSD ld.elf_so'
11901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11902 soname_spec='${libname}${release}${shared_ext}$major'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 shlibpath_overrides_runpath=no
11905 hardcode_into_libs=yes
11906 dynamic_linker='GNU ld.so'
11913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11916 dynamic_linker='NetBSD (a.out) ld.so'
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11919 soname_spec='${libname}${release}${shared_ext}$major'
11920 dynamic_linker='NetBSD ld.elf_so'
11922 shlibpath_var=LD_LIBRARY_PATH
11923 shlibpath_overrides_runpath=yes
11924 hardcode_into_libs=yes
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=yes
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=yes
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11953 openbsd2.[89] | openbsd2.[89].*)
11954 shlibpath_overrides_runpath=no
11957 shlibpath_overrides_runpath=yes
11961 shlibpath_overrides_runpath=yes
11966 libname_spec='$name'
11969 library_names_spec='$libname${shared_ext} $libname.a'
11970 dynamic_linker='OS/2 ld.exe'
11971 shlibpath_var=LIBPATH
11974 osf3* | osf4* | osf5*)
11978 soname_spec='${libname}${release}${shared_ext}$major'
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11980 shlibpath_var=LD_LIBRARY_PATH
11981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11982 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11987 soname_spec='${libname}${release}${shared_ext}$major'
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11989 shlibpath_var=LD_LIBRARY_PATH
11996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11997 soname_spec='${libname}${release}${shared_ext}$major'
11998 shlibpath_var=LD_LIBRARY_PATH
11999 shlibpath_overrides_runpath=yes
12000 hardcode_into_libs=yes
12001 # ldd complains unless libraries are executable
12002 postinstall_cmds='chmod +x $lib'
12007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12008 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12009 shlibpath_var=LD_LIBRARY_PATH
12010 shlibpath_overrides_runpath=yes
12011 if test "$with_gnu_ld" = yes; then
12017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020 soname_spec='${libname}${release}${shared_ext}$major'
12021 shlibpath_var=LD_LIBRARY_PATH
12022 case $host_vendor in
12024 shlibpath_overrides_runpath=no
12026 export_dynamic_flag_spec='${wl}-Blargedynsym'
12027 runpath_var=LD_RUN_PATH
12035 shlibpath_overrides_runpath=no
12036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12042 if test -d /usr/nec ;then
12044 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12045 soname_spec='$libname${shared_ext}.$major'
12046 shlibpath_var=LD_LIBRARY_PATH
12052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12053 soname_spec='${libname}${release}${shared_ext}$major'
12054 shlibpath_var=LD_LIBRARY_PATH
12061 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12062 echo "${ECHO_T}$dynamic_linker" >&6
12063 test "$dynamic_linker" = no && can_build_shared=no
12065 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12066 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12067 hardcode_action_CXX=
12068 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12069 test -n "$runpath_var CXX" || \
12070 test "X$hardcode_automatic_CXX"="Xyes" ; then
12072 # We can hardcode non-existant directories.
12073 if test "$hardcode_direct_CXX" != no &&
12074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12075 # have to relink, otherwise we might link with an installed library
12076 # when we should be linking with a yet-to-be-installed one
12077 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12078 test "$hardcode_minus_L_CXX" != no; then
12079 # Linking always hardcodes the temporary library directory.
12080 hardcode_action_CXX=relink
12082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12083 hardcode_action_CXX=immediate
12086 # We cannot hardcode anything, or else we can only hardcode existing
12088 hardcode_action_CXX=unsupported
12090 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12091 echo "${ECHO_T}$hardcode_action_CXX" >&6
12093 if test "$hardcode_action_CXX" = relink; then
12094 # Fast installation is not supported
12095 enable_fast_install=no
12096 elif test "$shlibpath_overrides_runpath" = yes ||
12097 test "$enable_shared" = no; then
12098 # Fast installation is not necessary
12099 enable_fast_install=needless
12104 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12105 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12106 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12107 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12108 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12109 echo "$as_me:$LINENO: result: yes" >&5
12110 echo "${ECHO_T}yes" >&6
12112 # FIXME - insert some real tests, host_os isn't really good enough
12115 if test -n "$STRIP" ; then
12116 striplib="$STRIP -x"
12117 echo "$as_me:$LINENO: result: yes" >&5
12118 echo "${ECHO_T}yes" >&6
12120 echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6
12125 echo "$as_me:$LINENO: result: no" >&5
12126 echo "${ECHO_T}no" >&6
12131 if test "x$enable_dlopen" != xyes; then
12132 enable_dlopen=unknown
12133 enable_dlopen_self=unknown
12134 enable_dlopen_self_static=unknown
12141 lt_cv_dlopen="load_add_on"
12143 lt_cv_dlopen_self=yes
12147 lt_cv_dlopen="LoadLibrary"
12152 lt_cv_dlopen="dlopen"
12157 # if libdl is installed we need to link against it
12158 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12159 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12160 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 ac_check_lib_save_LIBS=$LIBS
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12172 /* Override any gcc2 internal prototype to avoid an error. */
12176 /* We use char because int might match the return type of a gcc2
12177 builtin and then its argument prototype would still apply. */
12187 rm -f conftest.$ac_objext conftest$ac_exeext
12188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12189 (eval $ac_link) 2>conftest.er1
12191 grep -v '^ *+' conftest.er1 >conftest.err
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; } &&
12202 { ac_try='test -s conftest$ac_exeext'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 ac_cv_lib_dl_dlopen=yes
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12213 ac_cv_lib_dl_dlopen=no
12215 rm -f conftest.err conftest.$ac_objext \
12216 conftest$ac_exeext conftest.$ac_ext
12217 LIBS=$ac_check_lib_save_LIBS
12219 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12220 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12221 if test $ac_cv_lib_dl_dlopen = yes; then
12222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12225 lt_cv_dlopen="dyld"
12227 lt_cv_dlopen_self=yes
12234 echo "$as_me:$LINENO: checking for shl_load" >&5
12235 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12236 if test "${ac_cv_func_shl_load+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12247 #define shl_load innocuous_shl_load
12249 /* System header to define __stub macros and hopefully few prototypes,
12250 which can conflict with char shl_load (); below.
12251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12252 <limits.h> exists even on freestanding compilers. */
12255 # include <limits.h>
12257 # include <assert.h>
12262 /* Override any gcc2 internal prototype to avoid an error. */
12267 /* We use char because int might match the return type of a gcc2
12268 builtin and then its argument prototype would still apply. */
12270 /* The GNU C library defines this for functions which it implements
12271 to always fail with ENOSYS. Some functions are actually named
12272 something starting with __ and the normal name is an alias. */
12273 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12276 char (*f) () = shl_load;
12285 return f != shl_load;
12290 rm -f conftest.$ac_objext conftest$ac_exeext
12291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12292 (eval $ac_link) 2>conftest.er1
12294 grep -v '^ *+' conftest.er1 >conftest.err
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_func_shl_load=yes
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_cv_func_shl_load=no
12318 rm -f conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12321 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12322 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12323 if test $ac_cv_func_shl_load = yes; then
12324 lt_cv_dlopen="shl_load"
12326 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12327 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12328 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 ac_check_lib_save_LIBS=$LIBS
12333 cat >conftest.$ac_ext <<_ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12340 /* Override any gcc2 internal prototype to avoid an error. */
12344 /* We use char because int might match the return type of a gcc2
12345 builtin and then its argument prototype would still apply. */
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357 (eval $ac_link) 2>conftest.er1
12359 grep -v '^ *+' conftest.er1 >conftest.err
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_lib_dld_shl_load=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_lib_dld_shl_load=no
12383 rm -f conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12387 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12388 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12389 if test $ac_cv_lib_dld_shl_load = yes; then
12390 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12392 echo "$as_me:$LINENO: checking for dlopen" >&5
12393 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12394 if test "${ac_cv_func_dlopen+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 cat >conftest.$ac_ext <<_ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12403 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12405 #define dlopen innocuous_dlopen
12407 /* System header to define __stub macros and hopefully few prototypes,
12408 which can conflict with char dlopen (); below.
12409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12410 <limits.h> exists even on freestanding compilers. */
12413 # include <limits.h>
12415 # include <assert.h>
12420 /* Override any gcc2 internal prototype to avoid an error. */
12425 /* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12428 /* The GNU C library defines this for functions which it implements
12429 to always fail with ENOSYS. Some functions are actually named
12430 something starting with __ and the normal name is an alias. */
12431 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12434 char (*f) () = dlopen;
12443 return f != dlopen;
12448 rm -f conftest.$ac_objext conftest$ac_exeext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12450 (eval $ac_link) 2>conftest.er1
12452 grep -v '^ *+' conftest.er1 >conftest.err
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest$ac_exeext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_cv_func_dlopen=yes
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12474 ac_cv_func_dlopen=no
12476 rm -f conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12479 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12480 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12481 if test $ac_cv_func_dlopen = yes; then
12482 lt_cv_dlopen="dlopen"
12484 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12485 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12486 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 ac_check_lib_save_LIBS=$LIBS
12491 cat >conftest.$ac_ext <<_ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12498 /* Override any gcc2 internal prototype to avoid an error. */
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12515 (eval $ac_link) 2>conftest.er1
12517 grep -v '^ *+' conftest.er1 >conftest.err
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest$ac_exeext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_lib_dl_dlopen=yes
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 ac_cv_lib_dl_dlopen=no
12541 rm -f conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12545 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12546 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12547 if test $ac_cv_lib_dl_dlopen = yes; then
12548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12550 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12551 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12552 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 ac_check_lib_save_LIBS=$LIBS
12556 LIBS="-lsvld $LIBS"
12557 cat >conftest.$ac_ext <<_ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12564 /* Override any gcc2 internal prototype to avoid an error. */
12568 /* We use char because int might match the return type of a gcc2
12569 builtin and then its argument prototype would still apply. */
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12581 (eval $ac_link) 2>conftest.er1
12583 grep -v '^ *+' conftest.er1 >conftest.err
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest$ac_exeext'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; }; then
12600 ac_cv_lib_svld_dlopen=yes
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 ac_cv_lib_svld_dlopen=no
12607 rm -f conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12611 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12612 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12613 if test $ac_cv_lib_svld_dlopen = yes; then
12614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12616 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12617 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12618 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 ac_check_lib_save_LIBS=$LIBS
12623 cat >conftest.$ac_ext <<_ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12630 /* Override any gcc2 internal prototype to avoid an error. */
12634 /* We use char because int might match the return type of a gcc2
12635 builtin and then its argument prototype would still apply. */
12645 rm -f conftest.$ac_objext conftest$ac_exeext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647 (eval $ac_link) 2>conftest.er1
12649 grep -v '^ *+' conftest.er1 >conftest.err
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; } &&
12660 { ac_try='test -s conftest$ac_exeext'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 ac_cv_lib_dld_dld_link=yes
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 ac_cv_lib_dld_dld_link=no
12673 rm -f conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 LIBS=$ac_check_lib_save_LIBS
12677 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12678 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12679 if test $ac_cv_lib_dld_dld_link = yes; then
12680 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12701 if test "x$lt_cv_dlopen" != xno; then
12707 case $lt_cv_dlopen in
12709 save_CPPFLAGS="$CPPFLAGS"
12710 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12712 save_LDFLAGS="$LDFLAGS"
12713 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12716 LIBS="$lt_cv_dlopen_libs $LIBS"
12718 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12719 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12720 if test "${lt_cv_dlopen_self+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 if test "$cross_compiling" = yes; then :
12724 lt_cv_dlopen_self=cross
12726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12727 lt_status=$lt_dlunknown
12728 cat > conftest.$ac_ext <<EOF
12729 #line 12729 "configure"
12730 #include "confdefs.h"
12739 # define LT_DLGLOBAL RTLD_GLOBAL
12742 # define LT_DLGLOBAL DL_GLOBAL
12744 # define LT_DLGLOBAL 0
12748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12749 find out it does not work in some platform. */
12750 #ifndef LT_DLLAZY_OR_NOW
12752 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12755 # define LT_DLLAZY_OR_NOW DL_LAZY
12758 # define LT_DLLAZY_OR_NOW RTLD_NOW
12761 # define LT_DLLAZY_OR_NOW DL_NOW
12763 # define LT_DLLAZY_OR_NOW 0
12771 extern "C" void exit (int);
12774 void fnord() { int i=42;}
12777 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12778 int status = $lt_dlunknown;
12782 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12783 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12784 /* dlclose (self); */
12790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791 (eval $ac_link) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12795 (./conftest; exit; ) 2>/dev/null
12797 case x$lt_status in
12798 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12799 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12800 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12803 # compilation failed
12804 lt_cv_dlopen_self=no
12811 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12812 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12814 if test "x$lt_cv_dlopen_self" = xyes; then
12815 LDFLAGS="$LDFLAGS $link_static_flag"
12816 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12817 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12818 if test "${lt_cv_dlopen_self_static+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 if test "$cross_compiling" = yes; then :
12822 lt_cv_dlopen_self_static=cross
12824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12825 lt_status=$lt_dlunknown
12826 cat > conftest.$ac_ext <<EOF
12827 #line 12827 "configure"
12828 #include "confdefs.h"
12837 # define LT_DLGLOBAL RTLD_GLOBAL
12840 # define LT_DLGLOBAL DL_GLOBAL
12842 # define LT_DLGLOBAL 0
12846 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12847 find out it does not work in some platform. */
12848 #ifndef LT_DLLAZY_OR_NOW
12850 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12853 # define LT_DLLAZY_OR_NOW DL_LAZY
12856 # define LT_DLLAZY_OR_NOW RTLD_NOW
12859 # define LT_DLLAZY_OR_NOW DL_NOW
12861 # define LT_DLLAZY_OR_NOW 0
12869 extern "C" void exit (int);
12872 void fnord() { int i=42;}
12875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12876 int status = $lt_dlunknown;
12880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12881 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12882 /* dlclose (self); */
12888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12889 (eval $ac_link) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12893 (./conftest; exit; ) 2>/dev/null
12895 case x$lt_status in
12896 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12897 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12898 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12901 # compilation failed
12902 lt_cv_dlopen_self_static=no
12909 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12910 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12913 CPPFLAGS="$save_CPPFLAGS"
12914 LDFLAGS="$save_LDFLAGS"
12919 case $lt_cv_dlopen_self in
12920 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12921 *) enable_dlopen_self=unknown ;;
12924 case $lt_cv_dlopen_self_static in
12925 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12926 *) enable_dlopen_self_static=unknown ;;
12931 # The else clause should only fire when bootstrapping the
12932 # libtool distribution, otherwise you forgot to ship ltmain.sh
12933 # with your package, and you will get complaints that there are
12934 # no rules to generate ltmain.sh.
12935 if test -f "$ltmain"; then
12936 # See if we are running on zsh, and set the options which allow our commands through
12937 # without removal of \ escapes.
12938 if test -n "${ZSH_VERSION+set}" ; then
12939 setopt NO_GLOB_SUBST
12941 # Now quote all the things that may contain metacharacters while being
12942 # careful not to overquote the AC_SUBSTed values. We take copies of the
12943 # variables and quote the copies for generation of the libtool script.
12944 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12946 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12947 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12948 deplibs_check_method reload_flag reload_cmds need_locks \
12949 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12950 lt_cv_sys_global_symbol_to_c_name_address \
12951 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12952 old_postinstall_cmds old_postuninstall_cmds \
12956 lt_prog_compiler_wl_CXX \
12957 lt_prog_compiler_pic_CXX \
12958 lt_prog_compiler_static_CXX \
12959 lt_prog_compiler_no_builtin_flag_CXX \
12960 export_dynamic_flag_spec_CXX \
12961 thread_safe_flag_spec_CXX \
12962 whole_archive_flag_spec_CXX \
12963 enable_shared_with_static_runtimes_CXX \
12964 old_archive_cmds_CXX \
12965 old_archive_from_new_cmds_CXX \
12966 predep_objects_CXX \
12967 postdep_objects_CXX \
12970 compiler_lib_search_path_CXX \
12972 archive_expsym_cmds_CXX \
12973 postinstall_cmds_CXX \
12974 postuninstall_cmds_CXX \
12975 old_archive_from_expsyms_cmds_CXX \
12976 allow_undefined_flag_CXX \
12977 no_undefined_flag_CXX \
12978 export_symbols_cmds_CXX \
12979 hardcode_libdir_flag_spec_CXX \
12980 hardcode_libdir_flag_spec_ld_CXX \
12981 hardcode_libdir_separator_CXX \
12982 hardcode_automatic_CXX \
12984 module_expsym_cmds_CXX \
12985 lt_cv_prog_compiler_c_o_CXX \
12986 exclude_expsyms_CXX \
12987 include_expsyms_CXX; do
12990 old_archive_cmds_CXX | \
12991 old_archive_from_new_cmds_CXX | \
12992 archive_cmds_CXX | \
12993 archive_expsym_cmds_CXX | \
12994 module_cmds_CXX | \
12995 module_expsym_cmds_CXX | \
12996 old_archive_from_expsyms_cmds_CXX | \
12997 export_symbols_cmds_CXX | \
12998 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12999 postinstall_cmds | postuninstall_cmds | \
13000 old_postinstall_cmds | old_postuninstall_cmds | \
13001 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13002 # Double-quote double-evaled strings.
13003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13006 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13012 *'\$0 --fallback-echo"')
13013 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13019 cat <<__EOF__ >> "$cfgfile"
13020 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13024 # Shell to use when invoking shell scripts.
13027 # Whether or not to build shared libraries.
13028 build_libtool_libs=$enable_shared
13030 # Whether or not to build static libraries.
13031 build_old_libs=$enable_static
13033 # Whether or not to add -lc for building shared libraries.
13034 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13036 # Whether or not to disallow shared libs when runtime libs are static
13037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13039 # Whether or not to optimize for fast installation.
13040 fast_install=$enable_fast_install
13043 host_alias=$host_alias
13046 # An echo program that does not interpret backslashes.
13051 AR_FLAGS=$lt_AR_FLAGS
13056 # A language-specific compiler.
13057 CC=$lt_compiler_CXX
13059 # Is the compiler the GNU C compiler?
13065 # The linker used to build libraries.
13068 # Whether we need hard or soft links.
13071 # A BSD-compatible nm program.
13074 # A symbol stripping program
13077 # Used to examine libraries when file_magic_cmd begins "file"
13078 MAGIC_CMD=$MAGIC_CMD
13080 # Used on cygwin: DLL creation program.
13083 # Used on cygwin: object dumper.
13086 # Used on cygwin: assembler.
13089 # The name of the directory that contains temporary libtool files.
13092 # How to create reloadable object files.
13093 reload_flag=$lt_reload_flag
13094 reload_cmds=$lt_reload_cmds
13096 # How to pass a linker flag through the compiler.
13097 wl=$lt_lt_prog_compiler_wl_CXX
13099 # Object file suffix (normally "o").
13100 objext="$ac_objext"
13102 # Old archive suffix (normally "a").
13105 # Shared library suffix (normally ".so").
13106 shrext_cmds='$shrext_cmds'
13108 # Executable file suffix (normally "").
13111 # Additional compiler flags for building library objects.
13112 pic_flag=$lt_lt_prog_compiler_pic_CXX
13115 # What is the maximum length of a command?
13116 max_cmd_len=$lt_cv_sys_max_cmd_len
13118 # Does compiler simultaneously support -c and -o options?
13119 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13121 # Must we lock files when doing compilation ?
13122 need_locks=$lt_need_locks
13124 # Do we need the lib prefix for modules?
13125 need_lib_prefix=$need_lib_prefix
13127 # Do we need a version for libraries?
13128 need_version=$need_version
13130 # Whether dlopen is supported.
13131 dlopen_support=$enable_dlopen
13133 # Whether dlopen of programs is supported.
13134 dlopen_self=$enable_dlopen_self
13136 # Whether dlopen of statically linked programs is supported.
13137 dlopen_self_static=$enable_dlopen_self_static
13139 # Compiler flag to prevent dynamic linking.
13140 link_static_flag=$lt_lt_prog_compiler_static_CXX
13142 # Compiler flag to turn off builtin functions.
13143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13145 # Compiler flag to allow reflexive dlopens.
13146 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13148 # Compiler flag to generate shared objects directly from archives.
13149 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13151 # Compiler flag to generate thread-safe objects.
13152 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13154 # Library versioning type.
13155 version_type=$version_type
13157 # Format of library name prefix.
13158 libname_spec=$lt_libname_spec
13160 # List of archive names. First name is the real one, the rest are links.
13161 # The last name is the one that the linker finds with -lNAME.
13162 library_names_spec=$lt_library_names_spec
13164 # The coded name of the library, if different from the real name.
13165 soname_spec=$lt_soname_spec
13167 # Commands used to build and install an old-style archive.
13169 old_archive_cmds=$lt_old_archive_cmds_CXX
13170 old_postinstall_cmds=$lt_old_postinstall_cmds
13171 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13173 # Create an old-style archive from a shared archive.
13174 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13176 # Create a temporary old-style archive to link instead of a shared archive.
13177 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13179 # Commands used to build and install a shared archive.
13180 archive_cmds=$lt_archive_cmds_CXX
13181 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13182 postinstall_cmds=$lt_postinstall_cmds
13183 postuninstall_cmds=$lt_postuninstall_cmds
13185 # Commands used to build a loadable module (assumed same as above if empty)
13186 module_cmds=$lt_module_cmds_CXX
13187 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13189 # Commands to strip libraries.
13190 old_striplib=$lt_old_striplib
13191 striplib=$lt_striplib
13193 # Dependencies to place before the objects being linked to create a
13195 predep_objects=$lt_predep_objects_CXX
13197 # Dependencies to place after the objects being linked to create a
13199 postdep_objects=$lt_postdep_objects_CXX
13201 # Dependencies to place before the objects being linked to create a
13203 predeps=$lt_predeps_CXX
13205 # Dependencies to place after the objects being linked to create a
13207 postdeps=$lt_postdeps_CXX
13209 # The library search path used internally by the compiler when linking
13210 # a shared library.
13211 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13213 # Method to check whether dependent libraries are shared objects.
13214 deplibs_check_method=$lt_deplibs_check_method
13216 # Command to use when deplibs_check_method == file_magic.
13217 file_magic_cmd=$lt_file_magic_cmd
13219 # Flag that allows shared libraries with undefined symbols to be built.
13220 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13222 # Flag that forces no undefined symbols.
13223 no_undefined_flag=$lt_no_undefined_flag_CXX
13225 # Commands used to finish a libtool library installation in a directory.
13226 finish_cmds=$lt_finish_cmds
13228 # Same as above, but a single script fragment to be evaled but not shown.
13229 finish_eval=$lt_finish_eval
13231 # Take the output of nm and produce a listing of raw symbols and C names.
13232 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13234 # Transform the output of nm in a proper C declaration
13235 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13237 # Transform the output of nm in a C name address pair
13238 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13240 # This is the shared library runtime path variable.
13241 runpath_var=$runpath_var
13243 # This is the shared library path variable.
13244 shlibpath_var=$shlibpath_var
13246 # Is shlibpath searched before the hard-coded library search path?
13247 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13249 # How to hardcode a shared library path into an executable.
13250 hardcode_action=$hardcode_action_CXX
13252 # Whether we should hardcode library paths into libraries.
13253 hardcode_into_libs=$hardcode_into_libs
13255 # Flag to hardcode \$libdir into a binary during linking.
13256 # This must work even if \$libdir does not exist.
13257 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13259 # If ld is used when linking, flag to hardcode \$libdir into
13260 # a binary during linking. This must work even if \$libdir does
13262 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13264 # Whether we need a single -rpath flag with a separated argument.
13265 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13267 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13268 # resulting binary.
13269 hardcode_direct=$hardcode_direct_CXX
13271 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13272 # resulting binary.
13273 hardcode_minus_L=$hardcode_minus_L_CXX
13275 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13276 # the resulting binary.
13277 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13279 # Set to yes if building a shared library automatically hardcodes DIR into the library
13280 # and all subsequent libraries and executables linked against it.
13281 hardcode_automatic=$hardcode_automatic_CXX
13283 # Variables whose values should be saved in libtool wrapper scripts and
13284 # restored at relink time.
13285 variables_saved_for_relink="$variables_saved_for_relink"
13287 # Whether libtool must link a program against all its dependency libraries.
13288 link_all_deplibs=$link_all_deplibs_CXX
13290 # Compile-time system search path for libraries
13291 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13293 # Run-time system search path for libraries
13294 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13296 # Fix the shell variable \$srcfile for the compiler.
13297 fix_srcfile_path="$fix_srcfile_path_CXX"
13299 # Set to yes if exported symbols are required.
13300 always_export_symbols=$always_export_symbols_CXX
13302 # The commands to list exported symbols.
13303 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13305 # The commands to extract the exported symbol list from a shared archive.
13306 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13308 # Symbols that should not be listed in the preloaded symbols.
13309 exclude_expsyms=$lt_exclude_expsyms_CXX
13311 # Symbols that must always be exported.
13312 include_expsyms=$lt_include_expsyms_CXX
13314 # ### END LIBTOOL TAG CONFIG: $tagname
13320 # If there is no Makefile yet, we rely on a make rule to execute
13321 # `config.status --recheck' to rerun these tests and create the
13322 # libtool script then.
13323 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13324 if test -f "$ltmain_in"; then
13325 test -f Makefile && make "$ltmain"
13331 ac_cpp='$CPP $CPPFLAGS'
13332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13340 with_gnu_ldcxx=$with_gnu_ld
13341 with_gnu_ld=$lt_save_with_gnu_ld
13342 lt_cv_path_LDCXX=$lt_cv_path_LD
13343 lt_cv_path_LD=$lt_save_path_LD
13344 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13345 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13353 if test -n "$F77" && test "X$F77" != "Xno"; then
13356 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13357 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13358 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13361 archive_cmds_need_lc_F77=no
13362 allow_undefined_flag_F77=
13363 always_export_symbols_F77=no
13364 archive_expsym_cmds_F77=
13365 export_dynamic_flag_spec_F77=
13366 hardcode_direct_F77=no
13367 hardcode_libdir_flag_spec_F77=
13368 hardcode_libdir_flag_spec_ld_F77=
13369 hardcode_libdir_separator_F77=
13370 hardcode_minus_L_F77=no
13371 hardcode_automatic_F77=no
13373 module_expsym_cmds_F77=
13374 link_all_deplibs_F77=unknown
13375 old_archive_cmds_F77=$old_archive_cmds
13376 no_undefined_flag_F77=
13377 whole_archive_flag_spec_F77=
13378 enable_shared_with_static_runtimes_F77=no
13380 # Source file extension for f77 test sources.
13383 # Object file extension for compiled f77 test sources.
13387 # Code to be used in simple compile tests
13388 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13390 # Code to be used in simple link tests
13391 lt_simple_link_test_code=" program t\n end\n"
13393 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13395 # If no C compiler was specified, use CC.
13398 # Allow CC to be a program name with arguments.
13402 # Allow CC to be a program name with arguments.
13407 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13409 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13410 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13411 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13412 echo "${ECHO_T}$can_build_shared" >&6
13414 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13415 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13416 test "$can_build_shared" = "no" && enable_shared=no
13418 # On AIX, shared libraries and static libraries use the same namespace, and
13419 # are all built from PIC.
13422 test "$enable_shared" = yes && enable_static=no
13423 if test -n "$RANLIB"; then
13424 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13425 postinstall_cmds='$RANLIB $lib'
13429 test "$enable_shared" = yes && enable_static=no
13432 echo "$as_me:$LINENO: result: $enable_shared" >&5
13433 echo "${ECHO_T}$enable_shared" >&6
13435 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13436 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13437 # Make sure either enable_shared or enable_static is yes.
13438 test "$enable_shared" = yes || enable_static=yes
13439 echo "$as_me:$LINENO: result: $enable_static" >&5
13440 echo "${ECHO_T}$enable_static" >&6
13442 test "$ld_shlibs_F77" = no && can_build_shared=no
13447 lt_prog_compiler_wl_F77=
13448 lt_prog_compiler_pic_F77=
13449 lt_prog_compiler_static_F77=
13451 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13452 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13454 if test "$GCC" = yes; then
13455 lt_prog_compiler_wl_F77='-Wl,'
13456 lt_prog_compiler_static_F77='-static'
13460 # All AIX code is PIC.
13461 if test "$host_cpu" = ia64; then
13462 # AIX 5 now supports IA64 processor
13463 lt_prog_compiler_static_F77='-Bstatic'
13468 # FIXME: we need at least 68020 code to build shared libraries, but
13469 # adding the `-m68020' flag to GCC prevents building anything better,
13471 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13474 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13475 # PIC is the default for these OSes.
13478 mingw* | pw32* | os2*)
13479 # This hack is so that the source file can tell whether it is being
13480 # built for inclusion in a dll (and should export symbols for example).
13481 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13484 darwin* | rhapsody*)
13485 # PIC is the default on this platform
13486 # Common symbols not allowed in MH_DYLIB files
13487 lt_prog_compiler_pic_F77='-fno-common'
13491 # Just because we use GCC doesn't mean we suddenly get shared libraries
13492 # on systems that don't support them.
13493 lt_prog_compiler_can_build_shared_F77=no
13498 if test -d /usr/nec; then
13499 lt_prog_compiler_pic_F77=-Kconform_pic
13504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13505 # not for PA HP-UX.
13506 case "$host_cpu" in
13511 lt_prog_compiler_pic_F77='-fPIC'
13517 lt_prog_compiler_pic_F77='-fPIC'
13521 # PORTME Check for flag to pass linker flags through the system compiler.
13524 lt_prog_compiler_wl_F77='-Wl,'
13525 if test "$host_cpu" = ia64; then
13526 # AIX 5 now supports IA64 processor
13527 lt_prog_compiler_static_F77='-Bstatic'
13529 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13533 mingw* | pw32* | os2*)
13534 # This hack is so that the source file can tell whether it is being
13535 # built for inclusion in a dll (and should export symbols for example).
13536 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13539 hpux9* | hpux10* | hpux11*)
13540 lt_prog_compiler_wl_F77='-Wl,'
13541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13542 # not for PA HP-UX.
13543 case "$host_cpu" in
13548 lt_prog_compiler_pic_F77='+Z'
13551 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13552 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13555 irix5* | irix6* | nonstopux*)
13556 lt_prog_compiler_wl_F77='-Wl,'
13557 # PIC (with -KPIC) is the default.
13558 lt_prog_compiler_static_F77='-non_shared'
13562 lt_prog_compiler_pic_F77='-KPIC'
13563 lt_prog_compiler_static_F77='-Bstatic'
13569 lt_prog_compiler_wl_F77='-Wl,'
13570 lt_prog_compiler_pic_F77='-KPIC'
13571 lt_prog_compiler_static_F77='-static'
13574 lt_prog_compiler_wl_F77='-Wl,'
13575 # All Alpha code is PIC.
13576 lt_prog_compiler_static_F77='-non_shared'
13581 osf3* | osf4* | osf5*)
13582 lt_prog_compiler_wl_F77='-Wl,'
13583 # All OSF/1 code is PIC.
13584 lt_prog_compiler_static_F77='-non_shared'
13588 lt_prog_compiler_pic_F77='-Kpic'
13589 lt_prog_compiler_static_F77='-dn'
13593 lt_prog_compiler_wl_F77='-Wl,'
13594 lt_prog_compiler_pic_F77='-KPIC'
13595 lt_prog_compiler_static_F77='-Bstatic'
13599 lt_prog_compiler_wl_F77='-Qoption ld '
13600 lt_prog_compiler_pic_F77='-PIC'
13601 lt_prog_compiler_static_F77='-Bstatic'
13604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13605 lt_prog_compiler_wl_F77='-Wl,'
13606 lt_prog_compiler_pic_F77='-KPIC'
13607 lt_prog_compiler_static_F77='-Bstatic'
13611 if test -d /usr/nec ;then
13612 lt_prog_compiler_pic_F77='-Kconform_pic'
13613 lt_prog_compiler_static_F77='-Bstatic'
13618 lt_prog_compiler_pic_F77='-pic'
13619 lt_prog_compiler_static_F77='-Bstatic'
13623 lt_prog_compiler_can_build_shared_F77=no
13628 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13629 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13632 # Check to make sure the PIC flag actually works.
13634 if test -n "$lt_prog_compiler_pic_F77"; then
13636 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13637 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13638 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 lt_prog_compiler_pic_works_F77=no
13642 ac_outfile=conftest.$ac_objext
13643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13644 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13645 # Insert the option either (1) after the last *FLAGS variable, or
13646 # (2) before a word containing "conftest.", or (3) at the end.
13647 # Note that $ac_compile itself does not contain backslashes and begins
13648 # with a dollar sign (not a hyphen), so the echo should work correctly.
13649 # The option is referenced via a variable to avoid confusing sed.
13650 lt_compile=`echo "$ac_compile" | $SED \
13651 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13653 -e 's:$: $lt_compiler_flag:'`
13654 (eval echo "\"\$as_me:13654: $lt_compile\"" >&5)
13655 (eval "$lt_compile" 2>conftest.err)
13657 cat conftest.err >&5
13658 echo "$as_me:13658: \$? = $ac_status" >&5
13659 if (exit $ac_status) && test -s "$ac_outfile"; then
13660 # The compiler can only warn and ignore the option if not recognized
13661 # So say no if there are warnings
13662 if test ! -s conftest.err; then
13663 lt_prog_compiler_pic_works_F77=yes
13669 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13670 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13672 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13673 case $lt_prog_compiler_pic_F77 in
13675 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13678 lt_prog_compiler_pic_F77=
13679 lt_prog_compiler_can_build_shared_F77=no
13684 # For platforms which do not support PIC, -DPIC is meaningless:
13686 lt_prog_compiler_pic_F77=
13689 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13694 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13695 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 lt_cv_prog_compiler_c_o_F77=no
13699 $rm -r conftest 2>/dev/null
13703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13705 lt_compiler_flag="-o out/conftest2.$ac_objext"
13706 # Insert the option either (1) after the last *FLAGS variable, or
13707 # (2) before a word containing "conftest.", or (3) at the end.
13708 # Note that $ac_compile itself does not contain backslashes and begins
13709 # with a dollar sign (not a hyphen), so the echo should work correctly.
13710 lt_compile=`echo "$ac_compile" | $SED \
13711 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13713 -e 's:$: $lt_compiler_flag:'`
13714 (eval echo "\"\$as_me:13714: $lt_compile\"" >&5)
13715 (eval "$lt_compile" 2>out/conftest.err)
13717 cat out/conftest.err >&5
13718 echo "$as_me:13718: \$? = $ac_status" >&5
13719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13721 # The compiler can only warn and ignore the option if not recognized
13722 # So say no if there are warnings
13723 if test ! -s out/conftest.err; then
13724 lt_cv_prog_compiler_c_o_F77=yes
13729 # SGI C++ compiler will create directory out/ii_files/ for
13730 # template instantiation
13731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13732 $rm out/* && rmdir out
13738 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13742 hard_links="nottested"
13743 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13744 # do not overwrite the value of need_locks provided by the user
13745 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13751 ln conftest.a conftest.b 2>&5 || hard_links=no
13752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13753 echo "$as_me:$LINENO: result: $hard_links" >&5
13754 echo "${ECHO_T}$hard_links" >&6
13755 if test "$hard_links" = no; then
13756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13764 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13768 allow_undefined_flag_F77=
13769 enable_shared_with_static_runtimes_F77=no
13771 archive_expsym_cmds_F77=
13772 old_archive_From_new_cmds_F77=
13773 old_archive_from_expsyms_cmds_F77=
13774 export_dynamic_flag_spec_F77=
13775 whole_archive_flag_spec_F77=
13776 thread_safe_flag_spec_F77=
13777 hardcode_libdir_flag_spec_F77=
13778 hardcode_libdir_flag_spec_ld_F77=
13779 hardcode_libdir_separator_F77=
13780 hardcode_direct_F77=no
13781 hardcode_minus_L_F77=no
13782 hardcode_shlibpath_var_F77=unsupported
13783 link_all_deplibs_F77=unknown
13784 hardcode_automatic_F77=no
13786 module_expsym_cmds_F77=
13787 always_export_symbols_F77=no
13788 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13789 # include_expsyms should be a list of space-separated symbols to be *always*
13790 # included in the symbol list
13791 include_expsyms_F77=
13792 # exclude_expsyms can be an extended regexp of symbols to exclude
13793 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13794 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13795 # as well as any symbol that contains `d'.
13796 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13797 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13798 # platforms (ab)use it in PIC code, but their linkers get confused if
13799 # the symbol is explicitly referenced. Since portable code cannot
13800 # rely on this symbol name, it's probably fine to never include it in
13801 # preloaded symbol tables.
13802 extract_expsyms_cmds=
13805 cygwin* | mingw* | pw32*)
13806 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13807 # When not using gcc, we currently assume that we are using
13808 # Microsoft Visual C++.
13809 if test "$GCC" != yes; then
13819 if test "$with_gnu_ld" = yes; then
13820 # If archive_cmds runs LD, not CC, wlarc should be empty
13823 # See if GNU ld supports shared libraries.
13825 aix3* | aix4* | aix5*)
13826 # On AIX/PPC, the GNU linker is very broken
13827 if test "$host_cpu" != ia64; then
13831 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13832 *** to be unable to reliably create shared libraries on AIX.
13833 *** Therefore, libtool is disabling shared libraries support. If you
13834 *** really care for shared libraries, you may want to modify your PATH
13835 *** so that a non-GNU linker is found, and then restart.
13842 archive_cmds_F77='$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)'
13843 hardcode_libdir_flag_spec_F77='-L$libdir'
13844 hardcode_minus_L_F77=yes
13846 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13847 # that the semantics of dynamic libraries on AmigaOS, at least up
13848 # to version 4, is to share data among multiple programs linked
13849 # with the same dynamic library. Since this doesn't match the
13850 # behavior of shared libraries on other platforms, we can't use
13856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13857 allow_undefined_flag_F77=unsupported
13858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13859 # support --undefined. This deserves some investigation. FIXME
13860 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13866 cygwin* | mingw* | pw32*)
13867 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13868 # as there is no search path for DLLs.
13869 hardcode_libdir_flag_spec_F77='-L$libdir'
13870 allow_undefined_flag_F77=unsupported
13871 always_export_symbols_F77=no
13872 enable_shared_with_static_runtimes_F77=yes
13873 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13875 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13876 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13877 # If the export-symbols file already is a .def file (1st line
13878 # is EXPORTS), use it as is; otherwise, prepend...
13879 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13880 cp $export_symbols $output_objdir/$soname.def;
13882 echo EXPORTS > $output_objdir/$soname.def;
13883 cat $export_symbols >> $output_objdir/$soname.def;
13885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13891 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13893 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13896 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13897 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13902 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13906 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13907 *** create shared libraries on Solaris systems. Therefore, libtool
13908 *** is disabling shared libraries support. We urge you to upgrade GNU
13909 *** binutils to release 2.9.1 or newer. Another option is to modify
13910 *** your PATH or compiler configuration so that the native linker is
13911 *** used, and then restart.
13914 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13915 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13916 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13923 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13925 hardcode_direct_F77=yes
13926 hardcode_shlibpath_var_F77=no
13930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13931 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13932 archive_cmds_F77="$tmp_archive_cmds"
13933 supports_anon_versioning=no
13934 case `$LD -v 2>/dev/null` in
13935 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13938 *\ 2.11.*) ;; # other 2.11 versions
13939 *) supports_anon_versioning=yes ;;
13941 if test $supports_anon_versioning = yes; then
13942 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13944 $echo "local: *; };" >> $output_objdir/$libname.ver~
13945 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13947 archive_expsym_cmds_F77="$tmp_archive_cmds"
13949 link_all_deplibs_F77=no
13956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13957 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13958 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13965 if test "$ld_shlibs_F77" = yes; then
13966 runpath_var=LD_RUN_PATH
13967 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13968 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13969 # ancient GNU ld didn't support --whole-archive et. al.
13970 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13971 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13973 whole_archive_flag_spec_F77=
13977 # PORTME fill in a description of your system's linker (not GNU ld)
13980 allow_undefined_flag_F77=unsupported
13981 always_export_symbols_F77=yes
13982 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13983 # Note: this linker hardcodes the directories in LIBPATH if there
13984 # are no directories specified by -L.
13985 hardcode_minus_L_F77=yes
13986 if test "$GCC" = yes && test -z "$link_static_flag"; then
13987 # Neither direct hardcoding nor static linking is supported with a
13989 hardcode_direct_F77=unsupported
13994 if test "$host_cpu" = ia64; then
13995 # On IA64, the linker does run time linking by default, so we don't
13996 # have to do anything special.
13997 aix_use_runtimelinking=no
13998 exp_sym_flag='-Bexport'
14001 # If we're using GNU nm, then we don't want the "-C" option.
14002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14003 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14004 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14006 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14008 aix_use_runtimelinking=no
14010 # Test if we are trying to use run time linking or normal
14011 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14012 # need to do runtime linking.
14013 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14014 for ld_flag in $LDFLAGS; do
14015 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14016 aix_use_runtimelinking=yes
14022 exp_sym_flag='-bexport'
14023 no_entry_flag='-bnoentry'
14026 # When large executables or shared objects are built, AIX ld can
14027 # have problems creating the table of contents. If linking a library
14028 # or program results in "error TOC overflow" add -mminimal-toc to
14029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14032 archive_cmds_F77=''
14033 hardcode_direct_F77=yes
14034 hardcode_libdir_separator_F77=':'
14035 link_all_deplibs_F77=yes
14037 if test "$GCC" = yes; then
14038 case $host_os in aix4.012|aix4.012.*)
14039 # We only want to do this on AIX 4.2 and lower, the check
14040 # below for broken collect2 doesn't work under 4.3+
14041 collect2name=`${CC} -print-prog-name=collect2`
14042 if test -f "$collect2name" && \
14043 strings "$collect2name" | grep resolve_lib_name >/dev/null
14045 # We have reworked collect2
14046 hardcode_direct_F77=yes
14048 # We have old collect2
14049 hardcode_direct_F77=unsupported
14050 # It fails to find uninstalled libraries when the uninstalled
14051 # path is not listed in the libpath. Setting hardcode_minus_L
14052 # to unsupported forces relinking
14053 hardcode_minus_L_F77=yes
14054 hardcode_libdir_flag_spec_F77='-L$libdir'
14055 hardcode_libdir_separator_F77=
14058 shared_flag='-shared'
14061 if test "$host_cpu" = ia64; then
14062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14063 # chokes on -Wl,-G. The following line is correct:
14066 if test "$aix_use_runtimelinking" = yes; then
14067 shared_flag='${wl}-G'
14069 shared_flag='${wl}-bM:SRE'
14074 # It seems that -bexpall does not export symbols beginning with
14075 # underscore (_), so it is better to generate a list of symbols to export.
14076 always_export_symbols_F77=yes
14077 if test "$aix_use_runtimelinking" = yes; then
14078 # Warning - without using the other runtime loading flags (-brtl),
14079 # -berok will link without error, but may produce a broken library.
14080 allow_undefined_flag_F77='-berok'
14081 # Determine the default libpath from the value encoded in an empty executable.
14082 cat >conftest.$ac_ext <<_ACEOF
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14089 (eval $ac_link) 2>conftest.er1
14091 grep -v '^ *+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest$ac_exeext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14111 # Check for a 64-bit object if we didn't find anything.
14112 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14119 rm -f conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
14121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14123 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14124 archive_expsym_cmds_F77="\$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"
14126 if test "$host_cpu" = ia64; then
14127 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14128 allow_undefined_flag_F77="-z nodefs"
14129 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14131 # Determine the default libpath from the value encoded in an empty executable.
14132 cat >conftest.$ac_ext <<_ACEOF
14137 rm -f conftest.$ac_objext conftest$ac_exeext
14138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14139 (eval $ac_link) 2>conftest.er1
14141 grep -v '^ *+' conftest.er1 >conftest.err
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest$ac_exeext'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14159 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14161 # Check for a 64-bit object if we didn't find anything.
14162 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14169 rm -f conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14173 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14174 # Warning - without using the other run time loading flags,
14175 # -berok will link without error, but may produce a broken library.
14176 no_undefined_flag_F77=' ${wl}-bernotok'
14177 allow_undefined_flag_F77=' ${wl}-berok'
14178 # -bexpall does not export symbols beginning with underscore (_)
14179 always_export_symbols_F77=yes
14180 # Exported symbols can be pulled into shared objects from archives
14181 whole_archive_flag_spec_F77=' '
14182 archive_cmds_need_lc_F77=yes
14183 # This is similar to how AIX traditionally builds it's shared libraries.
14184 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14190 archive_cmds_F77='$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)'
14191 hardcode_libdir_flag_spec_F77='-L$libdir'
14192 hardcode_minus_L_F77=yes
14193 # see comment about different semantics on the GNU ld section
14198 export_dynamic_flag_spec_F77=-rdynamic
14201 cygwin* | mingw* | pw32*)
14202 # When not using gcc, we currently assume that we are using
14203 # Microsoft Visual C++.
14204 # hardcode_libdir_flag_spec is actually meaningless, as there is
14205 # no search path for DLLs.
14206 hardcode_libdir_flag_spec_F77=' '
14207 allow_undefined_flag_F77=unsupported
14208 # Tell ltmain to make .lib files, not .a files.
14210 # Tell ltmain to make .dll files, not .so files.
14212 # FIXME: Setting linknames here is a bad hack.
14213 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14214 # The linker will automatically build a .lib file if we build a DLL.
14215 old_archive_From_new_cmds_F77='true'
14216 # FIXME: Should let the user specify the lib program.
14217 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14218 fix_srcfile_path='`cygpath -w "$srcfile"`'
14219 enable_shared_with_static_runtimes_F77=yes
14222 darwin* | rhapsody*)
14223 if test "$GXX" = yes ; then
14224 archive_cmds_need_lc_F77=no
14226 rhapsody* | darwin1.[012])
14227 allow_undefined_flag_F77='-undefined suppress'
14230 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14231 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14233 case ${MACOSX_DEPLOYMENT_TARGET} in
14235 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14238 allow_undefined_flag_F77='-undefined dynamic_lookup'
14244 lt_int_apple_cc_single_mod=no
14245 output_verbose_link_cmd='echo'
14246 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14247 lt_int_apple_cc_single_mod=yes
14249 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14250 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14252 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14254 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14255 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14256 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14257 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14259 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14261 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14262 hardcode_direct_F77=no
14263 hardcode_automatic_F77=yes
14264 hardcode_shlibpath_var_F77=unsupported
14265 whole_archive_flag_spec_F77='-all_load $convenience'
14266 link_all_deplibs_F77=yes
14273 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14274 hardcode_libdir_flag_spec_F77='-L$libdir'
14275 hardcode_shlibpath_var_F77=no
14282 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14283 # support. Future versions do this automatically, but an explicit c++rt0.o
14284 # does not break anything, and helps significantly (at the cost of a little
14287 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14288 hardcode_libdir_flag_spec_F77='-R$libdir'
14289 hardcode_direct_F77=yes
14290 hardcode_shlibpath_var_F77=no
14293 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14295 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14296 hardcode_direct_F77=yes
14297 hardcode_minus_L_F77=yes
14298 hardcode_shlibpath_var_F77=no
14301 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14302 freebsd* | kfreebsd*-gnu)
14303 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14304 hardcode_libdir_flag_spec_F77='-R$libdir'
14305 hardcode_direct_F77=yes
14306 hardcode_shlibpath_var_F77=no
14310 if test "$GCC" = yes; then
14311 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14313 archive_cmds_F77='$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'
14315 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14316 hardcode_libdir_separator_F77=:
14317 hardcode_direct_F77=yes
14319 # hardcode_minus_L: Not really in the search PATH,
14320 # but as the default location of the library.
14321 hardcode_minus_L_F77=yes
14322 export_dynamic_flag_spec_F77='${wl}-E'
14326 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14327 case "$host_cpu" in
14329 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14332 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14336 case "$host_cpu" in
14338 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14341 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14345 if test "$with_gnu_ld" = no; then
14346 case "$host_cpu" in
14348 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14349 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14350 hardcode_libdir_separator_F77=:
14351 hardcode_direct_F77=no
14352 hardcode_shlibpath_var_F77=no
14355 hardcode_libdir_flag_spec_F77='-L$libdir'
14356 hardcode_direct_F77=no
14357 hardcode_shlibpath_var_F77=no
14359 # hardcode_minus_L: Not really in the search PATH,
14360 # but as the default location of the library.
14361 hardcode_minus_L_F77=yes
14364 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14365 hardcode_libdir_separator_F77=:
14366 hardcode_direct_F77=yes
14367 export_dynamic_flag_spec_F77='${wl}-E'
14369 # hardcode_minus_L: Not really in the search PATH,
14370 # but as the default location of the library.
14371 hardcode_minus_L_F77=yes
14377 irix5* | irix6* | nonstopux*)
14378 if test "$GCC" = yes; then
14379 archive_cmds_F77='$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'
14381 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14382 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14384 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14385 hardcode_libdir_separator_F77=:
14386 link_all_deplibs_F77=yes
14389 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14391 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14393 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14395 hardcode_libdir_flag_spec_F77='-R$libdir'
14396 hardcode_direct_F77=yes
14397 hardcode_shlibpath_var_F77=no
14401 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14402 hardcode_direct_F77=yes
14403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14404 hardcode_libdir_separator_F77=:
14405 hardcode_shlibpath_var_F77=no
14409 hardcode_direct_F77=yes
14410 hardcode_shlibpath_var_F77=no
14411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14412 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14413 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14414 export_dynamic_flag_spec_F77='${wl}-E'
14417 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14418 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14419 hardcode_libdir_flag_spec_F77='-R$libdir'
14422 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14423 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14430 hardcode_libdir_flag_spec_F77='-L$libdir'
14431 hardcode_minus_L_F77=yes
14432 allow_undefined_flag_F77=unsupported
14433 archive_cmds_F77='$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'
14434 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14438 if test "$GCC" = yes; then
14439 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14440 archive_cmds_F77='$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'
14442 allow_undefined_flag_F77=' -expect_unresolved \*'
14443 archive_cmds_F77='$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'
14445 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14446 hardcode_libdir_separator_F77=:
14449 osf4* | osf5*) # as osf3* with the addition of -msym flag
14450 if test "$GCC" = yes; then
14451 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14452 archive_cmds_F77='$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'
14453 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14455 allow_undefined_flag_F77=' -expect_unresolved \*'
14456 archive_cmds_F77='$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'
14457 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14458 $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'
14460 # Both c and cxx compiler support -rpath directly
14461 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14463 hardcode_libdir_separator_F77=:
14467 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14468 hardcode_shlibpath_var_F77=no
14469 export_dynamic_flag_spec_F77='${wl}-Bexport'
14470 runpath_var=LD_RUN_PATH
14471 hardcode_runpath_var=yes
14475 no_undefined_flag_F77=' -z text'
14476 if test "$GCC" = yes; then
14477 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14478 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14479 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14481 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14483 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14485 hardcode_libdir_flag_spec_F77='-R$libdir'
14486 hardcode_shlibpath_var_F77=no
14488 solaris2.[0-5] | solaris2.[0-5].*) ;;
14489 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14490 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14492 link_all_deplibs_F77=yes
14496 if test "x$host_vendor" = xsequent; then
14497 # Use $CC to link under sequent, because it throws in some extra .o
14498 # files that make .init and .fini sections work.
14499 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14501 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14503 hardcode_libdir_flag_spec_F77='-L$libdir'
14504 hardcode_direct_F77=yes
14505 hardcode_minus_L_F77=yes
14506 hardcode_shlibpath_var_F77=no
14510 case $host_vendor in
14512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14513 hardcode_direct_F77=yes # is this really true???
14516 ## LD is ld it makes a PLAMLIB
14517 ## CC just makes a GrossModule.
14518 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14519 reload_cmds_F77='$CC -r -o $output$reload_objs'
14520 hardcode_direct_F77=no
14523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14524 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14527 runpath_var='LD_RUN_PATH'
14528 hardcode_shlibpath_var_F77=no
14532 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14533 hardcode_shlibpath_var_F77=no
14534 export_dynamic_flag_spec_F77='-Bexport'
14538 if test -d /usr/nec; then
14539 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14540 hardcode_shlibpath_var_F77=no
14541 runpath_var=LD_RUN_PATH
14542 hardcode_runpath_var=yes
14548 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_direct_F77=yes
14550 hardcode_minus_L_F77=no
14551 hardcode_shlibpath_var_F77=no
14552 hardcode_runpath_var=yes
14553 runpath_var=LD_RUN_PATH
14556 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14557 no_undefined_flag_F77='${wl}-z ${wl}text'
14558 if test "$GCC" = yes; then
14559 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14561 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14563 runpath_var='LD_RUN_PATH'
14564 hardcode_shlibpath_var_F77=no
14568 no_undefined_flag_F77=' -z text'
14569 # $CC -shared without GNU ld will not create a library from C++
14570 # object files and a static libstdc++, better avoid it by now
14571 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14572 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14573 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14574 hardcode_libdir_flag_spec_F77=
14575 hardcode_shlibpath_var_F77=no
14576 runpath_var='LD_RUN_PATH'
14580 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14581 hardcode_libdir_flag_spec_F77='-L$libdir'
14582 hardcode_shlibpath_var_F77=no
14591 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14592 echo "${ECHO_T}$ld_shlibs_F77" >&6
14593 test "$ld_shlibs_F77" = no && can_build_shared=no
14595 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14596 if test "$GCC" = yes; then
14597 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14601 # Do we need to explicitly link libc?
14603 case "x$archive_cmds_need_lc_F77" in
14605 # Assume -lc should be added
14606 archive_cmds_need_lc_F77=yes
14608 if test "$enable_shared" = yes && test "$GCC" = yes; then
14609 case $archive_cmds_F77 in
14611 # FIXME: we may have to deal with multi-command sequences.
14614 # Test whether the compiler implicitly links with -lc since on some
14615 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14616 # to ld, don't add -lc before -lgcc.
14617 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14618 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14620 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623 (eval $ac_compile) 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } 2>conftest.err; then
14629 libobjs=conftest.$ac_objext
14631 wl=$lt_prog_compiler_wl_F77
14637 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14638 allow_undefined_flag_F77=
14639 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14640 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }
14645 archive_cmds_need_lc_F77=no
14647 archive_cmds_need_lc_F77=yes
14649 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14651 cat conftest.err 1>&5
14654 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14655 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14662 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14663 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14664 library_names_spec=
14665 libname_spec='lib$name'
14669 postuninstall_cmds=
14673 shlibpath_overrides_runpath=unknown
14675 dynamic_linker="$host_os ld.so"
14676 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14677 if test "$GCC" = yes; then
14678 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14679 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14680 # if the path contains ";" then we assume it to be the separator
14681 # otherwise default to the standard path separator (i.e. ":") - it is
14682 # assumed that no part of a normal pathname contains ";" but that should
14683 # okay in the real world where ";" in dirpaths is itself problematic.
14684 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14689 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14691 need_lib_prefix=unknown
14692 hardcode_into_libs=no
14694 # when you set need_version to no, make sure it does not cause -set_version
14695 # flags to be left without arguments
14696 need_version=unknown
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14702 shlibpath_var=LIBPATH
14704 # AIX 3 has no versioning support, so we append a major version to the name.
14705 soname_spec='${libname}${release}${shared_ext}$major'
14712 hardcode_into_libs=yes
14713 if test "$host_cpu" = ia64; then
14714 # AIX 5 supports IA64
14715 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14716 shlibpath_var=LD_LIBRARY_PATH
14718 # With GCC up to 2.95.x, collect2 would create an import file
14719 # for dependence libraries. The import file would start with
14720 # the line `#! .'. This would cause the generated library to
14721 # depend on `.', always an invalid library. This was fixed in
14722 # development snapshots of GCC prior to 3.0.
14724 aix4 | aix4.[01] | aix4.[01].*)
14725 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14727 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14730 can_build_shared=no
14734 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14735 # soname into executable. Probably we can add versioning support to
14736 # collect2, so additional links can be useful in future.
14737 if test "$aix_use_runtimelinking" = yes; then
14738 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14739 # instead of lib<name>.a to let people know that these are not
14740 # typical AIX shared libraries.
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743 # We preserve .a as extension for shared libraries through AIX4.2
14744 # and later when we are not doing run time linking.
14745 library_names_spec='${libname}${release}.a $libname.a'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14748 shlibpath_var=LIBPATH
14753 library_names_spec='$libname.ixlibrary $libname.a'
14754 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14755 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'
14759 library_names_spec='${libname}${shared_ext}'
14760 dynamic_linker="$host_os ld.so"
14761 shlibpath_var=LIBRARY_PATH
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14772 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14773 # the default ld.so.conf also contains /usr/contrib/lib and
14774 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14775 # libtool to hard-code these into programs
14778 cygwin* | mingw* | pw32*)
14779 version_type=windows
14784 case $GCC,$host_os in
14785 yes,cygwin* | yes,mingw* | yes,pw32*)
14786 library_names_spec='$libname.dll.a'
14787 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14788 postinstall_cmds='base_file=`basename \${file}`~
14789 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14790 dldir=$destdir/`dirname \$dlpath`~
14791 test -d \$dldir || mkdir -p \$dldir~
14792 $install_prog $dir/$dlname \$dldir/$dlname'
14793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14794 dlpath=$dir/\$dldll~
14796 shlibpath_overrides_runpath=yes
14800 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14801 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14802 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14805 # MinGW DLLs use traditional 'lib' prefix
14806 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14808 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14809 # It is most probably a Windows format PATH printed by
14810 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14811 # path with ; separators, and with drive letters. We can handle the
14812 # drive letters (cygwin fileutils understands them), so leave them,
14813 # especially as we might pass files found there to a mingw objdump,
14814 # which wouldn't understand a cygwinified path. Ahh.
14815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14821 # pw32 DLLs use 'pw' prefix rather than 'lib'
14822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14831 dynamic_linker='Win32 ld.exe'
14832 # FIXME: first we should search . and the directory the executable is in
14836 darwin* | rhapsody*)
14837 dynamic_linker="$host_os dyld"
14838 version_type=darwin
14841 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14842 soname_spec='${libname}${release}${major}$shared_ext'
14843 shlibpath_overrides_runpath=yes
14844 shlibpath_var=DYLD_LIBRARY_PATH
14845 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14846 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14847 if test "$GCC" = yes; then
14848 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14850 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14860 soname_spec='${libname}${release}${shared_ext}$major'
14861 shlibpath_var=LD_LIBRARY_PATH
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=no
14876 hardcode_into_libs=yes
14877 dynamic_linker='GNU ld.so'
14881 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14882 version_type=freebsd-$objformat
14883 case $version_type in
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14894 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14899 freebsd3.01* | freebsdelf3.01*)
14900 shlibpath_overrides_runpath=yes
14901 hardcode_into_libs=yes
14904 shlibpath_overrides_runpath=no
14905 hardcode_into_libs=yes
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 hardcode_into_libs=yes
14920 hpux9* | hpux10* | hpux11*)
14921 # Give a soname corresponding to the major version so that dld.sl refuses to
14922 # link against other versions.
14926 case "$host_cpu" in
14929 hardcode_into_libs=yes
14930 dynamic_linker="$host_os dld.so"
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 if test "X$HPUX_IA64_MODE" = X32; then
14936 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14938 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14944 hardcode_into_libs=yes
14945 dynamic_linker="$host_os dld.sl"
14946 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14955 dynamic_linker="$host_os dld.sl"
14956 shlibpath_var=SHLIB_PATH
14957 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14962 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14963 postinstall_cmds='chmod 555 $lib'
14966 irix5* | irix6* | nonstopux*)
14968 nonstopux*) version_type=nonstopux ;;
14970 if test "$lt_cv_prog_gnu_ld" = yes; then
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14981 irix5* | nonstopux*)
14982 libsuff= shlibsuff=
14985 case $LD in # libtool.m4 will add one of these switches to LD
14986 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14987 libsuff= shlibsuff= libmagic=32-bit;;
14988 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14989 libsuff=32 shlibsuff=N32 libmagic=N32;;
14990 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14991 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14992 *) libsuff= shlibsuff= libmagic=never-match;;
14996 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14997 shlibpath_overrides_runpath=no
14998 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14999 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15000 hardcode_into_libs=yes
15003 # No shared lib support for Linux oldld, aout, or coff.
15004 linux*oldld* | linux*aout* | linux*coff*)
15008 # This must be Linux ELF.
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 shlibpath_overrides_runpath=no
15018 # This implies no fast_install, which is unacceptable.
15019 # Some rework will be needed to allow for fast_install
15020 # before this can be enabled.
15021 hardcode_into_libs=yes
15023 # Append ld.so.conf contents to the search path
15024 if test -f /etc/ld.so.conf; then
15025 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15026 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15029 # We used to test for /lib/ld.so.1 and disable shared libraries on
15030 # powerpc, because MkLinux only supported shared libraries with the
15031 # GNU dynamic linker. Since this was broken with cross compilers,
15032 # most powerpc-linux boxes support dynamic linking these days and
15033 # people can always --disable-shared, the test was removed, and we
15034 # assume the GNU/Linux dynamic linker is in use.
15035 dynamic_linker='GNU/Linux ld.so'
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 shlibpath_overrides_runpath=no
15046 hardcode_into_libs=yes
15047 dynamic_linker='NetBSD ld.elf_so'
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15055 soname_spec='${libname}${release}${shared_ext}$major'
15056 shlibpath_var=LD_LIBRARY_PATH
15057 shlibpath_overrides_runpath=no
15058 hardcode_into_libs=yes
15059 dynamic_linker='GNU ld.so'
15066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15069 dynamic_linker='NetBSD (a.out) ld.so'
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15072 soname_spec='${libname}${release}${shared_ext}$major'
15073 dynamic_linker='NetBSD ld.elf_so'
15075 shlibpath_var=LD_LIBRARY_PATH
15076 shlibpath_overrides_runpath=yes
15077 hardcode_into_libs=yes
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083 shlibpath_var=LD_LIBRARY_PATH
15084 shlibpath_overrides_runpath=yes
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15092 soname_spec='${libname}${release}${shared_ext}$major'
15093 shlibpath_var=LD_LIBRARY_PATH
15094 shlibpath_overrides_runpath=yes
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15106 openbsd2.[89] | openbsd2.[89].*)
15107 shlibpath_overrides_runpath=no
15110 shlibpath_overrides_runpath=yes
15114 shlibpath_overrides_runpath=yes
15119 libname_spec='$name'
15122 library_names_spec='$libname${shared_ext} $libname.a'
15123 dynamic_linker='OS/2 ld.exe'
15124 shlibpath_var=LIBPATH
15127 osf3* | osf4* | osf5*)
15131 soname_spec='${libname}${release}${shared_ext}$major'
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15140 soname_spec='${libname}${release}${shared_ext}$major'
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142 shlibpath_var=LD_LIBRARY_PATH
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=yes
15153 hardcode_into_libs=yes
15154 # ldd complains unless libraries are executable
15155 postinstall_cmds='chmod +x $lib'
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15161 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15162 shlibpath_var=LD_LIBRARY_PATH
15163 shlibpath_overrides_runpath=yes
15164 if test "$with_gnu_ld" = yes; then
15170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 case $host_vendor in
15177 shlibpath_overrides_runpath=no
15179 export_dynamic_flag_spec='${wl}-Blargedynsym'
15180 runpath_var=LD_RUN_PATH
15188 shlibpath_overrides_runpath=no
15189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15195 if test -d /usr/nec ;then
15197 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15198 soname_spec='$libname${shared_ext}.$major'
15199 shlibpath_var=LD_LIBRARY_PATH
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 shlibpath_var=LD_LIBRARY_PATH
15214 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15215 echo "${ECHO_T}$dynamic_linker" >&6
15216 test "$dynamic_linker" = no && can_build_shared=no
15218 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15219 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15220 hardcode_action_F77=
15221 if test -n "$hardcode_libdir_flag_spec_F77" || \
15222 test -n "$runpath_var F77" || \
15223 test "X$hardcode_automatic_F77"="Xyes" ; then
15225 # We can hardcode non-existant directories.
15226 if test "$hardcode_direct_F77" != no &&
15227 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15228 # have to relink, otherwise we might link with an installed library
15229 # when we should be linking with a yet-to-be-installed one
15230 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15231 test "$hardcode_minus_L_F77" != no; then
15232 # Linking always hardcodes the temporary library directory.
15233 hardcode_action_F77=relink
15235 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15236 hardcode_action_F77=immediate
15239 # We cannot hardcode anything, or else we can only hardcode existing
15241 hardcode_action_F77=unsupported
15243 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15244 echo "${ECHO_T}$hardcode_action_F77" >&6
15246 if test "$hardcode_action_F77" = relink; then
15247 # Fast installation is not supported
15248 enable_fast_install=no
15249 elif test "$shlibpath_overrides_runpath" = yes ||
15250 test "$enable_shared" = no; then
15251 # Fast installation is not necessary
15252 enable_fast_install=needless
15257 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15258 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15259 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15260 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15261 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15262 echo "$as_me:$LINENO: result: yes" >&5
15263 echo "${ECHO_T}yes" >&6
15265 # FIXME - insert some real tests, host_os isn't really good enough
15268 if test -n "$STRIP" ; then
15269 striplib="$STRIP -x"
15270 echo "$as_me:$LINENO: result: yes" >&5
15271 echo "${ECHO_T}yes" >&6
15273 echo "$as_me:$LINENO: result: no" >&5
15274 echo "${ECHO_T}no" >&6
15278 echo "$as_me:$LINENO: result: no" >&5
15279 echo "${ECHO_T}no" >&6
15286 # The else clause should only fire when bootstrapping the
15287 # libtool distribution, otherwise you forgot to ship ltmain.sh
15288 # with your package, and you will get complaints that there are
15289 # no rules to generate ltmain.sh.
15290 if test -f "$ltmain"; then
15291 # See if we are running on zsh, and set the options which allow our commands through
15292 # without removal of \ escapes.
15293 if test -n "${ZSH_VERSION+set}" ; then
15294 setopt NO_GLOB_SUBST
15296 # Now quote all the things that may contain metacharacters while being
15297 # careful not to overquote the AC_SUBSTed values. We take copies of the
15298 # variables and quote the copies for generation of the libtool script.
15299 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15303 deplibs_check_method reload_flag reload_cmds need_locks \
15304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15305 lt_cv_sys_global_symbol_to_c_name_address \
15306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15307 old_postinstall_cmds old_postuninstall_cmds \
15311 lt_prog_compiler_wl_F77 \
15312 lt_prog_compiler_pic_F77 \
15313 lt_prog_compiler_static_F77 \
15314 lt_prog_compiler_no_builtin_flag_F77 \
15315 export_dynamic_flag_spec_F77 \
15316 thread_safe_flag_spec_F77 \
15317 whole_archive_flag_spec_F77 \
15318 enable_shared_with_static_runtimes_F77 \
15319 old_archive_cmds_F77 \
15320 old_archive_from_new_cmds_F77 \
15321 predep_objects_F77 \
15322 postdep_objects_F77 \
15325 compiler_lib_search_path_F77 \
15327 archive_expsym_cmds_F77 \
15328 postinstall_cmds_F77 \
15329 postuninstall_cmds_F77 \
15330 old_archive_from_expsyms_cmds_F77 \
15331 allow_undefined_flag_F77 \
15332 no_undefined_flag_F77 \
15333 export_symbols_cmds_F77 \
15334 hardcode_libdir_flag_spec_F77 \
15335 hardcode_libdir_flag_spec_ld_F77 \
15336 hardcode_libdir_separator_F77 \
15337 hardcode_automatic_F77 \
15339 module_expsym_cmds_F77 \
15340 lt_cv_prog_compiler_c_o_F77 \
15341 exclude_expsyms_F77 \
15342 include_expsyms_F77; do
15345 old_archive_cmds_F77 | \
15346 old_archive_from_new_cmds_F77 | \
15347 archive_cmds_F77 | \
15348 archive_expsym_cmds_F77 | \
15349 module_cmds_F77 | \
15350 module_expsym_cmds_F77 | \
15351 old_archive_from_expsyms_cmds_F77 | \
15352 export_symbols_cmds_F77 | \
15353 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15354 postinstall_cmds | postuninstall_cmds | \
15355 old_postinstall_cmds | old_postuninstall_cmds | \
15356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15357 # Double-quote double-evaled strings.
15358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15367 *'\$0 --fallback-echo"')
15368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15374 cat <<__EOF__ >> "$cfgfile"
15375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15379 # Shell to use when invoking shell scripts.
15382 # Whether or not to build shared libraries.
15383 build_libtool_libs=$enable_shared
15385 # Whether or not to build static libraries.
15386 build_old_libs=$enable_static
15388 # Whether or not to add -lc for building shared libraries.
15389 build_libtool_need_lc=$archive_cmds_need_lc_F77
15391 # Whether or not to disallow shared libs when runtime libs are static
15392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15394 # Whether or not to optimize for fast installation.
15395 fast_install=$enable_fast_install
15398 host_alias=$host_alias
15401 # An echo program that does not interpret backslashes.
15406 AR_FLAGS=$lt_AR_FLAGS
15411 # A language-specific compiler.
15412 CC=$lt_compiler_F77
15414 # Is the compiler the GNU C compiler?
15420 # The linker used to build libraries.
15423 # Whether we need hard or soft links.
15426 # A BSD-compatible nm program.
15429 # A symbol stripping program
15432 # Used to examine libraries when file_magic_cmd begins "file"
15433 MAGIC_CMD=$MAGIC_CMD
15435 # Used on cygwin: DLL creation program.
15438 # Used on cygwin: object dumper.
15441 # Used on cygwin: assembler.
15444 # The name of the directory that contains temporary libtool files.
15447 # How to create reloadable object files.
15448 reload_flag=$lt_reload_flag
15449 reload_cmds=$lt_reload_cmds
15451 # How to pass a linker flag through the compiler.
15452 wl=$lt_lt_prog_compiler_wl_F77
15454 # Object file suffix (normally "o").
15455 objext="$ac_objext"
15457 # Old archive suffix (normally "a").
15460 # Shared library suffix (normally ".so").
15461 shrext_cmds='$shrext_cmds'
15463 # Executable file suffix (normally "").
15466 # Additional compiler flags for building library objects.
15467 pic_flag=$lt_lt_prog_compiler_pic_F77
15470 # What is the maximum length of a command?
15471 max_cmd_len=$lt_cv_sys_max_cmd_len
15473 # Does compiler simultaneously support -c and -o options?
15474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15476 # Must we lock files when doing compilation ?
15477 need_locks=$lt_need_locks
15479 # Do we need the lib prefix for modules?
15480 need_lib_prefix=$need_lib_prefix
15482 # Do we need a version for libraries?
15483 need_version=$need_version
15485 # Whether dlopen is supported.
15486 dlopen_support=$enable_dlopen
15488 # Whether dlopen of programs is supported.
15489 dlopen_self=$enable_dlopen_self
15491 # Whether dlopen of statically linked programs is supported.
15492 dlopen_self_static=$enable_dlopen_self_static
15494 # Compiler flag to prevent dynamic linking.
15495 link_static_flag=$lt_lt_prog_compiler_static_F77
15497 # Compiler flag to turn off builtin functions.
15498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15500 # Compiler flag to allow reflexive dlopens.
15501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15503 # Compiler flag to generate shared objects directly from archives.
15504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15506 # Compiler flag to generate thread-safe objects.
15507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15509 # Library versioning type.
15510 version_type=$version_type
15512 # Format of library name prefix.
15513 libname_spec=$lt_libname_spec
15515 # List of archive names. First name is the real one, the rest are links.
15516 # The last name is the one that the linker finds with -lNAME.
15517 library_names_spec=$lt_library_names_spec
15519 # The coded name of the library, if different from the real name.
15520 soname_spec=$lt_soname_spec
15522 # Commands used to build and install an old-style archive.
15524 old_archive_cmds=$lt_old_archive_cmds_F77
15525 old_postinstall_cmds=$lt_old_postinstall_cmds
15526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15528 # Create an old-style archive from a shared archive.
15529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15531 # Create a temporary old-style archive to link instead of a shared archive.
15532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15534 # Commands used to build and install a shared archive.
15535 archive_cmds=$lt_archive_cmds_F77
15536 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15537 postinstall_cmds=$lt_postinstall_cmds
15538 postuninstall_cmds=$lt_postuninstall_cmds
15540 # Commands used to build a loadable module (assumed same as above if empty)
15541 module_cmds=$lt_module_cmds_F77
15542 module_expsym_cmds=$lt_module_expsym_cmds_F77
15544 # Commands to strip libraries.
15545 old_striplib=$lt_old_striplib
15546 striplib=$lt_striplib
15548 # Dependencies to place before the objects being linked to create a
15550 predep_objects=$lt_predep_objects_F77
15552 # Dependencies to place after the objects being linked to create a
15554 postdep_objects=$lt_postdep_objects_F77
15556 # Dependencies to place before the objects being linked to create a
15558 predeps=$lt_predeps_F77
15560 # Dependencies to place after the objects being linked to create a
15562 postdeps=$lt_postdeps_F77
15564 # The library search path used internally by the compiler when linking
15565 # a shared library.
15566 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15568 # Method to check whether dependent libraries are shared objects.
15569 deplibs_check_method=$lt_deplibs_check_method
15571 # Command to use when deplibs_check_method == file_magic.
15572 file_magic_cmd=$lt_file_magic_cmd
15574 # Flag that allows shared libraries with undefined symbols to be built.
15575 allow_undefined_flag=$lt_allow_undefined_flag_F77
15577 # Flag that forces no undefined symbols.
15578 no_undefined_flag=$lt_no_undefined_flag_F77
15580 # Commands used to finish a libtool library installation in a directory.
15581 finish_cmds=$lt_finish_cmds
15583 # Same as above, but a single script fragment to be evaled but not shown.
15584 finish_eval=$lt_finish_eval
15586 # Take the output of nm and produce a listing of raw symbols and C names.
15587 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15589 # Transform the output of nm in a proper C declaration
15590 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15592 # Transform the output of nm in a C name address pair
15593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15595 # This is the shared library runtime path variable.
15596 runpath_var=$runpath_var
15598 # This is the shared library path variable.
15599 shlibpath_var=$shlibpath_var
15601 # Is shlibpath searched before the hard-coded library search path?
15602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15604 # How to hardcode a shared library path into an executable.
15605 hardcode_action=$hardcode_action_F77
15607 # Whether we should hardcode library paths into libraries.
15608 hardcode_into_libs=$hardcode_into_libs
15610 # Flag to hardcode \$libdir into a binary during linking.
15611 # This must work even if \$libdir does not exist.
15612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15614 # If ld is used when linking, flag to hardcode \$libdir into
15615 # a binary during linking. This must work even if \$libdir does
15617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15619 # Whether we need a single -rpath flag with a separated argument.
15620 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15622 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15623 # resulting binary.
15624 hardcode_direct=$hardcode_direct_F77
15626 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15627 # resulting binary.
15628 hardcode_minus_L=$hardcode_minus_L_F77
15630 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15631 # the resulting binary.
15632 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15634 # Set to yes if building a shared library automatically hardcodes DIR into the library
15635 # and all subsequent libraries and executables linked against it.
15636 hardcode_automatic=$hardcode_automatic_F77
15638 # Variables whose values should be saved in libtool wrapper scripts and
15639 # restored at relink time.
15640 variables_saved_for_relink="$variables_saved_for_relink"
15642 # Whether libtool must link a program against all its dependency libraries.
15643 link_all_deplibs=$link_all_deplibs_F77
15645 # Compile-time system search path for libraries
15646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15648 # Run-time system search path for libraries
15649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15651 # Fix the shell variable \$srcfile for the compiler.
15652 fix_srcfile_path="$fix_srcfile_path_F77"
15654 # Set to yes if exported symbols are required.
15655 always_export_symbols=$always_export_symbols_F77
15657 # The commands to list exported symbols.
15658 export_symbols_cmds=$lt_export_symbols_cmds_F77
15660 # The commands to extract the exported symbol list from a shared archive.
15661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15663 # Symbols that should not be listed in the preloaded symbols.
15664 exclude_expsyms=$lt_exclude_expsyms_F77
15666 # Symbols that must always be exported.
15667 include_expsyms=$lt_include_expsyms_F77
15669 # ### END LIBTOOL TAG CONFIG: $tagname
15675 # If there is no Makefile yet, we rely on a make rule to execute
15676 # `config.status --recheck' to rerun these tests and create the
15677 # libtool script then.
15678 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15679 if test -f "$ltmain_in"; then
15680 test -f Makefile && make "$ltmain"
15686 ac_cpp='$CPP $CPPFLAGS'
15687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15699 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15703 # Source file extension for Java test sources.
15706 # Object file extension for compiled Java test sources.
15710 # Code to be used in simple compile tests
15711 lt_simple_compile_test_code="class foo {}\n"
15713 # Code to be used in simple link tests
15714 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15716 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15718 # If no C compiler was specified, use CC.
15721 # Allow CC to be a program name with arguments.
15725 # Allow CC to be a program name with arguments.
15731 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15732 archive_cmds_need_lc_GCJ=no
15735 lt_prog_compiler_no_builtin_flag_GCJ=
15737 if test "$GCC" = yes; then
15738 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15741 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15742 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15743 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15746 lt_cv_prog_compiler_rtti_exceptions=no
15747 ac_outfile=conftest.$ac_objext
15748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15749 lt_compiler_flag="-fno-rtti -fno-exceptions"
15750 # Insert the option either (1) after the last *FLAGS variable, or
15751 # (2) before a word containing "conftest.", or (3) at the end.
15752 # Note that $ac_compile itself does not contain backslashes and begins
15753 # with a dollar sign (not a hyphen), so the echo should work correctly.
15754 # The option is referenced via a variable to avoid confusing sed.
15755 lt_compile=`echo "$ac_compile" | $SED \
15756 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15758 -e 's:$: $lt_compiler_flag:'`
15759 (eval echo "\"\$as_me:15759: $lt_compile\"" >&5)
15760 (eval "$lt_compile" 2>conftest.err)
15762 cat conftest.err >&5
15763 echo "$as_me:15763: \$? = $ac_status" >&5
15764 if (exit $ac_status) && test -s "$ac_outfile"; then
15765 # The compiler can only warn and ignore the option if not recognized
15766 # So say no if there are warnings
15767 if test ! -s conftest.err; then
15768 lt_cv_prog_compiler_rtti_exceptions=yes
15774 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15775 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15777 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15778 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15785 lt_prog_compiler_wl_GCJ=
15786 lt_prog_compiler_pic_GCJ=
15787 lt_prog_compiler_static_GCJ=
15789 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15790 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15792 if test "$GCC" = yes; then
15793 lt_prog_compiler_wl_GCJ='-Wl,'
15794 lt_prog_compiler_static_GCJ='-static'
15798 # All AIX code is PIC.
15799 if test "$host_cpu" = ia64; then
15800 # AIX 5 now supports IA64 processor
15801 lt_prog_compiler_static_GCJ='-Bstatic'
15806 # FIXME: we need at least 68020 code to build shared libraries, but
15807 # adding the `-m68020' flag to GCC prevents building anything better,
15809 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15812 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15813 # PIC is the default for these OSes.
15816 mingw* | pw32* | os2*)
15817 # This hack is so that the source file can tell whether it is being
15818 # built for inclusion in a dll (and should export symbols for example).
15819 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15822 darwin* | rhapsody*)
15823 # PIC is the default on this platform
15824 # Common symbols not allowed in MH_DYLIB files
15825 lt_prog_compiler_pic_GCJ='-fno-common'
15829 # Just because we use GCC doesn't mean we suddenly get shared libraries
15830 # on systems that don't support them.
15831 lt_prog_compiler_can_build_shared_GCJ=no
15836 if test -d /usr/nec; then
15837 lt_prog_compiler_pic_GCJ=-Kconform_pic
15842 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15843 # not for PA HP-UX.
15844 case "$host_cpu" in
15849 lt_prog_compiler_pic_GCJ='-fPIC'
15855 lt_prog_compiler_pic_GCJ='-fPIC'
15859 # PORTME Check for flag to pass linker flags through the system compiler.
15862 lt_prog_compiler_wl_GCJ='-Wl,'
15863 if test "$host_cpu" = ia64; then
15864 # AIX 5 now supports IA64 processor
15865 lt_prog_compiler_static_GCJ='-Bstatic'
15867 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15871 mingw* | pw32* | os2*)
15872 # This hack is so that the source file can tell whether it is being
15873 # built for inclusion in a dll (and should export symbols for example).
15874 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15877 hpux9* | hpux10* | hpux11*)
15878 lt_prog_compiler_wl_GCJ='-Wl,'
15879 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15880 # not for PA HP-UX.
15881 case "$host_cpu" in
15886 lt_prog_compiler_pic_GCJ='+Z'
15889 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15890 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15893 irix5* | irix6* | nonstopux*)
15894 lt_prog_compiler_wl_GCJ='-Wl,'
15895 # PIC (with -KPIC) is the default.
15896 lt_prog_compiler_static_GCJ='-non_shared'
15900 lt_prog_compiler_pic_GCJ='-KPIC'
15901 lt_prog_compiler_static_GCJ='-Bstatic'
15907 lt_prog_compiler_wl_GCJ='-Wl,'
15908 lt_prog_compiler_pic_GCJ='-KPIC'
15909 lt_prog_compiler_static_GCJ='-static'
15912 lt_prog_compiler_wl_GCJ='-Wl,'
15913 # All Alpha code is PIC.
15914 lt_prog_compiler_static_GCJ='-non_shared'
15919 osf3* | osf4* | osf5*)
15920 lt_prog_compiler_wl_GCJ='-Wl,'
15921 # All OSF/1 code is PIC.
15922 lt_prog_compiler_static_GCJ='-non_shared'
15926 lt_prog_compiler_pic_GCJ='-Kpic'
15927 lt_prog_compiler_static_GCJ='-dn'
15931 lt_prog_compiler_wl_GCJ='-Wl,'
15932 lt_prog_compiler_pic_GCJ='-KPIC'
15933 lt_prog_compiler_static_GCJ='-Bstatic'
15937 lt_prog_compiler_wl_GCJ='-Qoption ld '
15938 lt_prog_compiler_pic_GCJ='-PIC'
15939 lt_prog_compiler_static_GCJ='-Bstatic'
15942 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15943 lt_prog_compiler_wl_GCJ='-Wl,'
15944 lt_prog_compiler_pic_GCJ='-KPIC'
15945 lt_prog_compiler_static_GCJ='-Bstatic'
15949 if test -d /usr/nec ;then
15950 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15951 lt_prog_compiler_static_GCJ='-Bstatic'
15956 lt_prog_compiler_pic_GCJ='-pic'
15957 lt_prog_compiler_static_GCJ='-Bstatic'
15961 lt_prog_compiler_can_build_shared_GCJ=no
15966 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15967 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15970 # Check to make sure the PIC flag actually works.
15972 if test -n "$lt_prog_compiler_pic_GCJ"; then
15974 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15975 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15976 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 lt_prog_compiler_pic_works_GCJ=no
15980 ac_outfile=conftest.$ac_objext
15981 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15982 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15983 # Insert the option either (1) after the last *FLAGS variable, or
15984 # (2) before a word containing "conftest.", or (3) at the end.
15985 # Note that $ac_compile itself does not contain backslashes and begins
15986 # with a dollar sign (not a hyphen), so the echo should work correctly.
15987 # The option is referenced via a variable to avoid confusing sed.
15988 lt_compile=`echo "$ac_compile" | $SED \
15989 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15991 -e 's:$: $lt_compiler_flag:'`
15992 (eval echo "\"\$as_me:15992: $lt_compile\"" >&5)
15993 (eval "$lt_compile" 2>conftest.err)
15995 cat conftest.err >&5
15996 echo "$as_me:15996: \$? = $ac_status" >&5
15997 if (exit $ac_status) && test -s "$ac_outfile"; then
15998 # The compiler can only warn and ignore the option if not recognized
15999 # So say no if there are warnings
16000 if test ! -s conftest.err; then
16001 lt_prog_compiler_pic_works_GCJ=yes
16007 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16008 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16010 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16011 case $lt_prog_compiler_pic_GCJ in
16013 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16016 lt_prog_compiler_pic_GCJ=
16017 lt_prog_compiler_can_build_shared_GCJ=no
16022 # For platforms which do not support PIC, -DPIC is meaningless:
16024 lt_prog_compiler_pic_GCJ=
16027 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16031 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16032 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16033 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 lt_cv_prog_compiler_c_o_GCJ=no
16037 $rm -r conftest 2>/dev/null
16041 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16043 lt_compiler_flag="-o out/conftest2.$ac_objext"
16044 # Insert the option either (1) after the last *FLAGS variable, or
16045 # (2) before a word containing "conftest.", or (3) at the end.
16046 # Note that $ac_compile itself does not contain backslashes and begins
16047 # with a dollar sign (not a hyphen), so the echo should work correctly.
16048 lt_compile=`echo "$ac_compile" | $SED \
16049 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16051 -e 's:$: $lt_compiler_flag:'`
16052 (eval echo "\"\$as_me:16052: $lt_compile\"" >&5)
16053 (eval "$lt_compile" 2>out/conftest.err)
16055 cat out/conftest.err >&5
16056 echo "$as_me:16056: \$? = $ac_status" >&5
16057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16059 # The compiler can only warn and ignore the option if not recognized
16060 # So say no if there are warnings
16061 if test ! -s out/conftest.err; then
16062 lt_cv_prog_compiler_c_o_GCJ=yes
16067 # SGI C++ compiler will create directory out/ii_files/ for
16068 # template instantiation
16069 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16070 $rm out/* && rmdir out
16076 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16077 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16080 hard_links="nottested"
16081 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16082 # do not overwrite the value of need_locks provided by the user
16083 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16084 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16089 ln conftest.a conftest.b 2>&5 || hard_links=no
16090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16091 echo "$as_me:$LINENO: result: $hard_links" >&5
16092 echo "${ECHO_T}$hard_links" >&6
16093 if test "$hard_links" = no; then
16094 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16095 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16102 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16103 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16106 allow_undefined_flag_GCJ=
16107 enable_shared_with_static_runtimes_GCJ=no
16109 archive_expsym_cmds_GCJ=
16110 old_archive_From_new_cmds_GCJ=
16111 old_archive_from_expsyms_cmds_GCJ=
16112 export_dynamic_flag_spec_GCJ=
16113 whole_archive_flag_spec_GCJ=
16114 thread_safe_flag_spec_GCJ=
16115 hardcode_libdir_flag_spec_GCJ=
16116 hardcode_libdir_flag_spec_ld_GCJ=
16117 hardcode_libdir_separator_GCJ=
16118 hardcode_direct_GCJ=no
16119 hardcode_minus_L_GCJ=no
16120 hardcode_shlibpath_var_GCJ=unsupported
16121 link_all_deplibs_GCJ=unknown
16122 hardcode_automatic_GCJ=no
16124 module_expsym_cmds_GCJ=
16125 always_export_symbols_GCJ=no
16126 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16127 # include_expsyms should be a list of space-separated symbols to be *always*
16128 # included in the symbol list
16129 include_expsyms_GCJ=
16130 # exclude_expsyms can be an extended regexp of symbols to exclude
16131 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16132 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16133 # as well as any symbol that contains `d'.
16134 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16135 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16136 # platforms (ab)use it in PIC code, but their linkers get confused if
16137 # the symbol is explicitly referenced. Since portable code cannot
16138 # rely on this symbol name, it's probably fine to never include it in
16139 # preloaded symbol tables.
16140 extract_expsyms_cmds=
16143 cygwin* | mingw* | pw32*)
16144 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16145 # When not using gcc, we currently assume that we are using
16146 # Microsoft Visual C++.
16147 if test "$GCC" != yes; then
16157 if test "$with_gnu_ld" = yes; then
16158 # If archive_cmds runs LD, not CC, wlarc should be empty
16161 # See if GNU ld supports shared libraries.
16163 aix3* | aix4* | aix5*)
16164 # On AIX/PPC, the GNU linker is very broken
16165 if test "$host_cpu" != ia64; then
16169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16170 *** to be unable to reliably create shared libraries on AIX.
16171 *** Therefore, libtool is disabling shared libraries support. If you
16172 *** really care for shared libraries, you may want to modify your PATH
16173 *** so that a non-GNU linker is found, and then restart.
16180 archive_cmds_GCJ='$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)'
16181 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16182 hardcode_minus_L_GCJ=yes
16184 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16185 # that the semantics of dynamic libraries on AmigaOS, at least up
16186 # to version 4, is to share data among multiple programs linked
16187 # with the same dynamic library. Since this doesn't match the
16188 # behavior of shared libraries on other platforms, we can't use
16194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16195 allow_undefined_flag_GCJ=unsupported
16196 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16197 # support --undefined. This deserves some investigation. FIXME
16198 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16204 cygwin* | mingw* | pw32*)
16205 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16206 # as there is no search path for DLLs.
16207 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16208 allow_undefined_flag_GCJ=unsupported
16209 always_export_symbols_GCJ=no
16210 enable_shared_with_static_runtimes_GCJ=yes
16211 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16213 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16214 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16215 # If the export-symbols file already is a .def file (1st line
16216 # is EXPORTS), use it as is; otherwise, prepend...
16217 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16218 cp $export_symbols $output_objdir/$soname.def;
16220 echo EXPORTS > $output_objdir/$soname.def;
16221 cat $export_symbols >> $output_objdir/$soname.def;
16223 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16229 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16231 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16234 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16235 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16240 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16244 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16245 *** create shared libraries on Solaris systems. Therefore, libtool
16246 *** is disabling shared libraries support. We urge you to upgrade GNU
16247 *** binutils to release 2.9.1 or newer. Another option is to modify
16248 *** your PATH or compiler configuration so that the native linker is
16249 *** used, and then restart.
16252 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16253 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16254 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16261 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16263 hardcode_direct_GCJ=yes
16264 hardcode_shlibpath_var_GCJ=no
16268 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16269 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16270 archive_cmds_GCJ="$tmp_archive_cmds"
16271 supports_anon_versioning=no
16272 case `$LD -v 2>/dev/null` in
16273 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16274 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16275 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16276 *\ 2.11.*) ;; # other 2.11 versions
16277 *) supports_anon_versioning=yes ;;
16279 if test $supports_anon_versioning = yes; then
16280 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16281 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16282 $echo "local: *; };" >> $output_objdir/$libname.ver~
16283 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16285 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16287 link_all_deplibs_GCJ=no
16294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16295 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16296 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16303 if test "$ld_shlibs_GCJ" = yes; then
16304 runpath_var=LD_RUN_PATH
16305 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16306 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16307 # ancient GNU ld didn't support --whole-archive et. al.
16308 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16309 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16311 whole_archive_flag_spec_GCJ=
16315 # PORTME fill in a description of your system's linker (not GNU ld)
16318 allow_undefined_flag_GCJ=unsupported
16319 always_export_symbols_GCJ=yes
16320 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16321 # Note: this linker hardcodes the directories in LIBPATH if there
16322 # are no directories specified by -L.
16323 hardcode_minus_L_GCJ=yes
16324 if test "$GCC" = yes && test -z "$link_static_flag"; then
16325 # Neither direct hardcoding nor static linking is supported with a
16327 hardcode_direct_GCJ=unsupported
16332 if test "$host_cpu" = ia64; then
16333 # On IA64, the linker does run time linking by default, so we don't
16334 # have to do anything special.
16335 aix_use_runtimelinking=no
16336 exp_sym_flag='-Bexport'
16339 # If we're using GNU nm, then we don't want the "-C" option.
16340 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16341 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16342 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16344 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16346 aix_use_runtimelinking=no
16348 # Test if we are trying to use run time linking or normal
16349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16350 # need to do runtime linking.
16351 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16352 for ld_flag in $LDFLAGS; do
16353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16354 aix_use_runtimelinking=yes
16360 exp_sym_flag='-bexport'
16361 no_entry_flag='-bnoentry'
16364 # When large executables or shared objects are built, AIX ld can
16365 # have problems creating the table of contents. If linking a library
16366 # or program results in "error TOC overflow" add -mminimal-toc to
16367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16370 archive_cmds_GCJ=''
16371 hardcode_direct_GCJ=yes
16372 hardcode_libdir_separator_GCJ=':'
16373 link_all_deplibs_GCJ=yes
16375 if test "$GCC" = yes; then
16376 case $host_os in aix4.012|aix4.012.*)
16377 # We only want to do this on AIX 4.2 and lower, the check
16378 # below for broken collect2 doesn't work under 4.3+
16379 collect2name=`${CC} -print-prog-name=collect2`
16380 if test -f "$collect2name" && \
16381 strings "$collect2name" | grep resolve_lib_name >/dev/null
16383 # We have reworked collect2
16384 hardcode_direct_GCJ=yes
16386 # We have old collect2
16387 hardcode_direct_GCJ=unsupported
16388 # It fails to find uninstalled libraries when the uninstalled
16389 # path is not listed in the libpath. Setting hardcode_minus_L
16390 # to unsupported forces relinking
16391 hardcode_minus_L_GCJ=yes
16392 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16393 hardcode_libdir_separator_GCJ=
16396 shared_flag='-shared'
16399 if test "$host_cpu" = ia64; then
16400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16401 # chokes on -Wl,-G. The following line is correct:
16404 if test "$aix_use_runtimelinking" = yes; then
16405 shared_flag='${wl}-G'
16407 shared_flag='${wl}-bM:SRE'
16412 # It seems that -bexpall does not export symbols beginning with
16413 # underscore (_), so it is better to generate a list of symbols to export.
16414 always_export_symbols_GCJ=yes
16415 if test "$aix_use_runtimelinking" = yes; then
16416 # Warning - without using the other runtime loading flags (-brtl),
16417 # -berok will link without error, but may produce a broken library.
16418 allow_undefined_flag_GCJ='-berok'
16419 # Determine the default libpath from the value encoded in an empty executable.
16420 cat >conftest.$ac_ext <<_ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16437 (eval $ac_link) 2>conftest.er1
16439 grep -v '^ *+' conftest.er1 >conftest.err
16441 cat conftest.err >&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
16444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest$ac_exeext'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16457 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16459 # Check for a 64-bit object if we didn't find anything.
16460 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16467 rm -f conftest.err conftest.$ac_objext \
16468 conftest$ac_exeext conftest.$ac_ext
16469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16471 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16472 archive_expsym_cmds_GCJ="\$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"
16474 if test "$host_cpu" = ia64; then
16475 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16476 allow_undefined_flag_GCJ="-z nodefs"
16477 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16479 # Determine the default libpath from the value encoded in an empty executable.
16480 cat >conftest.$ac_ext <<_ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16495 rm -f conftest.$ac_objext conftest$ac_exeext
16496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16497 (eval $ac_link) 2>conftest.er1
16499 grep -v '^ *+' conftest.er1 >conftest.err
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506 (eval $ac_try) 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; } &&
16510 { ac_try='test -s conftest$ac_exeext'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16519 # Check for a 64-bit object if we didn't find anything.
16520 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16527 rm -f conftest.err conftest.$ac_objext \
16528 conftest$ac_exeext conftest.$ac_ext
16529 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16531 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16532 # Warning - without using the other run time loading flags,
16533 # -berok will link without error, but may produce a broken library.
16534 no_undefined_flag_GCJ=' ${wl}-bernotok'
16535 allow_undefined_flag_GCJ=' ${wl}-berok'
16536 # -bexpall does not export symbols beginning with underscore (_)
16537 always_export_symbols_GCJ=yes
16538 # Exported symbols can be pulled into shared objects from archives
16539 whole_archive_flag_spec_GCJ=' '
16540 archive_cmds_need_lc_GCJ=yes
16541 # This is similar to how AIX traditionally builds it's shared libraries.
16542 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16548 archive_cmds_GCJ='$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)'
16549 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16550 hardcode_minus_L_GCJ=yes
16551 # see comment about different semantics on the GNU ld section
16556 export_dynamic_flag_spec_GCJ=-rdynamic
16559 cygwin* | mingw* | pw32*)
16560 # When not using gcc, we currently assume that we are using
16561 # Microsoft Visual C++.
16562 # hardcode_libdir_flag_spec is actually meaningless, as there is
16563 # no search path for DLLs.
16564 hardcode_libdir_flag_spec_GCJ=' '
16565 allow_undefined_flag_GCJ=unsupported
16566 # Tell ltmain to make .lib files, not .a files.
16568 # Tell ltmain to make .dll files, not .so files.
16570 # FIXME: Setting linknames here is a bad hack.
16571 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16572 # The linker will automatically build a .lib file if we build a DLL.
16573 old_archive_From_new_cmds_GCJ='true'
16574 # FIXME: Should let the user specify the lib program.
16575 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16576 fix_srcfile_path='`cygpath -w "$srcfile"`'
16577 enable_shared_with_static_runtimes_GCJ=yes
16580 darwin* | rhapsody*)
16581 if test "$GXX" = yes ; then
16582 archive_cmds_need_lc_GCJ=no
16584 rhapsody* | darwin1.[012])
16585 allow_undefined_flag_GCJ='-undefined suppress'
16588 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16589 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16591 case ${MACOSX_DEPLOYMENT_TARGET} in
16593 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16596 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16602 lt_int_apple_cc_single_mod=no
16603 output_verbose_link_cmd='echo'
16604 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16605 lt_int_apple_cc_single_mod=yes
16607 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16608 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16610 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16612 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16613 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16614 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16615 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16617 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16619 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16620 hardcode_direct_GCJ=no
16621 hardcode_automatic_GCJ=yes
16622 hardcode_shlibpath_var_GCJ=unsupported
16623 whole_archive_flag_spec_GCJ='-all_load $convenience'
16624 link_all_deplibs_GCJ=yes
16631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16632 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16633 hardcode_shlibpath_var_GCJ=no
16640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16641 # support. Future versions do this automatically, but an explicit c++rt0.o
16642 # does not break anything, and helps significantly (at the cost of a little
16645 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16646 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16647 hardcode_direct_GCJ=yes
16648 hardcode_shlibpath_var_GCJ=no
16651 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16653 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_direct_GCJ=yes
16655 hardcode_minus_L_GCJ=yes
16656 hardcode_shlibpath_var_GCJ=no
16659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16660 freebsd* | kfreebsd*-gnu)
16661 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16662 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16663 hardcode_direct_GCJ=yes
16664 hardcode_shlibpath_var_GCJ=no
16668 if test "$GCC" = yes; then
16669 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16671 archive_cmds_GCJ='$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'
16673 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16674 hardcode_libdir_separator_GCJ=:
16675 hardcode_direct_GCJ=yes
16677 # hardcode_minus_L: Not really in the search PATH,
16678 # but as the default location of the library.
16679 hardcode_minus_L_GCJ=yes
16680 export_dynamic_flag_spec_GCJ='${wl}-E'
16684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16685 case "$host_cpu" in
16687 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16690 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16694 case "$host_cpu" in
16696 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16703 if test "$with_gnu_ld" = no; then
16704 case "$host_cpu" in
16706 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16707 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16708 hardcode_libdir_separator_GCJ=:
16709 hardcode_direct_GCJ=no
16710 hardcode_shlibpath_var_GCJ=no
16713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16714 hardcode_direct_GCJ=no
16715 hardcode_shlibpath_var_GCJ=no
16717 # hardcode_minus_L: Not really in the search PATH,
16718 # but as the default location of the library.
16719 hardcode_minus_L_GCJ=yes
16722 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16723 hardcode_libdir_separator_GCJ=:
16724 hardcode_direct_GCJ=yes
16725 export_dynamic_flag_spec_GCJ='${wl}-E'
16727 # hardcode_minus_L: Not really in the search PATH,
16728 # but as the default location of the library.
16729 hardcode_minus_L_GCJ=yes
16735 irix5* | irix6* | nonstopux*)
16736 if test "$GCC" = yes; then
16737 archive_cmds_GCJ='$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'
16739 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16740 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16742 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16743 hardcode_libdir_separator_GCJ=:
16744 link_all_deplibs_GCJ=yes
16747 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16749 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16751 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16754 hardcode_direct_GCJ=yes
16755 hardcode_shlibpath_var_GCJ=no
16759 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760 hardcode_direct_GCJ=yes
16761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16762 hardcode_libdir_separator_GCJ=:
16763 hardcode_shlibpath_var_GCJ=no
16767 hardcode_direct_GCJ=yes
16768 hardcode_shlibpath_var_GCJ=no
16769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16770 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16771 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16772 export_dynamic_flag_spec_GCJ='${wl}-E'
16775 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16776 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16777 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16780 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16781 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16789 hardcode_minus_L_GCJ=yes
16790 allow_undefined_flag_GCJ=unsupported
16791 archive_cmds_GCJ='$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'
16792 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16796 if test "$GCC" = yes; then
16797 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16798 archive_cmds_GCJ='$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'
16800 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16801 archive_cmds_GCJ='$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'
16803 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16804 hardcode_libdir_separator_GCJ=:
16807 osf4* | osf5*) # as osf3* with the addition of -msym flag
16808 if test "$GCC" = yes; then
16809 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16810 archive_cmds_GCJ='$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'
16811 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16813 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16814 archive_cmds_GCJ='$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'
16815 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16816 $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'
16818 # Both c and cxx compiler support -rpath directly
16819 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16821 hardcode_libdir_separator_GCJ=:
16825 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16826 hardcode_shlibpath_var_GCJ=no
16827 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16828 runpath_var=LD_RUN_PATH
16829 hardcode_runpath_var=yes
16833 no_undefined_flag_GCJ=' -z text'
16834 if test "$GCC" = yes; then
16835 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16836 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16837 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16839 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16840 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16841 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16843 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16844 hardcode_shlibpath_var_GCJ=no
16846 solaris2.[0-5] | solaris2.[0-5].*) ;;
16847 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16848 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16850 link_all_deplibs_GCJ=yes
16854 if test "x$host_vendor" = xsequent; then
16855 # Use $CC to link under sequent, because it throws in some extra .o
16856 # files that make .init and .fini sections work.
16857 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16859 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16861 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16862 hardcode_direct_GCJ=yes
16863 hardcode_minus_L_GCJ=yes
16864 hardcode_shlibpath_var_GCJ=no
16868 case $host_vendor in
16870 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16871 hardcode_direct_GCJ=yes # is this really true???
16874 ## LD is ld it makes a PLAMLIB
16875 ## CC just makes a GrossModule.
16876 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16877 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16878 hardcode_direct_GCJ=no
16881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16882 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16885 runpath_var='LD_RUN_PATH'
16886 hardcode_shlibpath_var_GCJ=no
16890 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891 hardcode_shlibpath_var_GCJ=no
16892 export_dynamic_flag_spec_GCJ='-Bexport'
16896 if test -d /usr/nec; then
16897 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898 hardcode_shlibpath_var_GCJ=no
16899 runpath_var=LD_RUN_PATH
16900 hardcode_runpath_var=yes
16906 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16907 hardcode_direct_GCJ=yes
16908 hardcode_minus_L_GCJ=no
16909 hardcode_shlibpath_var_GCJ=no
16910 hardcode_runpath_var=yes
16911 runpath_var=LD_RUN_PATH
16914 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16915 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16916 if test "$GCC" = yes; then
16917 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16919 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16921 runpath_var='LD_RUN_PATH'
16922 hardcode_shlibpath_var_GCJ=no
16926 no_undefined_flag_GCJ=' -z text'
16927 # $CC -shared without GNU ld will not create a library from C++
16928 # object files and a static libstdc++, better avoid it by now
16929 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16930 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16931 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16932 hardcode_libdir_flag_spec_GCJ=
16933 hardcode_shlibpath_var_GCJ=no
16934 runpath_var='LD_RUN_PATH'
16938 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940 hardcode_shlibpath_var_GCJ=no
16949 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16950 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16951 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16954 if test "$GCC" = yes; then
16955 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16959 # Do we need to explicitly link libc?
16961 case "x$archive_cmds_need_lc_GCJ" in
16963 # Assume -lc should be added
16964 archive_cmds_need_lc_GCJ=yes
16966 if test "$enable_shared" = yes && test "$GCC" = yes; then
16967 case $archive_cmds_GCJ in
16969 # FIXME: we may have to deal with multi-command sequences.
16972 # Test whether the compiler implicitly links with -lc since on some
16973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16974 # to ld, don't add -lc before -lgcc.
16975 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16976 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16981 (eval $ac_compile) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } 2>conftest.err; then
16987 libobjs=conftest.$ac_objext
16989 wl=$lt_prog_compiler_wl_GCJ
16995 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16996 allow_undefined_flag_GCJ=
16997 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16998 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }
17003 archive_cmds_need_lc_GCJ=no
17005 archive_cmds_need_lc_GCJ=yes
17007 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17009 cat conftest.err 1>&5
17012 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17013 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17020 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17021 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17022 library_names_spec=
17023 libname_spec='lib$name'
17027 postuninstall_cmds=
17031 shlibpath_overrides_runpath=unknown
17033 dynamic_linker="$host_os ld.so"
17034 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17035 if test "$GCC" = yes; then
17036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17037 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17038 # if the path contains ";" then we assume it to be the separator
17039 # otherwise default to the standard path separator (i.e. ":") - it is
17040 # assumed that no part of a normal pathname contains ";" but that should
17041 # okay in the real world where ";" in dirpaths is itself problematic.
17042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17047 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17049 need_lib_prefix=unknown
17050 hardcode_into_libs=no
17052 # when you set need_version to no, make sure it does not cause -set_version
17053 # flags to be left without arguments
17054 need_version=unknown
17059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17060 shlibpath_var=LIBPATH
17062 # AIX 3 has no versioning support, so we append a major version to the name.
17063 soname_spec='${libname}${release}${shared_ext}$major'
17070 hardcode_into_libs=yes
17071 if test "$host_cpu" = ia64; then
17072 # AIX 5 supports IA64
17073 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17074 shlibpath_var=LD_LIBRARY_PATH
17076 # With GCC up to 2.95.x, collect2 would create an import file
17077 # for dependence libraries. The import file would start with
17078 # the line `#! .'. This would cause the generated library to
17079 # depend on `.', always an invalid library. This was fixed in
17080 # development snapshots of GCC prior to 3.0.
17082 aix4 | aix4.[01] | aix4.[01].*)
17083 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17085 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17088 can_build_shared=no
17092 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17093 # soname into executable. Probably we can add versioning support to
17094 # collect2, so additional links can be useful in future.
17095 if test "$aix_use_runtimelinking" = yes; then
17096 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17097 # instead of lib<name>.a to let people know that these are not
17098 # typical AIX shared libraries.
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17101 # We preserve .a as extension for shared libraries through AIX4.2
17102 # and later when we are not doing run time linking.
17103 library_names_spec='${libname}${release}.a $libname.a'
17104 soname_spec='${libname}${release}${shared_ext}$major'
17106 shlibpath_var=LIBPATH
17111 library_names_spec='$libname.ixlibrary $libname.a'
17112 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17113 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'
17117 library_names_spec='${libname}${shared_ext}'
17118 dynamic_linker="$host_os ld.so"
17119 shlibpath_var=LIBRARY_PATH
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17127 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17130 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17131 # the default ld.so.conf also contains /usr/contrib/lib and
17132 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17133 # libtool to hard-code these into programs
17136 cygwin* | mingw* | pw32*)
17137 version_type=windows
17142 case $GCC,$host_os in
17143 yes,cygwin* | yes,mingw* | yes,pw32*)
17144 library_names_spec='$libname.dll.a'
17145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17146 postinstall_cmds='base_file=`basename \${file}`~
17147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17148 dldir=$destdir/`dirname \$dlpath`~
17149 test -d \$dldir || mkdir -p \$dldir~
17150 $install_prog $dir/$dlname \$dldir/$dlname'
17151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17152 dlpath=$dir/\$dldll~
17154 shlibpath_overrides_runpath=yes
17158 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17159 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17160 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17163 # MinGW DLLs use traditional 'lib' prefix
17164 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17165 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17166 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17167 # It is most probably a Windows format PATH printed by
17168 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17169 # path with ; separators, and with drive letters. We can handle the
17170 # drive letters (cygwin fileutils understands them), so leave them,
17171 # especially as we might pass files found there to a mingw objdump,
17172 # which wouldn't understand a cygwinified path. Ahh.
17173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17179 # pw32 DLLs use 'pw' prefix rather than 'lib'
17180 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17186 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17189 dynamic_linker='Win32 ld.exe'
17190 # FIXME: first we should search . and the directory the executable is in
17194 darwin* | rhapsody*)
17195 dynamic_linker="$host_os dyld"
17196 version_type=darwin
17199 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17200 soname_spec='${libname}${release}${major}$shared_ext'
17201 shlibpath_overrides_runpath=yes
17202 shlibpath_var=DYLD_LIBRARY_PATH
17203 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17204 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17205 if test "$GCC" = yes; then
17206 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17208 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17210 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17218 soname_spec='${libname}${release}${shared_ext}$major'
17219 shlibpath_var=LD_LIBRARY_PATH
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17231 soname_spec='${libname}${release}${shared_ext}$major'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 shlibpath_overrides_runpath=no
17234 hardcode_into_libs=yes
17235 dynamic_linker='GNU ld.so'
17239 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17240 version_type=freebsd-$objformat
17241 case $version_type in
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17252 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=yes
17257 freebsd3.01* | freebsdelf3.01*)
17258 shlibpath_overrides_runpath=yes
17259 hardcode_into_libs=yes
17262 shlibpath_overrides_runpath=no
17263 hardcode_into_libs=yes
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 hardcode_into_libs=yes
17278 hpux9* | hpux10* | hpux11*)
17279 # Give a soname corresponding to the major version so that dld.sl refuses to
17280 # link against other versions.
17284 case "$host_cpu" in
17287 hardcode_into_libs=yes
17288 dynamic_linker="$host_os dld.so"
17289 shlibpath_var=LD_LIBRARY_PATH
17290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 soname_spec='${libname}${release}${shared_ext}$major'
17293 if test "X$HPUX_IA64_MODE" = X32; then
17294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17302 hardcode_into_libs=yes
17303 dynamic_linker="$host_os dld.sl"
17304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307 soname_spec='${libname}${release}${shared_ext}$major'
17308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17313 dynamic_linker="$host_os dld.sl"
17314 shlibpath_var=SHLIB_PATH
17315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317 soname_spec='${libname}${release}${shared_ext}$major'
17320 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17321 postinstall_cmds='chmod 555 $lib'
17324 irix5* | irix6* | nonstopux*)
17326 nonstopux*) version_type=nonstopux ;;
17328 if test "$lt_cv_prog_gnu_ld" = yes; then
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17339 irix5* | nonstopux*)
17340 libsuff= shlibsuff=
17343 case $LD in # libtool.m4 will add one of these switches to LD
17344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17345 libsuff= shlibsuff= libmagic=32-bit;;
17346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17347 libsuff=32 shlibsuff=N32 libmagic=N32;;
17348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17349 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17350 *) libsuff= shlibsuff= libmagic=never-match;;
17354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17355 shlibpath_overrides_runpath=no
17356 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17357 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17358 hardcode_into_libs=yes
17361 # No shared lib support for Linux oldld, aout, or coff.
17362 linux*oldld* | linux*aout* | linux*coff*)
17366 # This must be Linux ELF.
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17374 shlibpath_var=LD_LIBRARY_PATH
17375 shlibpath_overrides_runpath=no
17376 # This implies no fast_install, which is unacceptable.
17377 # Some rework will be needed to allow for fast_install
17378 # before this can be enabled.
17379 hardcode_into_libs=yes
17381 # Append ld.so.conf contents to the search path
17382 if test -f /etc/ld.so.conf; then
17383 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17384 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17387 # We used to test for /lib/ld.so.1 and disable shared libraries on
17388 # powerpc, because MkLinux only supported shared libraries with the
17389 # GNU dynamic linker. Since this was broken with cross compilers,
17390 # most powerpc-linux boxes support dynamic linking these days and
17391 # people can always --disable-shared, the test was removed, and we
17392 # assume the GNU/Linux dynamic linker is in use.
17393 dynamic_linker='GNU/Linux ld.so'
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 shlibpath_var=LD_LIBRARY_PATH
17403 shlibpath_overrides_runpath=no
17404 hardcode_into_libs=yes
17405 dynamic_linker='NetBSD ld.elf_so'
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17413 soname_spec='${libname}${release}${shared_ext}$major'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 shlibpath_overrides_runpath=no
17416 hardcode_into_libs=yes
17417 dynamic_linker='GNU ld.so'
17424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17427 dynamic_linker='NetBSD (a.out) ld.so'
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 dynamic_linker='NetBSD ld.elf_so'
17433 shlibpath_var=LD_LIBRARY_PATH
17434 shlibpath_overrides_runpath=yes
17435 hardcode_into_libs=yes
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 shlibpath_var=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath=yes
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=yes
17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17461 shlibpath_var=LD_LIBRARY_PATH
17462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17464 openbsd2.[89] | openbsd2.[89].*)
17465 shlibpath_overrides_runpath=no
17468 shlibpath_overrides_runpath=yes
17472 shlibpath_overrides_runpath=yes
17477 libname_spec='$name'
17480 library_names_spec='$libname${shared_ext} $libname.a'
17481 dynamic_linker='OS/2 ld.exe'
17482 shlibpath_var=LIBPATH
17485 osf3* | osf4* | osf5*)
17489 soname_spec='${libname}${release}${shared_ext}$major'
17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17491 shlibpath_var=LD_LIBRARY_PATH
17492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 shlibpath_var=LD_LIBRARY_PATH
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508 soname_spec='${libname}${release}${shared_ext}$major'
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=yes
17511 hardcode_into_libs=yes
17512 # ldd complains unless libraries are executable
17513 postinstall_cmds='chmod +x $lib'
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17520 shlibpath_var=LD_LIBRARY_PATH
17521 shlibpath_overrides_runpath=yes
17522 if test "$with_gnu_ld" = yes; then
17528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 case $host_vendor in
17535 shlibpath_overrides_runpath=no
17537 export_dynamic_flag_spec='${wl}-Blargedynsym'
17538 runpath_var=LD_RUN_PATH
17546 shlibpath_overrides_runpath=no
17547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17553 if test -d /usr/nec ;then
17555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17556 soname_spec='$libname${shared_ext}.$major'
17557 shlibpath_var=LD_LIBRARY_PATH
17563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17564 soname_spec='${libname}${release}${shared_ext}$major'
17565 shlibpath_var=LD_LIBRARY_PATH
17572 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17573 echo "${ECHO_T}$dynamic_linker" >&6
17574 test "$dynamic_linker" = no && can_build_shared=no
17576 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17577 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17578 hardcode_action_GCJ=
17579 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17580 test -n "$runpath_var GCJ" || \
17581 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17583 # We can hardcode non-existant directories.
17584 if test "$hardcode_direct_GCJ" != no &&
17585 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17586 # have to relink, otherwise we might link with an installed library
17587 # when we should be linking with a yet-to-be-installed one
17588 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17589 test "$hardcode_minus_L_GCJ" != no; then
17590 # Linking always hardcodes the temporary library directory.
17591 hardcode_action_GCJ=relink
17593 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17594 hardcode_action_GCJ=immediate
17597 # We cannot hardcode anything, or else we can only hardcode existing
17599 hardcode_action_GCJ=unsupported
17601 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17602 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17604 if test "$hardcode_action_GCJ" = relink; then
17605 # Fast installation is not supported
17606 enable_fast_install=no
17607 elif test "$shlibpath_overrides_runpath" = yes ||
17608 test "$enable_shared" = no; then
17609 # Fast installation is not necessary
17610 enable_fast_install=needless
17615 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17616 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17617 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17618 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17619 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17620 echo "$as_me:$LINENO: result: yes" >&5
17621 echo "${ECHO_T}yes" >&6
17623 # FIXME - insert some real tests, host_os isn't really good enough
17626 if test -n "$STRIP" ; then
17627 striplib="$STRIP -x"
17628 echo "$as_me:$LINENO: result: yes" >&5
17629 echo "${ECHO_T}yes" >&6
17631 echo "$as_me:$LINENO: result: no" >&5
17632 echo "${ECHO_T}no" >&6
17636 echo "$as_me:$LINENO: result: no" >&5
17637 echo "${ECHO_T}no" >&6
17642 if test "x$enable_dlopen" != xyes; then
17643 enable_dlopen=unknown
17644 enable_dlopen_self=unknown
17645 enable_dlopen_self_static=unknown
17652 lt_cv_dlopen="load_add_on"
17654 lt_cv_dlopen_self=yes
17658 lt_cv_dlopen="LoadLibrary"
17663 lt_cv_dlopen="dlopen"
17668 # if libdl is installed we need to link against it
17669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17674 ac_check_lib_save_LIBS=$LIBS
17676 cat >conftest.$ac_ext <<_ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17683 /* Override any gcc2 internal prototype to avoid an error. */
17687 /* We use char because int might match the return type of a gcc2
17688 builtin and then its argument prototype would still apply. */
17698 rm -f conftest.$ac_objext conftest$ac_exeext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17700 (eval $ac_link) 2>conftest.er1
17702 grep -v '^ *+' conftest.er1 >conftest.err
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } &&
17707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709 (eval $ac_try) 2>&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); }; } &&
17713 { ac_try='test -s conftest$ac_exeext'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_cv_lib_dl_dlopen=yes
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 ac_cv_lib_dl_dlopen=no
17726 rm -f conftest.err conftest.$ac_objext \
17727 conftest$ac_exeext conftest.$ac_ext
17728 LIBS=$ac_check_lib_save_LIBS
17730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17732 if test $ac_cv_lib_dl_dlopen = yes; then
17733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17736 lt_cv_dlopen="dyld"
17738 lt_cv_dlopen_self=yes
17745 echo "$as_me:$LINENO: checking for shl_load" >&5
17746 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17747 if test "${ac_cv_func_shl_load+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 cat >conftest.$ac_ext <<_ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17758 #define shl_load innocuous_shl_load
17760 /* System header to define __stub macros and hopefully few prototypes,
17761 which can conflict with char shl_load (); below.
17762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17763 <limits.h> exists even on freestanding compilers. */
17766 # include <limits.h>
17768 # include <assert.h>
17773 /* Override any gcc2 internal prototype to avoid an error. */
17778 /* We use char because int might match the return type of a gcc2
17779 builtin and then its argument prototype would still apply. */
17781 /* The GNU C library defines this for functions which it implements
17782 to always fail with ENOSYS. Some functions are actually named
17783 something starting with __ and the normal name is an alias. */
17784 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17787 char (*f) () = shl_load;
17796 return f != shl_load;
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803 (eval $ac_link) 2>conftest.er1
17805 grep -v '^ *+' conftest.er1 >conftest.err
17807 cat conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
17810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest$ac_exeext'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_cv_func_shl_load=yes
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 ac_cv_func_shl_load=no
17829 rm -f conftest.err conftest.$ac_objext \
17830 conftest$ac_exeext conftest.$ac_ext
17832 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17833 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17834 if test $ac_cv_func_shl_load = yes; then
17835 lt_cv_dlopen="shl_load"
17837 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17838 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17839 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17842 ac_check_lib_save_LIBS=$LIBS
17844 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17851 /* Override any gcc2 internal prototype to avoid an error. */
17855 /* We use char because int might match the return type of a gcc2
17856 builtin and then its argument prototype would still apply. */
17866 rm -f conftest.$ac_objext conftest$ac_exeext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17868 (eval $ac_link) 2>conftest.er1
17870 grep -v '^ *+' conftest.er1 >conftest.err
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_cv_lib_dld_shl_load=yes
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17892 ac_cv_lib_dld_shl_load=no
17894 rm -f conftest.err conftest.$ac_objext \
17895 conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17898 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17900 if test $ac_cv_lib_dld_shl_load = yes; then
17901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17903 echo "$as_me:$LINENO: checking for dlopen" >&5
17904 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17905 if test "${ac_cv_func_dlopen+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 cat >conftest.$ac_ext <<_ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17916 #define dlopen innocuous_dlopen
17918 /* System header to define __stub macros and hopefully few prototypes,
17919 which can conflict with char dlopen (); below.
17920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17921 <limits.h> exists even on freestanding compilers. */
17924 # include <limits.h>
17926 # include <assert.h>
17931 /* Override any gcc2 internal prototype to avoid an error. */
17936 /* We use char because int might match the return type of a gcc2
17937 builtin and then its argument prototype would still apply. */
17939 /* The GNU C library defines this for functions which it implements
17940 to always fail with ENOSYS. Some functions are actually named
17941 something starting with __ and the normal name is an alias. */
17942 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17945 char (*f) () = dlopen;
17954 return f != dlopen;
17959 rm -f conftest.$ac_objext conftest$ac_exeext
17960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17961 (eval $ac_link) 2>conftest.er1
17963 grep -v '^ *+' conftest.er1 >conftest.err
17965 cat conftest.err >&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
17968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest$ac_exeext'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17980 ac_cv_func_dlopen=yes
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17985 ac_cv_func_dlopen=no
17987 rm -f conftest.err conftest.$ac_objext \
17988 conftest$ac_exeext conftest.$ac_ext
17990 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17991 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17992 if test $ac_cv_func_dlopen = yes; then
17993 lt_cv_dlopen="dlopen"
17995 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
18000 ac_check_lib_save_LIBS=$LIBS
18002 cat >conftest.$ac_ext <<_ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18009 /* Override any gcc2 internal prototype to avoid an error. */
18013 /* We use char because int might match the return type of a gcc2
18014 builtin and then its argument prototype would still apply. */
18024 rm -f conftest.$ac_objext conftest$ac_exeext
18025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18026 (eval $ac_link) 2>conftest.er1
18028 grep -v '^ *+' conftest.er1 >conftest.err
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; } &&
18039 { ac_try='test -s conftest$ac_exeext'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 ac_cv_lib_dl_dlopen=yes
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18050 ac_cv_lib_dl_dlopen=no
18052 rm -f conftest.err conftest.$ac_objext \
18053 conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_check_lib_save_LIBS
18056 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18057 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18058 if test $ac_cv_lib_dl_dlopen = yes; then
18059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18061 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18062 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18063 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18066 ac_check_lib_save_LIBS=$LIBS
18067 LIBS="-lsvld $LIBS"
18068 cat >conftest.$ac_ext <<_ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18075 /* Override any gcc2 internal prototype to avoid an error. */
18079 /* We use char because int might match the return type of a gcc2
18080 builtin and then its argument prototype would still apply. */
18090 rm -f conftest.$ac_objext conftest$ac_exeext
18091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18092 (eval $ac_link) 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; } &&
18105 { ac_try='test -s conftest$ac_exeext'
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; }; then
18111 ac_cv_lib_svld_dlopen=yes
18113 echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18116 ac_cv_lib_svld_dlopen=no
18118 rm -f conftest.err conftest.$ac_objext \
18119 conftest$ac_exeext conftest.$ac_ext
18120 LIBS=$ac_check_lib_save_LIBS
18122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18124 if test $ac_cv_lib_svld_dlopen = yes; then
18125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18127 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18130 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 ac_check_lib_save_LIBS=$LIBS
18134 cat >conftest.$ac_ext <<_ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18141 /* Override any gcc2 internal prototype to avoid an error. */
18145 /* We use char because int might match the return type of a gcc2
18146 builtin and then its argument prototype would still apply. */
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18158 (eval $ac_link) 2>conftest.er1
18160 grep -v '^ *+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest$ac_exeext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 ac_cv_lib_dld_dld_link=yes
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 ac_cv_lib_dld_dld_link=no
18184 rm -f conftest.err conftest.$ac_objext \
18185 conftest$ac_exeext conftest.$ac_ext
18186 LIBS=$ac_check_lib_save_LIBS
18188 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18189 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18190 if test $ac_cv_lib_dld_dld_link = yes; then
18191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18212 if test "x$lt_cv_dlopen" != xno; then
18218 case $lt_cv_dlopen in
18220 save_CPPFLAGS="$CPPFLAGS"
18221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18223 save_LDFLAGS="$LDFLAGS"
18224 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18227 LIBS="$lt_cv_dlopen_libs $LIBS"
18229 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18230 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18231 if test "${lt_cv_dlopen_self+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 if test "$cross_compiling" = yes; then :
18235 lt_cv_dlopen_self=cross
18237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18238 lt_status=$lt_dlunknown
18239 cat > conftest.$ac_ext <<EOF
18240 #line 18240 "configure"
18241 #include "confdefs.h"
18250 # define LT_DLGLOBAL RTLD_GLOBAL
18253 # define LT_DLGLOBAL DL_GLOBAL
18255 # define LT_DLGLOBAL 0
18259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18260 find out it does not work in some platform. */
18261 #ifndef LT_DLLAZY_OR_NOW
18263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18266 # define LT_DLLAZY_OR_NOW DL_LAZY
18269 # define LT_DLLAZY_OR_NOW RTLD_NOW
18272 # define LT_DLLAZY_OR_NOW DL_NOW
18274 # define LT_DLLAZY_OR_NOW 0
18282 extern "C" void exit (int);
18285 void fnord() { int i=42;}
18288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18289 int status = $lt_dlunknown;
18293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18295 /* dlclose (self); */
18301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18302 (eval $ac_link) 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18306 (./conftest; exit; ) 2>/dev/null
18308 case x$lt_status in
18309 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18310 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18311 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18314 # compilation failed
18315 lt_cv_dlopen_self=no
18322 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18323 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18325 if test "x$lt_cv_dlopen_self" = xyes; then
18326 LDFLAGS="$LDFLAGS $link_static_flag"
18327 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18328 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18329 if test "${lt_cv_dlopen_self_static+set}" = set; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18332 if test "$cross_compiling" = yes; then :
18333 lt_cv_dlopen_self_static=cross
18335 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18336 lt_status=$lt_dlunknown
18337 cat > conftest.$ac_ext <<EOF
18338 #line 18338 "configure"
18339 #include "confdefs.h"
18348 # define LT_DLGLOBAL RTLD_GLOBAL
18351 # define LT_DLGLOBAL DL_GLOBAL
18353 # define LT_DLGLOBAL 0
18357 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18358 find out it does not work in some platform. */
18359 #ifndef LT_DLLAZY_OR_NOW
18361 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18364 # define LT_DLLAZY_OR_NOW DL_LAZY
18367 # define LT_DLLAZY_OR_NOW RTLD_NOW
18370 # define LT_DLLAZY_OR_NOW DL_NOW
18372 # define LT_DLLAZY_OR_NOW 0
18380 extern "C" void exit (int);
18383 void fnord() { int i=42;}
18386 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18387 int status = $lt_dlunknown;
18391 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18392 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18393 /* dlclose (self); */
18399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18400 (eval $ac_link) 2>&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18404 (./conftest; exit; ) 2>/dev/null
18406 case x$lt_status in
18407 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18408 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18409 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18412 # compilation failed
18413 lt_cv_dlopen_self_static=no
18420 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18421 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18424 CPPFLAGS="$save_CPPFLAGS"
18425 LDFLAGS="$save_LDFLAGS"
18430 case $lt_cv_dlopen_self in
18431 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18432 *) enable_dlopen_self=unknown ;;
18435 case $lt_cv_dlopen_self_static in
18436 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18437 *) enable_dlopen_self_static=unknown ;;
18442 # The else clause should only fire when bootstrapping the
18443 # libtool distribution, otherwise you forgot to ship ltmain.sh
18444 # with your package, and you will get complaints that there are
18445 # no rules to generate ltmain.sh.
18446 if test -f "$ltmain"; then
18447 # See if we are running on zsh, and set the options which allow our commands through
18448 # without removal of \ escapes.
18449 if test -n "${ZSH_VERSION+set}" ; then
18450 setopt NO_GLOB_SUBST
18452 # Now quote all the things that may contain metacharacters while being
18453 # careful not to overquote the AC_SUBSTed values. We take copies of the
18454 # variables and quote the copies for generation of the libtool script.
18455 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18459 deplibs_check_method reload_flag reload_cmds need_locks \
18460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18461 lt_cv_sys_global_symbol_to_c_name_address \
18462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18463 old_postinstall_cmds old_postuninstall_cmds \
18467 lt_prog_compiler_wl_GCJ \
18468 lt_prog_compiler_pic_GCJ \
18469 lt_prog_compiler_static_GCJ \
18470 lt_prog_compiler_no_builtin_flag_GCJ \
18471 export_dynamic_flag_spec_GCJ \
18472 thread_safe_flag_spec_GCJ \
18473 whole_archive_flag_spec_GCJ \
18474 enable_shared_with_static_runtimes_GCJ \
18475 old_archive_cmds_GCJ \
18476 old_archive_from_new_cmds_GCJ \
18477 predep_objects_GCJ \
18478 postdep_objects_GCJ \
18481 compiler_lib_search_path_GCJ \
18483 archive_expsym_cmds_GCJ \
18484 postinstall_cmds_GCJ \
18485 postuninstall_cmds_GCJ \
18486 old_archive_from_expsyms_cmds_GCJ \
18487 allow_undefined_flag_GCJ \
18488 no_undefined_flag_GCJ \
18489 export_symbols_cmds_GCJ \
18490 hardcode_libdir_flag_spec_GCJ \
18491 hardcode_libdir_flag_spec_ld_GCJ \
18492 hardcode_libdir_separator_GCJ \
18493 hardcode_automatic_GCJ \
18495 module_expsym_cmds_GCJ \
18496 lt_cv_prog_compiler_c_o_GCJ \
18497 exclude_expsyms_GCJ \
18498 include_expsyms_GCJ; do
18501 old_archive_cmds_GCJ | \
18502 old_archive_from_new_cmds_GCJ | \
18503 archive_cmds_GCJ | \
18504 archive_expsym_cmds_GCJ | \
18505 module_cmds_GCJ | \
18506 module_expsym_cmds_GCJ | \
18507 old_archive_from_expsyms_cmds_GCJ | \
18508 export_symbols_cmds_GCJ | \
18509 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18510 postinstall_cmds | postuninstall_cmds | \
18511 old_postinstall_cmds | old_postuninstall_cmds | \
18512 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18513 # Double-quote double-evaled strings.
18514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18523 *'\$0 --fallback-echo"')
18524 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18530 cat <<__EOF__ >> "$cfgfile"
18531 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18533 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18535 # Shell to use when invoking shell scripts.
18538 # Whether or not to build shared libraries.
18539 build_libtool_libs=$enable_shared
18541 # Whether or not to build static libraries.
18542 build_old_libs=$enable_static
18544 # Whether or not to add -lc for building shared libraries.
18545 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18547 # Whether or not to disallow shared libs when runtime libs are static
18548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18550 # Whether or not to optimize for fast installation.
18551 fast_install=$enable_fast_install
18554 host_alias=$host_alias
18557 # An echo program that does not interpret backslashes.
18562 AR_FLAGS=$lt_AR_FLAGS
18567 # A language-specific compiler.
18568 CC=$lt_compiler_GCJ
18570 # Is the compiler the GNU C compiler?
18576 # The linker used to build libraries.
18579 # Whether we need hard or soft links.
18582 # A BSD-compatible nm program.
18585 # A symbol stripping program
18588 # Used to examine libraries when file_magic_cmd begins "file"
18589 MAGIC_CMD=$MAGIC_CMD
18591 # Used on cygwin: DLL creation program.
18594 # Used on cygwin: object dumper.
18597 # Used on cygwin: assembler.
18600 # The name of the directory that contains temporary libtool files.
18603 # How to create reloadable object files.
18604 reload_flag=$lt_reload_flag
18605 reload_cmds=$lt_reload_cmds
18607 # How to pass a linker flag through the compiler.
18608 wl=$lt_lt_prog_compiler_wl_GCJ
18610 # Object file suffix (normally "o").
18611 objext="$ac_objext"
18613 # Old archive suffix (normally "a").
18616 # Shared library suffix (normally ".so").
18617 shrext_cmds='$shrext_cmds'
18619 # Executable file suffix (normally "").
18622 # Additional compiler flags for building library objects.
18623 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18626 # What is the maximum length of a command?
18627 max_cmd_len=$lt_cv_sys_max_cmd_len
18629 # Does compiler simultaneously support -c and -o options?
18630 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18632 # Must we lock files when doing compilation ?
18633 need_locks=$lt_need_locks
18635 # Do we need the lib prefix for modules?
18636 need_lib_prefix=$need_lib_prefix
18638 # Do we need a version for libraries?
18639 need_version=$need_version
18641 # Whether dlopen is supported.
18642 dlopen_support=$enable_dlopen
18644 # Whether dlopen of programs is supported.
18645 dlopen_self=$enable_dlopen_self
18647 # Whether dlopen of statically linked programs is supported.
18648 dlopen_self_static=$enable_dlopen_self_static
18650 # Compiler flag to prevent dynamic linking.
18651 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18653 # Compiler flag to turn off builtin functions.
18654 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18656 # Compiler flag to allow reflexive dlopens.
18657 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18659 # Compiler flag to generate shared objects directly from archives.
18660 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18662 # Compiler flag to generate thread-safe objects.
18663 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18665 # Library versioning type.
18666 version_type=$version_type
18668 # Format of library name prefix.
18669 libname_spec=$lt_libname_spec
18671 # List of archive names. First name is the real one, the rest are links.
18672 # The last name is the one that the linker finds with -lNAME.
18673 library_names_spec=$lt_library_names_spec
18675 # The coded name of the library, if different from the real name.
18676 soname_spec=$lt_soname_spec
18678 # Commands used to build and install an old-style archive.
18680 old_archive_cmds=$lt_old_archive_cmds_GCJ
18681 old_postinstall_cmds=$lt_old_postinstall_cmds
18682 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18684 # Create an old-style archive from a shared archive.
18685 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18687 # Create a temporary old-style archive to link instead of a shared archive.
18688 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18690 # Commands used to build and install a shared archive.
18691 archive_cmds=$lt_archive_cmds_GCJ
18692 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18693 postinstall_cmds=$lt_postinstall_cmds
18694 postuninstall_cmds=$lt_postuninstall_cmds
18696 # Commands used to build a loadable module (assumed same as above if empty)
18697 module_cmds=$lt_module_cmds_GCJ
18698 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18700 # Commands to strip libraries.
18701 old_striplib=$lt_old_striplib
18702 striplib=$lt_striplib
18704 # Dependencies to place before the objects being linked to create a
18706 predep_objects=$lt_predep_objects_GCJ
18708 # Dependencies to place after the objects being linked to create a
18710 postdep_objects=$lt_postdep_objects_GCJ
18712 # Dependencies to place before the objects being linked to create a
18714 predeps=$lt_predeps_GCJ
18716 # Dependencies to place after the objects being linked to create a
18718 postdeps=$lt_postdeps_GCJ
18720 # The library search path used internally by the compiler when linking
18721 # a shared library.
18722 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18724 # Method to check whether dependent libraries are shared objects.
18725 deplibs_check_method=$lt_deplibs_check_method
18727 # Command to use when deplibs_check_method == file_magic.
18728 file_magic_cmd=$lt_file_magic_cmd
18730 # Flag that allows shared libraries with undefined symbols to be built.
18731 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18733 # Flag that forces no undefined symbols.
18734 no_undefined_flag=$lt_no_undefined_flag_GCJ
18736 # Commands used to finish a libtool library installation in a directory.
18737 finish_cmds=$lt_finish_cmds
18739 # Same as above, but a single script fragment to be evaled but not shown.
18740 finish_eval=$lt_finish_eval
18742 # Take the output of nm and produce a listing of raw symbols and C names.
18743 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18745 # Transform the output of nm in a proper C declaration
18746 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18748 # Transform the output of nm in a C name address pair
18749 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18751 # This is the shared library runtime path variable.
18752 runpath_var=$runpath_var
18754 # This is the shared library path variable.
18755 shlibpath_var=$shlibpath_var
18757 # Is shlibpath searched before the hard-coded library search path?
18758 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18760 # How to hardcode a shared library path into an executable.
18761 hardcode_action=$hardcode_action_GCJ
18763 # Whether we should hardcode library paths into libraries.
18764 hardcode_into_libs=$hardcode_into_libs
18766 # Flag to hardcode \$libdir into a binary during linking.
18767 # This must work even if \$libdir does not exist.
18768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18770 # If ld is used when linking, flag to hardcode \$libdir into
18771 # a binary during linking. This must work even if \$libdir does
18773 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18775 # Whether we need a single -rpath flag with a separated argument.
18776 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18778 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18779 # resulting binary.
18780 hardcode_direct=$hardcode_direct_GCJ
18782 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18783 # resulting binary.
18784 hardcode_minus_L=$hardcode_minus_L_GCJ
18786 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18787 # the resulting binary.
18788 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18790 # Set to yes if building a shared library automatically hardcodes DIR into the library
18791 # and all subsequent libraries and executables linked against it.
18792 hardcode_automatic=$hardcode_automatic_GCJ
18794 # Variables whose values should be saved in libtool wrapper scripts and
18795 # restored at relink time.
18796 variables_saved_for_relink="$variables_saved_for_relink"
18798 # Whether libtool must link a program against all its dependency libraries.
18799 link_all_deplibs=$link_all_deplibs_GCJ
18801 # Compile-time system search path for libraries
18802 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18804 # Run-time system search path for libraries
18805 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18807 # Fix the shell variable \$srcfile for the compiler.
18808 fix_srcfile_path="$fix_srcfile_path_GCJ"
18810 # Set to yes if exported symbols are required.
18811 always_export_symbols=$always_export_symbols_GCJ
18813 # The commands to list exported symbols.
18814 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18816 # The commands to extract the exported symbol list from a shared archive.
18817 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18819 # Symbols that should not be listed in the preloaded symbols.
18820 exclude_expsyms=$lt_exclude_expsyms_GCJ
18822 # Symbols that must always be exported.
18823 include_expsyms=$lt_include_expsyms_GCJ
18825 # ### END LIBTOOL TAG CONFIG: $tagname
18831 # If there is no Makefile yet, we rely on a make rule to execute
18832 # `config.status --recheck' to rerun these tests and create the
18833 # libtool script then.
18834 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18835 if test -f "$ltmain_in"; then
18836 test -f Makefile && make "$ltmain"
18842 ac_cpp='$CPP $CPPFLAGS'
18843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18858 # Source file extension for RC test sources.
18861 # Object file extension for compiled RC test sources.
18865 # Code to be used in simple compile tests
18866 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18868 # Code to be used in simple link tests
18869 lt_simple_link_test_code="$lt_simple_compile_test_code"
18871 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18873 # If no C compiler was specified, use CC.
18876 # Allow CC to be a program name with arguments.
18880 # Allow CC to be a program name with arguments.
18885 lt_cv_prog_compiler_c_o_RC=yes
18887 # The else clause should only fire when bootstrapping the
18888 # libtool distribution, otherwise you forgot to ship ltmain.sh
18889 # with your package, and you will get complaints that there are
18890 # no rules to generate ltmain.sh.
18891 if test -f "$ltmain"; then
18892 # See if we are running on zsh, and set the options which allow our commands through
18893 # without removal of \ escapes.
18894 if test -n "${ZSH_VERSION+set}" ; then
18895 setopt NO_GLOB_SUBST
18897 # Now quote all the things that may contain metacharacters while being
18898 # careful not to overquote the AC_SUBSTed values. We take copies of the
18899 # variables and quote the copies for generation of the libtool script.
18900 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18902 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18903 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18904 deplibs_check_method reload_flag reload_cmds need_locks \
18905 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18906 lt_cv_sys_global_symbol_to_c_name_address \
18907 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18908 old_postinstall_cmds old_postuninstall_cmds \
18912 lt_prog_compiler_wl_RC \
18913 lt_prog_compiler_pic_RC \
18914 lt_prog_compiler_static_RC \
18915 lt_prog_compiler_no_builtin_flag_RC \
18916 export_dynamic_flag_spec_RC \
18917 thread_safe_flag_spec_RC \
18918 whole_archive_flag_spec_RC \
18919 enable_shared_with_static_runtimes_RC \
18920 old_archive_cmds_RC \
18921 old_archive_from_new_cmds_RC \
18922 predep_objects_RC \
18923 postdep_objects_RC \
18926 compiler_lib_search_path_RC \
18928 archive_expsym_cmds_RC \
18929 postinstall_cmds_RC \
18930 postuninstall_cmds_RC \
18931 old_archive_from_expsyms_cmds_RC \
18932 allow_undefined_flag_RC \
18933 no_undefined_flag_RC \
18934 export_symbols_cmds_RC \
18935 hardcode_libdir_flag_spec_RC \
18936 hardcode_libdir_flag_spec_ld_RC \
18937 hardcode_libdir_separator_RC \
18938 hardcode_automatic_RC \
18940 module_expsym_cmds_RC \
18941 lt_cv_prog_compiler_c_o_RC \
18942 exclude_expsyms_RC \
18943 include_expsyms_RC; do
18946 old_archive_cmds_RC | \
18947 old_archive_from_new_cmds_RC | \
18948 archive_cmds_RC | \
18949 archive_expsym_cmds_RC | \
18951 module_expsym_cmds_RC | \
18952 old_archive_from_expsyms_cmds_RC | \
18953 export_symbols_cmds_RC | \
18954 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18955 postinstall_cmds | postuninstall_cmds | \
18956 old_postinstall_cmds | old_postuninstall_cmds | \
18957 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18958 # Double-quote double-evaled strings.
18959 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18962 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18968 *'\$0 --fallback-echo"')
18969 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18975 cat <<__EOF__ >> "$cfgfile"
18976 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18980 # Shell to use when invoking shell scripts.
18983 # Whether or not to build shared libraries.
18984 build_libtool_libs=$enable_shared
18986 # Whether or not to build static libraries.
18987 build_old_libs=$enable_static
18989 # Whether or not to add -lc for building shared libraries.
18990 build_libtool_need_lc=$archive_cmds_need_lc_RC
18992 # Whether or not to disallow shared libs when runtime libs are static
18993 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18995 # Whether or not to optimize for fast installation.
18996 fast_install=$enable_fast_install
18999 host_alias=$host_alias
19002 # An echo program that does not interpret backslashes.
19007 AR_FLAGS=$lt_AR_FLAGS
19012 # A language-specific compiler.
19015 # Is the compiler the GNU C compiler?
19021 # The linker used to build libraries.
19024 # Whether we need hard or soft links.
19027 # A BSD-compatible nm program.
19030 # A symbol stripping program
19033 # Used to examine libraries when file_magic_cmd begins "file"
19034 MAGIC_CMD=$MAGIC_CMD
19036 # Used on cygwin: DLL creation program.
19039 # Used on cygwin: object dumper.
19042 # Used on cygwin: assembler.
19045 # The name of the directory that contains temporary libtool files.
19048 # How to create reloadable object files.
19049 reload_flag=$lt_reload_flag
19050 reload_cmds=$lt_reload_cmds
19052 # How to pass a linker flag through the compiler.
19053 wl=$lt_lt_prog_compiler_wl_RC
19055 # Object file suffix (normally "o").
19056 objext="$ac_objext"
19058 # Old archive suffix (normally "a").
19061 # Shared library suffix (normally ".so").
19062 shrext_cmds='$shrext_cmds'
19064 # Executable file suffix (normally "").
19067 # Additional compiler flags for building library objects.
19068 pic_flag=$lt_lt_prog_compiler_pic_RC
19071 # What is the maximum length of a command?
19072 max_cmd_len=$lt_cv_sys_max_cmd_len
19074 # Does compiler simultaneously support -c and -o options?
19075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19077 # Must we lock files when doing compilation ?
19078 need_locks=$lt_need_locks
19080 # Do we need the lib prefix for modules?
19081 need_lib_prefix=$need_lib_prefix
19083 # Do we need a version for libraries?
19084 need_version=$need_version
19086 # Whether dlopen is supported.
19087 dlopen_support=$enable_dlopen
19089 # Whether dlopen of programs is supported.
19090 dlopen_self=$enable_dlopen_self
19092 # Whether dlopen of statically linked programs is supported.
19093 dlopen_self_static=$enable_dlopen_self_static
19095 # Compiler flag to prevent dynamic linking.
19096 link_static_flag=$lt_lt_prog_compiler_static_RC
19098 # Compiler flag to turn off builtin functions.
19099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19101 # Compiler flag to allow reflexive dlopens.
19102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19104 # Compiler flag to generate shared objects directly from archives.
19105 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19107 # Compiler flag to generate thread-safe objects.
19108 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19110 # Library versioning type.
19111 version_type=$version_type
19113 # Format of library name prefix.
19114 libname_spec=$lt_libname_spec
19116 # List of archive names. First name is the real one, the rest are links.
19117 # The last name is the one that the linker finds with -lNAME.
19118 library_names_spec=$lt_library_names_spec
19120 # The coded name of the library, if different from the real name.
19121 soname_spec=$lt_soname_spec
19123 # Commands used to build and install an old-style archive.
19125 old_archive_cmds=$lt_old_archive_cmds_RC
19126 old_postinstall_cmds=$lt_old_postinstall_cmds
19127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19129 # Create an old-style archive from a shared archive.
19130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19132 # Create a temporary old-style archive to link instead of a shared archive.
19133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19135 # Commands used to build and install a shared archive.
19136 archive_cmds=$lt_archive_cmds_RC
19137 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19138 postinstall_cmds=$lt_postinstall_cmds
19139 postuninstall_cmds=$lt_postuninstall_cmds
19141 # Commands used to build a loadable module (assumed same as above if empty)
19142 module_cmds=$lt_module_cmds_RC
19143 module_expsym_cmds=$lt_module_expsym_cmds_RC
19145 # Commands to strip libraries.
19146 old_striplib=$lt_old_striplib
19147 striplib=$lt_striplib
19149 # Dependencies to place before the objects being linked to create a
19151 predep_objects=$lt_predep_objects_RC
19153 # Dependencies to place after the objects being linked to create a
19155 postdep_objects=$lt_postdep_objects_RC
19157 # Dependencies to place before the objects being linked to create a
19159 predeps=$lt_predeps_RC
19161 # Dependencies to place after the objects being linked to create a
19163 postdeps=$lt_postdeps_RC
19165 # The library search path used internally by the compiler when linking
19166 # a shared library.
19167 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19169 # Method to check whether dependent libraries are shared objects.
19170 deplibs_check_method=$lt_deplibs_check_method
19172 # Command to use when deplibs_check_method == file_magic.
19173 file_magic_cmd=$lt_file_magic_cmd
19175 # Flag that allows shared libraries with undefined symbols to be built.
19176 allow_undefined_flag=$lt_allow_undefined_flag_RC
19178 # Flag that forces no undefined symbols.
19179 no_undefined_flag=$lt_no_undefined_flag_RC
19181 # Commands used to finish a libtool library installation in a directory.
19182 finish_cmds=$lt_finish_cmds
19184 # Same as above, but a single script fragment to be evaled but not shown.
19185 finish_eval=$lt_finish_eval
19187 # Take the output of nm and produce a listing of raw symbols and C names.
19188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19190 # Transform the output of nm in a proper C declaration
19191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19193 # Transform the output of nm in a C name address pair
19194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19196 # This is the shared library runtime path variable.
19197 runpath_var=$runpath_var
19199 # This is the shared library path variable.
19200 shlibpath_var=$shlibpath_var
19202 # Is shlibpath searched before the hard-coded library search path?
19203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19205 # How to hardcode a shared library path into an executable.
19206 hardcode_action=$hardcode_action_RC
19208 # Whether we should hardcode library paths into libraries.
19209 hardcode_into_libs=$hardcode_into_libs
19211 # Flag to hardcode \$libdir into a binary during linking.
19212 # This must work even if \$libdir does not exist.
19213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19215 # If ld is used when linking, flag to hardcode \$libdir into
19216 # a binary during linking. This must work even if \$libdir does
19218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19220 # Whether we need a single -rpath flag with a separated argument.
19221 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19223 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19224 # resulting binary.
19225 hardcode_direct=$hardcode_direct_RC
19227 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19228 # resulting binary.
19229 hardcode_minus_L=$hardcode_minus_L_RC
19231 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19232 # the resulting binary.
19233 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19235 # Set to yes if building a shared library automatically hardcodes DIR into the library
19236 # and all subsequent libraries and executables linked against it.
19237 hardcode_automatic=$hardcode_automatic_RC
19239 # Variables whose values should be saved in libtool wrapper scripts and
19240 # restored at relink time.
19241 variables_saved_for_relink="$variables_saved_for_relink"
19243 # Whether libtool must link a program against all its dependency libraries.
19244 link_all_deplibs=$link_all_deplibs_RC
19246 # Compile-time system search path for libraries
19247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19249 # Run-time system search path for libraries
19250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19252 # Fix the shell variable \$srcfile for the compiler.
19253 fix_srcfile_path="$fix_srcfile_path_RC"
19255 # Set to yes if exported symbols are required.
19256 always_export_symbols=$always_export_symbols_RC
19258 # The commands to list exported symbols.
19259 export_symbols_cmds=$lt_export_symbols_cmds_RC
19261 # The commands to extract the exported symbol list from a shared archive.
19262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19264 # Symbols that should not be listed in the preloaded symbols.
19265 exclude_expsyms=$lt_exclude_expsyms_RC
19267 # Symbols that must always be exported.
19268 include_expsyms=$lt_include_expsyms_RC
19270 # ### END LIBTOOL TAG CONFIG: $tagname
19276 # If there is no Makefile yet, we rely on a make rule to execute
19277 # `config.status --recheck' to rerun these tests and create the
19278 # libtool script then.
19279 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19280 if test -f "$ltmain_in"; then
19281 test -f Makefile && make "$ltmain"
19287 ac_cpp='$CPP $CPPFLAGS'
19288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19297 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19298 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19299 { (exit 1); exit 1; }; }
19303 # Append the new tag name to the list of available tags.
19304 if test -n "$tagname" ; then
19305 available_tags="$available_tags $tagname"
19311 # Now substitute the updated list of available tags.
19312 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19313 mv "${ofile}T" "$ofile"
19317 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19318 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19319 { (exit 1); exit 1; }; }
19325 # This can be used to rebuild libtool when needed
19326 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19328 # Always use our own libtool.
19329 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19331 # Prevent multiple expansion
19344 # Check whether --with-system-libtool or --without-system-libtool was given.
19345 if test "${with_system_libtool+set}" = set; then
19346 withval="$with_system_libtool"
19347 # Extract the first word of "libtool", so it can be a program name with args.
19348 set dummy libtool; ac_word=$2
19349 echo "$as_me:$LINENO: checking for $ac_word" >&5
19350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19351 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19360 as_dummy="$PATH:/usr/local/bin"
19361 for as_dir in $as_dummy
19364 test -z "$as_dir" && as_dir=.
19365 for ac_exec_ext in '' $ac_executable_extensions; do
19366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19367 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19377 LIBTOOL=$ac_cv_path_LIBTOOL
19379 if test -n "$LIBTOOL"; then
19380 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19381 echo "${ECHO_T}$LIBTOOL" >&6
19383 echo "$as_me:$LINENO: result: no" >&5
19384 echo "${ECHO_T}no" >&6
19389 LIBTOOL="`pwd`/libtool"
19408 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
19409 if test "${enable_strict_dependencies+set}" = set; then
19410 enableval="$enable_strict_dependencies"
19414 logdir='${localstatedir}/log/radius'
19415 echo "$as_me:$LINENO: checking logdir" >&5
19416 echo $ECHO_N "checking logdir... $ECHO_C" >&6
19418 # Check whether --with-logdir or --without-logdir was given.
19419 if test "${with_logdir+set}" = set; then
19420 withval="$with_logdir"
19423 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19424 echo "$as_me: error: Need logdir" >&2;}
19425 { (exit 1); exit 1; }; }
19436 echo "$as_me:$LINENO: result: $logdir" >&5
19437 echo "${ECHO_T}$logdir" >&6
19439 radacctdir='${logdir}/radacct'
19440 echo "$as_me:$LINENO: checking radacctdir" >&5
19441 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
19443 # Check whether --with-radacctdir or --without-radacctdir was given.
19444 if test "${with_radacctdir+set}" = set; then
19445 withval="$with_radacctdir"
19448 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19449 echo "$as_me: error: Need radacctdir" >&2;}
19450 { (exit 1); exit 1; }; }
19455 radacctdir="$withval"
19461 echo "$as_me:$LINENO: result: $radacctdir" >&5
19462 echo "${ECHO_T}$radacctdir" >&6
19464 raddbdir='${sysconfdir}/raddb'
19465 echo "$as_me:$LINENO: checking raddbdir" >&5
19466 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
19468 # Check whether --with-raddbdir or --without-raddbdir was given.
19469 if test "${with_raddbdir+set}" = set; then
19470 withval="$with_raddbdir"
19473 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19474 echo "$as_me: error: Need raddbdir" >&2;}
19475 { (exit 1); exit 1; }; }
19480 raddbdir="$withval"
19486 echo "$as_me:$LINENO: result: $raddbdir" >&5
19487 echo "${ECHO_T}$raddbdir" >&6
19491 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19492 if test "${with_ascend_binary+set}" = set; then
19493 withval="$with_ascend_binary"
19502 if test "X$ASCEND_BINARY" = "Xyes"; then
19504 cat >>confdefs.h <<\_ACEOF
19505 #define ASCEND_BINARY
19512 # Check whether --with-threads or --without-threads was given.
19513 if test "${with_threads+set}" = set; then
19514 withval="$with_threads"
19526 # Check whether --with-snmp or --without-snmp was given.
19527 if test "${with_snmp+set}" = set; then
19528 withval="$with_snmp"
19541 # Check whether --with-static_modules or --without-static_modules was given.
19542 if test "${with_static_modules+set}" = set; then
19543 withval="$with_static_modules"
19545 for i in $withval; do
19546 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19551 # Check whether --enable-developer or --disable-developer was given.
19552 if test "${enable_developer+set}" = set; then
19553 enableval="$enable_developer"
19554 case "$enableval" in
19564 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19570 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19571 if test "${with_experimental_modules+set}" = set; then
19572 withval="$with_experimental_modules"
19582 OPENSSL_INCLUDE_DIR=
19584 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19585 if test "${with_openssl_includes+set}" = set; then
19586 withval="$with_openssl_includes"
19588 *) OPENSSL_INCLUDE_DIR="$withval"
19596 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19597 if test "${with_openssl_libraries+set}" = set; then
19598 withval="$with_openssl_libraries"
19600 *) OPENSSL_LIB_DIR="$withval"
19608 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19609 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19610 withval="$with_rlm_FOO_lib_dir"
19619 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19620 if test "${with_rlm_FOO_include_dir+set}" = set; then
19621 withval="$with_rlm_FOO_include_dir"
19632 # Check whether --with-udpfromto or --without-udpfromto was given.
19633 if test "${with_udpfromto+set}" = set; then
19634 withval="$with_udpfromto"
19645 if test "x$WITH_UDPFROMTO" = "xyes"; then
19647 cat >>confdefs.h <<\_ACEOF
19648 #define WITH_UDPFROMTO
19654 CHECKRAD=checkrad.pl
19655 # Extract the first word of "perl", so it can be a program name with args.
19656 set dummy perl; ac_word=$2
19657 echo "$as_me:$LINENO: checking for $ac_word" >&5
19658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19659 if test "${ac_cv_path_PERL+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668 for as_dir in $PATH
19671 test -z "$as_dir" && as_dir=.
19672 for ac_exec_ext in '' $ac_executable_extensions; do
19673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19674 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19681 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19685 PERL=$ac_cv_path_PERL
19687 if test -n "$PERL"; then
19688 echo "$as_me:$LINENO: result: $PERL" >&5
19689 echo "${ECHO_T}$PERL" >&6
19691 echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6
19695 if test "x$ac_cv_path_PERL" = "x"; then
19696 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19697 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19699 # Extract the first word of "snmpget", so it can be a program name with args.
19700 set dummy snmpget; ac_word=$2
19701 echo "$as_me:$LINENO: checking for $ac_word" >&5
19702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19703 if test "${ac_cv_path_SNMPGET+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19712 for as_dir in $PATH
19715 test -z "$as_dir" && as_dir=.
19716 for ac_exec_ext in '' $ac_executable_extensions; do
19717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19718 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19728 SNMPGET=$ac_cv_path_SNMPGET
19730 if test -n "$SNMPGET"; then
19731 echo "$as_me:$LINENO: result: $SNMPGET" >&5
19732 echo "${ECHO_T}$SNMPGET" >&6
19734 echo "$as_me:$LINENO: result: no" >&5
19735 echo "${ECHO_T}no" >&6
19738 if test "x$ac_cv_path_SNMPGET" = "x"; then
19739 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19740 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19743 # Extract the first word of "snmpwalk", so it can be a program name with args.
19744 set dummy snmpwalk; ac_word=$2
19745 echo "$as_me:$LINENO: checking for $ac_word" >&5
19746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19747 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19756 for as_dir in $PATH
19759 test -z "$as_dir" && as_dir=.
19760 for ac_exec_ext in '' $ac_executable_extensions; do
19761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19762 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19772 SNMPWALK=$ac_cv_path_SNMPWALK
19774 if test -n "$SNMPWALK"; then
19775 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19776 echo "${ECHO_T}$SNMPWALK" >&6
19778 echo "$as_me:$LINENO: result: no" >&5
19779 echo "${ECHO_T}no" >&6
19782 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19783 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19784 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19787 # Extract the first word of "rusers", so it can be a program name with args.
19788 set dummy rusers; ac_word=$2
19789 echo "$as_me:$LINENO: checking for $ac_word" >&5
19790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19791 if test "${ac_cv_path_RUSERS+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19800 for as_dir in $PATH
19803 test -z "$as_dir" && as_dir=.
19804 for ac_exec_ext in '' $ac_executable_extensions; do
19805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19806 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19813 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19817 RUSERS=$ac_cv_path_RUSERS
19819 if test -n "$RUSERS"; then
19820 echo "$as_me:$LINENO: result: $RUSERS" >&5
19821 echo "${ECHO_T}$RUSERS" >&6
19823 echo "$as_me:$LINENO: result: no" >&5
19824 echo "${ECHO_T}no" >&6
19828 missing_dir=`cd $ac_aux_dir && pwd`
19829 # expand $ac_aux_dir to an absolute path
19830 am_aux_dir=`cd $ac_aux_dir && pwd`
19832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19833 # Use eval to expand $SHELL
19834 if eval "$MISSING --run true"; then
19835 am_missing_run="$MISSING --run "
19838 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19843 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19846 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19849 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19852 # Extract the first word of "locate", so it can be a program name with args.
19853 set dummy locate; ac_word=$2
19854 echo "$as_me:$LINENO: checking for $ac_word" >&5
19855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19856 if test "${ac_cv_path_LOCATE+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19865 for as_dir in $PATH
19868 test -z "$as_dir" && as_dir=.
19869 for ac_exec_ext in '' $ac_executable_extensions; do
19870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19871 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19881 LOCATE=$ac_cv_path_LOCATE
19883 if test -n "$LOCATE"; then
19884 echo "$as_me:$LINENO: result: $LOCATE" >&5
19885 echo "${ECHO_T}$LOCATE" >&6
19887 echo "$as_me:$LINENO: result: no" >&5
19888 echo "${ECHO_T}no" >&6
19891 # Extract the first word of "dirname", so it can be a program name with args.
19892 set dummy dirname; ac_word=$2
19893 echo "$as_me:$LINENO: checking for $ac_word" >&5
19894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19895 if test "${ac_cv_path_DIRNAME+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19904 for as_dir in $PATH
19907 test -z "$as_dir" && as_dir=.
19908 for ac_exec_ext in '' $ac_executable_extensions; do
19909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19910 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19920 DIRNAME=$ac_cv_path_DIRNAME
19922 if test -n "$DIRNAME"; then
19923 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19924 echo "${ECHO_T}$DIRNAME" >&6
19926 echo "$as_me:$LINENO: result: no" >&5
19927 echo "${ECHO_T}no" >&6
19930 # Extract the first word of "grep", so it can be a program name with args.
19931 set dummy grep; ac_word=$2
19932 echo "$as_me:$LINENO: checking for $ac_word" >&5
19933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19934 if test "${ac_cv_path_GREP+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19943 for as_dir in $PATH
19946 test -z "$as_dir" && as_dir=.
19947 for ac_exec_ext in '' $ac_executable_extensions; do
19948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19949 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19959 GREP=$ac_cv_path_GREP
19961 if test -n "$GREP"; then
19962 echo "$as_me:$LINENO: result: $GREP" >&5
19963 echo "${ECHO_T}$GREP" >&6
19965 echo "$as_me:$LINENO: result: no" >&5
19966 echo "${ECHO_T}no" >&6
19972 if test "x$WITH_THREADS" = "xyes"; then
19973 if test $ac_cv_prog_suncc = "yes"; then
19974 CFLAGS="$CFLAGS -mt"
19978 for ac_header in pthread.h
19980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19982 echo "$as_me:$LINENO: checking for $ac_header" >&5
19983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19990 # Is the header compilable?
19991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19993 cat >conftest.$ac_ext <<_ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 $ac_includes_default
20000 #include <$ac_header>
20002 rm -f conftest.$ac_objext
20003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20004 (eval $ac_compile) 2>conftest.er1
20006 grep -v '^ *+' conftest.er1 >conftest.err
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } &&
20011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; } &&
20017 { ac_try='test -s conftest.$ac_objext'
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; }; then
20023 ac_header_compiler=yes
20025 echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20028 ac_header_compiler=no
20030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20032 echo "${ECHO_T}$ac_header_compiler" >&6
20034 # Is the header present?
20035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20037 cat >conftest.$ac_ext <<_ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20043 #include <$ac_header>
20045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20048 grep -v '^ *+' conftest.er1 >conftest.err
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } >/dev/null; then
20053 if test -s conftest.err; then
20054 ac_cpp_err=$ac_c_preproc_warn_flag
20055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20062 if test -z "$ac_cpp_err"; then
20063 ac_header_preproc=yes
20065 echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20068 ac_header_preproc=no
20070 rm -f conftest.err conftest.$ac_ext
20071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20072 echo "${ECHO_T}$ac_header_preproc" >&6
20074 # So? What about this header?
20075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20081 ac_header_preproc=yes
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20098 ## ------------------------------------------ ##
20099 ## Report this to the AC_PACKAGE_NAME lists. ##
20100 ## ------------------------------------------ ##
20103 sed "s/^/$as_me: WARNING: /" >&2
20106 echo "$as_me:$LINENO: checking for $ac_header" >&5
20107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 eval "$as_ac_Header=\$ac_header_preproc"
20113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20118 cat >>confdefs.h <<_ACEOF
20119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20129 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20130 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20131 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 ac_check_lib_save_LIBS=$LIBS
20135 LIBS="-lpthread $LIBS"
20136 cat >conftest.$ac_ext <<_ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20143 /* Override any gcc2 internal prototype to avoid an error. */
20147 /* We use char because int might match the return type of a gcc2
20148 builtin and then its argument prototype would still apply. */
20149 char pthread_create ();
20158 rm -f conftest.$ac_objext conftest$ac_exeext
20159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20160 (eval $ac_link) 2>conftest.er1
20162 grep -v '^ *+' conftest.er1 >conftest.err
20164 cat conftest.err >&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } &&
20167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest$ac_exeext'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
20179 ac_cv_lib_pthread_pthread_create=yes
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_cv_lib_pthread_pthread_create=no
20186 rm -f conftest.err conftest.$ac_objext \
20187 conftest$ac_exeext conftest.$ac_ext
20188 LIBS=$ac_check_lib_save_LIBS
20190 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20191 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20192 if test $ac_cv_lib_pthread_pthread_create = yes; then
20193 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20194 LIBS="$LIBS -lpthread"
20196 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20197 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20198 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 ac_check_lib_save_LIBS=$LIBS
20203 cat >conftest.$ac_ext <<_ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20210 /* Override any gcc2 internal prototype to avoid an error. */
20214 /* We use char because int might match the return type of a gcc2
20215 builtin and then its argument prototype would still apply. */
20216 char pthread_create ();
20225 rm -f conftest.$ac_objext conftest$ac_exeext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20227 (eval $ac_link) 2>conftest.er1
20229 grep -v '^ *+' conftest.er1 >conftest.err
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest$ac_exeext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_lib_c_r_pthread_create=yes
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_cv_lib_c_r_pthread_create=no
20253 rm -f conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
20255 LIBS=$ac_check_lib_save_LIBS
20257 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20258 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20259 if test $ac_cv_lib_c_r_pthread_create = yes; then
20260 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20271 if test "x$WITH_THREADS" != "xyes"; then
20273 ac_cv_header_pthread_h="no"
20277 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20278 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
20279 if test "${ac_cv_search_sem_init+set}" = set; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20282 ac_func_search_save_LIBS=$LIBS
20283 ac_cv_search_sem_init=no
20284 cat >conftest.$ac_ext <<_ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20291 /* Override any gcc2 internal prototype to avoid an error. */
20295 /* We use char because int might match the return type of a gcc2
20296 builtin and then its argument prototype would still apply. */
20306 rm -f conftest.$ac_objext conftest$ac_exeext
20307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20308 (eval $ac_link) 2>conftest.er1
20310 grep -v '^ *+' conftest.er1 >conftest.err
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } &&
20315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; } &&
20321 { ac_try='test -s conftest$ac_exeext'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 ac_cv_search_sem_init="none required"
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20333 rm -f conftest.err conftest.$ac_objext \
20334 conftest$ac_exeext conftest.$ac_ext
20335 if test "$ac_cv_search_sem_init" = no; then
20336 for ac_lib in pthread sem posix4 rt semaphore; do
20337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20338 cat >conftest.$ac_ext <<_ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20345 /* Override any gcc2 internal prototype to avoid an error. */
20349 /* We use char because int might match the return type of a gcc2
20350 builtin and then its argument prototype would still apply. */
20360 rm -f conftest.$ac_objext conftest$ac_exeext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20362 (eval $ac_link) 2>conftest.er1
20364 grep -v '^ *+' conftest.er1 >conftest.err
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest$ac_exeext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_cv_search_sem_init="-l$ac_lib"
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20388 rm -f conftest.err conftest.$ac_objext \
20389 conftest$ac_exeext conftest.$ac_ext
20392 LIBS=$ac_func_search_save_LIBS
20394 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20395 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
20396 if test "$ac_cv_search_sem_init" != no; then
20397 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
20400 { { echo "$as_me:$LINENO: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
20401 echo "$as_me: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
20402 { (exit 1); exit 1; }; }
20409 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20410 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
20411 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 ac_check_lib_save_LIBS=$LIBS
20415 LIBS="-lsocket $LIBS"
20416 cat >conftest.$ac_ext <<_ACEOF
20419 cat confdefs.h >>conftest.$ac_ext
20420 cat >>conftest.$ac_ext <<_ACEOF
20421 /* end confdefs.h. */
20423 /* Override any gcc2 internal prototype to avoid an error. */
20427 /* We use char because int might match the return type of a gcc2
20428 builtin and then its argument prototype would still apply. */
20429 char getsockname ();
20438 rm -f conftest.$ac_objext conftest$ac_exeext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20440 (eval $ac_link) 2>conftest.er1
20442 grep -v '^ *+' conftest.er1 >conftest.err
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
20447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; } &&
20453 { ac_try='test -s conftest$ac_exeext'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
20459 ac_cv_lib_socket_getsockname=yes
20461 echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.$ac_ext >&5
20464 ac_cv_lib_socket_getsockname=no
20466 rm -f conftest.err conftest.$ac_objext \
20467 conftest$ac_exeext conftest.$ac_ext
20468 LIBS=$ac_check_lib_save_LIBS
20470 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20471 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20472 if test $ac_cv_lib_socket_getsockname = yes; then
20473 cat >>confdefs.h <<_ACEOF
20474 #define HAVE_LIBSOCKET 1
20477 LIBS="-lsocket $LIBS"
20483 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20484 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20485 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 ac_check_lib_save_LIBS=$LIBS
20489 LIBS="-lresolv $LIBS"
20490 cat >conftest.$ac_ext <<_ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20497 /* Override any gcc2 internal prototype to avoid an error. */
20501 /* We use char because int might match the return type of a gcc2
20502 builtin and then its argument prototype would still apply. */
20512 rm -f conftest.$ac_objext conftest$ac_exeext
20513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20514 (eval $ac_link) 2>conftest.er1
20516 grep -v '^ *+' conftest.er1 >conftest.err
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
20521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; } &&
20527 { ac_try='test -s conftest$ac_exeext'
20528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529 (eval $ac_try) 2>&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; }; then
20533 ac_cv_lib_resolv_inet_aton=yes
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20538 ac_cv_lib_resolv_inet_aton=no
20540 rm -f conftest.err conftest.$ac_objext \
20541 conftest$ac_exeext conftest.$ac_ext
20542 LIBS=$ac_check_lib_save_LIBS
20544 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20545 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20546 if test $ac_cv_lib_resolv_inet_aton = yes; then
20547 cat >>confdefs.h <<_ACEOF
20548 #define HAVE_LIBRESOLV 1
20551 LIBS="-lresolv $LIBS"
20557 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20558 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20559 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 ac_check_lib_save_LIBS=$LIBS
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20571 /* Override any gcc2 internal prototype to avoid an error. */
20575 /* We use char because int might match the return type of a gcc2
20576 builtin and then its argument prototype would still apply. */
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588 (eval $ac_link) 2>conftest.er1
20590 grep -v '^ *+' conftest.er1 >conftest.err
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; } &&
20601 { ac_try='test -s conftest$ac_exeext'
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ac_cv_lib_nsl_inet_ntoa=yes
20609 echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20612 ac_cv_lib_nsl_inet_ntoa=no
20614 rm -f conftest.err conftest.$ac_objext \
20615 conftest$ac_exeext conftest.$ac_ext
20616 LIBS=$ac_check_lib_save_LIBS
20618 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20619 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20620 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20621 cat >>confdefs.h <<_ACEOF
20622 #define HAVE_LIBNSL 1
20632 if test "x$OPENSSL_LIB_DIR" != "x"; then
20633 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20635 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20636 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
20637 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 ac_check_lib_save_LIBS=$LIBS
20641 LIBS="-lcrypto $LIBS"
20642 cat >conftest.$ac_ext <<_ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20649 /* Override any gcc2 internal prototype to avoid an error. */
20653 /* We use char because int might match the return type of a gcc2
20654 builtin and then its argument prototype would still apply. */
20664 rm -f conftest.$ac_objext conftest$ac_exeext
20665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20666 (eval $ac_link) 2>conftest.er1
20668 grep -v '^ *+' conftest.er1 >conftest.err
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } &&
20673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; } &&
20679 { ac_try='test -s conftest$ac_exeext'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20685 ac_cv_lib_crypto_DH_new=yes
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_cv_lib_crypto_DH_new=no
20692 rm -f conftest.err conftest.$ac_objext \
20693 conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20696 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20697 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
20698 if test $ac_cv_lib_crypto_DH_new = yes; then
20701 cat >>confdefs.h <<\_ACEOF
20702 #define HAVE_LIBCRYPTO 1
20705 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20706 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
20707 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 ac_check_lib_save_LIBS=$LIBS
20712 cat >conftest.$ac_ext <<_ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20719 /* Override any gcc2 internal prototype to avoid an error. */
20723 /* We use char because int might match the return type of a gcc2
20724 builtin and then its argument prototype would still apply. */
20734 rm -f conftest.$ac_objext conftest$ac_exeext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20736 (eval $ac_link) 2>conftest.er1
20738 grep -v '^ *+' conftest.er1 >conftest.err
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } &&
20743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745 (eval $ac_try) 2>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; } &&
20749 { ac_try='test -s conftest$ac_exeext'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 ac_cv_lib_ssl_SSL_new=yes
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 ac_cv_lib_ssl_SSL_new=no
20762 rm -f conftest.err conftest.$ac_objext \
20763 conftest$ac_exeext conftest.$ac_ext
20764 LIBS=$ac_check_lib_save_LIBS
20766 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20767 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
20768 if test $ac_cv_lib_ssl_SSL_new = yes; then
20771 cat >>confdefs.h <<\_ACEOF
20772 #define HAVE_LIBSSL 1
20775 if test "x$OPENSSL_LIB_DIR" != "x"; then
20776 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20778 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20788 echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
20789 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
20790 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
20791 echo $ECHO_N "(cached) $ECHO_C" >&6
20793 ac_check_lib_save_LIBS=$LIBS
20794 LIBS="-lpcap $LIBS"
20795 cat >conftest.$ac_ext <<_ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20802 /* Override any gcc2 internal prototype to avoid an error. */
20806 /* We use char because int might match the return type of a gcc2
20807 builtin and then its argument prototype would still apply. */
20808 char pcap_open_live ();
20817 rm -f conftest.$ac_objext conftest$ac_exeext
20818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20819 (eval $ac_link) 2>conftest.er1
20821 grep -v '^ *+' conftest.er1 >conftest.err
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } &&
20826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest$ac_exeext'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 ac_cv_lib_pcap_pcap_open_live=yes
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ac_cv_lib_pcap_pcap_open_live=no
20845 rm -f conftest.err conftest.$ac_objext \
20846 conftest$ac_exeext conftest.$ac_ext
20847 LIBS=$ac_check_lib_save_LIBS
20849 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20850 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6
20851 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
20854 cat >>confdefs.h <<\_ACEOF
20855 #define HAVE_LIBPCAP 1
20860 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20861 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20868 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20871 CFLAGS="$CFLAGS -DDARWIN"
20880 ac_header_dirent=no
20881 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20882 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20883 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20884 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20888 cat >conftest.$ac_ext <<_ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894 #include <sys/types.h>
20906 rm -f conftest.$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908 (eval $ac_compile) 2>conftest.er1
20910 grep -v '^ *+' conftest.er1 >conftest.err
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; } &&
20921 { ac_try='test -s conftest.$ac_objext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 eval "$as_ac_Header=yes"
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20932 eval "$as_ac_Header=no"
20934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20939 cat >>confdefs.h <<_ACEOF
20940 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20943 ac_header_dirent=$ac_hdr; break
20947 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20948 if test $ac_header_dirent = dirent.h; then
20949 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20950 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20951 if test "${ac_cv_search_opendir+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 ac_func_search_save_LIBS=$LIBS
20955 ac_cv_search_opendir=no
20956 cat >conftest.$ac_ext <<_ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20963 /* Override any gcc2 internal prototype to avoid an error. */
20967 /* We use char because int might match the return type of a gcc2
20968 builtin and then its argument prototype would still apply. */
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20980 (eval $ac_link) 2>conftest.er1
20982 grep -v '^ *+' conftest.er1 >conftest.err
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; } &&
20993 { ac_try='test -s conftest$ac_exeext'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
20999 ac_cv_search_opendir="none required"
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21005 rm -f conftest.err conftest.$ac_objext \
21006 conftest$ac_exeext conftest.$ac_ext
21007 if test "$ac_cv_search_opendir" = no; then
21008 for ac_lib in dir; do
21009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21010 cat >conftest.$ac_ext <<_ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21017 /* Override any gcc2 internal prototype to avoid an error. */
21021 /* We use char because int might match the return type of a gcc2
21022 builtin and then its argument prototype would still apply. */
21032 rm -f conftest.$ac_objext conftest$ac_exeext
21033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21034 (eval $ac_link) 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } &&
21041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; } &&
21047 { ac_try='test -s conftest$ac_exeext'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_cv_search_opendir="-l$ac_lib"
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21060 rm -f conftest.err conftest.$ac_objext \
21061 conftest$ac_exeext conftest.$ac_ext
21064 LIBS=$ac_func_search_save_LIBS
21066 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21067 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21068 if test "$ac_cv_search_opendir" != no; then
21069 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21074 echo "$as_me:$LINENO: checking for library containing opendir" >&5
21075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
21076 if test "${ac_cv_search_opendir+set}" = set; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21079 ac_func_search_save_LIBS=$LIBS
21080 ac_cv_search_opendir=no
21081 cat >conftest.$ac_ext <<_ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h. */
21088 /* Override any gcc2 internal prototype to avoid an error. */
21092 /* We use char because int might match the return type of a gcc2
21093 builtin and then its argument prototype would still apply. */
21103 rm -f conftest.$ac_objext conftest$ac_exeext
21104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21105 (eval $ac_link) 2>conftest.er1
21107 grep -v '^ *+' conftest.er1 >conftest.err
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } &&
21112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; } &&
21118 { ac_try='test -s conftest$ac_exeext'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_cv_search_opendir="none required"
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21130 rm -f conftest.err conftest.$ac_objext \
21131 conftest$ac_exeext conftest.$ac_ext
21132 if test "$ac_cv_search_opendir" = no; then
21133 for ac_lib in x; do
21134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21142 /* Override any gcc2 internal prototype to avoid an error. */
21146 /* We use char because int might match the return type of a gcc2
21147 builtin and then its argument prototype would still apply. */
21157 rm -f conftest.$ac_objext conftest$ac_exeext
21158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21159 (eval $ac_link) 2>conftest.er1
21161 grep -v '^ *+' conftest.er1 >conftest.err
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } &&
21166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; } &&
21172 { ac_try='test -s conftest$ac_exeext'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; }; then
21178 ac_cv_search_opendir="-l$ac_lib"
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21185 rm -f conftest.err conftest.$ac_objext \
21186 conftest$ac_exeext conftest.$ac_ext
21189 LIBS=$ac_func_search_save_LIBS
21191 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21192 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21193 if test "$ac_cv_search_opendir" != no; then
21194 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21200 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21202 if test "${ac_cv_header_stdc+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 cat >conftest.$ac_ext <<_ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211 #include <stdlib.h>
21212 #include <stdarg.h>
21213 #include <string.h>
21224 rm -f conftest.$ac_objext
21225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21226 (eval $ac_compile) 2>conftest.er1
21228 grep -v '^ *+' conftest.er1 >conftest.err
21230 cat conftest.err >&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
21233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; } &&
21239 { ac_try='test -s conftest.$ac_objext'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 ac_cv_header_stdc=yes
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ac_cv_header_stdc=no
21252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21254 if test $ac_cv_header_stdc = yes; then
21255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21256 cat >conftest.$ac_ext <<_ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21262 #include <string.h>
21265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21266 $EGREP "memchr" >/dev/null 2>&1; then
21269 ac_cv_header_stdc=no
21275 if test $ac_cv_header_stdc = yes; then
21276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21277 cat >conftest.$ac_ext <<_ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h. */
21283 #include <stdlib.h>
21286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21287 $EGREP "free" >/dev/null 2>&1; then
21290 ac_cv_header_stdc=no
21296 if test $ac_cv_header_stdc = yes; then
21297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21298 if test "$cross_compiling" = yes; then
21301 cat >conftest.$ac_ext <<_ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21308 #if ((' ' & 0x0FF) == 0x020)
21309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21312 # define ISLOWER(c) \
21313 (('a' <= (c) && (c) <= 'i') \
21314 || ('j' <= (c) && (c) <= 'r') \
21315 || ('s' <= (c) && (c) <= 'z'))
21316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21324 for (i = 0; i < 256; i++)
21325 if (XOR (islower (i), ISLOWER (i))
21326 || toupper (i) != TOUPPER (i))
21331 rm -f conftest$ac_exeext
21332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21333 (eval $ac_link) 2>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; }; then
21344 echo "$as_me: program exited with status $ac_status" >&5
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21348 ( exit $ac_status )
21349 ac_cv_header_stdc=no
21351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21355 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21356 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21357 if test $ac_cv_header_stdc = yes; then
21359 cat >>confdefs.h <<\_ACEOF
21360 #define STDC_HEADERS 1
21365 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21366 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21367 if test "${ac_cv_header_time+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 cat >conftest.$ac_ext <<_ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376 #include <sys/types.h>
21377 #include <sys/time.h>
21383 if ((struct tm *) 0)
21389 rm -f conftest.$ac_objext
21390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21391 (eval $ac_compile) 2>conftest.er1
21393 grep -v '^ *+' conftest.er1 >conftest.err
21395 cat conftest.err >&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } &&
21398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; } &&
21404 { ac_try='test -s conftest.$ac_objext'
21405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406 (eval $ac_try) 2>&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); }; }; then
21410 ac_cv_header_time=yes
21412 echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21415 ac_cv_header_time=no
21417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21419 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21420 echo "${ECHO_T}$ac_cv_header_time" >&6
21421 if test $ac_cv_header_time = yes; then
21423 cat >>confdefs.h <<\_ACEOF
21424 #define TIME_WITH_SYS_TIME 1
21429 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21430 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21431 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 cat >conftest.$ac_ext <<_ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21440 #include <sys/types.h>
21441 #include <sys/wait.h>
21442 #ifndef WEXITSTATUS
21443 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21446 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21454 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21459 rm -f conftest.$ac_objext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21461 (eval $ac_compile) 2>conftest.er1
21463 grep -v '^ *+' conftest.er1 >conftest.err
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } &&
21468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; } &&
21474 { ac_try='test -s conftest.$ac_objext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 ac_cv_header_sys_wait_h=yes
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 ac_cv_header_sys_wait_h=no
21487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21489 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21490 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21491 if test $ac_cv_header_sys_wait_h = yes; then
21493 cat >>confdefs.h <<\_ACEOF
21494 #define HAVE_SYS_WAIT_H 1
21561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21563 echo "$as_me:$LINENO: checking for $ac_header" >&5
21564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21571 # Is the header compilable?
21572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 $ac_includes_default
21581 #include <$ac_header>
21583 rm -f conftest.$ac_objext
21584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21585 (eval $ac_compile) 2>conftest.er1
21587 grep -v '^ *+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
21592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; } &&
21598 { ac_try='test -s conftest.$ac_objext'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 ac_header_compiler=yes
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 ac_header_compiler=no
21611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21613 echo "${ECHO_T}$ac_header_compiler" >&6
21615 # Is the header present?
21616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 #include <$ac_header>
21626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21629 grep -v '^ *+' conftest.er1 >conftest.err
21631 cat conftest.err >&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); } >/dev/null; then
21634 if test -s conftest.err; then
21635 ac_cpp_err=$ac_c_preproc_warn_flag
21636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21643 if test -z "$ac_cpp_err"; then
21644 ac_header_preproc=yes
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 ac_header_preproc=no
21651 rm -f conftest.err conftest.$ac_ext
21652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21653 echo "${ECHO_T}$ac_header_preproc" >&6
21655 # So? What about this header?
21656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21662 ac_header_preproc=yes
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21679 ## ------------------------------------------ ##
21680 ## Report this to the AC_PACKAGE_NAME lists. ##
21681 ## ------------------------------------------ ##
21684 sed "s/^/$as_me: WARNING: /" >&2
21687 echo "$as_me:$LINENO: checking for $ac_header" >&5
21688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 eval "$as_ac_Header=\$ac_header_preproc"
21694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21699 cat >>confdefs.h <<_ACEOF
21700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21709 if test "${ac_cv_header_regex_h+set}" = set; then
21710 echo "$as_me:$LINENO: checking for regex.h" >&5
21711 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21712 if test "${ac_cv_header_regex_h+set}" = set; then
21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21716 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21718 # Is the header compilable?
21719 echo "$as_me:$LINENO: checking regex.h usability" >&5
21720 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21721 cat >conftest.$ac_ext <<_ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21727 $ac_includes_default
21730 rm -f conftest.$ac_objext
21731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21732 (eval $ac_compile) 2>conftest.er1
21734 grep -v '^ *+' conftest.er1 >conftest.err
21736 cat conftest.err >&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } &&
21739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_header_compiler=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_header_compiler=no
21758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21760 echo "${ECHO_T}$ac_header_compiler" >&6
21762 # Is the header present?
21763 echo "$as_me:$LINENO: checking regex.h presence" >&5
21764 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21765 cat >conftest.$ac_ext <<_ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21776 grep -v '^ *+' conftest.er1 >conftest.err
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } >/dev/null; then
21781 if test -s conftest.err; then
21782 ac_cpp_err=$ac_c_preproc_warn_flag
21783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21790 if test -z "$ac_cpp_err"; then
21791 ac_header_preproc=yes
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21796 ac_header_preproc=no
21798 rm -f conftest.err conftest.$ac_ext
21799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21800 echo "${ECHO_T}$ac_header_preproc" >&6
21802 # So? What about this header?
21803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21805 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21806 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21808 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21809 ac_header_preproc=yes
21812 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21813 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21815 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21817 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21819 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21821 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21822 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21823 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21826 ## ------------------------------------------ ##
21827 ## Report this to the AC_PACKAGE_NAME lists. ##
21828 ## ------------------------------------------ ##
21831 sed "s/^/$as_me: WARNING: /" >&2
21834 echo "$as_me:$LINENO: checking for regex.h" >&5
21835 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21836 if test "${ac_cv_header_regex_h+set}" = set; then
21837 echo $ECHO_N "(cached) $ECHO_C" >&6
21839 ac_cv_header_regex_h=$ac_header_preproc
21841 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21842 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21845 if test $ac_cv_header_regex_h = yes; then
21847 cat >>confdefs.h <<\_ACEOF
21848 #define HAVE_REGEX_H
21854 if test "x$ac_cv_header_regex_h" = "xyes"; then
21857 cat >conftest.$ac_ext <<_ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21864 #ifdef REG_EXTENDED
21869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21870 $EGREP "yes" >/dev/null 2>&1; then
21872 cat >>confdefs.h <<\_ACEOF
21873 #define HAVE_REG_EXTENDED
21883 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21886 cat >>confdefs.h <<\_ACEOF
21892 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21895 cat >>confdefs.h <<\_ACEOF
21901 OPENSSL_INCLUDE="-DNO_OPENSSL"
21902 if test "x$OPENSSL_LIBS" = "x"; then
21903 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
21904 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21906 old_CPPFLAGS=$CPPFLAGS
21907 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21908 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21910 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21923 echo "$as_me:$LINENO: checking for $ac_header" >&5
21924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21931 # Is the header compilable?
21932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 $ac_includes_default
21941 #include <$ac_header>
21943 rm -f conftest.$ac_objext
21944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21945 (eval $ac_compile) 2>conftest.er1
21947 grep -v '^ *+' conftest.er1 >conftest.err
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } &&
21952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; } &&
21958 { ac_try='test -s conftest.$ac_objext'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 ac_header_compiler=yes
21966 echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21969 ac_header_compiler=no
21971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21973 echo "${ECHO_T}$ac_header_compiler" >&6
21975 # Is the header present?
21976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21978 cat >conftest.$ac_ext <<_ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 #include <$ac_header>
21986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } >/dev/null; then
21994 if test -s conftest.err; then
21995 ac_cpp_err=$ac_c_preproc_warn_flag
21996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22003 if test -z "$ac_cpp_err"; then
22004 ac_header_preproc=yes
22006 echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22009 ac_header_preproc=no
22011 rm -f conftest.err conftest.$ac_ext
22012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22013 echo "${ECHO_T}$ac_header_preproc" >&6
22015 # So? What about this header?
22016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22022 ac_header_preproc=yes
22025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22039 ## ------------------------------------------ ##
22040 ## Report this to the AC_PACKAGE_NAME lists. ##
22041 ## ------------------------------------------ ##
22044 sed "s/^/$as_me: WARNING: /" >&2
22047 echo "$as_me:$LINENO: checking for $ac_header" >&5
22048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 eval "$as_ac_Header=\$ac_header_preproc"
22054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22059 cat >>confdefs.h <<_ACEOF
22060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22070 if test "x$OPENSSL_LIBS" != "x"; then
22071 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22072 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
22073 cat >conftest.$ac_ext <<_ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h. */
22079 #include <openssl/crypto.h>
22080 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22086 $EGREP "yes" >/dev/null 2>&1; then
22091 if test "x$goodssl" != "xyes"; then
22092 echo "$as_me:$LINENO: result: no" >&5
22093 echo "${ECHO_T}no" >&6
22096 echo "$as_me:$LINENO: result: yes" >&5
22097 echo "${ECHO_T}yes" >&6
22098 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22099 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22101 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22105 CPPFLAGS=$old_CPPFLAGS
22109 export OPENSSL_LIBS
22111 if test "x$PCAP_LIBS" = x; then
22112 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22113 echo "$as_me: skipping test for pcap.h." >&6;}
22115 if test "${ac_cv_header_pcap_h+set}" = set; then
22116 echo "$as_me:$LINENO: checking for pcap.h" >&5
22117 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
22118 if test "${ac_cv_header_pcap_h+set}" = set; then
22119 echo $ECHO_N "(cached) $ECHO_C" >&6
22121 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22122 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
22124 # Is the header compilable?
22125 echo "$as_me:$LINENO: checking pcap.h usability" >&5
22126 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6
22127 cat >conftest.$ac_ext <<_ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h. */
22133 $ac_includes_default
22136 rm -f conftest.$ac_objext
22137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22138 (eval $ac_compile) 2>conftest.er1
22140 grep -v '^ *+' conftest.er1 >conftest.err
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } &&
22145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; } &&
22151 { ac_try='test -s conftest.$ac_objext'
22152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22153 (eval $ac_try) 2>&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); }; }; then
22157 ac_header_compiler=yes
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22162 ac_header_compiler=no
22164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22166 echo "${ECHO_T}$ac_header_compiler" >&6
22168 # Is the header present?
22169 echo "$as_me:$LINENO: checking pcap.h presence" >&5
22170 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6
22171 cat >conftest.$ac_ext <<_ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22182 grep -v '^ *+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } >/dev/null; then
22187 if test -s conftest.err; then
22188 ac_cpp_err=$ac_c_preproc_warn_flag
22189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22196 if test -z "$ac_cpp_err"; then
22197 ac_header_preproc=yes
22199 echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22202 ac_header_preproc=no
22204 rm -f conftest.err conftest.$ac_ext
22205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22206 echo "${ECHO_T}$ac_header_preproc" >&6
22208 # So? What about this header?
22209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22211 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22212 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22214 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22215 ac_header_preproc=yes
22218 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22219 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22220 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
22221 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
22222 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22223 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22224 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
22225 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
22226 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22227 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22228 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22229 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22232 ## ------------------------------------------ ##
22233 ## Report this to the AC_PACKAGE_NAME lists. ##
22234 ## ------------------------------------------ ##
22237 sed "s/^/$as_me: WARNING: /" >&2
22240 echo "$as_me:$LINENO: checking for pcap.h" >&5
22241 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
22242 if test "${ac_cv_header_pcap_h+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 ac_cv_header_pcap_h=$ac_header_preproc
22247 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22248 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
22251 if test $ac_cv_header_pcap_h = yes; then
22253 cat >>confdefs.h <<\_ACEOF
22254 #define HAVE_PCAP_H 1
22259 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22260 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22269 echo "$as_me:$LINENO: checking for off_t" >&5
22270 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22271 if test "${ac_cv_type_off_t+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22274 cat >conftest.$ac_ext <<_ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h. */
22280 $ac_includes_default
22286 if (sizeof (off_t))
22292 rm -f conftest.$ac_objext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22294 (eval $ac_compile) 2>conftest.er1
22296 grep -v '^ *+' conftest.er1 >conftest.err
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } &&
22301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22303 (eval $ac_try) 2>&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }; } &&
22307 { ac_try='test -s conftest.$ac_objext'
22308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309 (eval $ac_try) 2>&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; }; then
22313 ac_cv_type_off_t=yes
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ac_cv_type_off_t=no
22320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22322 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22323 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22324 if test $ac_cv_type_off_t = yes; then
22328 cat >>confdefs.h <<_ACEOF
22334 echo "$as_me:$LINENO: checking for pid_t" >&5
22335 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22336 if test "${ac_cv_type_pid_t+set}" = set; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 cat >conftest.$ac_ext <<_ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h. */
22345 $ac_includes_default
22351 if (sizeof (pid_t))
22357 rm -f conftest.$ac_objext
22358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22359 (eval $ac_compile) 2>conftest.er1
22361 grep -v '^ *+' conftest.er1 >conftest.err
22363 cat conftest.err >&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } &&
22366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368 (eval $ac_try) 2>&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; } &&
22372 { ac_try='test -s conftest.$ac_objext'
22373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374 (eval $ac_try) 2>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; }; then
22378 ac_cv_type_pid_t=yes
22380 echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 ac_cv_type_pid_t=no
22385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22387 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22388 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22389 if test $ac_cv_type_pid_t = yes; then
22393 cat >>confdefs.h <<_ACEOF
22399 echo "$as_me:$LINENO: checking for size_t" >&5
22400 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22401 if test "${ac_cv_type_size_t+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 cat >conftest.$ac_ext <<_ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22410 $ac_includes_default
22416 if (sizeof (size_t))
22422 rm -f conftest.$ac_objext
22423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22424 (eval $ac_compile) 2>conftest.er1
22426 grep -v '^ *+' conftest.er1 >conftest.err
22428 cat conftest.err >&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } &&
22431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22433 (eval $ac_try) 2>&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); }; } &&
22437 { ac_try='test -s conftest.$ac_objext'
22438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; }; then
22443 ac_cv_type_size_t=yes
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 ac_cv_type_size_t=no
22450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22452 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22453 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22454 if test $ac_cv_type_size_t = yes; then
22458 cat >>confdefs.h <<_ACEOF
22459 #define size_t unsigned
22464 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22465 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22466 if test "${ac_cv_type_uid_t+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22469 cat >conftest.$ac_ext <<_ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22475 #include <sys/types.h>
22478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22479 $EGREP "uid_t" >/dev/null 2>&1; then
22480 ac_cv_type_uid_t=yes
22482 ac_cv_type_uid_t=no
22487 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22488 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22489 if test $ac_cv_type_uid_t = no; then
22491 cat >>confdefs.h <<\_ACEOF
22496 cat >>confdefs.h <<\_ACEOF
22504 echo "$as_me:$LINENO: checking for socklen_t" >&5
22505 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22506 if test "${ac_cv_type_socklen_t+set}" = set; then
22507 echo $ECHO_N "(cached) $ECHO_C" >&6
22509 ac_cv_type_socklen_t=no
22510 cat >conftest.$ac_ext <<_ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22516 #ifdef HAVE_SYS_TYPES_H
22517 #include <sys/types.h>
22519 #ifdef HAVE_SYS_SOCKET_H
22520 #include <sys/socket.h>
22531 rm -f conftest.$ac_objext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22533 (eval $ac_compile) 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } &&
22540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; } &&
22546 { ac_try='test -s conftest.$ac_objext'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
22552 ac_cv_type_socklen_t=yes
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22562 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22563 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22565 if test "$ac_cv_type_socklen_t" != "yes"; then
22567 cat >>confdefs.h <<\_ACEOF
22568 #define socklen_t int
22575 echo "$as_me:$LINENO: checking for uint8_t" >&5
22576 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22577 if test "${ac_cv_type_uint8_t+set}" = set; then
22578 echo $ECHO_N "(cached) $ECHO_C" >&6
22580 ac_cv_type_uint8_t=no
22581 cat >conftest.$ac_ext <<_ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h. */
22587 #ifdef HAVE_INTTYPES_H
22588 #include <inttypes.h>
22590 #ifdef HAVE_STDINT_H
22591 #include <stdint.h>
22602 rm -f conftest.$ac_objext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22604 (eval $ac_compile) 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } &&
22611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; } &&
22617 { ac_try='test -s conftest.$ac_objext'
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 ac_cv_type_uint8_t=yes
22625 echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22633 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22634 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22636 if test "$ac_cv_type_uint8_t" != "yes"; then
22638 cat >>confdefs.h <<\_ACEOF
22639 #define uint8_t unsigned char
22646 echo "$as_me:$LINENO: checking for uint16_t" >&5
22647 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22648 if test "${ac_cv_type_uint16_t+set}" = set; then
22649 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 ac_cv_type_uint16_t=no
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 #ifdef HAVE_INTTYPES_H
22659 #include <inttypes.h>
22661 #ifdef HAVE_STDINT_H
22662 #include <stdint.h>
22673 rm -f conftest.$ac_objext
22674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22675 (eval $ac_compile) 2>conftest.er1
22677 grep -v '^ *+' conftest.er1 >conftest.err
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } &&
22682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; } &&
22688 { ac_try='test -s conftest.$ac_objext'
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; }; then
22694 ac_cv_type_uint16_t=yes
22696 echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22704 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22705 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22707 if test "$ac_cv_type_uint16_t" != "yes"; then
22709 cat >>confdefs.h <<\_ACEOF
22710 #define uint16_t unsigned short
22717 echo "$as_me:$LINENO: checking for uint32_t" >&5
22718 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22719 if test "${ac_cv_type_uint32_t+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22722 ac_cv_type_uint32_t=no
22723 cat >conftest.$ac_ext <<_ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 #ifdef HAVE_INTTYPES_H
22730 #include <inttypes.h>
22732 #ifdef HAVE_STDINT_H
22733 #include <stdint.h>
22744 rm -f conftest.$ac_objext
22745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22746 (eval $ac_compile) 2>conftest.er1
22748 grep -v '^ *+' conftest.er1 >conftest.err
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } &&
22753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; } &&
22759 { ac_try='test -s conftest.$ac_objext'
22760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761 (eval $ac_try) 2>&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); }; }; then
22765 ac_cv_type_uint32_t=yes
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22775 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22776 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22778 if test "$ac_cv_type_uint32_t" != "yes"; then
22780 cat >>confdefs.h <<\_ACEOF
22781 #define uint32_t unsigned int
22787 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22788 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
22789 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22792 cat >conftest.$ac_ext <<_ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h. */
22799 #ifdef HAVE_NETINET_IN_H
22800 #include <netinet/in.h>
22807 if ((struct in6_addr *) 0)
22809 if (sizeof (struct in6_addr))
22815 rm -f conftest.$ac_objext
22816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22817 (eval $ac_compile) 2>conftest.er1
22819 grep -v '^ *+' conftest.er1 >conftest.err
22821 cat conftest.err >&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } &&
22824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826 (eval $ac_try) 2>&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; } &&
22830 { ac_try='test -s conftest.$ac_objext'
22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832 (eval $ac_try) 2>&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; }; then
22836 ac_cv_type_struct_in6_addr=yes
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ac_cv_type_struct_in6_addr=no
22843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22845 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
22846 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
22847 if test $ac_cv_type_struct_in6_addr = yes; then
22849 cat >>confdefs.h <<\_ACEOF
22850 #define HAVE_STRUCT_IN6_ADDR 1
22856 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22857 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
22858 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22859 echo $ECHO_N "(cached) $ECHO_C" >&6
22861 cat >conftest.$ac_ext <<_ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h. */
22868 #ifdef HAVE_NETINET_IN_H
22869 #include <netinet/in.h>
22871 #ifdef HAVE_SYS_SOCKET_H
22872 #include <sys/socket.h>
22879 if ((struct sockaddr_storage *) 0)
22881 if (sizeof (struct sockaddr_storage))
22887 rm -f conftest.$ac_objext
22888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22889 (eval $ac_compile) 2>conftest.er1
22891 grep -v '^ *+' conftest.er1 >conftest.err
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } &&
22896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22898 (eval $ac_try) 2>&5
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); }; } &&
22902 { ac_try='test -s conftest.$ac_objext'
22903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22904 (eval $ac_try) 2>&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); }; }; then
22908 ac_cv_type_struct_sockaddr_storage=yes
22910 echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22913 ac_cv_type_struct_sockaddr_storage=no
22915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22917 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22918 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
22919 if test $ac_cv_type_struct_sockaddr_storage = yes; then
22921 cat >>confdefs.h <<\_ACEOF
22922 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22928 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22929 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
22930 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
22931 echo $ECHO_N "(cached) $ECHO_C" >&6
22933 cat >conftest.$ac_ext <<_ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22940 #ifdef HAVE_NETINET_IN_H
22941 #include <netinet/in.h>
22948 if ((struct sockaddr_in6 *) 0)
22950 if (sizeof (struct sockaddr_in6))
22956 rm -f conftest.$ac_objext
22957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22958 (eval $ac_compile) 2>conftest.er1
22960 grep -v '^ *+' conftest.er1 >conftest.err
22962 cat conftest.err >&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); } &&
22965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967 (eval $ac_try) 2>&5
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); }; } &&
22971 { ac_try='test -s conftest.$ac_objext'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 ac_cv_type_struct_sockaddr_in6=yes
22979 echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22982 ac_cv_type_struct_sockaddr_in6=no
22984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22986 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
22987 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
22988 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
22990 cat >>confdefs.h <<\_ACEOF
22991 #define HAVE_STRUCT_SOCKADDR_IN6 1
22997 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22998 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
22999 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23002 cat >conftest.$ac_ext <<_ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23009 #ifdef HAVE_SYS_TYPES_H
23010 #include <sys/types.h>
23012 #ifdef HAVE_SYS_SOCKET_H
23013 #include <sys/socket.h>
23015 #ifdef HAVE_NETDB_H
23023 if ((struct addrinfo *) 0)
23025 if (sizeof (struct addrinfo))
23031 rm -f conftest.$ac_objext
23032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23033 (eval $ac_compile) 2>conftest.er1
23035 grep -v '^ *+' conftest.er1 >conftest.err
23037 cat conftest.err >&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } &&
23040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest.$ac_objext'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_cv_type_struct_addrinfo=yes
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ac_cv_type_struct_addrinfo=no
23059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23061 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23062 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
23063 if test $ac_cv_type_struct_addrinfo = yes; then
23065 cat >>confdefs.h <<\_ACEOF
23066 #define HAVE_STRUCT_ADDRINFO 1
23131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23132 echo "$as_me:$LINENO: checking for $ac_func" >&5
23133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23134 if eval "test \"\${$as_ac_var+set}\" = set"; then
23135 echo $ECHO_N "(cached) $ECHO_C" >&6
23137 cat >conftest.$ac_ext <<_ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23145 #define $ac_func innocuous_$ac_func
23147 /* System header to define __stub macros and hopefully few prototypes,
23148 which can conflict with char $ac_func (); below.
23149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23150 <limits.h> exists even on freestanding compilers. */
23153 # include <limits.h>
23155 # include <assert.h>
23160 /* Override any gcc2 internal prototype to avoid an error. */
23165 /* We use char because int might match the return type of a gcc2
23166 builtin and then its argument prototype would still apply. */
23168 /* The GNU C library defines this for functions which it implements
23169 to always fail with ENOSYS. Some functions are actually named
23170 something starting with __ and the normal name is an alias. */
23171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23174 char (*f) () = $ac_func;
23183 return f != $ac_func;
23188 rm -f conftest.$ac_objext conftest$ac_exeext
23189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23190 (eval $ac_link) 2>conftest.er1
23192 grep -v '^ *+' conftest.er1 >conftest.err
23194 cat conftest.err >&5
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } &&
23197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199 (eval $ac_try) 2>&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); }; } &&
23203 { ac_try='test -s conftest$ac_exeext'
23204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205 (eval $ac_try) 2>&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; }; then
23209 eval "$as_ac_var=yes"
23211 echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23214 eval "$as_ac_var=no"
23216 rm -f conftest.err conftest.$ac_objext \
23217 conftest$ac_exeext conftest.$ac_ext
23219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23221 if test `eval echo '${'$as_ac_var'}'` = yes; then
23222 cat >>confdefs.h <<_ACEOF
23223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23240 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23241 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
23242 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
23243 echo $ECHO_N "(cached) $ECHO_C" >&6
23245 cat >conftest.$ac_ext <<_ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h. */
23253 #include <string.h>
23254 #ifdef HAVE_UNISTD_H
23255 #include <unistd.h>
23257 #ifdef HAVE_CRYPT_H
23260 #ifdef HAVE_ERRNO_H
23263 #ifdef HAVE_RESOURCE_H
23264 #include <resource.h>
23266 #ifdef HAVE_GETOPT_H
23267 #include <getopt.h>
23269 #ifdef HAVE_MALLOC_H
23270 #include <malloc.h>
23275 #ifdef HAVE_UTMPX_H
23278 #ifdef HAVE_SYS_SELECT_H
23279 #include <sys/select.h>
23281 #ifdef HAVE_DLFCN_H
23284 #ifdef HAVE_REGEX_H
23287 #ifdef HAVE_SYSLOG_H
23288 #include <syslog.h>
23290 #ifdef HAVE_INTTYPES_H
23291 #include <inttypes.h>
23293 #ifdef HAVE_STDINT_H
23294 #include <stdint.h>
23296 #ifdef HAVE_ARPA_INET_H
23297 #include <arpa/inet.h>
23303 char *(*pfn) = (char *(*)) $ac_func
23308 rm -f conftest.$ac_objext
23309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23310 (eval $ac_compile) 2>conftest.er1
23312 grep -v '^ *+' conftest.er1 >conftest.err
23314 cat conftest.err >&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } &&
23317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23319 (eval $ac_try) 2>&5
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); }; } &&
23323 { ac_try='test -s conftest.$ac_objext'
23324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23325 (eval $ac_try) 2>&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); }; }; then
23329 eval "radius_cv_decl_needed_$ac_func=no"
23331 echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23334 eval "radius_cv_decl_needed_$ac_func=yes"
23336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23339 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23340 echo "$as_me:$LINENO: result: yes" >&5
23341 echo "${ECHO_T}yes" >&6
23342 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23343 cat >>confdefs.h <<_ACEOF
23344 #define $radius_tr_decl 1
23348 echo "$as_me:$LINENO: result: no" >&5
23349 echo "${ECHO_T}no" >&6
23355 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23356 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23357 if test "${ac_cv_type_signal+set}" = set; then
23358 echo $ECHO_N "(cached) $ECHO_C" >&6
23360 cat >conftest.$ac_ext <<_ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h. */
23366 #include <sys/types.h>
23367 #include <signal.h>
23372 extern "C" void (*signal (int, void (*)(int)))(int);
23374 void (*signal ()) ();
23385 rm -f conftest.$ac_objext
23386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23387 (eval $ac_compile) 2>conftest.er1
23389 grep -v '^ *+' conftest.er1 >conftest.err
23391 cat conftest.err >&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } &&
23394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; } &&
23400 { ac_try='test -s conftest.$ac_objext'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 ac_cv_type_signal=void
23408 echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23411 ac_cv_type_signal=int
23413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23415 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23416 echo "${ECHO_T}$ac_cv_type_signal" >&6
23418 cat >>confdefs.h <<_ACEOF
23419 #define RETSIGTYPE $ac_cv_type_signal
23424 if test "x$ac_cv_header_utmpx_h" = "xyes"
23427 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23428 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23431 cat >conftest.$ac_ext <<_ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23440 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23446 int foo = offsetof(struct utmpx, ut_xtime)
23451 rm -f conftest.$ac_objext
23452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23453 (eval $ac_compile) 2>conftest.er1
23455 grep -v '^ *+' conftest.er1 >conftest.err
23457 cat conftest.err >&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); } &&
23460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; } &&
23466 { ac_try='test -s conftest.$ac_objext'
23467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468 (eval $ac_try) 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; }; then
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23481 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23482 if test "x$has_element" != "x"; then
23483 echo "$as_me:$LINENO: result: yes" >&5
23484 echo "${ECHO_T}yes" >&6
23485 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23487 echo "$as_me:$LINENO: result: no" >&5
23488 echo "${ECHO_T}no" >&6
23489 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23492 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23495 cat >>confdefs.h <<\_ACEOF
23496 #define ut_xtime ut_tv.tv_sec
23503 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23504 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23507 cat >conftest.$ac_ext <<_ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23514 #include <netinet/in.h>
23516 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23522 int foo = offsetof(struct in_pktinfo, ipi_addr)
23527 rm -f conftest.$ac_objext
23528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23529 (eval $ac_compile) 2>conftest.er1
23531 grep -v '^ *+' conftest.er1 >conftest.err
23533 cat conftest.err >&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); } &&
23536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538 (eval $ac_try) 2>&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; } &&
23542 { ac_try='test -s conftest.$ac_objext'
23543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23544 (eval $ac_try) 2>&5
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); }; }; then
23550 echo "$as_me: failed program was:" >&5
23551 sed 's/^/| /' conftest.$ac_ext >&5
23555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23557 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23558 if test "x$has_element" != "x"; then
23559 echo "$as_me:$LINENO: result: yes" >&5
23560 echo "${ECHO_T}yes" >&6
23561 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23563 echo "$as_me:$LINENO: result: no" >&5
23564 echo "${ECHO_T}no" >&6
23565 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23568 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23571 cat >>confdefs.h <<\_ACEOF
23572 #define HAVE_IP_PKTINFO
23578 echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23579 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6
23582 cat >conftest.$ac_ext <<_ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23589 #include <netinet/in.h>
23591 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23597 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23602 rm -f conftest.$ac_objext
23603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23604 (eval $ac_compile) 2>conftest.er1
23606 grep -v '^ *+' conftest.er1 >conftest.err
23608 cat conftest.err >&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } &&
23611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; } &&
23617 { ac_try='test -s conftest.$ac_objext'
23618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619 (eval $ac_try) 2>&5
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); }; }; then
23625 echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23632 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23633 if test "x$has_element" != "x"; then
23634 echo "$as_me:$LINENO: result: yes" >&5
23635 echo "${ECHO_T}yes" >&6
23636 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23638 echo "$as_me:$LINENO: result: no" >&5
23639 echo "${ECHO_T}no" >&6
23640 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23643 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23646 cat >>confdefs.h <<\_ACEOF
23647 #define HAVE_IN6_PKTINFO
23653 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23654 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23655 if test "${ac_cv_c_const+set}" = set; then
23656 echo $ECHO_N "(cached) $ECHO_C" >&6
23658 cat >conftest.$ac_ext <<_ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h. */
23668 /* FIXME: Include the comments suggested by Paul. */
23669 #ifndef __cplusplus
23670 /* Ultrix mips cc rejects this. */
23671 typedef int charset[2];
23673 /* SunOS 4.1.1 cc rejects this. */
23674 char const *const *ccp;
23676 /* NEC SVR4.0.2 mips cc rejects this. */
23677 struct point {int x, y;};
23678 static struct point const zero = {0,0};
23679 /* AIX XL C 1.02.0.0 rejects this.
23680 It does not let you subtract one const X* pointer from another in
23681 an arm of an if-expression whose if-part is not a constant
23683 const char *g = "string";
23684 ccp = &g + (g ? g-g : 0);
23685 /* HPUX 7.0 cc rejects these. */
23688 ccp = (char const *const *) p;
23689 { /* SCO 3.2v4 cc rejects this. */
23691 char const *s = 0 ? (char *) 0 : (char const *) 0;
23695 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23696 int x[] = {25, 17};
23697 const int *foo = &x[0];
23700 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23701 typedef const int *iptr;
23705 { /* AIX XL C 1.02.0.0 rejects this saying
23706 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23707 struct s { int j; const int *ap[3]; };
23708 struct s *b; b->j = 5;
23710 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23711 const int foo = 10;
23719 rm -f conftest.$ac_objext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23721 (eval $ac_compile) 2>conftest.er1
23723 grep -v '^ *+' conftest.er1 >conftest.err
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } &&
23728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; } &&
23734 { ac_try='test -s conftest.$ac_objext'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }; then
23742 echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23749 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23750 echo "${ECHO_T}$ac_cv_c_const" >&6
23751 if test $ac_cv_c_const = no; then
23753 cat >>confdefs.h <<\_ACEOF
23760 echo "$as_me:$LINENO: checking type of OS" >&5
23761 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
23763 echo "$as_me:$LINENO: result: $OS" >&5
23764 echo "${ECHO_T}$OS" >&6
23765 if test "$OS" = "OS/2"; then
23772 if test "x$GCC" = "xyes"; then
23773 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23776 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23777 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
23778 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23779 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23780 CFLAGS="$CFLAGS $devflags"
23782 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
23783 echo "${ECHO_T}yes. Using $devflags" >&6
23786 CFLAGS="$CFLAGS -DNDEBUG"
23788 echo "$as_me:$LINENO: result: no." >&5
23789 echo "${ECHO_T}no." >&6
23793 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23794 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
23795 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23796 echo $ECHO_N "(cached) $ECHO_C" >&6
23798 ac_check_lib_save_LIBS=$LIBS
23799 LIBS="-lcrypt $LIBS"
23800 cat >conftest.$ac_ext <<_ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23807 /* Override any gcc2 internal prototype to avoid an error. */
23811 /* We use char because int might match the return type of a gcc2
23812 builtin and then its argument prototype would still apply. */
23822 rm -f conftest.$ac_objext conftest$ac_exeext
23823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23824 (eval $ac_link) 2>conftest.er1
23826 grep -v '^ *+' conftest.er1 >conftest.err
23828 cat conftest.err >&5
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } &&
23831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833 (eval $ac_try) 2>&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); }; } &&
23837 { ac_try='test -s conftest$ac_exeext'
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; }; then
23843 ac_cv_lib_crypt_crypt=yes
23845 echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 ac_cv_lib_crypt_crypt=no
23850 rm -f conftest.err conftest.$ac_objext \
23851 conftest$ac_exeext conftest.$ac_ext
23852 LIBS=$ac_check_lib_save_LIBS
23854 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23855 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23856 if test $ac_cv_lib_crypt_crypt = yes; then
23861 if test "$CRYPTLIB" != ""; then
23863 cat >>confdefs.h <<\_ACEOF
23868 echo "$as_me:$LINENO: checking for crypt" >&5
23869 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23870 if test "${ac_cv_func_crypt+set}" = set; then
23871 echo $ECHO_N "(cached) $ECHO_C" >&6
23873 cat >conftest.$ac_ext <<_ACEOF
23876 cat confdefs.h >>conftest.$ac_ext
23877 cat >>conftest.$ac_ext <<_ACEOF
23878 /* end confdefs.h. */
23879 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23881 #define crypt innocuous_crypt
23883 /* System header to define __stub macros and hopefully few prototypes,
23884 which can conflict with char crypt (); below.
23885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23886 <limits.h> exists even on freestanding compilers. */
23889 # include <limits.h>
23891 # include <assert.h>
23896 /* Override any gcc2 internal prototype to avoid an error. */
23901 /* We use char because int might match the return type of a gcc2
23902 builtin and then its argument prototype would still apply. */
23904 /* The GNU C library defines this for functions which it implements
23905 to always fail with ENOSYS. Some functions are actually named
23906 something starting with __ and the normal name is an alias. */
23907 #if defined (__stub_crypt) || defined (__stub___crypt)
23910 char (*f) () = crypt;
23924 rm -f conftest.$ac_objext conftest$ac_exeext
23925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23926 (eval $ac_link) 2>conftest.er1
23928 grep -v '^ *+' conftest.er1 >conftest.err
23930 cat conftest.err >&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); } &&
23933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935 (eval $ac_try) 2>&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; } &&
23939 { ac_try='test -s conftest$ac_exeext'
23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; }; then
23945 ac_cv_func_crypt=yes
23947 echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23950 ac_cv_func_crypt=no
23952 rm -f conftest.err conftest.$ac_objext \
23953 conftest$ac_exeext conftest.$ac_ext
23955 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23956 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23957 if test $ac_cv_func_crypt = yes; then
23959 cat >>confdefs.h <<\_ACEOF
23967 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23968 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23969 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23970 echo $ECHO_N "(cached) $ECHO_C" >&6
23972 ac_check_lib_save_LIBS=$LIBS
23973 LIBS="-lcipher $LIBS"
23974 cat >conftest.$ac_ext <<_ACEOF
23977 cat confdefs.h >>conftest.$ac_ext
23978 cat >>conftest.$ac_ext <<_ACEOF
23979 /* end confdefs.h. */
23981 /* Override any gcc2 internal prototype to avoid an error. */
23985 /* We use char because int might match the return type of a gcc2
23986 builtin and then its argument prototype would still apply. */
23996 rm -f conftest.$ac_objext conftest$ac_exeext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23998 (eval $ac_link) 2>conftest.er1
24000 grep -v '^ *+' conftest.er1 >conftest.err
24002 cat conftest.err >&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } &&
24005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007 (eval $ac_try) 2>&5
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); }; } &&
24011 { ac_try='test -s conftest$ac_exeext'
24012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24013 (eval $ac_try) 2>&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); }; }; then
24017 ac_cv_lib_cipher_setkey=yes
24019 echo "$as_me: failed program was:" >&5
24020 sed 's/^/| /' conftest.$ac_ext >&5
24022 ac_cv_lib_cipher_setkey=no
24024 rm -f conftest.err conftest.$ac_objext \
24025 conftest$ac_exeext conftest.$ac_ext
24026 LIBS=$ac_check_lib_save_LIBS
24028 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24029 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
24030 if test $ac_cv_lib_cipher_setkey = yes; then
24031 CRYPTLIB="${CRYPTLIB} -lcipher"
24037 if test "x$WITH_SNMP" = "xyes"; then
24042 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24043 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
24045 cat >conftest.$ac_ext <<_ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h. */
24052 #ifdef HAVE_SYS_TYPES_H
24053 #include <sys/types.h>
24055 #ifdef HAVE_STDINT_H
24056 #include <stdint.h>
24058 #ifdef HAVE_STDIO_H
24061 #ifdef HAVE_NETDB_H
24064 #ifdef HAVE_UNISTD_H
24065 #include <unistd.h>
24067 #include <ucd-snmp/ucd-snmp-config.h>
24068 #include <ucd-snmp/asn1.h>
24069 #include <ucd-snmp/snmp.h>
24070 #include <ucd-snmp/snmp_impl.h>
24079 rm -f conftest.$ac_objext
24080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24081 (eval $ac_compile) 2>conftest.er1
24083 grep -v '^ *+' conftest.er1 >conftest.err
24085 cat conftest.err >&5
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); } &&
24088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090 (eval $ac_try) 2>&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; } &&
24094 { ac_try='test -s conftest.$ac_objext'
24095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096 (eval $ac_try) 2>&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); }; }; then
24100 SNMP_INCLUDE="";ucdsnmp=yes
24102 echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24109 if test "x$ucdsnmp" = "x"; then
24110 old_CFLAGS="$CFLAGS"
24111 for try in /usr/include /usr/local/include $snmp_include_dir; do
24112 CFLAGS="$old_CFLAGS -I$try"
24113 cat >conftest.$ac_ext <<_ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h. */
24120 #ifdef HAVE_SYS_TYPES_H
24121 #include <sys/types.h>
24123 #ifdef HAVE_STDINT_H
24124 #include <stdint.h>
24126 #ifdef HAVE_STDIO_H
24129 #ifdef HAVE_NETDB_H
24132 #ifdef HAVE_UNISTD_H
24133 #include <unistd.h>
24135 #include <ucd-snmp/ucd-snmp-config.h>
24136 #include <ucd-snmp/asn1.h>
24137 #include <ucd-snmp/snmp.h>
24138 #include <ucd-snmp/snmp_impl.h>
24147 rm -f conftest.$ac_objext
24148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24149 (eval $ac_compile) 2>conftest.er1
24151 grep -v '^ *+' conftest.er1 >conftest.err
24153 cat conftest.err >&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); } &&
24156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158 (eval $ac_try) 2>&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; } &&
24162 { ac_try='test -s conftest.$ac_objext'
24163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164 (eval $ac_try) 2>&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); }; }; then
24168 SNMP_INCLUDE="-I$try";ucdsnmp=yes
24170 echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24176 if test "x$ucdsnmp" != "x"; then
24180 CFLAGS="$old_CFLAGS"
24183 if test "x$ucdsnmp" = "x"; then
24184 old_CFLAGS="$CFLAGS"
24185 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24186 CFLAGS="$old_CFLAGS -I$try"
24187 cat >conftest.$ac_ext <<_ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h. */
24194 #ifdef HAVE_SYS_TYPES_H
24195 #include <sys/types.h>
24197 #ifdef HAVE_STDINT_H
24198 #include <stdint.h>
24200 #ifdef HAVE_STDIO_H
24203 #ifdef HAVE_NETDB_H
24206 #ifdef HAVE_UNISTD_H
24207 #include <unistd.h>
24211 #include <snmp_impl.h>
24220 rm -f conftest.$ac_objext
24221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24222 (eval $ac_compile) 2>conftest.er1
24224 grep -v '^ *+' conftest.er1 >conftest.err
24226 cat conftest.err >&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); } &&
24229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24231 (eval $ac_try) 2>&5
24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); }; } &&
24235 { ac_try='test -s conftest.$ac_objext'
24236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24237 (eval $ac_try) 2>&5
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); }; }; then
24241 SNMP_INCLUDE="";ucdsnmp=no
24243 echo "$as_me: failed program was:" >&5
24244 sed 's/^/| /' conftest.$ac_ext >&5
24248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24249 if test "x$ucdsnmp" != "x"; then
24253 CFLAGS="$old_CFLAGS"
24256 if test "x$ucdsnmp" = "x"; then
24257 old_CFLAGS="$CFLAGS"
24258 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24259 CFLAGS="$old_CFLAGS -I$try"
24260 cat >conftest.$ac_ext <<_ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24267 #ifdef HAVE_SYS_TYPES_H
24268 #include <sys/types.h>
24270 #ifdef HAVE_STDINT_H
24271 #include <stdint.h>
24273 #ifdef HAVE_STDIO_H
24276 #ifdef HAVE_NETDB_H
24279 #ifdef HAVE_UNISTD_H
24280 #include <unistd.h>
24284 #include <snmp_impl.h>
24293 rm -f conftest.$ac_objext
24294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24295 (eval $ac_compile) 2>conftest.er1
24297 grep -v '^ *+' conftest.er1 >conftest.err
24299 cat conftest.err >&5
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); } &&
24302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24304 (eval $ac_try) 2>&5
24306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); }; } &&
24308 { ac_try='test -s conftest.$ac_objext'
24309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310 (eval $ac_try) 2>&5
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); }; }; then
24314 SNMP_INCLUDE="-I$try";ucdsnmp=no
24316 echo "$as_me: failed program was:" >&5
24317 sed 's/^/| /' conftest.$ac_ext >&5
24321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24322 if test "x$ucdsnmp" != "x"; then
24326 CFLAGS="$old_CFLAGS"
24329 if test "x$ucdsnmp" = "x"; then
24330 echo "$as_me:$LINENO: result: no" >&5
24331 echo "${ECHO_T}no" >&6
24333 if test "x$ucdsnmp" = "xyes"; then
24334 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24335 echo "${ECHO_T}(ucd-snmp)yes" >&6
24337 cat >>confdefs.h <<\_ACEOF
24338 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24342 echo "$as_me:$LINENO: result: yes" >&5
24343 echo "${ECHO_T}yes" >&6
24345 cat >>confdefs.h <<\_ACEOF
24346 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24350 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24351 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
24354 LIBS="$old_LIBS -lsnmp"
24355 cat >conftest.$ac_ext <<_ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 extern char snmp_build_var_op();
24365 snmp_build_var_op()
24370 rm -f conftest.$ac_objext conftest$ac_exeext
24371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24372 (eval $ac_link) 2>conftest.er1
24374 grep -v '^ *+' conftest.er1 >conftest.err
24376 cat conftest.err >&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } &&
24379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381 (eval $ac_try) 2>&5
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); }; } &&
24385 { ac_try='test -s conftest$ac_exeext'
24386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387 (eval $ac_try) 2>&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); }; }; then
24393 echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24398 rm -f conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
24401 if test "x$SNMP_LIBS" = "x"; then
24402 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24403 LIBS="$old_LIBS -L$try -lsnmp"
24404 cat >conftest.$ac_ext <<_ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h. */
24410 extern char snmp_build_var_op();
24414 snmp_build_var_op()
24419 rm -f conftest.$ac_objext conftest$ac_exeext
24420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24421 (eval $ac_link) 2>conftest.er1
24423 grep -v '^ *+' conftest.er1 >conftest.err
24425 cat conftest.err >&5
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); } &&
24428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430 (eval $ac_try) 2>&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; } &&
24434 { ac_try='test -s conftest$ac_exeext'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 SNMP_LIBS="-L$try -lsnmp"
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24447 rm -f conftest.err conftest.$ac_objext \
24448 conftest$ac_exeext conftest.$ac_ext
24449 if test "x$SNMP_LIBS" != "x"; then
24452 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24453 cat >conftest.$ac_ext <<_ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h. */
24459 extern char snmp_build_var_op();
24463 snmp_build_var_op()
24468 rm -f conftest.$ac_objext conftest$ac_exeext
24469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24470 (eval $ac_link) 2>conftest.er1
24472 grep -v '^ *+' conftest.er1 >conftest.err
24474 cat conftest.err >&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); } &&
24477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; } &&
24483 { ac_try='test -s conftest$ac_exeext'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; }; then
24489 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24496 rm -f conftest.err conftest.$ac_objext \
24497 conftest$ac_exeext conftest.$ac_ext
24498 if test "x$SNMP_LIBS" != "x"; then
24501 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24502 cat >conftest.$ac_ext <<_ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h. */
24508 extern char snmp_build_var_op();
24512 snmp_build_var_op()
24517 rm -f conftest.$ac_objext conftest$ac_exeext
24518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24519 (eval $ac_link) 2>conftest.er1
24521 grep -v '^ *+' conftest.er1 >conftest.err
24523 cat conftest.err >&5
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); } &&
24526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528 (eval $ac_try) 2>&5
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; } &&
24532 { ac_try='test -s conftest$ac_exeext'
24533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24534 (eval $ac_try) 2>&5
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); }; }; then
24538 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24540 echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24545 rm -f conftest.err conftest.$ac_objext \
24546 conftest$ac_exeext conftest.$ac_ext
24547 if test "x$SNMP_LIBS" != "x"; then
24554 CFLAGS="$old_CFLAGS"
24555 if test "x$SNMP_LIBS" = "x"; then
24556 echo "$as_me:$LINENO: result: no" >&5
24557 echo "${ECHO_T}no" >&6
24560 echo "$as_me:$LINENO: result: yes" >&5
24561 echo "${ECHO_T}yes" >&6
24563 cat >>confdefs.h <<\_ACEOF
24568 cat >>confdefs.h <<\_ACEOF
24569 #define HAVE_LIBSNMP
24578 cat >>confdefs.h <<\_ACEOF
24583 cat >>confdefs.h <<\_ACEOF
24584 #define SYSVSTYLE 2
24588 cat >>confdefs.h <<\_ACEOF
24592 gethostbyaddrrstyle=""
24593 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24594 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24598 cat >>confdefs.h <<\_ACEOF
24599 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24602 gethostbyaddrrstyle=BSD
24603 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24604 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24607 if test "x$gethostbyaddrrstyle" = "x"; then
24608 cat >conftest.$ac_ext <<_ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h. */
24621 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24626 rm -f conftest.$ac_objext conftest$ac_exeext
24627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24628 (eval $ac_link) 2>conftest.er1
24630 grep -v '^ *+' conftest.er1 >conftest.err
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } &&
24635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24637 (eval $ac_try) 2>&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); }; } &&
24641 { ac_try='test -s conftest$ac_exeext'
24642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24643 (eval $ac_try) 2>&5
24645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); }; }; then
24649 cat >>confdefs.h <<\_ACEOF
24650 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24653 gethostbyaddrrstyle=GNU
24656 echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24660 rm -f conftest.err conftest.$ac_objext \
24661 conftest$ac_exeext conftest.$ac_ext
24663 if test "x$gethostbyaddrrstyle" = "x"; then
24664 cat >conftest.$ac_ext <<_ACEOF
24667 cat confdefs.h >>conftest.$ac_ext
24668 cat >>conftest.$ac_ext <<_ACEOF
24669 /* end confdefs.h. */
24677 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24682 rm -f conftest.$ac_objext conftest$ac_exeext
24683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24684 (eval $ac_link) 2>conftest.er1
24686 grep -v '^ *+' conftest.er1 >conftest.err
24688 cat conftest.err >&5
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); } &&
24691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693 (eval $ac_try) 2>&5
24695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696 (exit $ac_status); }; } &&
24697 { ac_try='test -s conftest$ac_exeext'
24698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24699 (eval $ac_try) 2>&5
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); }; }; then
24705 cat >>confdefs.h <<\_ACEOF
24706 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24709 gethostbyaddrrstyle=SYSV
24712 echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24716 rm -f conftest.err conftest.$ac_objext \
24717 conftest$ac_exeext conftest.$ac_ext
24719 if test "x$gethostbyaddrrstyle" = "x"; then
24720 cat >conftest.$ac_ext <<_ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h. */
24733 gethostbyaddr(NULL, 0, 0)
24738 rm -f conftest.$ac_objext conftest$ac_exeext
24739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24740 (eval $ac_link) 2>conftest.er1
24742 grep -v '^ *+' conftest.er1 >conftest.err
24744 cat conftest.err >&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } &&
24747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749 (eval $ac_try) 2>&5
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); }; } &&
24753 { ac_try='test -s conftest$ac_exeext'
24754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755 (eval $ac_try) 2>&5
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); }; }; then
24761 cat >>confdefs.h <<\_ACEOF
24762 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24765 gethostbyaddrrstyle=BSD
24768 echo "$as_me: failed program was:" >&5
24769 sed 's/^/| /' conftest.$ac_ext >&5
24772 rm -f conftest.err conftest.$ac_objext \
24773 conftest$ac_exeext conftest.$ac_ext
24776 if test "x$gethostbyaddrrstyle" = "x"; then
24777 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24778 echo "${ECHO_T}none! It must not exist, here." >&6
24780 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24781 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
24784 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24785 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24786 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24789 gethostbynamerstyle=""
24790 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24791 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
24792 cat >conftest.$ac_ext <<_ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24805 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24810 rm -f conftest.$ac_objext conftest$ac_exeext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24812 (eval $ac_link) 2>conftest.er1
24814 grep -v '^ *+' conftest.er1 >conftest.err
24816 cat conftest.err >&5
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); } &&
24819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24821 (eval $ac_try) 2>&5
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); }; } &&
24825 { ac_try='test -s conftest$ac_exeext'
24826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24827 (eval $ac_try) 2>&5
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); }; }; then
24833 cat >>confdefs.h <<\_ACEOF
24834 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24837 gethostbynamerstyle=GNU
24840 echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24844 rm -f conftest.err conftest.$ac_objext \
24845 conftest$ac_exeext conftest.$ac_ext
24846 if test "x$gethostbynamerstyle" = "x"; then
24847 cat >conftest.$ac_ext <<_ACEOF
24850 cat confdefs.h >>conftest.$ac_ext
24851 cat >>conftest.$ac_ext <<_ACEOF
24852 /* end confdefs.h. */
24860 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24865 rm -f conftest.$ac_objext conftest$ac_exeext
24866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24867 (eval $ac_link) 2>conftest.er1
24869 grep -v '^ *+' conftest.er1 >conftest.err
24871 cat conftest.err >&5
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } &&
24874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876 (eval $ac_try) 2>&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; } &&
24880 { ac_try='test -s conftest$ac_exeext'
24881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882 (eval $ac_try) 2>&5
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); }; }; then
24888 cat >>confdefs.h <<\_ACEOF
24889 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24892 gethostbynamerstyle=SYSV
24895 echo "$as_me: failed program was:" >&5
24896 sed 's/^/| /' conftest.$ac_ext >&5
24899 rm -f conftest.err conftest.$ac_objext \
24900 conftest$ac_exeext conftest.$ac_ext
24902 if test "x$gethostbynamerstyle" = "x"; then
24903 cat >conftest.$ac_ext <<_ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h. */
24916 gethostbyname(NULL)
24921 rm -f conftest.$ac_objext conftest$ac_exeext
24922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24923 (eval $ac_link) 2>conftest.er1
24925 grep -v '^ *+' conftest.er1 >conftest.err
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932 (eval $ac_try) 2>&5
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); }; } &&
24936 { ac_try='test -s conftest$ac_exeext'
24937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938 (eval $ac_try) 2>&5
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; }; then
24944 cat >>confdefs.h <<\_ACEOF
24945 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24948 gethostbynamerstyle=BSD
24951 echo "$as_me: failed program was:" >&5
24952 sed 's/^/| /' conftest.$ac_ext >&5
24955 rm -f conftest.err conftest.$ac_objext \
24956 conftest$ac_exeext conftest.$ac_ext
24959 if test "x$gethostbynamerstyle" = "x"; then
24960 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24961 echo "${ECHO_T}none! It must not exist, here." >&6
24963 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24964 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
24967 if test "x$gethostbynamerstyle" = "xBSD"; then
24968 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24969 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24973 cat >>confdefs.h <<\_ACEOF
24974 #define POSIXSTYLE 1
24978 cat >>confdefs.h <<\_ACEOF
24979 #define SOLARISSTYLE 2
24983 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24984 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
24985 cat >conftest.$ac_ext <<_ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h. */
24997 ctime_r(NULL, NULL, 0)
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25004 (eval $ac_link) 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
25011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013 (eval $ac_try) 2>&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; } &&
25017 { ac_try='test -s conftest$ac_exeext'
25018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; }; then
25025 cat >>confdefs.h <<\_ACEOF
25026 #define CTIMERSTYLE SOLARISSTYLE
25029 ctimerstyle="SOLARIS"
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25036 rm -f conftest.err conftest.$ac_objext \
25037 conftest$ac_exeext conftest.$ac_ext
25038 if test "x$ctimerstyle" = "x"; then
25039 cat >conftest.$ac_ext <<_ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h. */
25051 ctime_r(NULL, NULL)
25056 rm -f conftest.$ac_objext conftest$ac_exeext
25057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25058 (eval $ac_link) 2>conftest.er1
25060 grep -v '^ *+' conftest.er1 >conftest.err
25062 cat conftest.err >&5
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); } &&
25065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067 (eval $ac_try) 2>&5
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); }; } &&
25071 { ac_try='test -s conftest$ac_exeext'
25072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; }; then
25079 cat >>confdefs.h <<\_ACEOF
25080 #define CTIMERSTYLE POSIXSTYLE
25083 ctimerstyle="POSIX"
25086 echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25090 rm -f conftest.err conftest.$ac_objext \
25091 conftest$ac_exeext conftest.$ac_ext
25094 if test "x$ctimerstyle" = "x"; then
25095 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25096 echo "${ECHO_T}none! It must not exist, here." >&6
25098 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25099 echo "${ECHO_T}${ctimerstyle}-style" >&6
25107 export top_builddir
25108 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25109 echo "${ECHO_T}top_builddir=$top_builddir" >&6
25113 if test "x$INCLTDL" != "x";then
25114 INCLTDL='-I${top_builddir}/''libltdl'
25119 mysubdirs="$LIBLTDLPATH"
25120 if test "x$EXPERIMENTAL" = "xyes"; then
25121 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25122 mysubdirs=`echo $mysubdirs $bar`
25124 for bar in `cat "${srcdir}"/src/modules/stable`; do
25125 if test -f "${srcdir}"/src/modules/$bar/configure; then
25126 mysubdirs="$mysubdirs src/modules/$bar"
25132 if test "x$EXPERIMENTAL" = "xyes"; then
25133 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25134 MODULES="$MODULES $foo"
25137 for foo in `cat "${srcdir}"/src/modules/stable`; do
25138 MODULES="$MODULES $foo"
25144 subdirs="$subdirs $mysubdirs"
25149 ac_config_commands="$ac_config_commands stamp-h"
25151 ac_config_commands="$ac_config_commands build-radpaths-h"
25153 ac_config_commands="$ac_config_commands main-chmod"
25155 ac_config_commands="$ac_config_commands scripts-chmod"
25161 USE_SHARED_LIBS=$enable_shared
25163 USE_STATIC_LIBS=$enable_static
25170 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/dictionary ./raddb/radiusd.conf ./raddb/radrelay.conf"
25171 cat >confcache <<\_ACEOF
25172 # This file is a shell script that caches the results of configure
25173 # tests run on this system so they can be shared between configure
25174 # scripts and configure runs, see configure's option --config-cache.
25175 # It is not useful on other systems. If it contains results you don't
25176 # want to keep, you may remove or edit it.
25178 # config.status only pays attention to the cache file if you give it
25179 # the --recheck option to rerun configure.
25181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25183 # following values.
25187 # The following way of writing the cache mishandles newlines in values,
25188 # but we know of no workaround that is simple, portable, and efficient.
25189 # So, don't put newlines in cache variables' values.
25190 # Ultrix sh set writes to stderr and can't be redirected directly,
25191 # and sets the high bit in the cache file unless we assign to the vars.
25194 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25196 # `set' does not quote correctly, so add quotes (double-quote
25197 # substitution turns \\\\ into \\, and sed turns \\ into \).
25200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25203 # `set' quotes correctly as required by POSIX, so do not add quotes.
25205 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25214 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25216 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25217 if test -w $cache_file; then
25218 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25219 cat confcache >$cache_file
25221 echo "not updating unwritable cache $cache_file"
25226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25227 # Let make expand exec_prefix.
25228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25230 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25231 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25232 # trailing colons and then remove the whole line if VPATH becomes empty
25233 # (actually we leave an empty line to preserve line numbers).
25234 if test "x$srcdir" = x.; then
25235 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25236 s/:*\$(srcdir):*/:/;
25237 s/:*\${srcdir}:*/:/;
25239 s/^\([^=]*=[ ]*\):*/\1/;
25245 DEFS=-DHAVE_CONFIG_H
25249 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25250 # 1. Remove the extension, and $U if already installed.
25251 ac_i=`echo "$ac_i" |
25252 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25254 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25255 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25257 LIBOBJS=$ac_libobjs
25259 LTLIBOBJS=$ac_ltlibobjs
25263 : ${CONFIG_STATUS=./config.status}
25264 ac_clean_files_save=$ac_clean_files
25265 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25266 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25267 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25268 cat >$CONFIG_STATUS <<_ACEOF
25270 # Generated by $as_me.
25271 # Run this file to recreate the current configuration.
25272 # Compiler output produced by configure, useful for debugging
25273 # configure, is in config.log if it exists.
25276 ac_cs_recheck=false
25278 SHELL=\${CONFIG_SHELL-$SHELL}
25281 cat >>$CONFIG_STATUS <<\_ACEOF
25282 ## --------------------- ##
25283 ## M4sh Initialization. ##
25284 ## --------------------- ##
25286 # Be Bourne compatible
25287 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25290 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25291 # is contrary to our usage. Disable this feature.
25292 alias -g '${1+"$@"}'='"$@"'
25293 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25296 DUALCASE=1; export DUALCASE # for MKS sh
25298 # Support unset when possible.
25299 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25306 # Work around bugs in pre-3.0 UWIN ksh.
25307 $as_unset ENV MAIL MAILPATH
25314 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25315 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25316 LC_TELEPHONE LC_TIME
25318 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25319 eval $as_var=C; export $as_var
25325 # Required to use basename.
25326 if expr a : '\(a\)' >/dev/null 2>&1; then
25332 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25333 as_basename=basename
25339 # Name of the executable.
25340 as_me=`$as_basename "$0" ||
25341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25342 X"$0" : 'X\(//\)$' \| \
25343 X"$0" : 'X\(/\)$' \| \
25344 . : '\(.\)' 2>/dev/null ||
25346 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25347 /^X\/\(\/\/\)$/{ s//\1/; q; }
25348 /^X\/\(\/\).*/{ s//\1/; q; }
25352 # PATH needs CR, and LINENO needs CR and PATH.
25353 # Avoid depending upon Character Ranges.
25354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25357 as_cr_digits='0123456789'
25358 as_cr_alnum=$as_cr_Letters$as_cr_digits
25360 # The user is always right.
25361 if test "${PATH_SEPARATOR+set}" != set; then
25362 echo "#! /bin/sh" >conf$$.sh
25363 echo "exit 0" >>conf$$.sh
25365 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25374 as_lineno_1=$LINENO
25375 as_lineno_2=$LINENO
25376 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25377 test "x$as_lineno_1" != "x$as_lineno_2" &&
25378 test "x$as_lineno_3" = "x$as_lineno_2" || {
25379 # Find who we are. Look in the path if we contain no path at all
25382 *[\\/]* ) as_myself=$0 ;;
25383 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25384 for as_dir in $PATH
25387 test -z "$as_dir" && as_dir=.
25388 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25393 # We did not find ourselves, most probably we were run as `sh COMMAND'
25394 # in which case we are not to be found in the path.
25395 if test "x$as_myself" = x; then
25398 if test ! -f "$as_myself"; then
25399 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25400 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25401 { (exit 1); exit 1; }; }
25403 case $CONFIG_SHELL in
25405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25406 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25409 test -z "$as_dir" && as_dir=.
25410 for as_base in sh bash ksh sh5; do
25413 if ("$as_dir/$as_base" -c '
25414 as_lineno_1=$LINENO
25415 as_lineno_2=$LINENO
25416 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25417 test "x$as_lineno_1" != "x$as_lineno_2" &&
25418 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25419 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25420 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25421 CONFIG_SHELL=$as_dir/$as_base
25422 export CONFIG_SHELL
25423 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25432 # uniformly replaced by the line number. The first 'sed' inserts a
25433 # line-number line before each line; the second 'sed' does the real
25434 # work. The second script uses 'N' to pair each line-number line
25435 # with the numbered line, and appends trailing '-' during
25436 # substitution so that $LINENO is not a special case at line end.
25437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25438 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25439 sed '=' <$as_myself |
25444 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25447 s,^['$as_cr_digits']*\n,,
25448 ' >$as_me.lineno &&
25449 chmod +x $as_me.lineno ||
25450 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25451 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25452 { (exit 1); exit 1; }; }
25454 # Don't try to exec as it changes $[0], causing all sort of problems
25455 # (the dirname of $[0] is not the place where we might find the
25456 # original and so on. Autoconf is especially sensible to this).
25458 # Exit status is that of the last command.
25463 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25464 *c*,-n*) ECHO_N= ECHO_C='
25466 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25467 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25470 if expr a : '\(a\)' >/dev/null 2>&1; then
25476 rm -f conf$$ conf$$.exe conf$$.file
25478 if ln -s conf$$.file conf$$ 2>/dev/null; then
25479 # We could just check for DJGPP; but this test a) works b) is more generic
25480 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25481 if test -f conf$$.exe; then
25482 # Don't use ln at all; we don't have any links
25487 elif ln conf$$.file conf$$ 2>/dev/null; then
25492 rm -f conf$$ conf$$.exe conf$$.file
25494 if mkdir -p . 2>/dev/null; then
25497 test -d ./-p && rmdir ./-p
25501 as_executable_p="test -f"
25503 # Sed expression to map a string onto a valid CPP name.
25504 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25506 # Sed expression to map a string onto a valid variable name.
25507 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25511 # We need space, tab and new line, in precisely that order.
25521 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25522 # report actual input values of CONFIG_FILES etc. instead of their
25523 # values after options handling. Logging --version etc. is OK.
25527 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25528 ## Running $as_me. ##
25533 This file was extended by $as_me, which was
25534 generated by GNU Autoconf 2.59. Invocation command line was
25536 CONFIG_FILES = $CONFIG_FILES
25537 CONFIG_HEADERS = $CONFIG_HEADERS
25538 CONFIG_LINKS = $CONFIG_LINKS
25539 CONFIG_COMMANDS = $CONFIG_COMMANDS
25543 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25547 # Files that config.status was made for.
25548 if test -n "$ac_config_files"; then
25549 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25552 if test -n "$ac_config_headers"; then
25553 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25556 if test -n "$ac_config_links"; then
25557 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25560 if test -n "$ac_config_commands"; then
25561 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25564 cat >>$CONFIG_STATUS <<\_ACEOF
25567 \`$as_me' instantiates files from templates according to the
25568 current configuration.
25570 Usage: $0 [OPTIONS] [FILE]...
25572 -h, --help print this help, then exit
25573 -V, --version print version number, then exit
25574 -q, --quiet do not print progress messages
25575 -d, --debug don't remove temporary files
25576 --recheck update $as_me by reconfiguring in the same conditions
25577 --file=FILE[:TEMPLATE]
25578 instantiate the configuration file FILE
25579 --header=FILE[:TEMPLATE]
25580 instantiate the configuration header FILE
25582 Configuration files:
25585 Configuration headers:
25588 Configuration commands:
25591 Report bugs to <bug-autoconf@gnu.org>."
25594 cat >>$CONFIG_STATUS <<_ACEOF
25597 configured by $0, generated by GNU Autoconf 2.59,
25598 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25600 Copyright (C) 2003 Free Software Foundation, Inc.
25601 This config.status script is free software; the Free Software Foundation
25602 gives unlimited permission to copy, distribute and modify it."
25606 cat >>$CONFIG_STATUS <<\_ACEOF
25607 # If no file are specified by the user, then we need to provide default
25608 # value. By we need to know if files were specified by the user.
25614 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25615 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25623 *) # This is not an option, so the user has probably given explicit
25626 ac_need_defaults=false;;
25630 # Handling of the options.
25632 cat >>$CONFIG_STATUS <<\_ACEOF
25633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25635 --version | --vers* | -V )
25636 echo "$ac_cs_version"; exit 0 ;;
25638 # Conflict between --help and --header
25639 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25640 Try \`$0 --help' for more information." >&5
25641 echo "$as_me: error: ambiguous option: $1
25642 Try \`$0 --help' for more information." >&2;}
25643 { (exit 1); exit 1; }; };;
25644 --help | --hel | -h )
25645 echo "$ac_cs_usage"; exit 0 ;;
25646 --debug | --d* | -d )
25648 --file | --fil | --fi | --f )
25650 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25651 ac_need_defaults=false;;
25652 --header | --heade | --head | --hea )
25654 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25655 ac_need_defaults=false;;
25656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25660 # This is an error.
25661 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25662 Try \`$0 --help' for more information." >&5
25663 echo "$as_me: error: unrecognized option: $1
25664 Try \`$0 --help' for more information." >&2;}
25665 { (exit 1); exit 1; }; } ;;
25667 *) ac_config_targets="$ac_config_targets $1" ;;
25673 ac_configure_extra_args=
25675 if $ac_cs_silent; then
25677 ac_configure_extra_args="$ac_configure_extra_args --silent"
25681 cat >>$CONFIG_STATUS <<_ACEOF
25682 if \$ac_cs_recheck; then
25683 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25684 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25693 cat >>$CONFIG_STATUS <<\_ACEOF
25694 for ac_config_target in $ac_config_targets
25696 case "$ac_config_target" in
25697 # Handling of arguments.
25698 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25699 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25700 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25701 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25702 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25703 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25704 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25705 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25706 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25707 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25708 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25709 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25710 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25711 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25712 "./raddb/radrelay.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
25713 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25714 "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25715 "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25716 "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25717 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25718 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25719 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25720 { (exit 1); exit 1; }; };;
25724 # If the user did not use the arguments to specify the items to instantiate,
25725 # then the envvar interface is used. Set only those that are not.
25726 # We use the long form for the default assignment because of an extremely
25727 # bizarre bug on SunOS 4.1.3.
25728 if $ac_need_defaults; then
25729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25730 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25734 # Have a temporary directory for convenience. Make it in the build tree
25735 # simply because there is no reason to put it here, and in addition,
25736 # creating and moving files from /tmp can sometimes cause problems.
25737 # Create a temporary directory, and hook for its removal unless debugging.
25740 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25741 trap '{ (exit 1); exit 1; }' 1 2 13 15
25744 # Create a (secure) tmp directory for tmp files.
25747 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25748 test -n "$tmp" && test -d "$tmp"
25751 tmp=./confstat$$-$RANDOM
25752 (umask 077 && mkdir $tmp)
25755 echo "$me: cannot create a temporary directory in ." >&2
25756 { (exit 1); exit 1; }
25761 cat >>$CONFIG_STATUS <<_ACEOF
25764 # CONFIG_FILES section.
25767 # No need to generate the scripts if there are no CONFIG_FILES.
25768 # This happens for instance when ./config.status config.h
25769 if test -n "\$CONFIG_FILES"; then
25770 # Protect against being on the right side of a sed subst in config.status.
25771 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25772 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25773 s,@SHELL@,$SHELL,;t t
25774 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25775 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25776 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25777 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25778 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25779 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25780 s,@exec_prefix@,$exec_prefix,;t t
25781 s,@prefix@,$prefix,;t t
25782 s,@program_transform_name@,$program_transform_name,;t t
25783 s,@bindir@,$bindir,;t t
25784 s,@sbindir@,$sbindir,;t t
25785 s,@libexecdir@,$libexecdir,;t t
25786 s,@datadir@,$datadir,;t t
25787 s,@sysconfdir@,$sysconfdir,;t t
25788 s,@sharedstatedir@,$sharedstatedir,;t t
25789 s,@localstatedir@,$localstatedir,;t t
25790 s,@libdir@,$libdir,;t t
25791 s,@includedir@,$includedir,;t t
25792 s,@oldincludedir@,$oldincludedir,;t t
25793 s,@infodir@,$infodir,;t t
25794 s,@mandir@,$mandir,;t t
25795 s,@build_alias@,$build_alias,;t t
25796 s,@host_alias@,$host_alias,;t t
25797 s,@target_alias@,$target_alias,;t t
25798 s,@DEFS@,$DEFS,;t t
25799 s,@ECHO_C@,$ECHO_C,;t t
25800 s,@ECHO_N@,$ECHO_N,;t t
25801 s,@ECHO_T@,$ECHO_T,;t t
25802 s,@LIBS@,$LIBS,;t t
25804 s,@CFLAGS@,$CFLAGS,;t t
25805 s,@LDFLAGS@,$LDFLAGS,;t t
25806 s,@CPPFLAGS@,$CPPFLAGS,;t t
25807 s,@ac_ct_CC@,$ac_ct_CC,;t t
25808 s,@EXEEXT@,$EXEEXT,;t t
25809 s,@OBJEXT@,$OBJEXT,;t t
25811 s,@CXXFLAGS@,$CXXFLAGS,;t t
25812 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25814 s,@EGREP@,$EGREP,;t t
25815 s,@RANLIB@,$RANLIB,;t t
25816 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25817 s,@GMAKE@,$GMAKE,;t t
25818 s,@MAKE@,$MAKE,;t t
25819 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
25820 s,@LIBTOOL@,$LIBTOOL,;t t
25821 s,@build@,$build,;t t
25822 s,@build_cpu@,$build_cpu,;t t
25823 s,@build_vendor@,$build_vendor,;t t
25824 s,@build_os@,$build_os,;t t
25825 s,@host@,$host,;t t
25826 s,@host_cpu@,$host_cpu,;t t
25827 s,@host_vendor@,$host_vendor,;t t
25828 s,@host_os@,$host_os,;t t
25829 s,@LN_S@,$LN_S,;t t
25830 s,@ECHO@,$ECHO,;t t
25832 s,@ac_ct_AR@,$ac_ct_AR,;t t
25833 s,@STRIP@,$STRIP,;t t
25834 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25835 s,@CXXCPP@,$CXXCPP,;t t
25837 s,@FFLAGS@,$FFLAGS,;t t
25838 s,@ac_ct_F77@,$ac_ct_F77,;t t
25839 s,@logdir@,$logdir,;t t
25840 s,@radacctdir@,$radacctdir,;t t
25841 s,@raddbdir@,$raddbdir,;t t
25842 s,@PERL@,$PERL,;t t
25843 s,@SNMPGET@,$SNMPGET,;t t
25844 s,@SNMPWALK@,$SNMPWALK,;t t
25845 s,@RUSERS@,$RUSERS,;t t
25846 s,@ACLOCAL@,$ACLOCAL,;t t
25847 s,@AUTOCONF@,$AUTOCONF,;t t
25848 s,@AUTOHEADER@,$AUTOHEADER,;t t
25849 s,@LOCATE@,$LOCATE,;t t
25850 s,@DIRNAME@,$DIRNAME,;t t
25851 s,@GREP@,$GREP,;t t
25852 s,@REGEX@,$REGEX,;t t
25853 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25854 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25855 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25856 s,@PCAP_LIBS@,$PCAP_LIBS,;t t
25857 s,@LIBPREFIX@,$LIBPREFIX,;t t
25858 s,@CRYPTLIB@,$CRYPTLIB,;t t
25859 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25860 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25861 s,@HOSTINFO@,$HOSTINFO,;t t
25862 s,@LIBLTDL@,$LIBLTDL,;t t
25863 s,@INCLTDL@,$INCLTDL,;t t
25864 s,@subdirs@,$subdirs,;t t
25865 s,@MODULES@,$MODULES,;t t
25866 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25867 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25868 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25869 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25870 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25871 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25872 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25873 s,@LIBOBJS@,$LIBOBJS,;t t
25874 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25879 cat >>$CONFIG_STATUS <<\_ACEOF
25880 # Split the substitutions into bite-sized pieces for seds with
25881 # small command number limits, like on Digital OSF/1 and HP-UX.
25882 ac_max_sed_lines=48
25883 ac_sed_frag=1 # Number of current file.
25884 ac_beg=1 # First line for current file.
25885 ac_end=$ac_max_sed_lines # Line after last line for current file.
25888 while $ac_more_lines; do
25889 if test $ac_beg -gt 1; then
25890 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25892 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25894 if test ! -s $tmp/subs.frag; then
25895 ac_more_lines=false
25897 # The purpose of the label and of the branching condition is to
25898 # speed up the sed processing (if there are no `@' at all, there
25899 # is no need to browse any of the substitutions).
25900 # These are the two extra sed commands mentioned above.
25902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25903 if test -z "$ac_sed_cmds"; then
25904 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25906 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25908 ac_sed_frag=`expr $ac_sed_frag + 1`
25910 ac_end=`expr $ac_end + $ac_max_sed_lines`
25913 if test -z "$ac_sed_cmds"; then
25916 fi # test -n "$CONFIG_FILES"
25919 cat >>$CONFIG_STATUS <<\_ACEOF
25920 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25923 - | *:- | *:-:* ) # input from stdin
25925 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25927 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25929 * ) ac_file_in=$ac_file.in ;;
25932 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25933 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25935 X"$ac_file" : 'X\(//\)[^/]' \| \
25936 X"$ac_file" : 'X\(//\)$' \| \
25937 X"$ac_file" : 'X\(/\)' \| \
25938 . : '\(.\)' 2>/dev/null ||
25940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25942 /^X\(\/\/\)$/{ s//\1/; q; }
25943 /^X\(\/\).*/{ s//\1/; q; }
25945 { if $as_mkdir_p; then
25950 while test ! -d "$as_dir"; do
25951 as_dirs="$as_dir $as_dirs"
25952 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25954 X"$as_dir" : 'X\(//\)[^/]' \| \
25955 X"$as_dir" : 'X\(//\)$' \| \
25956 X"$as_dir" : 'X\(/\)' \| \
25957 . : '\(.\)' 2>/dev/null ||
25959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25961 /^X\(\/\/\)$/{ s//\1/; q; }
25962 /^X\(\/\).*/{ s//\1/; q; }
25965 test ! -n "$as_dirs" || mkdir $as_dirs
25966 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25967 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25968 { (exit 1); exit 1; }; }; }
25972 if test "$ac_dir" != .; then
25973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25974 # A "../" for each directory in $ac_dir_suffix.
25975 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25977 ac_dir_suffix= ac_top_builddir=
25981 .) # No --srcdir option. We are building in place.
25983 if test -z "$ac_top_builddir"; then
25986 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25988 [\\/]* | ?:[\\/]* ) # Absolute path.
25989 ac_srcdir=$srcdir$ac_dir_suffix;
25990 ac_top_srcdir=$srcdir ;;
25991 *) # Relative path.
25992 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25993 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25996 # Do not use `cd foo && pwd` to compute absolute paths, because
25997 # the directories may not exist.
25999 .) ac_abs_builddir="$ac_dir";;
26002 .) ac_abs_builddir=`pwd`;;
26003 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26004 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26007 case $ac_abs_builddir in
26008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26010 case ${ac_top_builddir}. in
26011 .) ac_abs_top_builddir=$ac_abs_builddir;;
26012 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26013 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26016 case $ac_abs_builddir in
26017 .) ac_abs_srcdir=$ac_srcdir;;
26020 .) ac_abs_srcdir=$ac_abs_builddir;;
26021 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26022 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26025 case $ac_abs_builddir in
26026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26028 case $ac_top_srcdir in
26029 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26030 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26031 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26037 # Let's still pretend it is `configure' which instantiates (i.e., don't
26038 # use $as_me), people would be surprised to read:
26039 # /* config.h. Generated by config.status. */
26040 if test x"$ac_file" = x-; then
26043 configure_input="$ac_file. "
26045 configure_input=$configure_input"Generated from `echo $ac_file_in |
26046 sed 's,.*/,,'` by configure."
26048 # First look for the input files in the build tree, otherwise in the
26050 ac_file_inputs=`IFS=:
26051 for f in $ac_file_in; do
26053 -) echo $tmp/stdin ;;
26055 # Absolute (can't be DOS-style, as IFS=:)
26056 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26057 echo "$as_me: error: cannot find input file: $f" >&2;}
26058 { (exit 1); exit 1; }; }
26061 if test -f "$f"; then
26064 elif test -f "$srcdir/$f"; then
26069 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26070 echo "$as_me: error: cannot find input file: $f" >&2;}
26071 { (exit 1); exit 1; }; }
26074 done` || { (exit 1); exit 1; }
26076 if test x"$ac_file" != x-; then
26077 { echo "$as_me:$LINENO: creating $ac_file" >&5
26078 echo "$as_me: creating $ac_file" >&6;}
26082 cat >>$CONFIG_STATUS <<_ACEOF
26086 cat >>$CONFIG_STATUS <<\_ACEOF
26088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26089 s,@configure_input@,$configure_input,;t t
26090 s,@srcdir@,$ac_srcdir,;t t
26091 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26092 s,@top_srcdir@,$ac_top_srcdir,;t t
26093 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26094 s,@builddir@,$ac_builddir,;t t
26095 s,@abs_builddir@,$ac_abs_builddir,;t t
26096 s,@top_builddir@,$ac_top_builddir,;t t
26097 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26098 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26100 if test x"$ac_file" != x-; then
26101 mv $tmp/out $ac_file
26109 cat >>$CONFIG_STATUS <<\_ACEOF
26112 # CONFIG_HEADER section.
26115 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26116 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26118 # ac_d sets the value in "#define NAME VALUE" lines.
26119 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26120 ac_dB='[ ].*$,\1#\2'
26123 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26124 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26125 ac_uB='$,\1#\2define\3'
26129 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26132 - | *:- | *:-:* ) # input from stdin
26134 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26136 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26138 * ) ac_file_in=$ac_file.in ;;
26141 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26142 echo "$as_me: creating $ac_file" >&6;}
26144 # First look for the input files in the build tree, otherwise in the
26146 ac_file_inputs=`IFS=:
26147 for f in $ac_file_in; do
26149 -) echo $tmp/stdin ;;
26151 # Absolute (can't be DOS-style, as IFS=:)
26152 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26153 echo "$as_me: error: cannot find input file: $f" >&2;}
26154 { (exit 1); exit 1; }; }
26155 # Do quote $f, to prevent DOS paths from being IFS'd.
26158 if test -f "$f"; then
26161 elif test -f "$srcdir/$f"; then
26166 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26167 echo "$as_me: error: cannot find input file: $f" >&2;}
26168 { (exit 1); exit 1; }; }
26171 done` || { (exit 1); exit 1; }
26172 # Remove the trailing spaces.
26173 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26177 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26178 # `conftest.undefs', that substitutes the proper values into
26179 # config.h.in to produce config.h. The first handles `#define'
26180 # templates, and the second `#undef' templates.
26181 # And first: Protect against being on the right side of a sed subst in
26182 # config.status. Protect against being in an unquoted here document
26183 # in config.status.
26184 rm -f conftest.defines conftest.undefs
26185 # Using a here document instead of a string reduces the quoting nightmare.
26186 # Putting comments in sed scripts is not portable.
26188 # `end' is used to avoid that the second main sed command (meant for
26189 # 0-ary CPP macros) applies to n-ary macro definitions.
26190 # See the Autoconf documentation for `clear'.
26191 cat >confdef2sed.sed <<\_ACEOF
26196 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26198 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26201 # If some macros were called several times there might be several times
26202 # the same #defines, which is useless. Nevertheless, we may not want to
26203 # sort them, since we want the *last* AC-DEFINE to be honored.
26204 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26205 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26206 rm -f confdef2sed.sed
26208 # This sed command replaces #undef with comments. This is necessary, for
26209 # example, in the case of _POSIX_SOURCE, which is predefined and required
26210 # on some systems where configure will not decide to define it.
26211 cat >>conftest.undefs <<\_ACEOF
26212 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26215 # Break up conftest.defines because some shells have a limit on the size
26216 # of here documents, and old seds have small limits too (100 cmds).
26217 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26218 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26219 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26220 echo ' :' >>$CONFIG_STATUS
26221 rm -f conftest.tail
26222 while grep . conftest.defines >/dev/null
26224 # Write a limited-size here document to $tmp/defines.sed.
26225 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26226 # Speed up: don't consider the non `#define' lines.
26227 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26228 # Work around the forget-to-reset-the-flag bug.
26229 echo 't clr' >>$CONFIG_STATUS
26230 echo ': clr' >>$CONFIG_STATUS
26231 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26233 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26235 mv $tmp/out $tmp/in
26237 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26238 rm -f conftest.defines
26239 mv conftest.tail conftest.defines
26241 rm -f conftest.defines
26242 echo ' fi # grep' >>$CONFIG_STATUS
26243 echo >>$CONFIG_STATUS
26245 # Break up conftest.undefs because some shells have a limit on the size
26246 # of here documents, and old seds have small limits too (100 cmds).
26247 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26248 rm -f conftest.tail
26249 while grep . conftest.undefs >/dev/null
26251 # Write a limited-size here document to $tmp/undefs.sed.
26252 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26253 # Speed up: don't consider the non `#undef'
26254 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26255 # Work around the forget-to-reset-the-flag bug.
26256 echo 't clr' >>$CONFIG_STATUS
26257 echo ': clr' >>$CONFIG_STATUS
26258 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26260 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26262 mv $tmp/out $tmp/in
26264 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26265 rm -f conftest.undefs
26266 mv conftest.tail conftest.undefs
26268 rm -f conftest.undefs
26270 cat >>$CONFIG_STATUS <<\_ACEOF
26271 # Let's still pretend it is `configure' which instantiates (i.e., don't
26272 # use $as_me), people would be surprised to read:
26273 # /* config.h. Generated by config.status. */
26274 if test x"$ac_file" = x-; then
26275 echo "/* Generated by configure. */" >$tmp/config.h
26277 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26279 cat $tmp/in >>$tmp/config.h
26281 if test x"$ac_file" != x-; then
26282 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26283 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26284 echo "$as_me: $ac_file is unchanged" >&6;}
26286 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26288 X"$ac_file" : 'X\(//\)[^/]' \| \
26289 X"$ac_file" : 'X\(//\)$' \| \
26290 X"$ac_file" : 'X\(/\)' \| \
26291 . : '\(.\)' 2>/dev/null ||
26293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26295 /^X\(\/\/\)$/{ s//\1/; q; }
26296 /^X\(\/\).*/{ s//\1/; q; }
26298 { if $as_mkdir_p; then
26303 while test ! -d "$as_dir"; do
26304 as_dirs="$as_dir $as_dirs"
26305 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26307 X"$as_dir" : 'X\(//\)[^/]' \| \
26308 X"$as_dir" : 'X\(//\)$' \| \
26309 X"$as_dir" : 'X\(/\)' \| \
26310 . : '\(.\)' 2>/dev/null ||
26312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26314 /^X\(\/\/\)$/{ s//\1/; q; }
26315 /^X\(\/\).*/{ s//\1/; q; }
26318 test ! -n "$as_dirs" || mkdir $as_dirs
26319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26321 { (exit 1); exit 1; }; }; }
26324 mv $tmp/config.h $ac_file
26328 rm -f $tmp/config.h
26332 cat >>$CONFIG_STATUS <<\_ACEOF
26335 # CONFIG_COMMANDS section.
26337 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26338 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26339 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26340 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26341 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26342 X"$ac_dest" : 'X\(//\)[^/]' \| \
26343 X"$ac_dest" : 'X\(//\)$' \| \
26344 X"$ac_dest" : 'X\(/\)' \| \
26345 . : '\(.\)' 2>/dev/null ||
26347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26349 /^X\(\/\/\)$/{ s//\1/; q; }
26350 /^X\(\/\).*/{ s//\1/; q; }
26352 { if $as_mkdir_p; then
26357 while test ! -d "$as_dir"; do
26358 as_dirs="$as_dir $as_dirs"
26359 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26361 X"$as_dir" : 'X\(//\)[^/]' \| \
26362 X"$as_dir" : 'X\(//\)$' \| \
26363 X"$as_dir" : 'X\(/\)' \| \
26364 . : '\(.\)' 2>/dev/null ||
26366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26368 /^X\(\/\/\)$/{ s//\1/; q; }
26369 /^X\(\/\).*/{ s//\1/; q; }
26372 test ! -n "$as_dirs" || mkdir $as_dirs
26373 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26374 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26375 { (exit 1); exit 1; }; }; }
26379 if test "$ac_dir" != .; then
26380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26381 # A "../" for each directory in $ac_dir_suffix.
26382 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26384 ac_dir_suffix= ac_top_builddir=
26388 .) # No --srcdir option. We are building in place.
26390 if test -z "$ac_top_builddir"; then
26393 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26395 [\\/]* | ?:[\\/]* ) # Absolute path.
26396 ac_srcdir=$srcdir$ac_dir_suffix;
26397 ac_top_srcdir=$srcdir ;;
26398 *) # Relative path.
26399 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26400 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26403 # Do not use `cd foo && pwd` to compute absolute paths, because
26404 # the directories may not exist.
26406 .) ac_abs_builddir="$ac_dir";;
26409 .) ac_abs_builddir=`pwd`;;
26410 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26411 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26414 case $ac_abs_builddir in
26415 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26417 case ${ac_top_builddir}. in
26418 .) ac_abs_top_builddir=$ac_abs_builddir;;
26419 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26420 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26423 case $ac_abs_builddir in
26424 .) ac_abs_srcdir=$ac_srcdir;;
26427 .) ac_abs_srcdir=$ac_abs_builddir;;
26428 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26429 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26432 case $ac_abs_builddir in
26433 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26435 case $ac_top_srcdir in
26436 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26437 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26438 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26443 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26444 echo "$as_me: executing $ac_dest commands" >&6;}
26446 stamp-h ) echo timestamp > src/include/stamp-h ;;
26447 build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26448 main-chmod ) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26449 scripts-chmod ) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26454 cat >>$CONFIG_STATUS <<\_ACEOF
26456 { (exit 0); exit 0; }
26458 chmod +x $CONFIG_STATUS
26459 ac_clean_files=$ac_clean_files_save
26462 # configure is writing to config.log, and then calls config.status.
26463 # config.status does its own redirection, appending to config.log.
26464 # Unfortunately, on DOS this fails, as config.log is still kept open
26465 # by configure, so config.status won't be able to write to it; its
26466 # output is simply discarded. So we exec the FD to /dev/null,
26467 # effectively closing config.log, so it can be properly (re)opened and
26468 # appended to by config.status. When coming back to configure, we
26469 # need to make the FD available again.
26470 if test "$no_create" != yes; then
26472 ac_config_status_args=
26473 test "$silent" = yes &&
26474 ac_config_status_args="$ac_config_status_args --quiet"
26476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26479 # would make configure fail if this is the last instruction.
26480 $ac_cs_success || { (exit 1); exit 1; }
26484 # CONFIG_SUBDIRS section.
26486 if test "$no_recursion" != yes; then
26488 # Remove --cache-file and --srcdir arguments so they do not pile up.
26489 ac_sub_configure_args=
26491 for ac_arg in $ac_configure_args; do
26492 if test -n "$ac_prev"; then
26497 -cache-file | --cache-file | --cache-fil | --cache-fi \
26498 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26499 ac_prev=cache_file ;;
26500 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26501 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26504 --config-cache | -C)
26506 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26508 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26510 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26512 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26514 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26518 # Always prepend --prefix to ensure using the same prefix
26519 # in subdir configurations.
26520 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26523 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26525 # Do not complain, so a configure script can configure whichever
26526 # parts of a large source tree are present.
26527 test -d $srcdir/$ac_dir || continue
26529 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26530 echo "$as_me: configuring in $ac_dir" >&6;}
26531 { if $as_mkdir_p; then
26536 while test ! -d "$as_dir"; do
26537 as_dirs="$as_dir $as_dirs"
26538 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26540 X"$as_dir" : 'X\(//\)[^/]' \| \
26541 X"$as_dir" : 'X\(//\)$' \| \
26542 X"$as_dir" : 'X\(/\)' \| \
26543 . : '\(.\)' 2>/dev/null ||
26545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26547 /^X\(\/\/\)$/{ s//\1/; q; }
26548 /^X\(\/\).*/{ s//\1/; q; }
26551 test ! -n "$as_dirs" || mkdir $as_dirs
26552 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26553 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26554 { (exit 1); exit 1; }; }; }
26558 if test "$ac_dir" != .; then
26559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26560 # A "../" for each directory in $ac_dir_suffix.
26561 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26563 ac_dir_suffix= ac_top_builddir=
26567 .) # No --srcdir option. We are building in place.
26569 if test -z "$ac_top_builddir"; then
26572 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26574 [\\/]* | ?:[\\/]* ) # Absolute path.
26575 ac_srcdir=$srcdir$ac_dir_suffix;
26576 ac_top_srcdir=$srcdir ;;
26577 *) # Relative path.
26578 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26579 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26582 # Do not use `cd foo && pwd` to compute absolute paths, because
26583 # the directories may not exist.
26585 .) ac_abs_builddir="$ac_dir";;
26588 .) ac_abs_builddir=`pwd`;;
26589 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26590 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26593 case $ac_abs_builddir in
26594 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26596 case ${ac_top_builddir}. in
26597 .) ac_abs_top_builddir=$ac_abs_builddir;;
26598 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26599 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26602 case $ac_abs_builddir in
26603 .) ac_abs_srcdir=$ac_srcdir;;
26606 .) ac_abs_srcdir=$ac_abs_builddir;;
26607 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26608 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26611 case $ac_abs_builddir in
26612 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26614 case $ac_top_srcdir in
26615 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26616 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26617 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26624 # Check for guested configure; otherwise get Cygnus style configure.
26625 if test -f $ac_srcdir/configure.gnu; then
26626 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26627 elif test -f $ac_srcdir/configure; then
26628 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26629 elif test -f $ac_srcdir/configure.in; then
26630 ac_sub_configure=$ac_configure
26632 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26633 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26637 # The recursion is here.
26638 if test -n "$ac_sub_configure"; then
26639 # Make the cache file name correct relative to the subdirectory.
26640 case $cache_file in
26641 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26642 *) # Relative path.
26643 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26646 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26647 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26648 # The eval makes quoting arguments work.
26649 eval $ac_sub_configure $ac_sub_configure_args \
26650 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26651 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26652 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26653 { (exit 1); exit 1; }; }