2 # From configure.in Revision: 1.231 .
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 docdir 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-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1044 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1045 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1046 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1047 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1048 --with-threads Use threads, if available. (default=yes)
1049 --with-snmp Compile in SNMP support. (default=yes)
1050 --with-static-modules=QUOTED-MODULE-LIST
1051 --with-modules=QUOTED-MODULE-LIST
1052 --with-experimental-modules Use experimental and unstable modules. (default=no)
1053 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1054 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1055 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1056 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1057 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1059 Some influential environment variables:
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
1066 CXX C++ compiler command
1067 CXXFLAGS C++ compiler flags
1069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1079 if test "$ac_init_help" = "recursive"; then
1080 # If there are subdirs, report their specific --help.
1082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083 test -d $ac_dir || continue
1086 if test "$ac_dir" != .; then
1087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088 # A "../" for each directory in $ac_dir_suffix.
1089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 ac_dir_suffix= ac_top_builddir=
1095 .) # No --srcdir option. We are building in place.
1097 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 [\\/]* | ?:[\\/]* ) # Absolute path.
1103 ac_srcdir=$srcdir$ac_dir_suffix;
1104 ac_top_srcdir=$srcdir ;;
1106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1113 .) ac_abs_builddir="$ac_dir";;
1116 .) ac_abs_builddir=`pwd`;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 case ${ac_top_builddir}. in
1125 .) ac_abs_top_builddir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1134 .) ac_abs_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 case $ac_top_srcdir in
1143 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 # Check for guested configure; otherwise get Cygnus style configure.
1151 if test -f $ac_srcdir/configure.gnu; then
1153 $SHELL $ac_srcdir/configure.gnu --help=recursive
1154 elif test -f $ac_srcdir/configure; then
1156 $SHELL $ac_srcdir/configure --help=recursive
1157 elif test -f $ac_srcdir/configure.ac ||
1158 test -f $ac_srcdir/configure.in; then
1160 $ac_configure --help
1162 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1183 It was created by $as_me, which was
1184 generated by GNU Autoconf 2.59. Invocation command line was
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1204 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1205 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1208 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1209 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1210 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1218 test -z "$as_dir" && as_dir=.
1219 echo "PATH: $as_dir"
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1243 ac_must_keep_next=false
1249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1257 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1259 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260 if test $ac_must_keep_next = true; then
1261 ac_must_keep_next=false # Got value, back to normal.
1264 *=* | --config-cache | -C | -disable-* | --disable-* \
1265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267 | -with-* | --with-* | -without-* | --without-* | --x)
1268 case "$ac_configure_args0 " in
1269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1272 -* ) ac_must_keep_next=true ;;
1275 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276 # Get rid of the leading space.
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log. We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291 # Save into config.log some information that might help in debugging.
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1301 # The following way of writing the cache mishandles newlines in values,
1304 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1307 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1324 for ac_var in $ac_subst_vars
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1331 if test -n "$ac_subst_files"; then
1338 for ac_var in $ac_subst_files
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1346 if test -s confdefs.h; then
1353 sed "/^$/d" confdefs.h | sort
1356 test "$ac_signal" != 0 &&
1357 echo "$as_me: caught signal $ac_signal"
1358 echo "$as_me: exit $exit_status"
1360 rm -f core *.core &&
1361 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1364 for ac_signal in 1 2 13 15; do
1365 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1374 # Predefined preprocessor variables.
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404 if test "x$prefix" != xNONE; then
1405 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1407 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1410 for ac_site_file in $CONFIG_SITE; do
1411 if test -r "$ac_site_file"; then
1412 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414 sed 's/^/| /' "$ac_site_file" >&5
1419 if test -r "$cache_file"; then
1420 # Some versions of bash will fail to source /dev/null (special
1421 # files actually), so we avoid doing that.
1422 if test -f "$cache_file"; then
1423 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1426 [\\/]* | ?:[\\/]* ) . $cache_file;;
1427 *) . ./$cache_file;;
1431 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1436 # Check that the precious variables saved in the cache have kept the same
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442 eval ac_new_set=\$ac_env_${ac_var}_set
1443 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444 eval ac_new_val="\$ac_env_${ac_var}_value"
1445 case $ac_old_set,$ac_new_set in
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1456 if test "x$ac_old_val" != "x$ac_new_val"; then
1457 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1460 echo "$as_me: former value: $ac_old_val" >&2;}
1461 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1462 echo "$as_me: current value: $ac_new_val" >&2;}
1463 ac_cache_corrupted=:
1466 # Pass precious variables to config.status.
1467 if test "$ac_new_set" = set; then
1469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471 *) ac_arg=$ac_var=$ac_new_val ;;
1473 case " $ac_configure_args " in
1474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1475 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1479 if $ac_cache_corrupted; then
1480 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484 { (exit 1); exit 1; }; }
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1514 RADIUSD_MAJOR_VERSION=2
1515 RADIUSD_MINOR_VERSION=0.0-pre0
1516 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 if test -n "$ac_tool_prefix"; then
1526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 if test -n "$CC"; then
1554 echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1562 if test -z "$ac_cv_prog_CC"; then
1564 # Extract the first word of "gcc", so it can be a program name with args.
1565 set dummy gcc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 if test -n "$ac_ct_CC"; then
1572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_ac_ct_CC="gcc"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1604 if test -z "$CC"; then
1605 if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1642 if test -z "$ac_cv_prog_CC"; then
1644 # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="cc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1685 if test -z "$CC"; then
1686 # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1705 ac_prog_rejected=yes
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test $ac_prog_rejected = yes; then
1716 # We found a bogon in the path, so make sure we never use it.
1717 set dummy $ac_cv_prog_CC
1719 if test $# != 0; then
1720 # We chose a different compiler from the bogus one.
1721 # However, it has the same basename, so the bogon will be chosen
1722 # first if we set CC to just the basename; use the full file name.
1724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1730 if test -n "$CC"; then
1731 echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1739 if test -z "$CC"; then
1740 if test -n "$ac_tool_prefix"; then
1743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 if test -n "$CC"; then
1751 ac_cv_prog_CC="$CC" # Let the user override the test.
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 if test -n "$CC"; then
1771 echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1778 test -n "$CC" && break
1781 if test -z "$CC"; then
1785 # Extract the first word of "$ac_prog", so it can be a program name with args.
1786 set dummy $ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 if test -n "$ac_ct_CC"; then
1793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 test -z "$as_dir" && as_dir=.
1800 for ac_exec_ext in '' $ac_executable_extensions; do
1801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802 ac_cv_prog_ac_ct_CC="$ac_prog"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812 if test -n "$ac_ct_CC"; then
1813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814 echo "${ECHO_T}$ac_ct_CC" >&6
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1820 test -n "$ac_ct_CC" && break
1829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&2;}
1833 { (exit 1); exit 1; }; }
1835 # Provide some information about the compiler.
1836 echo "$as_me:$LINENO:" \
1837 "checking for C compiler version" >&5
1838 ac_compiler=`set X $ac_compile; echo $2`
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1840 (eval $ac_compiler --version </dev/null >&5) 2>&5
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1845 (eval $ac_compiler -v </dev/null >&5) 2>&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1850 (eval $ac_compiler -V </dev/null >&5) 2>&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }
1855 cat >conftest.$ac_ext <<_ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h. */
1870 ac_clean_files_save=$ac_clean_files
1871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1872 # Try to create an executable without -o first, disregard a.out.
1873 # It will help us diagnose broken compilers, and finding out an intuition
1875 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1876 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1879 (eval $ac_link_default) 2>&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # Find the output, starting from the most likely. This scheme is
1884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1887 # Be careful to initialize this variable, since it used to be cached.
1888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890 # b.out is created by i960 compilers.
1891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893 test -f "$ac_file" || continue
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1898 # This is the source file.
1901 # We found the default executable, but exeext='' is most
1905 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906 # FIXME: I believe we export ac_cv_exeext for Libtool,
1907 # but it would be cool to find out if it's true. Does anybody
1908 # maintain Libtool? --akim.
1916 echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: C compiler cannot create executables
1922 See \`config.log' for more details." >&2;}
1923 { (exit 77); exit 77; }; }
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1930 # Check the compiler produces executables we can run. If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937 if { ac_try='./$ac_file'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1945 if test "$cross_compiling" = maybe; then
1948 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'.
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1958 echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run. If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1973 (eval $ac_link) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; then
1977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1981 for ac_file in conftest.exe conftest conftest.*; do
1982 test -f "$ac_file" || continue
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1992 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1995 See \`config.log' for more details." >&2;}
1996 { (exit 1); exit 1; }; }
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h. */
2026 rm -f conftest.o conftest.obj
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; then
2032 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040 echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&2;}
2047 { (exit 1); exit 1; }; }
2050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2053 echo "${ECHO_T}$ac_cv_objext" >&6
2054 OBJEXT=$ac_cv_objext
2056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.$ac_ext <<_ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2079 rm -f conftest.$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081 (eval $ac_compile) 2>conftest.er1
2083 grep -v '^ *+' conftest.er1 >conftest.err
2085 cat conftest.err >&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); } &&
2088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS=${CFLAGS+set}
2115 ac_save_CFLAGS=$CFLAGS
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2141 grep -v '^ *+' conftest.er1 >conftest.err
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2168 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2169 if test "$ac_test_CFLAGS" = set; then
2170 CFLAGS=$ac_save_CFLAGS
2171 elif test $ac_cv_prog_cc_g = yes; then
2172 if test "$GCC" = yes; then
2178 if test "$GCC" = yes; then
2184 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2185 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2186 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 ac_cv_prog_cc_stdc=no
2191 cat >conftest.$ac_ext <<_ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2199 #include <sys/types.h>
2200 #include <sys/stat.h>
2201 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2202 struct buf { int x; };
2203 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2204 static char *e (p, i)
2210 static char *f (char * (*g) (char **, int), char **p, ...)
2215 s = g (p, va_arg (v,int));
2220 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2221 function prototypes and stuff, but not '\xHH' hex character constants.
2222 These don't provoke an error unfortunately, instead are silently treated
2223 as 'x'. The following induces an error, until -std1 is added to get
2224 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2225 array size at least. It's necessary to write '\x00'==0 to get something
2226 that's true only with -std1. */
2227 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2229 int test (int i, double x);
2230 struct s1 {int (*f) (int a);};
2231 struct s2 {int (*f) (double a);};
2232 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2238 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2243 # Don't try gcc -ansi; that turns off useful extensions and
2244 # breaks some systems' header files.
2245 # AIX -qlanglvl=ansi
2246 # Ultrix and OSF/1 -std1
2247 # HP-UX 10.20 and later -Ae
2248 # HP-UX older versions -Aa -D_HPUX_SOURCE
2249 # SVR4 -Xc -D__EXTENSIONS__
2250 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2252 CC="$ac_save_CC $ac_arg"
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2257 grep -v '^ *+' conftest.er1 >conftest.err
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2274 ac_cv_prog_cc_stdc=$ac_arg
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f conftest.err conftest.$ac_objext
2283 rm -f conftest.$ac_ext conftest.$ac_objext
2288 case "x$ac_cv_prog_cc_stdc" in
2290 echo "$as_me:$LINENO: result: none needed" >&5
2291 echo "${ECHO_T}none needed" >&6 ;;
2293 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2294 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2295 CC="$CC $ac_cv_prog_cc_stdc" ;;
2298 # Some people use a C++ compiler to compile C. Since we use `exit',
2299 # in C++ we need to declare it. In case someone uses the same compiler
2300 # for both compiling C and C++ we need to have the C++ compiler decide
2301 # the declaration of exit, since it's the most demanding environment.
2302 cat >conftest.$ac_ext <<_ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2311 grep -v '^ *+' conftest.er1 >conftest.err
2313 cat conftest.err >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; } &&
2322 { ac_try='test -s conftest.$ac_objext'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2328 for ac_declaration in \
2330 'extern "C" void std::exit (int) throw (); using std::exit;' \
2331 'extern "C" void std::exit (int); using std::exit;' \
2332 'extern "C" void exit (int) throw ();' \
2333 'extern "C" void exit (int);' \
2336 cat >conftest.$ac_ext <<_ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 (eval $ac_compile) 2>conftest.er1
2356 grep -v '^ *+' conftest.er1 >conftest.err
2358 cat conftest.err >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381 cat >conftest.$ac_ext <<_ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2400 grep -v '^ *+' conftest.er1 >conftest.err
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2426 if test -n "$ac_declaration"; then
2427 echo '#ifdef __cplusplus' >>confdefs.h
2428 echo $ac_declaration >>confdefs.h
2429 echo '#endif' >>confdefs.h
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445 ac_cpp='$CXXCPP $CPPFLAGS'
2446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2449 if test -n "$ac_tool_prefix"; then
2450 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2454 echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2456 if test "${ac_cv_prog_CXX+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 if test -n "$CXX"; then
2460 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2469 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 if test -n "$CXX"; then
2480 echo "$as_me:$LINENO: result: $CXX" >&5
2481 echo "${ECHO_T}$CXX" >&6
2483 echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6
2487 test -n "$CXX" && break
2490 if test -z "$CXX"; then
2492 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2494 # Extract the first word of "$ac_prog", so it can be a program name with args.
2495 set dummy $ac_prog; ac_word=$2
2496 echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2498 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 if test -n "$ac_ct_CXX"; then
2502 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511 ac_cv_prog_ac_ct_CXX="$ac_prog"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2521 if test -n "$ac_ct_CXX"; then
2522 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2523 echo "${ECHO_T}$ac_ct_CXX" >&6
2525 echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2529 test -n "$ac_ct_CXX" && break
2531 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2537 # Provide some information about the compiler.
2538 echo "$as_me:$LINENO:" \
2539 "checking for C++ compiler version" >&5
2540 ac_compiler=`set X $ac_compile; echo $2`
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2542 (eval $ac_compiler --version </dev/null >&5) 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2546 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2547 (eval $ac_compiler -v </dev/null >&5) 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }
2551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2552 (eval $ac_compiler -V </dev/null >&5) 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }
2557 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2558 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2559 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 cat >conftest.$ac_ext <<_ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>conftest.er1
2584 grep -v '^ *+' conftest.er1 >conftest.err
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
2589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2612 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2613 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2614 GXX=`test $ac_compiler_gnu = yes && echo yes`
2615 ac_test_CXXFLAGS=${CXXFLAGS+set}
2616 ac_save_CXXFLAGS=$CXXFLAGS
2618 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2619 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2620 if test "${ac_cv_prog_cxx_g+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640 (eval $ac_compile) 2>conftest.er1
2642 grep -v '^ *+' conftest.er1 >conftest.err
2644 cat conftest.err >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 ac_cv_prog_cxx_g=yes
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2670 if test "$ac_test_CXXFLAGS" = set; then
2671 CXXFLAGS=$ac_save_CXXFLAGS
2672 elif test $ac_cv_prog_cxx_g = yes; then
2673 if test "$GXX" = yes; then
2679 if test "$GXX" = yes; then
2685 for ac_declaration in \
2687 'extern "C" void std::exit (int) throw (); using std::exit;' \
2688 'extern "C" void std::exit (int); using std::exit;' \
2689 'extern "C" void exit (int) throw ();' \
2690 'extern "C" void exit (int);' \
2693 cat >conftest.$ac_ext <<_ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>conftest.er1
2757 grep -v '^ *+' conftest.er1 >conftest.err
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } &&
2762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; }; then
2776 echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2783 if test -n "$ac_declaration"; then
2784 echo '#ifdef __cplusplus' >>confdefs.h
2785 echo $ac_declaration >>confdefs.h
2786 echo '#endif' >>confdefs.h
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2803 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2804 # On Suns, sometimes $CPP names a directory.
2805 if test -n "$CPP" && test -d "$CPP"; then
2808 if test -z "$CPP"; then
2809 if test "${ac_cv_prog_CPP+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 # Double quotes because CPP needs to be expanded
2813 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2816 for ac_c_preproc_warn_flag in '' yes
2818 # Use a header file that comes with gcc, so configuring glibc
2819 # with a fresh cross-compiler works.
2820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2821 # <limits.h> exists even on freestanding compilers.
2822 # On the NeXT, cc -E runs the code through the compiler's parser,
2823 # not just through cpp. "Syntax error" is here to catch this case.
2824 cat >conftest.$ac_ext <<_ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2831 # include <limits.h>
2833 # include <assert.h>
2837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } >/dev/null; then
2845 if test -s conftest.err; then
2846 ac_cpp_err=$ac_c_preproc_warn_flag
2847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2854 if test -z "$ac_cpp_err"; then
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2860 # Broken: fails on valid input.
2863 rm -f conftest.err conftest.$ac_ext
2865 # OK, works on sane cases. Now check whether non-existent headers
2866 # can be detected and how.
2867 cat >conftest.$ac_ext <<_ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2873 #include <ac_nonexistent.h>
2875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2878 grep -v '^ *+' conftest.er1 >conftest.err
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } >/dev/null; then
2883 if test -s conftest.err; then
2884 ac_cpp_err=$ac_c_preproc_warn_flag
2885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2892 if test -z "$ac_cpp_err"; then
2893 # Broken: success on invalid input.
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2899 # Passes both tests.
2903 rm -f conftest.err conftest.$ac_ext
2906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2907 rm -f conftest.err conftest.$ac_ext
2908 if $ac_preproc_ok; then
2920 echo "$as_me:$LINENO: result: $CPP" >&5
2921 echo "${ECHO_T}$CPP" >&6
2923 for ac_c_preproc_warn_flag in '' yes
2925 # Use a header file that comes with gcc, so configuring glibc
2926 # with a fresh cross-compiler works.
2927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2928 # <limits.h> exists even on freestanding compilers.
2929 # On the NeXT, cc -E runs the code through the compiler's parser,
2930 # not just through cpp. "Syntax error" is here to catch this case.
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2938 # include <limits.h>
2940 # include <assert.h>
2944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } >/dev/null; then
2952 if test -s conftest.err; then
2953 ac_cpp_err=$ac_c_preproc_warn_flag
2954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2961 if test -z "$ac_cpp_err"; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 # Broken: fails on valid input.
2970 rm -f conftest.err conftest.$ac_ext
2972 # OK, works on sane cases. Now check whether non-existent headers
2973 # can be detected and how.
2974 cat >conftest.$ac_ext <<_ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2980 #include <ac_nonexistent.h>
2982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev/null; then
2990 if test -s conftest.err; then
2991 ac_cpp_err=$ac_c_preproc_warn_flag
2992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2999 if test -z "$ac_cpp_err"; then
3000 # Broken: success on invalid input.
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 # Passes both tests.
3010 rm -f conftest.err conftest.$ac_ext
3013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3014 rm -f conftest.err conftest.$ac_ext
3015 if $ac_preproc_ok; then
3018 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3019 See \`config.log' for more details." >&5
3020 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3021 See \`config.log' for more details." >&2;}
3022 { (exit 1); exit 1; }; }
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 echo "$as_me:$LINENO: checking for egrep" >&5
3033 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3034 if test "${ac_cv_prog_egrep+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3038 then ac_cv_prog_egrep='grep -E'
3039 else ac_cv_prog_egrep='egrep'
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3043 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3044 EGREP=$ac_cv_prog_egrep
3048 echo "$as_me:$LINENO: checking for AIX" >&5
3049 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3062 $EGREP "yes" >/dev/null 2>&1; then
3063 echo "$as_me:$LINENO: result: yes" >&5
3064 echo "${ECHO_T}yes" >&6
3065 cat >>confdefs.h <<\_ACEOF
3066 #define _ALL_SOURCE 1
3070 echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6
3077 if test $ac_cv_c_compiler_gnu = yes; then
3078 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3079 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3080 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 ac_pattern="Autoconf.*'x'"
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3094 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3095 ac_cv_prog_gcc_traditional=yes
3097 ac_cv_prog_gcc_traditional=no
3102 if test $ac_cv_prog_gcc_traditional = no; then
3103 cat >conftest.$ac_ext <<_ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3113 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3114 ac_cv_prog_gcc_traditional=yes
3120 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3121 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3122 if test $ac_cv_prog_gcc_traditional = yes; then
3123 CC="$CC -traditional"
3127 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3128 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
3129 if test "${ac_cv_prog_suncc+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 cat > conftest.c <<EOF
3137 if { ac_try='${CC-cc} -E conftest.c'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3143 ac_cv_prog_suncc=yes
3148 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3149 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
3150 if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3153 echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155 if test "${ac_cv_prog_RANLIB+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 if test -n "$RANLIB"; then
3159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 RANLIB=$ac_cv_prog_RANLIB
3178 if test -n "$RANLIB"; then
3179 echo "$as_me:$LINENO: result: $RANLIB" >&5
3180 echo "${ECHO_T}$RANLIB" >&6
3182 echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3187 if test -z "$ac_cv_prog_RANLIB"; then
3188 ac_ct_RANLIB=$RANLIB
3189 # Extract the first word of "ranlib", so it can be a program name with args.
3190 set dummy ranlib; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 if test -n "$ac_ct_RANLIB"; then
3197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_ac_ct_RANLIB="ranlib"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3217 if test -n "$ac_ct_RANLIB"; then
3218 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3219 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3221 echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3225 RANLIB=$ac_ct_RANLIB
3227 RANLIB="$ac_cv_prog_RANLIB"
3231 # Check whether --enable-largefile or --disable-largefile was given.
3232 if test "${enable_largefile+set}" = set; then
3233 enableval="$enable_largefile"
3236 if test "$enable_largefile" != no; then
3238 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3239 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3240 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 ac_cv_sys_largefile_CC=no
3244 if test "$GCC" != yes; then
3247 # IRIX 6.2 and later do not support large files by default,
3248 # so use the C compiler's -n32 option if that helps.
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 #include <sys/types.h>
3256 /* Check that off_t can represent 2**63 - 1 correctly.
3257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3258 since some C++ compilers masquerading as C compilers
3259 incorrectly reject 9223372036854775807. */
3260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3262 && LARGE_OFF_T % 2147483647 == 1)
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3276 grep -v '^ *+' conftest.er1 >conftest.err
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3299 rm -f conftest.err conftest.$ac_objext
3301 rm -f conftest.$ac_objext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3303 (eval $ac_compile) 2>conftest.er1
3305 grep -v '^ *+' conftest.er1 >conftest.err
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_cv_sys_largefile_CC=' -n32'; break
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3328 rm -f conftest.err conftest.$ac_objext
3332 rm -f conftest.$ac_ext
3335 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3336 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3337 if test "$ac_cv_sys_largefile_CC" != no; then
3338 CC=$CC$ac_cv_sys_largefile_CC
3341 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3342 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3343 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 ac_cv_sys_file_offset_bits=no
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3354 #include <sys/types.h>
3355 /* Check that off_t can represent 2**63 - 1 correctly.
3356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3357 since some C++ compilers masquerading as C compilers
3358 incorrectly reject 9223372036854775807. */
3359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3361 && LARGE_OFF_T % 2147483647 == 1)
3371 rm -f conftest.$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>conftest.er1
3375 grep -v '^ *+' conftest.er1 >conftest.err
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399 cat >conftest.$ac_ext <<_ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3405 #define _FILE_OFFSET_BITS 64
3406 #include <sys/types.h>
3407 /* Check that off_t can represent 2**63 - 1 correctly.
3408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3409 since some C++ compilers masquerading as C compilers
3410 incorrectly reject 9223372036854775807. */
3411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3413 && LARGE_OFF_T % 2147483647 == 1)
3423 rm -f conftest.$ac_objext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425 (eval $ac_compile) 2>conftest.er1
3427 grep -v '^ *+' conftest.er1 >conftest.err
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; } &&
3438 { ac_try='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 ac_cv_sys_file_offset_bits=64; break
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3455 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3456 if test "$ac_cv_sys_file_offset_bits" != no; then
3458 cat >>confdefs.h <<_ACEOF
3459 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3464 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3465 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3466 if test "${ac_cv_sys_large_files+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 ac_cv_sys_large_files=no
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 #include <sys/types.h>
3478 /* Check that off_t can represent 2**63 - 1 correctly.
3479 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3480 since some C++ compilers masquerading as C compilers
3481 incorrectly reject 9223372036854775807. */
3482 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3483 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3484 && LARGE_OFF_T % 2147483647 == 1)
3494 rm -f conftest.$ac_objext
3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
3498 grep -v '^ *+' conftest.er1 >conftest.err
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; } &&
3509 { ac_try='test -s conftest.$ac_objext'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; }; then
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #define _LARGE_FILES 1
3529 #include <sys/types.h>
3530 /* Check that off_t can represent 2**63 - 1 correctly.
3531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3532 since some C++ compilers masquerading as C compilers
3533 incorrectly reject 9223372036854775807. */
3534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3536 && LARGE_OFF_T % 2147483647 == 1)
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 ac_cv_sys_large_files=1; break
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3577 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3578 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3579 if test "$ac_cv_sys_large_files" != no; then
3581 cat >>confdefs.h <<_ACEOF
3582 #define _LARGE_FILES $ac_cv_sys_large_files
3590 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3591 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3592 if test "${ac_cv_c_bigendian+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 # See if sys/param.h defines the BYTE_ORDER macro.
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 #include <sys/types.h>
3603 #include <sys/param.h>
3608 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618 (eval $ac_compile) 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 # It does; now see whether it defined to BIG_ENDIAN or not.
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 #include <sys/types.h>
3645 #include <sys/param.h>
3650 #if BYTE_ORDER != BIG_ENDIAN
3658 rm -f conftest.$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_c_bigendian=yes
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 ac_cv_c_bigendian=no
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 # It does not; compile a test program.
3692 if test "$cross_compiling" = yes; then
3693 # try to guess the endianness by grepping values into an object file
3694 ac_cv_c_bigendian=unknown
3695 cat >conftest.$ac_ext <<_ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3702 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3703 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3704 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3705 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3706 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3710 _ascii (); _ebcdic ();
3715 rm -f conftest.$ac_objext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1 >conftest.err
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; } &&
3730 { ac_try='test -s conftest.$ac_objext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3737 ac_cv_c_bigendian=yes
3739 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3740 if test "$ac_cv_c_bigendian" = unknown; then
3741 ac_cv_c_bigendian=no
3743 # finding both strings is unlikely to happen, but who knows?
3744 ac_cv_c_bigendian=unknown
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3754 cat >conftest.$ac_ext <<_ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3763 /* Are we little or big endian? From Harbison&Steele. */
3767 char c[sizeof (long)];
3770 exit (u.c[sizeof (long) - 1] == 1);
3773 rm -f conftest$ac_exeext
3774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3775 (eval $ac_link) 2>&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_c_bigendian=no
3786 echo "$as_me: program exited with status $ac_status" >&5
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3791 ac_cv_c_bigendian=yes
3793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3799 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3800 case $ac_cv_c_bigendian in
3803 cat >>confdefs.h <<\_ACEOF
3804 #define WORDS_BIGENDIAN 1
3810 { { echo "$as_me:$LINENO: error: unknown endianness
3811 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3812 echo "$as_me: error: unknown endianness
3813 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3814 { (exit 1); exit 1; }; } ;;
3818 # Extract the first word of "gmake", so it can be a program name with args.
3819 set dummy gmake; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_prog_GMAKE+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 if test -n "$GMAKE"; then
3826 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_GMAKE="yes"
3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3845 GMAKE=$ac_cv_prog_GMAKE
3846 if test -n "$GMAKE"; then
3847 echo "$as_me:$LINENO: result: $GMAKE" >&5
3848 echo "${ECHO_T}$GMAKE" >&6
3850 echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6
3854 if test $GMAKE = no; then
3855 # Extract the first word of "make", so it can be a program name with args.
3856 set dummy make; ac_word=$2
3857 echo "$as_me:$LINENO: checking for $ac_word" >&5
3858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3859 if test "${ac_cv_path_MAKE+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3885 MAKE=$ac_cv_path_MAKE
3887 if test -n "$MAKE"; then
3888 echo "$as_me:$LINENO: result: $MAKE" >&5
3889 echo "${ECHO_T}$MAKE" >&6
3891 echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6
3896 # Extract the first word of "gmake", so it can be a program name with args.
3897 set dummy gmake; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_path_MAKE+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3926 MAKE=$ac_cv_path_MAKE
3928 if test -n "$MAKE"; then
3929 echo "$as_me:$LINENO: result: $MAKE" >&5
3930 echo "${ECHO_T}$MAKE" >&6
3932 echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3937 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3938 if test -z "$makever"; then
3939 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3940 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3941 echo "$as_me: error: GNU Make is not installed. Please download and install it
3942 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3943 { (exit 1); exit 1; }; }
3946 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3947 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3948 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 ac_check_lib_save_LIBS=$LIBS
3953 cat >conftest.$ac_ext <<_ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3960 /* Override any gcc2 internal prototype to avoid an error. */
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3975 rm -f conftest.$ac_objext conftest$ac_exeext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977 (eval $ac_link) 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest$ac_exeext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_lib_ltdl_lt_dlinit=yes
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 ac_cv_lib_ltdl_lt_dlinit=no
4003 rm -f conftest.err conftest.$ac_objext \
4004 conftest$ac_exeext conftest.$ac_ext
4005 LIBS=$ac_check_lib_save_LIBS
4007 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4008 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
4009 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4010 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4012 if test x"$enable_ltdl_install" = xno; then
4013 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4014 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4016 enable_ltdl_install=yes
4021 if test x"$enable_ltdl_install" = x"yes"; then
4022 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4023 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4024 LTDLINCL='-I${top_srcdir}/''libltdl'
4027 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4033 # For backwards non-gettext consistent compatibility...
4037 # Check whether --enable-shared or --disable-shared was given.
4038 if test "${enable_shared+set}" = set; then
4039 enableval="$enable_shared"
4040 p=${PACKAGE-default}
4042 yes) enable_shared=yes ;;
4043 no) enable_shared=no ;;
4046 # Look at the argument we got. We use all the common list separators.
4047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4048 for pkg in $enableval; do
4050 if test "X$pkg" = "X$p"; then
4061 # Check whether --enable-static or --disable-static was given.
4062 if test "${enable_static+set}" = set; then
4063 enableval="$enable_static"
4064 p=${PACKAGE-default}
4066 yes) enable_static=yes ;;
4067 no) enable_static=no ;;
4070 # Look at the argument we got. We use all the common list separators.
4071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4072 for pkg in $enableval; do
4074 if test "X$pkg" = "X$p"; then
4085 # Check whether --enable-fast-install or --disable-fast-install was given.
4086 if test "${enable_fast_install+set}" = set; then
4087 enableval="$enable_fast_install"
4088 p=${PACKAGE-default}
4090 yes) enable_fast_install=yes ;;
4091 no) enable_fast_install=no ;;
4093 enable_fast_install=no
4094 # Look at the argument we got. We use all the common list separators.
4095 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4096 for pkg in $enableval; do
4098 if test "X$pkg" = "X$p"; then
4099 enable_fast_install=yes
4106 enable_fast_install=yes
4110 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4111 if test -f $ac_dir/install-sh; then
4113 ac_install_sh="$ac_aux_dir/install-sh -c"
4115 elif test -f $ac_dir/install.sh; then
4117 ac_install_sh="$ac_aux_dir/install.sh -c"
4119 elif test -f $ac_dir/shtool; then
4121 ac_install_sh="$ac_aux_dir/shtool install -c"
4125 if test -z "$ac_aux_dir"; then
4126 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4127 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4128 { (exit 1); exit 1; }; }
4130 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4131 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4132 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4134 # Make sure we can run config.sub.
4135 $ac_config_sub sun4 >/dev/null 2>&1 ||
4136 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4137 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4138 { (exit 1); exit 1; }; }
4140 echo "$as_me:$LINENO: checking build system type" >&5
4141 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4142 if test "${ac_cv_build+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 ac_cv_build_alias=$build_alias
4146 test -z "$ac_cv_build_alias" &&
4147 ac_cv_build_alias=`$ac_config_guess`
4148 test -z "$ac_cv_build_alias" &&
4149 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4150 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4151 { (exit 1); exit 1; }; }
4152 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4153 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4154 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4155 { (exit 1); exit 1; }; }
4158 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4159 echo "${ECHO_T}$ac_cv_build" >&6
4161 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4162 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4163 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4166 echo "$as_me:$LINENO: checking host system type" >&5
4167 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4168 if test "${ac_cv_host+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 ac_cv_host_alias=$host_alias
4172 test -z "$ac_cv_host_alias" &&
4173 ac_cv_host_alias=$ac_cv_build_alias
4174 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4175 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4176 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4177 { (exit 1); exit 1; }; }
4180 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4181 echo "${ECHO_T}$ac_cv_host" >&6
4183 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4184 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4185 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4188 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4189 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4190 if test "${lt_cv_path_SED+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 # Loop through the user's path and test for sed and gsed.
4194 # Then use that list of sed's as ones to test for truncation.
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 test -z "$as_dir" && as_dir=.
4200 for lt_ac_prog in sed gsed; do
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4203 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4210 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4211 # along with /bin/sed that truncates output.
4212 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4213 test ! -f $lt_ac_sed && break
4214 cat /dev/null > conftest.in
4216 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4217 # Check for GNU sed and select it if it is found.
4218 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4219 lt_cv_path_SED=$lt_ac_sed
4223 cat conftest.in conftest.in >conftest.tmp
4224 mv conftest.tmp conftest.in
4225 cp conftest.in conftest.nl
4227 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4228 cmp -s conftest.out conftest.nl || break
4229 # 10000 chars as input seems more than enough
4230 test $lt_ac_count -gt 10 && break
4231 lt_ac_count=`expr $lt_ac_count + 1`
4232 if test $lt_ac_count -gt $lt_ac_max; then
4233 lt_ac_max=$lt_ac_count
4234 lt_cv_path_SED=$lt_ac_sed
4242 echo "$as_me:$LINENO: result: $SED" >&5
4243 echo "${ECHO_T}$SED" >&6
4246 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4247 if test "${with_gnu_ld+set}" = set; then
4248 withval="$with_gnu_ld"
4249 test "$withval" = no || with_gnu_ld=yes
4254 if test "$GCC" = yes; then
4255 # Check if gcc -print-prog-name=ld gives a path.
4256 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4257 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4260 # gcc leaves a trailing carriage return which upsets mingw
4261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4266 # Accept absolute paths.
4268 re_direlt='/[^/][^/]*/\.\./'
4269 # Canonicalize the pathname of ld
4270 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4271 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4272 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4274 test -z "$LD" && LD="$ac_prog"
4277 # If it fails, then pretend we aren't using GCC.
4281 # If it is relative, then search for the first ld in PATH.
4285 elif test "$with_gnu_ld" = yes; then
4286 echo "$as_me:$LINENO: checking for GNU ld" >&5
4287 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4289 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4290 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4292 if test "${lt_cv_path_LD+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 if test -z "$LD"; then
4296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4297 for ac_dir in $PATH; do
4299 test -z "$ac_dir" && ac_dir=.
4300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4301 lt_cv_path_LD="$ac_dir/$ac_prog"
4302 # Check to see if the program is GNU ld. I'd rather use --version,
4303 # but apparently some GNU ld's only accept -v.
4304 # Break only if it was the GNU/non-GNU ld that we prefer.
4305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4306 *GNU* | *'with BFD'*)
4307 test "$with_gnu_ld" != no && break
4310 test "$with_gnu_ld" != yes && break
4317 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4322 if test -n "$LD"; then
4323 echo "$as_me:$LINENO: result: $LD" >&5
4324 echo "${ECHO_T}$LD" >&6
4326 echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4329 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4330 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4331 { (exit 1); exit 1; }; }
4332 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4333 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4334 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4338 case `$LD -v 2>&1 </dev/null` in
4339 *GNU* | *'with BFD'*)
4340 lt_cv_prog_gnu_ld=yes
4343 lt_cv_prog_gnu_ld=no
4347 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4348 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4349 with_gnu_ld=$lt_cv_prog_gnu_ld
4352 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4353 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4354 if test "${lt_cv_ld_reload_flag+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 lt_cv_ld_reload_flag='-r'
4359 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4360 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4361 reload_flag=$lt_cv_ld_reload_flag
4362 case $reload_flag in
4364 *) reload_flag=" $reload_flag" ;;
4366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4368 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4369 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4370 if test "${lt_cv_path_NM+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 if test -n "$NM"; then
4374 # Let the user override the test.
4377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4378 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4380 test -z "$ac_dir" && ac_dir=.
4381 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4383 # Check to see if the nm accepts a BSD-compat flag.
4384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4385 # nm: unknown option "B" ignored
4386 # Tru64's nm complains that /dev/null is an invalid object file
4387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4388 */dev/null* | *'Invalid file or object type'*)
4389 lt_cv_path_NM="$tmp_nm -B"
4393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4395 lt_cv_path_NM="$tmp_nm -p"
4399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4400 continue # so that we can try to find one that supports BSD flags
4407 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4410 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4411 echo "${ECHO_T}$lt_cv_path_NM" >&6
4414 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4415 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4417 if test "$LN_S" = "ln -s"; then
4418 echo "$as_me:$LINENO: result: yes" >&5
4419 echo "${ECHO_T}yes" >&6
4421 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4422 echo "${ECHO_T}no, using $LN_S" >&6
4425 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4426 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4427 if test "${lt_cv_deplibs_check_method+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 lt_cv_file_magic_cmd='$MAGIC_CMD'
4431 lt_cv_file_magic_test_file=
4432 lt_cv_deplibs_check_method='unknown'
4433 # Need to set the preceding variable on all platforms that support
4434 # interlibrary dependencies.
4435 # 'none' -- dependencies not supported.
4436 # `unknown' -- same as none, but documents that we really don't know.
4437 # 'pass_all' -- all dependencies passed with no checks.
4438 # 'test_compile' -- check by making test program.
4439 # 'file_magic [[regex]]' -- check by looking for files in library path
4440 # which responds to the $file_magic_cmd with a given extended regex.
4441 # If you have `file' or equivalent on your system and you're not sure
4442 # whether `pass_all' will *always* work, you probably want this one.
4446 lt_cv_deplibs_check_method=pass_all
4450 lt_cv_deplibs_check_method=pass_all
4454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4455 lt_cv_file_magic_cmd='/usr/bin/file -L'
4456 lt_cv_file_magic_test_file=/shlib/libc.so
4460 # func_win32_libid is a shell function defined in ltmain.sh
4461 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4462 lt_cv_file_magic_cmd='func_win32_libid'
4466 # Base MSYS/MinGW do not provide the 'file' command needed by
4467 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4468 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4469 lt_cv_file_magic_cmd='$OBJDUMP -f'
4472 darwin* | rhapsody*)
4473 lt_cv_deplibs_check_method=pass_all
4476 freebsd* | kfreebsd*-gnu)
4477 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4480 # Not sure whether the presence of OpenBSD here was a mistake.
4481 # Let's accept both of them until this is cleared up.
4482 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4483 lt_cv_file_magic_cmd=/usr/bin/file
4484 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4488 lt_cv_deplibs_check_method=pass_all
4493 lt_cv_deplibs_check_method=pass_all
4496 hpux10.20* | hpux11*)
4497 lt_cv_file_magic_cmd=/usr/bin/file
4500 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4501 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4504 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]'
4505 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4508 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4509 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4514 irix5* | irix6* | nonstopux*)
4516 *-32|*"-32 ") libmagic=32-bit;;
4517 *-n32|*"-n32 ") libmagic=N32;;
4518 *-64|*"-64 ") libmagic=64-bit;;
4519 *) libmagic=never-match;;
4521 lt_cv_deplibs_check_method=pass_all
4524 # This must be Linux ELF.
4526 lt_cv_deplibs_check_method=pass_all
4529 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4530 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4539 lt_cv_file_magic_cmd=/usr/bin/file
4540 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4544 lt_cv_deplibs_check_method=unknown
4548 lt_cv_file_magic_cmd=/usr/bin/file
4549 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4551 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4553 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4557 osf3* | osf4* | osf5*)
4558 lt_cv_deplibs_check_method=pass_all
4562 lt_cv_deplibs_check_method=pass_all
4566 lt_cv_deplibs_check_method=pass_all
4569 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4570 case $host_vendor in
4572 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]'
4573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4576 lt_cv_deplibs_check_method=pass_all
4579 lt_cv_file_magic_cmd='/bin/file'
4580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4583 lt_cv_file_magic_cmd='/bin/file'
4584 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4585 lt_cv_file_magic_test_file=/lib/libc.so
4588 lt_cv_deplibs_check_method=pass_all
4593 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4594 lt_cv_deplibs_check_method=pass_all
4599 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4600 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4601 file_magic_cmd=$lt_cv_file_magic_cmd
4602 deplibs_check_method=$lt_cv_deplibs_check_method
4603 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4608 # If no C compiler was specified, use CC.
4611 # Allow CC to be a program name with arguments.
4614 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4615 if test "${enable_libtool_lock+set}" = set; then
4616 enableval="$enable_libtool_lock"
4619 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4621 # Some flags need to be propagated to the compiler or linker for good
4625 # Find out which ABI we are using.
4626 echo 'int i;' > conftest.$ac_ext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628 (eval $ac_compile) 2>&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; then
4632 case `/usr/bin/file conftest.$ac_objext` in
4644 # Find out which ABI we are using.
4645 echo '#line 4645 "configure"' > conftest.$ac_ext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; then
4651 if test "$lt_cv_prog_gnu_ld" = yes; then
4652 case `/usr/bin/file conftest.$ac_objext` in
4654 LD="${LD-ld} -melf32bsmip"
4657 LD="${LD-ld} -melf32bmipn32"
4660 LD="${LD-ld} -melf64bmip"
4664 case `/usr/bin/file conftest.$ac_objext` in
4680 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4681 # Find out which ABI we are using.
4682 echo 'int i;' > conftest.$ac_ext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; then
4688 case "`/usr/bin/file conftest.o`" in
4692 LD="${LD-ld} -m elf_i386"
4694 ppc64-*linux*|powerpc64-*linux*)
4695 LD="${LD-ld} -m elf32ppclinux"
4698 LD="${LD-ld} -m elf_s390"
4701 LD="${LD-ld} -m elf32_sparc"
4708 LD="${LD-ld} -m elf_x86_64"
4710 ppc*-*linux*|powerpc*-*linux*)
4711 LD="${LD-ld} -m elf64ppc"
4714 LD="${LD-ld} -m elf64_s390"
4717 LD="${LD-ld} -m elf64_sparc"
4727 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4728 SAVE_CFLAGS="$CFLAGS"
4729 CFLAGS="$CFLAGS -belf"
4730 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4731 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4732 if test "${lt_cv_cc_needs_belf+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4756 rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758 (eval $ac_link) 2>conftest.er1
4760 grep -v '^ *+' conftest.er1 >conftest.err
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest$ac_exeext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 lt_cv_cc_needs_belf=yes
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 lt_cv_cc_needs_belf=no
4784 rm -f conftest.err conftest.$ac_objext \
4785 conftest$ac_exeext conftest.$ac_ext
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4794 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4795 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4796 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4797 CFLAGS="$SAVE_CFLAGS"
4803 need_locks="$enable_libtool_lock"
4806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4808 if test "${ac_cv_header_stdc+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4830 rm -f conftest.$ac_objext
4831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4832 (eval $ac_compile) 2>conftest.er1
4834 grep -v '^ *+' conftest.er1 >conftest.err
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; } &&
4845 { ac_try='test -s conftest.$ac_objext'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4851 ac_cv_header_stdc=yes
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4856 ac_cv_header_stdc=no
4858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4860 if test $ac_cv_header_stdc = yes; then
4861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4872 $EGREP "memchr" >/dev/null 2>&1; then
4875 ac_cv_header_stdc=no
4881 if test $ac_cv_header_stdc = yes; then
4882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893 $EGREP "free" >/dev/null 2>&1; then
4896 ac_cv_header_stdc=no
4902 if test $ac_cv_header_stdc = yes; then
4903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4904 if test "$cross_compiling" = yes; then
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4914 #if ((' ' & 0x0FF) == 0x020)
4915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4918 # define ISLOWER(c) \
4919 (('a' <= (c) && (c) <= 'i') \
4920 || ('j' <= (c) && (c) <= 'r') \
4921 || ('s' <= (c) && (c) <= 'z'))
4922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4930 for (i = 0; i < 256; i++)
4931 if (XOR (islower (i), ISLOWER (i))
4932 || toupper (i) != TOUPPER (i))
4937 rm -f conftest$ac_exeext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4939 (eval $ac_link) 2>&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4950 echo "$as_me: program exited with status $ac_status" >&5
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4955 ac_cv_header_stdc=no
4957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4961 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4962 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4963 if test $ac_cv_header_stdc = yes; then
4965 cat >>confdefs.h <<\_ACEOF
4966 #define STDC_HEADERS 1
4971 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4981 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4982 inttypes.h stdint.h unistd.h
4984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985 echo "$as_me:$LINENO: checking for $ac_header" >&5
4986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 $ac_includes_default
4998 #include <$ac_header>
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5004 grep -v '^ *+' conftest.er1 >conftest.err
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; } &&
5015 { ac_try='test -s conftest.$ac_objext'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5021 eval "$as_ac_Header=yes"
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5026 eval "$as_ac_Header=no"
5028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5033 cat >>confdefs.h <<_ACEOF
5034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5043 for ac_header in dlfcn.h
5045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047 echo "$as_me:$LINENO: checking for $ac_header" >&5
5048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5055 # Is the header compilable?
5056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5058 cat >conftest.$ac_ext <<_ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 $ac_includes_default
5065 #include <$ac_header>
5067 rm -f conftest.$ac_objext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5069 (eval $ac_compile) 2>conftest.er1
5071 grep -v '^ *+' conftest.er1 >conftest.err
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 ac_header_compiler=yes
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 ac_header_compiler=no
5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5097 echo "${ECHO_T}$ac_header_compiler" >&6
5099 # Is the header present?
5100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <$ac_header>
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_c_preproc_warn_flag
5120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5127 if test -z "$ac_cpp_err"; then
5128 ac_header_preproc=yes
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 ac_header_preproc=no
5135 rm -f conftest.err conftest.$ac_ext
5136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5137 echo "${ECHO_T}$ac_header_preproc" >&6
5139 # So? What about this header?
5140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5146 ac_header_preproc=yes
5149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5163 ## ------------------------------------------ ##
5164 ## Report this to the AC_PACKAGE_NAME lists. ##
5165 ## ------------------------------------------ ##
5168 sed "s/^/$as_me: WARNING: /" >&2
5171 echo "$as_me:$LINENO: checking for $ac_header" >&5
5172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 eval "$as_ac_Header=\$ac_header_preproc"
5178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5183 cat >>confdefs.h <<_ACEOF
5184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5197 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5198 if test -z "$CXXCPP"; then
5199 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 # Double quotes because CXXCPP needs to be expanded
5203 for CXXCPP in "$CXX -E" "/lib/cpp"
5206 for ac_cxx_preproc_warn_flag in '' yes
5208 # Use a header file that comes with gcc, so configuring glibc
5209 # with a fresh cross-compiler works.
5210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211 # <limits.h> exists even on freestanding compilers.
5212 # On the NeXT, cc -E runs the code through the compiler's parser,
5213 # not just through cpp. "Syntax error" is here to catch this case.
5214 cat >conftest.$ac_ext <<_ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5221 # include <limits.h>
5223 # include <assert.h>
5227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5230 grep -v '^ *+' conftest.er1 >conftest.err
5232 cat conftest.err >&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } >/dev/null; then
5235 if test -s conftest.err; then
5236 ac_cpp_err=$ac_cxx_preproc_warn_flag
5237 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5244 if test -z "$ac_cpp_err"; then
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 # Broken: fails on valid input.
5253 rm -f conftest.err conftest.$ac_ext
5255 # OK, works on sane cases. Now check whether non-existent headers
5256 # can be detected and how.
5257 cat >conftest.$ac_ext <<_ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <ac_nonexistent.h>
5265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5268 grep -v '^ *+' conftest.er1 >conftest.err
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } >/dev/null; then
5273 if test -s conftest.err; then
5274 ac_cpp_err=$ac_cxx_preproc_warn_flag
5275 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5282 if test -z "$ac_cpp_err"; then
5283 # Broken: success on invalid input.
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5289 # Passes both tests.
5293 rm -f conftest.err conftest.$ac_ext
5296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5297 rm -f conftest.err conftest.$ac_ext
5298 if $ac_preproc_ok; then
5303 ac_cv_prog_CXXCPP=$CXXCPP
5306 CXXCPP=$ac_cv_prog_CXXCPP
5308 ac_cv_prog_CXXCPP=$CXXCPP
5310 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5311 echo "${ECHO_T}$CXXCPP" >&6
5313 for ac_cxx_preproc_warn_flag in '' yes
5315 # Use a header file that comes with gcc, so configuring glibc
5316 # with a fresh cross-compiler works.
5317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5318 # <limits.h> exists even on freestanding compilers.
5319 # On the NeXT, cc -E runs the code through the compiler's parser,
5320 # not just through cpp. "Syntax error" is here to catch this case.
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5328 # include <limits.h>
5330 # include <assert.h>
5334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } >/dev/null; then
5342 if test -s conftest.err; then
5343 ac_cpp_err=$ac_cxx_preproc_warn_flag
5344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5351 if test -z "$ac_cpp_err"; then
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 # Broken: fails on valid input.
5360 rm -f conftest.err conftest.$ac_ext
5362 # OK, works on sane cases. Now check whether non-existent headers
5363 # can be detected and how.
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <ac_nonexistent.h>
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5375 grep -v '^ *+' conftest.er1 >conftest.err
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null; then
5380 if test -s conftest.err; then
5381 ac_cpp_err=$ac_cxx_preproc_warn_flag
5382 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5389 if test -z "$ac_cpp_err"; then
5390 # Broken: success on invalid input.
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 # Passes both tests.
5400 rm -f conftest.err conftest.$ac_ext
5403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5404 rm -f conftest.err conftest.$ac_ext
5405 if $ac_preproc_ok; then
5408 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5409 See \`config.log' for more details." >&5
5410 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5411 See \`config.log' for more details." >&2;}
5412 { (exit 1); exit 1; }; }
5416 ac_cpp='$CXXCPP $CPPFLAGS'
5417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5423 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5424 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5426 if test -n "$ac_tool_prefix"; then
5427 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5431 echo "$as_me:$LINENO: checking for $ac_word" >&5
5432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5433 if test "${ac_cv_prog_F77+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 if test -n "$F77"; then
5437 ac_cv_prog_F77="$F77" # Let the user override the test.
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 if test -n "$F77"; then
5457 echo "$as_me:$LINENO: result: $F77" >&5
5458 echo "${ECHO_T}$F77" >&6
5460 echo "$as_me:$LINENO: result: no" >&5
5461 echo "${ECHO_T}no" >&6
5464 test -n "$F77" && break
5467 if test -z "$F77"; then
5469 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5471 # Extract the first word of "$ac_prog", so it can be a program name with args.
5472 set dummy $ac_prog; ac_word=$2
5473 echo "$as_me:$LINENO: checking for $ac_word" >&5
5474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5475 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 if test -n "$ac_ct_F77"; then
5479 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_ac_ct_F77="$ac_prog"
5489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5498 if test -n "$ac_ct_F77"; then
5499 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5500 echo "${ECHO_T}$ac_ct_F77" >&6
5502 echo "$as_me:$LINENO: result: no" >&5
5503 echo "${ECHO_T}no" >&6
5506 test -n "$ac_ct_F77" && break
5513 # Provide some information about the compiler.
5514 echo "$as_me:5514:" \
5515 "checking for Fortran 77 compiler version" >&5
5516 ac_compiler=`set X $ac_compile; echo $2`
5517 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5518 (eval $ac_compiler --version </dev/null >&5) 2>&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }
5522 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5523 (eval $ac_compiler -v </dev/null >&5) 2>&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }
5527 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5528 (eval $ac_compiler -V </dev/null >&5) 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }
5534 # If we don't use `.F' as extension, the preprocessor is not run on the
5535 # input file. (Note that this only needs to work for GNU compilers.)
5538 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5539 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5540 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 cat >conftest.$ac_ext <<_ACEOF
5551 rm -f conftest.$ac_objext
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553 (eval $ac_compile) 2>conftest.er1
5555 grep -v '^ *+' conftest.er1 >conftest.err
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } &&
5560 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5580 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5583 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5584 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5586 ac_test_FFLAGS=${FFLAGS+set}
5587 ac_save_FFLAGS=$FFLAGS
5589 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5590 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5591 if test "${ac_cv_prog_f77_g+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 cat >conftest.$ac_ext <<_ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_prog_f77_g=yes
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5631 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5632 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5633 if test "$ac_test_FFLAGS" = set; then
5634 FFLAGS=$ac_save_FFLAGS
5635 elif test $ac_cv_prog_f77_g = yes; then
5636 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5642 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5649 G77=`test $ac_compiler_gnu = yes && echo yes`
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5660 # find the maximum length of command line arguments
5661 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5662 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5663 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 # On DJGPP, this test can blow up pretty badly due to problems in libc
5672 # (any single argument exceeding 2000 bytes causes a buffer overrun
5673 # during glob expansion). Even if it were fixed, the result of this
5674 # check would be larger than it should be.
5675 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5679 # Under GNU Hurd, this test is not required because there is
5680 # no limit to the length of command line arguments.
5681 # Libtool will interpret -1 as no limit whatsoever
5682 lt_cv_sys_max_cmd_len=-1;
5686 # On Win9x/ME, this test blows up -- it succeeds, but takes
5687 # about 5 minutes as the teststring grows exponentially.
5688 # Worse, since 9x/ME are not pre-emptively multitasking,
5689 # you end up with a "frozen" computer, even though with patience
5690 # the test eventually succeeds (with a max line length of 256k).
5691 # Instead, let's just punt: use the minimum linelength reported by
5692 # all of the supported platforms: 8192 (on NT/2K/XP).
5693 lt_cv_sys_max_cmd_len=8192;
5697 # On AmigaOS with pdksh, this test takes hours, literally.
5698 # So we just punt and use a minimum line length of 8192.
5699 lt_cv_sys_max_cmd_len=8192;
5703 # If test is not a shell built-in, we'll probably end up computing a
5704 # maximum length that is only half of the actual maximum length, but
5706 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5707 = "XX$teststring") >/dev/null 2>&1 &&
5708 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5709 lt_cv_sys_max_cmd_len=$new_result &&
5710 test $i != 17 # 1/2 MB should be enough
5713 teststring=$teststring$teststring
5716 # Add a significant safety factor because C++ compilers can tack on massive
5717 # amounts of additional arguments before passing them to the linker.
5718 # It appears as though 1/2 is a usable value.
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5725 if test -n $lt_cv_sys_max_cmd_len ; then
5726 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5727 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5729 echo "$as_me:$LINENO: result: none" >&5
5730 echo "${ECHO_T}none" >&6
5736 # Check for command to grab the raw symbol name followed by C symbol from nm.
5737 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5738 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5739 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 # These are sane defaults that work on at least a few old systems.
5744 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5746 # Character class describing NM global symbol codes.
5747 symcode='[BCDEGRST]'
5749 # Regexp to match symbols that can be accessed directly from C.
5750 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5752 # Transform the above into a raw symbol and a C symbol.
5753 symxfrm='\1 \2\3 \3'
5755 # Transform an extracted symbol line into a proper C declaration
5756 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5758 # Transform an extracted symbol line into symbol name and symbol address
5759 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'"
5761 # Define system-specific variables.
5766 cygwin* | mingw* | pw32*)
5767 symcode='[ABCDGISTW]'
5769 hpux*) # Its linker distinguishes data from code symbols
5770 if test "$host_cpu" = ia64; then
5771 symcode='[ABCDEGRST]'
5773 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5774 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'"
5777 symcode='[BCDEGRST]'
5780 symcode='[BCDEGQRST]'
5790 # Handle CRLF in mingw tool chain
5794 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5798 # If we're using GNU nm, then use its standard symbol codes.
5799 case `$NM -V 2>&1` in
5800 *GNU* | *'with BFD'*)
5801 symcode='[ABCDGIRSTW]' ;;
5804 # Try without a prefix undercore, then with it.
5805 for ac_symprfx in "" "_"; do
5807 # Write the raw and C identifiers.
5808 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5810 # Check to see that the pipe works correctly.
5814 cat > conftest.$ac_ext <<EOF
5819 void nm_test_func(){}
5823 int main(){nm_test_var='a';nm_test_func();return(0);}
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; then
5831 # Now try to grab the symbols.
5833 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5834 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } && test -s "$nlist"; then
5838 # Try sorting and uniquifying the output.
5839 if sort "$nlist" | uniq > "$nlist"T; then
5840 mv -f "$nlist"T "$nlist"
5845 # Make sure that we snagged all the symbols we need.
5846 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5847 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5848 cat <<EOF > conftest.$ac_ext
5854 # Now generate the symbol file.
5855 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5857 cat <<EOF >> conftest.$ac_ext
5858 #if defined (__STDC__) && __STDC__
5859 # define lt_ptr_t void *
5861 # define lt_ptr_t char *
5865 /* The mapping between symbol names and symbols. */
5870 lt_preloaded_symbols[] =
5873 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5874 cat <<\EOF >> conftest.$ac_ext
5882 # Now try linking the two files.
5883 mv conftest.$ac_objext conftstm.$ac_objext
5884 lt_save_LIBS="$LIBS"
5885 lt_save_CFLAGS="$CFLAGS"
5886 LIBS="conftstm.$ac_objext"
5887 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5889 (eval $ac_link) 2>&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5895 LIBS="$lt_save_LIBS"
5896 CFLAGS="$lt_save_CFLAGS"
5898 echo "cannot find nm_test_func in $nlist" >&5
5901 echo "cannot find nm_test_var in $nlist" >&5
5904 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5907 echo "$progname: failed program was:" >&5
5908 cat conftest.$ac_ext >&5
5910 rm -f conftest* conftst*
5912 # Do not use the global_symbol_pipe unless it works.
5913 if test "$pipe_works" = yes; then
5916 lt_cv_sys_global_symbol_pipe=
5922 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5923 lt_cv_sys_global_symbol_to_cdecl=
5925 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5926 echo "$as_me:$LINENO: result: failed" >&5
5927 echo "${ECHO_T}failed" >&6
5929 echo "$as_me:$LINENO: result: ok" >&5
5930 echo "${ECHO_T}ok" >&6
5933 echo "$as_me:$LINENO: checking for objdir" >&5
5934 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5935 if test "${lt_cv_objdir+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 rm -f .libs 2>/dev/null
5939 mkdir .libs 2>/dev/null
5940 if test -d .libs; then
5943 # MS-DOS does not allow filenames that begin with a dot.
5946 rmdir .libs 2>/dev/null
5948 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5949 echo "${ECHO_T}$lt_cv_objdir" >&6
5950 objdir=$lt_cv_objdir
5958 # AIX sometimes has problems with the GCC collect2 program. For some
5959 # reason, if we set the COLLECT_NAMES environment variable, the problems
5960 # vanish in a puff of smoke.
5961 if test "X${COLLECT_NAMES+set}" != Xset; then
5963 export COLLECT_NAMES
5968 # Sed substitution that helps us do robust quoting. It backslashifies
5969 # metacharacters that are still active within double-quoted strings.
5970 Xsed='sed -e s/^X//'
5971 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5973 # Same as above, but do not quote variable references.
5974 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5976 # Sed substitution to delay expansion of an escaped shell variable in a
5977 # double_quote_subst'ed string.
5978 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5980 # Sed substitution to avoid accidental globbing in evaled expressions
5981 no_glob_subst='s/\*/\\\*/g'
5987 default_ofile=libtool
5988 can_build_shared=yes
5990 # All known linkers require a `.a' archive for static linking (except M$VC,
5991 # which needs '.lib').
5993 ltmain="$ac_aux_dir/ltmain.sh"
5994 ofile="$default_ofile"
5995 with_gnu_ld="$lt_cv_prog_gnu_ld"
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}ar; ac_word=$2
6000 echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6002 if test "${ac_cv_prog_AR+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$AR"; then
6006 ac_cv_prog_AR="$AR" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015 ac_cv_prog_AR="${ac_tool_prefix}ar"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 if test -n "$AR"; then
6026 echo "$as_me:$LINENO: result: $AR" >&5
6027 echo "${ECHO_T}$AR" >&6
6029 echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6034 if test -z "$ac_cv_prog_AR"; then
6036 # Extract the first word of "ar", so it can be a program name with args.
6037 set dummy ar; ac_word=$2
6038 echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 if test -n "$ac_ct_AR"; then
6044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_prog_ac_ct_AR="ar"
6054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6063 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6064 if test -n "$ac_ct_AR"; then
6065 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6066 echo "${ECHO_T}$ac_ct_AR" >&6
6068 echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6080 echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6082 if test "${ac_cv_prog_RANLIB+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 if test -n "$RANLIB"; then
6086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 RANLIB=$ac_cv_prog_RANLIB
6105 if test -n "$RANLIB"; then
6106 echo "$as_me:$LINENO: result: $RANLIB" >&5
6107 echo "${ECHO_T}$RANLIB" >&6
6109 echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6
6114 if test -z "$ac_cv_prog_RANLIB"; then
6115 ac_ct_RANLIB=$RANLIB
6116 # Extract the first word of "ranlib", so it can be a program name with args.
6117 set dummy ranlib; ac_word=$2
6118 echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 if test -n "$ac_ct_RANLIB"; then
6124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_ac_ct_RANLIB="ranlib"
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6144 if test -n "$ac_ct_RANLIB"; then
6145 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6146 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6148 echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6
6152 RANLIB=$ac_ct_RANLIB
6154 RANLIB="$ac_cv_prog_RANLIB"
6157 if test -n "$ac_tool_prefix"; then
6158 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6159 set dummy ${ac_tool_prefix}strip; ac_word=$2
6160 echo "$as_me:$LINENO: checking for $ac_word" >&5
6161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6162 if test "${ac_cv_prog_STRIP+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 if test -n "$STRIP"; then
6166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 STRIP=$ac_cv_prog_STRIP
6185 if test -n "$STRIP"; then
6186 echo "$as_me:$LINENO: result: $STRIP" >&5
6187 echo "${ECHO_T}$STRIP" >&6
6189 echo "$as_me:$LINENO: result: no" >&5
6190 echo "${ECHO_T}no" >&6
6194 if test -z "$ac_cv_prog_STRIP"; then
6196 # Extract the first word of "strip", so it can be a program name with args.
6197 set dummy strip; ac_word=$2
6198 echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 if test -n "$ac_ct_STRIP"; then
6204 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_ac_ct_STRIP="strip"
6214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6224 if test -n "$ac_ct_STRIP"; then
6225 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6226 echo "${ECHO_T}$ac_ct_STRIP" >&6
6228 echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6
6234 STRIP="$ac_cv_prog_STRIP"
6239 old_CFLAGS="$CFLAGS"
6241 # Set sane defaults for various variables
6242 test -z "$AR" && AR=ar
6243 test -z "$AR_FLAGS" && AR_FLAGS=cru
6244 test -z "$AS" && AS=as
6245 test -z "$CC" && CC=cc
6246 test -z "$LTCC" && LTCC=$CC
6247 test -z "$DLLTOOL" && DLLTOOL=dlltool
6248 test -z "$LD" && LD=ld
6249 test -z "$LN_S" && LN_S="ln -s"
6250 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6251 test -z "$NM" && NM=nm
6252 test -z "$SED" && SED=sed
6253 test -z "$OBJDUMP" && OBJDUMP=objdump
6254 test -z "$RANLIB" && RANLIB=:
6255 test -z "$STRIP" && STRIP=:
6256 test -z "$ac_objext" && ac_objext=o
6258 # Determine commands to create old-style static archives.
6259 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6260 old_postinstall_cmds='chmod 644 $oldlib'
6261 old_postuninstall_cmds=
6263 if test -n "$RANLIB"; then
6266 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6269 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6272 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6275 # Only perform the check for file, if the check method requires it
6276 case $deplibs_check_method in
6278 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6279 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6280 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6281 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6289 lt_save_MAGIC_CMD="$MAGIC_CMD"
6290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6291 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6292 for ac_dir in $ac_dummy; do
6294 test -z "$ac_dir" && ac_dir=.
6295 if test -f $ac_dir/${ac_tool_prefix}file; then
6296 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6297 if test -n "$file_magic_test_file"; then
6298 case $deplibs_check_method in
6300 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6302 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6303 $EGREP "$file_magic_regex" > /dev/null; then
6308 *** Warning: the command libtool uses to detect shared libraries,
6309 *** $file_magic_cmd, produces output that libtool cannot recognize.
6310 *** The result is that libtool may fail to recognize shared libraries
6311 *** as such. This will affect the creation of libtool libraries that
6312 *** depend on shared libraries, but programs linked with such libtool
6313 *** libraries will work regardless of this problem. Nevertheless, you
6314 *** may want to report the problem to your system manager and/or to
6315 *** bug-libtool@gnu.org
6325 MAGIC_CMD="$lt_save_MAGIC_CMD"
6330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6331 if test -n "$MAGIC_CMD"; then
6332 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6333 echo "${ECHO_T}$MAGIC_CMD" >&6
6335 echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6
6339 if test -z "$lt_cv_path_MAGIC_CMD"; then
6340 if test -n "$ac_tool_prefix"; then
6341 echo "$as_me:$LINENO: checking for file" >&5
6342 echo $ECHO_N "checking for file... $ECHO_C" >&6
6343 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6351 lt_save_MAGIC_CMD="$MAGIC_CMD"
6352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6353 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6354 for ac_dir in $ac_dummy; do
6356 test -z "$ac_dir" && ac_dir=.
6357 if test -f $ac_dir/file; then
6358 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6359 if test -n "$file_magic_test_file"; then
6360 case $deplibs_check_method in
6362 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6364 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6365 $EGREP "$file_magic_regex" > /dev/null; then
6370 *** Warning: the command libtool uses to detect shared libraries,
6371 *** $file_magic_cmd, produces output that libtool cannot recognize.
6372 *** The result is that libtool may fail to recognize shared libraries
6373 *** as such. This will affect the creation of libtool libraries that
6374 *** depend on shared libraries, but programs linked with such libtool
6375 *** libraries will work regardless of this problem. Nevertheless, you
6376 *** may want to report the problem to your system manager and/or to
6377 *** bug-libtool@gnu.org
6387 MAGIC_CMD="$lt_save_MAGIC_CMD"
6392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6393 if test -n "$MAGIC_CMD"; then
6394 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6395 echo "${ECHO_T}$MAGIC_CMD" >&6
6397 echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6
6413 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6414 if test "${enable_libtool_lock+set}" = set; then
6415 enableval="$enable_libtool_lock"
6418 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6421 # Check whether --with-pic or --without-pic was given.
6422 if test "${with_pic+set}" = set; then
6428 test -z "$pic_mode" && pic_mode=default
6430 # Use C for the default configuration in the libtool script
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6440 # Source file extension for C test sources.
6443 # Object file extension for compiled C test sources.
6447 # Code to be used in simple compile tests
6448 lt_simple_compile_test_code="int some_variable = 0;\n"
6450 # Code to be used in simple link tests
6451 lt_simple_link_test_code='int main(){return(0);}\n'
6454 # If no C compiler was specified, use CC.
6457 # Allow CC to be a program name with arguments.
6462 # Check for any special shared library compilation flags.
6465 if test "$GCC" = no; then
6468 lt_prog_cc_shlib='-belf'
6472 if test -n "$lt_prog_cc_shlib"; then
6473 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6474 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6475 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6477 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6478 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6479 lt_cv_prog_cc_can_build_shared=no
6485 # Check to make sure the static flag actually works.
6487 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6488 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6489 if test "${lt_prog_compiler_static_works+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 lt_prog_compiler_static_works=no
6493 save_LDFLAGS="$LDFLAGS"
6494 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6495 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6497 # The compiler can only warn and ignore the option if not recognized
6498 # So say no if there are warnings
6499 if test -s conftest.err; then
6500 # Append any errors to the config.log.
6501 cat conftest.err 1>&5
6503 lt_prog_compiler_static_works=yes
6507 LDFLAGS="$save_LDFLAGS"
6510 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6511 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6513 if test x"$lt_prog_compiler_static_works" = xyes; then
6516 lt_prog_compiler_static=
6522 lt_prog_compiler_no_builtin_flag=
6524 if test "$GCC" = yes; then
6525 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6528 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6529 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6530 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 lt_cv_prog_compiler_rtti_exceptions=no
6534 ac_outfile=conftest.$ac_objext
6535 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6536 lt_compiler_flag="-fno-rtti -fno-exceptions"
6537 # Insert the option either (1) after the last *FLAGS variable, or
6538 # (2) before a word containing "conftest.", or (3) at the end.
6539 # Note that $ac_compile itself does not contain backslashes and begins
6540 # with a dollar sign (not a hyphen), so the echo should work correctly.
6541 # The option is referenced via a variable to avoid confusing sed.
6542 lt_compile=`echo "$ac_compile" | $SED \
6543 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6545 -e 's:$: $lt_compiler_flag:'`
6546 (eval echo "\"\$as_me:6546: $lt_compile\"" >&5)
6547 (eval "$lt_compile" 2>conftest.err)
6549 cat conftest.err >&5
6550 echo "$as_me:6550: \$? = $ac_status" >&5
6551 if (exit $ac_status) && test -s "$ac_outfile"; then
6552 # The compiler can only warn and ignore the option if not recognized
6553 # So say no if there are warnings
6554 if test ! -s conftest.err; then
6555 lt_cv_prog_compiler_rtti_exceptions=yes
6561 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6562 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6565 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6572 lt_prog_compiler_wl=
6573 lt_prog_compiler_pic=
6574 lt_prog_compiler_static=
6576 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6577 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6579 if test "$GCC" = yes; then
6580 lt_prog_compiler_wl='-Wl,'
6581 lt_prog_compiler_static='-static'
6585 # All AIX code is PIC.
6586 if test "$host_cpu" = ia64; then
6587 # AIX 5 now supports IA64 processor
6588 lt_prog_compiler_static='-Bstatic'
6593 # FIXME: we need at least 68020 code to build shared libraries, but
6594 # adding the `-m68020' flag to GCC prevents building anything better,
6596 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6599 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6600 # PIC is the default for these OSes.
6603 mingw* | pw32* | os2*)
6604 # This hack is so that the source file can tell whether it is being
6605 # built for inclusion in a dll (and should export symbols for example).
6606 lt_prog_compiler_pic='-DDLL_EXPORT'
6609 darwin* | rhapsody*)
6610 # PIC is the default on this platform
6611 # Common symbols not allowed in MH_DYLIB files
6612 lt_prog_compiler_pic='-fno-common'
6616 # Just because we use GCC doesn't mean we suddenly get shared libraries
6617 # on systems that don't support them.
6618 lt_prog_compiler_can_build_shared=no
6623 if test -d /usr/nec; then
6624 lt_prog_compiler_pic=-Kconform_pic
6629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6636 lt_prog_compiler_pic='-fPIC'
6642 lt_prog_compiler_pic='-fPIC'
6646 # PORTME Check for flag to pass linker flags through the system compiler.
6649 lt_prog_compiler_wl='-Wl,'
6650 if test "$host_cpu" = ia64; then
6651 # AIX 5 now supports IA64 processor
6652 lt_prog_compiler_static='-Bstatic'
6654 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6658 mingw* | pw32* | os2*)
6659 # This hack is so that the source file can tell whether it is being
6660 # built for inclusion in a dll (and should export symbols for example).
6661 lt_prog_compiler_pic='-DDLL_EXPORT'
6664 hpux9* | hpux10* | hpux11*)
6665 lt_prog_compiler_wl='-Wl,'
6666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6673 lt_prog_compiler_pic='+Z'
6676 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6677 lt_prog_compiler_static='${wl}-a ${wl}archive'
6680 irix5* | irix6* | nonstopux*)
6681 lt_prog_compiler_wl='-Wl,'
6682 # PIC (with -KPIC) is the default.
6683 lt_prog_compiler_static='-non_shared'
6687 lt_prog_compiler_pic='-KPIC'
6688 lt_prog_compiler_static='-Bstatic'
6694 lt_prog_compiler_wl='-Wl,'
6695 lt_prog_compiler_pic='-KPIC'
6696 lt_prog_compiler_static='-static'
6699 lt_prog_compiler_wl='-Wl,'
6700 # All Alpha code is PIC.
6701 lt_prog_compiler_static='-non_shared'
6706 osf3* | osf4* | osf5*)
6707 lt_prog_compiler_wl='-Wl,'
6708 # All OSF/1 code is PIC.
6709 lt_prog_compiler_static='-non_shared'
6713 lt_prog_compiler_pic='-Kpic'
6714 lt_prog_compiler_static='-dn'
6718 lt_prog_compiler_wl='-Wl,'
6719 lt_prog_compiler_pic='-KPIC'
6720 lt_prog_compiler_static='-Bstatic'
6724 lt_prog_compiler_wl='-Qoption ld '
6725 lt_prog_compiler_pic='-PIC'
6726 lt_prog_compiler_static='-Bstatic'
6729 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6730 lt_prog_compiler_wl='-Wl,'
6731 lt_prog_compiler_pic='-KPIC'
6732 lt_prog_compiler_static='-Bstatic'
6736 if test -d /usr/nec ;then
6737 lt_prog_compiler_pic='-Kconform_pic'
6738 lt_prog_compiler_static='-Bstatic'
6743 lt_prog_compiler_pic='-pic'
6744 lt_prog_compiler_static='-Bstatic'
6748 lt_prog_compiler_can_build_shared=no
6753 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6754 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6757 # Check to make sure the PIC flag actually works.
6759 if test -n "$lt_prog_compiler_pic"; then
6761 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6763 if test "${lt_prog_compiler_pic_works+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 lt_prog_compiler_pic_works=no
6767 ac_outfile=conftest.$ac_objext
6768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6769 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6770 # Insert the option either (1) after the last *FLAGS variable, or
6771 # (2) before a word containing "conftest.", or (3) at the end.
6772 # Note that $ac_compile itself does not contain backslashes and begins
6773 # with a dollar sign (not a hyphen), so the echo should work correctly.
6774 # The option is referenced via a variable to avoid confusing sed.
6775 lt_compile=`echo "$ac_compile" | $SED \
6776 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6778 -e 's:$: $lt_compiler_flag:'`
6779 (eval echo "\"\$as_me:6779: $lt_compile\"" >&5)
6780 (eval "$lt_compile" 2>conftest.err)
6782 cat conftest.err >&5
6783 echo "$as_me:6783: \$? = $ac_status" >&5
6784 if (exit $ac_status) && test -s "$ac_outfile"; then
6785 # The compiler can only warn and ignore the option if not recognized
6786 # So say no if there are warnings
6787 if test ! -s conftest.err; then
6788 lt_prog_compiler_pic_works=yes
6794 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6795 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6797 if test x"$lt_prog_compiler_pic_works" = xyes; then
6798 case $lt_prog_compiler_pic in
6800 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6803 lt_prog_compiler_pic=
6804 lt_prog_compiler_can_build_shared=no
6809 # For platforms which do not support PIC, -DPIC is meaningless:
6811 lt_prog_compiler_pic=
6814 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6818 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6819 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6820 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 lt_cv_prog_compiler_c_o=no
6824 $rm -r conftest 2>/dev/null
6828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6830 lt_compiler_flag="-o out/conftest2.$ac_objext"
6831 # Insert the option either (1) after the last *FLAGS variable, or
6832 # (2) before a word containing "conftest.", or (3) at the end.
6833 # Note that $ac_compile itself does not contain backslashes and begins
6834 # with a dollar sign (not a hyphen), so the echo should work correctly.
6835 lt_compile=`echo "$ac_compile" | $SED \
6836 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6838 -e 's:$: $lt_compiler_flag:'`
6839 (eval echo "\"\$as_me:6839: $lt_compile\"" >&5)
6840 (eval "$lt_compile" 2>out/conftest.err)
6842 cat out/conftest.err >&5
6843 echo "$as_me:6843: \$? = $ac_status" >&5
6844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6846 # The compiler can only warn and ignore the option if not recognized
6847 # So say no if there are warnings
6848 if test ! -s out/conftest.err; then
6849 lt_cv_prog_compiler_c_o=yes
6854 # SGI C++ compiler will create directory out/ii_files/ for
6855 # template instantiation
6856 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6857 $rm out/* && rmdir out
6863 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6864 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6867 hard_links="nottested"
6868 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6869 # do not overwrite the value of need_locks provided by the user
6870 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6871 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6876 ln conftest.a conftest.b 2>&5 || hard_links=no
6877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6878 echo "$as_me:$LINENO: result: $hard_links" >&5
6879 echo "${ECHO_T}$hard_links" >&6
6880 if test "$hard_links" = no; then
6881 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6882 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6889 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6890 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6893 allow_undefined_flag=
6894 enable_shared_with_static_runtimes=no
6896 archive_expsym_cmds=
6897 old_archive_From_new_cmds=
6898 old_archive_from_expsyms_cmds=
6899 export_dynamic_flag_spec=
6900 whole_archive_flag_spec=
6901 thread_safe_flag_spec=
6902 hardcode_libdir_flag_spec=
6903 hardcode_libdir_flag_spec_ld=
6904 hardcode_libdir_separator=
6907 hardcode_shlibpath_var=unsupported
6908 link_all_deplibs=unknown
6909 hardcode_automatic=no
6912 always_export_symbols=no
6913 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6914 # include_expsyms should be a list of space-separated symbols to be *always*
6915 # included in the symbol list
6917 # exclude_expsyms can be an extended regexp of symbols to exclude
6918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6920 # as well as any symbol that contains `d'.
6921 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6923 # platforms (ab)use it in PIC code, but their linkers get confused if
6924 # the symbol is explicitly referenced. Since portable code cannot
6925 # rely on this symbol name, it's probably fine to never include it in
6926 # preloaded symbol tables.
6927 extract_expsyms_cmds=
6930 cygwin* | mingw* | pw32*)
6931 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6932 # When not using gcc, we currently assume that we are using
6933 # Microsoft Visual C++.
6934 if test "$GCC" != yes; then
6944 if test "$with_gnu_ld" = yes; then
6945 # If archive_cmds runs LD, not CC, wlarc should be empty
6948 # See if GNU ld supports shared libraries.
6950 aix3* | aix4* | aix5*)
6951 # On AIX/PPC, the GNU linker is very broken
6952 if test "$host_cpu" != ia64; then
6956 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6957 *** to be unable to reliably create shared libraries on AIX.
6958 *** Therefore, libtool is disabling shared libraries support. If you
6959 *** really care for shared libraries, you may want to modify your PATH
6960 *** so that a non-GNU linker is found, and then restart.
6967 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)'
6968 hardcode_libdir_flag_spec='-L$libdir'
6969 hardcode_minus_L=yes
6971 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6972 # that the semantics of dynamic libraries on AmigaOS, at least up
6973 # to version 4, is to share data among multiple programs linked
6974 # with the same dynamic library. Since this doesn't match the
6975 # behavior of shared libraries on other platforms, we can't use
6981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6982 allow_undefined_flag=unsupported
6983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6984 # support --undefined. This deserves some investigation. FIXME
6985 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6991 cygwin* | mingw* | pw32*)
6992 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6993 # as there is no search path for DLLs.
6994 hardcode_libdir_flag_spec='-L$libdir'
6995 allow_undefined_flag=unsupported
6996 always_export_symbols=no
6997 enable_shared_with_static_runtimes=yes
6998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7000 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7002 # If the export-symbols file already is a .def file (1st line
7003 # is EXPORTS), use it as is; otherwise, prepend...
7004 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7005 cp $export_symbols $output_objdir/$soname.def;
7007 echo EXPORTS > $output_objdir/$soname.def;
7008 cat $export_symbols >> $output_objdir/$soname.def;
7010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7016 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7018 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7027 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7031 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7032 *** create shared libraries on Solaris systems. Therefore, libtool
7033 *** is disabling shared libraries support. We urge you to upgrade GNU
7034 *** binutils to release 2.9.1 or newer. Another option is to modify
7035 *** your PATH or compiler configuration so that the native linker is
7036 *** used, and then restart.
7039 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7048 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7051 hardcode_shlibpath_var=no
7055 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7056 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7057 archive_cmds="$tmp_archive_cmds"
7058 supports_anon_versioning=no
7059 case `$LD -v 2>/dev/null` in
7060 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7063 *\ 2.11.*) ;; # other 2.11 versions
7064 *) supports_anon_versioning=yes ;;
7066 if test $supports_anon_versioning = yes; then
7067 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7069 $echo "local: *; };" >> $output_objdir/$libname.ver~
7070 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7072 archive_expsym_cmds="$tmp_archive_cmds"
7081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7090 if test "$ld_shlibs" = yes; then
7091 runpath_var=LD_RUN_PATH
7092 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7093 export_dynamic_flag_spec='${wl}--export-dynamic'
7094 # ancient GNU ld didn't support --whole-archive et. al.
7095 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7096 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7098 whole_archive_flag_spec=
7102 # PORTME fill in a description of your system's linker (not GNU ld)
7105 allow_undefined_flag=unsupported
7106 always_export_symbols=yes
7107 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'
7108 # Note: this linker hardcodes the directories in LIBPATH if there
7109 # are no directories specified by -L.
7110 hardcode_minus_L=yes
7111 if test "$GCC" = yes && test -z "$link_static_flag"; then
7112 # Neither direct hardcoding nor static linking is supported with a
7114 hardcode_direct=unsupported
7119 if test "$host_cpu" = ia64; then
7120 # On IA64, the linker does run time linking by default, so we don't
7121 # have to do anything special.
7122 aix_use_runtimelinking=no
7123 exp_sym_flag='-Bexport'
7126 # If we're using GNU nm, then we don't want the "-C" option.
7127 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7128 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7129 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'
7131 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'
7133 aix_use_runtimelinking=no
7135 # Test if we are trying to use run time linking or normal
7136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7137 # need to do runtime linking.
7138 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7139 for ld_flag in $LDFLAGS; do
7140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7141 aix_use_runtimelinking=yes
7147 exp_sym_flag='-bexport'
7148 no_entry_flag='-bnoentry'
7151 # When large executables or shared objects are built, AIX ld can
7152 # have problems creating the table of contents. If linking a library
7153 # or program results in "error TOC overflow" add -mminimal-toc to
7154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7159 hardcode_libdir_separator=':'
7160 link_all_deplibs=yes
7162 if test "$GCC" = yes; then
7163 case $host_os in aix4.012|aix4.012.*)
7164 # We only want to do this on AIX 4.2 and lower, the check
7165 # below for broken collect2 doesn't work under 4.3+
7166 collect2name=`${CC} -print-prog-name=collect2`
7167 if test -f "$collect2name" && \
7168 strings "$collect2name" | grep resolve_lib_name >/dev/null
7170 # We have reworked collect2
7173 # We have old collect2
7174 hardcode_direct=unsupported
7175 # It fails to find uninstalled libraries when the uninstalled
7176 # path is not listed in the libpath. Setting hardcode_minus_L
7177 # to unsupported forces relinking
7178 hardcode_minus_L=yes
7179 hardcode_libdir_flag_spec='-L$libdir'
7180 hardcode_libdir_separator=
7183 shared_flag='-shared'
7186 if test "$host_cpu" = ia64; then
7187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7188 # chokes on -Wl,-G. The following line is correct:
7191 if test "$aix_use_runtimelinking" = yes; then
7192 shared_flag='${wl}-G'
7194 shared_flag='${wl}-bM:SRE'
7199 # It seems that -bexpall does not export symbols beginning with
7200 # underscore (_), so it is better to generate a list of symbols to export.
7201 always_export_symbols=yes
7202 if test "$aix_use_runtimelinking" = yes; then
7203 # Warning - without using the other runtime loading flags (-brtl),
7204 # -berok will link without error, but may produce a broken library.
7205 allow_undefined_flag='-berok'
7206 # Determine the default libpath from the value encoded in an empty executable.
7207 cat >conftest.$ac_ext <<_ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7222 rm -f conftest.$ac_objext conftest$ac_exeext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7224 (eval $ac_link) 2>conftest.er1
7226 grep -v '^ *+' conftest.er1 >conftest.err
7228 cat conftest.err >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } &&
7231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; } &&
7237 { ac_try='test -s conftest$ac_exeext'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; }; then
7244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7246 # Check for a 64-bit object if we didn't find anything.
7247 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; }
7250 echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7254 rm -f conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7258 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7259 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"
7261 if test "$host_cpu" = ia64; then
7262 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7263 allow_undefined_flag="-z nodefs"
7264 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"
7266 # Determine the default libpath from the value encoded in an empty executable.
7267 cat >conftest.$ac_ext <<_ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7282 rm -f conftest.$ac_objext conftest$ac_exeext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7284 (eval $ac_link) 2>conftest.er1
7286 grep -v '^ *+' conftest.er1 >conftest.err
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } &&
7291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest$ac_exeext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7306 # Check for a 64-bit object if we didn't find anything.
7307 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; }
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7314 rm -f conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7318 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7319 # Warning - without using the other run time loading flags,
7320 # -berok will link without error, but may produce a broken library.
7321 no_undefined_flag=' ${wl}-bernotok'
7322 allow_undefined_flag=' ${wl}-berok'
7323 # -bexpall does not export symbols beginning with underscore (_)
7324 always_export_symbols=yes
7325 # Exported symbols can be pulled into shared objects from archives
7326 whole_archive_flag_spec=' '
7327 archive_cmds_need_lc=yes
7328 # This is similar to how AIX traditionally builds it's shared libraries.
7329 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'
7335 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)'
7336 hardcode_libdir_flag_spec='-L$libdir'
7337 hardcode_minus_L=yes
7338 # see comment about different semantics on the GNU ld section
7343 export_dynamic_flag_spec=-rdynamic
7346 cygwin* | mingw* | pw32*)
7347 # When not using gcc, we currently assume that we are using
7348 # Microsoft Visual C++.
7349 # hardcode_libdir_flag_spec is actually meaningless, as there is
7350 # no search path for DLLs.
7351 hardcode_libdir_flag_spec=' '
7352 allow_undefined_flag=unsupported
7353 # Tell ltmain to make .lib files, not .a files.
7355 # Tell ltmain to make .dll files, not .so files.
7357 # FIXME: Setting linknames here is a bad hack.
7358 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7359 # The linker will automatically build a .lib file if we build a DLL.
7360 old_archive_From_new_cmds='true'
7361 # FIXME: Should let the user specify the lib program.
7362 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7363 fix_srcfile_path='`cygpath -w "$srcfile"`'
7364 enable_shared_with_static_runtimes=yes
7367 darwin* | rhapsody*)
7368 if test "$GXX" = yes ; then
7369 archive_cmds_need_lc=no
7371 rhapsody* | darwin1.[012])
7372 allow_undefined_flag='-undefined suppress'
7375 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7376 allow_undefined_flag='-flat_namespace -undefined suppress'
7378 case ${MACOSX_DEPLOYMENT_TARGET} in
7380 allow_undefined_flag='-flat_namespace -undefined suppress'
7383 allow_undefined_flag='-undefined dynamic_lookup'
7389 lt_int_apple_cc_single_mod=no
7390 output_verbose_link_cmd='echo'
7391 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7392 lt_int_apple_cc_single_mod=yes
7394 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7395 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7397 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'
7399 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7400 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7401 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7402 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}'
7404 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}'
7406 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}'
7408 hardcode_automatic=yes
7409 hardcode_shlibpath_var=unsupported
7410 whole_archive_flag_spec='-all_load $convenience'
7411 link_all_deplibs=yes
7418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7419 hardcode_libdir_flag_spec='-L$libdir'
7420 hardcode_shlibpath_var=no
7427 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7428 # support. Future versions do this automatically, but an explicit c++rt0.o
7429 # does not break anything, and helps significantly (at the cost of a little
7432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7433 hardcode_libdir_flag_spec='-R$libdir'
7435 hardcode_shlibpath_var=no
7438 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7442 hardcode_minus_L=yes
7443 hardcode_shlibpath_var=no
7446 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7447 freebsd* | kfreebsd*-gnu)
7448 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7449 hardcode_libdir_flag_spec='-R$libdir'
7451 hardcode_shlibpath_var=no
7455 if test "$GCC" = yes; then
7456 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'
7458 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'
7460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7461 hardcode_libdir_separator=:
7464 # hardcode_minus_L: Not really in the search PATH,
7465 # but as the default location of the library.
7466 hardcode_minus_L=yes
7467 export_dynamic_flag_spec='${wl}-E'
7471 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7474 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7477 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7483 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7486 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7490 if test "$with_gnu_ld" = no; then
7493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7494 hardcode_libdir_flag_spec_ld='+b $libdir'
7495 hardcode_libdir_separator=:
7497 hardcode_shlibpath_var=no
7500 hardcode_libdir_flag_spec='-L$libdir'
7502 hardcode_shlibpath_var=no
7504 # hardcode_minus_L: Not really in the search PATH,
7505 # but as the default location of the library.
7506 hardcode_minus_L=yes
7509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7510 hardcode_libdir_separator=:
7512 export_dynamic_flag_spec='${wl}-E'
7514 # hardcode_minus_L: Not really in the search PATH,
7515 # but as the default location of the library.
7516 hardcode_minus_L=yes
7522 irix5* | irix6* | nonstopux*)
7523 if test "$GCC" = yes; then
7524 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'
7526 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'
7527 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7530 hardcode_libdir_separator=:
7531 link_all_deplibs=yes
7534 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7538 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7540 hardcode_libdir_flag_spec='-R$libdir'
7542 hardcode_shlibpath_var=no
7546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7549 hardcode_libdir_separator=:
7550 hardcode_shlibpath_var=no
7555 hardcode_shlibpath_var=no
7556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7559 export_dynamic_flag_spec='${wl}-E'
7562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7564 hardcode_libdir_flag_spec='-R$libdir'
7567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7575 hardcode_libdir_flag_spec='-L$libdir'
7576 hardcode_minus_L=yes
7577 allow_undefined_flag=unsupported
7578 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'
7579 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7583 if test "$GCC" = yes; then
7584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7585 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'
7587 allow_undefined_flag=' -expect_unresolved \*'
7588 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'
7590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7591 hardcode_libdir_separator=:
7594 osf4* | osf5*) # as osf3* with the addition of -msym flag
7595 if test "$GCC" = yes; then
7596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7597 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'
7598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7600 allow_undefined_flag=' -expect_unresolved \*'
7601 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'
7602 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7603 $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'
7605 # Both c and cxx compiler support -rpath directly
7606 hardcode_libdir_flag_spec='-rpath $libdir'
7608 hardcode_libdir_separator=:
7612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7613 hardcode_shlibpath_var=no
7614 export_dynamic_flag_spec='${wl}-Bexport'
7615 runpath_var=LD_RUN_PATH
7616 hardcode_runpath_var=yes
7620 no_undefined_flag=' -z text'
7621 if test "$GCC" = yes; then
7622 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7623 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7624 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7626 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7627 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7630 hardcode_libdir_flag_spec='-R$libdir'
7631 hardcode_shlibpath_var=no
7633 solaris2.[0-5] | solaris2.[0-5].*) ;;
7634 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7635 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7637 link_all_deplibs=yes
7641 if test "x$host_vendor" = xsequent; then
7642 # Use $CC to link under sequent, because it throws in some extra .o
7643 # files that make .init and .fini sections work.
7644 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7646 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7648 hardcode_libdir_flag_spec='-L$libdir'
7650 hardcode_minus_L=yes
7651 hardcode_shlibpath_var=no
7655 case $host_vendor in
7657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7658 hardcode_direct=yes # is this really true???
7661 ## LD is ld it makes a PLAMLIB
7662 ## CC just makes a GrossModule.
7663 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7664 reload_cmds='$CC -r -o $output$reload_objs'
7668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7669 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7672 runpath_var='LD_RUN_PATH'
7673 hardcode_shlibpath_var=no
7677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7678 hardcode_shlibpath_var=no
7679 export_dynamic_flag_spec='-Bexport'
7683 if test -d /usr/nec; then
7684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7685 hardcode_shlibpath_var=no
7686 runpath_var=LD_RUN_PATH
7687 hardcode_runpath_var=yes
7693 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7696 hardcode_shlibpath_var=no
7697 hardcode_runpath_var=yes
7698 runpath_var=LD_RUN_PATH
7701 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7702 no_undefined_flag='${wl}-z ${wl}text'
7703 if test "$GCC" = yes; then
7704 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7706 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7708 runpath_var='LD_RUN_PATH'
7709 hardcode_shlibpath_var=no
7713 no_undefined_flag=' -z text'
7714 # $CC -shared without GNU ld will not create a library from C++
7715 # object files and a static libstdc++, better avoid it by now
7716 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7717 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7718 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7719 hardcode_libdir_flag_spec=
7720 hardcode_shlibpath_var=no
7721 runpath_var='LD_RUN_PATH'
7725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7726 hardcode_libdir_flag_spec='-L$libdir'
7727 hardcode_shlibpath_var=no
7736 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7737 echo "${ECHO_T}$ld_shlibs" >&6
7738 test "$ld_shlibs" = no && can_build_shared=no
7740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7741 if test "$GCC" = yes; then
7742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7746 # Do we need to explicitly link libc?
7748 case "x$archive_cmds_need_lc" in
7750 # Assume -lc should be added
7751 archive_cmds_need_lc=yes
7753 if test "$enable_shared" = yes && test "$GCC" = yes; then
7754 case $archive_cmds in
7756 # FIXME: we may have to deal with multi-command sequences.
7759 # Test whether the compiler implicitly links with -lc since on some
7760 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7761 # to ld, don't add -lc before -lgcc.
7762 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7763 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7765 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768 (eval $ac_compile) 2>&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } 2>conftest.err; then
7774 libobjs=conftest.$ac_objext
7776 wl=$lt_prog_compiler_wl
7782 lt_save_allow_undefined_flag=$allow_undefined_flag
7783 allow_undefined_flag=
7784 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7785 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }
7790 archive_cmds_need_lc=no
7792 archive_cmds_need_lc=yes
7794 allow_undefined_flag=$lt_save_allow_undefined_flag
7796 cat conftest.err 1>&5
7799 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7800 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7807 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7808 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7810 libname_spec='lib$name'
7818 shlibpath_overrides_runpath=unknown
7820 dynamic_linker="$host_os ld.so"
7821 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7822 if test "$GCC" = yes; then
7823 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7824 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7825 # if the path contains ";" then we assume it to be the separator
7826 # otherwise default to the standard path separator (i.e. ":") - it is
7827 # assumed that no part of a normal pathname contains ";" but that should
7828 # okay in the real world where ";" in dirpaths is itself problematic.
7829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7834 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7836 need_lib_prefix=unknown
7837 hardcode_into_libs=no
7839 # when you set need_version to no, make sure it does not cause -set_version
7840 # flags to be left without arguments
7841 need_version=unknown
7846 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7847 shlibpath_var=LIBPATH
7849 # AIX 3 has no versioning support, so we append a major version to the name.
7850 soname_spec='${libname}${release}${shared_ext}$major'
7857 hardcode_into_libs=yes
7858 if test "$host_cpu" = ia64; then
7859 # AIX 5 supports IA64
7860 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7861 shlibpath_var=LD_LIBRARY_PATH
7863 # With GCC up to 2.95.x, collect2 would create an import file
7864 # for dependence libraries. The import file would start with
7865 # the line `#! .'. This would cause the generated library to
7866 # depend on `.', always an invalid library. This was fixed in
7867 # development snapshots of GCC prior to 3.0.
7869 aix4 | aix4.[01] | aix4.[01].*)
7870 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7872 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7879 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7880 # soname into executable. Probably we can add versioning support to
7881 # collect2, so additional links can be useful in future.
7882 if test "$aix_use_runtimelinking" = yes; then
7883 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7884 # instead of lib<name>.a to let people know that these are not
7885 # typical AIX shared libraries.
7886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888 # We preserve .a as extension for shared libraries through AIX4.2
7889 # and later when we are not doing run time linking.
7890 library_names_spec='${libname}${release}.a $libname.a'
7891 soname_spec='${libname}${release}${shared_ext}$major'
7893 shlibpath_var=LIBPATH
7898 library_names_spec='$libname.ixlibrary $libname.a'
7899 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7900 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'
7904 library_names_spec='${libname}${shared_ext}'
7905 dynamic_linker="$host_os ld.so"
7906 shlibpath_var=LIBRARY_PATH
7912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7913 soname_spec='${libname}${release}${shared_ext}$major'
7914 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7915 shlibpath_var=LD_LIBRARY_PATH
7916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7918 # the default ld.so.conf also contains /usr/contrib/lib and
7919 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7920 # libtool to hard-code these into programs
7923 cygwin* | mingw* | pw32*)
7924 version_type=windows
7929 case $GCC,$host_os in
7930 yes,cygwin* | yes,mingw* | yes,pw32*)
7931 library_names_spec='$libname.dll.a'
7932 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7933 postinstall_cmds='base_file=`basename \${file}`~
7934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7935 dldir=$destdir/`dirname \$dlpath`~
7936 test -d \$dldir || mkdir -p \$dldir~
7937 $install_prog $dir/$dlname \$dldir/$dlname'
7938 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7939 dlpath=$dir/\$dldll~
7941 shlibpath_overrides_runpath=yes
7945 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7946 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7947 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7950 # MinGW DLLs use traditional 'lib' prefix
7951 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7952 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7953 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7954 # It is most probably a Windows format PATH printed by
7955 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7956 # path with ; separators, and with drive letters. We can handle the
7957 # drive letters (cygwin fileutils understands them), so leave them,
7958 # especially as we might pass files found there to a mingw objdump,
7959 # which wouldn't understand a cygwinified path. Ahh.
7960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7966 # pw32 DLLs use 'pw' prefix rather than 'lib'
7967 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7973 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7976 dynamic_linker='Win32 ld.exe'
7977 # FIXME: first we should search . and the directory the executable is in
7981 darwin* | rhapsody*)
7982 dynamic_linker="$host_os dyld"
7986 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7987 soname_spec='${libname}${release}${major}$shared_ext'
7988 shlibpath_overrides_runpath=yes
7989 shlibpath_var=DYLD_LIBRARY_PATH
7990 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7991 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7992 if test "$GCC" = yes; then
7993 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"`
7995 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8005 soname_spec='${libname}${release}${shared_ext}$major'
8006 shlibpath_var=LD_LIBRARY_PATH
8017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8018 soname_spec='${libname}${release}${shared_ext}$major'
8019 shlibpath_var=LD_LIBRARY_PATH
8020 shlibpath_overrides_runpath=no
8021 hardcode_into_libs=yes
8022 dynamic_linker='GNU ld.so'
8026 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8027 version_type=freebsd-$objformat
8028 case $version_type in
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8039 shlibpath_var=LD_LIBRARY_PATH
8042 shlibpath_overrides_runpath=yes
8044 freebsd3.01* | freebsdelf3.01*)
8045 shlibpath_overrides_runpath=yes
8046 hardcode_into_libs=yes
8049 shlibpath_overrides_runpath=no
8050 hardcode_into_libs=yes
8059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8060 soname_spec='${libname}${release}${shared_ext}$major'
8061 shlibpath_var=LD_LIBRARY_PATH
8062 hardcode_into_libs=yes
8065 hpux9* | hpux10* | hpux11*)
8066 # Give a soname corresponding to the major version so that dld.sl refuses to
8067 # link against other versions.
8074 hardcode_into_libs=yes
8075 dynamic_linker="$host_os dld.so"
8076 shlibpath_var=LD_LIBRARY_PATH
8077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8079 soname_spec='${libname}${release}${shared_ext}$major'
8080 if test "X$HPUX_IA64_MODE" = X32; then
8081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8089 hardcode_into_libs=yes
8090 dynamic_linker="$host_os dld.sl"
8091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8094 soname_spec='${libname}${release}${shared_ext}$major'
8095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8100 dynamic_linker="$host_os dld.sl"
8101 shlibpath_var=SHLIB_PATH
8102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104 soname_spec='${libname}${release}${shared_ext}$major'
8107 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8108 postinstall_cmds='chmod 555 $lib'
8111 irix5* | irix6* | nonstopux*)
8113 nonstopux*) version_type=nonstopux ;;
8115 if test "$lt_cv_prog_gnu_ld" = yes; then
8123 soname_spec='${libname}${release}${shared_ext}$major'
8124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8126 irix5* | nonstopux*)
8130 case $LD in # libtool.m4 will add one of these switches to LD
8131 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8132 libsuff= shlibsuff= libmagic=32-bit;;
8133 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8134 libsuff=32 shlibsuff=N32 libmagic=N32;;
8135 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8136 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8137 *) libsuff= shlibsuff= libmagic=never-match;;
8141 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8142 shlibpath_overrides_runpath=no
8143 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8144 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8145 hardcode_into_libs=yes
8148 # No shared lib support for Linux oldld, aout, or coff.
8149 linux*oldld* | linux*aout* | linux*coff*)
8153 # This must be Linux ELF.
8158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8159 soname_spec='${libname}${release}${shared_ext}$major'
8160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8161 shlibpath_var=LD_LIBRARY_PATH
8162 shlibpath_overrides_runpath=no
8163 # This implies no fast_install, which is unacceptable.
8164 # Some rework will be needed to allow for fast_install
8165 # before this can be enabled.
8166 hardcode_into_libs=yes
8168 # Append ld.so.conf contents to the search path
8169 if test -f /etc/ld.so.conf; then
8170 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8171 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8174 # We used to test for /lib/ld.so.1 and disable shared libraries on
8175 # powerpc, because MkLinux only supported shared libraries with the
8176 # GNU dynamic linker. Since this was broken with cross compilers,
8177 # most powerpc-linux boxes support dynamic linking these days and
8178 # people can always --disable-shared, the test was removed, and we
8179 # assume the GNU/Linux dynamic linker is in use.
8180 dynamic_linker='GNU/Linux ld.so'
8187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8188 soname_spec='${libname}${release}${shared_ext}$major'
8189 shlibpath_var=LD_LIBRARY_PATH
8190 shlibpath_overrides_runpath=no
8191 hardcode_into_libs=yes
8192 dynamic_linker='NetBSD ld.elf_so'
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8200 soname_spec='${libname}${release}${shared_ext}$major'
8201 shlibpath_var=LD_LIBRARY_PATH
8202 shlibpath_overrides_runpath=no
8203 hardcode_into_libs=yes
8204 dynamic_linker='GNU ld.so'
8211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8214 dynamic_linker='NetBSD (a.out) ld.so'
8216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8217 soname_spec='${libname}${release}${shared_ext}$major'
8218 dynamic_linker='NetBSD ld.elf_so'
8220 shlibpath_var=LD_LIBRARY_PATH
8221 shlibpath_overrides_runpath=yes
8222 hardcode_into_libs=yes
8227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228 shlibpath_var=LD_LIBRARY_PATH
8229 shlibpath_overrides_runpath=yes
8236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8237 soname_spec='${libname}${release}${shared_ext}$major'
8238 shlibpath_var=LD_LIBRARY_PATH
8239 shlibpath_overrides_runpath=yes
8246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8248 shlibpath_var=LD_LIBRARY_PATH
8249 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8251 openbsd2.[89] | openbsd2.[89].*)
8252 shlibpath_overrides_runpath=no
8255 shlibpath_overrides_runpath=yes
8259 shlibpath_overrides_runpath=yes
8264 libname_spec='$name'
8267 library_names_spec='$libname${shared_ext} $libname.a'
8268 dynamic_linker='OS/2 ld.exe'
8269 shlibpath_var=LIBPATH
8272 osf3* | osf4* | osf5*)
8276 soname_spec='${libname}${release}${shared_ext}$major'
8277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8278 shlibpath_var=LD_LIBRARY_PATH
8279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8280 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8287 shlibpath_var=LD_LIBRARY_PATH
8294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295 soname_spec='${libname}${release}${shared_ext}$major'
8296 shlibpath_var=LD_LIBRARY_PATH
8297 shlibpath_overrides_runpath=yes
8298 hardcode_into_libs=yes
8299 # ldd complains unless libraries are executable
8300 postinstall_cmds='chmod +x $lib'
8305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8307 shlibpath_var=LD_LIBRARY_PATH
8308 shlibpath_overrides_runpath=yes
8309 if test "$with_gnu_ld" = yes; then
8315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8318 soname_spec='${libname}${release}${shared_ext}$major'
8319 shlibpath_var=LD_LIBRARY_PATH
8320 case $host_vendor in
8322 shlibpath_overrides_runpath=no
8324 export_dynamic_flag_spec='${wl}-Blargedynsym'
8325 runpath_var=LD_RUN_PATH
8333 shlibpath_overrides_runpath=no
8334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8340 if test -d /usr/nec ;then
8342 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8343 soname_spec='$libname${shared_ext}.$major'
8344 shlibpath_var=LD_LIBRARY_PATH
8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351 soname_spec='${libname}${release}${shared_ext}$major'
8352 shlibpath_var=LD_LIBRARY_PATH
8359 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8360 echo "${ECHO_T}$dynamic_linker" >&6
8361 test "$dynamic_linker" = no && can_build_shared=no
8363 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8364 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8366 if test -n "$hardcode_libdir_flag_spec" || \
8367 test -n "$runpath_var " || \
8368 test "X$hardcode_automatic"="Xyes" ; then
8370 # We can hardcode non-existant directories.
8371 if test "$hardcode_direct" != no &&
8372 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8373 # have to relink, otherwise we might link with an installed library
8374 # when we should be linking with a yet-to-be-installed one
8375 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8376 test "$hardcode_minus_L" != no; then
8377 # Linking always hardcodes the temporary library directory.
8378 hardcode_action=relink
8380 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8381 hardcode_action=immediate
8384 # We cannot hardcode anything, or else we can only hardcode existing
8386 hardcode_action=unsupported
8388 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8389 echo "${ECHO_T}$hardcode_action" >&6
8391 if test "$hardcode_action" = relink; then
8392 # Fast installation is not supported
8393 enable_fast_install=no
8394 elif test "$shlibpath_overrides_runpath" = yes ||
8395 test "$enable_shared" = no; then
8396 # Fast installation is not necessary
8397 enable_fast_install=needless
8402 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8403 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8404 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8405 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8406 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8407 echo "$as_me:$LINENO: result: yes" >&5
8408 echo "${ECHO_T}yes" >&6
8410 # FIXME - insert some real tests, host_os isn't really good enough
8413 if test -n "$STRIP" ; then
8414 striplib="$STRIP -x"
8415 echo "$as_me:$LINENO: result: yes" >&5
8416 echo "${ECHO_T}yes" >&6
8418 echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6
8423 echo "$as_me:$LINENO: result: no" >&5
8424 echo "${ECHO_T}no" >&6
8429 if test "x$enable_dlopen" != xyes; then
8430 enable_dlopen=unknown
8431 enable_dlopen_self=unknown
8432 enable_dlopen_self_static=unknown
8439 lt_cv_dlopen="load_add_on"
8441 lt_cv_dlopen_self=yes
8445 lt_cv_dlopen="LoadLibrary"
8450 lt_cv_dlopen="dlopen"
8455 # if libdl is installed we need to link against it
8456 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8457 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8458 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 ac_check_lib_save_LIBS=$LIBS
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8470 /* Override any gcc2 internal prototype to avoid an error. */
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487 (eval $ac_link) 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_cv_lib_dl_dlopen=yes
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 ac_cv_lib_dl_dlopen=no
8513 rm -f conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8515 LIBS=$ac_check_lib_save_LIBS
8517 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8518 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8519 if test $ac_cv_lib_dl_dlopen = yes; then
8520 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8525 lt_cv_dlopen_self=yes
8532 echo "$as_me:$LINENO: checking for shl_load" >&5
8533 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8534 if test "${ac_cv_func_shl_load+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 cat >conftest.$ac_ext <<_ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8545 #define shl_load innocuous_shl_load
8547 /* System header to define __stub macros and hopefully few prototypes,
8548 which can conflict with char shl_load (); below.
8549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8550 <limits.h> exists even on freestanding compilers. */
8553 # include <limits.h>
8555 # include <assert.h>
8560 /* Override any gcc2 internal prototype to avoid an error. */
8565 /* We use char because int might match the return type of a gcc2
8566 builtin and then its argument prototype would still apply. */
8568 /* The GNU C library defines this for functions which it implements
8569 to always fail with ENOSYS. Some functions are actually named
8570 something starting with __ and the normal name is an alias. */
8571 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8574 char (*f) () = shl_load;
8583 return f != shl_load;
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590 (eval $ac_link) 2>conftest.er1
8592 grep -v '^ *+' conftest.er1 >conftest.err
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try='test -s conftest$ac_exeext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_cv_func_shl_load=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_cv_func_shl_load=no
8616 rm -f conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8619 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8620 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8621 if test $ac_cv_func_shl_load = yes; then
8622 lt_cv_dlopen="shl_load"
8624 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8625 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8626 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 ac_check_lib_save_LIBS=$LIBS
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8638 /* Override any gcc2 internal prototype to avoid an error. */
8642 /* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>conftest.er1
8657 grep -v '^ *+' conftest.er1 >conftest.err
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest$ac_exeext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_lib_dld_shl_load=yes
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8679 ac_cv_lib_dld_shl_load=no
8681 rm -f conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8683 LIBS=$ac_check_lib_save_LIBS
8685 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8686 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8687 if test $ac_cv_lib_dld_shl_load = yes; then
8688 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8690 echo "$as_me:$LINENO: checking for dlopen" >&5
8691 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8692 if test "${ac_cv_func_dlopen+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 cat >conftest.$ac_ext <<_ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8701 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8703 #define dlopen innocuous_dlopen
8705 /* System header to define __stub macros and hopefully few prototypes,
8706 which can conflict with char dlopen (); below.
8707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8708 <limits.h> exists even on freestanding compilers. */
8711 # include <limits.h>
8713 # include <assert.h>
8718 /* Override any gcc2 internal prototype to avoid an error. */
8723 /* We use char because int might match the return type of a gcc2
8724 builtin and then its argument prototype would still apply. */
8726 /* The GNU C library defines this for functions which it implements
8727 to always fail with ENOSYS. Some functions are actually named
8728 something starting with __ and the normal name is an alias. */
8729 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8732 char (*f) () = dlopen;
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748 (eval $ac_link) 2>conftest.er1
8750 grep -v '^ *+' conftest.er1 >conftest.err
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } &&
8755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; } &&
8761 { ac_try='test -s conftest$ac_exeext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 ac_cv_func_dlopen=yes
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 ac_cv_func_dlopen=no
8774 rm -f conftest.err conftest.$ac_objext \
8775 conftest$ac_exeext conftest.$ac_ext
8777 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8778 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8779 if test $ac_cv_func_dlopen = yes; then
8780 lt_cv_dlopen="dlopen"
8782 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8783 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8784 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 ac_check_lib_save_LIBS=$LIBS
8789 cat >conftest.$ac_ext <<_ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8796 /* Override any gcc2 internal prototype to avoid an error. */
8800 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */
8811 rm -f conftest.$ac_objext conftest$ac_exeext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8813 (eval $ac_link) 2>conftest.er1
8815 grep -v '^ *+' conftest.er1 >conftest.err
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest$ac_exeext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_cv_lib_dl_dlopen=yes
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 ac_cv_lib_dl_dlopen=no
8839 rm -f conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 LIBS=$ac_check_lib_save_LIBS
8843 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8845 if test $ac_cv_lib_dl_dlopen = yes; then
8846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8848 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8849 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8850 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 ac_check_lib_save_LIBS=$LIBS
8855 cat >conftest.$ac_ext <<_ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8862 /* Override any gcc2 internal prototype to avoid an error. */
8866 /* We use char because int might match the return type of a gcc2
8867 builtin and then its argument prototype would still apply. */
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>conftest.er1
8881 grep -v '^ *+' conftest.er1 >conftest.err
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest$ac_exeext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_cv_lib_svld_dlopen=yes
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 ac_cv_lib_svld_dlopen=no
8905 rm -f conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 LIBS=$ac_check_lib_save_LIBS
8909 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8910 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8911 if test $ac_cv_lib_svld_dlopen = yes; then
8912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8914 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8915 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8916 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 ac_check_lib_save_LIBS=$LIBS
8921 cat >conftest.$ac_ext <<_ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8928 /* Override any gcc2 internal prototype to avoid an error. */
8932 /* We use char because int might match the return type of a gcc2
8933 builtin and then its argument prototype would still apply. */
8943 rm -f conftest.$ac_objext conftest$ac_exeext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945 (eval $ac_link) 2>conftest.er1
8947 grep -v '^ *+' conftest.er1 >conftest.err
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
8952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_cv_lib_dld_dld_link=yes
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8969 ac_cv_lib_dld_dld_link=no
8971 rm -f conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8973 LIBS=$ac_check_lib_save_LIBS
8975 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8976 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8977 if test $ac_cv_lib_dld_dld_link = yes; then
8978 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8999 if test "x$lt_cv_dlopen" != xno; then
9005 case $lt_cv_dlopen in
9007 save_CPPFLAGS="$CPPFLAGS"
9008 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9010 save_LDFLAGS="$LDFLAGS"
9011 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9014 LIBS="$lt_cv_dlopen_libs $LIBS"
9016 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9017 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9018 if test "${lt_cv_dlopen_self+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 if test "$cross_compiling" = yes; then :
9022 lt_cv_dlopen_self=cross
9024 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9025 lt_status=$lt_dlunknown
9026 cat > conftest.$ac_ext <<EOF
9027 #line 9027 "configure"
9028 #include "confdefs.h"
9037 # define LT_DLGLOBAL RTLD_GLOBAL
9040 # define LT_DLGLOBAL DL_GLOBAL
9042 # define LT_DLGLOBAL 0
9046 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9047 find out it does not work in some platform. */
9048 #ifndef LT_DLLAZY_OR_NOW
9050 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9053 # define LT_DLLAZY_OR_NOW DL_LAZY
9056 # define LT_DLLAZY_OR_NOW RTLD_NOW
9059 # define LT_DLLAZY_OR_NOW DL_NOW
9061 # define LT_DLLAZY_OR_NOW 0
9069 extern "C" void exit (int);
9072 void fnord() { int i=42;}
9075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9076 int status = $lt_dlunknown;
9080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9081 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9082 /* dlclose (self); */
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9093 (./conftest; exit; ) 2>/dev/null
9096 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9097 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9098 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9101 # compilation failed
9102 lt_cv_dlopen_self=no
9109 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9110 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9112 if test "x$lt_cv_dlopen_self" = xyes; then
9113 LDFLAGS="$LDFLAGS $link_static_flag"
9114 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9115 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9116 if test "${lt_cv_dlopen_self_static+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 if test "$cross_compiling" = yes; then :
9120 lt_cv_dlopen_self_static=cross
9122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9123 lt_status=$lt_dlunknown
9124 cat > conftest.$ac_ext <<EOF
9125 #line 9125 "configure"
9126 #include "confdefs.h"
9135 # define LT_DLGLOBAL RTLD_GLOBAL
9138 # define LT_DLGLOBAL DL_GLOBAL
9140 # define LT_DLGLOBAL 0
9144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9145 find out it does not work in some platform. */
9146 #ifndef LT_DLLAZY_OR_NOW
9148 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9151 # define LT_DLLAZY_OR_NOW DL_LAZY
9154 # define LT_DLLAZY_OR_NOW RTLD_NOW
9157 # define LT_DLLAZY_OR_NOW DL_NOW
9159 # define LT_DLLAZY_OR_NOW 0
9167 extern "C" void exit (int);
9170 void fnord() { int i=42;}
9173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9174 int status = $lt_dlunknown;
9178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9179 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9180 /* dlclose (self); */
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9191 (./conftest; exit; ) 2>/dev/null
9194 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9195 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9196 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9199 # compilation failed
9200 lt_cv_dlopen_self_static=no
9207 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9208 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9211 CPPFLAGS="$save_CPPFLAGS"
9212 LDFLAGS="$save_LDFLAGS"
9217 case $lt_cv_dlopen_self in
9218 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9219 *) enable_dlopen_self=unknown ;;
9222 case $lt_cv_dlopen_self_static in
9223 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9224 *) enable_dlopen_self_static=unknown ;;
9229 # Report which librarie types wil actually be built
9230 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9231 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9232 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9233 echo "${ECHO_T}$can_build_shared" >&6
9235 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9236 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9237 test "$can_build_shared" = "no" && enable_shared=no
9239 # On AIX, shared libraries and static libraries use the same namespace, and
9240 # are all built from PIC.
9243 test "$enable_shared" = yes && enable_static=no
9244 if test -n "$RANLIB"; then
9245 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9246 postinstall_cmds='$RANLIB $lib'
9251 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9252 test "$enable_shared" = yes && enable_static=no
9255 darwin* | rhapsody*)
9256 if test "$GCC" = yes; then
9257 archive_cmds_need_lc=no
9259 rhapsody* | darwin1.[012])
9260 allow_undefined_flag='-undefined suppress'
9263 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9264 allow_undefined_flag='-flat_namespace -undefined suppress'
9266 case ${MACOSX_DEPLOYMENT_TARGET} in
9268 allow_undefined_flag='-flat_namespace -undefined suppress'
9271 allow_undefined_flag='-undefined dynamic_lookup'
9277 output_verbose_link_cmd='echo'
9278 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9279 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9281 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}'
9282 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}'
9284 hardcode_automatic=yes
9285 hardcode_shlibpath_var=unsupported
9286 whole_archive_flag_spec='-all_load $convenience'
9287 link_all_deplibs=yes
9293 echo "$as_me:$LINENO: result: $enable_shared" >&5
9294 echo "${ECHO_T}$enable_shared" >&6
9296 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9297 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9298 # Make sure either enable_shared or enable_static is yes.
9299 test "$enable_shared" = yes || enable_static=yes
9300 echo "$as_me:$LINENO: result: $enable_static" >&5
9301 echo "${ECHO_T}$enable_static" >&6
9303 # The else clause should only fire when bootstrapping the
9304 # libtool distribution, otherwise you forgot to ship ltmain.sh
9305 # with your package, and you will get complaints that there are
9306 # no rules to generate ltmain.sh.
9307 if test -f "$ltmain"; then
9308 # See if we are running on zsh, and set the options which allow our commands through
9309 # without removal of \ escapes.
9310 if test -n "${ZSH_VERSION+set}" ; then
9311 setopt NO_GLOB_SUBST
9313 # Now quote all the things that may contain metacharacters while being
9314 # careful not to overquote the AC_SUBSTed values. We take copies of the
9315 # variables and quote the copies for generation of the libtool script.
9316 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9318 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9319 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9320 deplibs_check_method reload_flag reload_cmds need_locks \
9321 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9322 lt_cv_sys_global_symbol_to_c_name_address \
9323 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9324 old_postinstall_cmds old_postuninstall_cmds \
9328 lt_prog_compiler_wl \
9329 lt_prog_compiler_pic \
9330 lt_prog_compiler_static \
9331 lt_prog_compiler_no_builtin_flag \
9332 export_dynamic_flag_spec \
9333 thread_safe_flag_spec \
9334 whole_archive_flag_spec \
9335 enable_shared_with_static_runtimes \
9337 old_archive_from_new_cmds \
9342 compiler_lib_search_path \
9344 archive_expsym_cmds \
9346 postuninstall_cmds \
9347 old_archive_from_expsyms_cmds \
9348 allow_undefined_flag \
9350 export_symbols_cmds \
9351 hardcode_libdir_flag_spec \
9352 hardcode_libdir_flag_spec_ld \
9353 hardcode_libdir_separator \
9354 hardcode_automatic \
9356 module_expsym_cmds \
9357 lt_cv_prog_compiler_c_o \
9362 old_archive_cmds | \
9363 old_archive_from_new_cmds | \
9365 archive_expsym_cmds | \
9367 module_expsym_cmds | \
9368 old_archive_from_expsyms_cmds | \
9369 export_symbols_cmds | \
9370 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9371 postinstall_cmds | postuninstall_cmds | \
9372 old_postinstall_cmds | old_postuninstall_cmds | \
9373 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9374 # Double-quote double-evaled strings.
9375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9384 *'\$0 --fallback-echo"')
9385 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9390 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9392 { echo "$as_me:$LINENO: creating $ofile" >&5
9393 echo "$as_me: creating $ofile" >&6;}
9395 cat <<__EOF__ >> "$cfgfile"
9398 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9399 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9400 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9402 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9403 # Free Software Foundation, Inc.
9405 # This file is part of GNU Libtool:
9406 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9408 # This program is free software; you can redistribute it and/or modify
9409 # it under the terms of the GNU General Public License as published by
9410 # the Free Software Foundation; either version 2 of the License, or
9411 # (at your option) any later version.
9413 # This program is distributed in the hope that it will be useful, but
9414 # WITHOUT ANY WARRANTY; without even the implied warranty of
9415 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9416 # General Public License for more details.
9418 # You should have received a copy of the GNU General Public License
9419 # along with this program; if not, write to the Free Software
9420 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9422 # As a special exception to the GNU General Public License, if you
9423 # distribute this file as part of a program that contains a
9424 # configuration script generated by Autoconf, you may include it under
9425 # the same distribution terms that you use for the rest of that program.
9427 # A sed program that does not truncate output.
9430 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9431 Xsed="$SED -e s/^X//"
9433 # The HP-UX ksh and POSIX shell print the target directory to stdout
9435 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9437 # The names of the tagged configurations supported by this script.
9440 # ### BEGIN LIBTOOL CONFIG
9442 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9444 # Shell to use when invoking shell scripts.
9447 # Whether or not to build shared libraries.
9448 build_libtool_libs=$enable_shared
9450 # Whether or not to build static libraries.
9451 build_old_libs=$enable_static
9453 # Whether or not to add -lc for building shared libraries.
9454 build_libtool_need_lc=$archive_cmds_need_lc
9456 # Whether or not to disallow shared libs when runtime libs are static
9457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9459 # Whether or not to optimize for fast installation.
9460 fast_install=$enable_fast_install
9463 host_alias=$host_alias
9466 # An echo program that does not interpret backslashes.
9471 AR_FLAGS=$lt_AR_FLAGS
9476 # A language-specific compiler.
9479 # Is the compiler the GNU C compiler?
9485 # The linker used to build libraries.
9488 # Whether we need hard or soft links.
9491 # A BSD-compatible nm program.
9494 # A symbol stripping program
9497 # Used to examine libraries when file_magic_cmd begins "file"
9498 MAGIC_CMD=$MAGIC_CMD
9500 # Used on cygwin: DLL creation program.
9503 # Used on cygwin: object dumper.
9506 # Used on cygwin: assembler.
9509 # The name of the directory that contains temporary libtool files.
9512 # How to create reloadable object files.
9513 reload_flag=$lt_reload_flag
9514 reload_cmds=$lt_reload_cmds
9516 # How to pass a linker flag through the compiler.
9517 wl=$lt_lt_prog_compiler_wl
9519 # Object file suffix (normally "o").
9522 # Old archive suffix (normally "a").
9525 # Shared library suffix (normally ".so").
9526 shrext_cmds='$shrext_cmds'
9528 # Executable file suffix (normally "").
9531 # Additional compiler flags for building library objects.
9532 pic_flag=$lt_lt_prog_compiler_pic
9535 # What is the maximum length of a command?
9536 max_cmd_len=$lt_cv_sys_max_cmd_len
9538 # Does compiler simultaneously support -c and -o options?
9539 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9541 # Must we lock files when doing compilation ?
9542 need_locks=$lt_need_locks
9544 # Do we need the lib prefix for modules?
9545 need_lib_prefix=$need_lib_prefix
9547 # Do we need a version for libraries?
9548 need_version=$need_version
9550 # Whether dlopen is supported.
9551 dlopen_support=$enable_dlopen
9553 # Whether dlopen of programs is supported.
9554 dlopen_self=$enable_dlopen_self
9556 # Whether dlopen of statically linked programs is supported.
9557 dlopen_self_static=$enable_dlopen_self_static
9559 # Compiler flag to prevent dynamic linking.
9560 link_static_flag=$lt_lt_prog_compiler_static
9562 # Compiler flag to turn off builtin functions.
9563 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9565 # Compiler flag to allow reflexive dlopens.
9566 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9568 # Compiler flag to generate shared objects directly from archives.
9569 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9571 # Compiler flag to generate thread-safe objects.
9572 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9574 # Library versioning type.
9575 version_type=$version_type
9577 # Format of library name prefix.
9578 libname_spec=$lt_libname_spec
9580 # List of archive names. First name is the real one, the rest are links.
9581 # The last name is the one that the linker finds with -lNAME.
9582 library_names_spec=$lt_library_names_spec
9584 # The coded name of the library, if different from the real name.
9585 soname_spec=$lt_soname_spec
9587 # Commands used to build and install an old-style archive.
9589 old_archive_cmds=$lt_old_archive_cmds
9590 old_postinstall_cmds=$lt_old_postinstall_cmds
9591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9593 # Create an old-style archive from a shared archive.
9594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9596 # Create a temporary old-style archive to link instead of a shared archive.
9597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9599 # Commands used to build and install a shared archive.
9600 archive_cmds=$lt_archive_cmds
9601 archive_expsym_cmds=$lt_archive_expsym_cmds
9602 postinstall_cmds=$lt_postinstall_cmds
9603 postuninstall_cmds=$lt_postuninstall_cmds
9605 # Commands used to build a loadable module (assumed same as above if empty)
9606 module_cmds=$lt_module_cmds
9607 module_expsym_cmds=$lt_module_expsym_cmds
9609 # Commands to strip libraries.
9610 old_striplib=$lt_old_striplib
9611 striplib=$lt_striplib
9613 # Dependencies to place before the objects being linked to create a
9615 predep_objects=$lt_predep_objects
9617 # Dependencies to place after the objects being linked to create a
9619 postdep_objects=$lt_postdep_objects
9621 # Dependencies to place before the objects being linked to create a
9625 # Dependencies to place after the objects being linked to create a
9627 postdeps=$lt_postdeps
9629 # The library search path used internally by the compiler when linking
9631 compiler_lib_search_path=$lt_compiler_lib_search_path
9633 # Method to check whether dependent libraries are shared objects.
9634 deplibs_check_method=$lt_deplibs_check_method
9636 # Command to use when deplibs_check_method == file_magic.
9637 file_magic_cmd=$lt_file_magic_cmd
9639 # Flag that allows shared libraries with undefined symbols to be built.
9640 allow_undefined_flag=$lt_allow_undefined_flag
9642 # Flag that forces no undefined symbols.
9643 no_undefined_flag=$lt_no_undefined_flag
9645 # Commands used to finish a libtool library installation in a directory.
9646 finish_cmds=$lt_finish_cmds
9648 # Same as above, but a single script fragment to be evaled but not shown.
9649 finish_eval=$lt_finish_eval
9651 # Take the output of nm and produce a listing of raw symbols and C names.
9652 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9654 # Transform the output of nm in a proper C declaration
9655 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9657 # Transform the output of nm in a C name address pair
9658 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9660 # This is the shared library runtime path variable.
9661 runpath_var=$runpath_var
9663 # This is the shared library path variable.
9664 shlibpath_var=$shlibpath_var
9666 # Is shlibpath searched before the hard-coded library search path?
9667 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9669 # How to hardcode a shared library path into an executable.
9670 hardcode_action=$hardcode_action
9672 # Whether we should hardcode library paths into libraries.
9673 hardcode_into_libs=$hardcode_into_libs
9675 # Flag to hardcode \$libdir into a binary during linking.
9676 # This must work even if \$libdir does not exist.
9677 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9679 # If ld is used when linking, flag to hardcode \$libdir into
9680 # a binary during linking. This must work even if \$libdir does
9682 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9684 # Whether we need a single -rpath flag with a separated argument.
9685 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9687 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9689 hardcode_direct=$hardcode_direct
9691 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9693 hardcode_minus_L=$hardcode_minus_L
9695 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9696 # the resulting binary.
9697 hardcode_shlibpath_var=$hardcode_shlibpath_var
9699 # Set to yes if building a shared library automatically hardcodes DIR into the library
9700 # and all subsequent libraries and executables linked against it.
9701 hardcode_automatic=$hardcode_automatic
9703 # Variables whose values should be saved in libtool wrapper scripts and
9704 # restored at relink time.
9705 variables_saved_for_relink="$variables_saved_for_relink"
9707 # Whether libtool must link a program against all its dependency libraries.
9708 link_all_deplibs=$link_all_deplibs
9710 # Compile-time system search path for libraries
9711 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9713 # Run-time system search path for libraries
9714 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9716 # Fix the shell variable \$srcfile for the compiler.
9717 fix_srcfile_path="$fix_srcfile_path"
9719 # Set to yes if exported symbols are required.
9720 always_export_symbols=$always_export_symbols
9722 # The commands to list exported symbols.
9723 export_symbols_cmds=$lt_export_symbols_cmds
9725 # The commands to extract the exported symbol list from a shared archive.
9726 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9728 # Symbols that should not be listed in the preloaded symbols.
9729 exclude_expsyms=$lt_exclude_expsyms
9731 # Symbols that must always be exported.
9732 include_expsyms=$lt_include_expsyms
9734 # ### END LIBTOOL CONFIG
9741 cat <<\EOF >> "$cfgfile"
9743 # AIX sometimes has problems with the GCC collect2 program. For some
9744 # reason, if we set the COLLECT_NAMES environment variable, the problems
9745 # vanish in a puff of smoke.
9746 if test "X${COLLECT_NAMES+set}" != Xset; then
9748 export COLLECT_NAMES
9754 # We use sed instead of cat because bash on DJGPP gets confused if
9755 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9756 # text mode, it properly converts lines to CR/LF. This bash problem
9757 # is reportedly fixed, but why not run on old versions too?
9758 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9760 mv -f "$cfgfile" "$ofile" || \
9761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9765 # If there is no Makefile yet, we rely on a make rule to execute
9766 # `config.status --recheck' to rerun these tests and create the
9767 # libtool script then.
9768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9769 if test -f "$ltmain_in"; then
9770 test -f Makefile && make "$ltmain"
9776 ac_cpp='$CPP $CPPFLAGS'
9777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9784 # Check whether --with-tags or --without-tags was given.
9785 if test "${with_tags+set}" = set; then
9786 withval="$with_tags"
9790 if test -f "$ltmain" && test -n "$tagnames"; then
9791 if test ! -f "${ofile}"; then
9792 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9793 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9796 if test -z "$LTCC"; then
9797 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9798 if test -z "$LTCC"; then
9799 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9800 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9803 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9807 # Extract list of available tagged configurations in $ofile.
9808 # Note that this assumes the entire list is on one line.
9809 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9812 for tagname in $tagnames; do
9814 # Check whether tagname contains only valid characters
9815 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9817 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9818 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9819 { (exit 1); exit 1; }; }
9823 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9825 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9826 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9827 { (exit 1); exit 1; }; }
9830 # Update the list of available tags.
9831 if test -n "$tagname"; then
9832 echo appending configuration tag \"$tagname\" to $ofile
9836 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9838 ac_cpp='$CXXCPP $CPPFLAGS'
9839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9846 archive_cmds_need_lc_CXX=no
9847 allow_undefined_flag_CXX=
9848 always_export_symbols_CXX=no
9849 archive_expsym_cmds_CXX=
9850 export_dynamic_flag_spec_CXX=
9851 hardcode_direct_CXX=no
9852 hardcode_libdir_flag_spec_CXX=
9853 hardcode_libdir_flag_spec_ld_CXX=
9854 hardcode_libdir_separator_CXX=
9855 hardcode_minus_L_CXX=no
9856 hardcode_automatic_CXX=no
9858 module_expsym_cmds_CXX=
9859 link_all_deplibs_CXX=unknown
9860 old_archive_cmds_CXX=$old_archive_cmds
9861 no_undefined_flag_CXX=
9862 whole_archive_flag_spec_CXX=
9863 enable_shared_with_static_runtimes_CXX=no
9865 # Dependencies to place before and after the object being linked:
9867 postdep_objects_CXX=
9870 compiler_lib_search_path_CXX=
9872 # Source file extension for C++ test sources.
9875 # Object file extension for compiled C++ test sources.
9879 # Code to be used in simple compile tests
9880 lt_simple_compile_test_code="int some_variable = 0;\n"
9882 # Code to be used in simple link tests
9883 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9887 # If no C compiler was specified, use CC.
9890 # Allow CC to be a program name with arguments.
9894 # Allow CC to be a program name with arguments.
9899 lt_save_with_gnu_ld=$with_gnu_ld
9900 lt_save_path_LD=$lt_cv_path_LD
9901 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9902 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9904 unset lt_cv_prog_gnu_ld
9906 if test -n "${lt_cv_path_LDCXX+set}"; then
9907 lt_cv_path_LD=$lt_cv_path_LDCXX
9911 test -z "${LDCXX+set}" || LD=$LDCXX
9915 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9917 # We don't want -fno-exception wen compiling C++ code, so set the
9918 # no_builtin_flag separately
9919 if test "$GXX" = yes; then
9920 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9922 lt_prog_compiler_no_builtin_flag_CXX=
9925 if test "$GXX" = yes; then
9926 # Set up default GNU C++ configuration
9929 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9930 if test "${with_gnu_ld+set}" = set; then
9931 withval="$with_gnu_ld"
9932 test "$withval" = no || with_gnu_ld=yes
9937 if test "$GCC" = yes; then
9938 # Check if gcc -print-prog-name=ld gives a path.
9939 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9940 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9943 # gcc leaves a trailing carriage return which upsets mingw
9944 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9946 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9949 # Accept absolute paths.
9951 re_direlt='/[^/][^/]*/\.\./'
9952 # Canonicalize the pathname of ld
9953 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9954 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9955 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9957 test -z "$LD" && LD="$ac_prog"
9960 # If it fails, then pretend we aren't using GCC.
9964 # If it is relative, then search for the first ld in PATH.
9968 elif test "$with_gnu_ld" = yes; then
9969 echo "$as_me:$LINENO: checking for GNU ld" >&5
9970 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9972 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9973 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9975 if test "${lt_cv_path_LD+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 if test -z "$LD"; then
9979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9980 for ac_dir in $PATH; do
9982 test -z "$ac_dir" && ac_dir=.
9983 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9984 lt_cv_path_LD="$ac_dir/$ac_prog"
9985 # Check to see if the program is GNU ld. I'd rather use --version,
9986 # but apparently some GNU ld's only accept -v.
9987 # Break only if it was the GNU/non-GNU ld that we prefer.
9988 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9989 *GNU* | *'with BFD'*)
9990 test "$with_gnu_ld" != no && break
9993 test "$with_gnu_ld" != yes && break
10000 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10004 LD="$lt_cv_path_LD"
10005 if test -n "$LD"; then
10006 echo "$as_me:$LINENO: result: $LD" >&5
10007 echo "${ECHO_T}$LD" >&6
10009 echo "$as_me:$LINENO: result: no" >&5
10010 echo "${ECHO_T}no" >&6
10012 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10013 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10014 { (exit 1); exit 1; }; }
10015 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10016 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10017 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10021 case `$LD -v 2>&1 </dev/null` in
10022 *GNU* | *'with BFD'*)
10023 lt_cv_prog_gnu_ld=yes
10026 lt_cv_prog_gnu_ld=no
10030 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10031 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10032 with_gnu_ld=$lt_cv_prog_gnu_ld
10036 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10037 # archiving commands below assume that GNU ld is being used.
10038 if test "$with_gnu_ld" = yes; then
10039 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10040 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'
10042 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10043 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10045 # If archive_cmds runs LD, not CC, wlarc should be empty
10046 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10047 # investigate it a little bit more. (MM)
10050 # ancient GNU ld didn't support --whole-archive et. al.
10051 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10052 grep 'no-whole-archive' > /dev/null; then
10053 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10055 whole_archive_flag_spec_CXX=
10061 # A generic and very simple default shared library creation
10062 # command for GNU C++ for the case where it uses the native
10063 # linker, instead of GNU ld. If possible, this setting should
10064 # overridden to take advantage of the native linker features on
10065 # the platform it is being used on.
10066 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10069 # Commands to make compiler produce verbose output that lists
10070 # what "hidden" libraries, object files and flags are used when
10071 # linking a shared library.
10072 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10080 # PORTME: fill in a description of your system's C++ link characteristics
10081 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10082 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10086 # FIXME: insert proper C++ library support
10090 if test "$host_cpu" = ia64; then
10091 # On IA64, the linker does run time linking by default, so we don't
10092 # have to do anything special.
10093 aix_use_runtimelinking=no
10094 exp_sym_flag='-Bexport'
10097 aix_use_runtimelinking=no
10099 # Test if we are trying to use run time linking or normal
10100 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10101 # need to do runtime linking.
10102 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10103 for ld_flag in $LDFLAGS; do
10106 aix_use_runtimelinking=yes
10113 exp_sym_flag='-bexport'
10114 no_entry_flag='-bnoentry'
10117 # When large executables or shared objects are built, AIX ld can
10118 # have problems creating the table of contents. If linking a library
10119 # or program results in "error TOC overflow" add -mminimal-toc to
10120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10123 archive_cmds_CXX=''
10124 hardcode_direct_CXX=yes
10125 hardcode_libdir_separator_CXX=':'
10126 link_all_deplibs_CXX=yes
10128 if test "$GXX" = yes; then
10129 case $host_os in aix4.012|aix4.012.*)
10130 # We only want to do this on AIX 4.2 and lower, the check
10131 # below for broken collect2 doesn't work under 4.3+
10132 collect2name=`${CC} -print-prog-name=collect2`
10133 if test -f "$collect2name" && \
10134 strings "$collect2name" | grep resolve_lib_name >/dev/null
10136 # We have reworked collect2
10137 hardcode_direct_CXX=yes
10139 # We have old collect2
10140 hardcode_direct_CXX=unsupported
10141 # It fails to find uninstalled libraries when the uninstalled
10142 # path is not listed in the libpath. Setting hardcode_minus_L
10143 # to unsupported forces relinking
10144 hardcode_minus_L_CXX=yes
10145 hardcode_libdir_flag_spec_CXX='-L$libdir'
10146 hardcode_libdir_separator_CXX=
10149 shared_flag='-shared'
10152 if test "$host_cpu" = ia64; then
10153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10154 # chokes on -Wl,-G. The following line is correct:
10157 if test "$aix_use_runtimelinking" = yes; then
10158 shared_flag='${wl}-G'
10160 shared_flag='${wl}-bM:SRE'
10165 # It seems that -bexpall does not export symbols beginning with
10166 # underscore (_), so it is better to generate a list of symbols to export.
10167 always_export_symbols_CXX=yes
10168 if test "$aix_use_runtimelinking" = yes; then
10169 # Warning - without using the other runtime loading flags (-brtl),
10170 # -berok will link without error, but may produce a broken library.
10171 allow_undefined_flag_CXX='-berok'
10172 # Determine the default libpath from the value encoded in an empty executable.
10173 cat >conftest.$ac_ext <<_ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10188 rm -f conftest.$ac_objext conftest$ac_exeext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>conftest.er1
10192 grep -v '^ *+' conftest.er1 >conftest.err
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; }; then
10210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10212 # Check for a 64-bit object if we didn't find anything.
10213 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; }
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10220 rm -f conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10224 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10226 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"
10228 if test "$host_cpu" = ia64; then
10229 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10230 allow_undefined_flag_CXX="-z nodefs"
10231 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"
10233 # Determine the default libpath from the value encoded in an empty executable.
10234 cat >conftest.$ac_ext <<_ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>conftest.er1
10253 grep -v '^ *+' conftest.er1 >conftest.err
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10273 # Check for a 64-bit object if we didn't find anything.
10274 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; }
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10281 rm -f conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10285 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10286 # Warning - without using the other run time loading flags,
10287 # -berok will link without error, but may produce a broken library.
10288 no_undefined_flag_CXX=' ${wl}-bernotok'
10289 allow_undefined_flag_CXX=' ${wl}-berok'
10290 # -bexpall does not export symbols beginning with underscore (_)
10291 always_export_symbols_CXX=yes
10292 # Exported symbols can be pulled into shared objects from archives
10293 whole_archive_flag_spec_CXX=' '
10294 archive_cmds_need_lc_CXX=yes
10295 # This is similar to how AIX traditionally builds it's shared libraries.
10296 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'
10301 case $cc_basename in
10303 # FIXME: insert proper C++ library support
10309 cygwin* | mingw* | pw32*)
10310 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10311 # as there is no search path for DLLs.
10312 hardcode_libdir_flag_spec_CXX='-L$libdir'
10313 allow_undefined_flag_CXX=unsupported
10314 always_export_symbols_CXX=no
10315 enable_shared_with_static_runtimes_CXX=yes
10317 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10318 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'
10319 # If the export-symbols file already is a .def file (1st line
10320 # is EXPORTS), use it as is; otherwise, prepend...
10321 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10322 cp $export_symbols $output_objdir/$soname.def;
10324 echo EXPORTS > $output_objdir/$soname.def;
10325 cat $export_symbols >> $output_objdir/$soname.def;
10327 $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'
10333 darwin* | rhapsody*)
10334 if test "$GXX" = yes; then
10335 archive_cmds_need_lc_CXX=no
10337 rhapsody* | darwin1.[012])
10338 allow_undefined_flag_CXX='-undefined suppress'
10341 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10342 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10344 case ${MACOSX_DEPLOYMENT_TARGET} in
10346 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10349 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10355 lt_int_apple_cc_single_mod=no
10356 output_verbose_link_cmd='echo'
10357 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10358 lt_int_apple_cc_single_mod=yes
10360 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10361 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10363 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'
10365 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10367 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10368 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10369 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}'
10371 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}'
10373 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}'
10374 hardcode_direct_CXX=no
10375 hardcode_automatic_CXX=yes
10376 hardcode_shlibpath_var_CXX=unsupported
10377 whole_archive_flag_spec_CXX='-all_load $convenience'
10378 link_all_deplibs_CXX=yes
10385 case $cc_basename in
10387 # FIXME: insert proper C++ library support
10391 # Green Hills C++ Compiler
10392 # FIXME: insert proper C++ library support
10396 # FIXME: insert proper C++ library support
10402 # C++ shared libraries reported to be fairly broken before switch to ELF
10406 archive_cmds_need_lc_CXX=no
10408 freebsd* | kfreebsd*-gnu)
10409 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10416 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10417 hardcode_libdir_separator_CXX=:
10418 export_dynamic_flag_spec_CXX='${wl}-E'
10419 hardcode_direct_CXX=yes
10420 hardcode_minus_L_CXX=yes # Not in the search PATH,
10421 # but as the default
10422 # location of the library.
10424 case $cc_basename in
10426 # FIXME: insert proper C++ library support
10430 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'
10431 # Commands to make compiler produce verbose output that lists
10432 # what "hidden" libraries, object files and flags are used when
10433 # linking a shared library.
10435 # There doesn't appear to be a way to prevent this compiler from
10436 # explicitly linking system object files so we need to strip them
10437 # from the output so that they don't get included in the library
10439 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'
10442 if test "$GXX" = yes; then
10443 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'
10445 # FIXME: insert proper C++ library support
10452 if test $with_gnu_ld = no; then
10453 case "$host_cpu" in
10455 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10456 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10457 hardcode_libdir_separator_CXX=:
10460 hardcode_libdir_flag_spec_CXX='-L$libdir'
10463 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10464 hardcode_libdir_separator_CXX=:
10465 export_dynamic_flag_spec_CXX='${wl}-E'
10469 case "$host_cpu" in
10471 hardcode_direct_CXX=no
10472 hardcode_shlibpath_var_CXX=no
10475 hardcode_direct_CXX=no
10476 hardcode_shlibpath_var_CXX=no
10477 hardcode_minus_L_CXX=yes # Not in the search PATH,
10478 # but as the default
10479 # location of the library.
10482 hardcode_direct_CXX=yes
10483 hardcode_minus_L_CXX=yes # Not in the search PATH,
10484 # but as the default
10485 # location of the library.
10489 case $cc_basename in
10491 # FIXME: insert proper C++ library support
10495 case "$host_cpu" in
10497 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10500 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10503 # Commands to make compiler produce verbose output that lists
10504 # what "hidden" libraries, object files and flags are used when
10505 # linking a shared library.
10507 # There doesn't appear to be a way to prevent this compiler from
10508 # explicitly linking system object files so we need to strip them
10509 # from the output so that they don't get included in the library
10511 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'
10514 if test "$GXX" = yes; then
10515 if test $with_gnu_ld = no; then
10516 case "$host_cpu" in
10518 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10521 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'
10526 # FIXME: insert proper C++ library support
10533 case $cc_basename in
10536 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'
10538 # Archives containing C++ object files must be created using
10539 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10540 # necessary to make sure instantiated templates are included
10542 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10545 if test "$GXX" = yes; then
10546 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10549 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'
10552 link_all_deplibs_CXX=yes
10555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10556 hardcode_libdir_separator_CXX=:
10559 case $cc_basename in
10561 # Kuck and Associates, Inc. (KAI) C++ Compiler
10563 # KCC will only create a shared library if the output file
10564 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10565 # to its proper name (with version) after linking.
10566 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'
10567 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'
10568 # Commands to make compiler produce verbose output that lists
10569 # what "hidden" libraries, object files and flags are used when
10570 # linking a shared library.
10572 # There doesn't appear to be a way to prevent this compiler from
10573 # explicitly linking system object files so we need to strip them
10574 # from the output so that they don't get included in the library
10576 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'
10578 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10581 # Archives containing C++ object files must be created using
10582 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10583 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10588 archive_cmds_need_lc_CXX=no
10589 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10590 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'
10591 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10593 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10598 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'
10600 runpath_var=LD_RUN_PATH
10601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10602 hardcode_libdir_separator_CXX=:
10604 # Commands to make compiler produce verbose output that lists
10605 # what "hidden" libraries, object files and flags are used when
10606 # linking a shared library.
10608 # There doesn't appear to be a way to prevent this compiler from
10609 # explicitly linking system object files so we need to strip them
10610 # from the output so that they don't get included in the library
10612 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'
10617 # FIXME: insert proper C++ library support
10621 # FIXME: insert proper C++ library support
10625 case $cc_basename in
10627 # FIXME: insert proper C++ library support
10631 # FIXME: insert proper C++ library support
10636 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10638 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10640 hardcode_libdir_flag_spec_CXX='-R$libdir'
10641 hardcode_direct_CXX=yes
10642 hardcode_shlibpath_var_CXX=no
10644 # Workaround some broken pre-1.5 toolchains
10645 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10648 case $cc_basename in
10650 # Kuck and Associates, Inc. (KAI) C++ Compiler
10652 # KCC will only create a shared library if the output file
10653 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10654 # to its proper name (with version) after linking.
10655 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'
10657 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10658 hardcode_libdir_separator_CXX=:
10660 # Archives containing C++ object files must be created using
10661 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10662 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10666 # Rational C++ 2.4.1
10667 # FIXME: insert proper C++ library support
10671 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10672 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'
10674 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10675 hardcode_libdir_separator_CXX=:
10677 # Commands to make compiler produce verbose output that lists
10678 # what "hidden" libraries, object files and flags are used when
10679 # linking a shared library.
10681 # There doesn't appear to be a way to prevent this compiler from
10682 # explicitly linking system object files so we need to strip them
10683 # from the output so that they don't get included in the library
10685 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'
10688 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10689 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10690 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'
10692 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10693 hardcode_libdir_separator_CXX=:
10695 # Commands to make compiler produce verbose output that lists
10696 # what "hidden" libraries, object files and flags are used when
10697 # linking a shared library.
10698 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10701 # FIXME: insert proper C++ library support
10708 case $cc_basename in
10710 # Kuck and Associates, Inc. (KAI) C++ Compiler
10712 # KCC will only create a shared library if the output file
10713 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10714 # to its proper name (with version) after linking.
10715 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'
10717 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10718 hardcode_libdir_separator_CXX=:
10720 # Archives containing C++ object files must be created using
10721 # the KAI C++ compiler.
10722 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10725 # Rational C++ 2.4.1
10726 # FIXME: insert proper C++ library support
10730 allow_undefined_flag_CXX=' -expect_unresolved \*'
10731 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'
10732 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10733 echo "-hidden">> $lib.exp~
10734 $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~
10737 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10738 hardcode_libdir_separator_CXX=:
10740 # Commands to make compiler produce verbose output that lists
10741 # what "hidden" libraries, object files and flags are used when
10742 # linking a shared library.
10744 # There doesn't appear to be a way to prevent this compiler from
10745 # explicitly linking system object files so we need to strip them
10746 # from the output so that they don't get included in the library
10748 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'
10751 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10752 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10753 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'
10755 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10756 hardcode_libdir_separator_CXX=:
10758 # Commands to make compiler produce verbose output that lists
10759 # what "hidden" libraries, object files and flags are used when
10760 # linking a shared library.
10761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10764 # FIXME: insert proper C++ library support
10771 # FIXME: insert proper C++ library support
10775 archive_cmds_need_lc_CXX=no
10776 case $cc_basename in
10778 # FIXME: insert proper C++ library support
10782 # FIXME: insert proper C++ library support
10788 case $cc_basename in
10791 # FIXME: insert proper C++ library support
10796 # FIXME: insert proper C++ library support
10800 # FIXME: insert proper C++ library support
10806 case $cc_basename in
10808 # Sun C++ 4.2, 5.x and Centerline C++
10809 no_undefined_flag_CXX=' -zdefs'
10810 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10811 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10812 $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'
10814 hardcode_libdir_flag_spec_CXX='-R$libdir'
10815 hardcode_shlibpath_var_CXX=no
10817 solaris2.0-5 | solaris2.0-5.*) ;;
10819 # The C++ compiler is used as linker so we must use $wl
10820 # flag to pass the commands to the underlying system
10822 # Supported since Solaris 2.6 (maybe 2.5.1?)
10823 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10826 link_all_deplibs_CXX=yes
10828 # Commands to make compiler produce verbose output that lists
10829 # what "hidden" libraries, object files and flags are used when
10830 # linking a shared library.
10832 # There doesn't appear to be a way to prevent this compiler from
10833 # explicitly linking system object files so we need to strip them
10834 # from the output so that they don't get included in the library
10836 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'
10838 # Archives containing C++ object files must be created using
10839 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10840 # necessary to make sure instantiated templates are included
10842 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10845 # Green Hills C++ Compiler
10846 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10848 # The C++ compiler must be used to create the archive.
10849 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10852 # GNU C++ compiler with Solaris linker
10853 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10854 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10855 if $CC --version | grep -v '^2\.7' > /dev/null; then
10856 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10857 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10858 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10860 # Commands to make compiler produce verbose output that lists
10861 # what "hidden" libraries, object files and flags are used when
10862 # linking a shared library.
10863 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10865 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10867 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10868 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10869 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10871 # Commands to make compiler produce verbose output that lists
10872 # what "hidden" libraries, object files and flags are used when
10873 # linking a shared library.
10874 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10877 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10882 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10883 archive_cmds_need_lc_CXX=no
10886 case $cc_basename in
10888 # NonStop-UX NCC 3.20
10889 # FIXME: insert proper C++ library support
10893 # FIXME: insert proper C++ library support
10899 # FIXME: insert proper C++ library support
10903 # FIXME: insert proper C++ library support
10907 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10908 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10909 test "$ld_shlibs_CXX" = no && can_build_shared=no
10915 cat > conftest.$ac_ext <<EOF
10919 Foo (void) { a = 0; }
10925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10926 (eval $ac_compile) 2>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; then
10930 # Parse the compiler output and extract the necessary
10931 # objects, libraries and library flags.
10933 # Sentinel used to keep track of whether or not we are before
10934 # the conftest object file.
10935 pre_test_object_deps_done=no
10937 # The `*' in the case matches for architectures that use `case' in
10938 # $output_verbose_cmd can trigger glob expansion during the loop
10939 # eval without this substitution.
10940 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10942 for p in `eval $output_verbose_link_cmd`; do
10946 # Some compilers place space between "-{L,R}" and the path.
10947 # Remove the space.
10948 if test $p = "-L" \
10949 || test $p = "-R"; then
10956 if test "$pre_test_object_deps_done" = no; then
10959 # Internal compiler library paths should come after those
10960 # provided the user. The postdeps already come after the
10961 # user supplied libs so there is no need to process them.
10962 if test -z "$compiler_lib_search_path_CXX"; then
10963 compiler_lib_search_path_CXX="${prev}${p}"
10965 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10968 # The "-l" case would never come before the object being
10969 # linked, so don't bother handling this case.
10972 if test -z "$postdeps_CXX"; then
10973 postdeps_CXX="${prev}${p}"
10975 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10981 # This assumes that the test object file only shows up
10982 # once in the compiler output.
10983 if test "$p" = "conftest.$objext"; then
10984 pre_test_object_deps_done=yes
10988 if test "$pre_test_object_deps_done" = no; then
10989 if test -z "$predep_objects_CXX"; then
10990 predep_objects_CXX="$p"
10992 predep_objects_CXX="$predep_objects_CXX $p"
10995 if test -z "$postdep_objects_CXX"; then
10996 postdep_objects_CXX="$p"
10998 postdep_objects_CXX="$postdep_objects_CXX $p"
11003 *) ;; # Ignore the rest.
11011 echo "libtool.m4: error: problem compiling CXX test program"
11014 $rm -f confest.$objext
11016 case " $postdeps_CXX " in
11017 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11020 lt_prog_compiler_wl_CXX=
11021 lt_prog_compiler_pic_CXX=
11022 lt_prog_compiler_static_CXX=
11024 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11025 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11027 # C++ specific cases for pic, static, wl, etc.
11028 if test "$GXX" = yes; then
11029 lt_prog_compiler_wl_CXX='-Wl,'
11030 lt_prog_compiler_static_CXX='-static'
11034 # All AIX code is PIC.
11035 if test "$host_cpu" = ia64; then
11036 # AIX 5 now supports IA64 processor
11037 lt_prog_compiler_static_CXX='-Bstatic'
11041 # FIXME: we need at least 68020 code to build shared libraries, but
11042 # adding the `-m68020' flag to GCC prevents building anything better,
11044 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11046 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11047 # PIC is the default for these OSes.
11049 mingw* | os2* | pw32*)
11050 # This hack is so that the source file can tell whether it is being
11051 # built for inclusion in a dll (and should export symbols for example).
11052 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11054 darwin* | rhapsody*)
11055 # PIC is the default on this platform
11056 # Common symbols not allowed in MH_DYLIB files
11057 lt_prog_compiler_pic_CXX='-fno-common'
11060 # DJGPP does not support shared libraries at all
11061 lt_prog_compiler_pic_CXX=
11064 if test -d /usr/nec; then
11065 lt_prog_compiler_pic_CXX=-Kconform_pic
11069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11070 # not for PA HP-UX.
11071 case "$host_cpu" in
11075 lt_prog_compiler_pic_CXX='-fPIC'
11080 lt_prog_compiler_pic_CXX='-fPIC'
11086 # All AIX code is PIC.
11087 if test "$host_cpu" = ia64; then
11088 # AIX 5 now supports IA64 processor
11089 lt_prog_compiler_static_CXX='-Bstatic'
11091 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11095 case $cc_basename in
11097 # Green Hills C++ Compiler
11098 # _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"
11103 case $cc_basename in
11105 lt_prog_compiler_pic_CXX='-KPIC'
11108 # Green Hills C++ Compiler
11109 lt_prog_compiler_pic_CXX='-pic'
11115 freebsd* | kfreebsd*-gnu)
11116 # FreeBSD uses GNU C++
11118 hpux9* | hpux10* | hpux11*)
11119 case $cc_basename in
11121 lt_prog_compiler_wl_CXX='-Wl,'
11122 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11123 if test "$host_cpu" != ia64; then
11124 lt_prog_compiler_pic_CXX='+Z'
11128 lt_prog_compiler_wl_CXX='-Wl,'
11129 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11130 case "$host_cpu" in
11135 lt_prog_compiler_pic_CXX='+Z'
11143 irix5* | irix6* | nonstopux*)
11144 case $cc_basename in
11146 lt_prog_compiler_wl_CXX='-Wl,'
11147 lt_prog_compiler_static_CXX='-non_shared'
11148 # CC pic flag -KPIC is the default.
11155 case $cc_basename in
11158 lt_prog_compiler_wl_CXX='--backend -Wl,'
11159 lt_prog_compiler_pic_CXX='-fPIC'
11163 lt_prog_compiler_wl_CXX='-Wl,'
11164 lt_prog_compiler_pic_CXX='-KPIC'
11165 lt_prog_compiler_static_CXX='-static'
11169 # Make sure the PIC flag is empty. It appears that all Alpha
11170 # Linux and Compaq Tru64 Unix objects are PIC.
11171 lt_prog_compiler_pic_CXX=
11172 lt_prog_compiler_static_CXX='-non_shared'
11183 case $cc_basename in
11185 lt_prog_compiler_pic_CXX='-W c,exportall'
11191 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11193 osf3* | osf4* | osf5*)
11194 case $cc_basename in
11196 lt_prog_compiler_wl_CXX='--backend -Wl,'
11199 # Rational C++ 2.4.1
11200 lt_prog_compiler_pic_CXX='-pic'
11203 # Digital/Compaq C++
11204 lt_prog_compiler_wl_CXX='-Wl,'
11205 # Make sure the PIC flag is empty. It appears that all Alpha
11206 # Linux and Compaq Tru64 Unix objects are PIC.
11207 lt_prog_compiler_pic_CXX=
11208 lt_prog_compiler_static_CXX='-non_shared'
11217 case $cc_basename in
11219 lt_prog_compiler_pic_CXX='-fPIC'
11226 case $cc_basename in
11228 # Sun C++ 4.2, 5.x and Centerline C++
11229 lt_prog_compiler_pic_CXX='-KPIC'
11230 lt_prog_compiler_static_CXX='-Bstatic'
11231 lt_prog_compiler_wl_CXX='-Qoption ld '
11234 # Green Hills C++ Compiler
11235 lt_prog_compiler_pic_CXX='-PIC'
11242 case $cc_basename in
11245 lt_prog_compiler_pic_CXX='-pic'
11246 lt_prog_compiler_static_CXX='-Bstatic'
11250 lt_prog_compiler_pic_CXX='-pic'
11257 case $cc_basename in
11259 # NonStop-UX NCC 3.20
11260 lt_prog_compiler_pic_CXX='-KPIC'
11271 lt_prog_compiler_can_build_shared_CXX=no
11276 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11277 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11280 # Check to make sure the PIC flag actually works.
11282 if test -n "$lt_prog_compiler_pic_CXX"; then
11284 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11285 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11286 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 lt_prog_compiler_pic_works_CXX=no
11290 ac_outfile=conftest.$ac_objext
11291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11292 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11293 # Insert the option either (1) after the last *FLAGS variable, or
11294 # (2) before a word containing "conftest.", or (3) at the end.
11295 # Note that $ac_compile itself does not contain backslashes and begins
11296 # with a dollar sign (not a hyphen), so the echo should work correctly.
11297 # The option is referenced via a variable to avoid confusing sed.
11298 lt_compile=`echo "$ac_compile" | $SED \
11299 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11301 -e 's:$: $lt_compiler_flag:'`
11302 (eval echo "\"\$as_me:11302: $lt_compile\"" >&5)
11303 (eval "$lt_compile" 2>conftest.err)
11305 cat conftest.err >&5
11306 echo "$as_me:11306: \$? = $ac_status" >&5
11307 if (exit $ac_status) && test -s "$ac_outfile"; then
11308 # The compiler can only warn and ignore the option if not recognized
11309 # So say no if there are warnings
11310 if test ! -s conftest.err; then
11311 lt_prog_compiler_pic_works_CXX=yes
11317 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11318 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11320 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11321 case $lt_prog_compiler_pic_CXX in
11323 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11326 lt_prog_compiler_pic_CXX=
11327 lt_prog_compiler_can_build_shared_CXX=no
11332 # For platforms which do not support PIC, -DPIC is meaningless:
11334 lt_prog_compiler_pic_CXX=
11337 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11341 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11342 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11343 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 lt_cv_prog_compiler_c_o_CXX=no
11347 $rm -r conftest 2>/dev/null
11351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11353 lt_compiler_flag="-o out/conftest2.$ac_objext"
11354 # Insert the option either (1) after the last *FLAGS variable, or
11355 # (2) before a word containing "conftest.", or (3) at the end.
11356 # Note that $ac_compile itself does not contain backslashes and begins
11357 # with a dollar sign (not a hyphen), so the echo should work correctly.
11358 lt_compile=`echo "$ac_compile" | $SED \
11359 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11361 -e 's:$: $lt_compiler_flag:'`
11362 (eval echo "\"\$as_me:11362: $lt_compile\"" >&5)
11363 (eval "$lt_compile" 2>out/conftest.err)
11365 cat out/conftest.err >&5
11366 echo "$as_me:11366: \$? = $ac_status" >&5
11367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11369 # The compiler can only warn and ignore the option if not recognized
11370 # So say no if there are warnings
11371 if test ! -s out/conftest.err; then
11372 lt_cv_prog_compiler_c_o_CXX=yes
11377 # SGI C++ compiler will create directory out/ii_files/ for
11378 # template instantiation
11379 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11380 $rm out/* && rmdir out
11386 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11387 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11390 hard_links="nottested"
11391 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11392 # do not overwrite the value of need_locks provided by the user
11393 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11394 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11399 ln conftest.a conftest.b 2>&5 || hard_links=no
11400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11401 echo "$as_me:$LINENO: result: $hard_links" >&5
11402 echo "${ECHO_T}$hard_links" >&6
11403 if test "$hard_links" = no; then
11404 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11405 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11412 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11413 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11418 # If we're using GNU nm, then we don't want the "-C" option.
11419 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11420 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11421 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'
11423 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'
11427 export_symbols_cmds_CXX="$ltdll_cmds"
11430 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11433 link_all_deplibs_CXX=no
11436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11440 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11441 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11442 test "$ld_shlibs_CXX" = no && can_build_shared=no
11444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11445 if test "$GCC" = yes; then
11446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11450 # Do we need to explicitly link libc?
11452 case "x$archive_cmds_need_lc_CXX" in
11454 # Assume -lc should be added
11455 archive_cmds_need_lc_CXX=yes
11457 if test "$enable_shared" = yes && test "$GCC" = yes; then
11458 case $archive_cmds_CXX in
11460 # FIXME: we may have to deal with multi-command sequences.
11463 # Test whether the compiler implicitly links with -lc since on some
11464 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11465 # to ld, don't add -lc before -lgcc.
11466 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11467 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11472 (eval $ac_compile) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } 2>conftest.err; then
11478 libobjs=conftest.$ac_objext
11480 wl=$lt_prog_compiler_wl_CXX
11486 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11487 allow_undefined_flag_CXX=
11488 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11489 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }
11494 archive_cmds_need_lc_CXX=no
11496 archive_cmds_need_lc_CXX=yes
11498 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11500 cat conftest.err 1>&5
11503 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11504 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11513 library_names_spec=
11514 libname_spec='lib$name'
11518 postuninstall_cmds=
11522 shlibpath_overrides_runpath=unknown
11524 dynamic_linker="$host_os ld.so"
11525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11526 if test "$GCC" = yes; then
11527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11528 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11529 # if the path contains ";" then we assume it to be the separator
11530 # otherwise default to the standard path separator (i.e. ":") - it is
11531 # assumed that no part of a normal pathname contains ";" but that should
11532 # okay in the real world where ";" in dirpaths is itself problematic.
11533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11540 need_lib_prefix=unknown
11541 hardcode_into_libs=no
11543 # when you set need_version to no, make sure it does not cause -set_version
11544 # flags to be left without arguments
11545 need_version=unknown
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11551 shlibpath_var=LIBPATH
11553 # AIX 3 has no versioning support, so we append a major version to the name.
11554 soname_spec='${libname}${release}${shared_ext}$major'
11561 hardcode_into_libs=yes
11562 if test "$host_cpu" = ia64; then
11563 # AIX 5 supports IA64
11564 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11565 shlibpath_var=LD_LIBRARY_PATH
11567 # With GCC up to 2.95.x, collect2 would create an import file
11568 # for dependence libraries. The import file would start with
11569 # the line `#! .'. This would cause the generated library to
11570 # depend on `.', always an invalid library. This was fixed in
11571 # development snapshots of GCC prior to 3.0.
11573 aix4 | aix4.[01] | aix4.[01].*)
11574 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11576 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11579 can_build_shared=no
11583 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11584 # soname into executable. Probably we can add versioning support to
11585 # collect2, so additional links can be useful in future.
11586 if test "$aix_use_runtimelinking" = yes; then
11587 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11588 # instead of lib<name>.a to let people know that these are not
11589 # typical AIX shared libraries.
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 # We preserve .a as extension for shared libraries through AIX4.2
11593 # and later when we are not doing run time linking.
11594 library_names_spec='${libname}${release}.a $libname.a'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11597 shlibpath_var=LIBPATH
11602 library_names_spec='$libname.ixlibrary $libname.a'
11603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11604 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'
11608 library_names_spec='${libname}${shared_ext}'
11609 dynamic_linker="$host_os ld.so"
11610 shlibpath_var=LIBRARY_PATH
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11622 # the default ld.so.conf also contains /usr/contrib/lib and
11623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11624 # libtool to hard-code these into programs
11627 cygwin* | mingw* | pw32*)
11628 version_type=windows
11633 case $GCC,$host_os in
11634 yes,cygwin* | yes,mingw* | yes,pw32*)
11635 library_names_spec='$libname.dll.a'
11636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11637 postinstall_cmds='base_file=`basename \${file}`~
11638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11639 dldir=$destdir/`dirname \$dlpath`~
11640 test -d \$dldir || mkdir -p \$dldir~
11641 $install_prog $dir/$dlname \$dldir/$dlname'
11642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11643 dlpath=$dir/\$dldll~
11645 shlibpath_overrides_runpath=yes
11649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11651 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11654 # MinGW DLLs use traditional 'lib' prefix
11655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11657 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11658 # It is most probably a Windows format PATH printed by
11659 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11660 # path with ; separators, and with drive letters. We can handle the
11661 # drive letters (cygwin fileutils understands them), so leave them,
11662 # especially as we might pass files found there to a mingw objdump,
11663 # which wouldn't understand a cygwinified path. Ahh.
11664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11670 # pw32 DLLs use 'pw' prefix rather than 'lib'
11671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11680 dynamic_linker='Win32 ld.exe'
11681 # FIXME: first we should search . and the directory the executable is in
11685 darwin* | rhapsody*)
11686 dynamic_linker="$host_os dyld"
11687 version_type=darwin
11690 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11691 soname_spec='${libname}${release}${major}$shared_ext'
11692 shlibpath_overrides_runpath=yes
11693 shlibpath_var=DYLD_LIBRARY_PATH
11694 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11695 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11696 if test "$GCC" = yes; then
11697 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"`
11699 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11709 soname_spec='${libname}${release}${shared_ext}$major'
11710 shlibpath_var=LD_LIBRARY_PATH
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11722 soname_spec='${libname}${release}${shared_ext}$major'
11723 shlibpath_var=LD_LIBRARY_PATH
11724 shlibpath_overrides_runpath=no
11725 hardcode_into_libs=yes
11726 dynamic_linker='GNU ld.so'
11730 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11731 version_type=freebsd-$objformat
11732 case $version_type in
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11743 shlibpath_var=LD_LIBRARY_PATH
11746 shlibpath_overrides_runpath=yes
11748 freebsd3.01* | freebsdelf3.01*)
11749 shlibpath_overrides_runpath=yes
11750 hardcode_into_libs=yes
11753 shlibpath_overrides_runpath=no
11754 hardcode_into_libs=yes
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 hardcode_into_libs=yes
11769 hpux9* | hpux10* | hpux11*)
11770 # Give a soname corresponding to the major version so that dld.sl refuses to
11771 # link against other versions.
11775 case "$host_cpu" in
11778 hardcode_into_libs=yes
11779 dynamic_linker="$host_os dld.so"
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11783 soname_spec='${libname}${release}${shared_ext}$major'
11784 if test "X$HPUX_IA64_MODE" = X32; then
11785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11787 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11793 hardcode_into_libs=yes
11794 dynamic_linker="$host_os dld.sl"
11795 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11798 soname_spec='${libname}${release}${shared_ext}$major'
11799 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11804 dynamic_linker="$host_os dld.sl"
11805 shlibpath_var=SHLIB_PATH
11806 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 soname_spec='${libname}${release}${shared_ext}$major'
11811 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11812 postinstall_cmds='chmod 555 $lib'
11815 irix5* | irix6* | nonstopux*)
11817 nonstopux*) version_type=nonstopux ;;
11819 if test "$lt_cv_prog_gnu_ld" = yes; then
11827 soname_spec='${libname}${release}${shared_ext}$major'
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11830 irix5* | nonstopux*)
11831 libsuff= shlibsuff=
11834 case $LD in # libtool.m4 will add one of these switches to LD
11835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11836 libsuff= shlibsuff= libmagic=32-bit;;
11837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11838 libsuff=32 shlibsuff=N32 libmagic=N32;;
11839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11841 *) libsuff= shlibsuff= libmagic=never-match;;
11845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11846 shlibpath_overrides_runpath=no
11847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11849 hardcode_into_libs=yes
11852 # No shared lib support for Linux oldld, aout, or coff.
11853 linux*oldld* | linux*aout* | linux*coff*)
11857 # This must be Linux ELF.
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 shlibpath_overrides_runpath=no
11867 # This implies no fast_install, which is unacceptable.
11868 # Some rework will be needed to allow for fast_install
11869 # before this can be enabled.
11870 hardcode_into_libs=yes
11872 # Append ld.so.conf contents to the search path
11873 if test -f /etc/ld.so.conf; then
11874 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11875 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11878 # We used to test for /lib/ld.so.1 and disable shared libraries on
11879 # powerpc, because MkLinux only supported shared libraries with the
11880 # GNU dynamic linker. Since this was broken with cross compilers,
11881 # most powerpc-linux boxes support dynamic linking these days and
11882 # people can always --disable-shared, the test was removed, and we
11883 # assume the GNU/Linux dynamic linker is in use.
11884 dynamic_linker='GNU/Linux ld.so'
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=no
11895 hardcode_into_libs=yes
11896 dynamic_linker='NetBSD ld.elf_so'
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11904 soname_spec='${libname}${release}${shared_ext}$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 shlibpath_overrides_runpath=no
11907 hardcode_into_libs=yes
11908 dynamic_linker='GNU ld.so'
11915 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11918 dynamic_linker='NetBSD (a.out) ld.so'
11920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11921 soname_spec='${libname}${release}${shared_ext}$major'
11922 dynamic_linker='NetBSD ld.elf_so'
11924 shlibpath_var=LD_LIBRARY_PATH
11925 shlibpath_overrides_runpath=yes
11926 hardcode_into_libs=yes
11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932 shlibpath_var=LD_LIBRARY_PATH
11933 shlibpath_overrides_runpath=yes
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11941 soname_spec='${libname}${release}${shared_ext}$major'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 shlibpath_overrides_runpath=yes
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11952 shlibpath_var=LD_LIBRARY_PATH
11953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11955 openbsd2.[89] | openbsd2.[89].*)
11956 shlibpath_overrides_runpath=no
11959 shlibpath_overrides_runpath=yes
11963 shlibpath_overrides_runpath=yes
11968 libname_spec='$name'
11971 library_names_spec='$libname${shared_ext} $libname.a'
11972 dynamic_linker='OS/2 ld.exe'
11973 shlibpath_var=LIBPATH
11976 osf3* | osf4* | osf5*)
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11982 shlibpath_var=LD_LIBRARY_PATH
11983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11984 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11989 soname_spec='${libname}${release}${shared_ext}$major'
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991 shlibpath_var=LD_LIBRARY_PATH
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11999 soname_spec='${libname}${release}${shared_ext}$major'
12000 shlibpath_var=LD_LIBRARY_PATH
12001 shlibpath_overrides_runpath=yes
12002 hardcode_into_libs=yes
12003 # ldd complains unless libraries are executable
12004 postinstall_cmds='chmod +x $lib'
12009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12010 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12011 shlibpath_var=LD_LIBRARY_PATH
12012 shlibpath_overrides_runpath=yes
12013 if test "$with_gnu_ld" = yes; then
12019 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12022 soname_spec='${libname}${release}${shared_ext}$major'
12023 shlibpath_var=LD_LIBRARY_PATH
12024 case $host_vendor in
12026 shlibpath_overrides_runpath=no
12028 export_dynamic_flag_spec='${wl}-Blargedynsym'
12029 runpath_var=LD_RUN_PATH
12037 shlibpath_overrides_runpath=no
12038 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12044 if test -d /usr/nec ;then
12046 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12047 soname_spec='$libname${shared_ext}.$major'
12048 shlibpath_var=LD_LIBRARY_PATH
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055 soname_spec='${libname}${release}${shared_ext}$major'
12056 shlibpath_var=LD_LIBRARY_PATH
12063 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12064 echo "${ECHO_T}$dynamic_linker" >&6
12065 test "$dynamic_linker" = no && can_build_shared=no
12067 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12068 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12069 hardcode_action_CXX=
12070 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12071 test -n "$runpath_var CXX" || \
12072 test "X$hardcode_automatic_CXX"="Xyes" ; then
12074 # We can hardcode non-existant directories.
12075 if test "$hardcode_direct_CXX" != no &&
12076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12077 # have to relink, otherwise we might link with an installed library
12078 # when we should be linking with a yet-to-be-installed one
12079 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12080 test "$hardcode_minus_L_CXX" != no; then
12081 # Linking always hardcodes the temporary library directory.
12082 hardcode_action_CXX=relink
12084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12085 hardcode_action_CXX=immediate
12088 # We cannot hardcode anything, or else we can only hardcode existing
12090 hardcode_action_CXX=unsupported
12092 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12093 echo "${ECHO_T}$hardcode_action_CXX" >&6
12095 if test "$hardcode_action_CXX" = relink; then
12096 # Fast installation is not supported
12097 enable_fast_install=no
12098 elif test "$shlibpath_overrides_runpath" = yes ||
12099 test "$enable_shared" = no; then
12100 # Fast installation is not necessary
12101 enable_fast_install=needless
12106 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12107 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12108 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12109 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12110 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12111 echo "$as_me:$LINENO: result: yes" >&5
12112 echo "${ECHO_T}yes" >&6
12114 # FIXME - insert some real tests, host_os isn't really good enough
12117 if test -n "$STRIP" ; then
12118 striplib="$STRIP -x"
12119 echo "$as_me:$LINENO: result: yes" >&5
12120 echo "${ECHO_T}yes" >&6
12122 echo "$as_me:$LINENO: result: no" >&5
12123 echo "${ECHO_T}no" >&6
12127 echo "$as_me:$LINENO: result: no" >&5
12128 echo "${ECHO_T}no" >&6
12133 if test "x$enable_dlopen" != xyes; then
12134 enable_dlopen=unknown
12135 enable_dlopen_self=unknown
12136 enable_dlopen_self_static=unknown
12143 lt_cv_dlopen="load_add_on"
12145 lt_cv_dlopen_self=yes
12149 lt_cv_dlopen="LoadLibrary"
12154 lt_cv_dlopen="dlopen"
12159 # if libdl is installed we need to link against it
12160 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12161 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12162 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 ac_check_lib_save_LIBS=$LIBS
12167 cat >conftest.$ac_ext <<_ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12174 /* Override any gcc2 internal prototype to avoid an error. */
12178 /* We use char because int might match the return type of a gcc2
12179 builtin and then its argument prototype would still apply. */
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191 (eval $ac_link) 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest$ac_exeext'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 ac_cv_lib_dl_dlopen=yes
12212 echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.$ac_ext >&5
12215 ac_cv_lib_dl_dlopen=no
12217 rm -f conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
12219 LIBS=$ac_check_lib_save_LIBS
12221 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12222 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12223 if test $ac_cv_lib_dl_dlopen = yes; then
12224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12227 lt_cv_dlopen="dyld"
12229 lt_cv_dlopen_self=yes
12236 echo "$as_me:$LINENO: checking for shl_load" >&5
12237 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12238 if test "${ac_cv_func_shl_load+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12249 #define shl_load innocuous_shl_load
12251 /* System header to define __stub macros and hopefully few prototypes,
12252 which can conflict with char shl_load (); below.
12253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12254 <limits.h> exists even on freestanding compilers. */
12257 # include <limits.h>
12259 # include <assert.h>
12264 /* Override any gcc2 internal prototype to avoid an error. */
12269 /* We use char because int might match the return type of a gcc2
12270 builtin and then its argument prototype would still apply. */
12272 /* The GNU C library defines this for functions which it implements
12273 to always fail with ENOSYS. Some functions are actually named
12274 something starting with __ and the normal name is an alias. */
12275 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12278 char (*f) () = shl_load;
12287 return f != shl_load;
12292 rm -f conftest.$ac_objext conftest$ac_exeext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12294 (eval $ac_link) 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest$ac_exeext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_cv_func_shl_load=yes
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 ac_cv_func_shl_load=no
12320 rm -f conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12323 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12324 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12325 if test $ac_cv_func_shl_load = yes; then
12326 lt_cv_dlopen="shl_load"
12328 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12329 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12330 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 ac_check_lib_save_LIBS=$LIBS
12335 cat >conftest.$ac_ext <<_ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12342 /* Override any gcc2 internal prototype to avoid an error. */
12346 /* We use char because int might match the return type of a gcc2
12347 builtin and then its argument prototype would still apply. */
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359 (eval $ac_link) 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest$ac_exeext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_lib_dld_shl_load=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_cv_lib_dld_shl_load=no
12385 rm -f conftest.err conftest.$ac_objext \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12389 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12390 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12391 if test $ac_cv_lib_dld_shl_load = yes; then
12392 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12394 echo "$as_me:$LINENO: checking for dlopen" >&5
12395 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12396 if test "${ac_cv_func_dlopen+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12407 #define dlopen innocuous_dlopen
12409 /* System header to define __stub macros and hopefully few prototypes,
12410 which can conflict with char dlopen (); below.
12411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12412 <limits.h> exists even on freestanding compilers. */
12415 # include <limits.h>
12417 # include <assert.h>
12422 /* Override any gcc2 internal prototype to avoid an error. */
12427 /* We use char because int might match the return type of a gcc2
12428 builtin and then its argument prototype would still apply. */
12430 /* The GNU C library defines this for functions which it implements
12431 to always fail with ENOSYS. Some functions are actually named
12432 something starting with __ and the normal name is an alias. */
12433 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12436 char (*f) () = dlopen;
12445 return f != dlopen;
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12452 (eval $ac_link) 2>conftest.er1
12454 grep -v '^ *+' conftest.er1 >conftest.err
12456 cat conftest.err >&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } &&
12459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest$ac_exeext'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 ac_cv_func_dlopen=yes
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ac_cv_func_dlopen=no
12478 rm -f conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
12481 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12482 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12483 if test $ac_cv_func_dlopen = yes; then
12484 lt_cv_dlopen="dlopen"
12486 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12487 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12488 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 ac_check_lib_save_LIBS=$LIBS
12493 cat >conftest.$ac_ext <<_ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12500 /* Override any gcc2 internal prototype to avoid an error. */
12504 /* We use char because int might match the return type of a gcc2
12505 builtin and then its argument prototype would still apply. */
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517 (eval $ac_link) 2>conftest.er1
12519 grep -v '^ *+' conftest.er1 >conftest.err
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 ac_cv_lib_dl_dlopen=yes
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 ac_cv_lib_dl_dlopen=no
12543 rm -f conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS
12547 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12548 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12549 if test $ac_cv_lib_dl_dlopen = yes; then
12550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12552 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12553 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12554 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 ac_check_lib_save_LIBS=$LIBS
12558 LIBS="-lsvld $LIBS"
12559 cat >conftest.$ac_ext <<_ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12566 /* Override any gcc2 internal prototype to avoid an error. */
12570 /* We use char because int might match the return type of a gcc2
12571 builtin and then its argument prototype would still apply. */
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12583 (eval $ac_link) 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; } &&
12596 { ac_try='test -s conftest$ac_exeext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_cv_lib_svld_dlopen=yes
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12607 ac_cv_lib_svld_dlopen=no
12609 rm -f conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12611 LIBS=$ac_check_lib_save_LIBS
12613 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12614 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12615 if test $ac_cv_lib_svld_dlopen = yes; then
12616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12618 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12619 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12620 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 ac_check_lib_save_LIBS=$LIBS
12625 cat >conftest.$ac_ext <<_ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12632 /* Override any gcc2 internal prototype to avoid an error. */
12636 /* We use char because int might match the return type of a gcc2
12637 builtin and then its argument prototype would still apply. */
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12649 (eval $ac_link) 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try='test -s conftest$ac_exeext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 ac_cv_lib_dld_dld_link=yes
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12673 ac_cv_lib_dld_dld_link=no
12675 rm -f conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
12677 LIBS=$ac_check_lib_save_LIBS
12679 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12680 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12681 if test $ac_cv_lib_dld_dld_link = yes; then
12682 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12703 if test "x$lt_cv_dlopen" != xno; then
12709 case $lt_cv_dlopen in
12711 save_CPPFLAGS="$CPPFLAGS"
12712 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12714 save_LDFLAGS="$LDFLAGS"
12715 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12718 LIBS="$lt_cv_dlopen_libs $LIBS"
12720 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12721 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12722 if test "${lt_cv_dlopen_self+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 if test "$cross_compiling" = yes; then :
12726 lt_cv_dlopen_self=cross
12728 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12729 lt_status=$lt_dlunknown
12730 cat > conftest.$ac_ext <<EOF
12731 #line 12731 "configure"
12732 #include "confdefs.h"
12741 # define LT_DLGLOBAL RTLD_GLOBAL
12744 # define LT_DLGLOBAL DL_GLOBAL
12746 # define LT_DLGLOBAL 0
12750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12751 find out it does not work in some platform. */
12752 #ifndef LT_DLLAZY_OR_NOW
12754 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12757 # define LT_DLLAZY_OR_NOW DL_LAZY
12760 # define LT_DLLAZY_OR_NOW RTLD_NOW
12763 # define LT_DLLAZY_OR_NOW DL_NOW
12765 # define LT_DLLAZY_OR_NOW 0
12773 extern "C" void exit (int);
12776 void fnord() { int i=42;}
12779 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12780 int status = $lt_dlunknown;
12784 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12785 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12786 /* dlclose (self); */
12792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12793 (eval $ac_link) 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12797 (./conftest; exit; ) 2>/dev/null
12799 case x$lt_status in
12800 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12801 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12802 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12805 # compilation failed
12806 lt_cv_dlopen_self=no
12813 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12814 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12816 if test "x$lt_cv_dlopen_self" = xyes; then
12817 LDFLAGS="$LDFLAGS $link_static_flag"
12818 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12819 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12820 if test "${lt_cv_dlopen_self_static+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 if test "$cross_compiling" = yes; then :
12824 lt_cv_dlopen_self_static=cross
12826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12827 lt_status=$lt_dlunknown
12828 cat > conftest.$ac_ext <<EOF
12829 #line 12829 "configure"
12830 #include "confdefs.h"
12839 # define LT_DLGLOBAL RTLD_GLOBAL
12842 # define LT_DLGLOBAL DL_GLOBAL
12844 # define LT_DLGLOBAL 0
12848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12849 find out it does not work in some platform. */
12850 #ifndef LT_DLLAZY_OR_NOW
12852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12855 # define LT_DLLAZY_OR_NOW DL_LAZY
12858 # define LT_DLLAZY_OR_NOW RTLD_NOW
12861 # define LT_DLLAZY_OR_NOW DL_NOW
12863 # define LT_DLLAZY_OR_NOW 0
12871 extern "C" void exit (int);
12874 void fnord() { int i=42;}
12877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12878 int status = $lt_dlunknown;
12882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12883 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12884 /* dlclose (self); */
12890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891 (eval $ac_link) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12895 (./conftest; exit; ) 2>/dev/null
12897 case x$lt_status in
12898 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12899 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12900 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12903 # compilation failed
12904 lt_cv_dlopen_self_static=no
12911 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12912 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12915 CPPFLAGS="$save_CPPFLAGS"
12916 LDFLAGS="$save_LDFLAGS"
12921 case $lt_cv_dlopen_self in
12922 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12923 *) enable_dlopen_self=unknown ;;
12926 case $lt_cv_dlopen_self_static in
12927 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12928 *) enable_dlopen_self_static=unknown ;;
12933 # The else clause should only fire when bootstrapping the
12934 # libtool distribution, otherwise you forgot to ship ltmain.sh
12935 # with your package, and you will get complaints that there are
12936 # no rules to generate ltmain.sh.
12937 if test -f "$ltmain"; then
12938 # See if we are running on zsh, and set the options which allow our commands through
12939 # without removal of \ escapes.
12940 if test -n "${ZSH_VERSION+set}" ; then
12941 setopt NO_GLOB_SUBST
12943 # Now quote all the things that may contain metacharacters while being
12944 # careful not to overquote the AC_SUBSTed values. We take copies of the
12945 # variables and quote the copies for generation of the libtool script.
12946 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12948 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12949 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12950 deplibs_check_method reload_flag reload_cmds need_locks \
12951 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12952 lt_cv_sys_global_symbol_to_c_name_address \
12953 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12954 old_postinstall_cmds old_postuninstall_cmds \
12958 lt_prog_compiler_wl_CXX \
12959 lt_prog_compiler_pic_CXX \
12960 lt_prog_compiler_static_CXX \
12961 lt_prog_compiler_no_builtin_flag_CXX \
12962 export_dynamic_flag_spec_CXX \
12963 thread_safe_flag_spec_CXX \
12964 whole_archive_flag_spec_CXX \
12965 enable_shared_with_static_runtimes_CXX \
12966 old_archive_cmds_CXX \
12967 old_archive_from_new_cmds_CXX \
12968 predep_objects_CXX \
12969 postdep_objects_CXX \
12972 compiler_lib_search_path_CXX \
12974 archive_expsym_cmds_CXX \
12975 postinstall_cmds_CXX \
12976 postuninstall_cmds_CXX \
12977 old_archive_from_expsyms_cmds_CXX \
12978 allow_undefined_flag_CXX \
12979 no_undefined_flag_CXX \
12980 export_symbols_cmds_CXX \
12981 hardcode_libdir_flag_spec_CXX \
12982 hardcode_libdir_flag_spec_ld_CXX \
12983 hardcode_libdir_separator_CXX \
12984 hardcode_automatic_CXX \
12986 module_expsym_cmds_CXX \
12987 lt_cv_prog_compiler_c_o_CXX \
12988 exclude_expsyms_CXX \
12989 include_expsyms_CXX; do
12992 old_archive_cmds_CXX | \
12993 old_archive_from_new_cmds_CXX | \
12994 archive_cmds_CXX | \
12995 archive_expsym_cmds_CXX | \
12996 module_cmds_CXX | \
12997 module_expsym_cmds_CXX | \
12998 old_archive_from_expsyms_cmds_CXX | \
12999 export_symbols_cmds_CXX | \
13000 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13001 postinstall_cmds | postuninstall_cmds | \
13002 old_postinstall_cmds | old_postuninstall_cmds | \
13003 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13004 # Double-quote double-evaled strings.
13005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13014 *'\$0 --fallback-echo"')
13015 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13021 cat <<__EOF__ >> "$cfgfile"
13022 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13024 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13026 # Shell to use when invoking shell scripts.
13029 # Whether or not to build shared libraries.
13030 build_libtool_libs=$enable_shared
13032 # Whether or not to build static libraries.
13033 build_old_libs=$enable_static
13035 # Whether or not to add -lc for building shared libraries.
13036 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13038 # Whether or not to disallow shared libs when runtime libs are static
13039 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13041 # Whether or not to optimize for fast installation.
13042 fast_install=$enable_fast_install
13045 host_alias=$host_alias
13048 # An echo program that does not interpret backslashes.
13053 AR_FLAGS=$lt_AR_FLAGS
13058 # A language-specific compiler.
13059 CC=$lt_compiler_CXX
13061 # Is the compiler the GNU C compiler?
13067 # The linker used to build libraries.
13070 # Whether we need hard or soft links.
13073 # A BSD-compatible nm program.
13076 # A symbol stripping program
13079 # Used to examine libraries when file_magic_cmd begins "file"
13080 MAGIC_CMD=$MAGIC_CMD
13082 # Used on cygwin: DLL creation program.
13085 # Used on cygwin: object dumper.
13088 # Used on cygwin: assembler.
13091 # The name of the directory that contains temporary libtool files.
13094 # How to create reloadable object files.
13095 reload_flag=$lt_reload_flag
13096 reload_cmds=$lt_reload_cmds
13098 # How to pass a linker flag through the compiler.
13099 wl=$lt_lt_prog_compiler_wl_CXX
13101 # Object file suffix (normally "o").
13102 objext="$ac_objext"
13104 # Old archive suffix (normally "a").
13107 # Shared library suffix (normally ".so").
13108 shrext_cmds='$shrext_cmds'
13110 # Executable file suffix (normally "").
13113 # Additional compiler flags for building library objects.
13114 pic_flag=$lt_lt_prog_compiler_pic_CXX
13117 # What is the maximum length of a command?
13118 max_cmd_len=$lt_cv_sys_max_cmd_len
13120 # Does compiler simultaneously support -c and -o options?
13121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13123 # Must we lock files when doing compilation ?
13124 need_locks=$lt_need_locks
13126 # Do we need the lib prefix for modules?
13127 need_lib_prefix=$need_lib_prefix
13129 # Do we need a version for libraries?
13130 need_version=$need_version
13132 # Whether dlopen is supported.
13133 dlopen_support=$enable_dlopen
13135 # Whether dlopen of programs is supported.
13136 dlopen_self=$enable_dlopen_self
13138 # Whether dlopen of statically linked programs is supported.
13139 dlopen_self_static=$enable_dlopen_self_static
13141 # Compiler flag to prevent dynamic linking.
13142 link_static_flag=$lt_lt_prog_compiler_static_CXX
13144 # Compiler flag to turn off builtin functions.
13145 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13147 # Compiler flag to allow reflexive dlopens.
13148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13150 # Compiler flag to generate shared objects directly from archives.
13151 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13153 # Compiler flag to generate thread-safe objects.
13154 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13156 # Library versioning type.
13157 version_type=$version_type
13159 # Format of library name prefix.
13160 libname_spec=$lt_libname_spec
13162 # List of archive names. First name is the real one, the rest are links.
13163 # The last name is the one that the linker finds with -lNAME.
13164 library_names_spec=$lt_library_names_spec
13166 # The coded name of the library, if different from the real name.
13167 soname_spec=$lt_soname_spec
13169 # Commands used to build and install an old-style archive.
13171 old_archive_cmds=$lt_old_archive_cmds_CXX
13172 old_postinstall_cmds=$lt_old_postinstall_cmds
13173 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13175 # Create an old-style archive from a shared archive.
13176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13178 # Create a temporary old-style archive to link instead of a shared archive.
13179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13181 # Commands used to build and install a shared archive.
13182 archive_cmds=$lt_archive_cmds_CXX
13183 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13184 postinstall_cmds=$lt_postinstall_cmds
13185 postuninstall_cmds=$lt_postuninstall_cmds
13187 # Commands used to build a loadable module (assumed same as above if empty)
13188 module_cmds=$lt_module_cmds_CXX
13189 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13191 # Commands to strip libraries.
13192 old_striplib=$lt_old_striplib
13193 striplib=$lt_striplib
13195 # Dependencies to place before the objects being linked to create a
13197 predep_objects=$lt_predep_objects_CXX
13199 # Dependencies to place after the objects being linked to create a
13201 postdep_objects=$lt_postdep_objects_CXX
13203 # Dependencies to place before the objects being linked to create a
13205 predeps=$lt_predeps_CXX
13207 # Dependencies to place after the objects being linked to create a
13209 postdeps=$lt_postdeps_CXX
13211 # The library search path used internally by the compiler when linking
13212 # a shared library.
13213 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13215 # Method to check whether dependent libraries are shared objects.
13216 deplibs_check_method=$lt_deplibs_check_method
13218 # Command to use when deplibs_check_method == file_magic.
13219 file_magic_cmd=$lt_file_magic_cmd
13221 # Flag that allows shared libraries with undefined symbols to be built.
13222 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13224 # Flag that forces no undefined symbols.
13225 no_undefined_flag=$lt_no_undefined_flag_CXX
13227 # Commands used to finish a libtool library installation in a directory.
13228 finish_cmds=$lt_finish_cmds
13230 # Same as above, but a single script fragment to be evaled but not shown.
13231 finish_eval=$lt_finish_eval
13233 # Take the output of nm and produce a listing of raw symbols and C names.
13234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13236 # Transform the output of nm in a proper C declaration
13237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13239 # Transform the output of nm in a C name address pair
13240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13242 # This is the shared library runtime path variable.
13243 runpath_var=$runpath_var
13245 # This is the shared library path variable.
13246 shlibpath_var=$shlibpath_var
13248 # Is shlibpath searched before the hard-coded library search path?
13249 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13251 # How to hardcode a shared library path into an executable.
13252 hardcode_action=$hardcode_action_CXX
13254 # Whether we should hardcode library paths into libraries.
13255 hardcode_into_libs=$hardcode_into_libs
13257 # Flag to hardcode \$libdir into a binary during linking.
13258 # This must work even if \$libdir does not exist.
13259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13261 # If ld is used when linking, flag to hardcode \$libdir into
13262 # a binary during linking. This must work even if \$libdir does
13264 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13266 # Whether we need a single -rpath flag with a separated argument.
13267 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13269 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13270 # resulting binary.
13271 hardcode_direct=$hardcode_direct_CXX
13273 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13274 # resulting binary.
13275 hardcode_minus_L=$hardcode_minus_L_CXX
13277 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13278 # the resulting binary.
13279 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13281 # Set to yes if building a shared library automatically hardcodes DIR into the library
13282 # and all subsequent libraries and executables linked against it.
13283 hardcode_automatic=$hardcode_automatic_CXX
13285 # Variables whose values should be saved in libtool wrapper scripts and
13286 # restored at relink time.
13287 variables_saved_for_relink="$variables_saved_for_relink"
13289 # Whether libtool must link a program against all its dependency libraries.
13290 link_all_deplibs=$link_all_deplibs_CXX
13292 # Compile-time system search path for libraries
13293 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13295 # Run-time system search path for libraries
13296 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13298 # Fix the shell variable \$srcfile for the compiler.
13299 fix_srcfile_path="$fix_srcfile_path_CXX"
13301 # Set to yes if exported symbols are required.
13302 always_export_symbols=$always_export_symbols_CXX
13304 # The commands to list exported symbols.
13305 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13307 # The commands to extract the exported symbol list from a shared archive.
13308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13310 # Symbols that should not be listed in the preloaded symbols.
13311 exclude_expsyms=$lt_exclude_expsyms_CXX
13313 # Symbols that must always be exported.
13314 include_expsyms=$lt_include_expsyms_CXX
13316 # ### END LIBTOOL TAG CONFIG: $tagname
13322 # If there is no Makefile yet, we rely on a make rule to execute
13323 # `config.status --recheck' to rerun these tests and create the
13324 # libtool script then.
13325 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13326 if test -f "$ltmain_in"; then
13327 test -f Makefile && make "$ltmain"
13333 ac_cpp='$CPP $CPPFLAGS'
13334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13342 with_gnu_ldcxx=$with_gnu_ld
13343 with_gnu_ld=$lt_save_with_gnu_ld
13344 lt_cv_path_LDCXX=$lt_cv_path_LD
13345 lt_cv_path_LD=$lt_save_path_LD
13346 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13347 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13355 if test -n "$F77" && test "X$F77" != "Xno"; then
13358 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13359 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13360 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13363 archive_cmds_need_lc_F77=no
13364 allow_undefined_flag_F77=
13365 always_export_symbols_F77=no
13366 archive_expsym_cmds_F77=
13367 export_dynamic_flag_spec_F77=
13368 hardcode_direct_F77=no
13369 hardcode_libdir_flag_spec_F77=
13370 hardcode_libdir_flag_spec_ld_F77=
13371 hardcode_libdir_separator_F77=
13372 hardcode_minus_L_F77=no
13373 hardcode_automatic_F77=no
13375 module_expsym_cmds_F77=
13376 link_all_deplibs_F77=unknown
13377 old_archive_cmds_F77=$old_archive_cmds
13378 no_undefined_flag_F77=
13379 whole_archive_flag_spec_F77=
13380 enable_shared_with_static_runtimes_F77=no
13382 # Source file extension for f77 test sources.
13385 # Object file extension for compiled f77 test sources.
13389 # Code to be used in simple compile tests
13390 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13392 # Code to be used in simple link tests
13393 lt_simple_link_test_code=" program t\n end\n"
13395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13397 # If no C compiler was specified, use CC.
13400 # Allow CC to be a program name with arguments.
13404 # Allow CC to be a program name with arguments.
13409 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13411 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13412 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13413 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13414 echo "${ECHO_T}$can_build_shared" >&6
13416 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13417 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13418 test "$can_build_shared" = "no" && enable_shared=no
13420 # On AIX, shared libraries and static libraries use the same namespace, and
13421 # are all built from PIC.
13424 test "$enable_shared" = yes && enable_static=no
13425 if test -n "$RANLIB"; then
13426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13427 postinstall_cmds='$RANLIB $lib'
13431 test "$enable_shared" = yes && enable_static=no
13434 echo "$as_me:$LINENO: result: $enable_shared" >&5
13435 echo "${ECHO_T}$enable_shared" >&6
13437 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13438 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13439 # Make sure either enable_shared or enable_static is yes.
13440 test "$enable_shared" = yes || enable_static=yes
13441 echo "$as_me:$LINENO: result: $enable_static" >&5
13442 echo "${ECHO_T}$enable_static" >&6
13444 test "$ld_shlibs_F77" = no && can_build_shared=no
13449 lt_prog_compiler_wl_F77=
13450 lt_prog_compiler_pic_F77=
13451 lt_prog_compiler_static_F77=
13453 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13454 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13456 if test "$GCC" = yes; then
13457 lt_prog_compiler_wl_F77='-Wl,'
13458 lt_prog_compiler_static_F77='-static'
13462 # All AIX code is PIC.
13463 if test "$host_cpu" = ia64; then
13464 # AIX 5 now supports IA64 processor
13465 lt_prog_compiler_static_F77='-Bstatic'
13470 # FIXME: we need at least 68020 code to build shared libraries, but
13471 # adding the `-m68020' flag to GCC prevents building anything better,
13473 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13476 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13477 # PIC is the default for these OSes.
13480 mingw* | pw32* | os2*)
13481 # This hack is so that the source file can tell whether it is being
13482 # built for inclusion in a dll (and should export symbols for example).
13483 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13486 darwin* | rhapsody*)
13487 # PIC is the default on this platform
13488 # Common symbols not allowed in MH_DYLIB files
13489 lt_prog_compiler_pic_F77='-fno-common'
13493 # Just because we use GCC doesn't mean we suddenly get shared libraries
13494 # on systems that don't support them.
13495 lt_prog_compiler_can_build_shared_F77=no
13500 if test -d /usr/nec; then
13501 lt_prog_compiler_pic_F77=-Kconform_pic
13506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13507 # not for PA HP-UX.
13508 case "$host_cpu" in
13513 lt_prog_compiler_pic_F77='-fPIC'
13519 lt_prog_compiler_pic_F77='-fPIC'
13523 # PORTME Check for flag to pass linker flags through the system compiler.
13526 lt_prog_compiler_wl_F77='-Wl,'
13527 if test "$host_cpu" = ia64; then
13528 # AIX 5 now supports IA64 processor
13529 lt_prog_compiler_static_F77='-Bstatic'
13531 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13535 mingw* | pw32* | os2*)
13536 # This hack is so that the source file can tell whether it is being
13537 # built for inclusion in a dll (and should export symbols for example).
13538 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13541 hpux9* | hpux10* | hpux11*)
13542 lt_prog_compiler_wl_F77='-Wl,'
13543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13544 # not for PA HP-UX.
13545 case "$host_cpu" in
13550 lt_prog_compiler_pic_F77='+Z'
13553 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13554 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13557 irix5* | irix6* | nonstopux*)
13558 lt_prog_compiler_wl_F77='-Wl,'
13559 # PIC (with -KPIC) is the default.
13560 lt_prog_compiler_static_F77='-non_shared'
13564 lt_prog_compiler_pic_F77='-KPIC'
13565 lt_prog_compiler_static_F77='-Bstatic'
13571 lt_prog_compiler_wl_F77='-Wl,'
13572 lt_prog_compiler_pic_F77='-KPIC'
13573 lt_prog_compiler_static_F77='-static'
13576 lt_prog_compiler_wl_F77='-Wl,'
13577 # All Alpha code is PIC.
13578 lt_prog_compiler_static_F77='-non_shared'
13583 osf3* | osf4* | osf5*)
13584 lt_prog_compiler_wl_F77='-Wl,'
13585 # All OSF/1 code is PIC.
13586 lt_prog_compiler_static_F77='-non_shared'
13590 lt_prog_compiler_pic_F77='-Kpic'
13591 lt_prog_compiler_static_F77='-dn'
13595 lt_prog_compiler_wl_F77='-Wl,'
13596 lt_prog_compiler_pic_F77='-KPIC'
13597 lt_prog_compiler_static_F77='-Bstatic'
13601 lt_prog_compiler_wl_F77='-Qoption ld '
13602 lt_prog_compiler_pic_F77='-PIC'
13603 lt_prog_compiler_static_F77='-Bstatic'
13606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13607 lt_prog_compiler_wl_F77='-Wl,'
13608 lt_prog_compiler_pic_F77='-KPIC'
13609 lt_prog_compiler_static_F77='-Bstatic'
13613 if test -d /usr/nec ;then
13614 lt_prog_compiler_pic_F77='-Kconform_pic'
13615 lt_prog_compiler_static_F77='-Bstatic'
13620 lt_prog_compiler_pic_F77='-pic'
13621 lt_prog_compiler_static_F77='-Bstatic'
13625 lt_prog_compiler_can_build_shared_F77=no
13630 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13631 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13634 # Check to make sure the PIC flag actually works.
13636 if test -n "$lt_prog_compiler_pic_F77"; then
13638 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13639 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13640 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 lt_prog_compiler_pic_works_F77=no
13644 ac_outfile=conftest.$ac_objext
13645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13646 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13647 # Insert the option either (1) after the last *FLAGS variable, or
13648 # (2) before a word containing "conftest.", or (3) at the end.
13649 # Note that $ac_compile itself does not contain backslashes and begins
13650 # with a dollar sign (not a hyphen), so the echo should work correctly.
13651 # The option is referenced via a variable to avoid confusing sed.
13652 lt_compile=`echo "$ac_compile" | $SED \
13653 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13655 -e 's:$: $lt_compiler_flag:'`
13656 (eval echo "\"\$as_me:13656: $lt_compile\"" >&5)
13657 (eval "$lt_compile" 2>conftest.err)
13659 cat conftest.err >&5
13660 echo "$as_me:13660: \$? = $ac_status" >&5
13661 if (exit $ac_status) && test -s "$ac_outfile"; then
13662 # The compiler can only warn and ignore the option if not recognized
13663 # So say no if there are warnings
13664 if test ! -s conftest.err; then
13665 lt_prog_compiler_pic_works_F77=yes
13671 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13672 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13674 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13675 case $lt_prog_compiler_pic_F77 in
13677 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13680 lt_prog_compiler_pic_F77=
13681 lt_prog_compiler_can_build_shared_F77=no
13686 # For platforms which do not support PIC, -DPIC is meaningless:
13688 lt_prog_compiler_pic_F77=
13691 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13695 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13696 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13697 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 lt_cv_prog_compiler_c_o_F77=no
13701 $rm -r conftest 2>/dev/null
13705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13707 lt_compiler_flag="-o out/conftest2.$ac_objext"
13708 # Insert the option either (1) after the last *FLAGS variable, or
13709 # (2) before a word containing "conftest.", or (3) at the end.
13710 # Note that $ac_compile itself does not contain backslashes and begins
13711 # with a dollar sign (not a hyphen), so the echo should work correctly.
13712 lt_compile=`echo "$ac_compile" | $SED \
13713 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13715 -e 's:$: $lt_compiler_flag:'`
13716 (eval echo "\"\$as_me:13716: $lt_compile\"" >&5)
13717 (eval "$lt_compile" 2>out/conftest.err)
13719 cat out/conftest.err >&5
13720 echo "$as_me:13720: \$? = $ac_status" >&5
13721 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13723 # The compiler can only warn and ignore the option if not recognized
13724 # So say no if there are warnings
13725 if test ! -s out/conftest.err; then
13726 lt_cv_prog_compiler_c_o_F77=yes
13731 # SGI C++ compiler will create directory out/ii_files/ for
13732 # template instantiation
13733 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13734 $rm out/* && rmdir out
13740 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13741 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13744 hard_links="nottested"
13745 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13746 # do not overwrite the value of need_locks provided by the user
13747 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13748 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13753 ln conftest.a conftest.b 2>&5 || hard_links=no
13754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13755 echo "$as_me:$LINENO: result: $hard_links" >&5
13756 echo "${ECHO_T}$hard_links" >&6
13757 if test "$hard_links" = no; then
13758 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13759 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13766 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13767 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13770 allow_undefined_flag_F77=
13771 enable_shared_with_static_runtimes_F77=no
13773 archive_expsym_cmds_F77=
13774 old_archive_From_new_cmds_F77=
13775 old_archive_from_expsyms_cmds_F77=
13776 export_dynamic_flag_spec_F77=
13777 whole_archive_flag_spec_F77=
13778 thread_safe_flag_spec_F77=
13779 hardcode_libdir_flag_spec_F77=
13780 hardcode_libdir_flag_spec_ld_F77=
13781 hardcode_libdir_separator_F77=
13782 hardcode_direct_F77=no
13783 hardcode_minus_L_F77=no
13784 hardcode_shlibpath_var_F77=unsupported
13785 link_all_deplibs_F77=unknown
13786 hardcode_automatic_F77=no
13788 module_expsym_cmds_F77=
13789 always_export_symbols_F77=no
13790 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13791 # include_expsyms should be a list of space-separated symbols to be *always*
13792 # included in the symbol list
13793 include_expsyms_F77=
13794 # exclude_expsyms can be an extended regexp of symbols to exclude
13795 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13797 # as well as any symbol that contains `d'.
13798 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13800 # platforms (ab)use it in PIC code, but their linkers get confused if
13801 # the symbol is explicitly referenced. Since portable code cannot
13802 # rely on this symbol name, it's probably fine to never include it in
13803 # preloaded symbol tables.
13804 extract_expsyms_cmds=
13807 cygwin* | mingw* | pw32*)
13808 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13809 # When not using gcc, we currently assume that we are using
13810 # Microsoft Visual C++.
13811 if test "$GCC" != yes; then
13821 if test "$with_gnu_ld" = yes; then
13822 # If archive_cmds runs LD, not CC, wlarc should be empty
13825 # See if GNU ld supports shared libraries.
13827 aix3* | aix4* | aix5*)
13828 # On AIX/PPC, the GNU linker is very broken
13829 if test "$host_cpu" != ia64; then
13833 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13834 *** to be unable to reliably create shared libraries on AIX.
13835 *** Therefore, libtool is disabling shared libraries support. If you
13836 *** really care for shared libraries, you may want to modify your PATH
13837 *** so that a non-GNU linker is found, and then restart.
13844 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)'
13845 hardcode_libdir_flag_spec_F77='-L$libdir'
13846 hardcode_minus_L_F77=yes
13848 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13849 # that the semantics of dynamic libraries on AmigaOS, at least up
13850 # to version 4, is to share data among multiple programs linked
13851 # with the same dynamic library. Since this doesn't match the
13852 # behavior of shared libraries on other platforms, we can't use
13858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13859 allow_undefined_flag_F77=unsupported
13860 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13861 # support --undefined. This deserves some investigation. FIXME
13862 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13868 cygwin* | mingw* | pw32*)
13869 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13870 # as there is no search path for DLLs.
13871 hardcode_libdir_flag_spec_F77='-L$libdir'
13872 allow_undefined_flag_F77=unsupported
13873 always_export_symbols_F77=no
13874 enable_shared_with_static_runtimes_F77=yes
13875 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13877 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13878 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13879 # If the export-symbols file already is a .def file (1st line
13880 # is EXPORTS), use it as is; otherwise, prepend...
13881 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13882 cp $export_symbols $output_objdir/$soname.def;
13884 echo EXPORTS > $output_objdir/$soname.def;
13885 cat $export_symbols >> $output_objdir/$soname.def;
13887 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13893 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13894 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13895 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13898 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13899 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13904 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13908 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13909 *** create shared libraries on Solaris systems. Therefore, libtool
13910 *** is disabling shared libraries support. We urge you to upgrade GNU
13911 *** binutils to release 2.9.1 or newer. Another option is to modify
13912 *** your PATH or compiler configuration so that the native linker is
13913 *** used, and then restart.
13916 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13917 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13918 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13925 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13927 hardcode_direct_F77=yes
13928 hardcode_shlibpath_var_F77=no
13932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13933 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13934 archive_cmds_F77="$tmp_archive_cmds"
13935 supports_anon_versioning=no
13936 case `$LD -v 2>/dev/null` in
13937 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13938 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13939 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13940 *\ 2.11.*) ;; # other 2.11 versions
13941 *) supports_anon_versioning=yes ;;
13943 if test $supports_anon_versioning = yes; then
13944 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13946 $echo "local: *; };" >> $output_objdir/$libname.ver~
13947 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13949 archive_expsym_cmds_F77="$tmp_archive_cmds"
13951 link_all_deplibs_F77=no
13958 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13959 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13960 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13967 if test "$ld_shlibs_F77" = yes; then
13968 runpath_var=LD_RUN_PATH
13969 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13970 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13971 # ancient GNU ld didn't support --whole-archive et. al.
13972 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13973 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13975 whole_archive_flag_spec_F77=
13979 # PORTME fill in a description of your system's linker (not GNU ld)
13982 allow_undefined_flag_F77=unsupported
13983 always_export_symbols_F77=yes
13984 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'
13985 # Note: this linker hardcodes the directories in LIBPATH if there
13986 # are no directories specified by -L.
13987 hardcode_minus_L_F77=yes
13988 if test "$GCC" = yes && test -z "$link_static_flag"; then
13989 # Neither direct hardcoding nor static linking is supported with a
13991 hardcode_direct_F77=unsupported
13996 if test "$host_cpu" = ia64; then
13997 # On IA64, the linker does run time linking by default, so we don't
13998 # have to do anything special.
13999 aix_use_runtimelinking=no
14000 exp_sym_flag='-Bexport'
14003 # If we're using GNU nm, then we don't want the "-C" option.
14004 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14005 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14006 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'
14008 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'
14010 aix_use_runtimelinking=no
14012 # Test if we are trying to use run time linking or normal
14013 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14014 # need to do runtime linking.
14015 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14016 for ld_flag in $LDFLAGS; do
14017 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14018 aix_use_runtimelinking=yes
14024 exp_sym_flag='-bexport'
14025 no_entry_flag='-bnoentry'
14028 # When large executables or shared objects are built, AIX ld can
14029 # have problems creating the table of contents. If linking a library
14030 # or program results in "error TOC overflow" add -mminimal-toc to
14031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14034 archive_cmds_F77=''
14035 hardcode_direct_F77=yes
14036 hardcode_libdir_separator_F77=':'
14037 link_all_deplibs_F77=yes
14039 if test "$GCC" = yes; then
14040 case $host_os in aix4.012|aix4.012.*)
14041 # We only want to do this on AIX 4.2 and lower, the check
14042 # below for broken collect2 doesn't work under 4.3+
14043 collect2name=`${CC} -print-prog-name=collect2`
14044 if test -f "$collect2name" && \
14045 strings "$collect2name" | grep resolve_lib_name >/dev/null
14047 # We have reworked collect2
14048 hardcode_direct_F77=yes
14050 # We have old collect2
14051 hardcode_direct_F77=unsupported
14052 # It fails to find uninstalled libraries when the uninstalled
14053 # path is not listed in the libpath. Setting hardcode_minus_L
14054 # to unsupported forces relinking
14055 hardcode_minus_L_F77=yes
14056 hardcode_libdir_flag_spec_F77='-L$libdir'
14057 hardcode_libdir_separator_F77=
14060 shared_flag='-shared'
14063 if test "$host_cpu" = ia64; then
14064 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14065 # chokes on -Wl,-G. The following line is correct:
14068 if test "$aix_use_runtimelinking" = yes; then
14069 shared_flag='${wl}-G'
14071 shared_flag='${wl}-bM:SRE'
14076 # It seems that -bexpall does not export symbols beginning with
14077 # underscore (_), so it is better to generate a list of symbols to export.
14078 always_export_symbols_F77=yes
14079 if test "$aix_use_runtimelinking" = yes; then
14080 # Warning - without using the other runtime loading flags (-brtl),
14081 # -berok will link without error, but may produce a broken library.
14082 allow_undefined_flag_F77='-berok'
14083 # Determine the default libpath from the value encoded in an empty executable.
14084 cat >conftest.$ac_ext <<_ACEOF
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091 (eval $ac_link) 2>conftest.er1
14093 grep -v '^ *+' conftest.er1 >conftest.err
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try='test -s conftest$ac_exeext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14113 # Check for a 64-bit object if we didn't find anything.
14114 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; }
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14121 rm -f conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14125 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14126 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"
14128 if test "$host_cpu" = ia64; then
14129 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14130 allow_undefined_flag_F77="-z nodefs"
14131 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"
14133 # Determine the default libpath from the value encoded in an empty executable.
14134 cat >conftest.$ac_ext <<_ACEOF
14139 rm -f conftest.$ac_objext conftest$ac_exeext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14141 (eval $ac_link) 2>conftest.er1
14143 grep -v '^ *+' conftest.er1 >conftest.err
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; } &&
14154 { ac_try='test -s conftest$ac_exeext'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14163 # Check for a 64-bit object if we didn't find anything.
14164 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; }
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14171 rm -f conftest.err conftest.$ac_objext \
14172 conftest$ac_exeext conftest.$ac_ext
14173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14175 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14176 # Warning - without using the other run time loading flags,
14177 # -berok will link without error, but may produce a broken library.
14178 no_undefined_flag_F77=' ${wl}-bernotok'
14179 allow_undefined_flag_F77=' ${wl}-berok'
14180 # -bexpall does not export symbols beginning with underscore (_)
14181 always_export_symbols_F77=yes
14182 # Exported symbols can be pulled into shared objects from archives
14183 whole_archive_flag_spec_F77=' '
14184 archive_cmds_need_lc_F77=yes
14185 # This is similar to how AIX traditionally builds it's shared libraries.
14186 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'
14192 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)'
14193 hardcode_libdir_flag_spec_F77='-L$libdir'
14194 hardcode_minus_L_F77=yes
14195 # see comment about different semantics on the GNU ld section
14200 export_dynamic_flag_spec_F77=-rdynamic
14203 cygwin* | mingw* | pw32*)
14204 # When not using gcc, we currently assume that we are using
14205 # Microsoft Visual C++.
14206 # hardcode_libdir_flag_spec is actually meaningless, as there is
14207 # no search path for DLLs.
14208 hardcode_libdir_flag_spec_F77=' '
14209 allow_undefined_flag_F77=unsupported
14210 # Tell ltmain to make .lib files, not .a files.
14212 # Tell ltmain to make .dll files, not .so files.
14214 # FIXME: Setting linknames here is a bad hack.
14215 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14216 # The linker will automatically build a .lib file if we build a DLL.
14217 old_archive_From_new_cmds_F77='true'
14218 # FIXME: Should let the user specify the lib program.
14219 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14220 fix_srcfile_path='`cygpath -w "$srcfile"`'
14221 enable_shared_with_static_runtimes_F77=yes
14224 darwin* | rhapsody*)
14225 if test "$GXX" = yes ; then
14226 archive_cmds_need_lc_F77=no
14228 rhapsody* | darwin1.[012])
14229 allow_undefined_flag_F77='-undefined suppress'
14232 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14233 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14235 case ${MACOSX_DEPLOYMENT_TARGET} in
14237 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14240 allow_undefined_flag_F77='-undefined dynamic_lookup'
14246 lt_int_apple_cc_single_mod=no
14247 output_verbose_link_cmd='echo'
14248 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14249 lt_int_apple_cc_single_mod=yes
14251 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14252 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14254 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'
14256 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14258 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14259 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}'
14261 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}'
14263 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}'
14264 hardcode_direct_F77=no
14265 hardcode_automatic_F77=yes
14266 hardcode_shlibpath_var_F77=unsupported
14267 whole_archive_flag_spec_F77='-all_load $convenience'
14268 link_all_deplibs_F77=yes
14275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14276 hardcode_libdir_flag_spec_F77='-L$libdir'
14277 hardcode_shlibpath_var_F77=no
14284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14285 # support. Future versions do this automatically, but an explicit c++rt0.o
14286 # does not break anything, and helps significantly (at the cost of a little
14289 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14290 hardcode_libdir_flag_spec_F77='-R$libdir'
14291 hardcode_direct_F77=yes
14292 hardcode_shlibpath_var_F77=no
14295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14297 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14298 hardcode_direct_F77=yes
14299 hardcode_minus_L_F77=yes
14300 hardcode_shlibpath_var_F77=no
14303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14304 freebsd* | kfreebsd*-gnu)
14305 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14306 hardcode_libdir_flag_spec_F77='-R$libdir'
14307 hardcode_direct_F77=yes
14308 hardcode_shlibpath_var_F77=no
14312 if test "$GCC" = yes; then
14313 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'
14315 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'
14317 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14318 hardcode_libdir_separator_F77=:
14319 hardcode_direct_F77=yes
14321 # hardcode_minus_L: Not really in the search PATH,
14322 # but as the default location of the library.
14323 hardcode_minus_L_F77=yes
14324 export_dynamic_flag_spec_F77='${wl}-E'
14328 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14329 case "$host_cpu" in
14331 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14334 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14338 case "$host_cpu" in
14340 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14343 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14347 if test "$with_gnu_ld" = no; then
14348 case "$host_cpu" in
14350 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14351 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14352 hardcode_libdir_separator_F77=:
14353 hardcode_direct_F77=no
14354 hardcode_shlibpath_var_F77=no
14357 hardcode_libdir_flag_spec_F77='-L$libdir'
14358 hardcode_direct_F77=no
14359 hardcode_shlibpath_var_F77=no
14361 # hardcode_minus_L: Not really in the search PATH,
14362 # but as the default location of the library.
14363 hardcode_minus_L_F77=yes
14366 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14367 hardcode_libdir_separator_F77=:
14368 hardcode_direct_F77=yes
14369 export_dynamic_flag_spec_F77='${wl}-E'
14371 # hardcode_minus_L: Not really in the search PATH,
14372 # but as the default location of the library.
14373 hardcode_minus_L_F77=yes
14379 irix5* | irix6* | nonstopux*)
14380 if test "$GCC" = yes; then
14381 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'
14383 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'
14384 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14386 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14387 hardcode_libdir_separator_F77=:
14388 link_all_deplibs_F77=yes
14391 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14393 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14395 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14397 hardcode_libdir_flag_spec_F77='-R$libdir'
14398 hardcode_direct_F77=yes
14399 hardcode_shlibpath_var_F77=no
14403 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14404 hardcode_direct_F77=yes
14405 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14406 hardcode_libdir_separator_F77=:
14407 hardcode_shlibpath_var_F77=no
14411 hardcode_direct_F77=yes
14412 hardcode_shlibpath_var_F77=no
14413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14414 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14415 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14416 export_dynamic_flag_spec_F77='${wl}-E'
14419 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14420 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14421 hardcode_libdir_flag_spec_F77='-R$libdir'
14424 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14425 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14432 hardcode_libdir_flag_spec_F77='-L$libdir'
14433 hardcode_minus_L_F77=yes
14434 allow_undefined_flag_F77=unsupported
14435 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'
14436 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14440 if test "$GCC" = yes; then
14441 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14442 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'
14444 allow_undefined_flag_F77=' -expect_unresolved \*'
14445 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'
14447 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14448 hardcode_libdir_separator_F77=:
14451 osf4* | osf5*) # as osf3* with the addition of -msym flag
14452 if test "$GCC" = yes; then
14453 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14454 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'
14455 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14457 allow_undefined_flag_F77=' -expect_unresolved \*'
14458 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'
14459 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~
14460 $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'
14462 # Both c and cxx compiler support -rpath directly
14463 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14465 hardcode_libdir_separator_F77=:
14469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14470 hardcode_shlibpath_var_F77=no
14471 export_dynamic_flag_spec_F77='${wl}-Bexport'
14472 runpath_var=LD_RUN_PATH
14473 hardcode_runpath_var=yes
14477 no_undefined_flag_F77=' -z text'
14478 if test "$GCC" = yes; then
14479 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14480 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14481 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14483 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14484 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14487 hardcode_libdir_flag_spec_F77='-R$libdir'
14488 hardcode_shlibpath_var_F77=no
14490 solaris2.[0-5] | solaris2.[0-5].*) ;;
14491 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14492 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14494 link_all_deplibs_F77=yes
14498 if test "x$host_vendor" = xsequent; then
14499 # Use $CC to link under sequent, because it throws in some extra .o
14500 # files that make .init and .fini sections work.
14501 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14503 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14505 hardcode_libdir_flag_spec_F77='-L$libdir'
14506 hardcode_direct_F77=yes
14507 hardcode_minus_L_F77=yes
14508 hardcode_shlibpath_var_F77=no
14512 case $host_vendor in
14514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14515 hardcode_direct_F77=yes # is this really true???
14518 ## LD is ld it makes a PLAMLIB
14519 ## CC just makes a GrossModule.
14520 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14521 reload_cmds_F77='$CC -r -o $output$reload_objs'
14522 hardcode_direct_F77=no
14525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14526 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14529 runpath_var='LD_RUN_PATH'
14530 hardcode_shlibpath_var_F77=no
14534 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14535 hardcode_shlibpath_var_F77=no
14536 export_dynamic_flag_spec_F77='-Bexport'
14540 if test -d /usr/nec; then
14541 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14542 hardcode_shlibpath_var_F77=no
14543 runpath_var=LD_RUN_PATH
14544 hardcode_runpath_var=yes
14550 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14551 hardcode_direct_F77=yes
14552 hardcode_minus_L_F77=no
14553 hardcode_shlibpath_var_F77=no
14554 hardcode_runpath_var=yes
14555 runpath_var=LD_RUN_PATH
14558 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14559 no_undefined_flag_F77='${wl}-z ${wl}text'
14560 if test "$GCC" = yes; then
14561 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14563 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14565 runpath_var='LD_RUN_PATH'
14566 hardcode_shlibpath_var_F77=no
14570 no_undefined_flag_F77=' -z text'
14571 # $CC -shared without GNU ld will not create a library from C++
14572 # object files and a static libstdc++, better avoid it by now
14573 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14574 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14576 hardcode_libdir_flag_spec_F77=
14577 hardcode_shlibpath_var_F77=no
14578 runpath_var='LD_RUN_PATH'
14582 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14583 hardcode_libdir_flag_spec_F77='-L$libdir'
14584 hardcode_shlibpath_var_F77=no
14593 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14594 echo "${ECHO_T}$ld_shlibs_F77" >&6
14595 test "$ld_shlibs_F77" = no && can_build_shared=no
14597 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14598 if test "$GCC" = yes; then
14599 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14603 # Do we need to explicitly link libc?
14605 case "x$archive_cmds_need_lc_F77" in
14607 # Assume -lc should be added
14608 archive_cmds_need_lc_F77=yes
14610 if test "$enable_shared" = yes && test "$GCC" = yes; then
14611 case $archive_cmds_F77 in
14613 # FIXME: we may have to deal with multi-command sequences.
14616 # Test whether the compiler implicitly links with -lc since on some
14617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14618 # to ld, don't add -lc before -lgcc.
14619 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14620 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14625 (eval $ac_compile) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } 2>conftest.err; then
14631 libobjs=conftest.$ac_objext
14633 wl=$lt_prog_compiler_wl_F77
14639 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14640 allow_undefined_flag_F77=
14641 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14642 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }
14647 archive_cmds_need_lc_F77=no
14649 archive_cmds_need_lc_F77=yes
14651 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14653 cat conftest.err 1>&5
14656 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14657 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14664 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14665 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14666 library_names_spec=
14667 libname_spec='lib$name'
14671 postuninstall_cmds=
14675 shlibpath_overrides_runpath=unknown
14677 dynamic_linker="$host_os ld.so"
14678 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14679 if test "$GCC" = yes; then
14680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14681 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14682 # if the path contains ";" then we assume it to be the separator
14683 # otherwise default to the standard path separator (i.e. ":") - it is
14684 # assumed that no part of a normal pathname contains ";" but that should
14685 # okay in the real world where ";" in dirpaths is itself problematic.
14686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14693 need_lib_prefix=unknown
14694 hardcode_into_libs=no
14696 # when you set need_version to no, make sure it does not cause -set_version
14697 # flags to be left without arguments
14698 need_version=unknown
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14704 shlibpath_var=LIBPATH
14706 # AIX 3 has no versioning support, so we append a major version to the name.
14707 soname_spec='${libname}${release}${shared_ext}$major'
14714 hardcode_into_libs=yes
14715 if test "$host_cpu" = ia64; then
14716 # AIX 5 supports IA64
14717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14718 shlibpath_var=LD_LIBRARY_PATH
14720 # With GCC up to 2.95.x, collect2 would create an import file
14721 # for dependence libraries. The import file would start with
14722 # the line `#! .'. This would cause the generated library to
14723 # depend on `.', always an invalid library. This was fixed in
14724 # development snapshots of GCC prior to 3.0.
14726 aix4 | aix4.[01] | aix4.[01].*)
14727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14729 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14732 can_build_shared=no
14736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14737 # soname into executable. Probably we can add versioning support to
14738 # collect2, so additional links can be useful in future.
14739 if test "$aix_use_runtimelinking" = yes; then
14740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14741 # instead of lib<name>.a to let people know that these are not
14742 # typical AIX shared libraries.
14743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 # We preserve .a as extension for shared libraries through AIX4.2
14746 # and later when we are not doing run time linking.
14747 library_names_spec='${libname}${release}.a $libname.a'
14748 soname_spec='${libname}${release}${shared_ext}$major'
14750 shlibpath_var=LIBPATH
14755 library_names_spec='$libname.ixlibrary $libname.a'
14756 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14757 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'
14761 library_names_spec='${libname}${shared_ext}'
14762 dynamic_linker="$host_os ld.so"
14763 shlibpath_var=LIBRARY_PATH
14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770 soname_spec='${libname}${release}${shared_ext}$major'
14771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14772 shlibpath_var=LD_LIBRARY_PATH
14773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14775 # the default ld.so.conf also contains /usr/contrib/lib and
14776 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14777 # libtool to hard-code these into programs
14780 cygwin* | mingw* | pw32*)
14781 version_type=windows
14786 case $GCC,$host_os in
14787 yes,cygwin* | yes,mingw* | yes,pw32*)
14788 library_names_spec='$libname.dll.a'
14789 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14790 postinstall_cmds='base_file=`basename \${file}`~
14791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14792 dldir=$destdir/`dirname \$dlpath`~
14793 test -d \$dldir || mkdir -p \$dldir~
14794 $install_prog $dir/$dlname \$dldir/$dlname'
14795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14796 dlpath=$dir/\$dldll~
14798 shlibpath_overrides_runpath=yes
14802 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14804 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14807 # MinGW DLLs use traditional 'lib' prefix
14808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14809 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14810 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14811 # It is most probably a Windows format PATH printed by
14812 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14813 # path with ; separators, and with drive letters. We can handle the
14814 # drive letters (cygwin fileutils understands them), so leave them,
14815 # especially as we might pass files found there to a mingw objdump,
14816 # which wouldn't understand a cygwinified path. Ahh.
14817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14823 # pw32 DLLs use 'pw' prefix rather than 'lib'
14824 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14830 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14833 dynamic_linker='Win32 ld.exe'
14834 # FIXME: first we should search . and the directory the executable is in
14838 darwin* | rhapsody*)
14839 dynamic_linker="$host_os dyld"
14840 version_type=darwin
14843 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14844 soname_spec='${libname}${release}${major}$shared_ext'
14845 shlibpath_overrides_runpath=yes
14846 shlibpath_var=DYLD_LIBRARY_PATH
14847 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14848 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14849 if test "$GCC" = yes; then
14850 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"`
14852 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14854 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 shlibpath_var=LD_LIBRARY_PATH
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 shlibpath_overrides_runpath=no
14878 hardcode_into_libs=yes
14879 dynamic_linker='GNU ld.so'
14883 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14884 version_type=freebsd-$objformat
14885 case $version_type in
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14896 shlibpath_var=LD_LIBRARY_PATH
14899 shlibpath_overrides_runpath=yes
14901 freebsd3.01* | freebsdelf3.01*)
14902 shlibpath_overrides_runpath=yes
14903 hardcode_into_libs=yes
14906 shlibpath_overrides_runpath=no
14907 hardcode_into_libs=yes
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 shlibpath_var=LD_LIBRARY_PATH
14919 hardcode_into_libs=yes
14922 hpux9* | hpux10* | hpux11*)
14923 # Give a soname corresponding to the major version so that dld.sl refuses to
14924 # link against other versions.
14928 case "$host_cpu" in
14931 hardcode_into_libs=yes
14932 dynamic_linker="$host_os dld.so"
14933 shlibpath_var=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 if test "X$HPUX_IA64_MODE" = X32; then
14938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14940 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14946 hardcode_into_libs=yes
14947 dynamic_linker="$host_os dld.sl"
14948 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14957 dynamic_linker="$host_os dld.sl"
14958 shlibpath_var=SHLIB_PATH
14959 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14964 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14965 postinstall_cmds='chmod 555 $lib'
14968 irix5* | irix6* | nonstopux*)
14970 nonstopux*) version_type=nonstopux ;;
14972 if test "$lt_cv_prog_gnu_ld" = yes; then
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14983 irix5* | nonstopux*)
14984 libsuff= shlibsuff=
14987 case $LD in # libtool.m4 will add one of these switches to LD
14988 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14989 libsuff= shlibsuff= libmagic=32-bit;;
14990 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14991 libsuff=32 shlibsuff=N32 libmagic=N32;;
14992 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14993 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14994 *) libsuff= shlibsuff= libmagic=never-match;;
14998 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14999 shlibpath_overrides_runpath=no
15000 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15001 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15002 hardcode_into_libs=yes
15005 # No shared lib support for Linux oldld, aout, or coff.
15006 linux*oldld* | linux*aout* | linux*coff*)
15010 # This must be Linux ELF.
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15018 shlibpath_var=LD_LIBRARY_PATH
15019 shlibpath_overrides_runpath=no
15020 # This implies no fast_install, which is unacceptable.
15021 # Some rework will be needed to allow for fast_install
15022 # before this can be enabled.
15023 hardcode_into_libs=yes
15025 # Append ld.so.conf contents to the search path
15026 if test -f /etc/ld.so.conf; then
15027 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15028 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15031 # We used to test for /lib/ld.so.1 and disable shared libraries on
15032 # powerpc, because MkLinux only supported shared libraries with the
15033 # GNU dynamic linker. Since this was broken with cross compilers,
15034 # most powerpc-linux boxes support dynamic linking these days and
15035 # people can always --disable-shared, the test was removed, and we
15036 # assume the GNU/Linux dynamic linker is in use.
15037 dynamic_linker='GNU/Linux ld.so'
15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15045 soname_spec='${libname}${release}${shared_ext}$major'
15046 shlibpath_var=LD_LIBRARY_PATH
15047 shlibpath_overrides_runpath=no
15048 hardcode_into_libs=yes
15049 dynamic_linker='NetBSD ld.elf_so'
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 shlibpath_var=LD_LIBRARY_PATH
15059 shlibpath_overrides_runpath=no
15060 hardcode_into_libs=yes
15061 dynamic_linker='GNU ld.so'
15068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15071 dynamic_linker='NetBSD (a.out) ld.so'
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15074 soname_spec='${libname}${release}${shared_ext}$major'
15075 dynamic_linker='NetBSD ld.elf_so'
15077 shlibpath_var=LD_LIBRARY_PATH
15078 shlibpath_overrides_runpath=yes
15079 hardcode_into_libs=yes
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085 shlibpath_var=LD_LIBRARY_PATH
15086 shlibpath_overrides_runpath=yes
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 shlibpath_overrides_runpath=yes
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15105 shlibpath_var=LD_LIBRARY_PATH
15106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15108 openbsd2.[89] | openbsd2.[89].*)
15109 shlibpath_overrides_runpath=no
15112 shlibpath_overrides_runpath=yes
15116 shlibpath_overrides_runpath=yes
15121 libname_spec='$name'
15124 library_names_spec='$libname${shared_ext} $libname.a'
15125 dynamic_linker='OS/2 ld.exe'
15126 shlibpath_var=LIBPATH
15129 osf3* | osf4* | osf5*)
15133 soname_spec='${libname}${release}${shared_ext}$major'
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135 shlibpath_var=LD_LIBRARY_PATH
15136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 shlibpath_var=LD_LIBRARY_PATH
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 shlibpath_var=LD_LIBRARY_PATH
15154 shlibpath_overrides_runpath=yes
15155 hardcode_into_libs=yes
15156 # ldd complains unless libraries are executable
15157 postinstall_cmds='chmod +x $lib'
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 shlibpath_overrides_runpath=yes
15166 if test "$with_gnu_ld" = yes; then
15172 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 case $host_vendor in
15179 shlibpath_overrides_runpath=no
15181 export_dynamic_flag_spec='${wl}-Blargedynsym'
15182 runpath_var=LD_RUN_PATH
15190 shlibpath_overrides_runpath=no
15191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15197 if test -d /usr/nec ;then
15199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15200 soname_spec='$libname${shared_ext}.$major'
15201 shlibpath_var=LD_LIBRARY_PATH
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 shlibpath_var=LD_LIBRARY_PATH
15216 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15217 echo "${ECHO_T}$dynamic_linker" >&6
15218 test "$dynamic_linker" = no && can_build_shared=no
15220 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15221 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15222 hardcode_action_F77=
15223 if test -n "$hardcode_libdir_flag_spec_F77" || \
15224 test -n "$runpath_var F77" || \
15225 test "X$hardcode_automatic_F77"="Xyes" ; then
15227 # We can hardcode non-existant directories.
15228 if test "$hardcode_direct_F77" != no &&
15229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15230 # have to relink, otherwise we might link with an installed library
15231 # when we should be linking with a yet-to-be-installed one
15232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15233 test "$hardcode_minus_L_F77" != no; then
15234 # Linking always hardcodes the temporary library directory.
15235 hardcode_action_F77=relink
15237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15238 hardcode_action_F77=immediate
15241 # We cannot hardcode anything, or else we can only hardcode existing
15243 hardcode_action_F77=unsupported
15245 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15246 echo "${ECHO_T}$hardcode_action_F77" >&6
15248 if test "$hardcode_action_F77" = relink; then
15249 # Fast installation is not supported
15250 enable_fast_install=no
15251 elif test "$shlibpath_overrides_runpath" = yes ||
15252 test "$enable_shared" = no; then
15253 # Fast installation is not necessary
15254 enable_fast_install=needless
15259 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15260 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15261 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15262 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15263 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15264 echo "$as_me:$LINENO: result: yes" >&5
15265 echo "${ECHO_T}yes" >&6
15267 # FIXME - insert some real tests, host_os isn't really good enough
15270 if test -n "$STRIP" ; then
15271 striplib="$STRIP -x"
15272 echo "$as_me:$LINENO: result: yes" >&5
15273 echo "${ECHO_T}yes" >&6
15275 echo "$as_me:$LINENO: result: no" >&5
15276 echo "${ECHO_T}no" >&6
15280 echo "$as_me:$LINENO: result: no" >&5
15281 echo "${ECHO_T}no" >&6
15288 # The else clause should only fire when bootstrapping the
15289 # libtool distribution, otherwise you forgot to ship ltmain.sh
15290 # with your package, and you will get complaints that there are
15291 # no rules to generate ltmain.sh.
15292 if test -f "$ltmain"; then
15293 # See if we are running on zsh, and set the options which allow our commands through
15294 # without removal of \ escapes.
15295 if test -n "${ZSH_VERSION+set}" ; then
15296 setopt NO_GLOB_SUBST
15298 # Now quote all the things that may contain metacharacters while being
15299 # careful not to overquote the AC_SUBSTed values. We take copies of the
15300 # variables and quote the copies for generation of the libtool script.
15301 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15303 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15304 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15305 deplibs_check_method reload_flag reload_cmds need_locks \
15306 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15307 lt_cv_sys_global_symbol_to_c_name_address \
15308 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15309 old_postinstall_cmds old_postuninstall_cmds \
15313 lt_prog_compiler_wl_F77 \
15314 lt_prog_compiler_pic_F77 \
15315 lt_prog_compiler_static_F77 \
15316 lt_prog_compiler_no_builtin_flag_F77 \
15317 export_dynamic_flag_spec_F77 \
15318 thread_safe_flag_spec_F77 \
15319 whole_archive_flag_spec_F77 \
15320 enable_shared_with_static_runtimes_F77 \
15321 old_archive_cmds_F77 \
15322 old_archive_from_new_cmds_F77 \
15323 predep_objects_F77 \
15324 postdep_objects_F77 \
15327 compiler_lib_search_path_F77 \
15329 archive_expsym_cmds_F77 \
15330 postinstall_cmds_F77 \
15331 postuninstall_cmds_F77 \
15332 old_archive_from_expsyms_cmds_F77 \
15333 allow_undefined_flag_F77 \
15334 no_undefined_flag_F77 \
15335 export_symbols_cmds_F77 \
15336 hardcode_libdir_flag_spec_F77 \
15337 hardcode_libdir_flag_spec_ld_F77 \
15338 hardcode_libdir_separator_F77 \
15339 hardcode_automatic_F77 \
15341 module_expsym_cmds_F77 \
15342 lt_cv_prog_compiler_c_o_F77 \
15343 exclude_expsyms_F77 \
15344 include_expsyms_F77; do
15347 old_archive_cmds_F77 | \
15348 old_archive_from_new_cmds_F77 | \
15349 archive_cmds_F77 | \
15350 archive_expsym_cmds_F77 | \
15351 module_cmds_F77 | \
15352 module_expsym_cmds_F77 | \
15353 old_archive_from_expsyms_cmds_F77 | \
15354 export_symbols_cmds_F77 | \
15355 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15356 postinstall_cmds | postuninstall_cmds | \
15357 old_postinstall_cmds | old_postuninstall_cmds | \
15358 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15359 # Double-quote double-evaled strings.
15360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15369 *'\$0 --fallback-echo"')
15370 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15376 cat <<__EOF__ >> "$cfgfile"
15377 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15381 # Shell to use when invoking shell scripts.
15384 # Whether or not to build shared libraries.
15385 build_libtool_libs=$enable_shared
15387 # Whether or not to build static libraries.
15388 build_old_libs=$enable_static
15390 # Whether or not to add -lc for building shared libraries.
15391 build_libtool_need_lc=$archive_cmds_need_lc_F77
15393 # Whether or not to disallow shared libs when runtime libs are static
15394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15396 # Whether or not to optimize for fast installation.
15397 fast_install=$enable_fast_install
15400 host_alias=$host_alias
15403 # An echo program that does not interpret backslashes.
15408 AR_FLAGS=$lt_AR_FLAGS
15413 # A language-specific compiler.
15414 CC=$lt_compiler_F77
15416 # Is the compiler the GNU C compiler?
15422 # The linker used to build libraries.
15425 # Whether we need hard or soft links.
15428 # A BSD-compatible nm program.
15431 # A symbol stripping program
15434 # Used to examine libraries when file_magic_cmd begins "file"
15435 MAGIC_CMD=$MAGIC_CMD
15437 # Used on cygwin: DLL creation program.
15440 # Used on cygwin: object dumper.
15443 # Used on cygwin: assembler.
15446 # The name of the directory that contains temporary libtool files.
15449 # How to create reloadable object files.
15450 reload_flag=$lt_reload_flag
15451 reload_cmds=$lt_reload_cmds
15453 # How to pass a linker flag through the compiler.
15454 wl=$lt_lt_prog_compiler_wl_F77
15456 # Object file suffix (normally "o").
15457 objext="$ac_objext"
15459 # Old archive suffix (normally "a").
15462 # Shared library suffix (normally ".so").
15463 shrext_cmds='$shrext_cmds'
15465 # Executable file suffix (normally "").
15468 # Additional compiler flags for building library objects.
15469 pic_flag=$lt_lt_prog_compiler_pic_F77
15472 # What is the maximum length of a command?
15473 max_cmd_len=$lt_cv_sys_max_cmd_len
15475 # Does compiler simultaneously support -c and -o options?
15476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15478 # Must we lock files when doing compilation ?
15479 need_locks=$lt_need_locks
15481 # Do we need the lib prefix for modules?
15482 need_lib_prefix=$need_lib_prefix
15484 # Do we need a version for libraries?
15485 need_version=$need_version
15487 # Whether dlopen is supported.
15488 dlopen_support=$enable_dlopen
15490 # Whether dlopen of programs is supported.
15491 dlopen_self=$enable_dlopen_self
15493 # Whether dlopen of statically linked programs is supported.
15494 dlopen_self_static=$enable_dlopen_self_static
15496 # Compiler flag to prevent dynamic linking.
15497 link_static_flag=$lt_lt_prog_compiler_static_F77
15499 # Compiler flag to turn off builtin functions.
15500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15502 # Compiler flag to allow reflexive dlopens.
15503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15505 # Compiler flag to generate shared objects directly from archives.
15506 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15508 # Compiler flag to generate thread-safe objects.
15509 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15511 # Library versioning type.
15512 version_type=$version_type
15514 # Format of library name prefix.
15515 libname_spec=$lt_libname_spec
15517 # List of archive names. First name is the real one, the rest are links.
15518 # The last name is the one that the linker finds with -lNAME.
15519 library_names_spec=$lt_library_names_spec
15521 # The coded name of the library, if different from the real name.
15522 soname_spec=$lt_soname_spec
15524 # Commands used to build and install an old-style archive.
15526 old_archive_cmds=$lt_old_archive_cmds_F77
15527 old_postinstall_cmds=$lt_old_postinstall_cmds
15528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15530 # Create an old-style archive from a shared archive.
15531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15533 # Create a temporary old-style archive to link instead of a shared archive.
15534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15536 # Commands used to build and install a shared archive.
15537 archive_cmds=$lt_archive_cmds_F77
15538 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15539 postinstall_cmds=$lt_postinstall_cmds
15540 postuninstall_cmds=$lt_postuninstall_cmds
15542 # Commands used to build a loadable module (assumed same as above if empty)
15543 module_cmds=$lt_module_cmds_F77
15544 module_expsym_cmds=$lt_module_expsym_cmds_F77
15546 # Commands to strip libraries.
15547 old_striplib=$lt_old_striplib
15548 striplib=$lt_striplib
15550 # Dependencies to place before the objects being linked to create a
15552 predep_objects=$lt_predep_objects_F77
15554 # Dependencies to place after the objects being linked to create a
15556 postdep_objects=$lt_postdep_objects_F77
15558 # Dependencies to place before the objects being linked to create a
15560 predeps=$lt_predeps_F77
15562 # Dependencies to place after the objects being linked to create a
15564 postdeps=$lt_postdeps_F77
15566 # The library search path used internally by the compiler when linking
15567 # a shared library.
15568 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15570 # Method to check whether dependent libraries are shared objects.
15571 deplibs_check_method=$lt_deplibs_check_method
15573 # Command to use when deplibs_check_method == file_magic.
15574 file_magic_cmd=$lt_file_magic_cmd
15576 # Flag that allows shared libraries with undefined symbols to be built.
15577 allow_undefined_flag=$lt_allow_undefined_flag_F77
15579 # Flag that forces no undefined symbols.
15580 no_undefined_flag=$lt_no_undefined_flag_F77
15582 # Commands used to finish a libtool library installation in a directory.
15583 finish_cmds=$lt_finish_cmds
15585 # Same as above, but a single script fragment to be evaled but not shown.
15586 finish_eval=$lt_finish_eval
15588 # Take the output of nm and produce a listing of raw symbols and C names.
15589 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15591 # Transform the output of nm in a proper C declaration
15592 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15594 # Transform the output of nm in a C name address pair
15595 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15597 # This is the shared library runtime path variable.
15598 runpath_var=$runpath_var
15600 # This is the shared library path variable.
15601 shlibpath_var=$shlibpath_var
15603 # Is shlibpath searched before the hard-coded library search path?
15604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15606 # How to hardcode a shared library path into an executable.
15607 hardcode_action=$hardcode_action_F77
15609 # Whether we should hardcode library paths into libraries.
15610 hardcode_into_libs=$hardcode_into_libs
15612 # Flag to hardcode \$libdir into a binary during linking.
15613 # This must work even if \$libdir does not exist.
15614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15616 # If ld is used when linking, flag to hardcode \$libdir into
15617 # a binary during linking. This must work even if \$libdir does
15619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15621 # Whether we need a single -rpath flag with a separated argument.
15622 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15624 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15625 # resulting binary.
15626 hardcode_direct=$hardcode_direct_F77
15628 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15629 # resulting binary.
15630 hardcode_minus_L=$hardcode_minus_L_F77
15632 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15633 # the resulting binary.
15634 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15636 # Set to yes if building a shared library automatically hardcodes DIR into the library
15637 # and all subsequent libraries and executables linked against it.
15638 hardcode_automatic=$hardcode_automatic_F77
15640 # Variables whose values should be saved in libtool wrapper scripts and
15641 # restored at relink time.
15642 variables_saved_for_relink="$variables_saved_for_relink"
15644 # Whether libtool must link a program against all its dependency libraries.
15645 link_all_deplibs=$link_all_deplibs_F77
15647 # Compile-time system search path for libraries
15648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15650 # Run-time system search path for libraries
15651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15653 # Fix the shell variable \$srcfile for the compiler.
15654 fix_srcfile_path="$fix_srcfile_path_F77"
15656 # Set to yes if exported symbols are required.
15657 always_export_symbols=$always_export_symbols_F77
15659 # The commands to list exported symbols.
15660 export_symbols_cmds=$lt_export_symbols_cmds_F77
15662 # The commands to extract the exported symbol list from a shared archive.
15663 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15665 # Symbols that should not be listed in the preloaded symbols.
15666 exclude_expsyms=$lt_exclude_expsyms_F77
15668 # Symbols that must always be exported.
15669 include_expsyms=$lt_include_expsyms_F77
15671 # ### END LIBTOOL TAG CONFIG: $tagname
15677 # If there is no Makefile yet, we rely on a make rule to execute
15678 # `config.status --recheck' to rerun these tests and create the
15679 # libtool script then.
15680 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15681 if test -f "$ltmain_in"; then
15682 test -f Makefile && make "$ltmain"
15688 ac_cpp='$CPP $CPPFLAGS'
15689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15701 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15705 # Source file extension for Java test sources.
15708 # Object file extension for compiled Java test sources.
15712 # Code to be used in simple compile tests
15713 lt_simple_compile_test_code="class foo {}\n"
15715 # Code to be used in simple link tests
15716 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15718 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15720 # If no C compiler was specified, use CC.
15723 # Allow CC to be a program name with arguments.
15727 # Allow CC to be a program name with arguments.
15733 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15734 archive_cmds_need_lc_GCJ=no
15737 lt_prog_compiler_no_builtin_flag_GCJ=
15739 if test "$GCC" = yes; then
15740 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15743 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15744 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15745 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 lt_cv_prog_compiler_rtti_exceptions=no
15749 ac_outfile=conftest.$ac_objext
15750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751 lt_compiler_flag="-fno-rtti -fno-exceptions"
15752 # Insert the option either (1) after the last *FLAGS variable, or
15753 # (2) before a word containing "conftest.", or (3) at the end.
15754 # Note that $ac_compile itself does not contain backslashes and begins
15755 # with a dollar sign (not a hyphen), so the echo should work correctly.
15756 # The option is referenced via a variable to avoid confusing sed.
15757 lt_compile=`echo "$ac_compile" | $SED \
15758 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760 -e 's:$: $lt_compiler_flag:'`
15761 (eval echo "\"\$as_me:15761: $lt_compile\"" >&5)
15762 (eval "$lt_compile" 2>conftest.err)
15764 cat conftest.err >&5
15765 echo "$as_me:15765: \$? = $ac_status" >&5
15766 if (exit $ac_status) && test -s "$ac_outfile"; then
15767 # The compiler can only warn and ignore the option if not recognized
15768 # So say no if there are warnings
15769 if test ! -s conftest.err; then
15770 lt_cv_prog_compiler_rtti_exceptions=yes
15776 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15777 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15779 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15780 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15787 lt_prog_compiler_wl_GCJ=
15788 lt_prog_compiler_pic_GCJ=
15789 lt_prog_compiler_static_GCJ=
15791 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15792 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15794 if test "$GCC" = yes; then
15795 lt_prog_compiler_wl_GCJ='-Wl,'
15796 lt_prog_compiler_static_GCJ='-static'
15800 # All AIX code is PIC.
15801 if test "$host_cpu" = ia64; then
15802 # AIX 5 now supports IA64 processor
15803 lt_prog_compiler_static_GCJ='-Bstatic'
15808 # FIXME: we need at least 68020 code to build shared libraries, but
15809 # adding the `-m68020' flag to GCC prevents building anything better,
15811 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15814 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15815 # PIC is the default for these OSes.
15818 mingw* | pw32* | os2*)
15819 # This hack is so that the source file can tell whether it is being
15820 # built for inclusion in a dll (and should export symbols for example).
15821 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15824 darwin* | rhapsody*)
15825 # PIC is the default on this platform
15826 # Common symbols not allowed in MH_DYLIB files
15827 lt_prog_compiler_pic_GCJ='-fno-common'
15831 # Just because we use GCC doesn't mean we suddenly get shared libraries
15832 # on systems that don't support them.
15833 lt_prog_compiler_can_build_shared_GCJ=no
15838 if test -d /usr/nec; then
15839 lt_prog_compiler_pic_GCJ=-Kconform_pic
15844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15845 # not for PA HP-UX.
15846 case "$host_cpu" in
15851 lt_prog_compiler_pic_GCJ='-fPIC'
15857 lt_prog_compiler_pic_GCJ='-fPIC'
15861 # PORTME Check for flag to pass linker flags through the system compiler.
15864 lt_prog_compiler_wl_GCJ='-Wl,'
15865 if test "$host_cpu" = ia64; then
15866 # AIX 5 now supports IA64 processor
15867 lt_prog_compiler_static_GCJ='-Bstatic'
15869 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15873 mingw* | pw32* | os2*)
15874 # This hack is so that the source file can tell whether it is being
15875 # built for inclusion in a dll (and should export symbols for example).
15876 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15879 hpux9* | hpux10* | hpux11*)
15880 lt_prog_compiler_wl_GCJ='-Wl,'
15881 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15882 # not for PA HP-UX.
15883 case "$host_cpu" in
15888 lt_prog_compiler_pic_GCJ='+Z'
15891 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15892 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15895 irix5* | irix6* | nonstopux*)
15896 lt_prog_compiler_wl_GCJ='-Wl,'
15897 # PIC (with -KPIC) is the default.
15898 lt_prog_compiler_static_GCJ='-non_shared'
15902 lt_prog_compiler_pic_GCJ='-KPIC'
15903 lt_prog_compiler_static_GCJ='-Bstatic'
15909 lt_prog_compiler_wl_GCJ='-Wl,'
15910 lt_prog_compiler_pic_GCJ='-KPIC'
15911 lt_prog_compiler_static_GCJ='-static'
15914 lt_prog_compiler_wl_GCJ='-Wl,'
15915 # All Alpha code is PIC.
15916 lt_prog_compiler_static_GCJ='-non_shared'
15921 osf3* | osf4* | osf5*)
15922 lt_prog_compiler_wl_GCJ='-Wl,'
15923 # All OSF/1 code is PIC.
15924 lt_prog_compiler_static_GCJ='-non_shared'
15928 lt_prog_compiler_pic_GCJ='-Kpic'
15929 lt_prog_compiler_static_GCJ='-dn'
15933 lt_prog_compiler_wl_GCJ='-Wl,'
15934 lt_prog_compiler_pic_GCJ='-KPIC'
15935 lt_prog_compiler_static_GCJ='-Bstatic'
15939 lt_prog_compiler_wl_GCJ='-Qoption ld '
15940 lt_prog_compiler_pic_GCJ='-PIC'
15941 lt_prog_compiler_static_GCJ='-Bstatic'
15944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15945 lt_prog_compiler_wl_GCJ='-Wl,'
15946 lt_prog_compiler_pic_GCJ='-KPIC'
15947 lt_prog_compiler_static_GCJ='-Bstatic'
15951 if test -d /usr/nec ;then
15952 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15953 lt_prog_compiler_static_GCJ='-Bstatic'
15958 lt_prog_compiler_pic_GCJ='-pic'
15959 lt_prog_compiler_static_GCJ='-Bstatic'
15963 lt_prog_compiler_can_build_shared_GCJ=no
15968 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15969 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15972 # Check to make sure the PIC flag actually works.
15974 if test -n "$lt_prog_compiler_pic_GCJ"; then
15976 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15977 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15978 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 lt_prog_compiler_pic_works_GCJ=no
15982 ac_outfile=conftest.$ac_objext
15983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15984 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15985 # Insert the option either (1) after the last *FLAGS variable, or
15986 # (2) before a word containing "conftest.", or (3) at the end.
15987 # Note that $ac_compile itself does not contain backslashes and begins
15988 # with a dollar sign (not a hyphen), so the echo should work correctly.
15989 # The option is referenced via a variable to avoid confusing sed.
15990 lt_compile=`echo "$ac_compile" | $SED \
15991 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15993 -e 's:$: $lt_compiler_flag:'`
15994 (eval echo "\"\$as_me:15994: $lt_compile\"" >&5)
15995 (eval "$lt_compile" 2>conftest.err)
15997 cat conftest.err >&5
15998 echo "$as_me:15998: \$? = $ac_status" >&5
15999 if (exit $ac_status) && test -s "$ac_outfile"; then
16000 # The compiler can only warn and ignore the option if not recognized
16001 # So say no if there are warnings
16002 if test ! -s conftest.err; then
16003 lt_prog_compiler_pic_works_GCJ=yes
16009 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16010 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16012 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16013 case $lt_prog_compiler_pic_GCJ in
16015 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16018 lt_prog_compiler_pic_GCJ=
16019 lt_prog_compiler_can_build_shared_GCJ=no
16024 # For platforms which do not support PIC, -DPIC is meaningless:
16026 lt_prog_compiler_pic_GCJ=
16029 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16033 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16034 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16035 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 lt_cv_prog_compiler_c_o_GCJ=no
16039 $rm -r conftest 2>/dev/null
16043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16045 lt_compiler_flag="-o out/conftest2.$ac_objext"
16046 # Insert the option either (1) after the last *FLAGS variable, or
16047 # (2) before a word containing "conftest.", or (3) at the end.
16048 # Note that $ac_compile itself does not contain backslashes and begins
16049 # with a dollar sign (not a hyphen), so the echo should work correctly.
16050 lt_compile=`echo "$ac_compile" | $SED \
16051 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16053 -e 's:$: $lt_compiler_flag:'`
16054 (eval echo "\"\$as_me:16054: $lt_compile\"" >&5)
16055 (eval "$lt_compile" 2>out/conftest.err)
16057 cat out/conftest.err >&5
16058 echo "$as_me:16058: \$? = $ac_status" >&5
16059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16061 # The compiler can only warn and ignore the option if not recognized
16062 # So say no if there are warnings
16063 if test ! -s out/conftest.err; then
16064 lt_cv_prog_compiler_c_o_GCJ=yes
16069 # SGI C++ compiler will create directory out/ii_files/ for
16070 # template instantiation
16071 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16072 $rm out/* && rmdir out
16078 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16079 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16082 hard_links="nottested"
16083 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16084 # do not overwrite the value of need_locks provided by the user
16085 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16086 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16091 ln conftest.a conftest.b 2>&5 || hard_links=no
16092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16093 echo "$as_me:$LINENO: result: $hard_links" >&5
16094 echo "${ECHO_T}$hard_links" >&6
16095 if test "$hard_links" = no; then
16096 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16097 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16104 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16105 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16108 allow_undefined_flag_GCJ=
16109 enable_shared_with_static_runtimes_GCJ=no
16111 archive_expsym_cmds_GCJ=
16112 old_archive_From_new_cmds_GCJ=
16113 old_archive_from_expsyms_cmds_GCJ=
16114 export_dynamic_flag_spec_GCJ=
16115 whole_archive_flag_spec_GCJ=
16116 thread_safe_flag_spec_GCJ=
16117 hardcode_libdir_flag_spec_GCJ=
16118 hardcode_libdir_flag_spec_ld_GCJ=
16119 hardcode_libdir_separator_GCJ=
16120 hardcode_direct_GCJ=no
16121 hardcode_minus_L_GCJ=no
16122 hardcode_shlibpath_var_GCJ=unsupported
16123 link_all_deplibs_GCJ=unknown
16124 hardcode_automatic_GCJ=no
16126 module_expsym_cmds_GCJ=
16127 always_export_symbols_GCJ=no
16128 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16129 # include_expsyms should be a list of space-separated symbols to be *always*
16130 # included in the symbol list
16131 include_expsyms_GCJ=
16132 # exclude_expsyms can be an extended regexp of symbols to exclude
16133 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16134 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16135 # as well as any symbol that contains `d'.
16136 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16137 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16138 # platforms (ab)use it in PIC code, but their linkers get confused if
16139 # the symbol is explicitly referenced. Since portable code cannot
16140 # rely on this symbol name, it's probably fine to never include it in
16141 # preloaded symbol tables.
16142 extract_expsyms_cmds=
16145 cygwin* | mingw* | pw32*)
16146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16147 # When not using gcc, we currently assume that we are using
16148 # Microsoft Visual C++.
16149 if test "$GCC" != yes; then
16159 if test "$with_gnu_ld" = yes; then
16160 # If archive_cmds runs LD, not CC, wlarc should be empty
16163 # See if GNU ld supports shared libraries.
16165 aix3* | aix4* | aix5*)
16166 # On AIX/PPC, the GNU linker is very broken
16167 if test "$host_cpu" != ia64; then
16171 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16172 *** to be unable to reliably create shared libraries on AIX.
16173 *** Therefore, libtool is disabling shared libraries support. If you
16174 *** really care for shared libraries, you may want to modify your PATH
16175 *** so that a non-GNU linker is found, and then restart.
16182 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)'
16183 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16184 hardcode_minus_L_GCJ=yes
16186 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16187 # that the semantics of dynamic libraries on AmigaOS, at least up
16188 # to version 4, is to share data among multiple programs linked
16189 # with the same dynamic library. Since this doesn't match the
16190 # behavior of shared libraries on other platforms, we can't use
16196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16197 allow_undefined_flag_GCJ=unsupported
16198 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16199 # support --undefined. This deserves some investigation. FIXME
16200 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16206 cygwin* | mingw* | pw32*)
16207 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16208 # as there is no search path for DLLs.
16209 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16210 allow_undefined_flag_GCJ=unsupported
16211 always_export_symbols_GCJ=no
16212 enable_shared_with_static_runtimes_GCJ=yes
16213 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16215 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16216 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16217 # If the export-symbols file already is a .def file (1st line
16218 # is EXPORTS), use it as is; otherwise, prepend...
16219 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16220 cp $export_symbols $output_objdir/$soname.def;
16222 echo EXPORTS > $output_objdir/$soname.def;
16223 cat $export_symbols >> $output_objdir/$soname.def;
16225 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16231 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16232 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16233 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16236 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16237 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16242 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16247 *** create shared libraries on Solaris systems. Therefore, libtool
16248 *** is disabling shared libraries support. We urge you to upgrade GNU
16249 *** binutils to release 2.9.1 or newer. Another option is to modify
16250 *** your PATH or compiler configuration so that the native linker is
16251 *** used, and then restart.
16254 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16255 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16256 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16263 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16265 hardcode_direct_GCJ=yes
16266 hardcode_shlibpath_var_GCJ=no
16270 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16271 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16272 archive_cmds_GCJ="$tmp_archive_cmds"
16273 supports_anon_versioning=no
16274 case `$LD -v 2>/dev/null` in
16275 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16278 *\ 2.11.*) ;; # other 2.11 versions
16279 *) supports_anon_versioning=yes ;;
16281 if test $supports_anon_versioning = yes; then
16282 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16283 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16284 $echo "local: *; };" >> $output_objdir/$libname.ver~
16285 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16287 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16289 link_all_deplibs_GCJ=no
16296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16297 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16298 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16305 if test "$ld_shlibs_GCJ" = yes; then
16306 runpath_var=LD_RUN_PATH
16307 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16308 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16309 # ancient GNU ld didn't support --whole-archive et. al.
16310 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16311 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16313 whole_archive_flag_spec_GCJ=
16317 # PORTME fill in a description of your system's linker (not GNU ld)
16320 allow_undefined_flag_GCJ=unsupported
16321 always_export_symbols_GCJ=yes
16322 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'
16323 # Note: this linker hardcodes the directories in LIBPATH if there
16324 # are no directories specified by -L.
16325 hardcode_minus_L_GCJ=yes
16326 if test "$GCC" = yes && test -z "$link_static_flag"; then
16327 # Neither direct hardcoding nor static linking is supported with a
16329 hardcode_direct_GCJ=unsupported
16334 if test "$host_cpu" = ia64; then
16335 # On IA64, the linker does run time linking by default, so we don't
16336 # have to do anything special.
16337 aix_use_runtimelinking=no
16338 exp_sym_flag='-Bexport'
16341 # If we're using GNU nm, then we don't want the "-C" option.
16342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16343 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16344 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'
16346 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'
16348 aix_use_runtimelinking=no
16350 # Test if we are trying to use run time linking or normal
16351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16352 # need to do runtime linking.
16353 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16354 for ld_flag in $LDFLAGS; do
16355 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16356 aix_use_runtimelinking=yes
16362 exp_sym_flag='-bexport'
16363 no_entry_flag='-bnoentry'
16366 # When large executables or shared objects are built, AIX ld can
16367 # have problems creating the table of contents. If linking a library
16368 # or program results in "error TOC overflow" add -mminimal-toc to
16369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16372 archive_cmds_GCJ=''
16373 hardcode_direct_GCJ=yes
16374 hardcode_libdir_separator_GCJ=':'
16375 link_all_deplibs_GCJ=yes
16377 if test "$GCC" = yes; then
16378 case $host_os in aix4.012|aix4.012.*)
16379 # We only want to do this on AIX 4.2 and lower, the check
16380 # below for broken collect2 doesn't work under 4.3+
16381 collect2name=`${CC} -print-prog-name=collect2`
16382 if test -f "$collect2name" && \
16383 strings "$collect2name" | grep resolve_lib_name >/dev/null
16385 # We have reworked collect2
16386 hardcode_direct_GCJ=yes
16388 # We have old collect2
16389 hardcode_direct_GCJ=unsupported
16390 # It fails to find uninstalled libraries when the uninstalled
16391 # path is not listed in the libpath. Setting hardcode_minus_L
16392 # to unsupported forces relinking
16393 hardcode_minus_L_GCJ=yes
16394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395 hardcode_libdir_separator_GCJ=
16398 shared_flag='-shared'
16401 if test "$host_cpu" = ia64; then
16402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16403 # chokes on -Wl,-G. The following line is correct:
16406 if test "$aix_use_runtimelinking" = yes; then
16407 shared_flag='${wl}-G'
16409 shared_flag='${wl}-bM:SRE'
16414 # It seems that -bexpall does not export symbols beginning with
16415 # underscore (_), so it is better to generate a list of symbols to export.
16416 always_export_symbols_GCJ=yes
16417 if test "$aix_use_runtimelinking" = yes; then
16418 # Warning - without using the other runtime loading flags (-brtl),
16419 # -berok will link without error, but may produce a broken library.
16420 allow_undefined_flag_GCJ='-berok'
16421 # Determine the default libpath from the value encoded in an empty executable.
16422 cat >conftest.$ac_ext <<_ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16437 rm -f conftest.$ac_objext conftest$ac_exeext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16439 (eval $ac_link) 2>conftest.er1
16441 grep -v '^ *+' conftest.er1 >conftest.err
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16461 # Check for a 64-bit object if we didn't find anything.
16462 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; }
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16469 rm -f conftest.err conftest.$ac_objext \
16470 conftest$ac_exeext conftest.$ac_ext
16471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16473 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16474 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"
16476 if test "$host_cpu" = ia64; then
16477 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16478 allow_undefined_flag_GCJ="-z nodefs"
16479 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"
16481 # Determine the default libpath from the value encoded in an empty executable.
16482 cat >conftest.$ac_ext <<_ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16499 (eval $ac_link) 2>conftest.er1
16501 grep -v '^ *+' conftest.er1 >conftest.err
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
16506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; } &&
16512 { ac_try='test -s conftest$ac_exeext'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16521 # Check for a 64-bit object if we didn't find anything.
16522 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; }
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16529 rm -f conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16533 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16534 # Warning - without using the other run time loading flags,
16535 # -berok will link without error, but may produce a broken library.
16536 no_undefined_flag_GCJ=' ${wl}-bernotok'
16537 allow_undefined_flag_GCJ=' ${wl}-berok'
16538 # -bexpall does not export symbols beginning with underscore (_)
16539 always_export_symbols_GCJ=yes
16540 # Exported symbols can be pulled into shared objects from archives
16541 whole_archive_flag_spec_GCJ=' '
16542 archive_cmds_need_lc_GCJ=yes
16543 # This is similar to how AIX traditionally builds it's shared libraries.
16544 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'
16550 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)'
16551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16552 hardcode_minus_L_GCJ=yes
16553 # see comment about different semantics on the GNU ld section
16558 export_dynamic_flag_spec_GCJ=-rdynamic
16561 cygwin* | mingw* | pw32*)
16562 # When not using gcc, we currently assume that we are using
16563 # Microsoft Visual C++.
16564 # hardcode_libdir_flag_spec is actually meaningless, as there is
16565 # no search path for DLLs.
16566 hardcode_libdir_flag_spec_GCJ=' '
16567 allow_undefined_flag_GCJ=unsupported
16568 # Tell ltmain to make .lib files, not .a files.
16570 # Tell ltmain to make .dll files, not .so files.
16572 # FIXME: Setting linknames here is a bad hack.
16573 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16574 # The linker will automatically build a .lib file if we build a DLL.
16575 old_archive_From_new_cmds_GCJ='true'
16576 # FIXME: Should let the user specify the lib program.
16577 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16578 fix_srcfile_path='`cygpath -w "$srcfile"`'
16579 enable_shared_with_static_runtimes_GCJ=yes
16582 darwin* | rhapsody*)
16583 if test "$GXX" = yes ; then
16584 archive_cmds_need_lc_GCJ=no
16586 rhapsody* | darwin1.[012])
16587 allow_undefined_flag_GCJ='-undefined suppress'
16590 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16591 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16593 case ${MACOSX_DEPLOYMENT_TARGET} in
16595 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16598 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16604 lt_int_apple_cc_single_mod=no
16605 output_verbose_link_cmd='echo'
16606 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16607 lt_int_apple_cc_single_mod=yes
16609 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16610 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16612 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'
16614 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16616 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16617 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}'
16619 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}'
16621 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}'
16622 hardcode_direct_GCJ=no
16623 hardcode_automatic_GCJ=yes
16624 hardcode_shlibpath_var_GCJ=unsupported
16625 whole_archive_flag_spec_GCJ='-all_load $convenience'
16626 link_all_deplibs_GCJ=yes
16633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16634 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16635 hardcode_shlibpath_var_GCJ=no
16642 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16643 # support. Future versions do this automatically, but an explicit c++rt0.o
16644 # does not break anything, and helps significantly (at the cost of a little
16647 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16648 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16649 hardcode_direct_GCJ=yes
16650 hardcode_shlibpath_var_GCJ=no
16653 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16655 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16656 hardcode_direct_GCJ=yes
16657 hardcode_minus_L_GCJ=yes
16658 hardcode_shlibpath_var_GCJ=no
16661 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16662 freebsd* | kfreebsd*-gnu)
16663 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16664 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16665 hardcode_direct_GCJ=yes
16666 hardcode_shlibpath_var_GCJ=no
16670 if test "$GCC" = yes; then
16671 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'
16673 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'
16675 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16676 hardcode_libdir_separator_GCJ=:
16677 hardcode_direct_GCJ=yes
16679 # hardcode_minus_L: Not really in the search PATH,
16680 # but as the default location of the library.
16681 hardcode_minus_L_GCJ=yes
16682 export_dynamic_flag_spec_GCJ='${wl}-E'
16686 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16687 case "$host_cpu" in
16689 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16696 case "$host_cpu" in
16698 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16701 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16705 if test "$with_gnu_ld" = no; then
16706 case "$host_cpu" in
16708 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16709 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16710 hardcode_libdir_separator_GCJ=:
16711 hardcode_direct_GCJ=no
16712 hardcode_shlibpath_var_GCJ=no
16715 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16716 hardcode_direct_GCJ=no
16717 hardcode_shlibpath_var_GCJ=no
16719 # hardcode_minus_L: Not really in the search PATH,
16720 # but as the default location of the library.
16721 hardcode_minus_L_GCJ=yes
16724 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16725 hardcode_libdir_separator_GCJ=:
16726 hardcode_direct_GCJ=yes
16727 export_dynamic_flag_spec_GCJ='${wl}-E'
16729 # hardcode_minus_L: Not really in the search PATH,
16730 # but as the default location of the library.
16731 hardcode_minus_L_GCJ=yes
16737 irix5* | irix6* | nonstopux*)
16738 if test "$GCC" = yes; then
16739 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'
16741 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'
16742 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16744 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16745 hardcode_libdir_separator_GCJ=:
16746 link_all_deplibs_GCJ=yes
16749 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16751 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16753 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16755 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16756 hardcode_direct_GCJ=yes
16757 hardcode_shlibpath_var_GCJ=no
16761 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16762 hardcode_direct_GCJ=yes
16763 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16764 hardcode_libdir_separator_GCJ=:
16765 hardcode_shlibpath_var_GCJ=no
16769 hardcode_direct_GCJ=yes
16770 hardcode_shlibpath_var_GCJ=no
16771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16772 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16773 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16774 export_dynamic_flag_spec_GCJ='${wl}-E'
16777 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16778 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16782 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16783 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16791 hardcode_minus_L_GCJ=yes
16792 allow_undefined_flag_GCJ=unsupported
16793 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'
16794 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16798 if test "$GCC" = yes; then
16799 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16800 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'
16802 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16803 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'
16805 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16806 hardcode_libdir_separator_GCJ=:
16809 osf4* | osf5*) # as osf3* with the addition of -msym flag
16810 if test "$GCC" = yes; then
16811 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16812 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'
16813 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16815 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16816 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'
16817 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~
16818 $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'
16820 # Both c and cxx compiler support -rpath directly
16821 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16823 hardcode_libdir_separator_GCJ=:
16827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16828 hardcode_shlibpath_var_GCJ=no
16829 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16830 runpath_var=LD_RUN_PATH
16831 hardcode_runpath_var=yes
16835 no_undefined_flag_GCJ=' -z text'
16836 if test "$GCC" = yes; then
16837 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16838 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16839 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16841 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16843 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16845 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16846 hardcode_shlibpath_var_GCJ=no
16848 solaris2.[0-5] | solaris2.[0-5].*) ;;
16849 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16850 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16852 link_all_deplibs_GCJ=yes
16856 if test "x$host_vendor" = xsequent; then
16857 # Use $CC to link under sequent, because it throws in some extra .o
16858 # files that make .init and .fini sections work.
16859 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16861 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16863 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16864 hardcode_direct_GCJ=yes
16865 hardcode_minus_L_GCJ=yes
16866 hardcode_shlibpath_var_GCJ=no
16870 case $host_vendor in
16872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16873 hardcode_direct_GCJ=yes # is this really true???
16876 ## LD is ld it makes a PLAMLIB
16877 ## CC just makes a GrossModule.
16878 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16879 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16880 hardcode_direct_GCJ=no
16883 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16887 runpath_var='LD_RUN_PATH'
16888 hardcode_shlibpath_var_GCJ=no
16892 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16893 hardcode_shlibpath_var_GCJ=no
16894 export_dynamic_flag_spec_GCJ='-Bexport'
16898 if test -d /usr/nec; then
16899 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900 hardcode_shlibpath_var_GCJ=no
16901 runpath_var=LD_RUN_PATH
16902 hardcode_runpath_var=yes
16908 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16909 hardcode_direct_GCJ=yes
16910 hardcode_minus_L_GCJ=no
16911 hardcode_shlibpath_var_GCJ=no
16912 hardcode_runpath_var=yes
16913 runpath_var=LD_RUN_PATH
16916 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16917 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16918 if test "$GCC" = yes; then
16919 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16921 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16923 runpath_var='LD_RUN_PATH'
16924 hardcode_shlibpath_var_GCJ=no
16928 no_undefined_flag_GCJ=' -z text'
16929 # $CC -shared without GNU ld will not create a library from C++
16930 # object files and a static libstdc++, better avoid it by now
16931 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16932 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16934 hardcode_libdir_flag_spec_GCJ=
16935 hardcode_shlibpath_var_GCJ=no
16936 runpath_var='LD_RUN_PATH'
16940 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16942 hardcode_shlibpath_var_GCJ=no
16951 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16952 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16953 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16956 if test "$GCC" = yes; then
16957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16961 # Do we need to explicitly link libc?
16963 case "x$archive_cmds_need_lc_GCJ" in
16965 # Assume -lc should be added
16966 archive_cmds_need_lc_GCJ=yes
16968 if test "$enable_shared" = yes && test "$GCC" = yes; then
16969 case $archive_cmds_GCJ in
16971 # FIXME: we may have to deal with multi-command sequences.
16974 # Test whether the compiler implicitly links with -lc since on some
16975 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16976 # to ld, don't add -lc before -lgcc.
16977 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16978 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16980 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983 (eval $ac_compile) 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } 2>conftest.err; then
16989 libobjs=conftest.$ac_objext
16991 wl=$lt_prog_compiler_wl_GCJ
16997 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16998 allow_undefined_flag_GCJ=
16999 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17000 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }
17005 archive_cmds_need_lc_GCJ=no
17007 archive_cmds_need_lc_GCJ=yes
17009 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17011 cat conftest.err 1>&5
17014 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17015 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17022 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17023 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17024 library_names_spec=
17025 libname_spec='lib$name'
17029 postuninstall_cmds=
17033 shlibpath_overrides_runpath=unknown
17035 dynamic_linker="$host_os ld.so"
17036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17037 if test "$GCC" = yes; then
17038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17039 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17040 # if the path contains ";" then we assume it to be the separator
17041 # otherwise default to the standard path separator (i.e. ":") - it is
17042 # assumed that no part of a normal pathname contains ";" but that should
17043 # okay in the real world where ";" in dirpaths is itself problematic.
17044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17051 need_lib_prefix=unknown
17052 hardcode_into_libs=no
17054 # when you set need_version to no, make sure it does not cause -set_version
17055 # flags to be left without arguments
17056 need_version=unknown
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17062 shlibpath_var=LIBPATH
17064 # AIX 3 has no versioning support, so we append a major version to the name.
17065 soname_spec='${libname}${release}${shared_ext}$major'
17072 hardcode_into_libs=yes
17073 if test "$host_cpu" = ia64; then
17074 # AIX 5 supports IA64
17075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17076 shlibpath_var=LD_LIBRARY_PATH
17078 # With GCC up to 2.95.x, collect2 would create an import file
17079 # for dependence libraries. The import file would start with
17080 # the line `#! .'. This would cause the generated library to
17081 # depend on `.', always an invalid library. This was fixed in
17082 # development snapshots of GCC prior to 3.0.
17084 aix4 | aix4.[01] | aix4.[01].*)
17085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17087 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17090 can_build_shared=no
17094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17095 # soname into executable. Probably we can add versioning support to
17096 # collect2, so additional links can be useful in future.
17097 if test "$aix_use_runtimelinking" = yes; then
17098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17099 # instead of lib<name>.a to let people know that these are not
17100 # typical AIX shared libraries.
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103 # We preserve .a as extension for shared libraries through AIX4.2
17104 # and later when we are not doing run time linking.
17105 library_names_spec='${libname}${release}.a $libname.a'
17106 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LIBPATH
17113 library_names_spec='$libname.ixlibrary $libname.a'
17114 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17115 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'
17119 library_names_spec='${libname}${shared_ext}'
17120 dynamic_linker="$host_os ld.so"
17121 shlibpath_var=LIBRARY_PATH
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17130 shlibpath_var=LD_LIBRARY_PATH
17131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17133 # the default ld.so.conf also contains /usr/contrib/lib and
17134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17135 # libtool to hard-code these into programs
17138 cygwin* | mingw* | pw32*)
17139 version_type=windows
17144 case $GCC,$host_os in
17145 yes,cygwin* | yes,mingw* | yes,pw32*)
17146 library_names_spec='$libname.dll.a'
17147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17148 postinstall_cmds='base_file=`basename \${file}`~
17149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17150 dldir=$destdir/`dirname \$dlpath`~
17151 test -d \$dldir || mkdir -p \$dldir~
17152 $install_prog $dir/$dlname \$dldir/$dlname'
17153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17154 dlpath=$dir/\$dldll~
17156 shlibpath_overrides_runpath=yes
17160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17162 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17165 # MinGW DLLs use traditional 'lib' prefix
17166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17167 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17168 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17169 # It is most probably a Windows format PATH printed by
17170 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17171 # path with ; separators, and with drive letters. We can handle the
17172 # drive letters (cygwin fileutils understands them), so leave them,
17173 # especially as we might pass files found there to a mingw objdump,
17174 # which wouldn't understand a cygwinified path. Ahh.
17175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17181 # pw32 DLLs use 'pw' prefix rather than 'lib'
17182 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17191 dynamic_linker='Win32 ld.exe'
17192 # FIXME: first we should search . and the directory the executable is in
17196 darwin* | rhapsody*)
17197 dynamic_linker="$host_os dyld"
17198 version_type=darwin
17201 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17202 soname_spec='${libname}${release}${major}$shared_ext'
17203 shlibpath_overrides_runpath=yes
17204 shlibpath_var=DYLD_LIBRARY_PATH
17205 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17206 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17207 if test "$GCC" = yes; then
17208 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"`
17210 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 shlibpath_var=LD_LIBRARY_PATH
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17233 soname_spec='${libname}${release}${shared_ext}$major'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath=no
17236 hardcode_into_libs=yes
17237 dynamic_linker='GNU ld.so'
17241 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17242 version_type=freebsd-$objformat
17243 case $version_type in
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17254 shlibpath_var=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath=yes
17259 freebsd3.01* | freebsdelf3.01*)
17260 shlibpath_overrides_runpath=yes
17261 hardcode_into_libs=yes
17264 shlibpath_overrides_runpath=no
17265 hardcode_into_libs=yes
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 shlibpath_var=LD_LIBRARY_PATH
17277 hardcode_into_libs=yes
17280 hpux9* | hpux10* | hpux11*)
17281 # Give a soname corresponding to the major version so that dld.sl refuses to
17282 # link against other versions.
17286 case "$host_cpu" in
17289 hardcode_into_libs=yes
17290 dynamic_linker="$host_os dld.so"
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294 soname_spec='${libname}${release}${shared_ext}$major'
17295 if test "X$HPUX_IA64_MODE" = X32; then
17296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17304 hardcode_into_libs=yes
17305 dynamic_linker="$host_os dld.sl"
17306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309 soname_spec='${libname}${release}${shared_ext}$major'
17310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17315 dynamic_linker="$host_os dld.sl"
17316 shlibpath_var=SHLIB_PATH
17317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319 soname_spec='${libname}${release}${shared_ext}$major'
17322 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17323 postinstall_cmds='chmod 555 $lib'
17326 irix5* | irix6* | nonstopux*)
17328 nonstopux*) version_type=nonstopux ;;
17330 if test "$lt_cv_prog_gnu_ld" = yes; then
17338 soname_spec='${libname}${release}${shared_ext}$major'
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17341 irix5* | nonstopux*)
17342 libsuff= shlibsuff=
17345 case $LD in # libtool.m4 will add one of these switches to LD
17346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17347 libsuff= shlibsuff= libmagic=32-bit;;
17348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17349 libsuff=32 shlibsuff=N32 libmagic=N32;;
17350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17351 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17352 *) libsuff= shlibsuff= libmagic=never-match;;
17356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17357 shlibpath_overrides_runpath=no
17358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17360 hardcode_into_libs=yes
17363 # No shared lib support for Linux oldld, aout, or coff.
17364 linux*oldld* | linux*aout* | linux*coff*)
17368 # This must be Linux ELF.
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374 soname_spec='${libname}${release}${shared_ext}$major'
17375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17376 shlibpath_var=LD_LIBRARY_PATH
17377 shlibpath_overrides_runpath=no
17378 # This implies no fast_install, which is unacceptable.
17379 # Some rework will be needed to allow for fast_install
17380 # before this can be enabled.
17381 hardcode_into_libs=yes
17383 # Append ld.so.conf contents to the search path
17384 if test -f /etc/ld.so.conf; then
17385 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17386 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17389 # We used to test for /lib/ld.so.1 and disable shared libraries on
17390 # powerpc, because MkLinux only supported shared libraries with the
17391 # GNU dynamic linker. Since this was broken with cross compilers,
17392 # most powerpc-linux boxes support dynamic linking these days and
17393 # people can always --disable-shared, the test was removed, and we
17394 # assume the GNU/Linux dynamic linker is in use.
17395 dynamic_linker='GNU/Linux ld.so'
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17403 soname_spec='${libname}${release}${shared_ext}$major'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 shlibpath_overrides_runpath=no
17406 hardcode_into_libs=yes
17407 dynamic_linker='NetBSD ld.elf_so'
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17415 soname_spec='${libname}${release}${shared_ext}$major'
17416 shlibpath_var=LD_LIBRARY_PATH
17417 shlibpath_overrides_runpath=no
17418 hardcode_into_libs=yes
17419 dynamic_linker='GNU ld.so'
17426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17429 dynamic_linker='NetBSD (a.out) ld.so'
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17432 soname_spec='${libname}${release}${shared_ext}$major'
17433 dynamic_linker='NetBSD ld.elf_so'
17435 shlibpath_var=LD_LIBRARY_PATH
17436 shlibpath_overrides_runpath=yes
17437 hardcode_into_libs=yes
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 shlibpath_var=LD_LIBRARY_PATH
17444 shlibpath_overrides_runpath=yes
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452 soname_spec='${libname}${release}${shared_ext}$major'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath=yes
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17466 openbsd2.[89] | openbsd2.[89].*)
17467 shlibpath_overrides_runpath=no
17470 shlibpath_overrides_runpath=yes
17474 shlibpath_overrides_runpath=yes
17479 libname_spec='$name'
17482 library_names_spec='$libname${shared_ext} $libname.a'
17483 dynamic_linker='OS/2 ld.exe'
17484 shlibpath_var=LIBPATH
17487 osf3* | osf4* | osf5*)
17491 soname_spec='${libname}${release}${shared_ext}$major'
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493 shlibpath_var=LD_LIBRARY_PATH
17494 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17495 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17500 soname_spec='${libname}${release}${shared_ext}$major'
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502 shlibpath_var=LD_LIBRARY_PATH
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510 soname_spec='${libname}${release}${shared_ext}$major'
17511 shlibpath_var=LD_LIBRARY_PATH
17512 shlibpath_overrides_runpath=yes
17513 hardcode_into_libs=yes
17514 # ldd complains unless libraries are executable
17515 postinstall_cmds='chmod +x $lib'
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17521 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17522 shlibpath_var=LD_LIBRARY_PATH
17523 shlibpath_overrides_runpath=yes
17524 if test "$with_gnu_ld" = yes; then
17530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17533 soname_spec='${libname}${release}${shared_ext}$major'
17534 shlibpath_var=LD_LIBRARY_PATH
17535 case $host_vendor in
17537 shlibpath_overrides_runpath=no
17539 export_dynamic_flag_spec='${wl}-Blargedynsym'
17540 runpath_var=LD_RUN_PATH
17548 shlibpath_overrides_runpath=no
17549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17555 if test -d /usr/nec ;then
17557 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17558 soname_spec='$libname${shared_ext}.$major'
17559 shlibpath_var=LD_LIBRARY_PATH
17565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17566 soname_spec='${libname}${release}${shared_ext}$major'
17567 shlibpath_var=LD_LIBRARY_PATH
17574 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17575 echo "${ECHO_T}$dynamic_linker" >&6
17576 test "$dynamic_linker" = no && can_build_shared=no
17578 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17579 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17580 hardcode_action_GCJ=
17581 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17582 test -n "$runpath_var GCJ" || \
17583 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17585 # We can hardcode non-existant directories.
17586 if test "$hardcode_direct_GCJ" != no &&
17587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17588 # have to relink, otherwise we might link with an installed library
17589 # when we should be linking with a yet-to-be-installed one
17590 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17591 test "$hardcode_minus_L_GCJ" != no; then
17592 # Linking always hardcodes the temporary library directory.
17593 hardcode_action_GCJ=relink
17595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17596 hardcode_action_GCJ=immediate
17599 # We cannot hardcode anything, or else we can only hardcode existing
17601 hardcode_action_GCJ=unsupported
17603 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17604 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17606 if test "$hardcode_action_GCJ" = relink; then
17607 # Fast installation is not supported
17608 enable_fast_install=no
17609 elif test "$shlibpath_overrides_runpath" = yes ||
17610 test "$enable_shared" = no; then
17611 # Fast installation is not necessary
17612 enable_fast_install=needless
17617 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17618 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17619 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17622 echo "$as_me:$LINENO: result: yes" >&5
17623 echo "${ECHO_T}yes" >&6
17625 # FIXME - insert some real tests, host_os isn't really good enough
17628 if test -n "$STRIP" ; then
17629 striplib="$STRIP -x"
17630 echo "$as_me:$LINENO: result: yes" >&5
17631 echo "${ECHO_T}yes" >&6
17633 echo "$as_me:$LINENO: result: no" >&5
17634 echo "${ECHO_T}no" >&6
17638 echo "$as_me:$LINENO: result: no" >&5
17639 echo "${ECHO_T}no" >&6
17644 if test "x$enable_dlopen" != xyes; then
17645 enable_dlopen=unknown
17646 enable_dlopen_self=unknown
17647 enable_dlopen_self_static=unknown
17654 lt_cv_dlopen="load_add_on"
17656 lt_cv_dlopen_self=yes
17660 lt_cv_dlopen="LoadLibrary"
17665 lt_cv_dlopen="dlopen"
17670 # if libdl is installed we need to link against it
17671 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17672 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 ac_check_lib_save_LIBS=$LIBS
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17685 /* Override any gcc2 internal prototype to avoid an error. */
17689 /* We use char because int might match the return type of a gcc2
17690 builtin and then its argument prototype would still apply. */
17700 rm -f conftest.$ac_objext conftest$ac_exeext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17702 (eval $ac_link) 2>conftest.er1
17704 grep -v '^ *+' conftest.er1 >conftest.err
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest$ac_exeext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_cv_lib_dl_dlopen=yes
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17726 ac_cv_lib_dl_dlopen=no
17728 rm -f conftest.err conftest.$ac_objext \
17729 conftest$ac_exeext conftest.$ac_ext
17730 LIBS=$ac_check_lib_save_LIBS
17732 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17733 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17734 if test $ac_cv_lib_dl_dlopen = yes; then
17735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17738 lt_cv_dlopen="dyld"
17740 lt_cv_dlopen_self=yes
17747 echo "$as_me:$LINENO: checking for shl_load" >&5
17748 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17749 if test "${ac_cv_func_shl_load+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17752 cat >conftest.$ac_ext <<_ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17758 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17760 #define shl_load innocuous_shl_load
17762 /* System header to define __stub macros and hopefully few prototypes,
17763 which can conflict with char shl_load (); below.
17764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17765 <limits.h> exists even on freestanding compilers. */
17768 # include <limits.h>
17770 # include <assert.h>
17775 /* Override any gcc2 internal prototype to avoid an error. */
17780 /* We use char because int might match the return type of a gcc2
17781 builtin and then its argument prototype would still apply. */
17783 /* The GNU C library defines this for functions which it implements
17784 to always fail with ENOSYS. Some functions are actually named
17785 something starting with __ and the normal name is an alias. */
17786 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17789 char (*f) () = shl_load;
17798 return f != shl_load;
17803 rm -f conftest.$ac_objext conftest$ac_exeext
17804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17805 (eval $ac_link) 2>conftest.er1
17807 grep -v '^ *+' conftest.er1 >conftest.err
17809 cat conftest.err >&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } &&
17812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest$ac_exeext'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_func_shl_load=yes
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 ac_cv_func_shl_load=no
17831 rm -f conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17834 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17835 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17836 if test $ac_cv_func_shl_load = yes; then
17837 lt_cv_dlopen="shl_load"
17839 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17840 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17841 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17844 ac_check_lib_save_LIBS=$LIBS
17846 cat >conftest.$ac_ext <<_ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17853 /* Override any gcc2 internal prototype to avoid an error. */
17857 /* We use char because int might match the return type of a gcc2
17858 builtin and then its argument prototype would still apply. */
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870 (eval $ac_link) 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; } &&
17883 { ac_try='test -s conftest$ac_exeext'
17884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885 (eval $ac_try) 2>&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; }; then
17889 ac_cv_lib_dld_shl_load=yes
17891 echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17894 ac_cv_lib_dld_shl_load=no
17896 rm -f conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
17898 LIBS=$ac_check_lib_save_LIBS
17900 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17901 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17902 if test $ac_cv_lib_dld_shl_load = yes; then
17903 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17905 echo "$as_me:$LINENO: checking for dlopen" >&5
17906 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17907 if test "${ac_cv_func_dlopen+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17918 #define dlopen innocuous_dlopen
17920 /* System header to define __stub macros and hopefully few prototypes,
17921 which can conflict with char dlopen (); below.
17922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17923 <limits.h> exists even on freestanding compilers. */
17926 # include <limits.h>
17928 # include <assert.h>
17933 /* Override any gcc2 internal prototype to avoid an error. */
17938 /* We use char because int might match the return type of a gcc2
17939 builtin and then its argument prototype would still apply. */
17941 /* The GNU C library defines this for functions which it implements
17942 to always fail with ENOSYS. Some functions are actually named
17943 something starting with __ and the normal name is an alias. */
17944 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17947 char (*f) () = dlopen;
17956 return f != dlopen;
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963 (eval $ac_link) 2>conftest.er1
17965 grep -v '^ *+' conftest.er1 >conftest.err
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
17970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest$ac_exeext'
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17982 ac_cv_func_dlopen=yes
17984 echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17987 ac_cv_func_dlopen=no
17989 rm -f conftest.err conftest.$ac_objext \
17990 conftest$ac_exeext conftest.$ac_ext
17992 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17993 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17994 if test $ac_cv_func_dlopen = yes; then
17995 lt_cv_dlopen="dlopen"
17997 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17998 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17999 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 ac_check_lib_save_LIBS=$LIBS
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18011 /* Override any gcc2 internal prototype to avoid an error. */
18015 /* We use char because int might match the return type of a gcc2
18016 builtin and then its argument prototype would still apply. */
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18028 (eval $ac_link) 2>conftest.er1
18030 grep -v '^ *+' conftest.er1 >conftest.err
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; } &&
18041 { ac_try='test -s conftest$ac_exeext'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18047 ac_cv_lib_dl_dlopen=yes
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18052 ac_cv_lib_dl_dlopen=no
18054 rm -f conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056 LIBS=$ac_check_lib_save_LIBS
18058 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18060 if test $ac_cv_lib_dl_dlopen = yes; then
18061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18063 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18064 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18065 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 ac_check_lib_save_LIBS=$LIBS
18069 LIBS="-lsvld $LIBS"
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18077 /* Override any gcc2 internal prototype to avoid an error. */
18081 /* We use char because int might match the return type of a gcc2
18082 builtin and then its argument prototype would still apply. */
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094 (eval $ac_link) 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try='test -s conftest$ac_exeext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_lib_svld_dlopen=yes
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18118 ac_cv_lib_svld_dlopen=no
18120 rm -f conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18122 LIBS=$ac_check_lib_save_LIBS
18124 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18125 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18126 if test $ac_cv_lib_svld_dlopen = yes; then
18127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18129 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18130 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18131 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 ac_check_lib_save_LIBS=$LIBS
18136 cat >conftest.$ac_ext <<_ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18143 /* Override any gcc2 internal prototype to avoid an error. */
18147 /* We use char because int might match the return type of a gcc2
18148 builtin and then its argument prototype would still apply. */
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18160 (eval $ac_link) 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } &&
18173 { ac_try='test -s conftest$ac_exeext'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 ac_cv_lib_dld_dld_link=yes
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ac_cv_lib_dld_dld_link=no
18186 rm -f conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18188 LIBS=$ac_check_lib_save_LIBS
18190 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18191 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18192 if test $ac_cv_lib_dld_dld_link = yes; then
18193 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18214 if test "x$lt_cv_dlopen" != xno; then
18220 case $lt_cv_dlopen in
18222 save_CPPFLAGS="$CPPFLAGS"
18223 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18225 save_LDFLAGS="$LDFLAGS"
18226 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18229 LIBS="$lt_cv_dlopen_libs $LIBS"
18231 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18232 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18233 if test "${lt_cv_dlopen_self+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 if test "$cross_compiling" = yes; then :
18237 lt_cv_dlopen_self=cross
18239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18240 lt_status=$lt_dlunknown
18241 cat > conftest.$ac_ext <<EOF
18242 #line 18242 "configure"
18243 #include "confdefs.h"
18252 # define LT_DLGLOBAL RTLD_GLOBAL
18255 # define LT_DLGLOBAL DL_GLOBAL
18257 # define LT_DLGLOBAL 0
18261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18262 find out it does not work in some platform. */
18263 #ifndef LT_DLLAZY_OR_NOW
18265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18268 # define LT_DLLAZY_OR_NOW DL_LAZY
18271 # define LT_DLLAZY_OR_NOW RTLD_NOW
18274 # define LT_DLLAZY_OR_NOW DL_NOW
18276 # define LT_DLLAZY_OR_NOW 0
18284 extern "C" void exit (int);
18287 void fnord() { int i=42;}
18290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18291 int status = $lt_dlunknown;
18295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18296 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18297 /* dlclose (self); */
18303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304 (eval $ac_link) 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18308 (./conftest; exit; ) 2>/dev/null
18310 case x$lt_status in
18311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18313 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18316 # compilation failed
18317 lt_cv_dlopen_self=no
18324 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18325 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18327 if test "x$lt_cv_dlopen_self" = xyes; then
18328 LDFLAGS="$LDFLAGS $link_static_flag"
18329 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18330 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18331 if test "${lt_cv_dlopen_self_static+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 if test "$cross_compiling" = yes; then :
18335 lt_cv_dlopen_self_static=cross
18337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18338 lt_status=$lt_dlunknown
18339 cat > conftest.$ac_ext <<EOF
18340 #line 18340 "configure"
18341 #include "confdefs.h"
18350 # define LT_DLGLOBAL RTLD_GLOBAL
18353 # define LT_DLGLOBAL DL_GLOBAL
18355 # define LT_DLGLOBAL 0
18359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18360 find out it does not work in some platform. */
18361 #ifndef LT_DLLAZY_OR_NOW
18363 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18366 # define LT_DLLAZY_OR_NOW DL_LAZY
18369 # define LT_DLLAZY_OR_NOW RTLD_NOW
18372 # define LT_DLLAZY_OR_NOW DL_NOW
18374 # define LT_DLLAZY_OR_NOW 0
18382 extern "C" void exit (int);
18385 void fnord() { int i=42;}
18388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18389 int status = $lt_dlunknown;
18393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18394 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18395 /* dlclose (self); */
18401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18402 (eval $ac_link) 2>&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18406 (./conftest; exit; ) 2>/dev/null
18408 case x$lt_status in
18409 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18410 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18411 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18414 # compilation failed
18415 lt_cv_dlopen_self_static=no
18422 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18423 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18426 CPPFLAGS="$save_CPPFLAGS"
18427 LDFLAGS="$save_LDFLAGS"
18432 case $lt_cv_dlopen_self in
18433 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18434 *) enable_dlopen_self=unknown ;;
18437 case $lt_cv_dlopen_self_static in
18438 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18439 *) enable_dlopen_self_static=unknown ;;
18444 # The else clause should only fire when bootstrapping the
18445 # libtool distribution, otherwise you forgot to ship ltmain.sh
18446 # with your package, and you will get complaints that there are
18447 # no rules to generate ltmain.sh.
18448 if test -f "$ltmain"; then
18449 # See if we are running on zsh, and set the options which allow our commands through
18450 # without removal of \ escapes.
18451 if test -n "${ZSH_VERSION+set}" ; then
18452 setopt NO_GLOB_SUBST
18454 # Now quote all the things that may contain metacharacters while being
18455 # careful not to overquote the AC_SUBSTed values. We take copies of the
18456 # variables and quote the copies for generation of the libtool script.
18457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18459 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18460 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18461 deplibs_check_method reload_flag reload_cmds need_locks \
18462 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18463 lt_cv_sys_global_symbol_to_c_name_address \
18464 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18465 old_postinstall_cmds old_postuninstall_cmds \
18469 lt_prog_compiler_wl_GCJ \
18470 lt_prog_compiler_pic_GCJ \
18471 lt_prog_compiler_static_GCJ \
18472 lt_prog_compiler_no_builtin_flag_GCJ \
18473 export_dynamic_flag_spec_GCJ \
18474 thread_safe_flag_spec_GCJ \
18475 whole_archive_flag_spec_GCJ \
18476 enable_shared_with_static_runtimes_GCJ \
18477 old_archive_cmds_GCJ \
18478 old_archive_from_new_cmds_GCJ \
18479 predep_objects_GCJ \
18480 postdep_objects_GCJ \
18483 compiler_lib_search_path_GCJ \
18485 archive_expsym_cmds_GCJ \
18486 postinstall_cmds_GCJ \
18487 postuninstall_cmds_GCJ \
18488 old_archive_from_expsyms_cmds_GCJ \
18489 allow_undefined_flag_GCJ \
18490 no_undefined_flag_GCJ \
18491 export_symbols_cmds_GCJ \
18492 hardcode_libdir_flag_spec_GCJ \
18493 hardcode_libdir_flag_spec_ld_GCJ \
18494 hardcode_libdir_separator_GCJ \
18495 hardcode_automatic_GCJ \
18497 module_expsym_cmds_GCJ \
18498 lt_cv_prog_compiler_c_o_GCJ \
18499 exclude_expsyms_GCJ \
18500 include_expsyms_GCJ; do
18503 old_archive_cmds_GCJ | \
18504 old_archive_from_new_cmds_GCJ | \
18505 archive_cmds_GCJ | \
18506 archive_expsym_cmds_GCJ | \
18507 module_cmds_GCJ | \
18508 module_expsym_cmds_GCJ | \
18509 old_archive_from_expsyms_cmds_GCJ | \
18510 export_symbols_cmds_GCJ | \
18511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18512 postinstall_cmds | postuninstall_cmds | \
18513 old_postinstall_cmds | old_postuninstall_cmds | \
18514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18515 # Double-quote double-evaled strings.
18516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18525 *'\$0 --fallback-echo"')
18526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18532 cat <<__EOF__ >> "$cfgfile"
18533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18537 # Shell to use when invoking shell scripts.
18540 # Whether or not to build shared libraries.
18541 build_libtool_libs=$enable_shared
18543 # Whether or not to build static libraries.
18544 build_old_libs=$enable_static
18546 # Whether or not to add -lc for building shared libraries.
18547 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18549 # Whether or not to disallow shared libs when runtime libs are static
18550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18552 # Whether or not to optimize for fast installation.
18553 fast_install=$enable_fast_install
18556 host_alias=$host_alias
18559 # An echo program that does not interpret backslashes.
18564 AR_FLAGS=$lt_AR_FLAGS
18569 # A language-specific compiler.
18570 CC=$lt_compiler_GCJ
18572 # Is the compiler the GNU C compiler?
18578 # The linker used to build libraries.
18581 # Whether we need hard or soft links.
18584 # A BSD-compatible nm program.
18587 # A symbol stripping program
18590 # Used to examine libraries when file_magic_cmd begins "file"
18591 MAGIC_CMD=$MAGIC_CMD
18593 # Used on cygwin: DLL creation program.
18596 # Used on cygwin: object dumper.
18599 # Used on cygwin: assembler.
18602 # The name of the directory that contains temporary libtool files.
18605 # How to create reloadable object files.
18606 reload_flag=$lt_reload_flag
18607 reload_cmds=$lt_reload_cmds
18609 # How to pass a linker flag through the compiler.
18610 wl=$lt_lt_prog_compiler_wl_GCJ
18612 # Object file suffix (normally "o").
18613 objext="$ac_objext"
18615 # Old archive suffix (normally "a").
18618 # Shared library suffix (normally ".so").
18619 shrext_cmds='$shrext_cmds'
18621 # Executable file suffix (normally "").
18624 # Additional compiler flags for building library objects.
18625 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18628 # What is the maximum length of a command?
18629 max_cmd_len=$lt_cv_sys_max_cmd_len
18631 # Does compiler simultaneously support -c and -o options?
18632 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18634 # Must we lock files when doing compilation ?
18635 need_locks=$lt_need_locks
18637 # Do we need the lib prefix for modules?
18638 need_lib_prefix=$need_lib_prefix
18640 # Do we need a version for libraries?
18641 need_version=$need_version
18643 # Whether dlopen is supported.
18644 dlopen_support=$enable_dlopen
18646 # Whether dlopen of programs is supported.
18647 dlopen_self=$enable_dlopen_self
18649 # Whether dlopen of statically linked programs is supported.
18650 dlopen_self_static=$enable_dlopen_self_static
18652 # Compiler flag to prevent dynamic linking.
18653 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18655 # Compiler flag to turn off builtin functions.
18656 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18658 # Compiler flag to allow reflexive dlopens.
18659 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18661 # Compiler flag to generate shared objects directly from archives.
18662 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18664 # Compiler flag to generate thread-safe objects.
18665 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18667 # Library versioning type.
18668 version_type=$version_type
18670 # Format of library name prefix.
18671 libname_spec=$lt_libname_spec
18673 # List of archive names. First name is the real one, the rest are links.
18674 # The last name is the one that the linker finds with -lNAME.
18675 library_names_spec=$lt_library_names_spec
18677 # The coded name of the library, if different from the real name.
18678 soname_spec=$lt_soname_spec
18680 # Commands used to build and install an old-style archive.
18682 old_archive_cmds=$lt_old_archive_cmds_GCJ
18683 old_postinstall_cmds=$lt_old_postinstall_cmds
18684 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18686 # Create an old-style archive from a shared archive.
18687 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18689 # Create a temporary old-style archive to link instead of a shared archive.
18690 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18692 # Commands used to build and install a shared archive.
18693 archive_cmds=$lt_archive_cmds_GCJ
18694 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18695 postinstall_cmds=$lt_postinstall_cmds
18696 postuninstall_cmds=$lt_postuninstall_cmds
18698 # Commands used to build a loadable module (assumed same as above if empty)
18699 module_cmds=$lt_module_cmds_GCJ
18700 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18702 # Commands to strip libraries.
18703 old_striplib=$lt_old_striplib
18704 striplib=$lt_striplib
18706 # Dependencies to place before the objects being linked to create a
18708 predep_objects=$lt_predep_objects_GCJ
18710 # Dependencies to place after the objects being linked to create a
18712 postdep_objects=$lt_postdep_objects_GCJ
18714 # Dependencies to place before the objects being linked to create a
18716 predeps=$lt_predeps_GCJ
18718 # Dependencies to place after the objects being linked to create a
18720 postdeps=$lt_postdeps_GCJ
18722 # The library search path used internally by the compiler when linking
18723 # a shared library.
18724 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18726 # Method to check whether dependent libraries are shared objects.
18727 deplibs_check_method=$lt_deplibs_check_method
18729 # Command to use when deplibs_check_method == file_magic.
18730 file_magic_cmd=$lt_file_magic_cmd
18732 # Flag that allows shared libraries with undefined symbols to be built.
18733 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18735 # Flag that forces no undefined symbols.
18736 no_undefined_flag=$lt_no_undefined_flag_GCJ
18738 # Commands used to finish a libtool library installation in a directory.
18739 finish_cmds=$lt_finish_cmds
18741 # Same as above, but a single script fragment to be evaled but not shown.
18742 finish_eval=$lt_finish_eval
18744 # Take the output of nm and produce a listing of raw symbols and C names.
18745 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18747 # Transform the output of nm in a proper C declaration
18748 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18750 # Transform the output of nm in a C name address pair
18751 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18753 # This is the shared library runtime path variable.
18754 runpath_var=$runpath_var
18756 # This is the shared library path variable.
18757 shlibpath_var=$shlibpath_var
18759 # Is shlibpath searched before the hard-coded library search path?
18760 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18762 # How to hardcode a shared library path into an executable.
18763 hardcode_action=$hardcode_action_GCJ
18765 # Whether we should hardcode library paths into libraries.
18766 hardcode_into_libs=$hardcode_into_libs
18768 # Flag to hardcode \$libdir into a binary during linking.
18769 # This must work even if \$libdir does not exist.
18770 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18772 # If ld is used when linking, flag to hardcode \$libdir into
18773 # a binary during linking. This must work even if \$libdir does
18775 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18777 # Whether we need a single -rpath flag with a separated argument.
18778 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18780 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18781 # resulting binary.
18782 hardcode_direct=$hardcode_direct_GCJ
18784 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18785 # resulting binary.
18786 hardcode_minus_L=$hardcode_minus_L_GCJ
18788 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18789 # the resulting binary.
18790 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18792 # Set to yes if building a shared library automatically hardcodes DIR into the library
18793 # and all subsequent libraries and executables linked against it.
18794 hardcode_automatic=$hardcode_automatic_GCJ
18796 # Variables whose values should be saved in libtool wrapper scripts and
18797 # restored at relink time.
18798 variables_saved_for_relink="$variables_saved_for_relink"
18800 # Whether libtool must link a program against all its dependency libraries.
18801 link_all_deplibs=$link_all_deplibs_GCJ
18803 # Compile-time system search path for libraries
18804 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18806 # Run-time system search path for libraries
18807 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18809 # Fix the shell variable \$srcfile for the compiler.
18810 fix_srcfile_path="$fix_srcfile_path_GCJ"
18812 # Set to yes if exported symbols are required.
18813 always_export_symbols=$always_export_symbols_GCJ
18815 # The commands to list exported symbols.
18816 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18818 # The commands to extract the exported symbol list from a shared archive.
18819 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18821 # Symbols that should not be listed in the preloaded symbols.
18822 exclude_expsyms=$lt_exclude_expsyms_GCJ
18824 # Symbols that must always be exported.
18825 include_expsyms=$lt_include_expsyms_GCJ
18827 # ### END LIBTOOL TAG CONFIG: $tagname
18833 # If there is no Makefile yet, we rely on a make rule to execute
18834 # `config.status --recheck' to rerun these tests and create the
18835 # libtool script then.
18836 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18837 if test -f "$ltmain_in"; then
18838 test -f Makefile && make "$ltmain"
18844 ac_cpp='$CPP $CPPFLAGS'
18845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18860 # Source file extension for RC test sources.
18863 # Object file extension for compiled RC test sources.
18867 # Code to be used in simple compile tests
18868 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18870 # Code to be used in simple link tests
18871 lt_simple_link_test_code="$lt_simple_compile_test_code"
18873 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18875 # If no C compiler was specified, use CC.
18878 # Allow CC to be a program name with arguments.
18882 # Allow CC to be a program name with arguments.
18887 lt_cv_prog_compiler_c_o_RC=yes
18889 # The else clause should only fire when bootstrapping the
18890 # libtool distribution, otherwise you forgot to ship ltmain.sh
18891 # with your package, and you will get complaints that there are
18892 # no rules to generate ltmain.sh.
18893 if test -f "$ltmain"; then
18894 # See if we are running on zsh, and set the options which allow our commands through
18895 # without removal of \ escapes.
18896 if test -n "${ZSH_VERSION+set}" ; then
18897 setopt NO_GLOB_SUBST
18899 # Now quote all the things that may contain metacharacters while being
18900 # careful not to overquote the AC_SUBSTed values. We take copies of the
18901 # variables and quote the copies for generation of the libtool script.
18902 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18904 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18905 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18906 deplibs_check_method reload_flag reload_cmds need_locks \
18907 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18908 lt_cv_sys_global_symbol_to_c_name_address \
18909 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18910 old_postinstall_cmds old_postuninstall_cmds \
18914 lt_prog_compiler_wl_RC \
18915 lt_prog_compiler_pic_RC \
18916 lt_prog_compiler_static_RC \
18917 lt_prog_compiler_no_builtin_flag_RC \
18918 export_dynamic_flag_spec_RC \
18919 thread_safe_flag_spec_RC \
18920 whole_archive_flag_spec_RC \
18921 enable_shared_with_static_runtimes_RC \
18922 old_archive_cmds_RC \
18923 old_archive_from_new_cmds_RC \
18924 predep_objects_RC \
18925 postdep_objects_RC \
18928 compiler_lib_search_path_RC \
18930 archive_expsym_cmds_RC \
18931 postinstall_cmds_RC \
18932 postuninstall_cmds_RC \
18933 old_archive_from_expsyms_cmds_RC \
18934 allow_undefined_flag_RC \
18935 no_undefined_flag_RC \
18936 export_symbols_cmds_RC \
18937 hardcode_libdir_flag_spec_RC \
18938 hardcode_libdir_flag_spec_ld_RC \
18939 hardcode_libdir_separator_RC \
18940 hardcode_automatic_RC \
18942 module_expsym_cmds_RC \
18943 lt_cv_prog_compiler_c_o_RC \
18944 exclude_expsyms_RC \
18945 include_expsyms_RC; do
18948 old_archive_cmds_RC | \
18949 old_archive_from_new_cmds_RC | \
18950 archive_cmds_RC | \
18951 archive_expsym_cmds_RC | \
18953 module_expsym_cmds_RC | \
18954 old_archive_from_expsyms_cmds_RC | \
18955 export_symbols_cmds_RC | \
18956 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18957 postinstall_cmds | postuninstall_cmds | \
18958 old_postinstall_cmds | old_postuninstall_cmds | \
18959 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18960 # Double-quote double-evaled strings.
18961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18964 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18970 *'\$0 --fallback-echo"')
18971 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18977 cat <<__EOF__ >> "$cfgfile"
18978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18982 # Shell to use when invoking shell scripts.
18985 # Whether or not to build shared libraries.
18986 build_libtool_libs=$enable_shared
18988 # Whether or not to build static libraries.
18989 build_old_libs=$enable_static
18991 # Whether or not to add -lc for building shared libraries.
18992 build_libtool_need_lc=$archive_cmds_need_lc_RC
18994 # Whether or not to disallow shared libs when runtime libs are static
18995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18997 # Whether or not to optimize for fast installation.
18998 fast_install=$enable_fast_install
19001 host_alias=$host_alias
19004 # An echo program that does not interpret backslashes.
19009 AR_FLAGS=$lt_AR_FLAGS
19014 # A language-specific compiler.
19017 # Is the compiler the GNU C compiler?
19023 # The linker used to build libraries.
19026 # Whether we need hard or soft links.
19029 # A BSD-compatible nm program.
19032 # A symbol stripping program
19035 # Used to examine libraries when file_magic_cmd begins "file"
19036 MAGIC_CMD=$MAGIC_CMD
19038 # Used on cygwin: DLL creation program.
19041 # Used on cygwin: object dumper.
19044 # Used on cygwin: assembler.
19047 # The name of the directory that contains temporary libtool files.
19050 # How to create reloadable object files.
19051 reload_flag=$lt_reload_flag
19052 reload_cmds=$lt_reload_cmds
19054 # How to pass a linker flag through the compiler.
19055 wl=$lt_lt_prog_compiler_wl_RC
19057 # Object file suffix (normally "o").
19058 objext="$ac_objext"
19060 # Old archive suffix (normally "a").
19063 # Shared library suffix (normally ".so").
19064 shrext_cmds='$shrext_cmds'
19066 # Executable file suffix (normally "").
19069 # Additional compiler flags for building library objects.
19070 pic_flag=$lt_lt_prog_compiler_pic_RC
19073 # What is the maximum length of a command?
19074 max_cmd_len=$lt_cv_sys_max_cmd_len
19076 # Does compiler simultaneously support -c and -o options?
19077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19079 # Must we lock files when doing compilation ?
19080 need_locks=$lt_need_locks
19082 # Do we need the lib prefix for modules?
19083 need_lib_prefix=$need_lib_prefix
19085 # Do we need a version for libraries?
19086 need_version=$need_version
19088 # Whether dlopen is supported.
19089 dlopen_support=$enable_dlopen
19091 # Whether dlopen of programs is supported.
19092 dlopen_self=$enable_dlopen_self
19094 # Whether dlopen of statically linked programs is supported.
19095 dlopen_self_static=$enable_dlopen_self_static
19097 # Compiler flag to prevent dynamic linking.
19098 link_static_flag=$lt_lt_prog_compiler_static_RC
19100 # Compiler flag to turn off builtin functions.
19101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19103 # Compiler flag to allow reflexive dlopens.
19104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19106 # Compiler flag to generate shared objects directly from archives.
19107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19109 # Compiler flag to generate thread-safe objects.
19110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19112 # Library versioning type.
19113 version_type=$version_type
19115 # Format of library name prefix.
19116 libname_spec=$lt_libname_spec
19118 # List of archive names. First name is the real one, the rest are links.
19119 # The last name is the one that the linker finds with -lNAME.
19120 library_names_spec=$lt_library_names_spec
19122 # The coded name of the library, if different from the real name.
19123 soname_spec=$lt_soname_spec
19125 # Commands used to build and install an old-style archive.
19127 old_archive_cmds=$lt_old_archive_cmds_RC
19128 old_postinstall_cmds=$lt_old_postinstall_cmds
19129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19131 # Create an old-style archive from a shared archive.
19132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19134 # Create a temporary old-style archive to link instead of a shared archive.
19135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19137 # Commands used to build and install a shared archive.
19138 archive_cmds=$lt_archive_cmds_RC
19139 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19140 postinstall_cmds=$lt_postinstall_cmds
19141 postuninstall_cmds=$lt_postuninstall_cmds
19143 # Commands used to build a loadable module (assumed same as above if empty)
19144 module_cmds=$lt_module_cmds_RC
19145 module_expsym_cmds=$lt_module_expsym_cmds_RC
19147 # Commands to strip libraries.
19148 old_striplib=$lt_old_striplib
19149 striplib=$lt_striplib
19151 # Dependencies to place before the objects being linked to create a
19153 predep_objects=$lt_predep_objects_RC
19155 # Dependencies to place after the objects being linked to create a
19157 postdep_objects=$lt_postdep_objects_RC
19159 # Dependencies to place before the objects being linked to create a
19161 predeps=$lt_predeps_RC
19163 # Dependencies to place after the objects being linked to create a
19165 postdeps=$lt_postdeps_RC
19167 # The library search path used internally by the compiler when linking
19168 # a shared library.
19169 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19171 # Method to check whether dependent libraries are shared objects.
19172 deplibs_check_method=$lt_deplibs_check_method
19174 # Command to use when deplibs_check_method == file_magic.
19175 file_magic_cmd=$lt_file_magic_cmd
19177 # Flag that allows shared libraries with undefined symbols to be built.
19178 allow_undefined_flag=$lt_allow_undefined_flag_RC
19180 # Flag that forces no undefined symbols.
19181 no_undefined_flag=$lt_no_undefined_flag_RC
19183 # Commands used to finish a libtool library installation in a directory.
19184 finish_cmds=$lt_finish_cmds
19186 # Same as above, but a single script fragment to be evaled but not shown.
19187 finish_eval=$lt_finish_eval
19189 # Take the output of nm and produce a listing of raw symbols and C names.
19190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19192 # Transform the output of nm in a proper C declaration
19193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19195 # Transform the output of nm in a C name address pair
19196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19198 # This is the shared library runtime path variable.
19199 runpath_var=$runpath_var
19201 # This is the shared library path variable.
19202 shlibpath_var=$shlibpath_var
19204 # Is shlibpath searched before the hard-coded library search path?
19205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19207 # How to hardcode a shared library path into an executable.
19208 hardcode_action=$hardcode_action_RC
19210 # Whether we should hardcode library paths into libraries.
19211 hardcode_into_libs=$hardcode_into_libs
19213 # Flag to hardcode \$libdir into a binary during linking.
19214 # This must work even if \$libdir does not exist.
19215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19217 # If ld is used when linking, flag to hardcode \$libdir into
19218 # a binary during linking. This must work even if \$libdir does
19220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19222 # Whether we need a single -rpath flag with a separated argument.
19223 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19226 # resulting binary.
19227 hardcode_direct=$hardcode_direct_RC
19229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19230 # resulting binary.
19231 hardcode_minus_L=$hardcode_minus_L_RC
19233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19234 # the resulting binary.
19235 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19237 # Set to yes if building a shared library automatically hardcodes DIR into the library
19238 # and all subsequent libraries and executables linked against it.
19239 hardcode_automatic=$hardcode_automatic_RC
19241 # Variables whose values should be saved in libtool wrapper scripts and
19242 # restored at relink time.
19243 variables_saved_for_relink="$variables_saved_for_relink"
19245 # Whether libtool must link a program against all its dependency libraries.
19246 link_all_deplibs=$link_all_deplibs_RC
19248 # Compile-time system search path for libraries
19249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19251 # Run-time system search path for libraries
19252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19254 # Fix the shell variable \$srcfile for the compiler.
19255 fix_srcfile_path="$fix_srcfile_path_RC"
19257 # Set to yes if exported symbols are required.
19258 always_export_symbols=$always_export_symbols_RC
19260 # The commands to list exported symbols.
19261 export_symbols_cmds=$lt_export_symbols_cmds_RC
19263 # The commands to extract the exported symbol list from a shared archive.
19264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19266 # Symbols that should not be listed in the preloaded symbols.
19267 exclude_expsyms=$lt_exclude_expsyms_RC
19269 # Symbols that must always be exported.
19270 include_expsyms=$lt_include_expsyms_RC
19272 # ### END LIBTOOL TAG CONFIG: $tagname
19278 # If there is no Makefile yet, we rely on a make rule to execute
19279 # `config.status --recheck' to rerun these tests and create the
19280 # libtool script then.
19281 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19282 if test -f "$ltmain_in"; then
19283 test -f Makefile && make "$ltmain"
19289 ac_cpp='$CPP $CPPFLAGS'
19290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19299 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19300 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19301 { (exit 1); exit 1; }; }
19305 # Append the new tag name to the list of available tags.
19306 if test -n "$tagname" ; then
19307 available_tags="$available_tags $tagname"
19313 # Now substitute the updated list of available tags.
19314 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19315 mv "${ofile}T" "$ofile"
19319 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19320 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19321 { (exit 1); exit 1; }; }
19327 # This can be used to rebuild libtool when needed
19328 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19330 # Always use our own libtool.
19331 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19333 # Prevent multiple expansion
19346 # Check whether --with-system-libtool or --without-system-libtool was given.
19347 if test "${with_system_libtool+set}" = set; then
19348 withval="$with_system_libtool"
19349 # Extract the first word of "libtool", so it can be a program name with args.
19350 set dummy libtool; ac_word=$2
19351 echo "$as_me:$LINENO: checking for $ac_word" >&5
19352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19353 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19362 as_dummy="$PATH:/usr/local/bin"
19363 for as_dir in $as_dummy
19366 test -z "$as_dir" && as_dir=.
19367 for ac_exec_ext in '' $ac_executable_extensions; do
19368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19369 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19379 LIBTOOL=$ac_cv_path_LIBTOOL
19381 if test -n "$LIBTOOL"; then
19382 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19383 echo "${ECHO_T}$LIBTOOL" >&6
19385 echo "$as_me:$LINENO: result: no" >&5
19386 echo "${ECHO_T}no" >&6
19391 LIBTOOL="`pwd`/libtool"
19410 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
19411 if test "${enable_strict_dependencies+set}" = set; then
19412 enableval="$enable_strict_dependencies"
19416 docdir='${datadir}/doc/freeradius'
19417 echo "$as_me:$LINENO: checking docdir" >&5
19418 echo $ECHO_N "checking docdir... $ECHO_C" >&6
19420 # Check whether --with-docdir or --without-docdir was given.
19421 if test "${with_docdir+set}" = set; then
19422 withval="$with_docdir"
19425 { { echo "$as_me:$LINENO: error: Need docdir" >&5
19426 echo "$as_me: error: Need docdir" >&2;}
19427 { (exit 1); exit 1; }; }
19431 [\\/$]* | ?:[\\/]* )
19435 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19436 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19437 { (exit 1); exit 1; }; }
19443 echo "$as_me:$LINENO: result: $docdir" >&5
19444 echo "${ECHO_T}$docdir" >&6
19446 logdir='${localstatedir}/log/radius'
19447 echo "$as_me:$LINENO: checking logdir" >&5
19448 echo $ECHO_N "checking logdir... $ECHO_C" >&6
19450 # Check whether --with-logdir or --without-logdir was given.
19451 if test "${with_logdir+set}" = set; then
19452 withval="$with_logdir"
19455 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19456 echo "$as_me: error: Need logdir" >&2;}
19457 { (exit 1); exit 1; }; }
19461 [\\/$]* | ?:[\\/]* )
19465 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19466 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19467 { (exit 1); exit 1; }; }
19473 echo "$as_me:$LINENO: result: $logdir" >&5
19474 echo "${ECHO_T}$logdir" >&6
19476 radacctdir='${logdir}/radacct'
19477 echo "$as_me:$LINENO: checking radacctdir" >&5
19478 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
19480 # Check whether --with-radacctdir or --without-radacctdir was given.
19481 if test "${with_radacctdir+set}" = set; then
19482 withval="$with_radacctdir"
19485 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19486 echo "$as_me: error: Need radacctdir" >&2;}
19487 { (exit 1); exit 1; }; }
19491 [\\/$]* | ?:[\\/]* )
19492 radacctdir="$withval"
19495 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19496 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19497 { (exit 1); exit 1; }; }
19503 echo "$as_me:$LINENO: result: $radacctdir" >&5
19504 echo "${ECHO_T}$radacctdir" >&6
19506 raddbdir='${sysconfdir}/raddb'
19507 echo "$as_me:$LINENO: checking raddbdir" >&5
19508 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
19510 # Check whether --with-raddbdir or --without-raddbdir was given.
19511 if test "${with_raddbdir+set}" = set; then
19512 withval="$with_raddbdir"
19515 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19516 echo "$as_me: error: Need raddbdir" >&2;}
19517 { (exit 1); exit 1; }; }
19521 [\\/$]* | ?:[\\/]* )
19522 raddbdir="$withval"
19525 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19526 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19527 { (exit 1); exit 1; }; }
19533 echo "$as_me:$LINENO: result: $raddbdir" >&5
19534 echo "${ECHO_T}$raddbdir" >&6
19538 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19539 if test "${with_ascend_binary+set}" = set; then
19540 withval="$with_ascend_binary"
19549 if test "X$ASCEND_BINARY" = "Xyes"; then
19551 cat >>confdefs.h <<\_ACEOF
19552 #define ASCEND_BINARY
19559 # Check whether --with-threads or --without-threads was given.
19560 if test "${with_threads+set}" = set; then
19561 withval="$with_threads"
19573 # Check whether --with-snmp or --without-snmp was given.
19574 if test "${with_snmp+set}" = set; then
19575 withval="$with_snmp"
19588 # Check whether --with-static_modules or --without-static_modules was given.
19589 if test "${with_static_modules+set}" = set; then
19590 withval="$with_static_modules"
19592 for i in $withval; do
19593 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19600 # Check whether --with-modules or --without-modules was given.
19601 if test "${with_modules+set}" = set; then
19602 withval="$with_modules"
19604 for i in $withval; do
19605 MODULES="$MODULES $i"
19610 # Check whether --enable-developer or --disable-developer was given.
19611 if test "${enable_developer+set}" = set; then
19612 enableval="$enable_developer"
19613 case "$enableval" in
19623 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19629 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19630 if test "${with_experimental_modules+set}" = set; then
19631 withval="$with_experimental_modules"
19641 OPENSSL_INCLUDE_DIR=
19643 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19644 if test "${with_openssl_includes+set}" = set; then
19645 withval="$with_openssl_includes"
19647 *) OPENSSL_INCLUDE_DIR="$withval"
19655 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19656 if test "${with_openssl_libraries+set}" = set; then
19657 withval="$with_openssl_libraries"
19659 *) OPENSSL_LIB_DIR="$withval"
19667 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19668 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19669 withval="$with_rlm_FOO_lib_dir"
19678 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19679 if test "${with_rlm_FOO_include_dir+set}" = set; then
19680 withval="$with_rlm_FOO_include_dir"
19691 # Check whether --with-udpfromto or --without-udpfromto was given.
19692 if test "${with_udpfromto+set}" = set; then
19693 withval="$with_udpfromto"
19704 if test "x$WITH_UDPFROMTO" = "xyes"; then
19706 cat >>confdefs.h <<\_ACEOF
19707 #define WITH_UDPFROMTO
19713 CHECKRAD=checkrad.pl
19714 # Extract the first word of "perl", so it can be a program name with args.
19715 set dummy perl; ac_word=$2
19716 echo "$as_me:$LINENO: checking for $ac_word" >&5
19717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19718 if test "${ac_cv_path_PERL+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19727 for as_dir in $PATH
19730 test -z "$as_dir" && as_dir=.
19731 for ac_exec_ext in '' $ac_executable_extensions; do
19732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19733 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19740 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19744 PERL=$ac_cv_path_PERL
19746 if test -n "$PERL"; then
19747 echo "$as_me:$LINENO: result: $PERL" >&5
19748 echo "${ECHO_T}$PERL" >&6
19750 echo "$as_me:$LINENO: result: no" >&5
19751 echo "${ECHO_T}no" >&6
19754 if test "x$ac_cv_path_PERL" = "x"; then
19755 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19756 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19758 # Extract the first word of "snmpget", so it can be a program name with args.
19759 set dummy snmpget; ac_word=$2
19760 echo "$as_me:$LINENO: checking for $ac_word" >&5
19761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19762 if test "${ac_cv_path_SNMPGET+set}" = set; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19771 for as_dir in $PATH
19774 test -z "$as_dir" && as_dir=.
19775 for ac_exec_ext in '' $ac_executable_extensions; do
19776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19777 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19787 SNMPGET=$ac_cv_path_SNMPGET
19789 if test -n "$SNMPGET"; then
19790 echo "$as_me:$LINENO: result: $SNMPGET" >&5
19791 echo "${ECHO_T}$SNMPGET" >&6
19793 echo "$as_me:$LINENO: result: no" >&5
19794 echo "${ECHO_T}no" >&6
19797 if test "x$ac_cv_path_SNMPGET" = "x"; then
19798 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19799 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19802 # Extract the first word of "snmpwalk", so it can be a program name with args.
19803 set dummy snmpwalk; ac_word=$2
19804 echo "$as_me:$LINENO: checking for $ac_word" >&5
19805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19806 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19815 for as_dir in $PATH
19818 test -z "$as_dir" && as_dir=.
19819 for ac_exec_ext in '' $ac_executable_extensions; do
19820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19821 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19831 SNMPWALK=$ac_cv_path_SNMPWALK
19833 if test -n "$SNMPWALK"; then
19834 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19835 echo "${ECHO_T}$SNMPWALK" >&6
19837 echo "$as_me:$LINENO: result: no" >&5
19838 echo "${ECHO_T}no" >&6
19841 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19842 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19843 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19846 # Extract the first word of "rusers", so it can be a program name with args.
19847 set dummy rusers; ac_word=$2
19848 echo "$as_me:$LINENO: checking for $ac_word" >&5
19849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19850 if test "${ac_cv_path_RUSERS+set}" = set; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19859 for as_dir in $PATH
19862 test -z "$as_dir" && as_dir=.
19863 for ac_exec_ext in '' $ac_executable_extensions; do
19864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19865 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19872 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19876 RUSERS=$ac_cv_path_RUSERS
19878 if test -n "$RUSERS"; then
19879 echo "$as_me:$LINENO: result: $RUSERS" >&5
19880 echo "${ECHO_T}$RUSERS" >&6
19882 echo "$as_me:$LINENO: result: no" >&5
19883 echo "${ECHO_T}no" >&6
19887 missing_dir=`cd $ac_aux_dir && pwd`
19888 # expand $ac_aux_dir to an absolute path
19889 am_aux_dir=`cd $ac_aux_dir && pwd`
19891 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19892 # Use eval to expand $SHELL
19893 if eval "$MISSING --run true"; then
19894 am_missing_run="$MISSING --run "
19897 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19898 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19902 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19905 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19908 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19911 # Extract the first word of "locate", so it can be a program name with args.
19912 set dummy locate; ac_word=$2
19913 echo "$as_me:$LINENO: checking for $ac_word" >&5
19914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19915 if test "${ac_cv_path_LOCATE+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19920 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19924 for as_dir in $PATH
19927 test -z "$as_dir" && as_dir=.
19928 for ac_exec_ext in '' $ac_executable_extensions; do
19929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19930 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19940 LOCATE=$ac_cv_path_LOCATE
19942 if test -n "$LOCATE"; then
19943 echo "$as_me:$LINENO: result: $LOCATE" >&5
19944 echo "${ECHO_T}$LOCATE" >&6
19946 echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6
19950 # Extract the first word of "dirname", so it can be a program name with args.
19951 set dummy dirname; ac_word=$2
19952 echo "$as_me:$LINENO: checking for $ac_word" >&5
19953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19954 if test "${ac_cv_path_DIRNAME+set}" = set; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19963 for as_dir in $PATH
19966 test -z "$as_dir" && as_dir=.
19967 for ac_exec_ext in '' $ac_executable_extensions; do
19968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19969 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19979 DIRNAME=$ac_cv_path_DIRNAME
19981 if test -n "$DIRNAME"; then
19982 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19983 echo "${ECHO_T}$DIRNAME" >&6
19985 echo "$as_me:$LINENO: result: no" >&5
19986 echo "${ECHO_T}no" >&6
19989 # Extract the first word of "grep", so it can be a program name with args.
19990 set dummy grep; ac_word=$2
19991 echo "$as_me:$LINENO: checking for $ac_word" >&5
19992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19993 if test "${ac_cv_path_GREP+set}" = set; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20002 for as_dir in $PATH
20005 test -z "$as_dir" && as_dir=.
20006 for ac_exec_ext in '' $ac_executable_extensions; do
20007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20008 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20018 GREP=$ac_cv_path_GREP
20020 if test -n "$GREP"; then
20021 echo "$as_me:$LINENO: result: $GREP" >&5
20022 echo "${ECHO_T}$GREP" >&6
20024 echo "$as_me:$LINENO: result: no" >&5
20025 echo "${ECHO_T}no" >&6
20031 if test "x$WITH_THREADS" = "xyes"; then
20032 if test $ac_cv_prog_suncc = "yes"; then
20033 CFLAGS="$CFLAGS -mt"
20037 for ac_header in pthread.h
20039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20041 echo "$as_me:$LINENO: checking for $ac_header" >&5
20042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20049 # Is the header compilable?
20050 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 $ac_includes_default
20059 #include <$ac_header>
20061 rm -f conftest.$ac_objext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>conftest.er1
20065 grep -v '^ *+' conftest.er1 >conftest.err
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
20070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest.$ac_objext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_header_compiler=yes
20084 echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20087 ac_header_compiler=no
20089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20091 echo "${ECHO_T}$ac_header_compiler" >&6
20093 # Is the header present?
20094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20096 cat >conftest.$ac_ext <<_ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 #include <$ac_header>
20104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } >/dev/null; then
20112 if test -s conftest.err; then
20113 ac_cpp_err=$ac_c_preproc_warn_flag
20114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20121 if test -z "$ac_cpp_err"; then
20122 ac_header_preproc=yes
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 ac_header_preproc=no
20129 rm -f conftest.err conftest.$ac_ext
20130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20131 echo "${ECHO_T}$ac_header_preproc" >&6
20133 # So? What about this header?
20134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20140 ac_header_preproc=yes
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20157 ## ------------------------------------------ ##
20158 ## Report this to the AC_PACKAGE_NAME lists. ##
20159 ## ------------------------------------------ ##
20162 sed "s/^/$as_me: WARNING: /" >&2
20165 echo "$as_me:$LINENO: checking for $ac_header" >&5
20166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 eval "$as_ac_Header=\$ac_header_preproc"
20172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20177 cat >>confdefs.h <<_ACEOF
20178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20188 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20189 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20190 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20193 ac_check_lib_save_LIBS=$LIBS
20194 LIBS="-lpthread $LIBS"
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20202 /* Override any gcc2 internal prototype to avoid an error. */
20206 /* We use char because int might match the return type of a gcc2
20207 builtin and then its argument prototype would still apply. */
20208 char pthread_create ();
20217 rm -f conftest.$ac_objext conftest$ac_exeext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20219 (eval $ac_link) 2>conftest.er1
20221 grep -v '^ *+' conftest.er1 >conftest.err
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
20226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest$ac_exeext'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_cv_lib_pthread_pthread_create=yes
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_cv_lib_pthread_pthread_create=no
20245 rm -f conftest.err conftest.$ac_objext \
20246 conftest$ac_exeext conftest.$ac_ext
20247 LIBS=$ac_check_lib_save_LIBS
20249 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20250 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20251 if test $ac_cv_lib_pthread_pthread_create = yes; then
20252 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20253 LIBS="$LIBS -lpthread"
20255 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20256 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20257 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 ac_check_lib_save_LIBS=$LIBS
20262 cat >conftest.$ac_ext <<_ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20269 /* Override any gcc2 internal prototype to avoid an error. */
20273 /* We use char because int might match the return type of a gcc2
20274 builtin and then its argument prototype would still apply. */
20275 char pthread_create ();
20284 rm -f conftest.$ac_objext conftest$ac_exeext
20285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20286 (eval $ac_link) 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } &&
20293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; } &&
20299 { ac_try='test -s conftest$ac_exeext'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }; then
20305 ac_cv_lib_c_r_pthread_create=yes
20307 echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20310 ac_cv_lib_c_r_pthread_create=no
20312 rm -f conftest.err conftest.$ac_objext \
20313 conftest$ac_exeext conftest.$ac_ext
20314 LIBS=$ac_check_lib_save_LIBS
20316 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20317 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20318 if test $ac_cv_lib_c_r_pthread_create = yes; then
20319 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20330 if test "x$WITH_THREADS" != "xyes"; then
20332 ac_cv_header_pthread_h="no"
20336 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20337 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
20338 if test "${ac_cv_search_sem_init+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 ac_func_search_save_LIBS=$LIBS
20342 ac_cv_search_sem_init=no
20343 cat >conftest.$ac_ext <<_ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20350 /* Override any gcc2 internal prototype to avoid an error. */
20354 /* We use char because int might match the return type of a gcc2
20355 builtin and then its argument prototype would still apply. */
20365 rm -f conftest.$ac_objext conftest$ac_exeext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367 (eval $ac_link) 2>conftest.er1
20369 grep -v '^ *+' conftest.er1 >conftest.err
20371 cat conftest.err >&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } &&
20374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; } &&
20380 { ac_try='test -s conftest$ac_exeext'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20386 ac_cv_search_sem_init="none required"
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20392 rm -f conftest.err conftest.$ac_objext \
20393 conftest$ac_exeext conftest.$ac_ext
20394 if test "$ac_cv_search_sem_init" = no; then
20395 for ac_lib in pthread sem posix4 rt semaphore; do
20396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20404 /* Override any gcc2 internal prototype to avoid an error. */
20408 /* We use char because int might match the return type of a gcc2
20409 builtin and then its argument prototype would still apply. */
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20421 (eval $ac_link) 2>conftest.er1
20423 grep -v '^ *+' conftest.er1 >conftest.err
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; } &&
20434 { ac_try='test -s conftest$ac_exeext'
20435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436 (eval $ac_try) 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; }; then
20440 ac_cv_search_sem_init="-l$ac_lib"
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20447 rm -f conftest.err conftest.$ac_objext \
20448 conftest$ac_exeext conftest.$ac_ext
20451 LIBS=$ac_func_search_save_LIBS
20453 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20454 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
20455 if test "$ac_cv_search_sem_init" != no; then
20456 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
20459 { { 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
20460 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;}
20461 { (exit 1); exit 1; }; }
20468 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20469 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
20470 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 ac_check_lib_save_LIBS=$LIBS
20474 LIBS="-lsocket $LIBS"
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20482 /* Override any gcc2 internal prototype to avoid an error. */
20486 /* We use char because int might match the return type of a gcc2
20487 builtin and then its argument prototype would still apply. */
20488 char getsockname ();
20497 rm -f conftest.$ac_objext conftest$ac_exeext
20498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20499 (eval $ac_link) 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
20506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; } &&
20512 { ac_try='test -s conftest$ac_exeext'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_cv_lib_socket_getsockname=yes
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 ac_cv_lib_socket_getsockname=no
20525 rm -f conftest.err conftest.$ac_objext \
20526 conftest$ac_exeext conftest.$ac_ext
20527 LIBS=$ac_check_lib_save_LIBS
20529 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20530 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20531 if test $ac_cv_lib_socket_getsockname = yes; then
20532 cat >>confdefs.h <<_ACEOF
20533 #define HAVE_LIBSOCKET 1
20536 LIBS="-lsocket $LIBS"
20542 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20543 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20544 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 ac_check_lib_save_LIBS=$LIBS
20548 LIBS="-lresolv $LIBS"
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20556 /* Override any gcc2 internal prototype to avoid an error. */
20560 /* We use char because int might match the return type of a gcc2
20561 builtin and then its argument prototype would still apply. */
20571 rm -f conftest.$ac_objext conftest$ac_exeext
20572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20573 (eval $ac_link) 2>conftest.er1
20575 grep -v '^ *+' conftest.er1 >conftest.err
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } &&
20580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; } &&
20586 { ac_try='test -s conftest$ac_exeext'
20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; }; then
20592 ac_cv_lib_resolv_inet_aton=yes
20594 echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20597 ac_cv_lib_resolv_inet_aton=no
20599 rm -f conftest.err conftest.$ac_objext \
20600 conftest$ac_exeext conftest.$ac_ext
20601 LIBS=$ac_check_lib_save_LIBS
20603 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20604 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20605 if test $ac_cv_lib_resolv_inet_aton = yes; then
20606 cat >>confdefs.h <<_ACEOF
20607 #define HAVE_LIBRESOLV 1
20610 LIBS="-lresolv $LIBS"
20616 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20617 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20618 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 ac_check_lib_save_LIBS=$LIBS
20623 cat >conftest.$ac_ext <<_ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20630 /* Override any gcc2 internal prototype to avoid an error. */
20634 /* We use char because int might match the return type of a gcc2
20635 builtin and then its argument prototype would still apply. */
20645 rm -f conftest.$ac_objext conftest$ac_exeext
20646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20647 (eval $ac_link) 2>conftest.er1
20649 grep -v '^ *+' conftest.er1 >conftest.err
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } &&
20654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest$ac_exeext'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_lib_nsl_inet_ntoa=yes
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ac_cv_lib_nsl_inet_ntoa=no
20673 rm -f conftest.err conftest.$ac_objext \
20674 conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20677 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20678 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20679 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define HAVE_LIBNSL 1
20691 if test "x$OPENSSL_LIB_DIR" != "x"; then
20692 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20694 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20695 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
20696 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 ac_check_lib_save_LIBS=$LIBS
20700 LIBS="-lcrypto $LIBS"
20701 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20708 /* Override any gcc2 internal prototype to avoid an error. */
20712 /* We use char because int might match the return type of a gcc2
20713 builtin and then its argument prototype would still apply. */
20723 rm -f conftest.$ac_objext conftest$ac_exeext
20724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20725 (eval $ac_link) 2>conftest.er1
20727 grep -v '^ *+' conftest.er1 >conftest.err
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } &&
20732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; } &&
20738 { ac_try='test -s conftest$ac_exeext'
20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740 (eval $ac_try) 2>&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; }; then
20744 ac_cv_lib_crypto_DH_new=yes
20746 echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20749 ac_cv_lib_crypto_DH_new=no
20751 rm -f conftest.err conftest.$ac_objext \
20752 conftest$ac_exeext conftest.$ac_ext
20753 LIBS=$ac_check_lib_save_LIBS
20755 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20756 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
20757 if test $ac_cv_lib_crypto_DH_new = yes; then
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_LIBCRYPTO 1
20764 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20765 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
20766 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 ac_check_lib_save_LIBS=$LIBS
20771 cat >conftest.$ac_ext <<_ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20778 /* Override any gcc2 internal prototype to avoid an error. */
20782 /* We use char because int might match the return type of a gcc2
20783 builtin and then its argument prototype would still apply. */
20793 rm -f conftest.$ac_objext conftest$ac_exeext
20794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20795 (eval $ac_link) 2>conftest.er1
20797 grep -v '^ *+' conftest.er1 >conftest.err
20799 cat conftest.err >&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } &&
20802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; } &&
20808 { ac_try='test -s conftest$ac_exeext'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 ac_cv_lib_ssl_SSL_new=yes
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 ac_cv_lib_ssl_SSL_new=no
20821 rm -f conftest.err conftest.$ac_objext \
20822 conftest$ac_exeext conftest.$ac_ext
20823 LIBS=$ac_check_lib_save_LIBS
20825 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20826 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
20827 if test $ac_cv_lib_ssl_SSL_new = yes; then
20830 cat >>confdefs.h <<\_ACEOF
20831 #define HAVE_LIBSSL 1
20834 if test "x$OPENSSL_LIB_DIR" != "x"; then
20835 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20837 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20847 echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
20848 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
20849 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 ac_check_lib_save_LIBS=$LIBS
20853 LIBS="-lpcap $LIBS"
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20861 /* Override any gcc2 internal prototype to avoid an error. */
20865 /* We use char because int might match the return type of a gcc2
20866 builtin and then its argument prototype would still apply. */
20867 char pcap_open_live ();
20876 rm -f conftest.$ac_objext conftest$ac_exeext
20877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20878 (eval $ac_link) 2>conftest.er1
20880 grep -v '^ *+' conftest.er1 >conftest.err
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
20885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; } &&
20891 { ac_try='test -s conftest$ac_exeext'
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; }; then
20897 ac_cv_lib_pcap_pcap_open_live=yes
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 ac_cv_lib_pcap_pcap_open_live=no
20904 rm -f conftest.err conftest.$ac_objext \
20905 conftest$ac_exeext conftest.$ac_ext
20906 LIBS=$ac_check_lib_save_LIBS
20908 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20909 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6
20910 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
20913 cat >>confdefs.h <<\_ACEOF
20914 #define HAVE_LIBPCAP 1
20919 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20920 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20927 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20930 CFLAGS="$CFLAGS -DDARWIN"
20939 ac_header_dirent=no
20940 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20941 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20942 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20943 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 #include <sys/types.h>
20965 rm -f conftest.$ac_objext
20966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20967 (eval $ac_compile) 2>conftest.er1
20969 grep -v '^ *+' conftest.er1 >conftest.err
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; } &&
20980 { ac_try='test -s conftest.$ac_objext'
20981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982 (eval $ac_try) 2>&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; }; then
20986 eval "$as_ac_Header=yes"
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20991 eval "$as_ac_Header=no"
20993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20998 cat >>confdefs.h <<_ACEOF
20999 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21002 ac_header_dirent=$ac_hdr; break
21006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21007 if test $ac_header_dirent = dirent.h; then
21008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
21009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
21010 if test "${ac_cv_search_opendir+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 ac_func_search_save_LIBS=$LIBS
21014 ac_cv_search_opendir=no
21015 cat >conftest.$ac_ext <<_ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21022 /* Override any gcc2 internal prototype to avoid an error. */
21026 /* We use char because int might match the return type of a gcc2
21027 builtin and then its argument prototype would still apply. */
21037 rm -f conftest.$ac_objext conftest$ac_exeext
21038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21039 (eval $ac_link) 2>conftest.er1
21041 grep -v '^ *+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } &&
21046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest$ac_exeext'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 ac_cv_search_opendir="none required"
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21064 rm -f conftest.err conftest.$ac_objext \
21065 conftest$ac_exeext conftest.$ac_ext
21066 if test "$ac_cv_search_opendir" = no; then
21067 for ac_lib in dir; do
21068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21069 cat >conftest.$ac_ext <<_ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21076 /* Override any gcc2 internal prototype to avoid an error. */
21080 /* We use char because int might match the return type of a gcc2
21081 builtin and then its argument prototype would still apply. */
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21093 (eval $ac_link) 2>conftest.er1
21095 grep -v '^ *+' conftest.er1 >conftest.err
21097 cat conftest.err >&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } &&
21100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest$ac_exeext'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112 ac_cv_search_opendir="-l$ac_lib"
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21119 rm -f conftest.err conftest.$ac_objext \
21120 conftest$ac_exeext conftest.$ac_ext
21123 LIBS=$ac_func_search_save_LIBS
21125 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21126 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21127 if test "$ac_cv_search_opendir" != no; then
21128 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21133 echo "$as_me:$LINENO: checking for library containing opendir" >&5
21134 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
21135 if test "${ac_cv_search_opendir+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 ac_func_search_save_LIBS=$LIBS
21139 ac_cv_search_opendir=no
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21147 /* Override any gcc2 internal prototype to avoid an error. */
21151 /* We use char because int might match the return type of a gcc2
21152 builtin and then its argument prototype would still apply. */
21162 rm -f conftest.$ac_objext conftest$ac_exeext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21164 (eval $ac_link) 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; } &&
21177 { ac_try='test -s conftest$ac_exeext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_cv_search_opendir="none required"
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21189 rm -f conftest.err conftest.$ac_objext \
21190 conftest$ac_exeext conftest.$ac_ext
21191 if test "$ac_cv_search_opendir" = no; then
21192 for ac_lib in x; do
21193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21201 /* Override any gcc2 internal prototype to avoid an error. */
21205 /* We use char because int might match the return type of a gcc2
21206 builtin and then its argument prototype would still apply. */
21216 rm -f conftest.$ac_objext conftest$ac_exeext
21217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21218 (eval $ac_link) 2>conftest.er1
21220 grep -v '^ *+' conftest.er1 >conftest.err
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } &&
21225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; } &&
21231 { ac_try='test -s conftest$ac_exeext'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21237 ac_cv_search_opendir="-l$ac_lib"
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21244 rm -f conftest.err conftest.$ac_objext \
21245 conftest$ac_exeext conftest.$ac_ext
21248 LIBS=$ac_func_search_save_LIBS
21250 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21251 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21252 if test "$ac_cv_search_opendir" != no; then
21253 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21261 if test "${ac_cv_header_stdc+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 cat >conftest.$ac_ext <<_ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 #include <stdlib.h>
21271 #include <stdarg.h>
21272 #include <string.h>
21283 rm -f conftest.$ac_objext
21284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21285 (eval $ac_compile) 2>conftest.er1
21287 grep -v '^ *+' conftest.er1 >conftest.err
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } &&
21292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; } &&
21298 { ac_try='test -s conftest.$ac_objext'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
21304 ac_cv_header_stdc=yes
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_cv_header_stdc=no
21311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21313 if test $ac_cv_header_stdc = yes; then
21314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21315 cat >conftest.$ac_ext <<_ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 #include <string.h>
21324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21325 $EGREP "memchr" >/dev/null 2>&1; then
21328 ac_cv_header_stdc=no
21334 if test $ac_cv_header_stdc = yes; then
21335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21336 cat >conftest.$ac_ext <<_ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 #include <stdlib.h>
21345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21346 $EGREP "free" >/dev/null 2>&1; then
21349 ac_cv_header_stdc=no
21355 if test $ac_cv_header_stdc = yes; then
21356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21357 if test "$cross_compiling" = yes; then
21360 cat >conftest.$ac_ext <<_ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21367 #if ((' ' & 0x0FF) == 0x020)
21368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21371 # define ISLOWER(c) \
21372 (('a' <= (c) && (c) <= 'i') \
21373 || ('j' <= (c) && (c) <= 'r') \
21374 || ('s' <= (c) && (c) <= 'z'))
21375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21383 for (i = 0; i < 256; i++)
21384 if (XOR (islower (i), ISLOWER (i))
21385 || toupper (i) != TOUPPER (i))
21390 rm -f conftest$ac_exeext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21392 (eval $ac_link) 2>&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21403 echo "$as_me: program exited with status $ac_status" >&5
21404 echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21407 ( exit $ac_status )
21408 ac_cv_header_stdc=no
21410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21414 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21415 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21416 if test $ac_cv_header_stdc = yes; then
21418 cat >>confdefs.h <<\_ACEOF
21419 #define STDC_HEADERS 1
21424 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21425 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21426 if test "${ac_cv_header_time+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21429 cat >conftest.$ac_ext <<_ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21435 #include <sys/types.h>
21436 #include <sys/time.h>
21442 if ((struct tm *) 0)
21448 rm -f conftest.$ac_objext
21449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21450 (eval $ac_compile) 2>conftest.er1
21452 grep -v '^ *+' conftest.er1 >conftest.err
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } &&
21457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; } &&
21463 { ac_try='test -s conftest.$ac_objext'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 ac_cv_header_time=yes
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 ac_cv_header_time=no
21476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21478 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21479 echo "${ECHO_T}$ac_cv_header_time" >&6
21480 if test $ac_cv_header_time = yes; then
21482 cat >>confdefs.h <<\_ACEOF
21483 #define TIME_WITH_SYS_TIME 1
21488 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21489 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21490 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 cat >conftest.$ac_ext <<_ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21499 #include <sys/types.h>
21500 #include <sys/wait.h>
21501 #ifndef WEXITSTATUS
21502 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21505 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21513 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21518 rm -f conftest.$ac_objext
21519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21520 (eval $ac_compile) 2>conftest.er1
21522 grep -v '^ *+' conftest.er1 >conftest.err
21524 cat conftest.err >&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } &&
21527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; } &&
21533 { ac_try='test -s conftest.$ac_objext'
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; }; then
21539 ac_cv_header_sys_wait_h=yes
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ac_cv_header_sys_wait_h=no
21546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21549 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21550 if test $ac_cv_header_sys_wait_h = yes; then
21552 cat >>confdefs.h <<\_ACEOF
21553 #define HAVE_SYS_WAIT_H 1
21620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21622 echo "$as_me:$LINENO: checking for $ac_header" >&5
21623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21630 # Is the header compilable?
21631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21633 cat >conftest.$ac_ext <<_ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 $ac_includes_default
21640 #include <$ac_header>
21642 rm -f conftest.$ac_objext
21643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21644 (eval $ac_compile) 2>conftest.er1
21646 grep -v '^ *+' conftest.er1 >conftest.err
21648 cat conftest.err >&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } &&
21651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest.$ac_objext'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21663 ac_header_compiler=yes
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 ac_header_compiler=no
21670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21672 echo "${ECHO_T}$ac_header_compiler" >&6
21674 # Is the header present?
21675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21677 cat >conftest.$ac_ext <<_ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h. */
21683 #include <$ac_header>
21685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21688 grep -v '^ *+' conftest.er1 >conftest.err
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } >/dev/null; then
21693 if test -s conftest.err; then
21694 ac_cpp_err=$ac_c_preproc_warn_flag
21695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21702 if test -z "$ac_cpp_err"; then
21703 ac_header_preproc=yes
21705 echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21708 ac_header_preproc=no
21710 rm -f conftest.err conftest.$ac_ext
21711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21712 echo "${ECHO_T}$ac_header_preproc" >&6
21714 # So? What about this header?
21715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21721 ac_header_preproc=yes
21724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21738 ## ------------------------------------------ ##
21739 ## Report this to the AC_PACKAGE_NAME lists. ##
21740 ## ------------------------------------------ ##
21743 sed "s/^/$as_me: WARNING: /" >&2
21746 echo "$as_me:$LINENO: checking for $ac_header" >&5
21747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 eval "$as_ac_Header=\$ac_header_preproc"
21753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21758 cat >>confdefs.h <<_ACEOF
21759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21768 if test "${ac_cv_header_regex_h+set}" = set; then
21769 echo "$as_me:$LINENO: checking for regex.h" >&5
21770 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21771 if test "${ac_cv_header_regex_h+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21775 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21777 # Is the header compilable?
21778 echo "$as_me:$LINENO: checking regex.h usability" >&5
21779 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21780 cat >conftest.$ac_ext <<_ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21786 $ac_includes_default
21789 rm -f conftest.$ac_objext
21790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21791 (eval $ac_compile) 2>conftest.er1
21793 grep -v '^ *+' conftest.er1 >conftest.err
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } &&
21798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; } &&
21804 { ac_try='test -s conftest.$ac_objext'
21805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806 (eval $ac_try) 2>&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; }; then
21810 ac_header_compiler=yes
21812 echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21815 ac_header_compiler=no
21817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21819 echo "${ECHO_T}$ac_header_compiler" >&6
21821 # Is the header present?
21822 echo "$as_me:$LINENO: checking regex.h presence" >&5
21823 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21824 cat >conftest.$ac_ext <<_ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21835 grep -v '^ *+' conftest.er1 >conftest.err
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } >/dev/null; then
21840 if test -s conftest.err; then
21841 ac_cpp_err=$ac_c_preproc_warn_flag
21842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21849 if test -z "$ac_cpp_err"; then
21850 ac_header_preproc=yes
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ac_header_preproc=no
21857 rm -f conftest.err conftest.$ac_ext
21858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21859 echo "${ECHO_T}$ac_header_preproc" >&6
21861 # So? What about this header?
21862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21864 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21865 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21867 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21868 ac_header_preproc=yes
21871 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21872 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21874 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21876 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21878 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21880 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21882 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21885 ## ------------------------------------------ ##
21886 ## Report this to the AC_PACKAGE_NAME lists. ##
21887 ## ------------------------------------------ ##
21890 sed "s/^/$as_me: WARNING: /" >&2
21893 echo "$as_me:$LINENO: checking for regex.h" >&5
21894 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21895 if test "${ac_cv_header_regex_h+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 ac_cv_header_regex_h=$ac_header_preproc
21900 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21901 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21904 if test $ac_cv_header_regex_h = yes; then
21906 cat >>confdefs.h <<\_ACEOF
21907 #define HAVE_REGEX_H
21913 if test "x$ac_cv_header_regex_h" = "xyes"; then
21916 cat >conftest.$ac_ext <<_ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h. */
21923 #ifdef REG_EXTENDED
21928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21929 $EGREP "yes" >/dev/null 2>&1; then
21931 cat >>confdefs.h <<\_ACEOF
21932 #define HAVE_REG_EXTENDED
21942 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21945 cat >>confdefs.h <<\_ACEOF
21951 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21954 cat >>confdefs.h <<\_ACEOF
21960 OPENSSL_INCLUDE="-DNO_OPENSSL"
21961 if test "x$OPENSSL_LIBS" = "x"; then
21962 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
21963 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21965 old_CPPFLAGS=$CPPFLAGS
21966 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21967 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21969 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21982 echo "$as_me:$LINENO: checking for $ac_header" >&5
21983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21990 # Is the header compilable?
21991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21993 cat >conftest.$ac_ext <<_ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 $ac_includes_default
22000 #include <$ac_header>
22002 rm -f conftest.$ac_objext
22003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22004 (eval $ac_compile) 2>conftest.er1
22006 grep -v '^ *+' conftest.er1 >conftest.err
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } &&
22011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; } &&
22017 { ac_try='test -s conftest.$ac_objext'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_header_compiler=yes
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ac_header_compiler=no
22030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22032 echo "${ECHO_T}$ac_header_compiler" >&6
22034 # Is the header present?
22035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22037 cat >conftest.$ac_ext <<_ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 #include <$ac_header>
22045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22048 grep -v '^ *+' conftest.er1 >conftest.err
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } >/dev/null; then
22053 if test -s conftest.err; then
22054 ac_cpp_err=$ac_c_preproc_warn_flag
22055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22062 if test -z "$ac_cpp_err"; then
22063 ac_header_preproc=yes
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ac_header_preproc=no
22070 rm -f conftest.err conftest.$ac_ext
22071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22072 echo "${ECHO_T}$ac_header_preproc" >&6
22074 # So? What about this header?
22075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22081 ac_header_preproc=yes
22084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22098 ## ------------------------------------------ ##
22099 ## Report this to the AC_PACKAGE_NAME lists. ##
22100 ## ------------------------------------------ ##
22103 sed "s/^/$as_me: WARNING: /" >&2
22106 echo "$as_me:$LINENO: checking for $ac_header" >&5
22107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 eval "$as_ac_Header=\$ac_header_preproc"
22113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22118 cat >>confdefs.h <<_ACEOF
22119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22129 if test "x$OPENSSL_LIBS" != "x"; then
22130 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22131 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
22132 cat >conftest.$ac_ext <<_ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 #include <openssl/crypto.h>
22139 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22145 $EGREP "yes" >/dev/null 2>&1; then
22150 if test "x$goodssl" != "xyes"; then
22151 echo "$as_me:$LINENO: result: no" >&5
22152 echo "${ECHO_T}no" >&6
22155 echo "$as_me:$LINENO: result: yes" >&5
22156 echo "${ECHO_T}yes" >&6
22157 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22158 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22160 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22164 CPPFLAGS=$old_CPPFLAGS
22168 export OPENSSL_LIBS
22170 if test "x$PCAP_LIBS" = x; then
22171 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22172 echo "$as_me: skipping test for pcap.h." >&6;}
22174 if test "${ac_cv_header_pcap_h+set}" = set; then
22175 echo "$as_me:$LINENO: checking for pcap.h" >&5
22176 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
22177 if test "${ac_cv_header_pcap_h+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22181 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
22183 # Is the header compilable?
22184 echo "$as_me:$LINENO: checking pcap.h usability" >&5
22185 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6
22186 cat >conftest.$ac_ext <<_ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h. */
22192 $ac_includes_default
22195 rm -f conftest.$ac_objext
22196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22197 (eval $ac_compile) 2>conftest.er1
22199 grep -v '^ *+' conftest.er1 >conftest.err
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } &&
22204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22206 (eval $ac_try) 2>&5
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); }; } &&
22210 { ac_try='test -s conftest.$ac_objext'
22211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212 (eval $ac_try) 2>&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; }; then
22216 ac_header_compiler=yes
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22221 ac_header_compiler=no
22223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22225 echo "${ECHO_T}$ac_header_compiler" >&6
22227 # Is the header present?
22228 echo "$as_me:$LINENO: checking pcap.h presence" >&5
22229 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6
22230 cat >conftest.$ac_ext <<_ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } >/dev/null; then
22246 if test -s conftest.err; then
22247 ac_cpp_err=$ac_c_preproc_warn_flag
22248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22255 if test -z "$ac_cpp_err"; then
22256 ac_header_preproc=yes
22258 echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22261 ac_header_preproc=no
22263 rm -f conftest.err conftest.$ac_ext
22264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22265 echo "${ECHO_T}$ac_header_preproc" >&6
22267 # So? What about this header?
22268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22270 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22271 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22272 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22273 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22274 ac_header_preproc=yes
22277 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22278 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22279 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
22280 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
22281 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22282 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22283 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
22284 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
22285 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22286 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22287 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22288 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22291 ## ------------------------------------------ ##
22292 ## Report this to the AC_PACKAGE_NAME lists. ##
22293 ## ------------------------------------------ ##
22296 sed "s/^/$as_me: WARNING: /" >&2
22299 echo "$as_me:$LINENO: checking for pcap.h" >&5
22300 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
22301 if test "${ac_cv_header_pcap_h+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 ac_cv_header_pcap_h=$ac_header_preproc
22306 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22307 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
22310 if test $ac_cv_header_pcap_h = yes; then
22312 cat >>confdefs.h <<\_ACEOF
22313 #define HAVE_PCAP_H 1
22318 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22319 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22328 echo "$as_me:$LINENO: checking for off_t" >&5
22329 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22330 if test "${ac_cv_type_off_t+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 cat >conftest.$ac_ext <<_ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22339 $ac_includes_default
22345 if (sizeof (off_t))
22351 rm -f conftest.$ac_objext
22352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22353 (eval $ac_compile) 2>conftest.er1
22355 grep -v '^ *+' conftest.er1 >conftest.err
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } &&
22360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; } &&
22366 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22372 ac_cv_type_off_t=yes
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22377 ac_cv_type_off_t=no
22379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22381 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22382 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22383 if test $ac_cv_type_off_t = yes; then
22387 cat >>confdefs.h <<_ACEOF
22393 echo "$as_me:$LINENO: checking for pid_t" >&5
22394 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22395 if test "${ac_cv_type_pid_t+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 cat >conftest.$ac_ext <<_ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22404 $ac_includes_default
22410 if (sizeof (pid_t))
22416 rm -f conftest.$ac_objext
22417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22418 (eval $ac_compile) 2>conftest.er1
22420 grep -v '^ *+' conftest.er1 >conftest.err
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } &&
22425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427 (eval $ac_try) 2>&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; } &&
22431 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22437 ac_cv_type_pid_t=yes
22439 echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22442 ac_cv_type_pid_t=no
22444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22446 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22447 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22448 if test $ac_cv_type_pid_t = yes; then
22452 cat >>confdefs.h <<_ACEOF
22458 echo "$as_me:$LINENO: checking for size_t" >&5
22459 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22460 if test "${ac_cv_type_size_t+set}" = set; then
22461 echo $ECHO_N "(cached) $ECHO_C" >&6
22463 cat >conftest.$ac_ext <<_ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 $ac_includes_default
22475 if (sizeof (size_t))
22481 rm -f conftest.$ac_objext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22483 (eval $ac_compile) 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } &&
22490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22492 (eval $ac_try) 2>&5
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); }; } &&
22496 { ac_try='test -s conftest.$ac_objext'
22497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498 (eval $ac_try) 2>&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }; }; then
22502 ac_cv_type_size_t=yes
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_cv_type_size_t=no
22509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22511 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22512 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22513 if test $ac_cv_type_size_t = yes; then
22517 cat >>confdefs.h <<_ACEOF
22518 #define size_t unsigned
22523 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22524 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22525 if test "${ac_cv_type_uid_t+set}" = set; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 cat >conftest.$ac_ext <<_ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h. */
22534 #include <sys/types.h>
22537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22538 $EGREP "uid_t" >/dev/null 2>&1; then
22539 ac_cv_type_uid_t=yes
22541 ac_cv_type_uid_t=no
22546 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22547 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22548 if test $ac_cv_type_uid_t = no; then
22550 cat >>confdefs.h <<\_ACEOF
22555 cat >>confdefs.h <<\_ACEOF
22563 echo "$as_me:$LINENO: checking for socklen_t" >&5
22564 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22565 if test "${ac_cv_type_socklen_t+set}" = set; then
22566 echo $ECHO_N "(cached) $ECHO_C" >&6
22568 ac_cv_type_socklen_t=no
22569 cat >conftest.$ac_ext <<_ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575 #ifdef HAVE_SYS_TYPES_H
22576 #include <sys/types.h>
22578 #ifdef HAVE_SYS_SOCKET_H
22579 #include <sys/socket.h>
22590 rm -f conftest.$ac_objext
22591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22592 (eval $ac_compile) 2>conftest.er1
22594 grep -v '^ *+' conftest.er1 >conftest.err
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } &&
22599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; } &&
22605 { ac_try='test -s conftest.$ac_objext'
22606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607 (eval $ac_try) 2>&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; }; then
22611 ac_cv_type_socklen_t=yes
22613 echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22621 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22622 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22624 if test "$ac_cv_type_socklen_t" != "yes"; then
22626 cat >>confdefs.h <<\_ACEOF
22627 #define socklen_t int
22634 echo "$as_me:$LINENO: checking for uint8_t" >&5
22635 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22636 if test "${ac_cv_type_uint8_t+set}" = set; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22639 ac_cv_type_uint8_t=no
22640 cat >conftest.$ac_ext <<_ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22646 #ifdef HAVE_INTTYPES_H
22647 #include <inttypes.h>
22649 #ifdef HAVE_STDINT_H
22650 #include <stdint.h>
22661 rm -f conftest.$ac_objext
22662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22663 (eval $ac_compile) 2>conftest.er1
22665 grep -v '^ *+' conftest.er1 >conftest.err
22667 cat conftest.err >&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } &&
22670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672 (eval $ac_try) 2>&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; } &&
22676 { ac_try='test -s conftest.$ac_objext'
22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; }; then
22682 ac_cv_type_uint8_t=yes
22684 echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22692 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22693 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22695 if test "$ac_cv_type_uint8_t" != "yes"; then
22697 cat >>confdefs.h <<\_ACEOF
22698 #define uint8_t unsigned char
22705 echo "$as_me:$LINENO: checking for uint16_t" >&5
22706 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22707 if test "${ac_cv_type_uint16_t+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22710 ac_cv_type_uint16_t=no
22711 cat >conftest.$ac_ext <<_ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 #ifdef HAVE_INTTYPES_H
22718 #include <inttypes.h>
22720 #ifdef HAVE_STDINT_H
22721 #include <stdint.h>
22732 rm -f conftest.$ac_objext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22734 (eval $ac_compile) 2>conftest.er1
22736 grep -v '^ *+' conftest.er1 >conftest.err
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } &&
22741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743 (eval $ac_try) 2>&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); }; } &&
22747 { ac_try='test -s conftest.$ac_objext'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; }; then
22753 ac_cv_type_uint16_t=yes
22755 echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22763 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22764 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22766 if test "$ac_cv_type_uint16_t" != "yes"; then
22768 cat >>confdefs.h <<\_ACEOF
22769 #define uint16_t unsigned short
22776 echo "$as_me:$LINENO: checking for uint32_t" >&5
22777 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22778 if test "${ac_cv_type_uint32_t+set}" = set; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
22781 ac_cv_type_uint32_t=no
22782 cat >conftest.$ac_ext <<_ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22788 #ifdef HAVE_INTTYPES_H
22789 #include <inttypes.h>
22791 #ifdef HAVE_STDINT_H
22792 #include <stdint.h>
22803 rm -f conftest.$ac_objext
22804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22805 (eval $ac_compile) 2>conftest.er1
22807 grep -v '^ *+' conftest.er1 >conftest.err
22809 cat conftest.err >&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); } &&
22812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814 (eval $ac_try) 2>&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); }; } &&
22818 { ac_try='test -s conftest.$ac_objext'
22819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820 (eval $ac_try) 2>&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); }; }; then
22824 ac_cv_type_uint32_t=yes
22826 echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22834 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22835 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22837 if test "$ac_cv_type_uint32_t" != "yes"; then
22839 cat >>confdefs.h <<\_ACEOF
22840 #define uint32_t unsigned int
22846 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22847 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
22848 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22849 echo $ECHO_N "(cached) $ECHO_C" >&6
22851 cat >conftest.$ac_ext <<_ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22858 #ifdef HAVE_NETINET_IN_H
22859 #include <netinet/in.h>
22866 if ((struct in6_addr *) 0)
22868 if (sizeof (struct in6_addr))
22874 rm -f conftest.$ac_objext
22875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22876 (eval $ac_compile) 2>conftest.er1
22878 grep -v '^ *+' conftest.er1 >conftest.err
22880 cat conftest.err >&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } &&
22883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885 (eval $ac_try) 2>&5
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }; } &&
22889 { ac_try='test -s conftest.$ac_objext'
22890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891 (eval $ac_try) 2>&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 ac_cv_type_struct_in6_addr=yes
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 ac_cv_type_struct_in6_addr=no
22902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22904 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
22905 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
22906 if test $ac_cv_type_struct_in6_addr = yes; then
22908 cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_STRUCT_IN6_ADDR 1
22915 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22916 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
22917 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22920 cat >conftest.$ac_ext <<_ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22927 #ifdef HAVE_NETINET_IN_H
22928 #include <netinet/in.h>
22930 #ifdef HAVE_SYS_SOCKET_H
22931 #include <sys/socket.h>
22938 if ((struct sockaddr_storage *) 0)
22940 if (sizeof (struct sockaddr_storage))
22946 rm -f conftest.$ac_objext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22948 (eval $ac_compile) 2>conftest.er1
22950 grep -v '^ *+' conftest.er1 >conftest.err
22952 cat conftest.err >&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } &&
22955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; } &&
22961 { ac_try='test -s conftest.$ac_objext'
22962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963 (eval $ac_try) 2>&5
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); }; }; then
22967 ac_cv_type_struct_sockaddr_storage=yes
22969 echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_cv_type_struct_sockaddr_storage=no
22974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22976 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22977 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
22978 if test $ac_cv_type_struct_sockaddr_storage = yes; then
22980 cat >>confdefs.h <<\_ACEOF
22981 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22987 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22988 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
22989 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
22990 echo $ECHO_N "(cached) $ECHO_C" >&6
22992 cat >conftest.$ac_ext <<_ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h. */
22999 #ifdef HAVE_NETINET_IN_H
23000 #include <netinet/in.h>
23007 if ((struct sockaddr_in6 *) 0)
23009 if (sizeof (struct sockaddr_in6))
23015 rm -f conftest.$ac_objext
23016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23017 (eval $ac_compile) 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } &&
23024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026 (eval $ac_try) 2>&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); }; } &&
23030 { ac_try='test -s conftest.$ac_objext'
23031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032 (eval $ac_try) 2>&5
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); }; }; then
23036 ac_cv_type_struct_sockaddr_in6=yes
23038 echo "$as_me: failed program was:" >&5
23039 sed 's/^/| /' conftest.$ac_ext >&5
23041 ac_cv_type_struct_sockaddr_in6=no
23043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23045 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23046 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
23047 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23049 cat >>confdefs.h <<\_ACEOF
23050 #define HAVE_STRUCT_SOCKADDR_IN6 1
23056 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23057 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
23058 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23061 cat >conftest.$ac_ext <<_ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23068 #ifdef HAVE_SYS_TYPES_H
23069 #include <sys/types.h>
23071 #ifdef HAVE_SYS_SOCKET_H
23072 #include <sys/socket.h>
23074 #ifdef HAVE_NETDB_H
23082 if ((struct addrinfo *) 0)
23084 if (sizeof (struct addrinfo))
23090 rm -f conftest.$ac_objext
23091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23092 (eval $ac_compile) 2>conftest.er1
23094 grep -v '^ *+' conftest.er1 >conftest.err
23096 cat conftest.err >&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } &&
23099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101 (eval $ac_try) 2>&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); }; } &&
23105 { ac_try='test -s conftest.$ac_objext'
23106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; }; then
23111 ac_cv_type_struct_addrinfo=yes
23113 echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23116 ac_cv_type_struct_addrinfo=no
23118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23120 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23121 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
23122 if test $ac_cv_type_struct_addrinfo = yes; then
23124 cat >>confdefs.h <<\_ACEOF
23125 #define HAVE_STRUCT_ADDRINFO 1
23190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23191 echo "$as_me:$LINENO: checking for $ac_func" >&5
23192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23193 if eval "test \"\${$as_ac_var+set}\" = set"; then
23194 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 cat >conftest.$ac_ext <<_ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h. */
23202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23204 #define $ac_func innocuous_$ac_func
23206 /* System header to define __stub macros and hopefully few prototypes,
23207 which can conflict with char $ac_func (); below.
23208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23209 <limits.h> exists even on freestanding compilers. */
23212 # include <limits.h>
23214 # include <assert.h>
23219 /* Override any gcc2 internal prototype to avoid an error. */
23224 /* We use char because int might match the return type of a gcc2
23225 builtin and then its argument prototype would still apply. */
23227 /* The GNU C library defines this for functions which it implements
23228 to always fail with ENOSYS. Some functions are actually named
23229 something starting with __ and the normal name is an alias. */
23230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23233 char (*f) () = $ac_func;
23242 return f != $ac_func;
23247 rm -f conftest.$ac_objext conftest$ac_exeext
23248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23249 (eval $ac_link) 2>conftest.er1
23251 grep -v '^ *+' conftest.er1 >conftest.err
23253 cat conftest.err >&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } &&
23256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258 (eval $ac_try) 2>&5
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); }; } &&
23262 { ac_try='test -s conftest$ac_exeext'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23268 eval "$as_ac_var=yes"
23270 echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23273 eval "$as_ac_var=no"
23275 rm -f conftest.err conftest.$ac_objext \
23276 conftest$ac_exeext conftest.$ac_ext
23278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23280 if test `eval echo '${'$as_ac_var'}'` = yes; then
23281 cat >>confdefs.h <<_ACEOF
23282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23299 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23300 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
23301 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 cat >conftest.$ac_ext <<_ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23312 #include <string.h>
23313 #ifdef HAVE_UNISTD_H
23314 #include <unistd.h>
23316 #ifdef HAVE_CRYPT_H
23319 #ifdef HAVE_ERRNO_H
23322 #ifdef HAVE_RESOURCE_H
23323 #include <resource.h>
23325 #ifdef HAVE_GETOPT_H
23326 #include <getopt.h>
23328 #ifdef HAVE_MALLOC_H
23329 #include <malloc.h>
23334 #ifdef HAVE_UTMPX_H
23337 #ifdef HAVE_SYS_SELECT_H
23338 #include <sys/select.h>
23340 #ifdef HAVE_DLFCN_H
23343 #ifdef HAVE_REGEX_H
23346 #ifdef HAVE_SYSLOG_H
23347 #include <syslog.h>
23349 #ifdef HAVE_INTTYPES_H
23350 #include <inttypes.h>
23352 #ifdef HAVE_STDINT_H
23353 #include <stdint.h>
23355 #ifdef HAVE_ARPA_INET_H
23356 #include <arpa/inet.h>
23362 char *(*pfn) = (char *(*)) $ac_func
23367 rm -f conftest.$ac_objext
23368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23369 (eval $ac_compile) 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } &&
23376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; } &&
23382 { ac_try='test -s conftest.$ac_objext'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; }; then
23388 eval "radius_cv_decl_needed_$ac_func=no"
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23393 eval "radius_cv_decl_needed_$ac_func=yes"
23395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23398 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23399 echo "$as_me:$LINENO: result: yes" >&5
23400 echo "${ECHO_T}yes" >&6
23401 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23402 cat >>confdefs.h <<_ACEOF
23403 #define $radius_tr_decl 1
23407 echo "$as_me:$LINENO: result: no" >&5
23408 echo "${ECHO_T}no" >&6
23414 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23415 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23416 if test "${ac_cv_type_signal+set}" = set; then
23417 echo $ECHO_N "(cached) $ECHO_C" >&6
23419 cat >conftest.$ac_ext <<_ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h. */
23425 #include <sys/types.h>
23426 #include <signal.h>
23431 extern "C" void (*signal (int, void (*)(int)))(int);
23433 void (*signal ()) ();
23444 rm -f conftest.$ac_objext
23445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23446 (eval $ac_compile) 2>conftest.er1
23448 grep -v '^ *+' conftest.er1 >conftest.err
23450 cat conftest.err >&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } &&
23453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23455 (eval $ac_try) 2>&5
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); }; } &&
23459 { ac_try='test -s conftest.$ac_objext'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; }; then
23465 ac_cv_type_signal=void
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ac_cv_type_signal=int
23472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23474 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23475 echo "${ECHO_T}$ac_cv_type_signal" >&6
23477 cat >>confdefs.h <<_ACEOF
23478 #define RETSIGTYPE $ac_cv_type_signal
23483 if test "x$ac_cv_header_utmpx_h" = "xyes"
23486 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23487 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23490 cat >conftest.$ac_ext <<_ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23499 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23505 int foo = offsetof(struct utmpx, ut_xtime)
23510 rm -f conftest.$ac_objext
23511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23512 (eval $ac_compile) 2>conftest.er1
23514 grep -v '^ *+' conftest.er1 >conftest.err
23516 cat conftest.err >&5
23517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } &&
23519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23521 (eval $ac_try) 2>&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); }; } &&
23525 { ac_try='test -s conftest.$ac_objext'
23526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527 (eval $ac_try) 2>&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); }; }; then
23533 echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23540 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23541 if test "x$has_element" != "x"; then
23542 echo "$as_me:$LINENO: result: yes" >&5
23543 echo "${ECHO_T}yes" >&6
23544 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23546 echo "$as_me:$LINENO: result: no" >&5
23547 echo "${ECHO_T}no" >&6
23548 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23551 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23554 cat >>confdefs.h <<\_ACEOF
23555 #define ut_xtime ut_tv.tv_sec
23562 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23563 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23566 cat >conftest.$ac_ext <<_ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23573 #include <netinet/in.h>
23575 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23581 int foo = offsetof(struct in_pktinfo, ipi_addr)
23586 rm -f conftest.$ac_objext
23587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23588 (eval $ac_compile) 2>conftest.er1
23590 grep -v '^ *+' conftest.er1 >conftest.err
23592 cat conftest.err >&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } &&
23595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23597 (eval $ac_try) 2>&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); }; } &&
23601 { ac_try='test -s conftest.$ac_objext'
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; }; then
23609 echo "$as_me: failed program was:" >&5
23610 sed 's/^/| /' conftest.$ac_ext >&5
23614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23616 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23617 if test "x$has_element" != "x"; then
23618 echo "$as_me:$LINENO: result: yes" >&5
23619 echo "${ECHO_T}yes" >&6
23620 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23622 echo "$as_me:$LINENO: result: no" >&5
23623 echo "${ECHO_T}no" >&6
23624 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23627 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23630 cat >>confdefs.h <<\_ACEOF
23631 #define HAVE_IP_PKTINFO
23637 echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23638 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6
23641 cat >conftest.$ac_ext <<_ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23648 #include <netinet/in.h>
23650 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23656 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23661 rm -f conftest.$ac_objext
23662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23663 (eval $ac_compile) 2>conftest.er1
23665 grep -v '^ *+' conftest.er1 >conftest.err
23667 cat conftest.err >&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } &&
23670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; } &&
23676 { ac_try='test -s conftest.$ac_objext'
23677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; }; then
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23691 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23692 if test "x$has_element" != "x"; then
23693 echo "$as_me:$LINENO: result: yes" >&5
23694 echo "${ECHO_T}yes" >&6
23695 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23697 echo "$as_me:$LINENO: result: no" >&5
23698 echo "${ECHO_T}no" >&6
23699 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23702 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23705 cat >>confdefs.h <<\_ACEOF
23706 #define HAVE_IN6_PKTINFO
23712 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23713 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23714 if test "${ac_cv_c_const+set}" = set; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23717 cat >conftest.$ac_ext <<_ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23727 /* FIXME: Include the comments suggested by Paul. */
23728 #ifndef __cplusplus
23729 /* Ultrix mips cc rejects this. */
23730 typedef int charset[2];
23732 /* SunOS 4.1.1 cc rejects this. */
23733 char const *const *ccp;
23735 /* NEC SVR4.0.2 mips cc rejects this. */
23736 struct point {int x, y;};
23737 static struct point const zero = {0,0};
23738 /* AIX XL C 1.02.0.0 rejects this.
23739 It does not let you subtract one const X* pointer from another in
23740 an arm of an if-expression whose if-part is not a constant
23742 const char *g = "string";
23743 ccp = &g + (g ? g-g : 0);
23744 /* HPUX 7.0 cc rejects these. */
23747 ccp = (char const *const *) p;
23748 { /* SCO 3.2v4 cc rejects this. */
23750 char const *s = 0 ? (char *) 0 : (char const *) 0;
23754 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23755 int x[] = {25, 17};
23756 const int *foo = &x[0];
23759 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23760 typedef const int *iptr;
23764 { /* AIX XL C 1.02.0.0 rejects this saying
23765 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23766 struct s { int j; const int *ap[3]; };
23767 struct s *b; b->j = 5;
23769 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23770 const int foo = 10;
23778 rm -f conftest.$ac_objext
23779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23780 (eval $ac_compile) 2>conftest.er1
23782 grep -v '^ *+' conftest.er1 >conftest.err
23784 cat conftest.err >&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } &&
23787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789 (eval $ac_try) 2>&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; } &&
23793 { ac_try='test -s conftest.$ac_objext'
23794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795 (eval $ac_try) 2>&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); }; }; then
23801 echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23808 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23809 echo "${ECHO_T}$ac_cv_c_const" >&6
23810 if test $ac_cv_c_const = no; then
23812 cat >>confdefs.h <<\_ACEOF
23819 echo "$as_me:$LINENO: checking type of OS" >&5
23820 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
23822 echo "$as_me:$LINENO: result: $OS" >&5
23823 echo "${ECHO_T}$OS" >&6
23824 if test "$OS" = "OS/2"; then
23831 if test "x$GCC" = "xyes"; then
23832 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23835 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23836 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
23837 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23838 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23839 CFLAGS="$CFLAGS $devflags"
23841 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
23842 echo "${ECHO_T}yes. Using $devflags" >&6
23845 CFLAGS="$CFLAGS -DNDEBUG"
23847 echo "$as_me:$LINENO: result: no." >&5
23848 echo "${ECHO_T}no." >&6
23852 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23853 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
23854 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23857 ac_check_lib_save_LIBS=$LIBS
23858 LIBS="-lcrypt $LIBS"
23859 cat >conftest.$ac_ext <<_ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23866 /* Override any gcc2 internal prototype to avoid an error. */
23870 /* We use char because int might match the return type of a gcc2
23871 builtin and then its argument prototype would still apply. */
23881 rm -f conftest.$ac_objext conftest$ac_exeext
23882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23883 (eval $ac_link) 2>conftest.er1
23885 grep -v '^ *+' conftest.er1 >conftest.err
23887 cat conftest.err >&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } &&
23890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; } &&
23896 { ac_try='test -s conftest$ac_exeext'
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; }; then
23902 ac_cv_lib_crypt_crypt=yes
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 ac_cv_lib_crypt_crypt=no
23909 rm -f conftest.err conftest.$ac_objext \
23910 conftest$ac_exeext conftest.$ac_ext
23911 LIBS=$ac_check_lib_save_LIBS
23913 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23914 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23915 if test $ac_cv_lib_crypt_crypt = yes; then
23920 if test "$CRYPTLIB" != ""; then
23922 cat >>confdefs.h <<\_ACEOF
23927 echo "$as_me:$LINENO: checking for crypt" >&5
23928 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23929 if test "${ac_cv_func_crypt+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 cat >conftest.$ac_ext <<_ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23938 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23940 #define crypt innocuous_crypt
23942 /* System header to define __stub macros and hopefully few prototypes,
23943 which can conflict with char crypt (); below.
23944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23945 <limits.h> exists even on freestanding compilers. */
23948 # include <limits.h>
23950 # include <assert.h>
23955 /* Override any gcc2 internal prototype to avoid an error. */
23960 /* We use char because int might match the return type of a gcc2
23961 builtin and then its argument prototype would still apply. */
23963 /* The GNU C library defines this for functions which it implements
23964 to always fail with ENOSYS. Some functions are actually named
23965 something starting with __ and the normal name is an alias. */
23966 #if defined (__stub_crypt) || defined (__stub___crypt)
23969 char (*f) () = crypt;
23983 rm -f conftest.$ac_objext conftest$ac_exeext
23984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23985 (eval $ac_link) 2>conftest.er1
23987 grep -v '^ *+' conftest.er1 >conftest.err
23989 cat conftest.err >&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } &&
23992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994 (eval $ac_try) 2>&5
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); }; } &&
23998 { ac_try='test -s conftest$ac_exeext'
23999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000 (eval $ac_try) 2>&5
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); }; }; then
24004 ac_cv_func_crypt=yes
24006 echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24009 ac_cv_func_crypt=no
24011 rm -f conftest.err conftest.$ac_objext \
24012 conftest$ac_exeext conftest.$ac_ext
24014 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24015 echo "${ECHO_T}$ac_cv_func_crypt" >&6
24016 if test $ac_cv_func_crypt = yes; then
24018 cat >>confdefs.h <<\_ACEOF
24026 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24027 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
24028 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24029 echo $ECHO_N "(cached) $ECHO_C" >&6
24031 ac_check_lib_save_LIBS=$LIBS
24032 LIBS="-lcipher $LIBS"
24033 cat >conftest.$ac_ext <<_ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h. */
24040 /* Override any gcc2 internal prototype to avoid an error. */
24044 /* We use char because int might match the return type of a gcc2
24045 builtin and then its argument prototype would still apply. */
24055 rm -f conftest.$ac_objext conftest$ac_exeext
24056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24057 (eval $ac_link) 2>conftest.er1
24059 grep -v '^ *+' conftest.er1 >conftest.err
24061 cat conftest.err >&5
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); } &&
24064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066 (eval $ac_try) 2>&5
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); }; } &&
24070 { ac_try='test -s conftest$ac_exeext'
24071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24072 (eval $ac_try) 2>&5
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); }; }; then
24076 ac_cv_lib_cipher_setkey=yes
24078 echo "$as_me: failed program was:" >&5
24079 sed 's/^/| /' conftest.$ac_ext >&5
24081 ac_cv_lib_cipher_setkey=no
24083 rm -f conftest.err conftest.$ac_objext \
24084 conftest$ac_exeext conftest.$ac_ext
24085 LIBS=$ac_check_lib_save_LIBS
24087 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24088 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
24089 if test $ac_cv_lib_cipher_setkey = yes; then
24090 CRYPTLIB="${CRYPTLIB} -lcipher"
24096 if test "x$WITH_SNMP" = "xyes"; then
24101 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24102 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
24104 cat >conftest.$ac_ext <<_ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h. */
24111 #ifdef HAVE_SYS_TYPES_H
24112 #include <sys/types.h>
24114 #ifdef HAVE_STDINT_H
24115 #include <stdint.h>
24117 #ifdef HAVE_STDIO_H
24120 #ifdef HAVE_NETDB_H
24123 #ifdef HAVE_UNISTD_H
24124 #include <unistd.h>
24126 #include <ucd-snmp/ucd-snmp-config.h>
24127 #include <ucd-snmp/asn1.h>
24128 #include <ucd-snmp/snmp.h>
24129 #include <ucd-snmp/snmp_impl.h>
24138 rm -f conftest.$ac_objext
24139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24140 (eval $ac_compile) 2>conftest.er1
24142 grep -v '^ *+' conftest.er1 >conftest.err
24144 cat conftest.err >&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } &&
24147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149 (eval $ac_try) 2>&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; } &&
24153 { ac_try='test -s conftest.$ac_objext'
24154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155 (eval $ac_try) 2>&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); }; }; then
24159 SNMP_INCLUDE="";ucdsnmp=yes
24161 echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24168 if test "x$ucdsnmp" = "x"; then
24169 old_CFLAGS="$CFLAGS"
24170 for try in /usr/include /usr/local/include $snmp_include_dir; do
24171 CFLAGS="$old_CFLAGS -I$try"
24172 cat >conftest.$ac_ext <<_ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h. */
24179 #ifdef HAVE_SYS_TYPES_H
24180 #include <sys/types.h>
24182 #ifdef HAVE_STDINT_H
24183 #include <stdint.h>
24185 #ifdef HAVE_STDIO_H
24188 #ifdef HAVE_NETDB_H
24191 #ifdef HAVE_UNISTD_H
24192 #include <unistd.h>
24194 #include <ucd-snmp/ucd-snmp-config.h>
24195 #include <ucd-snmp/asn1.h>
24196 #include <ucd-snmp/snmp.h>
24197 #include <ucd-snmp/snmp_impl.h>
24206 rm -f conftest.$ac_objext
24207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24208 (eval $ac_compile) 2>conftest.er1
24210 grep -v '^ *+' conftest.er1 >conftest.err
24212 cat conftest.err >&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); } &&
24215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217 (eval $ac_try) 2>&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; } &&
24221 { ac_try='test -s conftest.$ac_objext'
24222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223 (eval $ac_try) 2>&5
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); }; }; then
24227 SNMP_INCLUDE="-I$try";ucdsnmp=yes
24229 echo "$as_me: failed program was:" >&5
24230 sed 's/^/| /' conftest.$ac_ext >&5
24234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24235 if test "x$ucdsnmp" != "x"; then
24239 CFLAGS="$old_CFLAGS"
24242 if test "x$ucdsnmp" = "x"; then
24243 old_CFLAGS="$CFLAGS"
24244 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24245 CFLAGS="$old_CFLAGS -I$try"
24246 cat >conftest.$ac_ext <<_ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h. */
24253 #ifdef HAVE_SYS_TYPES_H
24254 #include <sys/types.h>
24256 #ifdef HAVE_STDINT_H
24257 #include <stdint.h>
24259 #ifdef HAVE_STDIO_H
24262 #ifdef HAVE_NETDB_H
24265 #ifdef HAVE_UNISTD_H
24266 #include <unistd.h>
24270 #include <snmp_impl.h>
24279 rm -f conftest.$ac_objext
24280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24281 (eval $ac_compile) 2>conftest.er1
24283 grep -v '^ *+' conftest.er1 >conftest.err
24285 cat conftest.err >&5
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } &&
24288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24290 (eval $ac_try) 2>&5
24292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); }; } &&
24294 { ac_try='test -s conftest.$ac_objext'
24295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296 (eval $ac_try) 2>&5
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); }; }; then
24300 SNMP_INCLUDE="";ucdsnmp=no
24302 echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24308 if test "x$ucdsnmp" != "x"; then
24312 CFLAGS="$old_CFLAGS"
24315 if test "x$ucdsnmp" = "x"; then
24316 old_CFLAGS="$CFLAGS"
24317 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24318 CFLAGS="$old_CFLAGS -I$try"
24319 cat >conftest.$ac_ext <<_ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h. */
24326 #ifdef HAVE_SYS_TYPES_H
24327 #include <sys/types.h>
24329 #ifdef HAVE_STDINT_H
24330 #include <stdint.h>
24332 #ifdef HAVE_STDIO_H
24335 #ifdef HAVE_NETDB_H
24338 #ifdef HAVE_UNISTD_H
24339 #include <unistd.h>
24343 #include <snmp_impl.h>
24352 rm -f conftest.$ac_objext
24353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24354 (eval $ac_compile) 2>conftest.er1
24356 grep -v '^ *+' conftest.er1 >conftest.err
24358 cat conftest.err >&5
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); } &&
24361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24363 (eval $ac_try) 2>&5
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); }; } &&
24367 { ac_try='test -s conftest.$ac_objext'
24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369 (eval $ac_try) 2>&5
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; }; then
24373 SNMP_INCLUDE="-I$try";ucdsnmp=no
24375 echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24381 if test "x$ucdsnmp" != "x"; then
24385 CFLAGS="$old_CFLAGS"
24388 if test "x$ucdsnmp" = "x"; then
24389 echo "$as_me:$LINENO: result: no" >&5
24390 echo "${ECHO_T}no" >&6
24392 if test "x$ucdsnmp" = "xyes"; then
24393 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24394 echo "${ECHO_T}(ucd-snmp)yes" >&6
24396 cat >>confdefs.h <<\_ACEOF
24397 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24401 echo "$as_me:$LINENO: result: yes" >&5
24402 echo "${ECHO_T}yes" >&6
24404 cat >>confdefs.h <<\_ACEOF
24405 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24409 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24410 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
24413 LIBS="$old_LIBS -lsnmp"
24414 cat >conftest.$ac_ext <<_ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h. */
24420 extern char snmp_build_var_op();
24424 snmp_build_var_op()
24429 rm -f conftest.$ac_objext conftest$ac_exeext
24430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24431 (eval $ac_link) 2>conftest.er1
24433 grep -v '^ *+' conftest.er1 >conftest.err
24435 cat conftest.err >&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } &&
24438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24440 (eval $ac_try) 2>&5
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; } &&
24444 { ac_try='test -s conftest$ac_exeext'
24445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446 (eval $ac_try) 2>&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; }; then
24452 echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24457 rm -f conftest.err conftest.$ac_objext \
24458 conftest$ac_exeext conftest.$ac_ext
24460 if test "x$SNMP_LIBS" = "x"; then
24461 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24462 LIBS="$old_LIBS -L$try -lsnmp"
24463 cat >conftest.$ac_ext <<_ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469 extern char snmp_build_var_op();
24473 snmp_build_var_op()
24478 rm -f conftest.$ac_objext conftest$ac_exeext
24479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24480 (eval $ac_link) 2>conftest.er1
24482 grep -v '^ *+' conftest.er1 >conftest.err
24484 cat conftest.err >&5
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); } &&
24487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489 (eval $ac_try) 2>&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; } &&
24493 { ac_try='test -s conftest$ac_exeext'
24494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495 (eval $ac_try) 2>&5
24497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498 (exit $ac_status); }; }; then
24499 SNMP_LIBS="-L$try -lsnmp"
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24506 rm -f conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
24508 if test "x$SNMP_LIBS" != "x"; then
24511 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24512 cat >conftest.$ac_ext <<_ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 extern char snmp_build_var_op();
24522 snmp_build_var_op()
24527 rm -f conftest.$ac_objext conftest$ac_exeext
24528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24529 (eval $ac_link) 2>conftest.er1
24531 grep -v '^ *+' conftest.er1 >conftest.err
24533 cat conftest.err >&5
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); } &&
24536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; } &&
24542 { ac_try='test -s conftest$ac_exeext'
24543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24544 (eval $ac_try) 2>&5
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); }; }; then
24548 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24550 echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24555 rm -f conftest.err conftest.$ac_objext \
24556 conftest$ac_exeext conftest.$ac_ext
24557 if test "x$SNMP_LIBS" != "x"; then
24560 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24561 cat >conftest.$ac_ext <<_ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h. */
24567 extern char snmp_build_var_op();
24571 snmp_build_var_op()
24576 rm -f conftest.$ac_objext conftest$ac_exeext
24577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24578 (eval $ac_link) 2>conftest.er1
24580 grep -v '^ *+' conftest.er1 >conftest.err
24582 cat conftest.err >&5
24583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584 (exit $ac_status); } &&
24585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587 (eval $ac_try) 2>&5
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); }; } &&
24591 { ac_try='test -s conftest$ac_exeext'
24592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593 (eval $ac_try) 2>&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; }; then
24597 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24599 echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24604 rm -f conftest.err conftest.$ac_objext \
24605 conftest$ac_exeext conftest.$ac_ext
24606 if test "x$SNMP_LIBS" != "x"; then
24613 CFLAGS="$old_CFLAGS"
24614 if test "x$SNMP_LIBS" = "x"; then
24615 echo "$as_me:$LINENO: result: no" >&5
24616 echo "${ECHO_T}no" >&6
24619 echo "$as_me:$LINENO: result: yes" >&5
24620 echo "${ECHO_T}yes" >&6
24622 cat >>confdefs.h <<\_ACEOF
24627 cat >>confdefs.h <<\_ACEOF
24628 #define HAVE_LIBSNMP
24637 cat >>confdefs.h <<\_ACEOF
24642 cat >>confdefs.h <<\_ACEOF
24643 #define SYSVSTYLE 2
24647 cat >>confdefs.h <<\_ACEOF
24651 gethostbyaddrrstyle=""
24652 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24653 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24657 cat >>confdefs.h <<\_ACEOF
24658 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24661 gethostbyaddrrstyle=BSD
24662 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24663 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24666 if test "x$gethostbyaddrrstyle" = "x"; then
24667 cat >conftest.$ac_ext <<_ACEOF
24670 cat confdefs.h >>conftest.$ac_ext
24671 cat >>conftest.$ac_ext <<_ACEOF
24672 /* end confdefs.h. */
24680 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24685 rm -f conftest.$ac_objext conftest$ac_exeext
24686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24687 (eval $ac_link) 2>conftest.er1
24689 grep -v '^ *+' conftest.er1 >conftest.err
24691 cat conftest.err >&5
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); } &&
24694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24696 (eval $ac_try) 2>&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); }; } &&
24700 { ac_try='test -s conftest$ac_exeext'
24701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24702 (eval $ac_try) 2>&5
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); }; }; then
24708 cat >>confdefs.h <<\_ACEOF
24709 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24712 gethostbyaddrrstyle=GNU
24715 echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24719 rm -f conftest.err conftest.$ac_objext \
24720 conftest$ac_exeext conftest.$ac_ext
24722 if test "x$gethostbyaddrrstyle" = "x"; then
24723 cat >conftest.$ac_ext <<_ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24736 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24741 rm -f conftest.$ac_objext conftest$ac_exeext
24742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24743 (eval $ac_link) 2>conftest.er1
24745 grep -v '^ *+' conftest.er1 >conftest.err
24747 cat conftest.err >&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } &&
24750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752 (eval $ac_try) 2>&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; } &&
24756 { ac_try='test -s conftest$ac_exeext'
24757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758 (eval $ac_try) 2>&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); }; }; then
24764 cat >>confdefs.h <<\_ACEOF
24765 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24768 gethostbyaddrrstyle=SYSV
24771 echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24775 rm -f conftest.err conftest.$ac_objext \
24776 conftest$ac_exeext conftest.$ac_ext
24778 if test "x$gethostbyaddrrstyle" = "x"; then
24779 cat >conftest.$ac_ext <<_ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h. */
24792 gethostbyaddr(NULL, 0, 0)
24797 rm -f conftest.$ac_objext conftest$ac_exeext
24798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24799 (eval $ac_link) 2>conftest.er1
24801 grep -v '^ *+' conftest.er1 >conftest.err
24803 cat conftest.err >&5
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); } &&
24806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808 (eval $ac_try) 2>&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); }; } &&
24812 { ac_try='test -s conftest$ac_exeext'
24813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814 (eval $ac_try) 2>&5
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); }; }; then
24820 cat >>confdefs.h <<\_ACEOF
24821 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24824 gethostbyaddrrstyle=BSD
24827 echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24831 rm -f conftest.err conftest.$ac_objext \
24832 conftest$ac_exeext conftest.$ac_ext
24835 if test "x$gethostbyaddrrstyle" = "x"; then
24836 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24837 echo "${ECHO_T}none! It must not exist, here." >&6
24839 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24840 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
24843 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24844 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24845 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24848 gethostbynamerstyle=""
24849 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24850 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
24851 cat >conftest.$ac_ext <<_ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h. */
24864 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24869 rm -f conftest.$ac_objext conftest$ac_exeext
24870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24871 (eval $ac_link) 2>conftest.er1
24873 grep -v '^ *+' conftest.er1 >conftest.err
24875 cat conftest.err >&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } &&
24878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880 (eval $ac_try) 2>&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); }; } &&
24884 { ac_try='test -s conftest$ac_exeext'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; }; then
24892 cat >>confdefs.h <<\_ACEOF
24893 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24896 gethostbynamerstyle=GNU
24899 echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24903 rm -f conftest.err conftest.$ac_objext \
24904 conftest$ac_exeext conftest.$ac_ext
24905 if test "x$gethostbynamerstyle" = "x"; then
24906 cat >conftest.$ac_ext <<_ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24919 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24924 rm -f conftest.$ac_objext conftest$ac_exeext
24925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24926 (eval $ac_link) 2>conftest.er1
24928 grep -v '^ *+' conftest.er1 >conftest.err
24930 cat conftest.err >&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); } &&
24933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; } &&
24939 { ac_try='test -s conftest$ac_exeext'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24947 cat >>confdefs.h <<\_ACEOF
24948 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24951 gethostbynamerstyle=SYSV
24954 echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24958 rm -f conftest.err conftest.$ac_objext \
24959 conftest$ac_exeext conftest.$ac_ext
24961 if test "x$gethostbynamerstyle" = "x"; then
24962 cat >conftest.$ac_ext <<_ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24975 gethostbyname(NULL)
24980 rm -f conftest.$ac_objext conftest$ac_exeext
24981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24982 (eval $ac_link) 2>conftest.er1
24984 grep -v '^ *+' conftest.er1 >conftest.err
24986 cat conftest.err >&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); } &&
24989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991 (eval $ac_try) 2>&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; } &&
24995 { ac_try='test -s conftest$ac_exeext'
24996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24997 (eval $ac_try) 2>&5
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); }; }; then
25003 cat >>confdefs.h <<\_ACEOF
25004 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25007 gethostbynamerstyle=BSD
25010 echo "$as_me: failed program was:" >&5
25011 sed 's/^/| /' conftest.$ac_ext >&5
25014 rm -f conftest.err conftest.$ac_objext \
25015 conftest$ac_exeext conftest.$ac_ext
25018 if test "x$gethostbynamerstyle" = "x"; then
25019 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25020 echo "${ECHO_T}none! It must not exist, here." >&6
25022 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25023 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
25026 if test "x$gethostbynamerstyle" = "xBSD"; then
25027 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25028 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25032 cat >>confdefs.h <<\_ACEOF
25033 #define POSIXSTYLE 1
25037 cat >>confdefs.h <<\_ACEOF
25038 #define SOLARISSTYLE 2
25042 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25043 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
25044 cat >conftest.$ac_ext <<_ACEOF
25047 cat confdefs.h >>conftest.$ac_ext
25048 cat >>conftest.$ac_ext <<_ACEOF
25049 /* end confdefs.h. */
25056 ctime_r(NULL, NULL, 0)
25061 rm -f conftest.$ac_objext conftest$ac_exeext
25062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25063 (eval $ac_link) 2>conftest.er1
25065 grep -v '^ *+' conftest.er1 >conftest.err
25067 cat conftest.err >&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } &&
25070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072 (eval $ac_try) 2>&5
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); }; } &&
25076 { ac_try='test -s conftest$ac_exeext'
25077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25078 (eval $ac_try) 2>&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); }; }; then
25084 cat >>confdefs.h <<\_ACEOF
25085 #define CTIMERSTYLE SOLARISSTYLE
25088 ctimerstyle="SOLARIS"
25091 echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25095 rm -f conftest.err conftest.$ac_objext \
25096 conftest$ac_exeext conftest.$ac_ext
25097 if test "x$ctimerstyle" = "x"; then
25098 cat >conftest.$ac_ext <<_ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h. */
25110 ctime_r(NULL, NULL)
25115 rm -f conftest.$ac_objext conftest$ac_exeext
25116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25117 (eval $ac_link) 2>conftest.er1
25119 grep -v '^ *+' conftest.er1 >conftest.err
25121 cat conftest.err >&5
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); } &&
25124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; } &&
25130 { ac_try='test -s conftest$ac_exeext'
25131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25132 (eval $ac_try) 2>&5
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); }; }; then
25138 cat >>confdefs.h <<\_ACEOF
25139 #define CTIMERSTYLE POSIXSTYLE
25142 ctimerstyle="POSIX"
25145 echo "$as_me: failed program was:" >&5
25146 sed 's/^/| /' conftest.$ac_ext >&5
25149 rm -f conftest.err conftest.$ac_objext \
25150 conftest$ac_exeext conftest.$ac_ext
25153 if test "x$ctimerstyle" = "x"; then
25154 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25155 echo "${ECHO_T}none! It must not exist, here." >&6
25157 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25158 echo "${ECHO_T}${ctimerstyle}-style" >&6
25166 export top_builddir
25167 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25168 echo "${ECHO_T}top_builddir=$top_builddir" >&6
25172 if test "x$INCLTDL" != "x";then
25173 INCLTDL='-I${top_builddir}/''libltdl'
25178 mysubdirs="$LIBLTDLPATH"
25179 if test "x$EXPERIMENTAL" = "xyes"; then
25180 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25181 mysubdirs=`echo $mysubdirs $bar`
25183 for bar in `cat "${srcdir}"/src/modules/stable`; do
25184 if test -f "${srcdir}"/src/modules/$bar/configure; then
25185 mysubdirs="$mysubdirs src/modules/$bar"
25190 if test "x$EXPERIMENTAL" = "xyes"; then
25191 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25192 MODULES="$MODULES $foo"
25195 for foo in `cat "${srcdir}"/src/modules/stable`; do
25196 MODULES="$MODULES $foo"
25202 subdirs="$subdirs $mysubdirs"
25207 ac_config_commands="$ac_config_commands stamp-h"
25209 ac_config_commands="$ac_config_commands build-radpaths-h"
25211 ac_config_commands="$ac_config_commands main-chmod"
25213 ac_config_commands="$ac_config_commands scripts-chmod"
25219 USE_SHARED_LIBS=$enable_shared
25221 USE_STATIC_LIBS=$enable_static
25228 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"
25229 cat >confcache <<\_ACEOF
25230 # This file is a shell script that caches the results of configure
25231 # tests run on this system so they can be shared between configure
25232 # scripts and configure runs, see configure's option --config-cache.
25233 # It is not useful on other systems. If it contains results you don't
25234 # want to keep, you may remove or edit it.
25236 # config.status only pays attention to the cache file if you give it
25237 # the --recheck option to rerun configure.
25239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25241 # following values.
25245 # The following way of writing the cache mishandles newlines in values,
25246 # but we know of no workaround that is simple, portable, and efficient.
25247 # So, don't put newlines in cache variables' values.
25248 # Ultrix sh set writes to stderr and can't be redirected directly,
25249 # and sets the high bit in the cache file unless we assign to the vars.
25252 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25254 # `set' does not quote correctly, so add quotes (double-quote
25255 # substitution turns \\\\ into \\, and sed turns \\ into \).
25258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25261 # `set' quotes correctly as required by POSIX, so do not add quotes.
25263 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25270 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25272 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25274 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25275 if test -w $cache_file; then
25276 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25277 cat confcache >$cache_file
25279 echo "not updating unwritable cache $cache_file"
25284 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25285 # Let make expand exec_prefix.
25286 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25288 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25289 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25290 # trailing colons and then remove the whole line if VPATH becomes empty
25291 # (actually we leave an empty line to preserve line numbers).
25292 if test "x$srcdir" = x.; then
25293 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25294 s/:*\$(srcdir):*/:/;
25295 s/:*\${srcdir}:*/:/;
25297 s/^\([^=]*=[ ]*\):*/\1/;
25303 DEFS=-DHAVE_CONFIG_H
25307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25308 # 1. Remove the extension, and $U if already installed.
25309 ac_i=`echo "$ac_i" |
25310 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25312 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25313 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25315 LIBOBJS=$ac_libobjs
25317 LTLIBOBJS=$ac_ltlibobjs
25321 : ${CONFIG_STATUS=./config.status}
25322 ac_clean_files_save=$ac_clean_files
25323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25324 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25325 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25326 cat >$CONFIG_STATUS <<_ACEOF
25328 # Generated by $as_me.
25329 # Run this file to recreate the current configuration.
25330 # Compiler output produced by configure, useful for debugging
25331 # configure, is in config.log if it exists.
25334 ac_cs_recheck=false
25336 SHELL=\${CONFIG_SHELL-$SHELL}
25339 cat >>$CONFIG_STATUS <<\_ACEOF
25340 ## --------------------- ##
25341 ## M4sh Initialization. ##
25342 ## --------------------- ##
25344 # Be Bourne compatible
25345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25348 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25349 # is contrary to our usage. Disable this feature.
25350 alias -g '${1+"$@"}'='"$@"'
25351 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25354 DUALCASE=1; export DUALCASE # for MKS sh
25356 # Support unset when possible.
25357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25364 # Work around bugs in pre-3.0 UWIN ksh.
25365 $as_unset ENV MAIL MAILPATH
25372 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25373 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25374 LC_TELEPHONE LC_TIME
25376 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25377 eval $as_var=C; export $as_var
25383 # Required to use basename.
25384 if expr a : '\(a\)' >/dev/null 2>&1; then
25390 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25391 as_basename=basename
25397 # Name of the executable.
25398 as_me=`$as_basename "$0" ||
25399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25400 X"$0" : 'X\(//\)$' \| \
25401 X"$0" : 'X\(/\)$' \| \
25402 . : '\(.\)' 2>/dev/null ||
25404 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25405 /^X\/\(\/\/\)$/{ s//\1/; q; }
25406 /^X\/\(\/\).*/{ s//\1/; q; }
25410 # PATH needs CR, and LINENO needs CR and PATH.
25411 # Avoid depending upon Character Ranges.
25412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25415 as_cr_digits='0123456789'
25416 as_cr_alnum=$as_cr_Letters$as_cr_digits
25418 # The user is always right.
25419 if test "${PATH_SEPARATOR+set}" != set; then
25420 echo "#! /bin/sh" >conf$$.sh
25421 echo "exit 0" >>conf$$.sh
25423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25432 as_lineno_1=$LINENO
25433 as_lineno_2=$LINENO
25434 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25435 test "x$as_lineno_1" != "x$as_lineno_2" &&
25436 test "x$as_lineno_3" = "x$as_lineno_2" || {
25437 # Find who we are. Look in the path if we contain no path at all
25440 *[\\/]* ) as_myself=$0 ;;
25441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25442 for as_dir in $PATH
25445 test -z "$as_dir" && as_dir=.
25446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25451 # We did not find ourselves, most probably we were run as `sh COMMAND'
25452 # in which case we are not to be found in the path.
25453 if test "x$as_myself" = x; then
25456 if test ! -f "$as_myself"; then
25457 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25458 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25459 { (exit 1); exit 1; }; }
25461 case $CONFIG_SHELL in
25463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25464 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25467 test -z "$as_dir" && as_dir=.
25468 for as_base in sh bash ksh sh5; do
25471 if ("$as_dir/$as_base" -c '
25472 as_lineno_1=$LINENO
25473 as_lineno_2=$LINENO
25474 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25475 test "x$as_lineno_1" != "x$as_lineno_2" &&
25476 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25477 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25478 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25479 CONFIG_SHELL=$as_dir/$as_base
25480 export CONFIG_SHELL
25481 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25489 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25490 # uniformly replaced by the line number. The first 'sed' inserts a
25491 # line-number line before each line; the second 'sed' does the real
25492 # work. The second script uses 'N' to pair each line-number line
25493 # with the numbered line, and appends trailing '-' during
25494 # substitution so that $LINENO is not a special case at line end.
25495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25496 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25497 sed '=' <$as_myself |
25502 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25505 s,^['$as_cr_digits']*\n,,
25506 ' >$as_me.lineno &&
25507 chmod +x $as_me.lineno ||
25508 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25509 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25510 { (exit 1); exit 1; }; }
25512 # Don't try to exec as it changes $[0], causing all sort of problems
25513 # (the dirname of $[0] is not the place where we might find the
25514 # original and so on. Autoconf is especially sensible to this).
25516 # Exit status is that of the last command.
25521 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25522 *c*,-n*) ECHO_N= ECHO_C='
25524 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25525 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25528 if expr a : '\(a\)' >/dev/null 2>&1; then
25534 rm -f conf$$ conf$$.exe conf$$.file
25536 if ln -s conf$$.file conf$$ 2>/dev/null; then
25537 # We could just check for DJGPP; but this test a) works b) is more generic
25538 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25539 if test -f conf$$.exe; then
25540 # Don't use ln at all; we don't have any links
25545 elif ln conf$$.file conf$$ 2>/dev/null; then
25550 rm -f conf$$ conf$$.exe conf$$.file
25552 if mkdir -p . 2>/dev/null; then
25555 test -d ./-p && rmdir ./-p
25559 as_executable_p="test -f"
25561 # Sed expression to map a string onto a valid CPP name.
25562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25564 # Sed expression to map a string onto a valid variable name.
25565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25569 # We need space, tab and new line, in precisely that order.
25579 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25580 # report actual input values of CONFIG_FILES etc. instead of their
25581 # values after options handling. Logging --version etc. is OK.
25585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25586 ## Running $as_me. ##
25591 This file was extended by $as_me, which was
25592 generated by GNU Autoconf 2.59. Invocation command line was
25594 CONFIG_FILES = $CONFIG_FILES
25595 CONFIG_HEADERS = $CONFIG_HEADERS
25596 CONFIG_LINKS = $CONFIG_LINKS
25597 CONFIG_COMMANDS = $CONFIG_COMMANDS
25601 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25605 # Files that config.status was made for.
25606 if test -n "$ac_config_files"; then
25607 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25610 if test -n "$ac_config_headers"; then
25611 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25614 if test -n "$ac_config_links"; then
25615 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25618 if test -n "$ac_config_commands"; then
25619 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25622 cat >>$CONFIG_STATUS <<\_ACEOF
25625 \`$as_me' instantiates files from templates according to the
25626 current configuration.
25628 Usage: $0 [OPTIONS] [FILE]...
25630 -h, --help print this help, then exit
25631 -V, --version print version number, then exit
25632 -q, --quiet do not print progress messages
25633 -d, --debug don't remove temporary files
25634 --recheck update $as_me by reconfiguring in the same conditions
25635 --file=FILE[:TEMPLATE]
25636 instantiate the configuration file FILE
25637 --header=FILE[:TEMPLATE]
25638 instantiate the configuration header FILE
25640 Configuration files:
25643 Configuration headers:
25646 Configuration commands:
25649 Report bugs to <bug-autoconf@gnu.org>."
25652 cat >>$CONFIG_STATUS <<_ACEOF
25655 configured by $0, generated by GNU Autoconf 2.59,
25656 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25658 Copyright (C) 2003 Free Software Foundation, Inc.
25659 This config.status script is free software; the Free Software Foundation
25660 gives unlimited permission to copy, distribute and modify it."
25664 cat >>$CONFIG_STATUS <<\_ACEOF
25665 # If no file are specified by the user, then we need to provide default
25666 # value. By we need to know if files were specified by the user.
25672 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25673 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25681 *) # This is not an option, so the user has probably given explicit
25684 ac_need_defaults=false;;
25688 # Handling of the options.
25690 cat >>$CONFIG_STATUS <<\_ACEOF
25691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25693 --version | --vers* | -V )
25694 echo "$ac_cs_version"; exit 0 ;;
25696 # Conflict between --help and --header
25697 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25698 Try \`$0 --help' for more information." >&5
25699 echo "$as_me: error: ambiguous option: $1
25700 Try \`$0 --help' for more information." >&2;}
25701 { (exit 1); exit 1; }; };;
25702 --help | --hel | -h )
25703 echo "$ac_cs_usage"; exit 0 ;;
25704 --debug | --d* | -d )
25706 --file | --fil | --fi | --f )
25708 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25709 ac_need_defaults=false;;
25710 --header | --heade | --head | --hea )
25712 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25713 ac_need_defaults=false;;
25714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25715 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25718 # This is an error.
25719 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25720 Try \`$0 --help' for more information." >&5
25721 echo "$as_me: error: unrecognized option: $1
25722 Try \`$0 --help' for more information." >&2;}
25723 { (exit 1); exit 1; }; } ;;
25725 *) ac_config_targets="$ac_config_targets $1" ;;
25731 ac_configure_extra_args=
25733 if $ac_cs_silent; then
25735 ac_configure_extra_args="$ac_configure_extra_args --silent"
25739 cat >>$CONFIG_STATUS <<_ACEOF
25740 if \$ac_cs_recheck; then
25741 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25742 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25751 cat >>$CONFIG_STATUS <<\_ACEOF
25752 for ac_config_target in $ac_config_targets
25754 case "$ac_config_target" in
25755 # Handling of arguments.
25756 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25757 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25758 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25759 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25760 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25761 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25762 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25763 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25764 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25765 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25766 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25767 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25768 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25769 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25770 "./raddb/radrelay.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
25771 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25772 "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25773 "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25774 "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25775 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25776 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25777 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25778 { (exit 1); exit 1; }; };;
25782 # If the user did not use the arguments to specify the items to instantiate,
25783 # then the envvar interface is used. Set only those that are not.
25784 # We use the long form for the default assignment because of an extremely
25785 # bizarre bug on SunOS 4.1.3.
25786 if $ac_need_defaults; then
25787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25788 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25792 # Have a temporary directory for convenience. Make it in the build tree
25793 # simply because there is no reason to put it here, and in addition,
25794 # creating and moving files from /tmp can sometimes cause problems.
25795 # Create a temporary directory, and hook for its removal unless debugging.
25798 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25799 trap '{ (exit 1); exit 1; }' 1 2 13 15
25802 # Create a (secure) tmp directory for tmp files.
25805 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25806 test -n "$tmp" && test -d "$tmp"
25809 tmp=./confstat$$-$RANDOM
25810 (umask 077 && mkdir $tmp)
25813 echo "$me: cannot create a temporary directory in ." >&2
25814 { (exit 1); exit 1; }
25819 cat >>$CONFIG_STATUS <<_ACEOF
25822 # CONFIG_FILES section.
25825 # No need to generate the scripts if there are no CONFIG_FILES.
25826 # This happens for instance when ./config.status config.h
25827 if test -n "\$CONFIG_FILES"; then
25828 # Protect against being on the right side of a sed subst in config.status.
25829 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25830 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25831 s,@SHELL@,$SHELL,;t t
25832 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25833 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25834 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25835 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25836 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25837 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25838 s,@exec_prefix@,$exec_prefix,;t t
25839 s,@prefix@,$prefix,;t t
25840 s,@program_transform_name@,$program_transform_name,;t t
25841 s,@bindir@,$bindir,;t t
25842 s,@sbindir@,$sbindir,;t t
25843 s,@libexecdir@,$libexecdir,;t t
25844 s,@datadir@,$datadir,;t t
25845 s,@sysconfdir@,$sysconfdir,;t t
25846 s,@sharedstatedir@,$sharedstatedir,;t t
25847 s,@localstatedir@,$localstatedir,;t t
25848 s,@libdir@,$libdir,;t t
25849 s,@includedir@,$includedir,;t t
25850 s,@oldincludedir@,$oldincludedir,;t t
25851 s,@infodir@,$infodir,;t t
25852 s,@mandir@,$mandir,;t t
25853 s,@build_alias@,$build_alias,;t t
25854 s,@host_alias@,$host_alias,;t t
25855 s,@target_alias@,$target_alias,;t t
25856 s,@DEFS@,$DEFS,;t t
25857 s,@ECHO_C@,$ECHO_C,;t t
25858 s,@ECHO_N@,$ECHO_N,;t t
25859 s,@ECHO_T@,$ECHO_T,;t t
25860 s,@LIBS@,$LIBS,;t t
25862 s,@CFLAGS@,$CFLAGS,;t t
25863 s,@LDFLAGS@,$LDFLAGS,;t t
25864 s,@CPPFLAGS@,$CPPFLAGS,;t t
25865 s,@ac_ct_CC@,$ac_ct_CC,;t t
25866 s,@EXEEXT@,$EXEEXT,;t t
25867 s,@OBJEXT@,$OBJEXT,;t t
25869 s,@CXXFLAGS@,$CXXFLAGS,;t t
25870 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25872 s,@EGREP@,$EGREP,;t t
25873 s,@RANLIB@,$RANLIB,;t t
25874 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25875 s,@GMAKE@,$GMAKE,;t t
25876 s,@MAKE@,$MAKE,;t t
25877 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
25878 s,@LIBTOOL@,$LIBTOOL,;t t
25879 s,@build@,$build,;t t
25880 s,@build_cpu@,$build_cpu,;t t
25881 s,@build_vendor@,$build_vendor,;t t
25882 s,@build_os@,$build_os,;t t
25883 s,@host@,$host,;t t
25884 s,@host_cpu@,$host_cpu,;t t
25885 s,@host_vendor@,$host_vendor,;t t
25886 s,@host_os@,$host_os,;t t
25887 s,@LN_S@,$LN_S,;t t
25888 s,@ECHO@,$ECHO,;t t
25890 s,@ac_ct_AR@,$ac_ct_AR,;t t
25891 s,@STRIP@,$STRIP,;t t
25892 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25893 s,@CXXCPP@,$CXXCPP,;t t
25895 s,@FFLAGS@,$FFLAGS,;t t
25896 s,@ac_ct_F77@,$ac_ct_F77,;t t
25897 s,@docdir@,$docdir,;t t
25898 s,@logdir@,$logdir,;t t
25899 s,@radacctdir@,$radacctdir,;t t
25900 s,@raddbdir@,$raddbdir,;t t
25901 s,@PERL@,$PERL,;t t
25902 s,@SNMPGET@,$SNMPGET,;t t
25903 s,@SNMPWALK@,$SNMPWALK,;t t
25904 s,@RUSERS@,$RUSERS,;t t
25905 s,@ACLOCAL@,$ACLOCAL,;t t
25906 s,@AUTOCONF@,$AUTOCONF,;t t
25907 s,@AUTOHEADER@,$AUTOHEADER,;t t
25908 s,@LOCATE@,$LOCATE,;t t
25909 s,@DIRNAME@,$DIRNAME,;t t
25910 s,@GREP@,$GREP,;t t
25911 s,@REGEX@,$REGEX,;t t
25912 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25913 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25914 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25915 s,@PCAP_LIBS@,$PCAP_LIBS,;t t
25916 s,@LIBPREFIX@,$LIBPREFIX,;t t
25917 s,@CRYPTLIB@,$CRYPTLIB,;t t
25918 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25919 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25920 s,@HOSTINFO@,$HOSTINFO,;t t
25921 s,@LIBLTDL@,$LIBLTDL,;t t
25922 s,@INCLTDL@,$INCLTDL,;t t
25923 s,@subdirs@,$subdirs,;t t
25924 s,@MODULES@,$MODULES,;t t
25925 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25926 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25927 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25928 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25929 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25930 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25931 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25932 s,@LIBOBJS@,$LIBOBJS,;t t
25933 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25938 cat >>$CONFIG_STATUS <<\_ACEOF
25939 # Split the substitutions into bite-sized pieces for seds with
25940 # small command number limits, like on Digital OSF/1 and HP-UX.
25941 ac_max_sed_lines=48
25942 ac_sed_frag=1 # Number of current file.
25943 ac_beg=1 # First line for current file.
25944 ac_end=$ac_max_sed_lines # Line after last line for current file.
25947 while $ac_more_lines; do
25948 if test $ac_beg -gt 1; then
25949 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25951 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25953 if test ! -s $tmp/subs.frag; then
25954 ac_more_lines=false
25956 # The purpose of the label and of the branching condition is to
25957 # speed up the sed processing (if there are no `@' at all, there
25958 # is no need to browse any of the substitutions).
25959 # These are the two extra sed commands mentioned above.
25961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25962 if test -z "$ac_sed_cmds"; then
25963 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25965 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25967 ac_sed_frag=`expr $ac_sed_frag + 1`
25969 ac_end=`expr $ac_end + $ac_max_sed_lines`
25972 if test -z "$ac_sed_cmds"; then
25975 fi # test -n "$CONFIG_FILES"
25978 cat >>$CONFIG_STATUS <<\_ACEOF
25979 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25982 - | *:- | *:-:* ) # input from stdin
25984 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25986 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25988 * ) ac_file_in=$ac_file.in ;;
25991 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25992 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25994 X"$ac_file" : 'X\(//\)[^/]' \| \
25995 X"$ac_file" : 'X\(//\)$' \| \
25996 X"$ac_file" : 'X\(/\)' \| \
25997 . : '\(.\)' 2>/dev/null ||
25999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26001 /^X\(\/\/\)$/{ s//\1/; q; }
26002 /^X\(\/\).*/{ s//\1/; q; }
26004 { if $as_mkdir_p; then
26009 while test ! -d "$as_dir"; do
26010 as_dirs="$as_dir $as_dirs"
26011 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26013 X"$as_dir" : 'X\(//\)[^/]' \| \
26014 X"$as_dir" : 'X\(//\)$' \| \
26015 X"$as_dir" : 'X\(/\)' \| \
26016 . : '\(.\)' 2>/dev/null ||
26018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26020 /^X\(\/\/\)$/{ s//\1/; q; }
26021 /^X\(\/\).*/{ s//\1/; q; }
26024 test ! -n "$as_dirs" || mkdir $as_dirs
26025 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26027 { (exit 1); exit 1; }; }; }
26031 if test "$ac_dir" != .; then
26032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26033 # A "../" for each directory in $ac_dir_suffix.
26034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26036 ac_dir_suffix= ac_top_builddir=
26040 .) # No --srcdir option. We are building in place.
26042 if test -z "$ac_top_builddir"; then
26045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26047 [\\/]* | ?:[\\/]* ) # Absolute path.
26048 ac_srcdir=$srcdir$ac_dir_suffix;
26049 ac_top_srcdir=$srcdir ;;
26050 *) # Relative path.
26051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26055 # Do not use `cd foo && pwd` to compute absolute paths, because
26056 # the directories may not exist.
26058 .) ac_abs_builddir="$ac_dir";;
26061 .) ac_abs_builddir=`pwd`;;
26062 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26063 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26066 case $ac_abs_builddir in
26067 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26069 case ${ac_top_builddir}. in
26070 .) ac_abs_top_builddir=$ac_abs_builddir;;
26071 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26072 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26075 case $ac_abs_builddir in
26076 .) ac_abs_srcdir=$ac_srcdir;;
26079 .) ac_abs_srcdir=$ac_abs_builddir;;
26080 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26081 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26084 case $ac_abs_builddir in
26085 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26087 case $ac_top_srcdir in
26088 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26089 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26090 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26096 # Let's still pretend it is `configure' which instantiates (i.e., don't
26097 # use $as_me), people would be surprised to read:
26098 # /* config.h. Generated by config.status. */
26099 if test x"$ac_file" = x-; then
26102 configure_input="$ac_file. "
26104 configure_input=$configure_input"Generated from `echo $ac_file_in |
26105 sed 's,.*/,,'` by configure."
26107 # First look for the input files in the build tree, otherwise in the
26109 ac_file_inputs=`IFS=:
26110 for f in $ac_file_in; do
26112 -) echo $tmp/stdin ;;
26114 # Absolute (can't be DOS-style, as IFS=:)
26115 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26116 echo "$as_me: error: cannot find input file: $f" >&2;}
26117 { (exit 1); exit 1; }; }
26120 if test -f "$f"; then
26123 elif test -f "$srcdir/$f"; then
26128 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26129 echo "$as_me: error: cannot find input file: $f" >&2;}
26130 { (exit 1); exit 1; }; }
26133 done` || { (exit 1); exit 1; }
26135 if test x"$ac_file" != x-; then
26136 { echo "$as_me:$LINENO: creating $ac_file" >&5
26137 echo "$as_me: creating $ac_file" >&6;}
26141 cat >>$CONFIG_STATUS <<_ACEOF
26145 cat >>$CONFIG_STATUS <<\_ACEOF
26147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26148 s,@configure_input@,$configure_input,;t t
26149 s,@srcdir@,$ac_srcdir,;t t
26150 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26151 s,@top_srcdir@,$ac_top_srcdir,;t t
26152 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26153 s,@builddir@,$ac_builddir,;t t
26154 s,@abs_builddir@,$ac_abs_builddir,;t t
26155 s,@top_builddir@,$ac_top_builddir,;t t
26156 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26157 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26159 if test x"$ac_file" != x-; then
26160 mv $tmp/out $ac_file
26168 cat >>$CONFIG_STATUS <<\_ACEOF
26171 # CONFIG_HEADER section.
26174 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26175 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26177 # ac_d sets the value in "#define NAME VALUE" lines.
26178 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26179 ac_dB='[ ].*$,\1#\2'
26182 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26183 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26184 ac_uB='$,\1#\2define\3'
26188 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26189 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26191 - | *:- | *:-:* ) # input from stdin
26193 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26194 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26195 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26196 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26197 * ) ac_file_in=$ac_file.in ;;
26200 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26201 echo "$as_me: creating $ac_file" >&6;}
26203 # First look for the input files in the build tree, otherwise in the
26205 ac_file_inputs=`IFS=:
26206 for f in $ac_file_in; do
26208 -) echo $tmp/stdin ;;
26210 # Absolute (can't be DOS-style, as IFS=:)
26211 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26212 echo "$as_me: error: cannot find input file: $f" >&2;}
26213 { (exit 1); exit 1; }; }
26214 # Do quote $f, to prevent DOS paths from being IFS'd.
26217 if test -f "$f"; then
26220 elif test -f "$srcdir/$f"; then
26225 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26226 echo "$as_me: error: cannot find input file: $f" >&2;}
26227 { (exit 1); exit 1; }; }
26230 done` || { (exit 1); exit 1; }
26231 # Remove the trailing spaces.
26232 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26236 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26237 # `conftest.undefs', that substitutes the proper values into
26238 # config.h.in to produce config.h. The first handles `#define'
26239 # templates, and the second `#undef' templates.
26240 # And first: Protect against being on the right side of a sed subst in
26241 # config.status. Protect against being in an unquoted here document
26242 # in config.status.
26243 rm -f conftest.defines conftest.undefs
26244 # Using a here document instead of a string reduces the quoting nightmare.
26245 # Putting comments in sed scripts is not portable.
26247 # `end' is used to avoid that the second main sed command (meant for
26248 # 0-ary CPP macros) applies to n-ary macro definitions.
26249 # See the Autoconf documentation for `clear'.
26250 cat >confdef2sed.sed <<\_ACEOF
26255 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26257 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26260 # If some macros were called several times there might be several times
26261 # the same #defines, which is useless. Nevertheless, we may not want to
26262 # sort them, since we want the *last* AC-DEFINE to be honored.
26263 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26264 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26265 rm -f confdef2sed.sed
26267 # This sed command replaces #undef with comments. This is necessary, for
26268 # example, in the case of _POSIX_SOURCE, which is predefined and required
26269 # on some systems where configure will not decide to define it.
26270 cat >>conftest.undefs <<\_ACEOF
26271 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26274 # Break up conftest.defines because some shells have a limit on the size
26275 # of here documents, and old seds have small limits too (100 cmds).
26276 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26277 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26278 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26279 echo ' :' >>$CONFIG_STATUS
26280 rm -f conftest.tail
26281 while grep . conftest.defines >/dev/null
26283 # Write a limited-size here document to $tmp/defines.sed.
26284 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26285 # Speed up: don't consider the non `#define' lines.
26286 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26287 # Work around the forget-to-reset-the-flag bug.
26288 echo 't clr' >>$CONFIG_STATUS
26289 echo ': clr' >>$CONFIG_STATUS
26290 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26292 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26294 mv $tmp/out $tmp/in
26296 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26297 rm -f conftest.defines
26298 mv conftest.tail conftest.defines
26300 rm -f conftest.defines
26301 echo ' fi # grep' >>$CONFIG_STATUS
26302 echo >>$CONFIG_STATUS
26304 # Break up conftest.undefs because some shells have a limit on the size
26305 # of here documents, and old seds have small limits too (100 cmds).
26306 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26307 rm -f conftest.tail
26308 while grep . conftest.undefs >/dev/null
26310 # Write a limited-size here document to $tmp/undefs.sed.
26311 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26312 # Speed up: don't consider the non `#undef'
26313 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26314 # Work around the forget-to-reset-the-flag bug.
26315 echo 't clr' >>$CONFIG_STATUS
26316 echo ': clr' >>$CONFIG_STATUS
26317 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26319 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26321 mv $tmp/out $tmp/in
26323 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26324 rm -f conftest.undefs
26325 mv conftest.tail conftest.undefs
26327 rm -f conftest.undefs
26329 cat >>$CONFIG_STATUS <<\_ACEOF
26330 # Let's still pretend it is `configure' which instantiates (i.e., don't
26331 # use $as_me), people would be surprised to read:
26332 # /* config.h. Generated by config.status. */
26333 if test x"$ac_file" = x-; then
26334 echo "/* Generated by configure. */" >$tmp/config.h
26336 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26338 cat $tmp/in >>$tmp/config.h
26340 if test x"$ac_file" != x-; then
26341 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26342 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26343 echo "$as_me: $ac_file is unchanged" >&6;}
26345 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26347 X"$ac_file" : 'X\(//\)[^/]' \| \
26348 X"$ac_file" : 'X\(//\)$' \| \
26349 X"$ac_file" : 'X\(/\)' \| \
26350 . : '\(.\)' 2>/dev/null ||
26352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26354 /^X\(\/\/\)$/{ s//\1/; q; }
26355 /^X\(\/\).*/{ s//\1/; q; }
26357 { if $as_mkdir_p; then
26362 while test ! -d "$as_dir"; do
26363 as_dirs="$as_dir $as_dirs"
26364 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26366 X"$as_dir" : 'X\(//\)[^/]' \| \
26367 X"$as_dir" : 'X\(//\)$' \| \
26368 X"$as_dir" : 'X\(/\)' \| \
26369 . : '\(.\)' 2>/dev/null ||
26371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26373 /^X\(\/\/\)$/{ s//\1/; q; }
26374 /^X\(\/\).*/{ s//\1/; q; }
26377 test ! -n "$as_dirs" || mkdir $as_dirs
26378 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26379 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26380 { (exit 1); exit 1; }; }; }
26383 mv $tmp/config.h $ac_file
26387 rm -f $tmp/config.h
26391 cat >>$CONFIG_STATUS <<\_ACEOF
26394 # CONFIG_COMMANDS section.
26396 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26397 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26398 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26399 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26400 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26401 X"$ac_dest" : 'X\(//\)[^/]' \| \
26402 X"$ac_dest" : 'X\(//\)$' \| \
26403 X"$ac_dest" : 'X\(/\)' \| \
26404 . : '\(.\)' 2>/dev/null ||
26406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26408 /^X\(\/\/\)$/{ s//\1/; q; }
26409 /^X\(\/\).*/{ s//\1/; q; }
26411 { if $as_mkdir_p; then
26416 while test ! -d "$as_dir"; do
26417 as_dirs="$as_dir $as_dirs"
26418 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26420 X"$as_dir" : 'X\(//\)[^/]' \| \
26421 X"$as_dir" : 'X\(//\)$' \| \
26422 X"$as_dir" : 'X\(/\)' \| \
26423 . : '\(.\)' 2>/dev/null ||
26425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26426 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26427 /^X\(\/\/\)$/{ s//\1/; q; }
26428 /^X\(\/\).*/{ s//\1/; q; }
26431 test ! -n "$as_dirs" || mkdir $as_dirs
26432 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26433 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26434 { (exit 1); exit 1; }; }; }
26438 if test "$ac_dir" != .; then
26439 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26440 # A "../" for each directory in $ac_dir_suffix.
26441 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26443 ac_dir_suffix= ac_top_builddir=
26447 .) # No --srcdir option. We are building in place.
26449 if test -z "$ac_top_builddir"; then
26452 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26454 [\\/]* | ?:[\\/]* ) # Absolute path.
26455 ac_srcdir=$srcdir$ac_dir_suffix;
26456 ac_top_srcdir=$srcdir ;;
26457 *) # Relative path.
26458 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26459 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26462 # Do not use `cd foo && pwd` to compute absolute paths, because
26463 # the directories may not exist.
26465 .) ac_abs_builddir="$ac_dir";;
26468 .) ac_abs_builddir=`pwd`;;
26469 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26470 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26473 case $ac_abs_builddir in
26474 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26476 case ${ac_top_builddir}. in
26477 .) ac_abs_top_builddir=$ac_abs_builddir;;
26478 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26479 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26482 case $ac_abs_builddir in
26483 .) ac_abs_srcdir=$ac_srcdir;;
26486 .) ac_abs_srcdir=$ac_abs_builddir;;
26487 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26488 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26491 case $ac_abs_builddir in
26492 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26494 case $ac_top_srcdir in
26495 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26496 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26497 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26502 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26503 echo "$as_me: executing $ac_dest commands" >&6;}
26505 stamp-h ) echo timestamp > src/include/stamp-h ;;
26506 build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26507 main-chmod ) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26508 scripts-chmod ) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26513 cat >>$CONFIG_STATUS <<\_ACEOF
26515 { (exit 0); exit 0; }
26517 chmod +x $CONFIG_STATUS
26518 ac_clean_files=$ac_clean_files_save
26521 # configure is writing to config.log, and then calls config.status.
26522 # config.status does its own redirection, appending to config.log.
26523 # Unfortunately, on DOS this fails, as config.log is still kept open
26524 # by configure, so config.status won't be able to write to it; its
26525 # output is simply discarded. So we exec the FD to /dev/null,
26526 # effectively closing config.log, so it can be properly (re)opened and
26527 # appended to by config.status. When coming back to configure, we
26528 # need to make the FD available again.
26529 if test "$no_create" != yes; then
26531 ac_config_status_args=
26532 test "$silent" = yes &&
26533 ac_config_status_args="$ac_config_status_args --quiet"
26535 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26538 # would make configure fail if this is the last instruction.
26539 $ac_cs_success || { (exit 1); exit 1; }
26543 # CONFIG_SUBDIRS section.
26545 if test "$no_recursion" != yes; then
26547 # Remove --cache-file and --srcdir arguments so they do not pile up.
26548 ac_sub_configure_args=
26550 for ac_arg in $ac_configure_args; do
26551 if test -n "$ac_prev"; then
26556 -cache-file | --cache-file | --cache-fil | --cache-fi \
26557 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26558 ac_prev=cache_file ;;
26559 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26560 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26563 --config-cache | -C)
26565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26569 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26571 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26573 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26577 # Always prepend --prefix to ensure using the same prefix
26578 # in subdir configurations.
26579 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26582 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26584 # Do not complain, so a configure script can configure whichever
26585 # parts of a large source tree are present.
26586 test -d $srcdir/$ac_dir || continue
26588 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26589 echo "$as_me: configuring in $ac_dir" >&6;}
26590 { if $as_mkdir_p; then
26595 while test ! -d "$as_dir"; do
26596 as_dirs="$as_dir $as_dirs"
26597 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26599 X"$as_dir" : 'X\(//\)[^/]' \| \
26600 X"$as_dir" : 'X\(//\)$' \| \
26601 X"$as_dir" : 'X\(/\)' \| \
26602 . : '\(.\)' 2>/dev/null ||
26604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26606 /^X\(\/\/\)$/{ s//\1/; q; }
26607 /^X\(\/\).*/{ s//\1/; q; }
26610 test ! -n "$as_dirs" || mkdir $as_dirs
26611 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26612 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26613 { (exit 1); exit 1; }; }; }
26617 if test "$ac_dir" != .; then
26618 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26619 # A "../" for each directory in $ac_dir_suffix.
26620 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26622 ac_dir_suffix= ac_top_builddir=
26626 .) # No --srcdir option. We are building in place.
26628 if test -z "$ac_top_builddir"; then
26631 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26633 [\\/]* | ?:[\\/]* ) # Absolute path.
26634 ac_srcdir=$srcdir$ac_dir_suffix;
26635 ac_top_srcdir=$srcdir ;;
26636 *) # Relative path.
26637 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26638 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26641 # Do not use `cd foo && pwd` to compute absolute paths, because
26642 # the directories may not exist.
26644 .) ac_abs_builddir="$ac_dir";;
26647 .) ac_abs_builddir=`pwd`;;
26648 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26649 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26652 case $ac_abs_builddir in
26653 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26655 case ${ac_top_builddir}. in
26656 .) ac_abs_top_builddir=$ac_abs_builddir;;
26657 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26658 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26661 case $ac_abs_builddir in
26662 .) ac_abs_srcdir=$ac_srcdir;;
26665 .) ac_abs_srcdir=$ac_abs_builddir;;
26666 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26667 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26670 case $ac_abs_builddir in
26671 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26673 case $ac_top_srcdir in
26674 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26675 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26676 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26683 # Check for guested configure; otherwise get Cygnus style configure.
26684 if test -f $ac_srcdir/configure.gnu; then
26685 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26686 elif test -f $ac_srcdir/configure; then
26687 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26688 elif test -f $ac_srcdir/configure.in; then
26689 ac_sub_configure=$ac_configure
26691 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26692 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26696 # The recursion is here.
26697 if test -n "$ac_sub_configure"; then
26698 # Make the cache file name correct relative to the subdirectory.
26699 case $cache_file in
26700 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26701 *) # Relative path.
26702 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26705 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26706 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26707 # The eval makes quoting arguments work.
26708 eval $ac_sub_configure $ac_sub_configure_args \
26709 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26710 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26711 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26712 { (exit 1); exit 1; }; }