2 # From configure.in Revision: 1.232 .
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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 $LTDL_SUBDIRS $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 LTDL_SUBDIRS 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"
2089 || test ! -s conftest.err'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; } &&
2095 { ac_try='test -s conftest.$ac_objext'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; }; then
2103 echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2112 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2113 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2114 GCC=`test $ac_compiler_gnu = yes && echo yes`
2115 ac_test_CFLAGS=${CFLAGS+set}
2116 ac_save_CFLAGS=$CFLAGS
2118 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2119 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_g+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 cat >conftest.$ac_ext <<_ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>conftest.er1
2142 grep -v '^ *+' conftest.er1 >conftest.err
2144 cat conftest.err >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); } &&
2147 { ac_try='test -z "$ac_c_werror_flag"
2148 || test ! -s conftest.err'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2170 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2171 if test "$ac_test_CFLAGS" = set; then
2172 CFLAGS=$ac_save_CFLAGS
2173 elif test $ac_cv_prog_cc_g = yes; then
2174 if test "$GCC" = yes; then
2180 if test "$GCC" = yes; then
2186 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2187 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2188 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 ac_cv_prog_cc_stdc=no
2193 cat >conftest.$ac_ext <<_ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2201 #include <sys/types.h>
2202 #include <sys/stat.h>
2203 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2204 struct buf { int x; };
2205 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2206 static char *e (p, i)
2212 static char *f (char * (*g) (char **, int), char **p, ...)
2217 s = g (p, va_arg (v,int));
2222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2223 function prototypes and stuff, but not '\xHH' hex character constants.
2224 These don't provoke an error unfortunately, instead are silently treated
2225 as 'x'. The following induces an error, until -std1 is added to get
2226 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2227 array size at least. It's necessary to write '\x00'==0 to get something
2228 that's true only with -std1. */
2229 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2231 int test (int i, double x);
2232 struct s1 {int (*f) (int a);};
2233 struct s2 {int (*f) (double a);};
2234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2240 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2245 # Don't try gcc -ansi; that turns off useful extensions and
2246 # breaks some systems' header files.
2247 # AIX -qlanglvl=ansi
2248 # Ultrix and OSF/1 -std1
2249 # HP-UX 10.20 and later -Ae
2250 # HP-UX older versions -Aa -D_HPUX_SOURCE
2251 # SVR4 -Xc -D__EXTENSIONS__
2252 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2254 CC="$ac_save_CC $ac_arg"
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 ac_cv_prog_cc_stdc=$ac_arg
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.err conftest.$ac_objext
2286 rm -f conftest.$ac_ext conftest.$ac_objext
2291 case "x$ac_cv_prog_cc_stdc" in
2293 echo "$as_me:$LINENO: result: none needed" >&5
2294 echo "${ECHO_T}none needed" >&6 ;;
2296 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2298 CC="$CC $ac_cv_prog_cc_stdc" ;;
2301 # Some people use a C++ compiler to compile C. Since we use `exit',
2302 # in C++ we need to declare it. In case someone uses the same compiler
2303 # for both compiling C and C++ we need to have the C++ compiler decide
2304 # the declaration of exit, since it's the most demanding environment.
2305 cat >conftest.$ac_ext <<_ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2314 grep -v '^ *+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 for ac_declaration in \
2334 'extern "C" void std::exit (int) throw (); using std::exit;' \
2335 'extern "C" void std::exit (int); using std::exit;' \
2336 'extern "C" void exit (int) throw ();' \
2337 'extern "C" void exit (int);' \
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>conftest.er1
2360 grep -v '^ *+' conftest.er1 >conftest.err
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -z "$ac_c_werror_flag"
2366 || test ! -s conftest.err'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; } &&
2372 { ac_try='test -s conftest.$ac_objext'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; }; then
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2386 cat >conftest.$ac_ext <<_ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2405 grep -v '^ *+' conftest.er1 >conftest.err
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag"
2411 || test ! -s conftest.err'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2432 if test -n "$ac_declaration"; then
2433 echo '#ifdef __cplusplus' >>confdefs.h
2434 echo $ac_declaration >>confdefs.h
2435 echo '#endif' >>confdefs.h
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ac_cpp='$CPP $CPPFLAGS'
2446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 ac_cpp='$CXXCPP $CPPFLAGS'
2452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2455 if test -n "$ac_tool_prefix"; then
2456 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2460 echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2462 if test "${ac_cv_prog_CXX+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 if test -n "$CXX"; then
2466 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2475 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 if test -n "$CXX"; then
2486 echo "$as_me:$LINENO: result: $CXX" >&5
2487 echo "${ECHO_T}$CXX" >&6
2489 echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6
2493 test -n "$CXX" && break
2496 if test -z "$CXX"; then
2498 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2500 # Extract the first word of "$ac_prog", so it can be a program name with args.
2501 set dummy $ac_prog; ac_word=$2
2502 echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2504 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$ac_ct_CXX"; then
2508 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517 ac_cv_prog_ac_ct_CXX="$ac_prog"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2527 if test -n "$ac_ct_CXX"; then
2528 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2529 echo "${ECHO_T}$ac_ct_CXX" >&6
2531 echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2535 test -n "$ac_ct_CXX" && break
2537 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2543 # Provide some information about the compiler.
2544 echo "$as_me:$LINENO:" \
2545 "checking for C++ compiler version" >&5
2546 ac_compiler=`set X $ac_compile; echo $2`
2547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2548 (eval $ac_compiler --version </dev/null >&5) 2>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }
2552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2553 (eval $ac_compiler -v </dev/null >&5) 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }
2557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2558 (eval $ac_compiler -V </dev/null >&5) 2>&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }
2563 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2564 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2565 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 cat >conftest.$ac_ext <<_ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>conftest.er1
2590 grep -v '^ *+' conftest.er1 >conftest.err
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try='test -z "$ac_cxx_werror_flag"
2596 || test ! -s conftest.err'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; } &&
2602 { ac_try='test -s conftest.$ac_objext'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2619 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2620 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2621 GXX=`test $ac_compiler_gnu = yes && echo yes`
2622 ac_test_CXXFLAGS=${CXXFLAGS+set}
2623 ac_save_CXXFLAGS=$CXXFLAGS
2625 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2626 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2627 if test "${ac_cv_prog_cxx_g+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 cat >conftest.$ac_ext <<_ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>conftest.er1
2649 grep -v '^ *+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -z "$ac_cxx_werror_flag"
2655 || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 ac_cv_prog_cxx_g=yes
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2677 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2678 if test "$ac_test_CXXFLAGS" = set; then
2679 CXXFLAGS=$ac_save_CXXFLAGS
2680 elif test $ac_cv_prog_cxx_g = yes; then
2681 if test "$GXX" = yes; then
2687 if test "$GXX" = yes; then
2693 for ac_declaration in \
2695 'extern "C" void std::exit (int) throw (); using std::exit;' \
2696 'extern "C" void std::exit (int); using std::exit;' \
2697 'extern "C" void exit (int) throw ();' \
2698 'extern "C" void exit (int);' \
2701 cat >conftest.$ac_ext <<_ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2721 grep -v '^ *+' conftest.er1 >conftest.err
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_cxx_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2747 cat >conftest.$ac_ext <<_ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1 >conftest.err
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_cxx_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 if test -n "$ac_declaration"; then
2794 echo '#ifdef __cplusplus' >>confdefs.h
2795 echo $ac_declaration >>confdefs.h
2796 echo '#endif' >>confdefs.h
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 ac_cpp='$CPP $CPPFLAGS'
2809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2813 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2814 # On Suns, sometimes $CPP names a directory.
2815 if test -n "$CPP" && test -d "$CPP"; then
2818 if test -z "$CPP"; then
2819 if test "${ac_cv_prog_CPP+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 # Double quotes because CPP needs to be expanded
2823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2826 for ac_c_preproc_warn_flag in '' yes
2828 # Use a header file that comes with gcc, so configuring glibc
2829 # with a fresh cross-compiler works.
2830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2831 # <limits.h> exists even on freestanding compilers.
2832 # On the NeXT, cc -E runs the code through the compiler's parser,
2833 # not just through cpp. "Syntax error" is here to catch this case.
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2841 # include <limits.h>
2843 # include <assert.h>
2847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2850 grep -v '^ *+' conftest.er1 >conftest.err
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } >/dev/null; then
2855 if test -s conftest.err; then
2856 ac_cpp_err=$ac_c_preproc_warn_flag
2857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2864 if test -z "$ac_cpp_err"; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 # Broken: fails on valid input.
2873 rm -f conftest.err conftest.$ac_ext
2875 # OK, works on sane cases. Now check whether non-existent headers
2876 # can be detected and how.
2877 cat >conftest.$ac_ext <<_ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <ac_nonexistent.h>
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_c_preproc_warn_flag
2895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902 if test -z "$ac_cpp_err"; then
2903 # Broken: success on invalid input.
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 # Passes both tests.
2913 rm -f conftest.err conftest.$ac_ext
2916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2917 rm -f conftest.err conftest.$ac_ext
2918 if $ac_preproc_ok; then
2930 echo "$as_me:$LINENO: result: $CPP" >&5
2931 echo "${ECHO_T}$CPP" >&6
2933 for ac_c_preproc_warn_flag in '' yes
2935 # Use a header file that comes with gcc, so configuring glibc
2936 # with a fresh cross-compiler works.
2937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938 # <limits.h> exists even on freestanding compilers.
2939 # On the NeXT, cc -E runs the code through the compiler's parser,
2940 # not just through cpp. "Syntax error" is here to catch this case.
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2948 # include <limits.h>
2950 # include <assert.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2971 if test -z "$ac_cpp_err"; then
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2977 # Broken: fails on valid input.
2980 rm -f conftest.err conftest.$ac_ext
2982 # OK, works on sane cases. Now check whether non-existent headers
2983 # can be detected and how.
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 #include <ac_nonexistent.h>
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null; then
3000 if test -s conftest.err; then
3001 ac_cpp_err=$ac_c_preproc_warn_flag
3002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3009 if test -z "$ac_cpp_err"; then
3010 # Broken: success on invalid input.
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 # Passes both tests.
3020 rm -f conftest.err conftest.$ac_ext
3023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024 rm -f conftest.err conftest.$ac_ext
3025 if $ac_preproc_ok; then
3028 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042 echo "$as_me:$LINENO: checking for egrep" >&5
3043 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3044 if test "${ac_cv_prog_egrep+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3048 then ac_cv_prog_egrep='grep -E'
3049 else ac_cv_prog_egrep='egrep'
3052 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3053 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3054 EGREP=$ac_cv_prog_egrep
3058 echo "$as_me:$LINENO: checking for AIX" >&5
3059 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3072 $EGREP "yes" >/dev/null 2>&1; then
3073 echo "$as_me:$LINENO: result: yes" >&5
3074 echo "${ECHO_T}yes" >&6
3075 cat >>confdefs.h <<\_ACEOF
3076 #define _ALL_SOURCE 1
3080 echo "$as_me:$LINENO: result: no" >&5
3081 echo "${ECHO_T}no" >&6
3087 if test $ac_cv_c_compiler_gnu = yes; then
3088 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3089 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3090 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 ac_pattern="Autoconf.*'x'"
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3104 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3105 ac_cv_prog_gcc_traditional=yes
3107 ac_cv_prog_gcc_traditional=no
3112 if test $ac_cv_prog_gcc_traditional = no; then
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3123 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3124 ac_cv_prog_gcc_traditional=yes
3130 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3131 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3132 if test $ac_cv_prog_gcc_traditional = yes; then
3133 CC="$CC -traditional"
3137 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3138 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
3139 if test "${ac_cv_prog_suncc+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 cat > conftest.c <<EOF
3147 if { ac_try='${CC-cc} -E conftest.c'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3153 ac_cv_prog_suncc=yes
3158 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3159 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 if test -n "$RANLIB"; then
3169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 RANLIB=$ac_cv_prog_RANLIB
3188 if test -n "$RANLIB"; then
3189 echo "$as_me:$LINENO: result: $RANLIB" >&5
3190 echo "${ECHO_T}$RANLIB" >&6
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$ac_cv_prog_RANLIB"; then
3198 ac_ct_RANLIB=$RANLIB
3199 # Extract the first word of "ranlib", so it can be a program name with args.
3200 set dummy ranlib; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 if test -n "$ac_ct_RANLIB"; then
3207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_RANLIB="ranlib"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3227 if test -n "$ac_ct_RANLIB"; then
3228 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3229 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 RANLIB=$ac_ct_RANLIB
3237 RANLIB="$ac_cv_prog_RANLIB"
3241 # Check whether --enable-largefile or --disable-largefile was given.
3242 if test "${enable_largefile+set}" = set; then
3243 enableval="$enable_largefile"
3246 if test "$enable_largefile" != no; then
3248 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3249 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3250 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 ac_cv_sys_largefile_CC=no
3254 if test "$GCC" != yes; then
3257 # IRIX 6.2 and later do not support large files by default,
3258 # so use the C compiler's -n32 option if that helps.
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265 #include <sys/types.h>
3266 /* Check that off_t can represent 2**63 - 1 correctly.
3267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3268 since some C++ compilers masquerading as C compilers
3269 incorrectly reject 9223372036854775807. */
3270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3272 && LARGE_OFF_T % 2147483647 == 1)
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3286 grep -v '^ *+' conftest.er1 >conftest.err
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3310 rm -f conftest.err conftest.$ac_objext
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_sys_largefile_CC=' -n32'; break
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3340 rm -f conftest.err conftest.$ac_objext
3344 rm -f conftest.$ac_ext
3347 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3348 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3349 if test "$ac_cv_sys_largefile_CC" != no; then
3350 CC=$CC$ac_cv_sys_largefile_CC
3353 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3354 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3355 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 ac_cv_sys_file_offset_bits=no
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3366 #include <sys/types.h>
3367 /* Check that off_t can represent 2**63 - 1 correctly.
3368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3369 since some C++ compilers masquerading as C compilers
3370 incorrectly reject 9223372036854775807. */
3371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3373 && LARGE_OFF_T % 2147483647 == 1)
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 #define _FILE_OFFSET_BITS 64
3419 #include <sys/types.h>
3420 /* Check that off_t can represent 2**63 - 1 correctly.
3421 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3422 since some C++ compilers masquerading as C compilers
3423 incorrectly reject 9223372036854775807. */
3424 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3425 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3426 && LARGE_OFF_T % 2147483647 == 1)
3436 rm -f conftest.$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -z "$ac_c_werror_flag"
3446 || test ! -s conftest.err'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 ac_cv_sys_file_offset_bits=64; break
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3468 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3469 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3470 if test "$ac_cv_sys_file_offset_bits" != no; then
3472 cat >>confdefs.h <<_ACEOF
3473 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3478 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3479 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3480 if test "${ac_cv_sys_large_files+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 ac_cv_sys_large_files=no
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491 #include <sys/types.h>
3492 /* Check that off_t can represent 2**63 - 1 correctly.
3493 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3494 since some C++ compilers masquerading as C compilers
3495 incorrectly reject 9223372036854775807. */
3496 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3498 && LARGE_OFF_T % 2147483647 == 1)
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3512 grep -v '^ *+' conftest.er1 >conftest.err
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #define _LARGE_FILES 1
3544 #include <sys/types.h>
3545 /* Check that off_t can represent 2**63 - 1 correctly.
3546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3547 since some C++ compilers masquerading as C compilers
3548 incorrectly reject 9223372036854775807. */
3549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3551 && LARGE_OFF_T % 2147483647 == 1)
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_cv_sys_large_files=1; break
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3593 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3594 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3595 if test "$ac_cv_sys_large_files" != no; then
3597 cat >>confdefs.h <<_ACEOF
3598 #define _LARGE_FILES $ac_cv_sys_large_files
3606 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3607 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3608 if test "${ac_cv_c_bigendian+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 # See if sys/param.h defines the BYTE_ORDER macro.
3612 cat >conftest.$ac_ext <<_ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 #include <sys/types.h>
3619 #include <sys/param.h>
3624 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -z "$ac_c_werror_flag"
3642 || test ! -s conftest.err'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 # It does; now see whether it defined to BIG_ENDIAN or not.
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 #include <sys/types.h>
3662 #include <sys/param.h>
3667 #if BYTE_ORDER != BIG_ENDIAN
3675 rm -f conftest.$ac_objext
3676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -z "$ac_c_werror_flag"
3685 || test ! -s conftest.err'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_cv_c_bigendian=yes
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 ac_cv_c_bigendian=no
3704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 # It does not; compile a test program.
3710 if test "$cross_compiling" = yes; then
3711 # try to guess the endianness by grepping values into an object file
3712 ac_cv_c_bigendian=unknown
3713 cat >conftest.$ac_ext <<_ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3720 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3721 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3722 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3723 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3724 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3728 _ascii (); _ebcdic ();
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>conftest.er1
3737 grep -v '^ *+' conftest.er1 >conftest.err
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -z "$ac_c_werror_flag"
3743 || test ! -s conftest.err'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; } &&
3749 { ac_try='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3756 ac_cv_c_bigendian=yes
3758 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3759 if test "$ac_cv_c_bigendian" = unknown; then
3760 ac_cv_c_bigendian=no
3762 # finding both strings is unlikely to happen, but who knows?
3763 ac_cv_c_bigendian=unknown
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3782 /* Are we little or big endian? From Harbison&Steele. */
3786 char c[sizeof (long)];
3789 exit (u.c[sizeof (long) - 1] == 1);
3792 rm -f conftest$ac_exeext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794 (eval $ac_link) 2>&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 ac_cv_c_bigendian=no
3805 echo "$as_me: program exited with status $ac_status" >&5
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3810 ac_cv_c_bigendian=yes
3812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3818 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3819 case $ac_cv_c_bigendian in
3822 cat >>confdefs.h <<\_ACEOF
3823 #define WORDS_BIGENDIAN 1
3829 { { echo "$as_me:$LINENO: error: unknown endianness
3830 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3831 echo "$as_me: error: unknown endianness
3832 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3833 { (exit 1); exit 1; }; } ;;
3837 # Extract the first word of "gmake", so it can be a program name with args.
3838 set dummy gmake; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_prog_GMAKE+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 if test -n "$GMAKE"; then
3845 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854 ac_cv_prog_GMAKE="yes"
3855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3864 GMAKE=$ac_cv_prog_GMAKE
3865 if test -n "$GMAKE"; then
3866 echo "$as_me:$LINENO: result: $GMAKE" >&5
3867 echo "${ECHO_T}$GMAKE" >&6
3869 echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3873 if test $GMAKE = no; then
3874 # Extract the first word of "make", so it can be a program name with args.
3875 set dummy make; ac_word=$2
3876 echo "$as_me:$LINENO: checking for $ac_word" >&5
3877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878 if test "${ac_cv_path_MAKE+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3904 MAKE=$ac_cv_path_MAKE
3906 if test -n "$MAKE"; then
3907 echo "$as_me:$LINENO: result: $MAKE" >&5
3908 echo "${ECHO_T}$MAKE" >&6
3910 echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3915 # Extract the first word of "gmake", so it can be a program name with args.
3916 set dummy gmake; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_path_MAKE+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3945 MAKE=$ac_cv_path_MAKE
3947 if test -n "$MAKE"; then
3948 echo "$as_me:$LINENO: result: $MAKE" >&5
3949 echo "${ECHO_T}$MAKE" >&6
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3956 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3957 if test -z "$makever"; then
3958 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3959 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3960 echo "$as_me: error: GNU Make is not installed. Please download and install it
3961 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3962 { (exit 1); exit 1; }; }
3965 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3966 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3967 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_check_lib_save_LIBS=$LIBS
3972 cat >conftest.$ac_ext <<_ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3979 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3996 (eval $ac_link) 2>conftest.er1
3998 grep -v '^ *+' conftest.er1 >conftest.err
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try='test -z "$ac_c_werror_flag"
4004 || test ! -s conftest.err'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; } &&
4010 { ac_try='test -s conftest$ac_exeext'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; }; then
4016 ac_cv_lib_ltdl_lt_dlinit=yes
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 ac_cv_lib_ltdl_lt_dlinit=no
4023 rm -f conftest.err conftest.$ac_objext \
4024 conftest$ac_exeext conftest.$ac_ext
4025 LIBS=$ac_check_lib_save_LIBS
4027 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4028 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
4029 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4030 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4032 if test x"$enable_ltdl_install" = xno; then
4033 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4034 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4036 enable_ltdl_install=yes
4041 if test x"$enable_ltdl_install" = x"yes"; then
4042 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4043 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4044 LTDLINCL='-I${top_srcdir}/''libltdl'
4046 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4050 # For backwards non-gettext consistent compatibility...
4054 if test x"$enable_ltdl_install" = x"yes"; then
4055 LTDL_SUBDIRS=libltdl
4059 # Check whether --enable-shared or --disable-shared was given.
4060 if test "${enable_shared+set}" = set; then
4061 enableval="$enable_shared"
4062 p=${PACKAGE-default}
4064 yes) enable_shared=yes ;;
4065 no) enable_shared=no ;;
4068 # Look at the argument we got. We use all the common list separators.
4069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4070 for pkg in $enableval; do
4072 if test "X$pkg" = "X$p"; then
4083 # Check whether --enable-static or --disable-static was given.
4084 if test "${enable_static+set}" = set; then
4085 enableval="$enable_static"
4086 p=${PACKAGE-default}
4088 yes) enable_static=yes ;;
4089 no) enable_static=no ;;
4092 # Look at the argument we got. We use all the common list separators.
4093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094 for pkg in $enableval; do
4096 if test "X$pkg" = "X$p"; then
4107 # Check whether --enable-fast-install or --disable-fast-install was given.
4108 if test "${enable_fast_install+set}" = set; then
4109 enableval="$enable_fast_install"
4110 p=${PACKAGE-default}
4112 yes) enable_fast_install=yes ;;
4113 no) enable_fast_install=no ;;
4115 enable_fast_install=no
4116 # Look at the argument we got. We use all the common list separators.
4117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4118 for pkg in $enableval; do
4120 if test "X$pkg" = "X$p"; then
4121 enable_fast_install=yes
4128 enable_fast_install=yes
4132 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4133 if test -f $ac_dir/install-sh; then
4135 ac_install_sh="$ac_aux_dir/install-sh -c"
4137 elif test -f $ac_dir/install.sh; then
4139 ac_install_sh="$ac_aux_dir/install.sh -c"
4141 elif test -f $ac_dir/shtool; then
4143 ac_install_sh="$ac_aux_dir/shtool install -c"
4147 if test -z "$ac_aux_dir"; then
4148 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4149 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4150 { (exit 1); exit 1; }; }
4152 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4153 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4154 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4156 # Make sure we can run config.sub.
4157 $ac_config_sub sun4 >/dev/null 2>&1 ||
4158 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4159 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4160 { (exit 1); exit 1; }; }
4162 echo "$as_me:$LINENO: checking build system type" >&5
4163 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4164 if test "${ac_cv_build+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 ac_cv_build_alias=$build_alias
4168 test -z "$ac_cv_build_alias" &&
4169 ac_cv_build_alias=`$ac_config_guess`
4170 test -z "$ac_cv_build_alias" &&
4171 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4172 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4173 { (exit 1); exit 1; }; }
4174 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4175 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4176 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4177 { (exit 1); exit 1; }; }
4180 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4181 echo "${ECHO_T}$ac_cv_build" >&6
4183 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4184 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4185 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4188 echo "$as_me:$LINENO: checking host system type" >&5
4189 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4190 if test "${ac_cv_host+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 ac_cv_host_alias=$host_alias
4194 test -z "$ac_cv_host_alias" &&
4195 ac_cv_host_alias=$ac_cv_build_alias
4196 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4197 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4198 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4199 { (exit 1); exit 1; }; }
4202 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4203 echo "${ECHO_T}$ac_cv_host" >&6
4205 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4206 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4207 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4210 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4211 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4212 if test "${lt_cv_path_SED+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 # Loop through the user's path and test for sed and gsed.
4216 # Then use that list of sed's as ones to test for truncation.
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 test -z "$as_dir" && as_dir=.
4222 for lt_ac_prog in sed gsed; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4225 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4232 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4233 # along with /bin/sed that truncates output.
4234 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4235 test ! -f $lt_ac_sed && continue
4236 cat /dev/null > conftest.in
4238 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4239 # Check for GNU sed and select it if it is found.
4240 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4241 lt_cv_path_SED=$lt_ac_sed
4245 cat conftest.in conftest.in >conftest.tmp
4246 mv conftest.tmp conftest.in
4247 cp conftest.in conftest.nl
4249 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4250 cmp -s conftest.out conftest.nl || break
4251 # 10000 chars as input seems more than enough
4252 test $lt_ac_count -gt 10 && break
4253 lt_ac_count=`expr $lt_ac_count + 1`
4254 if test $lt_ac_count -gt $lt_ac_max; then
4255 lt_ac_max=$lt_ac_count
4256 lt_cv_path_SED=$lt_ac_sed
4264 echo "$as_me:$LINENO: result: $SED" >&5
4265 echo "${ECHO_T}$SED" >&6
4268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4269 if test "${with_gnu_ld+set}" = set; then
4270 withval="$with_gnu_ld"
4271 test "$withval" = no || with_gnu_ld=yes
4276 if test "$GCC" = yes; then
4277 # Check if gcc -print-prog-name=ld gives a path.
4278 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4279 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4282 # gcc leaves a trailing carriage return which upsets mingw
4283 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4285 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4288 # Accept absolute paths.
4290 re_direlt='/[^/][^/]*/\.\./'
4291 # Canonicalize the pathname of ld
4292 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4293 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4294 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4296 test -z "$LD" && LD="$ac_prog"
4299 # If it fails, then pretend we aren't using GCC.
4303 # If it is relative, then search for the first ld in PATH.
4307 elif test "$with_gnu_ld" = yes; then
4308 echo "$as_me:$LINENO: checking for GNU ld" >&5
4309 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4311 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4312 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4314 if test "${lt_cv_path_LD+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 if test -z "$LD"; then
4318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4319 for ac_dir in $PATH; do
4321 test -z "$ac_dir" && ac_dir=.
4322 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4323 lt_cv_path_LD="$ac_dir/$ac_prog"
4324 # Check to see if the program is GNU ld. I'd rather use --version,
4325 # but apparently some variants of GNU ld only accept -v.
4326 # Break only if it was the GNU/non-GNU ld that we prefer.
4327 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4328 *GNU* | *'with BFD'*)
4329 test "$with_gnu_ld" != no && break
4332 test "$with_gnu_ld" != yes && break
4339 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4344 if test -n "$LD"; then
4345 echo "$as_me:$LINENO: result: $LD" >&5
4346 echo "${ECHO_T}$LD" >&6
4348 echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4351 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4352 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4353 { (exit 1); exit 1; }; }
4354 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4355 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4356 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4360 case `$LD -v 2>&1 </dev/null` in
4361 *GNU* | *'with BFD'*)
4362 lt_cv_prog_gnu_ld=yes
4365 lt_cv_prog_gnu_ld=no
4369 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4370 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4371 with_gnu_ld=$lt_cv_prog_gnu_ld
4374 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4375 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4376 if test "${lt_cv_ld_reload_flag+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 lt_cv_ld_reload_flag='-r'
4381 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4382 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4383 reload_flag=$lt_cv_ld_reload_flag
4384 case $reload_flag in
4386 *) reload_flag=" $reload_flag" ;;
4388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4391 if test "$GCC" = yes; then
4392 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4399 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4400 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4401 if test "${lt_cv_path_NM+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 if test -n "$NM"; then
4405 # Let the user override the test.
4408 lt_nm_to_check="${ac_tool_prefix}nm"
4409 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4410 lt_nm_to_check="$lt_nm_to_check nm"
4412 for lt_tmp_nm in $lt_nm_to_check; do
4413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4414 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4416 test -z "$ac_dir" && ac_dir=.
4417 tmp_nm="$ac_dir/$lt_tmp_nm"
4418 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4419 # Check to see if the nm accepts a BSD-compat flag.
4420 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4421 # nm: unknown option "B" ignored
4422 # Tru64's nm complains that /dev/null is an invalid object file
4423 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4424 */dev/null* | *'Invalid file or object type'*)
4425 lt_cv_path_NM="$tmp_nm -B"
4429 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4431 lt_cv_path_NM="$tmp_nm -p"
4435 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4436 continue # so that we can try to find one that supports BSD flags
4445 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4448 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4449 echo "${ECHO_T}$lt_cv_path_NM" >&6
4452 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4453 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4455 if test "$LN_S" = "ln -s"; then
4456 echo "$as_me:$LINENO: result: yes" >&5
4457 echo "${ECHO_T}yes" >&6
4459 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4460 echo "${ECHO_T}no, using $LN_S" >&6
4463 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4464 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4465 if test "${lt_cv_deplibs_check_method+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 lt_cv_file_magic_cmd='$MAGIC_CMD'
4469 lt_cv_file_magic_test_file=
4470 lt_cv_deplibs_check_method='unknown'
4471 # Need to set the preceding variable on all platforms that support
4472 # interlibrary dependencies.
4473 # 'none' -- dependencies not supported.
4474 # `unknown' -- same as none, but documents that we really don't know.
4475 # 'pass_all' -- all dependencies passed with no checks.
4476 # 'test_compile' -- check by making test program.
4477 # 'file_magic [[regex]]' -- check by looking for files in library path
4478 # which responds to the $file_magic_cmd with a given extended regex.
4479 # If you have `file' or equivalent on your system and you're not sure
4480 # whether `pass_all' will *always* work, you probably want this one.
4484 lt_cv_deplibs_check_method=pass_all
4488 lt_cv_deplibs_check_method=pass_all
4492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4493 lt_cv_file_magic_cmd='/usr/bin/file -L'
4494 lt_cv_file_magic_test_file=/shlib/libc.so
4498 # func_win32_libid is a shell function defined in ltmain.sh
4499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4500 lt_cv_file_magic_cmd='func_win32_libid'
4504 # Base MSYS/MinGW do not provide the 'file' command needed by
4505 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4506 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4507 lt_cv_file_magic_cmd='$OBJDUMP -f'
4510 darwin* | rhapsody*)
4511 lt_cv_deplibs_check_method=pass_all
4514 freebsd* | kfreebsd*-gnu | dragonfly*)
4515 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4518 # Not sure whether the presence of OpenBSD here was a mistake.
4519 # Let's accept both of them until this is cleared up.
4520 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4521 lt_cv_file_magic_cmd=/usr/bin/file
4522 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4526 lt_cv_deplibs_check_method=pass_all
4531 lt_cv_deplibs_check_method=pass_all
4534 hpux10.20* | hpux11*)
4535 lt_cv_file_magic_cmd=/usr/bin/file
4538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4539 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4542 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]'
4543 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4547 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4553 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4557 irix5* | irix6* | nonstopux*)
4559 *-32|*"-32 ") libmagic=32-bit;;
4560 *-n32|*"-n32 ") libmagic=N32;;
4561 *-64|*"-64 ") libmagic=64-bit;;
4562 *) libmagic=never-match;;
4564 lt_cv_deplibs_check_method=pass_all
4567 # This must be Linux ELF.
4569 lt_cv_deplibs_check_method=pass_all
4573 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4582 lt_cv_file_magic_cmd=/usr/bin/file
4583 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4587 lt_cv_deplibs_check_method=unknown
4591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4598 osf3* | osf4* | osf5*)
4599 lt_cv_deplibs_check_method=pass_all
4603 lt_cv_deplibs_check_method=pass_all
4607 case $host_vendor in
4609 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]'
4610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4613 lt_cv_deplibs_check_method=pass_all
4616 lt_cv_file_magic_cmd='/bin/file'
4617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4620 lt_cv_file_magic_cmd='/bin/file'
4621 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4622 lt_cv_file_magic_test_file=/lib/libc.so
4625 lt_cv_deplibs_check_method=pass_all
4628 lt_cv_deplibs_check_method=pass_all
4633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4634 lt_cv_deplibs_check_method=pass_all
4639 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4640 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4641 file_magic_cmd=$lt_cv_file_magic_cmd
4642 deplibs_check_method=$lt_cv_deplibs_check_method
4643 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4648 # If no C compiler was specified, use CC.
4651 # If no C compiler flags were specified, use CFLAGS.
4652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4654 # Allow CC to be a program name with arguments.
4657 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4658 if test "${enable_libtool_lock+set}" = set; then
4659 enableval="$enable_libtool_lock"
4662 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4664 # Some flags need to be propagated to the compiler or linker for good
4668 # Find out which ABI we are using.
4669 echo 'int i;' > conftest.$ac_ext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; then
4675 case `/usr/bin/file conftest.$ac_objext` in
4687 # Find out which ABI we are using.
4688 echo '#line 4688 "configure"' > conftest.$ac_ext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; then
4694 if test "$lt_cv_prog_gnu_ld" = yes; then
4695 case `/usr/bin/file conftest.$ac_objext` in
4697 LD="${LD-ld} -melf32bsmip"
4700 LD="${LD-ld} -melf32bmipn32"
4703 LD="${LD-ld} -melf64bmip"
4707 case `/usr/bin/file conftest.$ac_objext` in
4723 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4724 # Find out which ABI we are using.
4725 echo 'int i;' > conftest.$ac_ext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727 (eval $ac_compile) 2>&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; then
4731 case `/usr/bin/file conftest.o` in
4735 LD="${LD-ld} -m elf_i386"
4737 ppc64-*linux*|powerpc64-*linux*)
4738 LD="${LD-ld} -m elf32ppclinux"
4741 LD="${LD-ld} -m elf_s390"
4744 LD="${LD-ld} -m elf32_sparc"
4751 LD="${LD-ld} -m elf_x86_64"
4753 ppc*-*linux*|powerpc*-*linux*)
4754 LD="${LD-ld} -m elf64ppc"
4757 LD="${LD-ld} -m elf64_s390"
4760 LD="${LD-ld} -m elf64_sparc"
4770 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4771 SAVE_CFLAGS="$CFLAGS"
4772 CFLAGS="$CFLAGS -belf"
4773 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4774 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4775 if test "${lt_cv_cc_needs_belf+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 ac_cpp='$CPP $CPPFLAGS'
4780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 cat >conftest.$ac_ext <<_ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4799 rm -f conftest.$ac_objext conftest$ac_exeext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801 (eval $ac_link) 2>conftest.er1
4803 grep -v '^ *+' conftest.er1 >conftest.err
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest$ac_exeext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 lt_cv_cc_needs_belf=yes
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 lt_cv_cc_needs_belf=no
4828 rm -f conftest.err conftest.$ac_objext \
4829 conftest$ac_exeext conftest.$ac_ext
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4838 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4839 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4840 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4841 CFLAGS="$SAVE_CFLAGS"
4845 # Find out which ABI we are using.
4846 echo 'int i;' > conftest.$ac_ext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848 (eval $ac_compile) 2>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; then
4852 case `/usr/bin/file conftest.o` in
4854 case $lt_cv_prog_gnu_ld in
4855 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4856 *) LD="${LD-ld} -64" ;;
4867 need_locks="$enable_libtool_lock"
4870 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4871 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4872 if test "${ac_cv_header_stdc+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 cat >conftest.$ac_ext <<_ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4894 rm -f conftest.$ac_objext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4896 (eval $ac_compile) 2>conftest.er1
4898 grep -v '^ *+' conftest.er1 >conftest.err
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } &&
4903 { ac_try='test -z "$ac_c_werror_flag"
4904 || test ! -s conftest.err'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; } &&
4910 { ac_try='test -s conftest.$ac_objext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 ac_cv_header_stdc=yes
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 ac_cv_header_stdc=no
4923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925 if test $ac_cv_header_stdc = yes; then
4926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4937 $EGREP "memchr" >/dev/null 2>&1; then
4940 ac_cv_header_stdc=no
4946 if test $ac_cv_header_stdc = yes; then
4947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4958 $EGREP "free" >/dev/null 2>&1; then
4961 ac_cv_header_stdc=no
4967 if test $ac_cv_header_stdc = yes; then
4968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4969 if test "$cross_compiling" = yes; then
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4979 #if ((' ' & 0x0FF) == 0x020)
4980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4983 # define ISLOWER(c) \
4984 (('a' <= (c) && (c) <= 'i') \
4985 || ('j' <= (c) && (c) <= 'r') \
4986 || ('s' <= (c) && (c) <= 'z'))
4987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4995 for (i = 0; i < 256; i++)
4996 if (XOR (islower (i), ISLOWER (i))
4997 || toupper (i) != TOUPPER (i))
5002 rm -f conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5015 echo "$as_me: program exited with status $ac_status" >&5
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5020 ac_cv_header_stdc=no
5022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5026 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5027 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5028 if test $ac_cv_header_stdc = yes; then
5030 cat >>confdefs.h <<\_ACEOF
5031 #define STDC_HEADERS 1
5036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5046 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5047 inttypes.h stdint.h unistd.h
5049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5050 echo "$as_me:$LINENO: checking for $ac_header" >&5
5051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 cat >conftest.$ac_ext <<_ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 $ac_includes_default
5063 #include <$ac_header>
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 eval "$as_ac_Header=yes"
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 eval "$as_ac_Header=no"
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5099 cat >>confdefs.h <<_ACEOF
5100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5109 for ac_header in dlfcn.h
5111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5113 echo "$as_me:$LINENO: checking for $ac_header" >&5
5114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5121 # Is the header compilable?
5122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5124 cat >conftest.$ac_ext <<_ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 $ac_includes_default
5131 #include <$ac_header>
5133 rm -f conftest.$ac_objext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135 (eval $ac_compile) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -z "$ac_c_werror_flag"
5143 || test ! -s conftest.err'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; } &&
5149 { ac_try='test -s conftest.$ac_objext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_header_compiler=yes
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5160 ac_header_compiler=no
5162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5164 echo "${ECHO_T}$ac_header_compiler" >&6
5166 # Is the header present?
5167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 #include <$ac_header>
5177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5180 grep -v '^ *+' conftest.er1 >conftest.err
5182 cat conftest.err >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } >/dev/null; then
5185 if test -s conftest.err; then
5186 ac_cpp_err=$ac_c_preproc_warn_flag
5187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5194 if test -z "$ac_cpp_err"; then
5195 ac_header_preproc=yes
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5200 ac_header_preproc=no
5202 rm -f conftest.err conftest.$ac_ext
5203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5204 echo "${ECHO_T}$ac_header_preproc" >&6
5206 # So? What about this header?
5207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5213 ac_header_preproc=yes
5216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5230 ## ------------------------------------------ ##
5231 ## Report this to the AC_PACKAGE_NAME lists. ##
5232 ## ------------------------------------------ ##
5235 sed "s/^/$as_me: WARNING: /" >&2
5238 echo "$as_me:$LINENO: checking for $ac_header" >&5
5239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 eval "$as_ac_Header=\$ac_header_preproc"
5245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5250 cat >>confdefs.h <<_ACEOF
5251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5260 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5261 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5262 (test "X$CXX" != "Xg++"))) ; then
5264 ac_cpp='$CXXCPP $CPPFLAGS'
5265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5268 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5269 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5270 if test -z "$CXXCPP"; then
5271 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 # Double quotes because CXXCPP needs to be expanded
5275 for CXXCPP in "$CXX -E" "/lib/cpp"
5278 for ac_cxx_preproc_warn_flag in '' yes
5280 # Use a header file that comes with gcc, so configuring glibc
5281 # with a fresh cross-compiler works.
5282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5283 # <limits.h> exists even on freestanding compilers.
5284 # On the NeXT, cc -E runs the code through the compiler's parser,
5285 # not just through cpp. "Syntax error" is here to catch this case.
5286 cat >conftest.$ac_ext <<_ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5293 # include <limits.h>
5295 # include <assert.h>
5299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1 >conftest.err
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } >/dev/null; then
5307 if test -s conftest.err; then
5308 ac_cpp_err=$ac_cxx_preproc_warn_flag
5309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5316 if test -z "$ac_cpp_err"; then
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5322 # Broken: fails on valid input.
5325 rm -f conftest.err conftest.$ac_ext
5327 # OK, works on sane cases. Now check whether non-existent headers
5328 # can be detected and how.
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 #include <ac_nonexistent.h>
5337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_cxx_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5354 if test -z "$ac_cpp_err"; then
5355 # Broken: success on invalid input.
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 # Passes both tests.
5365 rm -f conftest.err conftest.$ac_ext
5368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369 rm -f conftest.err conftest.$ac_ext
5370 if $ac_preproc_ok; then
5375 ac_cv_prog_CXXCPP=$CXXCPP
5378 CXXCPP=$ac_cv_prog_CXXCPP
5380 ac_cv_prog_CXXCPP=$CXXCPP
5382 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5383 echo "${ECHO_T}$CXXCPP" >&6
5385 for ac_cxx_preproc_warn_flag in '' yes
5387 # Use a header file that comes with gcc, so configuring glibc
5388 # with a fresh cross-compiler works.
5389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5390 # <limits.h> exists even on freestanding compilers.
5391 # On the NeXT, cc -E runs the code through the compiler's parser,
5392 # not just through cpp. "Syntax error" is here to catch this case.
5393 cat >conftest.$ac_ext <<_ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5400 # include <limits.h>
5402 # include <assert.h>
5406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5409 grep -v '^ *+' conftest.er1 >conftest.err
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } >/dev/null; then
5414 if test -s conftest.err; then
5415 ac_cpp_err=$ac_cxx_preproc_warn_flag
5416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5423 if test -z "$ac_cpp_err"; then
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5429 # Broken: fails on valid input.
5432 rm -f conftest.err conftest.$ac_ext
5434 # OK, works on sane cases. Now check whether non-existent headers
5435 # can be detected and how.
5436 cat >conftest.$ac_ext <<_ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <ac_nonexistent.h>
5444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5447 grep -v '^ *+' conftest.er1 >conftest.err
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } >/dev/null; then
5452 if test -s conftest.err; then
5453 ac_cpp_err=$ac_cxx_preproc_warn_flag
5454 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5461 if test -z "$ac_cpp_err"; then
5462 # Broken: success on invalid input.
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 # Passes both tests.
5472 rm -f conftest.err conftest.$ac_ext
5475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5476 rm -f conftest.err conftest.$ac_ext
5477 if $ac_preproc_ok; then
5480 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5481 See \`config.log' for more details." >&5
5482 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5483 See \`config.log' for more details." >&2;}
5484 { (exit 1); exit 1; }; }
5488 ac_cpp='$CXXCPP $CPPFLAGS'
5489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5497 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5498 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5500 if test -n "$ac_tool_prefix"; then
5501 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_F77+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 if test -n "$F77"; then
5511 ac_cv_prog_F77="$F77" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 if test -n "$F77"; then
5531 echo "$as_me:$LINENO: result: $F77" >&5
5532 echo "${ECHO_T}$F77" >&6
5534 echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6
5538 test -n "$F77" && break
5541 if test -z "$F77"; then
5543 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5545 # Extract the first word of "$ac_prog", so it can be a program name with args.
5546 set dummy $ac_prog; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 if test -n "$ac_ct_F77"; then
5553 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_ac_ct_F77="$ac_prog"
5563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5572 if test -n "$ac_ct_F77"; then
5573 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5574 echo "${ECHO_T}$ac_ct_F77" >&6
5576 echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5580 test -n "$ac_ct_F77" && break
5587 # Provide some information about the compiler.
5588 echo "$as_me:5588:" \
5589 "checking for Fortran 77 compiler version" >&5
5590 ac_compiler=`set X $ac_compile; echo $2`
5591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5592 (eval $ac_compiler --version </dev/null >&5) 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }
5596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5597 (eval $ac_compiler -v </dev/null >&5) 2>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }
5601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5602 (eval $ac_compiler -V </dev/null >&5) 2>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }
5608 # If we don't use `.F' as extension, the preprocessor is not run on the
5609 # input file. (Note that this only needs to work for GNU compilers.)
5612 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5613 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5614 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>conftest.er1
5629 grep -v '^ *+' conftest.er1 >conftest.err
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -z "$ac_f77_werror_flag"
5635 || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5655 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5658 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5659 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5661 ac_test_FFLAGS=${FFLAGS+set}
5662 ac_save_FFLAGS=$FFLAGS
5664 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5665 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5666 if test "${ac_cv_prog_f77_g+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 cat >conftest.$ac_ext <<_ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>conftest.er1
5679 grep -v '^ *+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -z "$ac_f77_werror_flag"
5685 || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_cv_prog_f77_g=yes
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5708 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5709 if test "$ac_test_FFLAGS" = set; then
5710 FFLAGS=$ac_save_FFLAGS
5711 elif test $ac_cv_prog_f77_g = yes; then
5712 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5718 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5725 G77=`test $ac_compiler_gnu = yes && echo yes`
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5736 # find the maximum length of command line arguments
5737 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5738 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5739 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 # On DJGPP, this test can blow up pretty badly due to problems in libc
5748 # (any single argument exceeding 2000 bytes causes a buffer overrun
5749 # during glob expansion). Even if it were fixed, the result of this
5750 # check would be larger than it should be.
5751 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5755 # Under GNU Hurd, this test is not required because there is
5756 # no limit to the length of command line arguments.
5757 # Libtool will interpret -1 as no limit whatsoever
5758 lt_cv_sys_max_cmd_len=-1;
5762 # On Win9x/ME, this test blows up -- it succeeds, but takes
5763 # about 5 minutes as the teststring grows exponentially.
5764 # Worse, since 9x/ME are not pre-emptively multitasking,
5765 # you end up with a "frozen" computer, even though with patience
5766 # the test eventually succeeds (with a max line length of 256k).
5767 # Instead, let's just punt: use the minimum linelength reported by
5768 # all of the supported platforms: 8192 (on NT/2K/XP).
5769 lt_cv_sys_max_cmd_len=8192;
5773 # On AmigaOS with pdksh, this test takes hours, literally.
5774 # So we just punt and use a minimum line length of 8192.
5775 lt_cv_sys_max_cmd_len=8192;
5778 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5779 # This has been around since 386BSD, at least. Likely further.
5780 if test -x /sbin/sysctl; then
5781 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5782 elif test -x /usr/sbin/sysctl; then
5783 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5785 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5787 # And add a safety zone
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5793 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5794 lt_cv_sys_max_cmd_len=196608
5798 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5799 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5800 # nice to cause kernel panics so lets avoid the loop below.
5801 # First set a reasonable default.
5802 lt_cv_sys_max_cmd_len=16384
5804 if test -x /sbin/sysconfig; then
5805 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5806 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5811 lt_cv_sys_max_cmd_len=102400
5813 sysv5* | sco5v6* | sysv4.2uw2*)
5814 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5815 if test -n "$kargmax"; then
5816 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5818 lt_cv_sys_max_cmd_len=32768
5822 # If test is not a shell built-in, we'll probably end up computing a
5823 # maximum length that is only half of the actual maximum length, but
5825 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5826 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5827 = "XX$teststring") >/dev/null 2>&1 &&
5828 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5829 lt_cv_sys_max_cmd_len=$new_result &&
5830 test $i != 17 # 1/2 MB should be enough
5833 teststring=$teststring$teststring
5836 # Add a significant safety factor because C++ compilers can tack on massive
5837 # amounts of additional arguments before passing them to the linker.
5838 # It appears as though 1/2 is a usable value.
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5845 if test -n $lt_cv_sys_max_cmd_len ; then
5846 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5847 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5849 echo "$as_me:$LINENO: result: none" >&5
5850 echo "${ECHO_T}none" >&6
5856 # Check for command to grab the raw symbol name followed by C symbol from nm.
5857 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5858 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5859 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 # These are sane defaults that work on at least a few old systems.
5864 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5866 # Character class describing NM global symbol codes.
5867 symcode='[BCDEGRST]'
5869 # Regexp to match symbols that can be accessed directly from C.
5870 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5872 # Transform an extracted symbol line into a proper C declaration
5873 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5875 # Transform an extracted symbol line into symbol name and symbol address
5876 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'"
5878 # Define system-specific variables.
5883 cygwin* | mingw* | pw32*)
5884 symcode='[ABCDGISTW]'
5886 hpux*) # Its linker distinguishes data from code symbols
5887 if test "$host_cpu" = ia64; then
5888 symcode='[ABCDEGRST]'
5890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5891 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'"
5894 if test "$host_cpu" = ia64; then
5895 symcode='[ABCDGIRSTW]'
5896 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5897 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'"
5901 symcode='[BCDEGRST]'
5904 symcode='[BCDEGQRST]'
5915 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5923 # Handle CRLF in mingw tool chain
5927 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5931 # If we're using GNU nm, then use its standard symbol codes.
5932 case `$NM -V 2>&1` in
5933 *GNU* | *'with BFD'*)
5934 symcode='[ABCDGIRSTW]' ;;
5937 # Try without a prefix undercore, then with it.
5938 for ac_symprfx in "" "_"; do
5940 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5941 symxfrm="\\1 $ac_symprfx\\2 \\2"
5943 # Write the raw and C identifiers.
5944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5946 # Check to see that the pipe works correctly.
5950 cat > conftest.$ac_ext <<EOF
5955 void nm_test_func(){}
5959 int main(){nm_test_var='a';nm_test_func();return(0);}
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; then
5967 # Now try to grab the symbols.
5969 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5970 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && test -s "$nlist"; then
5974 # Try sorting and uniquifying the output.
5975 if sort "$nlist" | uniq > "$nlist"T; then
5976 mv -f "$nlist"T "$nlist"
5981 # Make sure that we snagged all the symbols we need.
5982 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5983 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5984 cat <<EOF > conftest.$ac_ext
5990 # Now generate the symbol file.
5991 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5993 cat <<EOF >> conftest.$ac_ext
5994 #if defined (__STDC__) && __STDC__
5995 # define lt_ptr_t void *
5997 # define lt_ptr_t char *
6001 /* The mapping between symbol names and symbols. */
6006 lt_preloaded_symbols[] =
6009 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6010 cat <<\EOF >> conftest.$ac_ext
6018 # Now try linking the two files.
6019 mv conftest.$ac_objext conftstm.$ac_objext
6020 lt_save_LIBS="$LIBS"
6021 lt_save_CFLAGS="$CFLAGS"
6022 LIBS="conftstm.$ac_objext"
6023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025 (eval $ac_link) 2>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6031 LIBS="$lt_save_LIBS"
6032 CFLAGS="$lt_save_CFLAGS"
6034 echo "cannot find nm_test_func in $nlist" >&5
6037 echo "cannot find nm_test_var in $nlist" >&5
6040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6043 echo "$progname: failed program was:" >&5
6044 cat conftest.$ac_ext >&5
6046 rm -f conftest* conftst*
6048 # Do not use the global_symbol_pipe unless it works.
6049 if test "$pipe_works" = yes; then
6052 lt_cv_sys_global_symbol_pipe=
6058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6059 lt_cv_sys_global_symbol_to_cdecl=
6061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6062 echo "$as_me:$LINENO: result: failed" >&5
6063 echo "${ECHO_T}failed" >&6
6065 echo "$as_me:$LINENO: result: ok" >&5
6066 echo "${ECHO_T}ok" >&6
6069 echo "$as_me:$LINENO: checking for objdir" >&5
6070 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6071 if test "${lt_cv_objdir+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 rm -f .libs 2>/dev/null
6075 mkdir .libs 2>/dev/null
6076 if test -d .libs; then
6079 # MS-DOS does not allow filenames that begin with a dot.
6082 rmdir .libs 2>/dev/null
6084 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6085 echo "${ECHO_T}$lt_cv_objdir" >&6
6086 objdir=$lt_cv_objdir
6094 # AIX sometimes has problems with the GCC collect2 program. For some
6095 # reason, if we set the COLLECT_NAMES environment variable, the problems
6096 # vanish in a puff of smoke.
6097 if test "X${COLLECT_NAMES+set}" != Xset; then
6099 export COLLECT_NAMES
6104 # Sed substitution that helps us do robust quoting. It backslashifies
6105 # metacharacters that are still active within double-quoted strings.
6106 Xsed='sed -e 1s/^X//'
6107 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6109 # Same as above, but do not quote variable references.
6110 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6112 # Sed substitution to delay expansion of an escaped shell variable in a
6113 # double_quote_subst'ed string.
6114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6116 # Sed substitution to avoid accidental globbing in evaled expressions
6117 no_glob_subst='s/\*/\\\*/g'
6123 default_ofile=libtool
6124 can_build_shared=yes
6126 # All known linkers require a `.a' archive for static linking (except MSVC,
6127 # which needs '.lib').
6129 ltmain="$ac_aux_dir/ltmain.sh"
6130 ofile="$default_ofile"
6131 with_gnu_ld="$lt_cv_prog_gnu_ld"
6133 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}ar; ac_word=$2
6136 echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6138 if test "${ac_cv_prog_AR+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -n "$AR"; then
6142 ac_cv_prog_AR="$AR" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151 ac_cv_prog_AR="${ac_tool_prefix}ar"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 if test -n "$AR"; then
6162 echo "$as_me:$LINENO: result: $AR" >&5
6163 echo "${ECHO_T}$AR" >&6
6165 echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6170 if test -z "$ac_cv_prog_AR"; then
6172 # Extract the first word of "ar", so it can be a program name with args.
6173 set dummy ar; ac_word=$2
6174 echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 if test -n "$ac_ct_AR"; then
6180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189 ac_cv_prog_ac_ct_AR="ar"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6200 if test -n "$ac_ct_AR"; then
6201 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6202 echo "${ECHO_T}$ac_ct_AR" >&6
6204 echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6
6213 if test -n "$ac_tool_prefix"; then
6214 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6216 echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6218 if test "${ac_cv_prog_RANLIB+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 if test -n "$RANLIB"; then
6222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 RANLIB=$ac_cv_prog_RANLIB
6241 if test -n "$RANLIB"; then
6242 echo "$as_me:$LINENO: result: $RANLIB" >&5
6243 echo "${ECHO_T}$RANLIB" >&6
6245 echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6
6250 if test -z "$ac_cv_prog_RANLIB"; then
6251 ac_ct_RANLIB=$RANLIB
6252 # Extract the first word of "ranlib", so it can be a program name with args.
6253 set dummy ranlib; ac_word=$2
6254 echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 if test -n "$ac_ct_RANLIB"; then
6260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_ac_ct_RANLIB="ranlib"
6270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6280 if test -n "$ac_ct_RANLIB"; then
6281 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6284 echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6288 RANLIB=$ac_ct_RANLIB
6290 RANLIB="$ac_cv_prog_RANLIB"
6293 if test -n "$ac_tool_prefix"; then
6294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6295 set dummy ${ac_tool_prefix}strip; ac_word=$2
6296 echo "$as_me:$LINENO: checking for $ac_word" >&5
6297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298 if test "${ac_cv_prog_STRIP+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 if test -n "$STRIP"; then
6302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 STRIP=$ac_cv_prog_STRIP
6321 if test -n "$STRIP"; then
6322 echo "$as_me:$LINENO: result: $STRIP" >&5
6323 echo "${ECHO_T}$STRIP" >&6
6325 echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6
6330 if test -z "$ac_cv_prog_STRIP"; then
6332 # Extract the first word of "strip", so it can be a program name with args.
6333 set dummy strip; ac_word=$2
6334 echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 if test -n "$ac_ct_STRIP"; then
6340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_ac_ct_STRIP="strip"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6360 if test -n "$ac_ct_STRIP"; then
6361 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6362 echo "${ECHO_T}$ac_ct_STRIP" >&6
6364 echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6
6370 STRIP="$ac_cv_prog_STRIP"
6375 old_CFLAGS="$CFLAGS"
6377 # Set sane defaults for various variables
6378 test -z "$AR" && AR=ar
6379 test -z "$AR_FLAGS" && AR_FLAGS=cru
6380 test -z "$AS" && AS=as
6381 test -z "$CC" && CC=cc
6382 test -z "$LTCC" && LTCC=$CC
6383 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6384 test -z "$DLLTOOL" && DLLTOOL=dlltool
6385 test -z "$LD" && LD=ld
6386 test -z "$LN_S" && LN_S="ln -s"
6387 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6388 test -z "$NM" && NM=nm
6389 test -z "$SED" && SED=sed
6390 test -z "$OBJDUMP" && OBJDUMP=objdump
6391 test -z "$RANLIB" && RANLIB=:
6392 test -z "$STRIP" && STRIP=:
6393 test -z "$ac_objext" && ac_objext=o
6395 # Determine commands to create old-style static archives.
6396 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6397 old_postinstall_cmds='chmod 644 $oldlib'
6398 old_postuninstall_cmds=
6400 if test -n "$RANLIB"; then
6403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6409 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6412 for cc_temp in $compiler""; do
6414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6420 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6423 # Only perform the check for file, if the check method requires it
6424 case $deplibs_check_method in
6426 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6427 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6428 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6429 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6437 lt_save_MAGIC_CMD="$MAGIC_CMD"
6438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6440 for ac_dir in $ac_dummy; do
6442 test -z "$ac_dir" && ac_dir=.
6443 if test -f $ac_dir/${ac_tool_prefix}file; then
6444 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6445 if test -n "$file_magic_test_file"; then
6446 case $deplibs_check_method in
6448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6451 $EGREP "$file_magic_regex" > /dev/null; then
6456 *** Warning: the command libtool uses to detect shared libraries,
6457 *** $file_magic_cmd, produces output that libtool cannot recognize.
6458 *** The result is that libtool may fail to recognize shared libraries
6459 *** as such. This will affect the creation of libtool libraries that
6460 *** depend on shared libraries, but programs linked with such libtool
6461 *** libraries will work regardless of this problem. Nevertheless, you
6462 *** may want to report the problem to your system manager and/or to
6463 *** bug-libtool@gnu.org
6473 MAGIC_CMD="$lt_save_MAGIC_CMD"
6478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6479 if test -n "$MAGIC_CMD"; then
6480 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6481 echo "${ECHO_T}$MAGIC_CMD" >&6
6483 echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6
6487 if test -z "$lt_cv_path_MAGIC_CMD"; then
6488 if test -n "$ac_tool_prefix"; then
6489 echo "$as_me:$LINENO: checking for file" >&5
6490 echo $ECHO_N "checking for file... $ECHO_C" >&6
6491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6499 lt_save_MAGIC_CMD="$MAGIC_CMD"
6500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6502 for ac_dir in $ac_dummy; do
6504 test -z "$ac_dir" && ac_dir=.
6505 if test -f $ac_dir/file; then
6506 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6507 if test -n "$file_magic_test_file"; then
6508 case $deplibs_check_method in
6510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6513 $EGREP "$file_magic_regex" > /dev/null; then
6518 *** Warning: the command libtool uses to detect shared libraries,
6519 *** $file_magic_cmd, produces output that libtool cannot recognize.
6520 *** The result is that libtool may fail to recognize shared libraries
6521 *** as such. This will affect the creation of libtool libraries that
6522 *** depend on shared libraries, but programs linked with such libtool
6523 *** libraries will work regardless of this problem. Nevertheless, you
6524 *** may want to report the problem to your system manager and/or to
6525 *** bug-libtool@gnu.org
6535 MAGIC_CMD="$lt_save_MAGIC_CMD"
6540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6541 if test -n "$MAGIC_CMD"; then
6542 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6543 echo "${ECHO_T}$MAGIC_CMD" >&6
6545 echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6
6561 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6562 if test "${enable_libtool_lock+set}" = set; then
6563 enableval="$enable_libtool_lock"
6566 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6569 # Check whether --with-pic or --without-pic was given.
6570 if test "${with_pic+set}" = set; then
6576 test -z "$pic_mode" && pic_mode=default
6578 # Use C for the default configuration in the libtool script
6582 ac_cpp='$CPP $CPPFLAGS'
6583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588 # Source file extension for C test sources.
6591 # Object file extension for compiled C test sources.
6595 # Code to be used in simple compile tests
6596 lt_simple_compile_test_code="int some_variable = 0;\n"
6598 # Code to be used in simple link tests
6599 lt_simple_link_test_code='int main(){return(0);}\n'
6602 # If no C compiler was specified, use CC.
6605 # If no C compiler flags were specified, use CFLAGS.
6606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6608 # Allow CC to be a program name with arguments.
6612 # save warnings/boilerplate of simple test code
6613 ac_outfile=conftest.$ac_objext
6614 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6616 _lt_compiler_boilerplate=`cat conftest.err`
6619 ac_outfile=conftest.$ac_objext
6620 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6622 _lt_linker_boilerplate=`cat conftest.err`
6627 ## There is no encapsulation within the following macros, do not change
6628 ## the running order or otherwise move them around unless you know exactly
6629 ## what you are doing...
6631 lt_prog_compiler_no_builtin_flag=
6633 if test "$GCC" = yes; then
6634 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6637 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6638 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6639 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 lt_cv_prog_compiler_rtti_exceptions=no
6643 ac_outfile=conftest.$ac_objext
6644 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6645 lt_compiler_flag="-fno-rtti -fno-exceptions"
6646 # Insert the option either (1) after the last *FLAGS variable, or
6647 # (2) before a word containing "conftest.", or (3) at the end.
6648 # Note that $ac_compile itself does not contain backslashes and begins
6649 # with a dollar sign (not a hyphen), so the echo should work correctly.
6650 # The option is referenced via a variable to avoid confusing sed.
6651 lt_compile=`echo "$ac_compile" | $SED \
6652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6654 -e 's:$: $lt_compiler_flag:'`
6655 (eval echo "\"\$as_me:6655: $lt_compile\"" >&5)
6656 (eval "$lt_compile" 2>conftest.err)
6658 cat conftest.err >&5
6659 echo "$as_me:6659: \$? = $ac_status" >&5
6660 if (exit $ac_status) && test -s "$ac_outfile"; then
6661 # The compiler can only warn and ignore the option if not recognized
6662 # So say no if there are warnings other than the usual output.
6663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6666 lt_cv_prog_compiler_rtti_exceptions=yes
6672 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6673 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6675 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6676 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6683 lt_prog_compiler_wl=
6684 lt_prog_compiler_pic=
6685 lt_prog_compiler_static=
6687 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6690 if test "$GCC" = yes; then
6691 lt_prog_compiler_wl='-Wl,'
6692 lt_prog_compiler_static='-static'
6696 # All AIX code is PIC.
6697 if test "$host_cpu" = ia64; then
6698 # AIX 5 now supports IA64 processor
6699 lt_prog_compiler_static='-Bstatic'
6704 # FIXME: we need at least 68020 code to build shared libraries, but
6705 # adding the `-m68020' flag to GCC prevents building anything better,
6707 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6710 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6711 # PIC is the default for these OSes.
6714 mingw* | pw32* | os2*)
6715 # This hack is so that the source file can tell whether it is being
6716 # built for inclusion in a dll (and should export symbols for example).
6717 lt_prog_compiler_pic='-DDLL_EXPORT'
6720 darwin* | rhapsody*)
6721 # PIC is the default on this platform
6722 # Common symbols not allowed in MH_DYLIB files
6723 lt_prog_compiler_pic='-fno-common'
6727 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6728 # Instead, we relocate shared libraries at runtime.
6732 # Just because we use GCC doesn't mean we suddenly get shared libraries
6733 # on systems that don't support them.
6734 lt_prog_compiler_can_build_shared=no
6739 if test -d /usr/nec; then
6740 lt_prog_compiler_pic=-Kconform_pic
6745 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6752 lt_prog_compiler_pic='-fPIC'
6758 lt_prog_compiler_pic='-fPIC'
6762 # PORTME Check for flag to pass linker flags through the system compiler.
6765 lt_prog_compiler_wl='-Wl,'
6766 if test "$host_cpu" = ia64; then
6767 # AIX 5 now supports IA64 processor
6768 lt_prog_compiler_static='-Bstatic'
6770 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6774 # PIC is the default on this platform
6775 # Common symbols not allowed in MH_DYLIB files
6776 case $cc_basename in
6778 lt_prog_compiler_pic='-qnocommon'
6779 lt_prog_compiler_wl='-Wl,'
6784 mingw* | pw32* | os2*)
6785 # This hack is so that the source file can tell whether it is being
6786 # built for inclusion in a dll (and should export symbols for example).
6787 lt_prog_compiler_pic='-DDLL_EXPORT'
6790 hpux9* | hpux10* | hpux11*)
6791 lt_prog_compiler_wl='-Wl,'
6792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6799 lt_prog_compiler_pic='+Z'
6802 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6803 lt_prog_compiler_static='${wl}-a ${wl}archive'
6806 irix5* | irix6* | nonstopux*)
6807 lt_prog_compiler_wl='-Wl,'
6808 # PIC (with -KPIC) is the default.
6809 lt_prog_compiler_static='-non_shared'
6813 lt_prog_compiler_pic='-KPIC'
6814 lt_prog_compiler_static='-Bstatic'
6818 case $cc_basename in
6820 lt_prog_compiler_wl='-Wl,'
6821 lt_prog_compiler_pic='-KPIC'
6822 lt_prog_compiler_static='-static'
6824 pgcc* | pgf77* | pgf90* | pgf95*)
6825 # Portland Group compilers (*not* the Pentium gcc compiler,
6826 # which looks to be a dead project)
6827 lt_prog_compiler_wl='-Wl,'
6828 lt_prog_compiler_pic='-fpic'
6829 lt_prog_compiler_static='-Bstatic'
6832 lt_prog_compiler_wl='-Wl,'
6833 # All Alpha code is PIC.
6834 lt_prog_compiler_static='-non_shared'
6839 osf3* | osf4* | osf5*)
6840 lt_prog_compiler_wl='-Wl,'
6841 # All OSF/1 code is PIC.
6842 lt_prog_compiler_static='-non_shared'
6846 lt_prog_compiler_pic='-KPIC'
6847 lt_prog_compiler_static='-Bstatic'
6848 case $cc_basename in
6850 lt_prog_compiler_wl='-Qoption ld ';;
6852 lt_prog_compiler_wl='-Wl,';;
6857 lt_prog_compiler_wl='-Qoption ld '
6858 lt_prog_compiler_pic='-PIC'
6859 lt_prog_compiler_static='-Bstatic'
6862 sysv4 | sysv4.2uw2* | sysv4.3*)
6863 lt_prog_compiler_wl='-Wl,'
6864 lt_prog_compiler_pic='-KPIC'
6865 lt_prog_compiler_static='-Bstatic'
6869 if test -d /usr/nec ;then
6870 lt_prog_compiler_pic='-Kconform_pic'
6871 lt_prog_compiler_static='-Bstatic'
6875 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6876 lt_prog_compiler_wl='-Wl,'
6877 lt_prog_compiler_pic='-KPIC'
6878 lt_prog_compiler_static='-Bstatic'
6882 lt_prog_compiler_wl='-Wl,'
6883 lt_prog_compiler_can_build_shared=no
6887 lt_prog_compiler_pic='-pic'
6888 lt_prog_compiler_static='-Bstatic'
6892 lt_prog_compiler_can_build_shared=no
6897 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6898 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6901 # Check to make sure the PIC flag actually works.
6903 if test -n "$lt_prog_compiler_pic"; then
6905 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6906 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6907 if test "${lt_prog_compiler_pic_works+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 lt_prog_compiler_pic_works=no
6911 ac_outfile=conftest.$ac_objext
6912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6913 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6914 # Insert the option either (1) after the last *FLAGS variable, or
6915 # (2) before a word containing "conftest.", or (3) at the end.
6916 # Note that $ac_compile itself does not contain backslashes and begins
6917 # with a dollar sign (not a hyphen), so the echo should work correctly.
6918 # The option is referenced via a variable to avoid confusing sed.
6919 lt_compile=`echo "$ac_compile" | $SED \
6920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6922 -e 's:$: $lt_compiler_flag:'`
6923 (eval echo "\"\$as_me:6923: $lt_compile\"" >&5)
6924 (eval "$lt_compile" 2>conftest.err)
6926 cat conftest.err >&5
6927 echo "$as_me:6927: \$? = $ac_status" >&5
6928 if (exit $ac_status) && test -s "$ac_outfile"; then
6929 # The compiler can only warn and ignore the option if not recognized
6930 # So say no if there are warnings other than the usual output.
6931 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6934 lt_prog_compiler_pic_works=yes
6940 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6941 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6943 if test x"$lt_prog_compiler_pic_works" = xyes; then
6944 case $lt_prog_compiler_pic in
6946 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6949 lt_prog_compiler_pic=
6950 lt_prog_compiler_can_build_shared=no
6955 # For platforms which do not support PIC, -DPIC is meaningless:
6957 lt_prog_compiler_pic=
6960 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6965 # Check to make sure the static flag actually works.
6967 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6968 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6969 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6970 if test "${lt_prog_compiler_static_works+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 lt_prog_compiler_static_works=no
6974 save_LDFLAGS="$LDFLAGS"
6975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6976 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6978 # The linker can only warn and ignore the option if not recognized
6979 # So say no if there are warnings
6980 if test -s conftest.err; then
6981 # Append any errors to the config.log.
6982 cat conftest.err 1>&5
6983 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6985 if diff conftest.exp conftest.er2 >/dev/null; then
6986 lt_prog_compiler_static_works=yes
6989 lt_prog_compiler_static_works=yes
6993 LDFLAGS="$save_LDFLAGS"
6996 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6997 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6999 if test x"$lt_prog_compiler_static_works" = xyes; then
7002 lt_prog_compiler_static=
7006 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7007 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7008 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 lt_cv_prog_compiler_c_o=no
7012 $rm -r conftest 2>/dev/null
7016 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7018 lt_compiler_flag="-o out/conftest2.$ac_objext"
7019 # Insert the option either (1) after the last *FLAGS variable, or
7020 # (2) before a word containing "conftest.", or (3) at the end.
7021 # Note that $ac_compile itself does not contain backslashes and begins
7022 # with a dollar sign (not a hyphen), so the echo should work correctly.
7023 lt_compile=`echo "$ac_compile" | $SED \
7024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7026 -e 's:$: $lt_compiler_flag:'`
7027 (eval echo "\"\$as_me:7027: $lt_compile\"" >&5)
7028 (eval "$lt_compile" 2>out/conftest.err)
7030 cat out/conftest.err >&5
7031 echo "$as_me:7031: \$? = $ac_status" >&5
7032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7034 # The compiler can only warn and ignore the option if not recognized
7035 # So say no if there are warnings
7036 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7039 lt_cv_prog_compiler_c_o=yes
7044 # SGI C++ compiler will create directory out/ii_files/ for
7045 # template instantiation
7046 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7047 $rm out/* && rmdir out
7053 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7054 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7057 hard_links="nottested"
7058 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7059 # do not overwrite the value of need_locks provided by the user
7060 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7061 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7066 ln conftest.a conftest.b 2>&5 || hard_links=no
7067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7068 echo "$as_me:$LINENO: result: $hard_links" >&5
7069 echo "${ECHO_T}$hard_links" >&6
7070 if test "$hard_links" = no; then
7071 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7072 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7079 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7083 allow_undefined_flag=
7084 enable_shared_with_static_runtimes=no
7086 archive_expsym_cmds=
7087 old_archive_From_new_cmds=
7088 old_archive_from_expsyms_cmds=
7089 export_dynamic_flag_spec=
7090 whole_archive_flag_spec=
7091 thread_safe_flag_spec=
7092 hardcode_libdir_flag_spec=
7093 hardcode_libdir_flag_spec_ld=
7094 hardcode_libdir_separator=
7097 hardcode_shlibpath_var=unsupported
7098 link_all_deplibs=unknown
7099 hardcode_automatic=no
7102 always_export_symbols=no
7103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7104 # include_expsyms should be a list of space-separated symbols to be *always*
7105 # included in the symbol list
7107 # exclude_expsyms can be an extended regexp of symbols to exclude
7108 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7109 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7110 # as well as any symbol that contains `d'.
7111 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7112 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7113 # platforms (ab)use it in PIC code, but their linkers get confused if
7114 # the symbol is explicitly referenced. Since portable code cannot
7115 # rely on this symbol name, it's probably fine to never include it in
7116 # preloaded symbol tables.
7117 extract_expsyms_cmds=
7118 # Just being paranoid about ensuring that cc_basename is set.
7119 for cc_temp in $compiler""; do
7121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7130 cygwin* | mingw* | pw32*)
7131 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7132 # When not using gcc, we currently assume that we are using
7133 # Microsoft Visual C++.
7134 if test "$GCC" != yes; then
7139 # we just hope/assume this is gcc and not c89 (= MSVC++)
7148 if test "$with_gnu_ld" = yes; then
7149 # If archive_cmds runs LD, not CC, wlarc should be empty
7152 # Set some defaults for GNU ld with shared library support. These
7153 # are reset later if shared libraries are not supported. Putting them
7154 # here allows them to be overridden if necessary.
7155 runpath_var=LD_RUN_PATH
7156 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7157 export_dynamic_flag_spec='${wl}--export-dynamic'
7158 # ancient GNU ld didn't support --whole-archive et. al.
7159 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7160 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7162 whole_archive_flag_spec=
7164 supports_anon_versioning=no
7165 case `$LD -v 2>/dev/null` in
7166 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7167 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7168 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7169 *\ 2.11.*) ;; # other 2.11 versions
7170 *) supports_anon_versioning=yes ;;
7173 # See if GNU ld supports shared libraries.
7175 aix3* | aix4* | aix5*)
7176 # On AIX/PPC, the GNU linker is very broken
7177 if test "$host_cpu" != ia64; then
7181 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7182 *** to be unable to reliably create shared libraries on AIX.
7183 *** Therefore, libtool is disabling shared libraries support. If you
7184 *** really care for shared libraries, you may want to modify your PATH
7185 *** so that a non-GNU linker is found, and then restart.
7192 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)'
7193 hardcode_libdir_flag_spec='-L$libdir'
7194 hardcode_minus_L=yes
7196 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7197 # that the semantics of dynamic libraries on AmigaOS, at least up
7198 # to version 4, is to share data among multiple programs linked
7199 # with the same dynamic library. Since this doesn't match the
7200 # behavior of shared libraries on other platforms, we can't use
7206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7207 allow_undefined_flag=unsupported
7208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7209 # support --undefined. This deserves some investigation. FIXME
7210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7216 cygwin* | mingw* | pw32*)
7217 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7218 # as there is no search path for DLLs.
7219 hardcode_libdir_flag_spec='-L$libdir'
7220 allow_undefined_flag=unsupported
7221 always_export_symbols=no
7222 enable_shared_with_static_runtimes=yes
7223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7225 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7227 # If the export-symbols file already is a .def file (1st line
7228 # is EXPORTS), use it as is; otherwise, prepend...
7229 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7230 cp $export_symbols $output_objdir/$soname.def;
7232 echo EXPORTS > $output_objdir/$soname.def;
7233 cat $export_symbols >> $output_objdir/$soname.def;
7235 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7243 hardcode_shlibpath_var=no
7244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7245 export_dynamic_flag_spec='${wl}-E'
7246 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7247 # Instead, shared libraries are loaded at an image base (0x10000000 by
7248 # default) and relocated if they conflict, which is a slow very memory
7249 # consuming and fragmenting process. To avoid this, we pick a random,
7250 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7251 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7252 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7253 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7259 case $cc_basename,$host_cpu in
7260 pgcc*) # Portland Group C compiler
7261 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7262 tmp_addflag=' $pic_flag'
7264 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7265 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7266 tmp_addflag=' $pic_flag -Mnomain' ;;
7267 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7268 tmp_addflag=' -i_dynamic' ;;
7269 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7270 tmp_addflag=' -i_dynamic -nofor_main' ;;
7271 ifc* | ifort*) # Intel Fortran compiler
7272 tmp_addflag=' -nofor_main' ;;
7274 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7276 if test $supports_anon_versioning = yes; then
7277 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7278 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7279 $echo "local: *; };" >> $output_objdir/$libname.ver~
7280 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7298 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7303 *** create shared libraries on Solaris systems. Therefore, libtool
7304 *** is disabling shared libraries support. We urge you to upgrade GNU
7305 *** binutils to release 2.9.1 or newer. Another option is to modify
7306 *** your PATH or compiler configuration so that the native linker is
7307 *** used, and then restart.
7310 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7319 case `$LD -v 2>&1` in
7320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7325 *** reliably create shared libraries on SCO systems. Therefore, libtool
7326 *** is disabling shared libraries support. We urge you to upgrade GNU
7327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7328 *** your PATH or compiler configuration so that the native linker is
7329 *** used, and then restart.
7334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7335 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7346 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7349 hardcode_shlibpath_var=no
7353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7362 if test "$ld_shlibs" = no; then
7364 hardcode_libdir_flag_spec=
7365 export_dynamic_flag_spec=
7366 whole_archive_flag_spec=
7369 # PORTME fill in a description of your system's linker (not GNU ld)
7372 allow_undefined_flag=unsupported
7373 always_export_symbols=yes
7374 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'
7375 # Note: this linker hardcodes the directories in LIBPATH if there
7376 # are no directories specified by -L.
7377 hardcode_minus_L=yes
7378 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7379 # Neither direct hardcoding nor static linking is supported with a
7381 hardcode_direct=unsupported
7386 if test "$host_cpu" = ia64; then
7387 # On IA64, the linker does run time linking by default, so we don't
7388 # have to do anything special.
7389 aix_use_runtimelinking=no
7390 exp_sym_flag='-Bexport'
7393 # If we're using GNU nm, then we don't want the "-C" option.
7394 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7395 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7396 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'
7398 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'
7400 aix_use_runtimelinking=no
7402 # Test if we are trying to use run time linking or normal
7403 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7404 # need to do runtime linking.
7405 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7406 for ld_flag in $LDFLAGS; do
7407 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7408 aix_use_runtimelinking=yes
7415 exp_sym_flag='-bexport'
7416 no_entry_flag='-bnoentry'
7419 # When large executables or shared objects are built, AIX ld can
7420 # have problems creating the table of contents. If linking a library
7421 # or program results in "error TOC overflow" add -mminimal-toc to
7422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7427 hardcode_libdir_separator=':'
7428 link_all_deplibs=yes
7430 if test "$GCC" = yes; then
7431 case $host_os in aix4.[012]|aix4.[012].*)
7432 # We only want to do this on AIX 4.2 and lower, the check
7433 # below for broken collect2 doesn't work under 4.3+
7434 collect2name=`${CC} -print-prog-name=collect2`
7435 if test -f "$collect2name" && \
7436 strings "$collect2name" | grep resolve_lib_name >/dev/null
7438 # We have reworked collect2
7441 # We have old collect2
7442 hardcode_direct=unsupported
7443 # It fails to find uninstalled libraries when the uninstalled
7444 # path is not listed in the libpath. Setting hardcode_minus_L
7445 # to unsupported forces relinking
7446 hardcode_minus_L=yes
7447 hardcode_libdir_flag_spec='-L$libdir'
7448 hardcode_libdir_separator=
7452 shared_flag='-shared'
7453 if test "$aix_use_runtimelinking" = yes; then
7454 shared_flag="$shared_flag "'${wl}-G'
7458 if test "$host_cpu" = ia64; then
7459 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7460 # chokes on -Wl,-G. The following line is correct:
7463 if test "$aix_use_runtimelinking" = yes; then
7464 shared_flag='${wl}-G'
7466 shared_flag='${wl}-bM:SRE'
7471 # It seems that -bexpall does not export symbols beginning with
7472 # underscore (_), so it is better to generate a list of symbols to export.
7473 always_export_symbols=yes
7474 if test "$aix_use_runtimelinking" = yes; then
7475 # Warning - without using the other runtime loading flags (-brtl),
7476 # -berok will link without error, but may produce a broken library.
7477 allow_undefined_flag='-berok'
7478 # Determine the default libpath from the value encoded in an empty executable.
7479 cat >conftest.$ac_ext <<_ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7494 rm -f conftest.$ac_objext conftest$ac_exeext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7496 (eval $ac_link) 2>conftest.er1
7498 grep -v '^ *+' conftest.er1 >conftest.err
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try='test -z "$ac_c_werror_flag"
7504 || test ! -s conftest.err'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; } &&
7510 { ac_try='test -s conftest$ac_exeext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7519 # Check for a 64-bit object if we didn't find anything.
7520 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; }
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7527 rm -f conftest.err conftest.$ac_objext \
7528 conftest$ac_exeext conftest.$ac_ext
7529 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7531 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7532 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7534 if test "$host_cpu" = ia64; then
7535 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7536 allow_undefined_flag="-z nodefs"
7537 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7539 # Determine the default libpath from the value encoded in an empty executable.
7540 cat >conftest.$ac_ext <<_ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557 (eval $ac_link) 2>conftest.er1
7559 grep -v '^ *+' conftest.er1 >conftest.err
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try='test -z "$ac_c_werror_flag"
7565 || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest$ac_exeext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7580 # Check for a 64-bit object if we didn't find anything.
7581 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; }
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7588 rm -f conftest.err conftest.$ac_objext \
7589 conftest$ac_exeext conftest.$ac_ext
7590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7592 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7593 # Warning - without using the other run time loading flags,
7594 # -berok will link without error, but may produce a broken library.
7595 no_undefined_flag=' ${wl}-bernotok'
7596 allow_undefined_flag=' ${wl}-berok'
7597 # Exported symbols can be pulled into shared objects from archives
7598 whole_archive_flag_spec='$convenience'
7599 archive_cmds_need_lc=yes
7600 # This is similar to how AIX traditionally builds its shared libraries.
7601 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7607 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)'
7608 hardcode_libdir_flag_spec='-L$libdir'
7609 hardcode_minus_L=yes
7610 # see comment about different semantics on the GNU ld section
7615 export_dynamic_flag_spec=-rdynamic
7618 cygwin* | mingw* | pw32*)
7619 # When not using gcc, we currently assume that we are using
7620 # Microsoft Visual C++.
7621 # hardcode_libdir_flag_spec is actually meaningless, as there is
7622 # no search path for DLLs.
7623 hardcode_libdir_flag_spec=' '
7624 allow_undefined_flag=unsupported
7625 # Tell ltmain to make .lib files, not .a files.
7627 # Tell ltmain to make .dll files, not .so files.
7629 # FIXME: Setting linknames here is a bad hack.
7630 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7631 # The linker will automatically build a .lib file if we build a DLL.
7632 old_archive_From_new_cmds='true'
7633 # FIXME: Should let the user specify the lib program.
7634 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7635 fix_srcfile_path='`cygpath -w "$srcfile"`'
7636 enable_shared_with_static_runtimes=yes
7639 darwin* | rhapsody*)
7641 rhapsody* | darwin1.[012])
7642 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7645 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7646 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7648 case ${MACOSX_DEPLOYMENT_TARGET} in
7650 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7653 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7659 archive_cmds_need_lc=no
7661 hardcode_automatic=yes
7662 hardcode_shlibpath_var=unsupported
7663 whole_archive_flag_spec=''
7664 link_all_deplibs=yes
7665 if test "$GCC" = yes ; then
7666 output_verbose_link_cmd='echo'
7667 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7668 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7670 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}'
7671 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}'
7673 case $cc_basename in
7675 output_verbose_link_cmd='echo'
7676 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7677 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7678 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7679 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7680 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}'
7690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7691 hardcode_libdir_flag_spec='-L$libdir'
7692 hardcode_shlibpath_var=no
7699 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7700 # support. Future versions do this automatically, but an explicit c++rt0.o
7701 # does not break anything, and helps significantly (at the cost of a little
7704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7705 hardcode_libdir_flag_spec='-R$libdir'
7707 hardcode_shlibpath_var=no
7710 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7714 hardcode_minus_L=yes
7715 hardcode_shlibpath_var=no
7718 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7719 freebsd* | kfreebsd*-gnu | dragonfly*)
7720 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7721 hardcode_libdir_flag_spec='-R$libdir'
7723 hardcode_shlibpath_var=no
7727 if test "$GCC" = yes; then
7728 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'
7730 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'
7732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7733 hardcode_libdir_separator=:
7736 # hardcode_minus_L: Not really in the search PATH,
7737 # but as the default location of the library.
7738 hardcode_minus_L=yes
7739 export_dynamic_flag_spec='${wl}-E'
7743 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7744 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7746 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7748 if test "$with_gnu_ld" = no; then
7749 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7750 hardcode_libdir_separator=:
7753 export_dynamic_flag_spec='${wl}-E'
7755 # hardcode_minus_L: Not really in the search PATH,
7756 # but as the default location of the library.
7757 hardcode_minus_L=yes
7762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7765 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7768 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7771 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7777 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7780 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7783 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7787 if test "$with_gnu_ld" = no; then
7788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7789 hardcode_libdir_separator=:
7793 hardcode_libdir_flag_spec_ld='+b $libdir'
7795 hardcode_shlibpath_var=no
7799 export_dynamic_flag_spec='${wl}-E'
7801 # hardcode_minus_L: Not really in the search PATH,
7802 # but as the default location of the library.
7803 hardcode_minus_L=yes
7809 irix5* | irix6* | nonstopux*)
7810 if test "$GCC" = yes; then
7811 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'
7813 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'
7814 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7817 hardcode_libdir_separator=:
7818 link_all_deplibs=yes
7822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7825 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7827 hardcode_libdir_flag_spec='-R$libdir'
7829 hardcode_shlibpath_var=no
7833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7836 hardcode_libdir_separator=:
7837 hardcode_shlibpath_var=no
7842 hardcode_shlibpath_var=no
7843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7845 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7847 export_dynamic_flag_spec='${wl}-E'
7850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7852 hardcode_libdir_flag_spec='-R$libdir'
7855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7856 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7863 hardcode_libdir_flag_spec='-L$libdir'
7864 hardcode_minus_L=yes
7865 allow_undefined_flag=unsupported
7866 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'
7867 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7871 if test "$GCC" = yes; then
7872 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7873 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'
7875 allow_undefined_flag=' -expect_unresolved \*'
7876 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'
7878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7879 hardcode_libdir_separator=:
7882 osf4* | osf5*) # as osf3* with the addition of -msym flag
7883 if test "$GCC" = yes; then
7884 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7885 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'
7886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7888 allow_undefined_flag=' -expect_unresolved \*'
7889 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'
7890 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7891 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7893 # Both c and cxx compiler support -rpath directly
7894 hardcode_libdir_flag_spec='-rpath $libdir'
7896 hardcode_libdir_separator=:
7900 no_undefined_flag=' -z text'
7901 if test "$GCC" = yes; then
7903 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7904 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7905 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7908 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7909 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7910 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7912 hardcode_libdir_flag_spec='-R$libdir'
7913 hardcode_shlibpath_var=no
7915 solaris2.[0-5] | solaris2.[0-5].*) ;;
7917 # The compiler driver will combine linker options so we
7918 # cannot just pass the convience library names through
7919 # without $wl, iff we do not link with $LD.
7920 # Luckily, gcc supports the same syntax we need for Sun Studio.
7921 # Supported since Solaris 2.6 (maybe 2.5.1?)
7924 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7926 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7929 link_all_deplibs=yes
7933 if test "x$host_vendor" = xsequent; then
7934 # Use $CC to link under sequent, because it throws in some extra .o
7935 # files that make .init and .fini sections work.
7936 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7938 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7940 hardcode_libdir_flag_spec='-L$libdir'
7942 hardcode_minus_L=yes
7943 hardcode_shlibpath_var=no
7947 case $host_vendor in
7949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7950 hardcode_direct=yes # is this really true???
7953 ## LD is ld it makes a PLAMLIB
7954 ## CC just makes a GrossModule.
7955 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7956 reload_cmds='$CC -r -o $output$reload_objs'
7960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7961 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7964 runpath_var='LD_RUN_PATH'
7965 hardcode_shlibpath_var=no
7969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7970 hardcode_shlibpath_var=no
7971 export_dynamic_flag_spec='-Bexport'
7975 if test -d /usr/nec; then
7976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7977 hardcode_shlibpath_var=no
7978 runpath_var=LD_RUN_PATH
7979 hardcode_runpath_var=yes
7984 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7985 no_undefined_flag='${wl}-z,text'
7986 archive_cmds_need_lc=no
7987 hardcode_shlibpath_var=no
7988 runpath_var='LD_RUN_PATH'
7990 if test "$GCC" = yes; then
7991 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7992 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7994 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7995 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7999 sysv5* | sco3.2v5* | sco5v6*)
8000 # Note: We can NOT use -z defs as we might desire, because we do not
8001 # link with -lc, and that would cause any symbols used from libc to
8002 # always be unresolved, which means just about no library would
8003 # ever link correctly. If we're not using GNU ld we use -z text
8004 # though, which does catch some bad symbols but isn't as heavy-handed
8006 no_undefined_flag='${wl}-z,text'
8007 allow_undefined_flag='${wl}-z,nodefs'
8008 archive_cmds_need_lc=no
8009 hardcode_shlibpath_var=no
8010 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8011 hardcode_libdir_separator=':'
8012 link_all_deplibs=yes
8013 export_dynamic_flag_spec='${wl}-Bexport'
8014 runpath_var='LD_RUN_PATH'
8016 if test "$GCC" = yes; then
8017 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8018 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8020 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8021 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8027 hardcode_libdir_flag_spec='-L$libdir'
8028 hardcode_shlibpath_var=no
8037 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8038 echo "${ECHO_T}$ld_shlibs" >&6
8039 test "$ld_shlibs" = no && can_build_shared=no
8042 # Do we need to explicitly link libc?
8044 case "x$archive_cmds_need_lc" in
8046 # Assume -lc should be added
8047 archive_cmds_need_lc=yes
8049 if test "$enable_shared" = yes && test "$GCC" = yes; then
8050 case $archive_cmds in
8052 # FIXME: we may have to deal with multi-command sequences.
8055 # Test whether the compiler implicitly links with -lc since on some
8056 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8057 # to ld, don't add -lc before -lgcc.
8058 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8059 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064 (eval $ac_compile) 2>&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } 2>conftest.err; then
8070 libobjs=conftest.$ac_objext
8072 wl=$lt_prog_compiler_wl
8073 pic_flag=$lt_prog_compiler_pic
8079 lt_save_allow_undefined_flag=$allow_undefined_flag
8080 allow_undefined_flag=
8081 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8082 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }
8087 archive_cmds_need_lc=no
8089 archive_cmds_need_lc=yes
8091 allow_undefined_flag=$lt_save_allow_undefined_flag
8093 cat conftest.err 1>&5
8096 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8097 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8104 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8105 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8107 libname_spec='lib$name'
8115 shlibpath_overrides_runpath=unknown
8117 dynamic_linker="$host_os ld.so"
8118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8119 if test "$GCC" = yes; then
8120 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8121 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8122 # if the path contains ";" then we assume it to be the separator
8123 # otherwise default to the standard path separator (i.e. ":") - it is
8124 # assumed that no part of a normal pathname contains ";" but that should
8125 # okay in the real world where ";" in dirpaths is itself problematic.
8126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8131 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8133 need_lib_prefix=unknown
8134 hardcode_into_libs=no
8136 # when you set need_version to no, make sure it does not cause -set_version
8137 # flags to be left without arguments
8138 need_version=unknown
8143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8144 shlibpath_var=LIBPATH
8146 # AIX 3 has no versioning support, so we append a major version to the name.
8147 soname_spec='${libname}${release}${shared_ext}$major'
8154 hardcode_into_libs=yes
8155 if test "$host_cpu" = ia64; then
8156 # AIX 5 supports IA64
8157 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8158 shlibpath_var=LD_LIBRARY_PATH
8160 # With GCC up to 2.95.x, collect2 would create an import file
8161 # for dependence libraries. The import file would start with
8162 # the line `#! .'. This would cause the generated library to
8163 # depend on `.', always an invalid library. This was fixed in
8164 # development snapshots of GCC prior to 3.0.
8166 aix4 | aix4.[01] | aix4.[01].*)
8167 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8169 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8176 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8177 # soname into executable. Probably we can add versioning support to
8178 # collect2, so additional links can be useful in future.
8179 if test "$aix_use_runtimelinking" = yes; then
8180 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8181 # instead of lib<name>.a to let people know that these are not
8182 # typical AIX shared libraries.
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8185 # We preserve .a as extension for shared libraries through AIX4.2
8186 # and later when we are not doing run time linking.
8187 library_names_spec='${libname}${release}.a $libname.a'
8188 soname_spec='${libname}${release}${shared_ext}$major'
8190 shlibpath_var=LIBPATH
8195 library_names_spec='$libname.ixlibrary $libname.a'
8196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8197 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'
8201 library_names_spec='${libname}${shared_ext}'
8202 dynamic_linker="$host_os ld.so"
8203 shlibpath_var=LIBRARY_PATH
8209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8210 soname_spec='${libname}${release}${shared_ext}$major'
8211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8212 shlibpath_var=LD_LIBRARY_PATH
8213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8215 # the default ld.so.conf also contains /usr/contrib/lib and
8216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8217 # libtool to hard-code these into programs
8220 cygwin* | mingw* | pw32*)
8221 version_type=windows
8226 case $GCC,$host_os in
8227 yes,cygwin* | yes,mingw* | yes,pw32*)
8228 library_names_spec='$libname.dll.a'
8229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8230 postinstall_cmds='base_file=`basename \${file}`~
8231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8232 dldir=$destdir/`dirname \$dlpath`~
8233 test -d \$dldir || mkdir -p \$dldir~
8234 $install_prog $dir/$dlname \$dldir/$dlname~
8235 chmod a+x \$dldir/$dlname'
8236 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8237 dlpath=$dir/\$dldll~
8239 shlibpath_overrides_runpath=yes
8243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8248 # MinGW DLLs use traditional 'lib' prefix
8249 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8250 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8251 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8252 # It is most probably a Windows format PATH printed by
8253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8254 # path with ; separators, and with drive letters. We can handle the
8255 # drive letters (cygwin fileutils understands them), so leave them,
8256 # especially as we might pass files found there to a mingw objdump,
8257 # which wouldn't understand a cygwinified path. Ahh.
8258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8264 # pw32 DLLs use 'pw' prefix rather than 'lib'
8265 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8271 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8274 dynamic_linker='Win32 ld.exe'
8275 # FIXME: first we should search . and the directory the executable is in
8279 darwin* | rhapsody*)
8280 dynamic_linker="$host_os dyld"
8284 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8285 soname_spec='${libname}${release}${major}$shared_ext'
8286 shlibpath_overrides_runpath=yes
8287 shlibpath_var=DYLD_LIBRARY_PATH
8288 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8289 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8290 if test "$GCC" = yes; then
8291 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"`
8293 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8295 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8303 soname_spec='${libname}${release}${shared_ext}$major'
8304 shlibpath_var=LD_LIBRARY_PATH
8315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8316 soname_spec='${libname}${release}${shared_ext}$major'
8317 shlibpath_var=LD_LIBRARY_PATH
8318 shlibpath_overrides_runpath=no
8319 hardcode_into_libs=yes
8320 dynamic_linker='GNU ld.so'
8323 freebsd* | dragonfly*)
8324 # DragonFly does not have aout. When/if they implement a new
8325 # versioning mechanism, adjust this.
8326 if test -x /usr/bin/objformat; then
8327 objformat=`/usr/bin/objformat`
8330 freebsd[123]*) objformat=aout ;;
8334 version_type=freebsd-$objformat
8335 case $version_type in
8337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8342 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8346 shlibpath_var=LD_LIBRARY_PATH
8349 shlibpath_overrides_runpath=yes
8351 freebsd3.[01]* | freebsdelf3.[01]*)
8352 shlibpath_overrides_runpath=yes
8353 hardcode_into_libs=yes
8355 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8356 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8357 shlibpath_overrides_runpath=no
8358 hardcode_into_libs=yes
8360 freebsd*) # from 4.6 on
8361 shlibpath_overrides_runpath=yes
8362 hardcode_into_libs=yes
8371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8372 soname_spec='${libname}${release}${shared_ext}$major'
8373 shlibpath_var=LD_LIBRARY_PATH
8374 hardcode_into_libs=yes
8377 hpux9* | hpux10* | hpux11*)
8378 # Give a soname corresponding to the major version so that dld.sl refuses to
8379 # link against other versions.
8386 hardcode_into_libs=yes
8387 dynamic_linker="$host_os dld.so"
8388 shlibpath_var=LD_LIBRARY_PATH
8389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8391 soname_spec='${libname}${release}${shared_ext}$major'
8392 if test "X$HPUX_IA64_MODE" = X32; then
8393 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8395 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8401 hardcode_into_libs=yes
8402 dynamic_linker="$host_os dld.sl"
8403 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8406 soname_spec='${libname}${release}${shared_ext}$major'
8407 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8412 dynamic_linker="$host_os dld.sl"
8413 shlibpath_var=SHLIB_PATH
8414 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8416 soname_spec='${libname}${release}${shared_ext}$major'
8419 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8420 postinstall_cmds='chmod 555 $lib'
8427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8428 soname_spec='${libname}${release}${shared_ext}$major'
8429 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8430 shlibpath_var=LD_LIBRARY_PATH
8431 shlibpath_overrides_runpath=no
8432 hardcode_into_libs=yes
8435 irix5* | irix6* | nonstopux*)
8437 nonstopux*) version_type=nonstopux ;;
8439 if test "$lt_cv_prog_gnu_ld" = yes; then
8447 soname_spec='${libname}${release}${shared_ext}$major'
8448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8450 irix5* | nonstopux*)
8454 case $LD in # libtool.m4 will add one of these switches to LD
8455 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8456 libsuff= shlibsuff= libmagic=32-bit;;
8457 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8458 libsuff=32 shlibsuff=N32 libmagic=N32;;
8459 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8460 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8461 *) libsuff= shlibsuff= libmagic=never-match;;
8465 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8466 shlibpath_overrides_runpath=no
8467 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8468 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8469 hardcode_into_libs=yes
8472 # No shared lib support for Linux oldld, aout, or coff.
8473 linux*oldld* | linux*aout* | linux*coff*)
8477 # This must be Linux ELF.
8482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8483 soname_spec='${libname}${release}${shared_ext}$major'
8484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8485 shlibpath_var=LD_LIBRARY_PATH
8486 shlibpath_overrides_runpath=no
8487 # This implies no fast_install, which is unacceptable.
8488 # Some rework will be needed to allow for fast_install
8489 # before this can be enabled.
8490 hardcode_into_libs=yes
8492 # Append ld.so.conf contents to the search path
8493 if test -f /etc/ld.so.conf; then
8494 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8495 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8498 # We used to test for /lib/ld.so.1 and disable shared libraries on
8499 # powerpc, because MkLinux only supported shared libraries with the
8500 # GNU dynamic linker. Since this was broken with cross compilers,
8501 # most powerpc-linux boxes support dynamic linking these days and
8502 # people can always --disable-shared, the test was removed, and we
8503 # assume the GNU/Linux dynamic linker is in use.
8504 dynamic_linker='GNU/Linux ld.so'
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8512 soname_spec='${libname}${release}${shared_ext}$major'
8513 shlibpath_var=LD_LIBRARY_PATH
8514 shlibpath_overrides_runpath=no
8515 hardcode_into_libs=yes
8516 dynamic_linker='GNU ld.so'
8523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8526 dynamic_linker='NetBSD (a.out) ld.so'
8528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8529 soname_spec='${libname}${release}${shared_ext}$major'
8530 dynamic_linker='NetBSD ld.elf_so'
8532 shlibpath_var=LD_LIBRARY_PATH
8533 shlibpath_overrides_runpath=yes
8534 hardcode_into_libs=yes
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8540 shlibpath_var=LD_LIBRARY_PATH
8541 shlibpath_overrides_runpath=yes
8548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8549 soname_spec='${libname}${release}${shared_ext}$major'
8550 shlibpath_var=LD_LIBRARY_PATH
8551 shlibpath_overrides_runpath=yes
8556 sys_lib_dlsearch_path_spec="/usr/lib"
8558 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8560 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8561 *) need_version=no ;;
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8565 shlibpath_var=LD_LIBRARY_PATH
8566 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8568 openbsd2.[89] | openbsd2.[89].*)
8569 shlibpath_overrides_runpath=no
8572 shlibpath_overrides_runpath=yes
8576 shlibpath_overrides_runpath=yes
8581 libname_spec='$name'
8584 library_names_spec='$libname${shared_ext} $libname.a'
8585 dynamic_linker='OS/2 ld.exe'
8586 shlibpath_var=LIBPATH
8589 osf3* | osf4* | osf5*)
8593 soname_spec='${libname}${release}${shared_ext}$major'
8594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595 shlibpath_var=LD_LIBRARY_PATH
8596 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8597 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8605 soname_spec='${libname}${release}${shared_ext}$major'
8606 shlibpath_var=LD_LIBRARY_PATH
8607 shlibpath_overrides_runpath=yes
8608 hardcode_into_libs=yes
8609 # ldd complains unless libraries are executable
8610 postinstall_cmds='chmod +x $lib'
8615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8617 shlibpath_var=LD_LIBRARY_PATH
8618 shlibpath_overrides_runpath=yes
8619 if test "$with_gnu_ld" = yes; then
8627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8628 soname_spec='${libname}${release}${shared_ext}$major'
8629 shlibpath_var=LD_LIBRARY_PATH
8630 case $host_vendor in
8632 shlibpath_overrides_runpath=no
8634 export_dynamic_flag_spec='${wl}-Blargedynsym'
8635 runpath_var=LD_RUN_PATH
8643 shlibpath_overrides_runpath=no
8644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8650 if test -d /usr/nec ;then
8652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8653 soname_spec='$libname${shared_ext}.$major'
8654 shlibpath_var=LD_LIBRARY_PATH
8658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8659 version_type=freebsd-elf
8662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8663 soname_spec='${libname}${release}${shared_ext}$major'
8664 shlibpath_var=LD_LIBRARY_PATH
8665 hardcode_into_libs=yes
8666 if test "$with_gnu_ld" = yes; then
8667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8668 shlibpath_overrides_runpath=no
8670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8671 shlibpath_overrides_runpath=yes
8674 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8678 sys_lib_dlsearch_path_spec='/usr/lib'
8683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8684 soname_spec='${libname}${release}${shared_ext}$major'
8685 shlibpath_var=LD_LIBRARY_PATH
8692 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8693 echo "${ECHO_T}$dynamic_linker" >&6
8694 test "$dynamic_linker" = no && can_build_shared=no
8696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8697 if test "$GCC" = yes; then
8698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8701 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8702 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8704 if test -n "$hardcode_libdir_flag_spec" || \
8705 test -n "$runpath_var" || \
8706 test "X$hardcode_automatic" = "Xyes" ; then
8708 # We can hardcode non-existant directories.
8709 if test "$hardcode_direct" != no &&
8710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8711 # have to relink, otherwise we might link with an installed library
8712 # when we should be linking with a yet-to-be-installed one
8713 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8714 test "$hardcode_minus_L" != no; then
8715 # Linking always hardcodes the temporary library directory.
8716 hardcode_action=relink
8718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8719 hardcode_action=immediate
8722 # We cannot hardcode anything, or else we can only hardcode existing
8724 hardcode_action=unsupported
8726 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8727 echo "${ECHO_T}$hardcode_action" >&6
8729 if test "$hardcode_action" = relink; then
8730 # Fast installation is not supported
8731 enable_fast_install=no
8732 elif test "$shlibpath_overrides_runpath" = yes ||
8733 test "$enable_shared" = no; then
8734 # Fast installation is not necessary
8735 enable_fast_install=needless
8740 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8741 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8742 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8743 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8744 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8745 echo "$as_me:$LINENO: result: yes" >&5
8746 echo "${ECHO_T}yes" >&6
8748 # FIXME - insert some real tests, host_os isn't really good enough
8751 if test -n "$STRIP" ; then
8752 striplib="$STRIP -x"
8753 echo "$as_me:$LINENO: result: yes" >&5
8754 echo "${ECHO_T}yes" >&6
8756 echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8761 echo "$as_me:$LINENO: result: no" >&5
8762 echo "${ECHO_T}no" >&6
8767 if test "x$enable_dlopen" != xyes; then
8768 enable_dlopen=unknown
8769 enable_dlopen_self=unknown
8770 enable_dlopen_self_static=unknown
8777 lt_cv_dlopen="load_add_on"
8779 lt_cv_dlopen_self=yes
8783 lt_cv_dlopen="LoadLibrary"
8788 lt_cv_dlopen="dlopen"
8793 # if libdl is installed we need to link against it
8794 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 ac_check_lib_save_LIBS=$LIBS
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8808 /* Override any gcc2 internal prototype to avoid an error. */
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>conftest.er1
8827 grep -v '^ *+' conftest.er1 >conftest.err
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag"
8833 || test ! -s conftest.err'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_lib_dl_dlopen=yes
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 ac_cv_lib_dl_dlopen=no
8852 rm -f conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8857 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8858 if test $ac_cv_lib_dl_dlopen = yes; then
8859 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8864 lt_cv_dlopen_self=yes
8871 echo "$as_me:$LINENO: checking for shl_load" >&5
8872 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8873 if test "${ac_cv_func_shl_load+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 cat >conftest.$ac_ext <<_ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8882 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8884 #define shl_load innocuous_shl_load
8886 /* System header to define __stub macros and hopefully few prototypes,
8887 which can conflict with char shl_load (); below.
8888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8889 <limits.h> exists even on freestanding compilers. */
8892 # include <limits.h>
8894 # include <assert.h>
8899 /* Override any gcc2 internal prototype to avoid an error. */
8904 /* We use char because int might match the return type of a gcc2
8905 builtin and then its argument prototype would still apply. */
8907 /* The GNU C library defines this for functions which it implements
8908 to always fail with ENOSYS. Some functions are actually named
8909 something starting with __ and the normal name is an alias. */
8910 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8913 char (*f) () = shl_load;
8922 return f != shl_load;
8927 rm -f conftest.$ac_objext conftest$ac_exeext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929 (eval $ac_link) 2>conftest.er1
8931 grep -v '^ *+' conftest.er1 >conftest.err
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -z "$ac_c_werror_flag"
8937 || test ! -s conftest.err'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; } &&
8943 { ac_try='test -s conftest$ac_exeext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 ac_cv_func_shl_load=yes
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8954 ac_cv_func_shl_load=no
8956 rm -f conftest.err conftest.$ac_objext \
8957 conftest$ac_exeext conftest.$ac_ext
8959 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8960 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8961 if test $ac_cv_func_shl_load = yes; then
8962 lt_cv_dlopen="shl_load"
8964 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8965 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8966 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 ac_check_lib_save_LIBS=$LIBS
8971 cat >conftest.$ac_ext <<_ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8978 /* Override any gcc2 internal prototype to avoid an error. */
8982 /* We use char because int might match the return type of a gcc2
8983 builtin and then its argument prototype would still apply. */
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8997 grep -v '^ *+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag"
9003 || test ! -s conftest.err'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_cv_lib_dld_shl_load=yes
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 ac_cv_lib_dld_shl_load=no
9022 rm -f conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext conftest.$ac_ext
9024 LIBS=$ac_check_lib_save_LIBS
9026 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9027 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9028 if test $ac_cv_lib_dld_shl_load = yes; then
9029 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9031 echo "$as_me:$LINENO: checking for dlopen" >&5
9032 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9033 if test "${ac_cv_func_dlopen+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 cat >conftest.$ac_ext <<_ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9042 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9044 #define dlopen innocuous_dlopen
9046 /* System header to define __stub macros and hopefully few prototypes,
9047 which can conflict with char dlopen (); below.
9048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9049 <limits.h> exists even on freestanding compilers. */
9052 # include <limits.h>
9054 # include <assert.h>
9059 /* Override any gcc2 internal prototype to avoid an error. */
9064 /* We use char because int might match the return type of a gcc2
9065 builtin and then its argument prototype would still apply. */
9067 /* The GNU C library defines this for functions which it implements
9068 to always fail with ENOSYS. Some functions are actually named
9069 something starting with __ and the normal name is an alias. */
9070 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9073 char (*f) () = dlopen;
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>conftest.er1
9091 grep -v '^ *+' conftest.er1 >conftest.err
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_c_werror_flag"
9097 || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_func_dlopen=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9114 ac_cv_func_dlopen=no
9116 rm -f conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9119 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9120 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9121 if test $ac_cv_func_dlopen = yes; then
9122 lt_cv_dlopen="dlopen"
9124 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9125 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9126 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 ac_check_lib_save_LIBS=$LIBS
9131 cat >conftest.$ac_ext <<_ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9138 /* Override any gcc2 internal prototype to avoid an error. */
9142 /* We use char because int might match the return type of a gcc2
9143 builtin and then its argument prototype would still apply. */
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155 (eval $ac_link) 2>conftest.er1
9157 grep -v '^ *+' conftest.er1 >conftest.err
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
9162 { ac_try='test -z "$ac_c_werror_flag"
9163 || test ! -s conftest.err'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; } &&
9169 { ac_try='test -s conftest$ac_exeext'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_cv_lib_dl_dlopen=yes
9177 echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9180 ac_cv_lib_dl_dlopen=no
9182 rm -f conftest.err conftest.$ac_objext \
9183 conftest$ac_exeext conftest.$ac_ext
9184 LIBS=$ac_check_lib_save_LIBS
9186 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9187 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9188 if test $ac_cv_lib_dl_dlopen = yes; then
9189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9191 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9192 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9193 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 ac_check_lib_save_LIBS=$LIBS
9198 cat >conftest.$ac_ext <<_ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9205 /* Override any gcc2 internal prototype to avoid an error. */
9209 /* We use char because int might match the return type of a gcc2
9210 builtin and then its argument prototype would still apply. */
9220 rm -f conftest.$ac_objext conftest$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>conftest.er1
9224 grep -v '^ *+' conftest.er1 >conftest.err
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } &&
9229 { ac_try='test -z "$ac_c_werror_flag"
9230 || test ! -s conftest.err'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; } &&
9236 { ac_try='test -s conftest$ac_exeext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 ac_cv_lib_svld_dlopen=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9247 ac_cv_lib_svld_dlopen=no
9249 rm -f conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251 LIBS=$ac_check_lib_save_LIBS
9253 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9254 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9255 if test $ac_cv_lib_svld_dlopen = yes; then
9256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9258 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9259 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9260 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 ac_check_lib_save_LIBS=$LIBS
9265 cat >conftest.$ac_ext <<_ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9272 /* Override any gcc2 internal prototype to avoid an error. */
9276 /* We use char because int might match the return type of a gcc2
9277 builtin and then its argument prototype would still apply. */
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289 (eval $ac_link) 2>conftest.er1
9291 grep -v '^ *+' conftest.er1 >conftest.err
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } &&
9296 { ac_try='test -z "$ac_c_werror_flag"
9297 || test ! -s conftest.err'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; } &&
9303 { ac_try='test -s conftest$ac_exeext'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9309 ac_cv_lib_dld_dld_link=yes
9311 echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9314 ac_cv_lib_dld_dld_link=no
9316 rm -f conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9320 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9321 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9322 if test $ac_cv_lib_dld_dld_link = yes; then
9323 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9344 if test "x$lt_cv_dlopen" != xno; then
9350 case $lt_cv_dlopen in
9352 save_CPPFLAGS="$CPPFLAGS"
9353 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9355 save_LDFLAGS="$LDFLAGS"
9356 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9359 LIBS="$lt_cv_dlopen_libs $LIBS"
9361 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9362 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9363 if test "${lt_cv_dlopen_self+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 if test "$cross_compiling" = yes; then :
9367 lt_cv_dlopen_self=cross
9369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9370 lt_status=$lt_dlunknown
9371 cat > conftest.$ac_ext <<EOF
9372 #line 9372 "configure"
9373 #include "confdefs.h"
9382 # define LT_DLGLOBAL RTLD_GLOBAL
9385 # define LT_DLGLOBAL DL_GLOBAL
9387 # define LT_DLGLOBAL 0
9391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9392 find out it does not work in some platform. */
9393 #ifndef LT_DLLAZY_OR_NOW
9395 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9398 # define LT_DLLAZY_OR_NOW DL_LAZY
9401 # define LT_DLLAZY_OR_NOW RTLD_NOW
9404 # define LT_DLLAZY_OR_NOW DL_NOW
9406 # define LT_DLLAZY_OR_NOW 0
9414 extern "C" void exit (int);
9417 void fnord() { int i=42;}
9420 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9421 int status = $lt_dlunknown;
9425 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9426 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9427 /* dlclose (self); */
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9440 (./conftest; exit; ) >&5 2>/dev/null
9443 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9444 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9445 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9448 # compilation failed
9449 lt_cv_dlopen_self=no
9456 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9457 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9459 if test "x$lt_cv_dlopen_self" = xyes; then
9460 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9461 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9462 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9463 if test "${lt_cv_dlopen_self_static+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 if test "$cross_compiling" = yes; then :
9467 lt_cv_dlopen_self_static=cross
9469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9470 lt_status=$lt_dlunknown
9471 cat > conftest.$ac_ext <<EOF
9472 #line 9472 "configure"
9473 #include "confdefs.h"
9482 # define LT_DLGLOBAL RTLD_GLOBAL
9485 # define LT_DLGLOBAL DL_GLOBAL
9487 # define LT_DLGLOBAL 0
9491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9492 find out it does not work in some platform. */
9493 #ifndef LT_DLLAZY_OR_NOW
9495 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9498 # define LT_DLLAZY_OR_NOW DL_LAZY
9501 # define LT_DLLAZY_OR_NOW RTLD_NOW
9504 # define LT_DLLAZY_OR_NOW DL_NOW
9506 # define LT_DLLAZY_OR_NOW 0
9514 extern "C" void exit (int);
9517 void fnord() { int i=42;}
9520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9521 int status = $lt_dlunknown;
9525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9526 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9527 /* dlclose (self); */
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9540 (./conftest; exit; ) >&5 2>/dev/null
9543 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9544 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9545 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9548 # compilation failed
9549 lt_cv_dlopen_self_static=no
9556 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9557 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9560 CPPFLAGS="$save_CPPFLAGS"
9561 LDFLAGS="$save_LDFLAGS"
9566 case $lt_cv_dlopen_self in
9567 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9568 *) enable_dlopen_self=unknown ;;
9571 case $lt_cv_dlopen_self_static in
9572 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9573 *) enable_dlopen_self_static=unknown ;;
9578 # Report which library types will actually be built
9579 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9580 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9581 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9582 echo "${ECHO_T}$can_build_shared" >&6
9584 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9585 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9586 test "$can_build_shared" = "no" && enable_shared=no
9588 # On AIX, shared libraries and static libraries use the same namespace, and
9589 # are all built from PIC.
9592 test "$enable_shared" = yes && enable_static=no
9593 if test -n "$RANLIB"; then
9594 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9595 postinstall_cmds='$RANLIB $lib'
9600 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9601 test "$enable_shared" = yes && enable_static=no
9605 echo "$as_me:$LINENO: result: $enable_shared" >&5
9606 echo "${ECHO_T}$enable_shared" >&6
9608 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9609 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9610 # Make sure either enable_shared or enable_static is yes.
9611 test "$enable_shared" = yes || enable_static=yes
9612 echo "$as_me:$LINENO: result: $enable_static" >&5
9613 echo "${ECHO_T}$enable_static" >&6
9615 # The else clause should only fire when bootstrapping the
9616 # libtool distribution, otherwise you forgot to ship ltmain.sh
9617 # with your package, and you will get complaints that there are
9618 # no rules to generate ltmain.sh.
9619 if test -f "$ltmain"; then
9620 # See if we are running on zsh, and set the options which allow our commands through
9621 # without removal of \ escapes.
9622 if test -n "${ZSH_VERSION+set}" ; then
9623 setopt NO_GLOB_SUBST
9625 # Now quote all the things that may contain metacharacters while being
9626 # careful not to overquote the AC_SUBSTed values. We take copies of the
9627 # variables and quote the copies for generation of the libtool script.
9628 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9630 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9631 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9632 deplibs_check_method reload_flag reload_cmds need_locks \
9633 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9634 lt_cv_sys_global_symbol_to_c_name_address \
9635 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9636 old_postinstall_cmds old_postuninstall_cmds \
9640 lt_prog_compiler_wl \
9641 lt_prog_compiler_pic \
9642 lt_prog_compiler_static \
9643 lt_prog_compiler_no_builtin_flag \
9644 export_dynamic_flag_spec \
9645 thread_safe_flag_spec \
9646 whole_archive_flag_spec \
9647 enable_shared_with_static_runtimes \
9649 old_archive_from_new_cmds \
9654 compiler_lib_search_path \
9656 archive_expsym_cmds \
9658 postuninstall_cmds \
9659 old_archive_from_expsyms_cmds \
9660 allow_undefined_flag \
9662 export_symbols_cmds \
9663 hardcode_libdir_flag_spec \
9664 hardcode_libdir_flag_spec_ld \
9665 hardcode_libdir_separator \
9666 hardcode_automatic \
9668 module_expsym_cmds \
9669 lt_cv_prog_compiler_c_o \
9674 old_archive_cmds | \
9675 old_archive_from_new_cmds | \
9677 archive_expsym_cmds | \
9679 module_expsym_cmds | \
9680 old_archive_from_expsyms_cmds | \
9681 export_symbols_cmds | \
9682 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9683 postinstall_cmds | postuninstall_cmds | \
9684 old_postinstall_cmds | old_postuninstall_cmds | \
9685 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9686 # Double-quote double-evaled strings.
9687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9696 *'\$0 --fallback-echo"')
9697 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9702 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9704 { echo "$as_me:$LINENO: creating $ofile" >&5
9705 echo "$as_me: creating $ofile" >&6;}
9707 cat <<__EOF__ >> "$cfgfile"
9710 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9711 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9712 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9714 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9715 # Free Software Foundation, Inc.
9717 # This file is part of GNU Libtool:
9718 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9720 # This program is free software; you can redistribute it and/or modify
9721 # it under the terms of the GNU General Public License as published by
9722 # the Free Software Foundation; either version 2 of the License, or
9723 # (at your option) any later version.
9725 # This program is distributed in the hope that it will be useful, but
9726 # WITHOUT ANY WARRANTY; without even the implied warranty of
9727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9728 # General Public License for more details.
9730 # You should have received a copy of the GNU General Public License
9731 # along with this program; if not, write to the Free Software
9732 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9734 # As a special exception to the GNU General Public License, if you
9735 # distribute this file as part of a program that contains a
9736 # configuration script generated by Autoconf, you may include it under
9737 # the same distribution terms that you use for the rest of that program.
9739 # A sed program that does not truncate output.
9742 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9743 Xsed="$SED -e 1s/^X//"
9745 # The HP-UX ksh and POSIX shell print the target directory to stdout
9747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9749 # The names of the tagged configurations supported by this script.
9752 # ### BEGIN LIBTOOL CONFIG
9754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9756 # Shell to use when invoking shell scripts.
9759 # Whether or not to build shared libraries.
9760 build_libtool_libs=$enable_shared
9762 # Whether or not to build static libraries.
9763 build_old_libs=$enable_static
9765 # Whether or not to add -lc for building shared libraries.
9766 build_libtool_need_lc=$archive_cmds_need_lc
9768 # Whether or not to disallow shared libs when runtime libs are static
9769 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9771 # Whether or not to optimize for fast installation.
9772 fast_install=$enable_fast_install
9775 host_alias=$host_alias
9780 build_alias=$build_alias
9784 # An echo program that does not interpret backslashes.
9789 AR_FLAGS=$lt_AR_FLAGS
9794 # LTCC compiler flags.
9795 LTCFLAGS=$lt_LTCFLAGS
9797 # A language-specific compiler.
9800 # Is the compiler the GNU C compiler?
9806 # The linker used to build libraries.
9809 # Whether we need hard or soft links.
9812 # A BSD-compatible nm program.
9815 # A symbol stripping program
9818 # Used to examine libraries when file_magic_cmd begins "file"
9819 MAGIC_CMD=$MAGIC_CMD
9821 # Used on cygwin: DLL creation program.
9824 # Used on cygwin: object dumper.
9827 # Used on cygwin: assembler.
9830 # The name of the directory that contains temporary libtool files.
9833 # How to create reloadable object files.
9834 reload_flag=$lt_reload_flag
9835 reload_cmds=$lt_reload_cmds
9837 # How to pass a linker flag through the compiler.
9838 wl=$lt_lt_prog_compiler_wl
9840 # Object file suffix (normally "o").
9843 # Old archive suffix (normally "a").
9846 # Shared library suffix (normally ".so").
9847 shrext_cmds='$shrext_cmds'
9849 # Executable file suffix (normally "").
9852 # Additional compiler flags for building library objects.
9853 pic_flag=$lt_lt_prog_compiler_pic
9856 # What is the maximum length of a command?
9857 max_cmd_len=$lt_cv_sys_max_cmd_len
9859 # Does compiler simultaneously support -c and -o options?
9860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9862 # Must we lock files when doing compilation?
9863 need_locks=$lt_need_locks
9865 # Do we need the lib prefix for modules?
9866 need_lib_prefix=$need_lib_prefix
9868 # Do we need a version for libraries?
9869 need_version=$need_version
9871 # Whether dlopen is supported.
9872 dlopen_support=$enable_dlopen
9874 # Whether dlopen of programs is supported.
9875 dlopen_self=$enable_dlopen_self
9877 # Whether dlopen of statically linked programs is supported.
9878 dlopen_self_static=$enable_dlopen_self_static
9880 # Compiler flag to prevent dynamic linking.
9881 link_static_flag=$lt_lt_prog_compiler_static
9883 # Compiler flag to turn off builtin functions.
9884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9886 # Compiler flag to allow reflexive dlopens.
9887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9889 # Compiler flag to generate shared objects directly from archives.
9890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9892 # Compiler flag to generate thread-safe objects.
9893 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9895 # Library versioning type.
9896 version_type=$version_type
9898 # Format of library name prefix.
9899 libname_spec=$lt_libname_spec
9901 # List of archive names. First name is the real one, the rest are links.
9902 # The last name is the one that the linker finds with -lNAME.
9903 library_names_spec=$lt_library_names_spec
9905 # The coded name of the library, if different from the real name.
9906 soname_spec=$lt_soname_spec
9908 # Commands used to build and install an old-style archive.
9910 old_archive_cmds=$lt_old_archive_cmds
9911 old_postinstall_cmds=$lt_old_postinstall_cmds
9912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9914 # Create an old-style archive from a shared archive.
9915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9917 # Create a temporary old-style archive to link instead of a shared archive.
9918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9920 # Commands used to build and install a shared archive.
9921 archive_cmds=$lt_archive_cmds
9922 archive_expsym_cmds=$lt_archive_expsym_cmds
9923 postinstall_cmds=$lt_postinstall_cmds
9924 postuninstall_cmds=$lt_postuninstall_cmds
9926 # Commands used to build a loadable module (assumed same as above if empty)
9927 module_cmds=$lt_module_cmds
9928 module_expsym_cmds=$lt_module_expsym_cmds
9930 # Commands to strip libraries.
9931 old_striplib=$lt_old_striplib
9932 striplib=$lt_striplib
9934 # Dependencies to place before the objects being linked to create a
9936 predep_objects=$lt_predep_objects
9938 # Dependencies to place after the objects being linked to create a
9940 postdep_objects=$lt_postdep_objects
9942 # Dependencies to place before the objects being linked to create a
9946 # Dependencies to place after the objects being linked to create a
9948 postdeps=$lt_postdeps
9950 # The library search path used internally by the compiler when linking
9952 compiler_lib_search_path=$lt_compiler_lib_search_path
9954 # Method to check whether dependent libraries are shared objects.
9955 deplibs_check_method=$lt_deplibs_check_method
9957 # Command to use when deplibs_check_method == file_magic.
9958 file_magic_cmd=$lt_file_magic_cmd
9960 # Flag that allows shared libraries with undefined symbols to be built.
9961 allow_undefined_flag=$lt_allow_undefined_flag
9963 # Flag that forces no undefined symbols.
9964 no_undefined_flag=$lt_no_undefined_flag
9966 # Commands used to finish a libtool library installation in a directory.
9967 finish_cmds=$lt_finish_cmds
9969 # Same as above, but a single script fragment to be evaled but not shown.
9970 finish_eval=$lt_finish_eval
9972 # Take the output of nm and produce a listing of raw symbols and C names.
9973 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9975 # Transform the output of nm in a proper C declaration
9976 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9978 # Transform the output of nm in a C name address pair
9979 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9981 # This is the shared library runtime path variable.
9982 runpath_var=$runpath_var
9984 # This is the shared library path variable.
9985 shlibpath_var=$shlibpath_var
9987 # Is shlibpath searched before the hard-coded library search path?
9988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9990 # How to hardcode a shared library path into an executable.
9991 hardcode_action=$hardcode_action
9993 # Whether we should hardcode library paths into libraries.
9994 hardcode_into_libs=$hardcode_into_libs
9996 # Flag to hardcode \$libdir into a binary during linking.
9997 # This must work even if \$libdir does not exist.
9998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10000 # If ld is used when linking, flag to hardcode \$libdir into
10001 # a binary during linking. This must work even if \$libdir does
10003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10005 # Whether we need a single -rpath flag with a separated argument.
10006 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10008 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10009 # resulting binary.
10010 hardcode_direct=$hardcode_direct
10012 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10013 # resulting binary.
10014 hardcode_minus_L=$hardcode_minus_L
10016 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10017 # the resulting binary.
10018 hardcode_shlibpath_var=$hardcode_shlibpath_var
10020 # Set to yes if building a shared library automatically hardcodes DIR into the library
10021 # and all subsequent libraries and executables linked against it.
10022 hardcode_automatic=$hardcode_automatic
10024 # Variables whose values should be saved in libtool wrapper scripts and
10025 # restored at relink time.
10026 variables_saved_for_relink="$variables_saved_for_relink"
10028 # Whether libtool must link a program against all its dependency libraries.
10029 link_all_deplibs=$link_all_deplibs
10031 # Compile-time system search path for libraries
10032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10034 # Run-time system search path for libraries
10035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10037 # Fix the shell variable \$srcfile for the compiler.
10038 fix_srcfile_path="$fix_srcfile_path"
10040 # Set to yes if exported symbols are required.
10041 always_export_symbols=$always_export_symbols
10043 # The commands to list exported symbols.
10044 export_symbols_cmds=$lt_export_symbols_cmds
10046 # The commands to extract the exported symbol list from a shared archive.
10047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10049 # Symbols that should not be listed in the preloaded symbols.
10050 exclude_expsyms=$lt_exclude_expsyms
10052 # Symbols that must always be exported.
10053 include_expsyms=$lt_include_expsyms
10055 # ### END LIBTOOL CONFIG
10062 cat <<\EOF >> "$cfgfile"
10064 # AIX sometimes has problems with the GCC collect2 program. For some
10065 # reason, if we set the COLLECT_NAMES environment variable, the problems
10066 # vanish in a puff of smoke.
10067 if test "X${COLLECT_NAMES+set}" != Xset; then
10069 export COLLECT_NAMES
10075 # We use sed instead of cat because bash on DJGPP gets confused if
10076 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10077 # text mode, it properly converts lines to CR/LF. This bash problem
10078 # is reportedly fixed, but why not run on old versions too?
10079 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10081 mv -f "$cfgfile" "$ofile" || \
10082 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10086 # If there is no Makefile yet, we rely on a make rule to execute
10087 # `config.status --recheck' to rerun these tests and create the
10088 # libtool script then.
10089 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10090 if test -f "$ltmain_in"; then
10091 test -f Makefile && make "$ltmain"
10097 ac_cpp='$CPP $CPPFLAGS'
10098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10105 # Check whether --with-tags or --without-tags was given.
10106 if test "${with_tags+set}" = set; then
10107 withval="$with_tags"
10108 tagnames="$withval"
10111 if test -f "$ltmain" && test -n "$tagnames"; then
10112 if test ! -f "${ofile}"; then
10113 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10114 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10117 if test -z "$LTCC"; then
10118 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10119 if test -z "$LTCC"; then
10120 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10121 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10124 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10127 if test -z "$LTCFLAGS"; then
10128 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10131 # Extract list of available tagged configurations in $ofile.
10132 # Note that this assumes the entire list is on one line.
10133 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10136 for tagname in $tagnames; do
10138 # Check whether tagname contains only valid characters
10139 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10141 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10142 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10143 { (exit 1); exit 1; }; }
10147 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10149 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10150 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10151 { (exit 1); exit 1; }; }
10154 # Update the list of available tags.
10155 if test -n "$tagname"; then
10156 echo appending configuration tag \"$tagname\" to $ofile
10160 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10161 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10162 (test "X$CXX" != "Xg++"))) ; then
10164 ac_cpp='$CXXCPP $CPPFLAGS'
10165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10172 archive_cmds_need_lc_CXX=no
10173 allow_undefined_flag_CXX=
10174 always_export_symbols_CXX=no
10175 archive_expsym_cmds_CXX=
10176 export_dynamic_flag_spec_CXX=
10177 hardcode_direct_CXX=no
10178 hardcode_libdir_flag_spec_CXX=
10179 hardcode_libdir_flag_spec_ld_CXX=
10180 hardcode_libdir_separator_CXX=
10181 hardcode_minus_L_CXX=no
10182 hardcode_shlibpath_var_CXX=unsupported
10183 hardcode_automatic_CXX=no
10185 module_expsym_cmds_CXX=
10186 link_all_deplibs_CXX=unknown
10187 old_archive_cmds_CXX=$old_archive_cmds
10188 no_undefined_flag_CXX=
10189 whole_archive_flag_spec_CXX=
10190 enable_shared_with_static_runtimes_CXX=no
10192 # Dependencies to place before and after the object being linked:
10193 predep_objects_CXX=
10194 postdep_objects_CXX=
10197 compiler_lib_search_path_CXX=
10199 # Source file extension for C++ test sources.
10202 # Object file extension for compiled C++ test sources.
10206 # Code to be used in simple compile tests
10207 lt_simple_compile_test_code="int some_variable = 0;\n"
10209 # Code to be used in simple link tests
10210 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10212 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10214 # If no C compiler was specified, use CC.
10217 # If no C compiler flags were specified, use CFLAGS.
10218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10220 # Allow CC to be a program name with arguments.
10224 # save warnings/boilerplate of simple test code
10225 ac_outfile=conftest.$ac_objext
10226 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10227 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10228 _lt_compiler_boilerplate=`cat conftest.err`
10231 ac_outfile=conftest.$ac_objext
10232 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10233 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10234 _lt_linker_boilerplate=`cat conftest.err`
10238 # Allow CC to be a program name with arguments.
10243 lt_save_with_gnu_ld=$with_gnu_ld
10244 lt_save_path_LD=$lt_cv_path_LD
10245 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10246 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10248 $as_unset lt_cv_prog_gnu_ld
10250 if test -n "${lt_cv_path_LDCXX+set}"; then
10251 lt_cv_path_LD=$lt_cv_path_LDCXX
10253 $as_unset lt_cv_path_LD
10255 test -z "${LDCXX+set}" || LD=$LDCXX
10259 for cc_temp in $compiler""; do
10261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10267 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10270 # We don't want -fno-exception wen compiling C++ code, so set the
10271 # no_builtin_flag separately
10272 if test "$GXX" = yes; then
10273 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10275 lt_prog_compiler_no_builtin_flag_CXX=
10278 if test "$GXX" = yes; then
10279 # Set up default GNU C++ configuration
10282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10283 if test "${with_gnu_ld+set}" = set; then
10284 withval="$with_gnu_ld"
10285 test "$withval" = no || with_gnu_ld=yes
10290 if test "$GCC" = yes; then
10291 # Check if gcc -print-prog-name=ld gives a path.
10292 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10293 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10296 # gcc leaves a trailing carriage return which upsets mingw
10297 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10299 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10302 # Accept absolute paths.
10304 re_direlt='/[^/][^/]*/\.\./'
10305 # Canonicalize the pathname of ld
10306 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10307 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10308 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10310 test -z "$LD" && LD="$ac_prog"
10313 # If it fails, then pretend we aren't using GCC.
10317 # If it is relative, then search for the first ld in PATH.
10318 with_gnu_ld=unknown
10321 elif test "$with_gnu_ld" = yes; then
10322 echo "$as_me:$LINENO: checking for GNU ld" >&5
10323 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10325 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10326 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10328 if test "${lt_cv_path_LD+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 if test -z "$LD"; then
10332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10333 for ac_dir in $PATH; do
10335 test -z "$ac_dir" && ac_dir=.
10336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10337 lt_cv_path_LD="$ac_dir/$ac_prog"
10338 # Check to see if the program is GNU ld. I'd rather use --version,
10339 # but apparently some variants of GNU ld only accept -v.
10340 # Break only if it was the GNU/non-GNU ld that we prefer.
10341 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10342 *GNU* | *'with BFD'*)
10343 test "$with_gnu_ld" != no && break
10346 test "$with_gnu_ld" != yes && break
10353 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10357 LD="$lt_cv_path_LD"
10358 if test -n "$LD"; then
10359 echo "$as_me:$LINENO: result: $LD" >&5
10360 echo "${ECHO_T}$LD" >&6
10362 echo "$as_me:$LINENO: result: no" >&5
10363 echo "${ECHO_T}no" >&6
10365 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10366 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10367 { (exit 1); exit 1; }; }
10368 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10369 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10370 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10374 case `$LD -v 2>&1 </dev/null` in
10375 *GNU* | *'with BFD'*)
10376 lt_cv_prog_gnu_ld=yes
10379 lt_cv_prog_gnu_ld=no
10383 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10384 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10385 with_gnu_ld=$lt_cv_prog_gnu_ld
10389 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10390 # archiving commands below assume that GNU ld is being used.
10391 if test "$with_gnu_ld" = yes; then
10392 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10393 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'
10395 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10396 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10398 # If archive_cmds runs LD, not CC, wlarc should be empty
10399 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10400 # investigate it a little bit more. (MM)
10403 # ancient GNU ld didn't support --whole-archive et. al.
10404 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10405 grep 'no-whole-archive' > /dev/null; then
10406 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10408 whole_archive_flag_spec_CXX=
10414 # A generic and very simple default shared library creation
10415 # command for GNU C++ for the case where it uses the native
10416 # linker, instead of GNU ld. If possible, this setting should
10417 # overridden to take advantage of the native linker features on
10418 # the platform it is being used on.
10419 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10422 # Commands to make compiler produce verbose output that lists
10423 # what "hidden" libraries, object files and flags are used when
10424 # linking a shared library.
10425 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10433 # PORTME: fill in a description of your system's C++ link characteristics
10434 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10435 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10439 # FIXME: insert proper C++ library support
10443 if test "$host_cpu" = ia64; then
10444 # On IA64, the linker does run time linking by default, so we don't
10445 # have to do anything special.
10446 aix_use_runtimelinking=no
10447 exp_sym_flag='-Bexport'
10450 aix_use_runtimelinking=no
10452 # Test if we are trying to use run time linking or normal
10453 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10454 # need to do runtime linking.
10455 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10456 for ld_flag in $LDFLAGS; do
10459 aix_use_runtimelinking=yes
10467 exp_sym_flag='-bexport'
10468 no_entry_flag='-bnoentry'
10471 # When large executables or shared objects are built, AIX ld can
10472 # have problems creating the table of contents. If linking a library
10473 # or program results in "error TOC overflow" add -mminimal-toc to
10474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10477 archive_cmds_CXX=''
10478 hardcode_direct_CXX=yes
10479 hardcode_libdir_separator_CXX=':'
10480 link_all_deplibs_CXX=yes
10482 if test "$GXX" = yes; then
10483 case $host_os in aix4.[012]|aix4.[012].*)
10484 # We only want to do this on AIX 4.2 and lower, the check
10485 # below for broken collect2 doesn't work under 4.3+
10486 collect2name=`${CC} -print-prog-name=collect2`
10487 if test -f "$collect2name" && \
10488 strings "$collect2name" | grep resolve_lib_name >/dev/null
10490 # We have reworked collect2
10491 hardcode_direct_CXX=yes
10493 # We have old collect2
10494 hardcode_direct_CXX=unsupported
10495 # It fails to find uninstalled libraries when the uninstalled
10496 # path is not listed in the libpath. Setting hardcode_minus_L
10497 # to unsupported forces relinking
10498 hardcode_minus_L_CXX=yes
10499 hardcode_libdir_flag_spec_CXX='-L$libdir'
10500 hardcode_libdir_separator_CXX=
10504 shared_flag='-shared'
10505 if test "$aix_use_runtimelinking" = yes; then
10506 shared_flag="$shared_flag "'${wl}-G'
10510 if test "$host_cpu" = ia64; then
10511 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10512 # chokes on -Wl,-G. The following line is correct:
10515 if test "$aix_use_runtimelinking" = yes; then
10516 shared_flag='${wl}-G'
10518 shared_flag='${wl}-bM:SRE'
10523 # It seems that -bexpall does not export symbols beginning with
10524 # underscore (_), so it is better to generate a list of symbols to export.
10525 always_export_symbols_CXX=yes
10526 if test "$aix_use_runtimelinking" = yes; then
10527 # Warning - without using the other runtime loading flags (-brtl),
10528 # -berok will link without error, but may produce a broken library.
10529 allow_undefined_flag_CXX='-berok'
10530 # Determine the default libpath from the value encoded in an empty executable.
10531 cat >conftest.$ac_ext <<_ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10546 rm -f conftest.$ac_objext conftest$ac_exeext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10548 (eval $ac_link) 2>conftest.er1
10550 grep -v '^ *+' conftest.er1 >conftest.err
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_cxx_werror_flag"
10556 || test ! -s conftest.err'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest$ac_exeext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10571 # Check for a 64-bit object if we didn't find anything.
10572 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; }
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10579 rm -f conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10583 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10585 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10587 if test "$host_cpu" = ia64; then
10588 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10589 allow_undefined_flag_CXX="-z nodefs"
10590 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10592 # Determine the default libpath from the value encoded in an empty executable.
10593 cat >conftest.$ac_ext <<_ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610 (eval $ac_link) 2>conftest.er1
10612 grep -v '^ *+' conftest.er1 >conftest.err
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -z "$ac_cxx_werror_flag"
10618 || test ! -s conftest.err'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest$ac_exeext'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10633 # Check for a 64-bit object if we didn't find anything.
10634 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; }
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10641 rm -f conftest.err conftest.$ac_objext \
10642 conftest$ac_exeext conftest.$ac_ext
10643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10645 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10646 # Warning - without using the other run time loading flags,
10647 # -berok will link without error, but may produce a broken library.
10648 no_undefined_flag_CXX=' ${wl}-bernotok'
10649 allow_undefined_flag_CXX=' ${wl}-berok'
10650 # Exported symbols can be pulled into shared objects from archives
10651 whole_archive_flag_spec_CXX='$convenience'
10652 archive_cmds_need_lc_CXX=yes
10653 # This is similar to how AIX traditionally builds its shared libraries.
10654 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10660 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10661 allow_undefined_flag_CXX=unsupported
10662 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10663 # support --undefined. This deserves some investigation. FIXME
10664 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10671 case $cc_basename in
10673 # FIXME: insert proper C++ library support
10679 cygwin* | mingw* | pw32*)
10680 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10681 # as there is no search path for DLLs.
10682 hardcode_libdir_flag_spec_CXX='-L$libdir'
10683 allow_undefined_flag_CXX=unsupported
10684 always_export_symbols_CXX=no
10685 enable_shared_with_static_runtimes_CXX=yes
10687 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10688 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10689 # If the export-symbols file already is a .def file (1st line
10690 # is EXPORTS), use it as is; otherwise, prepend...
10691 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10692 cp $export_symbols $output_objdir/$soname.def;
10694 echo EXPORTS > $output_objdir/$soname.def;
10695 cat $export_symbols >> $output_objdir/$soname.def;
10697 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10702 darwin* | rhapsody*)
10704 rhapsody* | darwin1.[012])
10705 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10708 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10709 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10711 case ${MACOSX_DEPLOYMENT_TARGET} in
10713 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10716 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10722 archive_cmds_need_lc_CXX=no
10723 hardcode_direct_CXX=no
10724 hardcode_automatic_CXX=yes
10725 hardcode_shlibpath_var_CXX=unsupported
10726 whole_archive_flag_spec_CXX=''
10727 link_all_deplibs_CXX=yes
10729 if test "$GXX" = yes ; then
10730 lt_int_apple_cc_single_mod=no
10731 output_verbose_link_cmd='echo'
10732 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10733 lt_int_apple_cc_single_mod=yes
10735 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10736 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10738 archive_cmds_CXX='$CC -r -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'
10740 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10741 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10742 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10743 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}'
10745 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10747 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}'
10749 case $cc_basename in
10751 output_verbose_link_cmd='echo'
10752 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10753 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10754 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10755 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10756 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}'
10766 case $cc_basename in
10768 # FIXME: insert proper C++ library support
10772 # Green Hills C++ Compiler
10773 # FIXME: insert proper C++ library support
10777 # FIXME: insert proper C++ library support
10783 # C++ shared libraries reported to be fairly broken before switch to ELF
10787 archive_cmds_need_lc_CXX=no
10789 freebsd* | kfreebsd*-gnu | dragonfly*)
10790 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10797 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10798 hardcode_libdir_separator_CXX=:
10799 export_dynamic_flag_spec_CXX='${wl}-E'
10800 hardcode_direct_CXX=yes
10801 hardcode_minus_L_CXX=yes # Not in the search PATH,
10802 # but as the default
10803 # location of the library.
10805 case $cc_basename in
10807 # FIXME: insert proper C++ library support
10811 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'
10812 # Commands to make compiler produce verbose output that lists
10813 # what "hidden" libraries, object files and flags are used when
10814 # linking a shared library.
10816 # There doesn't appear to be a way to prevent this compiler from
10817 # explicitly linking system object files so we need to strip them
10818 # from the output so that they don't get included in the library
10820 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'
10823 if test "$GXX" = yes; then
10824 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'
10826 # FIXME: insert proper C++ library support
10833 if test $with_gnu_ld = no; then
10834 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10835 hardcode_libdir_separator_CXX=:
10839 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10842 export_dynamic_flag_spec_CXX='${wl}-E'
10848 hardcode_direct_CXX=no
10849 hardcode_shlibpath_var_CXX=no
10852 hardcode_direct_CXX=yes
10853 hardcode_minus_L_CXX=yes # Not in the search PATH,
10854 # but as the default
10855 # location of the library.
10859 case $cc_basename in
10861 # FIXME: insert proper C++ library support
10867 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10870 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10876 # Commands to make compiler produce verbose output that lists
10877 # what "hidden" libraries, object files and flags are used when
10878 # linking a shared library.
10880 # There doesn't appear to be a way to prevent this compiler from
10881 # explicitly linking system object files so we need to strip them
10882 # from the output so that they don't get included in the library
10884 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'
10887 if test "$GXX" = yes; then
10888 if test $with_gnu_ld = no; then
10891 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10894 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10897 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'
10902 # FIXME: insert proper C++ library support
10909 hardcode_direct_CXX=no
10910 hardcode_shlibpath_var_CXX=no
10911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10912 export_dynamic_flag_spec_CXX='${wl}-E'
10913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10914 # Instead, shared libraries are loaded at an image base (0x10000000 by
10915 # default) and relocated if they conflict, which is a slow very memory
10916 # consuming and fragmenting process. To avoid this, we pick a random,
10917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10918 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10919 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10920 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10923 case $cc_basename in
10926 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 ${output_objdir}/so_locations -o $lib'
10928 # Archives containing C++ object files must be created using
10929 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10930 # necessary to make sure instantiated templates are included
10932 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10935 if test "$GXX" = yes; then
10936 if test "$with_gnu_ld" = no; then
10937 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}${output_objdir}/so_locations -o $lib'
10939 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'
10942 link_all_deplibs_CXX=yes
10945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10946 hardcode_libdir_separator_CXX=:
10949 case $cc_basename in
10951 # Kuck and Associates, Inc. (KAI) C++ Compiler
10953 # KCC will only create a shared library if the output file
10954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10955 # to its proper name (with version) after linking.
10956 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'
10957 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'
10958 # Commands to make compiler produce verbose output that lists
10959 # what "hidden" libraries, object files and flags are used when
10960 # linking a shared library.
10962 # There doesn't appear to be a way to prevent this compiler from
10963 # explicitly linking system object files so we need to strip them
10964 # from the output so that they don't get included in the library
10966 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'
10968 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10969 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10971 # Archives containing C++ object files must be created using
10972 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10973 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10978 # version 8.0 and above of icpc choke on multiply defined symbols
10979 # if we add $predep_objects and $postdep_objects, however 7.1 and
10980 # earlier do not add the objects themselves.
10981 case `$CC -V 2>&1` in
10983 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10984 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'
10986 *) # Version 8.0 or newer
10989 ia64*) tmp_idyn=' -i_dynamic';;
10991 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10992 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10995 archive_cmds_need_lc_CXX=no
10996 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10997 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10998 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11001 # Portland Group C++ compiler
11002 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11003 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11005 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11006 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11007 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11011 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11012 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'
11014 runpath_var=LD_RUN_PATH
11015 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11016 hardcode_libdir_separator_CXX=:
11018 # Commands to make compiler produce verbose output that lists
11019 # what "hidden" libraries, object files and flags are used when
11020 # linking a shared library.
11022 # There doesn't appear to be a way to prevent this compiler from
11023 # explicitly linking system object files so we need to strip them
11024 # from the output so that they don't get included in the library
11026 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'
11031 # FIXME: insert proper C++ library support
11035 # FIXME: insert proper C++ library support
11039 case $cc_basename in
11041 # FIXME: insert proper C++ library support
11045 # FIXME: insert proper C++ library support
11051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11052 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11054 hardcode_libdir_flag_spec_CXX='-R$libdir'
11055 hardcode_direct_CXX=yes
11056 hardcode_shlibpath_var_CXX=no
11058 # Workaround some broken pre-1.5 toolchains
11059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11062 # C++ shared libraries are fairly broken
11066 hardcode_direct_CXX=yes
11067 hardcode_shlibpath_var_CXX=no
11068 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11069 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11071 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11072 export_dynamic_flag_spec_CXX='${wl}-E'
11073 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11075 output_verbose_link_cmd='echo'
11078 case $cc_basename in
11080 # Kuck and Associates, Inc. (KAI) C++ Compiler
11082 # KCC will only create a shared library if the output file
11083 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11084 # to its proper name (with version) after linking.
11085 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'
11087 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11088 hardcode_libdir_separator_CXX=:
11090 # Archives containing C++ object files must be created using
11091 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11092 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11096 # Rational C++ 2.4.1
11097 # FIXME: insert proper C++ library support
11101 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11102 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 ${output_objdir}/so_locations -o $lib'
11104 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11105 hardcode_libdir_separator_CXX=:
11107 # Commands to make compiler produce verbose output that lists
11108 # what "hidden" libraries, object files and flags are used when
11109 # linking a shared library.
11111 # There doesn't appear to be a way to prevent this compiler from
11112 # explicitly linking system object files so we need to strip them
11113 # from the output so that they don't get included in the library
11115 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'
11118 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11119 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11120 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}${output_objdir}/so_locations -o $lib'
11122 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11123 hardcode_libdir_separator_CXX=:
11125 # Commands to make compiler produce verbose output that lists
11126 # what "hidden" libraries, object files and flags are used when
11127 # linking a shared library.
11128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11131 # FIXME: insert proper C++ library support
11138 case $cc_basename in
11140 # Kuck and Associates, Inc. (KAI) C++ Compiler
11142 # KCC will only create a shared library if the output file
11143 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11144 # to its proper name (with version) after linking.
11145 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'
11147 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11148 hardcode_libdir_separator_CXX=:
11150 # Archives containing C++ object files must be created using
11151 # the KAI C++ compiler.
11152 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11155 # Rational C++ 2.4.1
11156 # FIXME: insert proper C++ library support
11160 allow_undefined_flag_CXX=' -expect_unresolved \*'
11161 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 ${output_objdir}/so_locations -o $lib'
11162 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11163 echo "-hidden">> $lib.exp~
11164 $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 ${output_objdir}/so_locations -o $lib~
11167 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11168 hardcode_libdir_separator_CXX=:
11170 # Commands to make compiler produce verbose output that lists
11171 # what "hidden" libraries, object files and flags are used when
11172 # linking a shared library.
11174 # There doesn't appear to be a way to prevent this compiler from
11175 # explicitly linking system object files so we need to strip them
11176 # from the output so that they don't get included in the library
11178 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'
11181 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11182 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11183 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}${output_objdir}/so_locations -o $lib'
11185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11186 hardcode_libdir_separator_CXX=:
11188 # Commands to make compiler produce verbose output that lists
11189 # what "hidden" libraries, object files and flags are used when
11190 # linking a shared library.
11191 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11194 # FIXME: insert proper C++ library support
11201 # FIXME: insert proper C++ library support
11205 case $cc_basename in
11208 # FIXME: insert proper C++ library support
11213 # FIXME: insert proper C++ library support
11217 # FIXME: insert proper C++ library support
11223 case $cc_basename in
11225 # Sun C++ 4.2, 5.x and Centerline C++
11226 archive_cmds_need_lc_CXX=yes
11227 no_undefined_flag_CXX=' -zdefs'
11228 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11229 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11230 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11232 hardcode_libdir_flag_spec_CXX='-R$libdir'
11233 hardcode_shlibpath_var_CXX=no
11235 solaris2.[0-5] | solaris2.[0-5].*) ;;
11237 # The C++ compiler is used as linker so we must use $wl
11238 # flag to pass the commands to the underlying system
11239 # linker. We must also pass each convience library through
11240 # to the system linker between allextract/defaultextract.
11241 # The C++ compiler will combine linker options so we
11242 # cannot just pass the convience library names through
11244 # Supported since Solaris 2.6 (maybe 2.5.1?)
11245 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11248 link_all_deplibs_CXX=yes
11250 output_verbose_link_cmd='echo'
11252 # Archives containing C++ object files must be created using
11253 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11254 # necessary to make sure instantiated templates are included
11256 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11259 # Green Hills C++ Compiler
11260 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11262 # The C++ compiler must be used to create the archive.
11263 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11266 # GNU C++ compiler with Solaris linker
11267 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11268 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11269 if $CC --version | grep -v '^2\.7' > /dev/null; then
11270 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11271 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11272 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11274 # Commands to make compiler produce verbose output that lists
11275 # what "hidden" libraries, object files and flags are used when
11276 # linking a shared library.
11277 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11279 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11281 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11282 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11283 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11285 # Commands to make compiler produce verbose output that lists
11286 # what "hidden" libraries, object files and flags are used when
11287 # linking a shared library.
11288 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11291 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11296 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11297 no_undefined_flag_CXX='${wl}-z,text'
11298 archive_cmds_need_lc_CXX=no
11299 hardcode_shlibpath_var_CXX=no
11300 runpath_var='LD_RUN_PATH'
11302 case $cc_basename in
11304 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11305 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11308 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 sysv5* | sco3.2v5* | sco5v6*)
11314 # Note: We can NOT use -z defs as we might desire, because we do not
11315 # link with -lc, and that would cause any symbols used from libc to
11316 # always be unresolved, which means just about no library would
11317 # ever link correctly. If we're not using GNU ld we use -z text
11318 # though, which does catch some bad symbols but isn't as heavy-handed
11320 # For security reasons, it is highly recommended that you always
11321 # use absolute paths for naming shared libraries, and exclude the
11322 # DT_RUNPATH tag from executables and libraries. But doing so
11323 # requires that you compile everything twice, which is a pain.
11324 # So that behaviour is only enabled if SCOABSPATH is set to a
11325 # non-empty value in the environment. Most likely only useful for
11326 # creating official distributions of packages.
11327 # This is a hack until libtool officially supports absolute path
11328 # names for shared libraries.
11329 no_undefined_flag_CXX='${wl}-z,text'
11330 allow_undefined_flag_CXX='${wl}-z,nodefs'
11331 archive_cmds_need_lc_CXX=no
11332 hardcode_shlibpath_var_CXX=no
11333 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11334 hardcode_libdir_separator_CXX=':'
11335 link_all_deplibs_CXX=yes
11336 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11337 runpath_var='LD_RUN_PATH'
11339 case $cc_basename in
11341 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11342 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11345 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11346 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11351 case $cc_basename in
11353 # NonStop-UX NCC 3.20
11354 # FIXME: insert proper C++ library support
11358 # FIXME: insert proper C++ library support
11364 # FIXME: insert proper C++ library support
11368 # FIXME: insert proper C++ library support
11372 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11373 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11374 test "$ld_shlibs_CXX" = no && can_build_shared=no
11380 ## There is no encapsulation within the following macros, do not change
11381 ## the running order or otherwise move them around unless you know exactly
11382 ## what you are doing...
11384 cat > conftest.$ac_ext <<EOF
11388 Foo (void) { a = 0; }
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395 (eval $ac_compile) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; then
11399 # Parse the compiler output and extract the necessary
11400 # objects, libraries and library flags.
11402 # Sentinel used to keep track of whether or not we are before
11403 # the conftest object file.
11404 pre_test_object_deps_done=no
11406 # The `*' in the case matches for architectures that use `case' in
11407 # $output_verbose_cmd can trigger glob expansion during the loop
11408 # eval without this substitution.
11409 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11411 for p in `eval $output_verbose_link_cmd`; do
11415 # Some compilers place space between "-{L,R}" and the path.
11416 # Remove the space.
11417 if test $p = "-L" \
11418 || test $p = "-R"; then
11425 if test "$pre_test_object_deps_done" = no; then
11428 # Internal compiler library paths should come after those
11429 # provided the user. The postdeps already come after the
11430 # user supplied libs so there is no need to process them.
11431 if test -z "$compiler_lib_search_path_CXX"; then
11432 compiler_lib_search_path_CXX="${prev}${p}"
11434 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11437 # The "-l" case would never come before the object being
11438 # linked, so don't bother handling this case.
11441 if test -z "$postdeps_CXX"; then
11442 postdeps_CXX="${prev}${p}"
11444 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11450 # This assumes that the test object file only shows up
11451 # once in the compiler output.
11452 if test "$p" = "conftest.$objext"; then
11453 pre_test_object_deps_done=yes
11457 if test "$pre_test_object_deps_done" = no; then
11458 if test -z "$predep_objects_CXX"; then
11459 predep_objects_CXX="$p"
11461 predep_objects_CXX="$predep_objects_CXX $p"
11464 if test -z "$postdep_objects_CXX"; then
11465 postdep_objects_CXX="$p"
11467 postdep_objects_CXX="$postdep_objects_CXX $p"
11472 *) ;; # Ignore the rest.
11480 echo "libtool.m4: error: problem compiling CXX test program"
11483 $rm -f confest.$objext
11485 # PORTME: override above test on systems where it is broken
11488 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11489 # hack all around it, let's just trust "g++" to DTRT.
11490 predep_objects_CXX=
11491 postdep_objects_CXX=
11496 case $cc_basename in
11498 # Adding this requires a known-good setup of shared libraries for
11499 # Sun compiler versions before 5.6, else PIC objects from an old
11500 # archive will be linked into the output, leading to subtle bugs.
11501 postdeps_CXX='-lCstd -lCrun'
11508 case " $postdeps_CXX " in
11509 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11512 lt_prog_compiler_wl_CXX=
11513 lt_prog_compiler_pic_CXX=
11514 lt_prog_compiler_static_CXX=
11516 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11517 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11519 # C++ specific cases for pic, static, wl, etc.
11520 if test "$GXX" = yes; then
11521 lt_prog_compiler_wl_CXX='-Wl,'
11522 lt_prog_compiler_static_CXX='-static'
11526 # All AIX code is PIC.
11527 if test "$host_cpu" = ia64; then
11528 # AIX 5 now supports IA64 processor
11529 lt_prog_compiler_static_CXX='-Bstatic'
11533 # FIXME: we need at least 68020 code to build shared libraries, but
11534 # adding the `-m68020' flag to GCC prevents building anything better,
11536 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11538 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11539 # PIC is the default for these OSes.
11541 mingw* | os2* | pw32*)
11542 # This hack is so that the source file can tell whether it is being
11543 # built for inclusion in a dll (and should export symbols for example).
11544 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11546 darwin* | rhapsody*)
11547 # PIC is the default on this platform
11548 # Common symbols not allowed in MH_DYLIB files
11549 lt_prog_compiler_pic_CXX='-fno-common'
11552 # DJGPP does not support shared libraries at all
11553 lt_prog_compiler_pic_CXX=
11556 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11557 # Instead, we relocate shared libraries at runtime.
11560 if test -d /usr/nec; then
11561 lt_prog_compiler_pic_CXX=-Kconform_pic
11565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11566 # not for PA HP-UX.
11571 lt_prog_compiler_pic_CXX='-fPIC'
11576 lt_prog_compiler_pic_CXX='-fPIC'
11582 # All AIX code is PIC.
11583 if test "$host_cpu" = ia64; then
11584 # AIX 5 now supports IA64 processor
11585 lt_prog_compiler_static_CXX='-Bstatic'
11587 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11591 case $cc_basename in
11593 # Green Hills C++ Compiler
11594 # _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"
11599 # PIC is the default on this platform
11600 # Common symbols not allowed in MH_DYLIB files
11601 case $cc_basename in
11603 lt_prog_compiler_pic_CXX='-qnocommon'
11604 lt_prog_compiler_wl_CXX='-Wl,'
11609 case $cc_basename in
11611 lt_prog_compiler_pic_CXX='-KPIC'
11614 # Green Hills C++ Compiler
11615 lt_prog_compiler_pic_CXX='-pic'
11621 freebsd* | kfreebsd*-gnu | dragonfly*)
11622 # FreeBSD uses GNU C++
11624 hpux9* | hpux10* | hpux11*)
11625 case $cc_basename in
11627 lt_prog_compiler_wl_CXX='-Wl,'
11628 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11629 if test "$host_cpu" != ia64; then
11630 lt_prog_compiler_pic_CXX='+Z'
11634 lt_prog_compiler_wl_CXX='-Wl,'
11635 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11641 lt_prog_compiler_pic_CXX='+Z'
11650 # This is c89, which is MS Visual C++ (no shared libs)
11651 # Anyone wants to do a port?
11653 irix5* | irix6* | nonstopux*)
11654 case $cc_basename in
11656 lt_prog_compiler_wl_CXX='-Wl,'
11657 lt_prog_compiler_static_CXX='-non_shared'
11658 # CC pic flag -KPIC is the default.
11665 case $cc_basename in
11668 lt_prog_compiler_wl_CXX='--backend -Wl,'
11669 lt_prog_compiler_pic_CXX='-fPIC'
11673 lt_prog_compiler_wl_CXX='-Wl,'
11674 lt_prog_compiler_pic_CXX='-KPIC'
11675 lt_prog_compiler_static_CXX='-static'
11678 # Portland Group C++ compiler.
11679 lt_prog_compiler_wl_CXX='-Wl,'
11680 lt_prog_compiler_pic_CXX='-fpic'
11681 lt_prog_compiler_static_CXX='-Bstatic'
11685 # Make sure the PIC flag is empty. It appears that all Alpha
11686 # Linux and Compaq Tru64 Unix objects are PIC.
11687 lt_prog_compiler_pic_CXX=
11688 lt_prog_compiler_static_CXX='-non_shared'
11699 case $cc_basename in
11701 lt_prog_compiler_pic_CXX='-W c,exportall'
11709 osf3* | osf4* | osf5*)
11710 case $cc_basename in
11712 lt_prog_compiler_wl_CXX='--backend -Wl,'
11715 # Rational C++ 2.4.1
11716 lt_prog_compiler_pic_CXX='-pic'
11719 # Digital/Compaq C++
11720 lt_prog_compiler_wl_CXX='-Wl,'
11721 # Make sure the PIC flag is empty. It appears that all Alpha
11722 # Linux and Compaq Tru64 Unix objects are PIC.
11723 lt_prog_compiler_pic_CXX=
11724 lt_prog_compiler_static_CXX='-non_shared'
11733 case $cc_basename in
11735 # Sun C++ 4.2, 5.x and Centerline C++
11736 lt_prog_compiler_pic_CXX='-KPIC'
11737 lt_prog_compiler_static_CXX='-Bstatic'
11738 lt_prog_compiler_wl_CXX='-Qoption ld '
11741 # Green Hills C++ Compiler
11742 lt_prog_compiler_pic_CXX='-PIC'
11749 case $cc_basename in
11752 lt_prog_compiler_pic_CXX='-pic'
11753 lt_prog_compiler_static_CXX='-Bstatic'
11757 lt_prog_compiler_pic_CXX='-pic'
11764 case $cc_basename in
11766 # NonStop-UX NCC 3.20
11767 lt_prog_compiler_pic_CXX='-KPIC'
11773 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11774 case $cc_basename in
11776 lt_prog_compiler_wl_CXX='-Wl,'
11777 lt_prog_compiler_pic_CXX='-KPIC'
11778 lt_prog_compiler_static_CXX='-Bstatic'
11785 lt_prog_compiler_can_build_shared_CXX=no
11790 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11791 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11794 # Check to make sure the PIC flag actually works.
11796 if test -n "$lt_prog_compiler_pic_CXX"; then
11798 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11799 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11800 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 lt_prog_compiler_pic_works_CXX=no
11804 ac_outfile=conftest.$ac_objext
11805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11806 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11807 # Insert the option either (1) after the last *FLAGS variable, or
11808 # (2) before a word containing "conftest.", or (3) at the end.
11809 # Note that $ac_compile itself does not contain backslashes and begins
11810 # with a dollar sign (not a hyphen), so the echo should work correctly.
11811 # The option is referenced via a variable to avoid confusing sed.
11812 lt_compile=`echo "$ac_compile" | $SED \
11813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11815 -e 's:$: $lt_compiler_flag:'`
11816 (eval echo "\"\$as_me:11816: $lt_compile\"" >&5)
11817 (eval "$lt_compile" 2>conftest.err)
11819 cat conftest.err >&5
11820 echo "$as_me:11820: \$? = $ac_status" >&5
11821 if (exit $ac_status) && test -s "$ac_outfile"; then
11822 # The compiler can only warn and ignore the option if not recognized
11823 # So say no if there are warnings other than the usual output.
11824 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11827 lt_prog_compiler_pic_works_CXX=yes
11833 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11834 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11836 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11837 case $lt_prog_compiler_pic_CXX in
11839 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11842 lt_prog_compiler_pic_CXX=
11843 lt_prog_compiler_can_build_shared_CXX=no
11848 # For platforms which do not support PIC, -DPIC is meaningless:
11850 lt_prog_compiler_pic_CXX=
11853 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11858 # Check to make sure the static flag actually works.
11860 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11861 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11862 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11863 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 lt_prog_compiler_static_works_CXX=no
11867 save_LDFLAGS="$LDFLAGS"
11868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11869 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11871 # The linker can only warn and ignore the option if not recognized
11872 # So say no if there are warnings
11873 if test -s conftest.err; then
11874 # Append any errors to the config.log.
11875 cat conftest.err 1>&5
11876 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11878 if diff conftest.exp conftest.er2 >/dev/null; then
11879 lt_prog_compiler_static_works_CXX=yes
11882 lt_prog_compiler_static_works_CXX=yes
11886 LDFLAGS="$save_LDFLAGS"
11889 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11890 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11892 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11895 lt_prog_compiler_static_CXX=
11899 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11900 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11901 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 lt_cv_prog_compiler_c_o_CXX=no
11905 $rm -r conftest 2>/dev/null
11909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11911 lt_compiler_flag="-o out/conftest2.$ac_objext"
11912 # Insert the option either (1) after the last *FLAGS variable, or
11913 # (2) before a word containing "conftest.", or (3) at the end.
11914 # Note that $ac_compile itself does not contain backslashes and begins
11915 # with a dollar sign (not a hyphen), so the echo should work correctly.
11916 lt_compile=`echo "$ac_compile" | $SED \
11917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11919 -e 's:$: $lt_compiler_flag:'`
11920 (eval echo "\"\$as_me:11920: $lt_compile\"" >&5)
11921 (eval "$lt_compile" 2>out/conftest.err)
11923 cat out/conftest.err >&5
11924 echo "$as_me:11924: \$? = $ac_status" >&5
11925 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11927 # The compiler can only warn and ignore the option if not recognized
11928 # So say no if there are warnings
11929 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11930 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11931 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11932 lt_cv_prog_compiler_c_o_CXX=yes
11937 # SGI C++ compiler will create directory out/ii_files/ for
11938 # template instantiation
11939 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11940 $rm out/* && rmdir out
11946 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11947 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11950 hard_links="nottested"
11951 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11952 # do not overwrite the value of need_locks provided by the user
11953 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11954 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11959 ln conftest.a conftest.b 2>&5 || hard_links=no
11960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11961 echo "$as_me:$LINENO: result: $hard_links" >&5
11962 echo "${ECHO_T}$hard_links" >&6
11963 if test "$hard_links" = no; then
11964 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11965 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11972 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11973 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11975 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11978 # If we're using GNU nm, then we don't want the "-C" option.
11979 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11980 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11981 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'
11983 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'
11987 export_symbols_cmds_CXX="$ltdll_cmds"
11990 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11997 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11998 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11999 test "$ld_shlibs_CXX" = no && can_build_shared=no
12002 # Do we need to explicitly link libc?
12004 case "x$archive_cmds_need_lc_CXX" in
12006 # Assume -lc should be added
12007 archive_cmds_need_lc_CXX=yes
12009 if test "$enable_shared" = yes && test "$GCC" = yes; then
12010 case $archive_cmds_CXX in
12012 # FIXME: we may have to deal with multi-command sequences.
12015 # Test whether the compiler implicitly links with -lc since on some
12016 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12017 # to ld, don't add -lc before -lgcc.
12018 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12019 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024 (eval $ac_compile) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } 2>conftest.err; then
12030 libobjs=conftest.$ac_objext
12032 wl=$lt_prog_compiler_wl_CXX
12033 pic_flag=$lt_prog_compiler_pic_CXX
12039 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12040 allow_undefined_flag_CXX=
12041 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12042 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }
12047 archive_cmds_need_lc_CXX=no
12049 archive_cmds_need_lc_CXX=yes
12051 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12053 cat conftest.err 1>&5
12056 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12057 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12064 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12065 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12066 library_names_spec=
12067 libname_spec='lib$name'
12071 postuninstall_cmds=
12075 shlibpath_overrides_runpath=unknown
12077 dynamic_linker="$host_os ld.so"
12078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12079 if test "$GCC" = yes; then
12080 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12081 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12082 # if the path contains ";" then we assume it to be the separator
12083 # otherwise default to the standard path separator (i.e. ":") - it is
12084 # assumed that no part of a normal pathname contains ";" but that should
12085 # okay in the real world where ";" in dirpaths is itself problematic.
12086 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12093 need_lib_prefix=unknown
12094 hardcode_into_libs=no
12096 # when you set need_version to no, make sure it does not cause -set_version
12097 # flags to be left without arguments
12098 need_version=unknown
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12104 shlibpath_var=LIBPATH
12106 # AIX 3 has no versioning support, so we append a major version to the name.
12107 soname_spec='${libname}${release}${shared_ext}$major'
12114 hardcode_into_libs=yes
12115 if test "$host_cpu" = ia64; then
12116 # AIX 5 supports IA64
12117 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12118 shlibpath_var=LD_LIBRARY_PATH
12120 # With GCC up to 2.95.x, collect2 would create an import file
12121 # for dependence libraries. The import file would start with
12122 # the line `#! .'. This would cause the generated library to
12123 # depend on `.', always an invalid library. This was fixed in
12124 # development snapshots of GCC prior to 3.0.
12126 aix4 | aix4.[01] | aix4.[01].*)
12127 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12129 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12132 can_build_shared=no
12136 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12137 # soname into executable. Probably we can add versioning support to
12138 # collect2, so additional links can be useful in future.
12139 if test "$aix_use_runtimelinking" = yes; then
12140 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12141 # instead of lib<name>.a to let people know that these are not
12142 # typical AIX shared libraries.
12143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12145 # We preserve .a as extension for shared libraries through AIX4.2
12146 # and later when we are not doing run time linking.
12147 library_names_spec='${libname}${release}.a $libname.a'
12148 soname_spec='${libname}${release}${shared_ext}$major'
12150 shlibpath_var=LIBPATH
12155 library_names_spec='$libname.ixlibrary $libname.a'
12156 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12157 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'
12161 library_names_spec='${libname}${shared_ext}'
12162 dynamic_linker="$host_os ld.so"
12163 shlibpath_var=LIBRARY_PATH
12169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12170 soname_spec='${libname}${release}${shared_ext}$major'
12171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12172 shlibpath_var=LD_LIBRARY_PATH
12173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12175 # the default ld.so.conf also contains /usr/contrib/lib and
12176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12177 # libtool to hard-code these into programs
12180 cygwin* | mingw* | pw32*)
12181 version_type=windows
12186 case $GCC,$host_os in
12187 yes,cygwin* | yes,mingw* | yes,pw32*)
12188 library_names_spec='$libname.dll.a'
12189 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12190 postinstall_cmds='base_file=`basename \${file}`~
12191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12192 dldir=$destdir/`dirname \$dlpath`~
12193 test -d \$dldir || mkdir -p \$dldir~
12194 $install_prog $dir/$dlname \$dldir/$dlname~
12195 chmod a+x \$dldir/$dlname'
12196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12197 dlpath=$dir/\$dldll~
12199 shlibpath_overrides_runpath=yes
12203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12205 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12208 # MinGW DLLs use traditional 'lib' prefix
12209 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12210 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12211 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12212 # It is most probably a Windows format PATH printed by
12213 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12214 # path with ; separators, and with drive letters. We can handle the
12215 # drive letters (cygwin fileutils understands them), so leave them,
12216 # especially as we might pass files found there to a mingw objdump,
12217 # which wouldn't understand a cygwinified path. Ahh.
12218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12224 # pw32 DLLs use 'pw' prefix rather than 'lib'
12225 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12231 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12234 dynamic_linker='Win32 ld.exe'
12235 # FIXME: first we should search . and the directory the executable is in
12239 darwin* | rhapsody*)
12240 dynamic_linker="$host_os dyld"
12241 version_type=darwin
12244 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12245 soname_spec='${libname}${release}${major}$shared_ext'
12246 shlibpath_overrides_runpath=yes
12247 shlibpath_var=DYLD_LIBRARY_PATH
12248 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12249 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12250 if test "$GCC" = yes; then
12251 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"`
12253 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12263 soname_spec='${libname}${release}${shared_ext}$major'
12264 shlibpath_var=LD_LIBRARY_PATH
12275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12276 soname_spec='${libname}${release}${shared_ext}$major'
12277 shlibpath_var=LD_LIBRARY_PATH
12278 shlibpath_overrides_runpath=no
12279 hardcode_into_libs=yes
12280 dynamic_linker='GNU ld.so'
12283 freebsd* | dragonfly*)
12284 # DragonFly does not have aout. When/if they implement a new
12285 # versioning mechanism, adjust this.
12286 if test -x /usr/bin/objformat; then
12287 objformat=`/usr/bin/objformat`
12290 freebsd[123]*) objformat=aout ;;
12291 *) objformat=elf ;;
12294 version_type=freebsd-$objformat
12295 case $version_type in
12297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12306 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=yes
12311 freebsd3.[01]* | freebsdelf3.[01]*)
12312 shlibpath_overrides_runpath=yes
12313 hardcode_into_libs=yes
12315 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12316 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12317 shlibpath_overrides_runpath=no
12318 hardcode_into_libs=yes
12320 freebsd*) # from 4.6 on
12321 shlibpath_overrides_runpath=yes
12322 hardcode_into_libs=yes
12331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12332 soname_spec='${libname}${release}${shared_ext}$major'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 hardcode_into_libs=yes
12337 hpux9* | hpux10* | hpux11*)
12338 # Give a soname corresponding to the major version so that dld.sl refuses to
12339 # link against other versions.
12346 hardcode_into_libs=yes
12347 dynamic_linker="$host_os dld.so"
12348 shlibpath_var=LD_LIBRARY_PATH
12349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351 soname_spec='${libname}${release}${shared_ext}$major'
12352 if test "X$HPUX_IA64_MODE" = X32; then
12353 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12355 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12361 hardcode_into_libs=yes
12362 dynamic_linker="$host_os dld.sl"
12363 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366 soname_spec='${libname}${release}${shared_ext}$major'
12367 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12372 dynamic_linker="$host_os dld.sl"
12373 shlibpath_var=SHLIB_PATH
12374 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376 soname_spec='${libname}${release}${shared_ext}$major'
12379 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12380 postinstall_cmds='chmod 555 $lib'
12387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12388 soname_spec='${libname}${release}${shared_ext}$major'
12389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 shlibpath_overrides_runpath=no
12392 hardcode_into_libs=yes
12395 irix5* | irix6* | nonstopux*)
12397 nonstopux*) version_type=nonstopux ;;
12399 if test "$lt_cv_prog_gnu_ld" = yes; then
12407 soname_spec='${libname}${release}${shared_ext}$major'
12408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12410 irix5* | nonstopux*)
12411 libsuff= shlibsuff=
12414 case $LD in # libtool.m4 will add one of these switches to LD
12415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12416 libsuff= shlibsuff= libmagic=32-bit;;
12417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12418 libsuff=32 shlibsuff=N32 libmagic=N32;;
12419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12421 *) libsuff= shlibsuff= libmagic=never-match;;
12425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12426 shlibpath_overrides_runpath=no
12427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12429 hardcode_into_libs=yes
12432 # No shared lib support for Linux oldld, aout, or coff.
12433 linux*oldld* | linux*aout* | linux*coff*)
12437 # This must be Linux ELF.
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443 soname_spec='${libname}${release}${shared_ext}$major'
12444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12445 shlibpath_var=LD_LIBRARY_PATH
12446 shlibpath_overrides_runpath=no
12447 # This implies no fast_install, which is unacceptable.
12448 # Some rework will be needed to allow for fast_install
12449 # before this can be enabled.
12450 hardcode_into_libs=yes
12452 # Append ld.so.conf contents to the search path
12453 if test -f /etc/ld.so.conf; then
12454 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12458 # We used to test for /lib/ld.so.1 and disable shared libraries on
12459 # powerpc, because MkLinux only supported shared libraries with the
12460 # GNU dynamic linker. Since this was broken with cross compilers,
12461 # most powerpc-linux boxes support dynamic linking these days and
12462 # people can always --disable-shared, the test was removed, and we
12463 # assume the GNU/Linux dynamic linker is in use.
12464 dynamic_linker='GNU/Linux ld.so'
12471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12472 soname_spec='${libname}${release}${shared_ext}$major'
12473 shlibpath_var=LD_LIBRARY_PATH
12474 shlibpath_overrides_runpath=no
12475 hardcode_into_libs=yes
12476 dynamic_linker='GNU ld.so'
12483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12486 dynamic_linker='NetBSD (a.out) ld.so'
12488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12489 soname_spec='${libname}${release}${shared_ext}$major'
12490 dynamic_linker='NetBSD ld.elf_so'
12492 shlibpath_var=LD_LIBRARY_PATH
12493 shlibpath_overrides_runpath=yes
12494 hardcode_into_libs=yes
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12500 shlibpath_var=LD_LIBRARY_PATH
12501 shlibpath_overrides_runpath=yes
12508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12509 soname_spec='${libname}${release}${shared_ext}$major'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 shlibpath_overrides_runpath=yes
12516 sys_lib_dlsearch_path_spec="/usr/lib"
12518 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12520 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12521 *) need_version=no ;;
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12528 openbsd2.[89] | openbsd2.[89].*)
12529 shlibpath_overrides_runpath=no
12532 shlibpath_overrides_runpath=yes
12536 shlibpath_overrides_runpath=yes
12541 libname_spec='$name'
12544 library_names_spec='$libname${shared_ext} $libname.a'
12545 dynamic_linker='OS/2 ld.exe'
12546 shlibpath_var=LIBPATH
12549 osf3* | osf4* | osf5*)
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12557 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 shlibpath_var=LD_LIBRARY_PATH
12567 shlibpath_overrides_runpath=yes
12568 hardcode_into_libs=yes
12569 # ldd complains unless libraries are executable
12570 postinstall_cmds='chmod +x $lib'
12575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12576 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12577 shlibpath_var=LD_LIBRARY_PATH
12578 shlibpath_overrides_runpath=yes
12579 if test "$with_gnu_ld" = yes; then
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12588 soname_spec='${libname}${release}${shared_ext}$major'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 case $host_vendor in
12592 shlibpath_overrides_runpath=no
12594 export_dynamic_flag_spec='${wl}-Blargedynsym'
12595 runpath_var=LD_RUN_PATH
12603 shlibpath_overrides_runpath=no
12604 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12610 if test -d /usr/nec ;then
12612 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12613 soname_spec='$libname${shared_ext}.$major'
12614 shlibpath_var=LD_LIBRARY_PATH
12618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12619 version_type=freebsd-elf
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12623 soname_spec='${libname}${release}${shared_ext}$major'
12624 shlibpath_var=LD_LIBRARY_PATH
12625 hardcode_into_libs=yes
12626 if test "$with_gnu_ld" = yes; then
12627 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12628 shlibpath_overrides_runpath=no
12630 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12631 shlibpath_overrides_runpath=yes
12634 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12638 sys_lib_dlsearch_path_spec='/usr/lib'
12643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12644 soname_spec='${libname}${release}${shared_ext}$major'
12645 shlibpath_var=LD_LIBRARY_PATH
12652 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12653 echo "${ECHO_T}$dynamic_linker" >&6
12654 test "$dynamic_linker" = no && can_build_shared=no
12656 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12657 if test "$GCC" = yes; then
12658 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12661 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12662 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12663 hardcode_action_CXX=
12664 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12665 test -n "$runpath_var_CXX" || \
12666 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12668 # We can hardcode non-existant directories.
12669 if test "$hardcode_direct_CXX" != no &&
12670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12671 # have to relink, otherwise we might link with an installed library
12672 # when we should be linking with a yet-to-be-installed one
12673 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12674 test "$hardcode_minus_L_CXX" != no; then
12675 # Linking always hardcodes the temporary library directory.
12676 hardcode_action_CXX=relink
12678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12679 hardcode_action_CXX=immediate
12682 # We cannot hardcode anything, or else we can only hardcode existing
12684 hardcode_action_CXX=unsupported
12686 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12687 echo "${ECHO_T}$hardcode_action_CXX" >&6
12689 if test "$hardcode_action_CXX" = relink; then
12690 # Fast installation is not supported
12691 enable_fast_install=no
12692 elif test "$shlibpath_overrides_runpath" = yes ||
12693 test "$enable_shared" = no; then
12694 # Fast installation is not necessary
12695 enable_fast_install=needless
12699 # The else clause should only fire when bootstrapping the
12700 # libtool distribution, otherwise you forgot to ship ltmain.sh
12701 # with your package, and you will get complaints that there are
12702 # no rules to generate ltmain.sh.
12703 if test -f "$ltmain"; then
12704 # See if we are running on zsh, and set the options which allow our commands through
12705 # without removal of \ escapes.
12706 if test -n "${ZSH_VERSION+set}" ; then
12707 setopt NO_GLOB_SUBST
12709 # Now quote all the things that may contain metacharacters while being
12710 # careful not to overquote the AC_SUBSTed values. We take copies of the
12711 # variables and quote the copies for generation of the libtool script.
12712 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12714 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12715 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12716 deplibs_check_method reload_flag reload_cmds need_locks \
12717 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12718 lt_cv_sys_global_symbol_to_c_name_address \
12719 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12720 old_postinstall_cmds old_postuninstall_cmds \
12724 lt_prog_compiler_wl_CXX \
12725 lt_prog_compiler_pic_CXX \
12726 lt_prog_compiler_static_CXX \
12727 lt_prog_compiler_no_builtin_flag_CXX \
12728 export_dynamic_flag_spec_CXX \
12729 thread_safe_flag_spec_CXX \
12730 whole_archive_flag_spec_CXX \
12731 enable_shared_with_static_runtimes_CXX \
12732 old_archive_cmds_CXX \
12733 old_archive_from_new_cmds_CXX \
12734 predep_objects_CXX \
12735 postdep_objects_CXX \
12738 compiler_lib_search_path_CXX \
12740 archive_expsym_cmds_CXX \
12741 postinstall_cmds_CXX \
12742 postuninstall_cmds_CXX \
12743 old_archive_from_expsyms_cmds_CXX \
12744 allow_undefined_flag_CXX \
12745 no_undefined_flag_CXX \
12746 export_symbols_cmds_CXX \
12747 hardcode_libdir_flag_spec_CXX \
12748 hardcode_libdir_flag_spec_ld_CXX \
12749 hardcode_libdir_separator_CXX \
12750 hardcode_automatic_CXX \
12752 module_expsym_cmds_CXX \
12753 lt_cv_prog_compiler_c_o_CXX \
12754 exclude_expsyms_CXX \
12755 include_expsyms_CXX; do
12758 old_archive_cmds_CXX | \
12759 old_archive_from_new_cmds_CXX | \
12760 archive_cmds_CXX | \
12761 archive_expsym_cmds_CXX | \
12762 module_cmds_CXX | \
12763 module_expsym_cmds_CXX | \
12764 old_archive_from_expsyms_cmds_CXX | \
12765 export_symbols_cmds_CXX | \
12766 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12767 postinstall_cmds | postuninstall_cmds | \
12768 old_postinstall_cmds | old_postuninstall_cmds | \
12769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12770 # Double-quote double-evaled strings.
12771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12780 *'\$0 --fallback-echo"')
12781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12787 cat <<__EOF__ >> "$cfgfile"
12788 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12790 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12792 # Shell to use when invoking shell scripts.
12795 # Whether or not to build shared libraries.
12796 build_libtool_libs=$enable_shared
12798 # Whether or not to build static libraries.
12799 build_old_libs=$enable_static
12801 # Whether or not to add -lc for building shared libraries.
12802 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12804 # Whether or not to disallow shared libs when runtime libs are static
12805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12807 # Whether or not to optimize for fast installation.
12808 fast_install=$enable_fast_install
12811 host_alias=$host_alias
12815 # The build system.
12816 build_alias=$build_alias
12820 # An echo program that does not interpret backslashes.
12825 AR_FLAGS=$lt_AR_FLAGS
12830 # LTCC compiler flags.
12831 LTCFLAGS=$lt_LTCFLAGS
12833 # A language-specific compiler.
12834 CC=$lt_compiler_CXX
12836 # Is the compiler the GNU C compiler?
12842 # The linker used to build libraries.
12845 # Whether we need hard or soft links.
12848 # A BSD-compatible nm program.
12851 # A symbol stripping program
12854 # Used to examine libraries when file_magic_cmd begins "file"
12855 MAGIC_CMD=$MAGIC_CMD
12857 # Used on cygwin: DLL creation program.
12860 # Used on cygwin: object dumper.
12863 # Used on cygwin: assembler.
12866 # The name of the directory that contains temporary libtool files.
12869 # How to create reloadable object files.
12870 reload_flag=$lt_reload_flag
12871 reload_cmds=$lt_reload_cmds
12873 # How to pass a linker flag through the compiler.
12874 wl=$lt_lt_prog_compiler_wl_CXX
12876 # Object file suffix (normally "o").
12877 objext="$ac_objext"
12879 # Old archive suffix (normally "a").
12882 # Shared library suffix (normally ".so").
12883 shrext_cmds='$shrext_cmds'
12885 # Executable file suffix (normally "").
12888 # Additional compiler flags for building library objects.
12889 pic_flag=$lt_lt_prog_compiler_pic_CXX
12892 # What is the maximum length of a command?
12893 max_cmd_len=$lt_cv_sys_max_cmd_len
12895 # Does compiler simultaneously support -c and -o options?
12896 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12898 # Must we lock files when doing compilation?
12899 need_locks=$lt_need_locks
12901 # Do we need the lib prefix for modules?
12902 need_lib_prefix=$need_lib_prefix
12904 # Do we need a version for libraries?
12905 need_version=$need_version
12907 # Whether dlopen is supported.
12908 dlopen_support=$enable_dlopen
12910 # Whether dlopen of programs is supported.
12911 dlopen_self=$enable_dlopen_self
12913 # Whether dlopen of statically linked programs is supported.
12914 dlopen_self_static=$enable_dlopen_self_static
12916 # Compiler flag to prevent dynamic linking.
12917 link_static_flag=$lt_lt_prog_compiler_static_CXX
12919 # Compiler flag to turn off builtin functions.
12920 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12922 # Compiler flag to allow reflexive dlopens.
12923 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12925 # Compiler flag to generate shared objects directly from archives.
12926 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12928 # Compiler flag to generate thread-safe objects.
12929 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12931 # Library versioning type.
12932 version_type=$version_type
12934 # Format of library name prefix.
12935 libname_spec=$lt_libname_spec
12937 # List of archive names. First name is the real one, the rest are links.
12938 # The last name is the one that the linker finds with -lNAME.
12939 library_names_spec=$lt_library_names_spec
12941 # The coded name of the library, if different from the real name.
12942 soname_spec=$lt_soname_spec
12944 # Commands used to build and install an old-style archive.
12946 old_archive_cmds=$lt_old_archive_cmds_CXX
12947 old_postinstall_cmds=$lt_old_postinstall_cmds
12948 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12950 # Create an old-style archive from a shared archive.
12951 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12953 # Create a temporary old-style archive to link instead of a shared archive.
12954 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12956 # Commands used to build and install a shared archive.
12957 archive_cmds=$lt_archive_cmds_CXX
12958 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12959 postinstall_cmds=$lt_postinstall_cmds
12960 postuninstall_cmds=$lt_postuninstall_cmds
12962 # Commands used to build a loadable module (assumed same as above if empty)
12963 module_cmds=$lt_module_cmds_CXX
12964 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12966 # Commands to strip libraries.
12967 old_striplib=$lt_old_striplib
12968 striplib=$lt_striplib
12970 # Dependencies to place before the objects being linked to create a
12972 predep_objects=$lt_predep_objects_CXX
12974 # Dependencies to place after the objects being linked to create a
12976 postdep_objects=$lt_postdep_objects_CXX
12978 # Dependencies to place before the objects being linked to create a
12980 predeps=$lt_predeps_CXX
12982 # Dependencies to place after the objects being linked to create a
12984 postdeps=$lt_postdeps_CXX
12986 # The library search path used internally by the compiler when linking
12987 # a shared library.
12988 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12990 # Method to check whether dependent libraries are shared objects.
12991 deplibs_check_method=$lt_deplibs_check_method
12993 # Command to use when deplibs_check_method == file_magic.
12994 file_magic_cmd=$lt_file_magic_cmd
12996 # Flag that allows shared libraries with undefined symbols to be built.
12997 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12999 # Flag that forces no undefined symbols.
13000 no_undefined_flag=$lt_no_undefined_flag_CXX
13002 # Commands used to finish a libtool library installation in a directory.
13003 finish_cmds=$lt_finish_cmds
13005 # Same as above, but a single script fragment to be evaled but not shown.
13006 finish_eval=$lt_finish_eval
13008 # Take the output of nm and produce a listing of raw symbols and C names.
13009 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13011 # Transform the output of nm in a proper C declaration
13012 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13014 # Transform the output of nm in a C name address pair
13015 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13017 # This is the shared library runtime path variable.
13018 runpath_var=$runpath_var
13020 # This is the shared library path variable.
13021 shlibpath_var=$shlibpath_var
13023 # Is shlibpath searched before the hard-coded library search path?
13024 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13026 # How to hardcode a shared library path into an executable.
13027 hardcode_action=$hardcode_action_CXX
13029 # Whether we should hardcode library paths into libraries.
13030 hardcode_into_libs=$hardcode_into_libs
13032 # Flag to hardcode \$libdir into a binary during linking.
13033 # This must work even if \$libdir does not exist.
13034 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13036 # If ld is used when linking, flag to hardcode \$libdir into
13037 # a binary during linking. This must work even if \$libdir does
13039 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13041 # Whether we need a single -rpath flag with a separated argument.
13042 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13044 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13045 # resulting binary.
13046 hardcode_direct=$hardcode_direct_CXX
13048 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13049 # resulting binary.
13050 hardcode_minus_L=$hardcode_minus_L_CXX
13052 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13053 # the resulting binary.
13054 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13056 # Set to yes if building a shared library automatically hardcodes DIR into the library
13057 # and all subsequent libraries and executables linked against it.
13058 hardcode_automatic=$hardcode_automatic_CXX
13060 # Variables whose values should be saved in libtool wrapper scripts and
13061 # restored at relink time.
13062 variables_saved_for_relink="$variables_saved_for_relink"
13064 # Whether libtool must link a program against all its dependency libraries.
13065 link_all_deplibs=$link_all_deplibs_CXX
13067 # Compile-time system search path for libraries
13068 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13070 # Run-time system search path for libraries
13071 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13073 # Fix the shell variable \$srcfile for the compiler.
13074 fix_srcfile_path="$fix_srcfile_path_CXX"
13076 # Set to yes if exported symbols are required.
13077 always_export_symbols=$always_export_symbols_CXX
13079 # The commands to list exported symbols.
13080 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13082 # The commands to extract the exported symbol list from a shared archive.
13083 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13085 # Symbols that should not be listed in the preloaded symbols.
13086 exclude_expsyms=$lt_exclude_expsyms_CXX
13088 # Symbols that must always be exported.
13089 include_expsyms=$lt_include_expsyms_CXX
13091 # ### END LIBTOOL TAG CONFIG: $tagname
13097 # If there is no Makefile yet, we rely on a make rule to execute
13098 # `config.status --recheck' to rerun these tests and create the
13099 # libtool script then.
13100 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13101 if test -f "$ltmain_in"; then
13102 test -f Makefile && make "$ltmain"
13108 ac_cpp='$CPP $CPPFLAGS'
13109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13117 with_gnu_ldcxx=$with_gnu_ld
13118 with_gnu_ld=$lt_save_with_gnu_ld
13119 lt_cv_path_LDCXX=$lt_cv_path_LD
13120 lt_cv_path_LD=$lt_save_path_LD
13121 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13122 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13130 if test -n "$F77" && test "X$F77" != "Xno"; then
13133 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13134 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13138 archive_cmds_need_lc_F77=no
13139 allow_undefined_flag_F77=
13140 always_export_symbols_F77=no
13141 archive_expsym_cmds_F77=
13142 export_dynamic_flag_spec_F77=
13143 hardcode_direct_F77=no
13144 hardcode_libdir_flag_spec_F77=
13145 hardcode_libdir_flag_spec_ld_F77=
13146 hardcode_libdir_separator_F77=
13147 hardcode_minus_L_F77=no
13148 hardcode_automatic_F77=no
13150 module_expsym_cmds_F77=
13151 link_all_deplibs_F77=unknown
13152 old_archive_cmds_F77=$old_archive_cmds
13153 no_undefined_flag_F77=
13154 whole_archive_flag_spec_F77=
13155 enable_shared_with_static_runtimes_F77=no
13157 # Source file extension for f77 test sources.
13160 # Object file extension for compiled f77 test sources.
13164 # Code to be used in simple compile tests
13165 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13167 # Code to be used in simple link tests
13168 lt_simple_link_test_code=" program t\n end\n"
13170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13172 # If no C compiler was specified, use CC.
13175 # If no C compiler flags were specified, use CFLAGS.
13176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13178 # Allow CC to be a program name with arguments.
13182 # save warnings/boilerplate of simple test code
13183 ac_outfile=conftest.$ac_objext
13184 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13185 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13186 _lt_compiler_boilerplate=`cat conftest.err`
13189 ac_outfile=conftest.$ac_objext
13190 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13191 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13192 _lt_linker_boilerplate=`cat conftest.err`
13196 # Allow CC to be a program name with arguments.
13201 for cc_temp in $compiler""; do
13203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13209 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13212 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13213 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13214 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13215 echo "${ECHO_T}$can_build_shared" >&6
13217 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13218 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13219 test "$can_build_shared" = "no" && enable_shared=no
13221 # On AIX, shared libraries and static libraries use the same namespace, and
13222 # are all built from PIC.
13225 test "$enable_shared" = yes && enable_static=no
13226 if test -n "$RANLIB"; then
13227 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13228 postinstall_cmds='$RANLIB $lib'
13232 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13233 test "$enable_shared" = yes && enable_static=no
13237 echo "$as_me:$LINENO: result: $enable_shared" >&5
13238 echo "${ECHO_T}$enable_shared" >&6
13240 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13241 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13242 # Make sure either enable_shared or enable_static is yes.
13243 test "$enable_shared" = yes || enable_static=yes
13244 echo "$as_me:$LINENO: result: $enable_static" >&5
13245 echo "${ECHO_T}$enable_static" >&6
13250 lt_prog_compiler_wl_F77=
13251 lt_prog_compiler_pic_F77=
13252 lt_prog_compiler_static_F77=
13254 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13255 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13257 if test "$GCC" = yes; then
13258 lt_prog_compiler_wl_F77='-Wl,'
13259 lt_prog_compiler_static_F77='-static'
13263 # All AIX code is PIC.
13264 if test "$host_cpu" = ia64; then
13265 # AIX 5 now supports IA64 processor
13266 lt_prog_compiler_static_F77='-Bstatic'
13271 # FIXME: we need at least 68020 code to build shared libraries, but
13272 # adding the `-m68020' flag to GCC prevents building anything better,
13274 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13277 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13278 # PIC is the default for these OSes.
13281 mingw* | pw32* | os2*)
13282 # This hack is so that the source file can tell whether it is being
13283 # built for inclusion in a dll (and should export symbols for example).
13284 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13287 darwin* | rhapsody*)
13288 # PIC is the default on this platform
13289 # Common symbols not allowed in MH_DYLIB files
13290 lt_prog_compiler_pic_F77='-fno-common'
13294 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13295 # Instead, we relocate shared libraries at runtime.
13299 # Just because we use GCC doesn't mean we suddenly get shared libraries
13300 # on systems that don't support them.
13301 lt_prog_compiler_can_build_shared_F77=no
13306 if test -d /usr/nec; then
13307 lt_prog_compiler_pic_F77=-Kconform_pic
13312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13313 # not for PA HP-UX.
13319 lt_prog_compiler_pic_F77='-fPIC'
13325 lt_prog_compiler_pic_F77='-fPIC'
13329 # PORTME Check for flag to pass linker flags through the system compiler.
13332 lt_prog_compiler_wl_F77='-Wl,'
13333 if test "$host_cpu" = ia64; then
13334 # AIX 5 now supports IA64 processor
13335 lt_prog_compiler_static_F77='-Bstatic'
13337 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13341 # PIC is the default on this platform
13342 # Common symbols not allowed in MH_DYLIB files
13343 case $cc_basename in
13345 lt_prog_compiler_pic_F77='-qnocommon'
13346 lt_prog_compiler_wl_F77='-Wl,'
13351 mingw* | pw32* | os2*)
13352 # This hack is so that the source file can tell whether it is being
13353 # built for inclusion in a dll (and should export symbols for example).
13354 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13357 hpux9* | hpux10* | hpux11*)
13358 lt_prog_compiler_wl_F77='-Wl,'
13359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13360 # not for PA HP-UX.
13366 lt_prog_compiler_pic_F77='+Z'
13369 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13370 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13373 irix5* | irix6* | nonstopux*)
13374 lt_prog_compiler_wl_F77='-Wl,'
13375 # PIC (with -KPIC) is the default.
13376 lt_prog_compiler_static_F77='-non_shared'
13380 lt_prog_compiler_pic_F77='-KPIC'
13381 lt_prog_compiler_static_F77='-Bstatic'
13385 case $cc_basename in
13387 lt_prog_compiler_wl_F77='-Wl,'
13388 lt_prog_compiler_pic_F77='-KPIC'
13389 lt_prog_compiler_static_F77='-static'
13391 pgcc* | pgf77* | pgf90* | pgf95*)
13392 # Portland Group compilers (*not* the Pentium gcc compiler,
13393 # which looks to be a dead project)
13394 lt_prog_compiler_wl_F77='-Wl,'
13395 lt_prog_compiler_pic_F77='-fpic'
13396 lt_prog_compiler_static_F77='-Bstatic'
13399 lt_prog_compiler_wl_F77='-Wl,'
13400 # All Alpha code is PIC.
13401 lt_prog_compiler_static_F77='-non_shared'
13406 osf3* | osf4* | osf5*)
13407 lt_prog_compiler_wl_F77='-Wl,'
13408 # All OSF/1 code is PIC.
13409 lt_prog_compiler_static_F77='-non_shared'
13413 lt_prog_compiler_pic_F77='-KPIC'
13414 lt_prog_compiler_static_F77='-Bstatic'
13415 case $cc_basename in
13416 f77* | f90* | f95*)
13417 lt_prog_compiler_wl_F77='-Qoption ld ';;
13419 lt_prog_compiler_wl_F77='-Wl,';;
13424 lt_prog_compiler_wl_F77='-Qoption ld '
13425 lt_prog_compiler_pic_F77='-PIC'
13426 lt_prog_compiler_static_F77='-Bstatic'
13429 sysv4 | sysv4.2uw2* | sysv4.3*)
13430 lt_prog_compiler_wl_F77='-Wl,'
13431 lt_prog_compiler_pic_F77='-KPIC'
13432 lt_prog_compiler_static_F77='-Bstatic'
13436 if test -d /usr/nec ;then
13437 lt_prog_compiler_pic_F77='-Kconform_pic'
13438 lt_prog_compiler_static_F77='-Bstatic'
13442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13443 lt_prog_compiler_wl_F77='-Wl,'
13444 lt_prog_compiler_pic_F77='-KPIC'
13445 lt_prog_compiler_static_F77='-Bstatic'
13449 lt_prog_compiler_wl_F77='-Wl,'
13450 lt_prog_compiler_can_build_shared_F77=no
13454 lt_prog_compiler_pic_F77='-pic'
13455 lt_prog_compiler_static_F77='-Bstatic'
13459 lt_prog_compiler_can_build_shared_F77=no
13464 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13465 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13468 # Check to make sure the PIC flag actually works.
13470 if test -n "$lt_prog_compiler_pic_F77"; then
13472 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13474 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 lt_prog_compiler_pic_works_F77=no
13478 ac_outfile=conftest.$ac_objext
13479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13480 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13481 # Insert the option either (1) after the last *FLAGS variable, or
13482 # (2) before a word containing "conftest.", or (3) at the end.
13483 # Note that $ac_compile itself does not contain backslashes and begins
13484 # with a dollar sign (not a hyphen), so the echo should work correctly.
13485 # The option is referenced via a variable to avoid confusing sed.
13486 lt_compile=`echo "$ac_compile" | $SED \
13487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13489 -e 's:$: $lt_compiler_flag:'`
13490 (eval echo "\"\$as_me:13490: $lt_compile\"" >&5)
13491 (eval "$lt_compile" 2>conftest.err)
13493 cat conftest.err >&5
13494 echo "$as_me:13494: \$? = $ac_status" >&5
13495 if (exit $ac_status) && test -s "$ac_outfile"; then
13496 # The compiler can only warn and ignore the option if not recognized
13497 # So say no if there are warnings other than the usual output.
13498 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13501 lt_prog_compiler_pic_works_F77=yes
13507 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13508 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13510 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13511 case $lt_prog_compiler_pic_F77 in
13513 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13516 lt_prog_compiler_pic_F77=
13517 lt_prog_compiler_can_build_shared_F77=no
13522 # For platforms which do not support PIC, -DPIC is meaningless:
13524 lt_prog_compiler_pic_F77=
13527 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13532 # Check to make sure the static flag actually works.
13534 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13535 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13536 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13537 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 lt_prog_compiler_static_works_F77=no
13541 save_LDFLAGS="$LDFLAGS"
13542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13543 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13545 # The linker can only warn and ignore the option if not recognized
13546 # So say no if there are warnings
13547 if test -s conftest.err; then
13548 # Append any errors to the config.log.
13549 cat conftest.err 1>&5
13550 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13552 if diff conftest.exp conftest.er2 >/dev/null; then
13553 lt_prog_compiler_static_works_F77=yes
13556 lt_prog_compiler_static_works_F77=yes
13560 LDFLAGS="$save_LDFLAGS"
13563 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13564 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13566 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13569 lt_prog_compiler_static_F77=
13573 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13574 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13575 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 lt_cv_prog_compiler_c_o_F77=no
13579 $rm -r conftest 2>/dev/null
13583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13585 lt_compiler_flag="-o out/conftest2.$ac_objext"
13586 # Insert the option either (1) after the last *FLAGS variable, or
13587 # (2) before a word containing "conftest.", or (3) at the end.
13588 # Note that $ac_compile itself does not contain backslashes and begins
13589 # with a dollar sign (not a hyphen), so the echo should work correctly.
13590 lt_compile=`echo "$ac_compile" | $SED \
13591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13593 -e 's:$: $lt_compiler_flag:'`
13594 (eval echo "\"\$as_me:13594: $lt_compile\"" >&5)
13595 (eval "$lt_compile" 2>out/conftest.err)
13597 cat out/conftest.err >&5
13598 echo "$as_me:13598: \$? = $ac_status" >&5
13599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13601 # The compiler can only warn and ignore the option if not recognized
13602 # So say no if there are warnings
13603 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13606 lt_cv_prog_compiler_c_o_F77=yes
13611 # SGI C++ compiler will create directory out/ii_files/ for
13612 # template instantiation
13613 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13614 $rm out/* && rmdir out
13620 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13624 hard_links="nottested"
13625 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13626 # do not overwrite the value of need_locks provided by the user
13627 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13633 ln conftest.a conftest.b 2>&5 || hard_links=no
13634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13635 echo "$as_me:$LINENO: result: $hard_links" >&5
13636 echo "${ECHO_T}$hard_links" >&6
13637 if test "$hard_links" = no; then
13638 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13646 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13650 allow_undefined_flag_F77=
13651 enable_shared_with_static_runtimes_F77=no
13653 archive_expsym_cmds_F77=
13654 old_archive_From_new_cmds_F77=
13655 old_archive_from_expsyms_cmds_F77=
13656 export_dynamic_flag_spec_F77=
13657 whole_archive_flag_spec_F77=
13658 thread_safe_flag_spec_F77=
13659 hardcode_libdir_flag_spec_F77=
13660 hardcode_libdir_flag_spec_ld_F77=
13661 hardcode_libdir_separator_F77=
13662 hardcode_direct_F77=no
13663 hardcode_minus_L_F77=no
13664 hardcode_shlibpath_var_F77=unsupported
13665 link_all_deplibs_F77=unknown
13666 hardcode_automatic_F77=no
13668 module_expsym_cmds_F77=
13669 always_export_symbols_F77=no
13670 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13671 # include_expsyms should be a list of space-separated symbols to be *always*
13672 # included in the symbol list
13673 include_expsyms_F77=
13674 # exclude_expsyms can be an extended regexp of symbols to exclude
13675 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13676 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13677 # as well as any symbol that contains `d'.
13678 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13679 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13680 # platforms (ab)use it in PIC code, but their linkers get confused if
13681 # the symbol is explicitly referenced. Since portable code cannot
13682 # rely on this symbol name, it's probably fine to never include it in
13683 # preloaded symbol tables.
13684 extract_expsyms_cmds=
13685 # Just being paranoid about ensuring that cc_basename is set.
13686 for cc_temp in $compiler""; do
13688 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13689 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13694 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13697 cygwin* | mingw* | pw32*)
13698 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13699 # When not using gcc, we currently assume that we are using
13700 # Microsoft Visual C++.
13701 if test "$GCC" != yes; then
13706 # we just hope/assume this is gcc and not c89 (= MSVC++)
13715 if test "$with_gnu_ld" = yes; then
13716 # If archive_cmds runs LD, not CC, wlarc should be empty
13719 # Set some defaults for GNU ld with shared library support. These
13720 # are reset later if shared libraries are not supported. Putting them
13721 # here allows them to be overridden if necessary.
13722 runpath_var=LD_RUN_PATH
13723 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13724 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13725 # ancient GNU ld didn't support --whole-archive et. al.
13726 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13727 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13729 whole_archive_flag_spec_F77=
13731 supports_anon_versioning=no
13732 case `$LD -v 2>/dev/null` in
13733 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13736 *\ 2.11.*) ;; # other 2.11 versions
13737 *) supports_anon_versioning=yes ;;
13740 # See if GNU ld supports shared libraries.
13742 aix3* | aix4* | aix5*)
13743 # On AIX/PPC, the GNU linker is very broken
13744 if test "$host_cpu" != ia64; then
13748 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13749 *** to be unable to reliably create shared libraries on AIX.
13750 *** Therefore, libtool is disabling shared libraries support. If you
13751 *** really care for shared libraries, you may want to modify your PATH
13752 *** so that a non-GNU linker is found, and then restart.
13759 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)'
13760 hardcode_libdir_flag_spec_F77='-L$libdir'
13761 hardcode_minus_L_F77=yes
13763 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13764 # that the semantics of dynamic libraries on AmigaOS, at least up
13765 # to version 4, is to share data among multiple programs linked
13766 # with the same dynamic library. Since this doesn't match the
13767 # behavior of shared libraries on other platforms, we can't use
13773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13774 allow_undefined_flag_F77=unsupported
13775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13776 # support --undefined. This deserves some investigation. FIXME
13777 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13783 cygwin* | mingw* | pw32*)
13784 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13785 # as there is no search path for DLLs.
13786 hardcode_libdir_flag_spec_F77='-L$libdir'
13787 allow_undefined_flag_F77=unsupported
13788 always_export_symbols_F77=no
13789 enable_shared_with_static_runtimes_F77=yes
13790 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13792 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13794 # If the export-symbols file already is a .def file (1st line
13795 # is EXPORTS), use it as is; otherwise, prepend...
13796 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13797 cp $export_symbols $output_objdir/$soname.def;
13799 echo EXPORTS > $output_objdir/$soname.def;
13800 cat $export_symbols >> $output_objdir/$soname.def;
13802 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13809 hardcode_direct_F77=no
13810 hardcode_shlibpath_var_F77=no
13811 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13812 export_dynamic_flag_spec_F77='${wl}-E'
13813 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13814 # Instead, shared libraries are loaded at an image base (0x10000000 by
13815 # default) and relocated if they conflict, which is a slow very memory
13816 # consuming and fragmenting process. To avoid this, we pick a random,
13817 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13818 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13819 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13820 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13826 case $cc_basename,$host_cpu in
13827 pgcc*) # Portland Group C compiler
13828 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13829 tmp_addflag=' $pic_flag'
13831 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13832 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13833 tmp_addflag=' $pic_flag -Mnomain' ;;
13834 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13835 tmp_addflag=' -i_dynamic' ;;
13836 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13837 tmp_addflag=' -i_dynamic -nofor_main' ;;
13838 ifc* | ifort*) # Intel Fortran compiler
13839 tmp_addflag=' -nofor_main' ;;
13841 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13843 if test $supports_anon_versioning = yes; then
13844 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13845 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13846 $echo "local: *; };" >> $output_objdir/$libname.ver~
13847 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13856 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13859 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13860 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13865 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13869 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13870 *** create shared libraries on Solaris systems. Therefore, libtool
13871 *** is disabling shared libraries support. We urge you to upgrade GNU
13872 *** binutils to release 2.9.1 or newer. Another option is to modify
13873 *** your PATH or compiler configuration so that the native linker is
13874 *** used, and then restart.
13877 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13878 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13879 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13886 case `$LD -v 2>&1` in
13887 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13891 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13892 *** reliably create shared libraries on SCO systems. Therefore, libtool
13893 *** is disabling shared libraries support. We urge you to upgrade GNU
13894 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13895 *** your PATH or compiler configuration so that the native linker is
13896 *** used, and then restart.
13901 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13902 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13904 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13913 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13915 hardcode_direct_F77=yes
13916 hardcode_shlibpath_var_F77=no
13920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13921 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13922 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13929 if test "$ld_shlibs_F77" = no; then
13931 hardcode_libdir_flag_spec_F77=
13932 export_dynamic_flag_spec_F77=
13933 whole_archive_flag_spec_F77=
13936 # PORTME fill in a description of your system's linker (not GNU ld)
13939 allow_undefined_flag_F77=unsupported
13940 always_export_symbols_F77=yes
13941 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'
13942 # Note: this linker hardcodes the directories in LIBPATH if there
13943 # are no directories specified by -L.
13944 hardcode_minus_L_F77=yes
13945 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13946 # Neither direct hardcoding nor static linking is supported with a
13948 hardcode_direct_F77=unsupported
13953 if test "$host_cpu" = ia64; then
13954 # On IA64, the linker does run time linking by default, so we don't
13955 # have to do anything special.
13956 aix_use_runtimelinking=no
13957 exp_sym_flag='-Bexport'
13960 # If we're using GNU nm, then we don't want the "-C" option.
13961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13963 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'
13965 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'
13967 aix_use_runtimelinking=no
13969 # Test if we are trying to use run time linking or normal
13970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13971 # need to do runtime linking.
13972 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13973 for ld_flag in $LDFLAGS; do
13974 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13975 aix_use_runtimelinking=yes
13982 exp_sym_flag='-bexport'
13983 no_entry_flag='-bnoentry'
13986 # When large executables or shared objects are built, AIX ld can
13987 # have problems creating the table of contents. If linking a library
13988 # or program results in "error TOC overflow" add -mminimal-toc to
13989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13992 archive_cmds_F77=''
13993 hardcode_direct_F77=yes
13994 hardcode_libdir_separator_F77=':'
13995 link_all_deplibs_F77=yes
13997 if test "$GCC" = yes; then
13998 case $host_os in aix4.[012]|aix4.[012].*)
13999 # We only want to do this on AIX 4.2 and lower, the check
14000 # below for broken collect2 doesn't work under 4.3+
14001 collect2name=`${CC} -print-prog-name=collect2`
14002 if test -f "$collect2name" && \
14003 strings "$collect2name" | grep resolve_lib_name >/dev/null
14005 # We have reworked collect2
14006 hardcode_direct_F77=yes
14008 # We have old collect2
14009 hardcode_direct_F77=unsupported
14010 # It fails to find uninstalled libraries when the uninstalled
14011 # path is not listed in the libpath. Setting hardcode_minus_L
14012 # to unsupported forces relinking
14013 hardcode_minus_L_F77=yes
14014 hardcode_libdir_flag_spec_F77='-L$libdir'
14015 hardcode_libdir_separator_F77=
14019 shared_flag='-shared'
14020 if test "$aix_use_runtimelinking" = yes; then
14021 shared_flag="$shared_flag "'${wl}-G'
14025 if test "$host_cpu" = ia64; then
14026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14027 # chokes on -Wl,-G. The following line is correct:
14030 if test "$aix_use_runtimelinking" = yes; then
14031 shared_flag='${wl}-G'
14033 shared_flag='${wl}-bM:SRE'
14038 # It seems that -bexpall does not export symbols beginning with
14039 # underscore (_), so it is better to generate a list of symbols to export.
14040 always_export_symbols_F77=yes
14041 if test "$aix_use_runtimelinking" = yes; then
14042 # Warning - without using the other runtime loading flags (-brtl),
14043 # -berok will link without error, but may produce a broken library.
14044 allow_undefined_flag_F77='-berok'
14045 # Determine the default libpath from the value encoded in an empty executable.
14046 cat >conftest.$ac_ext <<_ACEOF
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053 (eval $ac_link) 2>conftest.er1
14055 grep -v '^ *+' conftest.er1 >conftest.err
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
14060 { ac_try='test -z "$ac_f77_werror_flag"
14061 || test ! -s conftest.err'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } &&
14067 { ac_try='test -s conftest$ac_exeext'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14076 # Check for a 64-bit object if we didn't find anything.
14077 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; }
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14084 rm -f conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14088 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14089 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14091 if test "$host_cpu" = ia64; then
14092 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14093 allow_undefined_flag_F77="-z nodefs"
14094 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14096 # Determine the default libpath from the value encoded in an empty executable.
14097 cat >conftest.$ac_ext <<_ACEOF
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104 (eval $ac_link) 2>conftest.er1
14106 grep -v '^ *+' conftest.er1 >conftest.err
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_f77_werror_flag"
14112 || test ! -s conftest.err'
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest$ac_exeext'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14127 # Check for a 64-bit object if we didn't find anything.
14128 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; }
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14135 rm -f conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
14137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14139 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14140 # Warning - without using the other run time loading flags,
14141 # -berok will link without error, but may produce a broken library.
14142 no_undefined_flag_F77=' ${wl}-bernotok'
14143 allow_undefined_flag_F77=' ${wl}-berok'
14144 # Exported symbols can be pulled into shared objects from archives
14145 whole_archive_flag_spec_F77='$convenience'
14146 archive_cmds_need_lc_F77=yes
14147 # This is similar to how AIX traditionally builds its shared libraries.
14148 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14154 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)'
14155 hardcode_libdir_flag_spec_F77='-L$libdir'
14156 hardcode_minus_L_F77=yes
14157 # see comment about different semantics on the GNU ld section
14162 export_dynamic_flag_spec_F77=-rdynamic
14165 cygwin* | mingw* | pw32*)
14166 # When not using gcc, we currently assume that we are using
14167 # Microsoft Visual C++.
14168 # hardcode_libdir_flag_spec is actually meaningless, as there is
14169 # no search path for DLLs.
14170 hardcode_libdir_flag_spec_F77=' '
14171 allow_undefined_flag_F77=unsupported
14172 # Tell ltmain to make .lib files, not .a files.
14174 # Tell ltmain to make .dll files, not .so files.
14176 # FIXME: Setting linknames here is a bad hack.
14177 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14178 # The linker will automatically build a .lib file if we build a DLL.
14179 old_archive_From_new_cmds_F77='true'
14180 # FIXME: Should let the user specify the lib program.
14181 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14182 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14183 enable_shared_with_static_runtimes_F77=yes
14186 darwin* | rhapsody*)
14188 rhapsody* | darwin1.[012])
14189 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14192 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14193 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14195 case ${MACOSX_DEPLOYMENT_TARGET} in
14197 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14200 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14206 archive_cmds_need_lc_F77=no
14207 hardcode_direct_F77=no
14208 hardcode_automatic_F77=yes
14209 hardcode_shlibpath_var_F77=unsupported
14210 whole_archive_flag_spec_F77=''
14211 link_all_deplibs_F77=yes
14212 if test "$GCC" = yes ; then
14213 output_verbose_link_cmd='echo'
14214 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14215 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14216 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14217 archive_expsym_cmds_F77='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}'
14218 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}'
14220 case $cc_basename in
14222 output_verbose_link_cmd='echo'
14223 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14224 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14225 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14226 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14227 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}'
14237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14238 hardcode_libdir_flag_spec_F77='-L$libdir'
14239 hardcode_shlibpath_var_F77=no
14246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14247 # support. Future versions do this automatically, but an explicit c++rt0.o
14248 # does not break anything, and helps significantly (at the cost of a little
14251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14252 hardcode_libdir_flag_spec_F77='-R$libdir'
14253 hardcode_direct_F77=yes
14254 hardcode_shlibpath_var_F77=no
14257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14260 hardcode_direct_F77=yes
14261 hardcode_minus_L_F77=yes
14262 hardcode_shlibpath_var_F77=no
14265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14266 freebsd* | kfreebsd*-gnu | dragonfly*)
14267 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14268 hardcode_libdir_flag_spec_F77='-R$libdir'
14269 hardcode_direct_F77=yes
14270 hardcode_shlibpath_var_F77=no
14274 if test "$GCC" = yes; then
14275 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'
14277 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'
14279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14280 hardcode_libdir_separator_F77=:
14281 hardcode_direct_F77=yes
14283 # hardcode_minus_L: Not really in the search PATH,
14284 # but as the default location of the library.
14285 hardcode_minus_L_F77=yes
14286 export_dynamic_flag_spec_F77='${wl}-E'
14290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14291 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14293 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14295 if test "$with_gnu_ld" = no; then
14296 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14297 hardcode_libdir_separator_F77=:
14299 hardcode_direct_F77=yes
14300 export_dynamic_flag_spec_F77='${wl}-E'
14302 # hardcode_minus_L: Not really in the search PATH,
14303 # but as the default location of the library.
14304 hardcode_minus_L_F77=yes
14309 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14312 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14315 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14318 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14324 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14327 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14330 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14334 if test "$with_gnu_ld" = no; then
14335 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14336 hardcode_libdir_separator_F77=:
14340 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14341 hardcode_direct_F77=no
14342 hardcode_shlibpath_var_F77=no
14345 hardcode_direct_F77=yes
14346 export_dynamic_flag_spec_F77='${wl}-E'
14348 # hardcode_minus_L: Not really in the search PATH,
14349 # but as the default location of the library.
14350 hardcode_minus_L_F77=yes
14356 irix5* | irix6* | nonstopux*)
14357 if test "$GCC" = yes; then
14358 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'
14360 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'
14361 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14363 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14364 hardcode_libdir_separator_F77=:
14365 link_all_deplibs_F77=yes
14369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14370 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14372 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14374 hardcode_libdir_flag_spec_F77='-R$libdir'
14375 hardcode_direct_F77=yes
14376 hardcode_shlibpath_var_F77=no
14380 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14381 hardcode_direct_F77=yes
14382 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14383 hardcode_libdir_separator_F77=:
14384 hardcode_shlibpath_var_F77=no
14388 hardcode_direct_F77=yes
14389 hardcode_shlibpath_var_F77=no
14390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14391 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14392 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14393 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14394 export_dynamic_flag_spec_F77='${wl}-E'
14397 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14398 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14399 hardcode_libdir_flag_spec_F77='-R$libdir'
14402 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14403 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14410 hardcode_libdir_flag_spec_F77='-L$libdir'
14411 hardcode_minus_L_F77=yes
14412 allow_undefined_flag_F77=unsupported
14413 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'
14414 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14418 if test "$GCC" = yes; then
14419 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14420 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'
14422 allow_undefined_flag_F77=' -expect_unresolved \*'
14423 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'
14425 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14426 hardcode_libdir_separator_F77=:
14429 osf4* | osf5*) # as osf3* with the addition of -msym flag
14430 if test "$GCC" = yes; then
14431 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14432 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'
14433 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14435 allow_undefined_flag_F77=' -expect_unresolved \*'
14436 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'
14437 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~
14438 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14440 # Both c and cxx compiler support -rpath directly
14441 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14443 hardcode_libdir_separator_F77=:
14447 no_undefined_flag_F77=' -z text'
14448 if test "$GCC" = yes; then
14450 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14451 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14452 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14455 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14456 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14459 hardcode_libdir_flag_spec_F77='-R$libdir'
14460 hardcode_shlibpath_var_F77=no
14462 solaris2.[0-5] | solaris2.[0-5].*) ;;
14464 # The compiler driver will combine linker options so we
14465 # cannot just pass the convience library names through
14466 # without $wl, iff we do not link with $LD.
14467 # Luckily, gcc supports the same syntax we need for Sun Studio.
14468 # Supported since Solaris 2.6 (maybe 2.5.1?)
14471 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14473 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14476 link_all_deplibs_F77=yes
14480 if test "x$host_vendor" = xsequent; then
14481 # Use $CC to link under sequent, because it throws in some extra .o
14482 # files that make .init and .fini sections work.
14483 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14485 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14487 hardcode_libdir_flag_spec_F77='-L$libdir'
14488 hardcode_direct_F77=yes
14489 hardcode_minus_L_F77=yes
14490 hardcode_shlibpath_var_F77=no
14494 case $host_vendor in
14496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14497 hardcode_direct_F77=yes # is this really true???
14500 ## LD is ld it makes a PLAMLIB
14501 ## CC just makes a GrossModule.
14502 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14503 reload_cmds_F77='$CC -r -o $output$reload_objs'
14504 hardcode_direct_F77=no
14507 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14508 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14511 runpath_var='LD_RUN_PATH'
14512 hardcode_shlibpath_var_F77=no
14516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14517 hardcode_shlibpath_var_F77=no
14518 export_dynamic_flag_spec_F77='-Bexport'
14522 if test -d /usr/nec; then
14523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14524 hardcode_shlibpath_var_F77=no
14525 runpath_var=LD_RUN_PATH
14526 hardcode_runpath_var=yes
14531 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14532 no_undefined_flag_F77='${wl}-z,text'
14533 archive_cmds_need_lc_F77=no
14534 hardcode_shlibpath_var_F77=no
14535 runpath_var='LD_RUN_PATH'
14537 if test "$GCC" = yes; then
14538 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14539 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546 sysv5* | sco3.2v5* | sco5v6*)
14547 # Note: We can NOT use -z defs as we might desire, because we do not
14548 # link with -lc, and that would cause any symbols used from libc to
14549 # always be unresolved, which means just about no library would
14550 # ever link correctly. If we're not using GNU ld we use -z text
14551 # though, which does catch some bad symbols but isn't as heavy-handed
14553 no_undefined_flag_F77='${wl}-z,text'
14554 allow_undefined_flag_F77='${wl}-z,nodefs'
14555 archive_cmds_need_lc_F77=no
14556 hardcode_shlibpath_var_F77=no
14557 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14558 hardcode_libdir_separator_F77=':'
14559 link_all_deplibs_F77=yes
14560 export_dynamic_flag_spec_F77='${wl}-Bexport'
14561 runpath_var='LD_RUN_PATH'
14563 if test "$GCC" = yes; then
14564 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14565 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14567 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14574 hardcode_libdir_flag_spec_F77='-L$libdir'
14575 hardcode_shlibpath_var_F77=no
14584 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14585 echo "${ECHO_T}$ld_shlibs_F77" >&6
14586 test "$ld_shlibs_F77" = no && can_build_shared=no
14589 # Do we need to explicitly link libc?
14591 case "x$archive_cmds_need_lc_F77" in
14593 # Assume -lc should be added
14594 archive_cmds_need_lc_F77=yes
14596 if test "$enable_shared" = yes && test "$GCC" = yes; then
14597 case $archive_cmds_F77 in
14599 # FIXME: we may have to deal with multi-command sequences.
14602 # Test whether the compiler implicitly links with -lc since on some
14603 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14604 # to ld, don't add -lc before -lgcc.
14605 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14606 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611 (eval $ac_compile) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } 2>conftest.err; then
14617 libobjs=conftest.$ac_objext
14619 wl=$lt_prog_compiler_wl_F77
14620 pic_flag=$lt_prog_compiler_pic_F77
14626 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14627 allow_undefined_flag_F77=
14628 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14629 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }
14634 archive_cmds_need_lc_F77=no
14636 archive_cmds_need_lc_F77=yes
14638 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14640 cat conftest.err 1>&5
14643 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14644 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14651 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14652 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14653 library_names_spec=
14654 libname_spec='lib$name'
14658 postuninstall_cmds=
14662 shlibpath_overrides_runpath=unknown
14664 dynamic_linker="$host_os ld.so"
14665 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14666 if test "$GCC" = yes; then
14667 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14668 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14669 # if the path contains ";" then we assume it to be the separator
14670 # otherwise default to the standard path separator (i.e. ":") - it is
14671 # assumed that no part of a normal pathname contains ";" but that should
14672 # okay in the real world where ";" in dirpaths is itself problematic.
14673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14678 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14680 need_lib_prefix=unknown
14681 hardcode_into_libs=no
14683 # when you set need_version to no, make sure it does not cause -set_version
14684 # flags to be left without arguments
14685 need_version=unknown
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14691 shlibpath_var=LIBPATH
14693 # AIX 3 has no versioning support, so we append a major version to the name.
14694 soname_spec='${libname}${release}${shared_ext}$major'
14701 hardcode_into_libs=yes
14702 if test "$host_cpu" = ia64; then
14703 # AIX 5 supports IA64
14704 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14705 shlibpath_var=LD_LIBRARY_PATH
14707 # With GCC up to 2.95.x, collect2 would create an import file
14708 # for dependence libraries. The import file would start with
14709 # the line `#! .'. This would cause the generated library to
14710 # depend on `.', always an invalid library. This was fixed in
14711 # development snapshots of GCC prior to 3.0.
14713 aix4 | aix4.[01] | aix4.[01].*)
14714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14716 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14719 can_build_shared=no
14723 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14724 # soname into executable. Probably we can add versioning support to
14725 # collect2, so additional links can be useful in future.
14726 if test "$aix_use_runtimelinking" = yes; then
14727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14728 # instead of lib<name>.a to let people know that these are not
14729 # typical AIX shared libraries.
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 # We preserve .a as extension for shared libraries through AIX4.2
14733 # and later when we are not doing run time linking.
14734 library_names_spec='${libname}${release}.a $libname.a'
14735 soname_spec='${libname}${release}${shared_ext}$major'
14737 shlibpath_var=LIBPATH
14742 library_names_spec='$libname.ixlibrary $libname.a'
14743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14744 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'
14748 library_names_spec='${libname}${shared_ext}'
14749 dynamic_linker="$host_os ld.so"
14750 shlibpath_var=LIBRARY_PATH
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14762 # the default ld.so.conf also contains /usr/contrib/lib and
14763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14764 # libtool to hard-code these into programs
14767 cygwin* | mingw* | pw32*)
14768 version_type=windows
14773 case $GCC,$host_os in
14774 yes,cygwin* | yes,mingw* | yes,pw32*)
14775 library_names_spec='$libname.dll.a'
14776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14777 postinstall_cmds='base_file=`basename \${file}`~
14778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14779 dldir=$destdir/`dirname \$dlpath`~
14780 test -d \$dldir || mkdir -p \$dldir~
14781 $install_prog $dir/$dlname \$dldir/$dlname~
14782 chmod a+x \$dldir/$dlname'
14783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14784 dlpath=$dir/\$dldll~
14786 shlibpath_overrides_runpath=yes
14790 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14792 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14795 # MinGW DLLs use traditional 'lib' prefix
14796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14798 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14799 # It is most probably a Windows format PATH printed by
14800 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14801 # path with ; separators, and with drive letters. We can handle the
14802 # drive letters (cygwin fileutils understands them), so leave them,
14803 # especially as we might pass files found there to a mingw objdump,
14804 # which wouldn't understand a cygwinified path. Ahh.
14805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14811 # pw32 DLLs use 'pw' prefix rather than 'lib'
14812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14821 dynamic_linker='Win32 ld.exe'
14822 # FIXME: first we should search . and the directory the executable is in
14826 darwin* | rhapsody*)
14827 dynamic_linker="$host_os dyld"
14828 version_type=darwin
14831 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14832 soname_spec='${libname}${release}${major}$shared_ext'
14833 shlibpath_overrides_runpath=yes
14834 shlibpath_var=DYLD_LIBRARY_PATH
14835 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14836 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14837 if test "$GCC" = yes; then
14838 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"`
14840 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14850 soname_spec='${libname}${release}${shared_ext}$major'
14851 shlibpath_var=LD_LIBRARY_PATH
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 shlibpath_overrides_runpath=no
14866 hardcode_into_libs=yes
14867 dynamic_linker='GNU ld.so'
14870 freebsd* | dragonfly*)
14871 # DragonFly does not have aout. When/if they implement a new
14872 # versioning mechanism, adjust this.
14873 if test -x /usr/bin/objformat; then
14874 objformat=`/usr/bin/objformat`
14877 freebsd[123]*) objformat=aout ;;
14878 *) objformat=elf ;;
14881 version_type=freebsd-$objformat
14882 case $version_type in
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14893 shlibpath_var=LD_LIBRARY_PATH
14896 shlibpath_overrides_runpath=yes
14898 freebsd3.[01]* | freebsdelf3.[01]*)
14899 shlibpath_overrides_runpath=yes
14900 hardcode_into_libs=yes
14902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14904 shlibpath_overrides_runpath=no
14905 hardcode_into_libs=yes
14907 freebsd*) # from 4.6 on
14908 shlibpath_overrides_runpath=yes
14909 hardcode_into_libs=yes
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 shlibpath_var=LD_LIBRARY_PATH
14921 hardcode_into_libs=yes
14924 hpux9* | hpux10* | hpux11*)
14925 # Give a soname corresponding to the major version so that dld.sl refuses to
14926 # link against other versions.
14933 hardcode_into_libs=yes
14934 dynamic_linker="$host_os dld.so"
14935 shlibpath_var=LD_LIBRARY_PATH
14936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 if test "X$HPUX_IA64_MODE" = X32; then
14940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14948 hardcode_into_libs=yes
14949 dynamic_linker="$host_os dld.sl"
14950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14959 dynamic_linker="$host_os dld.sl"
14960 shlibpath_var=SHLIB_PATH
14961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14966 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14967 postinstall_cmds='chmod 555 $lib'
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14975 soname_spec='${libname}${release}${shared_ext}$major'
14976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14977 shlibpath_var=LD_LIBRARY_PATH
14978 shlibpath_overrides_runpath=no
14979 hardcode_into_libs=yes
14982 irix5* | irix6* | nonstopux*)
14984 nonstopux*) version_type=nonstopux ;;
14986 if test "$lt_cv_prog_gnu_ld" = yes; then
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14997 irix5* | nonstopux*)
14998 libsuff= shlibsuff=
15001 case $LD in # libtool.m4 will add one of these switches to LD
15002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15003 libsuff= shlibsuff= libmagic=32-bit;;
15004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15005 libsuff=32 shlibsuff=N32 libmagic=N32;;
15006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15008 *) libsuff= shlibsuff= libmagic=never-match;;
15012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15013 shlibpath_overrides_runpath=no
15014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15016 hardcode_into_libs=yes
15019 # No shared lib support for Linux oldld, aout, or coff.
15020 linux*oldld* | linux*aout* | linux*coff*)
15024 # This must be Linux ELF.
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030 soname_spec='${libname}${release}${shared_ext}$major'
15031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15032 shlibpath_var=LD_LIBRARY_PATH
15033 shlibpath_overrides_runpath=no
15034 # This implies no fast_install, which is unacceptable.
15035 # Some rework will be needed to allow for fast_install
15036 # before this can be enabled.
15037 hardcode_into_libs=yes
15039 # Append ld.so.conf contents to the search path
15040 if test -f /etc/ld.so.conf; then
15041 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15042 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15045 # We used to test for /lib/ld.so.1 and disable shared libraries on
15046 # powerpc, because MkLinux only supported shared libraries with the
15047 # GNU dynamic linker. Since this was broken with cross compilers,
15048 # most powerpc-linux boxes support dynamic linking these days and
15049 # people can always --disable-shared, the test was removed, and we
15050 # assume the GNU/Linux dynamic linker is in use.
15051 dynamic_linker='GNU/Linux ld.so'
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 shlibpath_var=LD_LIBRARY_PATH
15061 shlibpath_overrides_runpath=no
15062 hardcode_into_libs=yes
15063 dynamic_linker='GNU ld.so'
15070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15073 dynamic_linker='NetBSD (a.out) ld.so'
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15076 soname_spec='${libname}${release}${shared_ext}$major'
15077 dynamic_linker='NetBSD ld.elf_so'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath=yes
15081 hardcode_into_libs=yes
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath=yes
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 shlibpath_var=LD_LIBRARY_PATH
15098 shlibpath_overrides_runpath=yes
15103 sys_lib_dlsearch_path_spec="/usr/lib"
15105 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15107 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15108 *) need_version=no ;;
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15112 shlibpath_var=LD_LIBRARY_PATH
15113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15115 openbsd2.[89] | openbsd2.[89].*)
15116 shlibpath_overrides_runpath=no
15119 shlibpath_overrides_runpath=yes
15123 shlibpath_overrides_runpath=yes
15128 libname_spec='$name'
15131 library_names_spec='$libname${shared_ext} $libname.a'
15132 dynamic_linker='OS/2 ld.exe'
15133 shlibpath_var=LIBPATH
15136 osf3* | osf4* | osf5*)
15140 soname_spec='${libname}${release}${shared_ext}$major'
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
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
15205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15206 version_type=freebsd-elf
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 hardcode_into_libs=yes
15213 if test "$with_gnu_ld" = yes; then
15214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15215 shlibpath_overrides_runpath=no
15217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15218 shlibpath_overrides_runpath=yes
15221 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15225 sys_lib_dlsearch_path_spec='/usr/lib'
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 shlibpath_var=LD_LIBRARY_PATH
15239 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15240 echo "${ECHO_T}$dynamic_linker" >&6
15241 test "$dynamic_linker" = no && can_build_shared=no
15243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15244 if test "$GCC" = yes; then
15245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15248 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15249 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15250 hardcode_action_F77=
15251 if test -n "$hardcode_libdir_flag_spec_F77" || \
15252 test -n "$runpath_var_F77" || \
15253 test "X$hardcode_automatic_F77" = "Xyes" ; then
15255 # We can hardcode non-existant directories.
15256 if test "$hardcode_direct_F77" != no &&
15257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15258 # have to relink, otherwise we might link with an installed library
15259 # when we should be linking with a yet-to-be-installed one
15260 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15261 test "$hardcode_minus_L_F77" != no; then
15262 # Linking always hardcodes the temporary library directory.
15263 hardcode_action_F77=relink
15265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15266 hardcode_action_F77=immediate
15269 # We cannot hardcode anything, or else we can only hardcode existing
15271 hardcode_action_F77=unsupported
15273 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15274 echo "${ECHO_T}$hardcode_action_F77" >&6
15276 if test "$hardcode_action_F77" = relink; then
15277 # Fast installation is not supported
15278 enable_fast_install=no
15279 elif test "$shlibpath_overrides_runpath" = yes ||
15280 test "$enable_shared" = no; then
15281 # Fast installation is not necessary
15282 enable_fast_install=needless
15286 # The else clause should only fire when bootstrapping the
15287 # libtool distribution, otherwise you forgot to ship ltmain.sh
15288 # with your package, and you will get complaints that there are
15289 # no rules to generate ltmain.sh.
15290 if test -f "$ltmain"; then
15291 # See if we are running on zsh, and set the options which allow our commands through
15292 # without removal of \ escapes.
15293 if test -n "${ZSH_VERSION+set}" ; then
15294 setopt NO_GLOB_SUBST
15296 # Now quote all the things that may contain metacharacters while being
15297 # careful not to overquote the AC_SUBSTed values. We take copies of the
15298 # variables and quote the copies for generation of the libtool script.
15299 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15303 deplibs_check_method reload_flag reload_cmds need_locks \
15304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15305 lt_cv_sys_global_symbol_to_c_name_address \
15306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15307 old_postinstall_cmds old_postuninstall_cmds \
15311 lt_prog_compiler_wl_F77 \
15312 lt_prog_compiler_pic_F77 \
15313 lt_prog_compiler_static_F77 \
15314 lt_prog_compiler_no_builtin_flag_F77 \
15315 export_dynamic_flag_spec_F77 \
15316 thread_safe_flag_spec_F77 \
15317 whole_archive_flag_spec_F77 \
15318 enable_shared_with_static_runtimes_F77 \
15319 old_archive_cmds_F77 \
15320 old_archive_from_new_cmds_F77 \
15321 predep_objects_F77 \
15322 postdep_objects_F77 \
15325 compiler_lib_search_path_F77 \
15327 archive_expsym_cmds_F77 \
15328 postinstall_cmds_F77 \
15329 postuninstall_cmds_F77 \
15330 old_archive_from_expsyms_cmds_F77 \
15331 allow_undefined_flag_F77 \
15332 no_undefined_flag_F77 \
15333 export_symbols_cmds_F77 \
15334 hardcode_libdir_flag_spec_F77 \
15335 hardcode_libdir_flag_spec_ld_F77 \
15336 hardcode_libdir_separator_F77 \
15337 hardcode_automatic_F77 \
15339 module_expsym_cmds_F77 \
15340 lt_cv_prog_compiler_c_o_F77 \
15341 exclude_expsyms_F77 \
15342 include_expsyms_F77; do
15345 old_archive_cmds_F77 | \
15346 old_archive_from_new_cmds_F77 | \
15347 archive_cmds_F77 | \
15348 archive_expsym_cmds_F77 | \
15349 module_cmds_F77 | \
15350 module_expsym_cmds_F77 | \
15351 old_archive_from_expsyms_cmds_F77 | \
15352 export_symbols_cmds_F77 | \
15353 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15354 postinstall_cmds | postuninstall_cmds | \
15355 old_postinstall_cmds | old_postuninstall_cmds | \
15356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15357 # Double-quote double-evaled strings.
15358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15367 *'\$0 --fallback-echo"')
15368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15374 cat <<__EOF__ >> "$cfgfile"
15375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15379 # Shell to use when invoking shell scripts.
15382 # Whether or not to build shared libraries.
15383 build_libtool_libs=$enable_shared
15385 # Whether or not to build static libraries.
15386 build_old_libs=$enable_static
15388 # Whether or not to add -lc for building shared libraries.
15389 build_libtool_need_lc=$archive_cmds_need_lc_F77
15391 # Whether or not to disallow shared libs when runtime libs are static
15392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15394 # Whether or not to optimize for fast installation.
15395 fast_install=$enable_fast_install
15398 host_alias=$host_alias
15402 # The build system.
15403 build_alias=$build_alias
15407 # An echo program that does not interpret backslashes.
15412 AR_FLAGS=$lt_AR_FLAGS
15417 # LTCC compiler flags.
15418 LTCFLAGS=$lt_LTCFLAGS
15420 # A language-specific compiler.
15421 CC=$lt_compiler_F77
15423 # Is the compiler the GNU C compiler?
15429 # The linker used to build libraries.
15432 # Whether we need hard or soft links.
15435 # A BSD-compatible nm program.
15438 # A symbol stripping program
15441 # Used to examine libraries when file_magic_cmd begins "file"
15442 MAGIC_CMD=$MAGIC_CMD
15444 # Used on cygwin: DLL creation program.
15447 # Used on cygwin: object dumper.
15450 # Used on cygwin: assembler.
15453 # The name of the directory that contains temporary libtool files.
15456 # How to create reloadable object files.
15457 reload_flag=$lt_reload_flag
15458 reload_cmds=$lt_reload_cmds
15460 # How to pass a linker flag through the compiler.
15461 wl=$lt_lt_prog_compiler_wl_F77
15463 # Object file suffix (normally "o").
15464 objext="$ac_objext"
15466 # Old archive suffix (normally "a").
15469 # Shared library suffix (normally ".so").
15470 shrext_cmds='$shrext_cmds'
15472 # Executable file suffix (normally "").
15475 # Additional compiler flags for building library objects.
15476 pic_flag=$lt_lt_prog_compiler_pic_F77
15479 # What is the maximum length of a command?
15480 max_cmd_len=$lt_cv_sys_max_cmd_len
15482 # Does compiler simultaneously support -c and -o options?
15483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15485 # Must we lock files when doing compilation?
15486 need_locks=$lt_need_locks
15488 # Do we need the lib prefix for modules?
15489 need_lib_prefix=$need_lib_prefix
15491 # Do we need a version for libraries?
15492 need_version=$need_version
15494 # Whether dlopen is supported.
15495 dlopen_support=$enable_dlopen
15497 # Whether dlopen of programs is supported.
15498 dlopen_self=$enable_dlopen_self
15500 # Whether dlopen of statically linked programs is supported.
15501 dlopen_self_static=$enable_dlopen_self_static
15503 # Compiler flag to prevent dynamic linking.
15504 link_static_flag=$lt_lt_prog_compiler_static_F77
15506 # Compiler flag to turn off builtin functions.
15507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15509 # Compiler flag to allow reflexive dlopens.
15510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15512 # Compiler flag to generate shared objects directly from archives.
15513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15515 # Compiler flag to generate thread-safe objects.
15516 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15518 # Library versioning type.
15519 version_type=$version_type
15521 # Format of library name prefix.
15522 libname_spec=$lt_libname_spec
15524 # List of archive names. First name is the real one, the rest are links.
15525 # The last name is the one that the linker finds with -lNAME.
15526 library_names_spec=$lt_library_names_spec
15528 # The coded name of the library, if different from the real name.
15529 soname_spec=$lt_soname_spec
15531 # Commands used to build and install an old-style archive.
15533 old_archive_cmds=$lt_old_archive_cmds_F77
15534 old_postinstall_cmds=$lt_old_postinstall_cmds
15535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15537 # Create an old-style archive from a shared archive.
15538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15540 # Create a temporary old-style archive to link instead of a shared archive.
15541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15543 # Commands used to build and install a shared archive.
15544 archive_cmds=$lt_archive_cmds_F77
15545 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15546 postinstall_cmds=$lt_postinstall_cmds
15547 postuninstall_cmds=$lt_postuninstall_cmds
15549 # Commands used to build a loadable module (assumed same as above if empty)
15550 module_cmds=$lt_module_cmds_F77
15551 module_expsym_cmds=$lt_module_expsym_cmds_F77
15553 # Commands to strip libraries.
15554 old_striplib=$lt_old_striplib
15555 striplib=$lt_striplib
15557 # Dependencies to place before the objects being linked to create a
15559 predep_objects=$lt_predep_objects_F77
15561 # Dependencies to place after the objects being linked to create a
15563 postdep_objects=$lt_postdep_objects_F77
15565 # Dependencies to place before the objects being linked to create a
15567 predeps=$lt_predeps_F77
15569 # Dependencies to place after the objects being linked to create a
15571 postdeps=$lt_postdeps_F77
15573 # The library search path used internally by the compiler when linking
15574 # a shared library.
15575 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15577 # Method to check whether dependent libraries are shared objects.
15578 deplibs_check_method=$lt_deplibs_check_method
15580 # Command to use when deplibs_check_method == file_magic.
15581 file_magic_cmd=$lt_file_magic_cmd
15583 # Flag that allows shared libraries with undefined symbols to be built.
15584 allow_undefined_flag=$lt_allow_undefined_flag_F77
15586 # Flag that forces no undefined symbols.
15587 no_undefined_flag=$lt_no_undefined_flag_F77
15589 # Commands used to finish a libtool library installation in a directory.
15590 finish_cmds=$lt_finish_cmds
15592 # Same as above, but a single script fragment to be evaled but not shown.
15593 finish_eval=$lt_finish_eval
15595 # Take the output of nm and produce a listing of raw symbols and C names.
15596 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15598 # Transform the output of nm in a proper C declaration
15599 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15601 # Transform the output of nm in a C name address pair
15602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15604 # This is the shared library runtime path variable.
15605 runpath_var=$runpath_var
15607 # This is the shared library path variable.
15608 shlibpath_var=$shlibpath_var
15610 # Is shlibpath searched before the hard-coded library search path?
15611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15613 # How to hardcode a shared library path into an executable.
15614 hardcode_action=$hardcode_action_F77
15616 # Whether we should hardcode library paths into libraries.
15617 hardcode_into_libs=$hardcode_into_libs
15619 # Flag to hardcode \$libdir into a binary during linking.
15620 # This must work even if \$libdir does not exist.
15621 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15623 # If ld is used when linking, flag to hardcode \$libdir into
15624 # a binary during linking. This must work even if \$libdir does
15626 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15628 # Whether we need a single -rpath flag with a separated argument.
15629 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15631 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15632 # resulting binary.
15633 hardcode_direct=$hardcode_direct_F77
15635 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15636 # resulting binary.
15637 hardcode_minus_L=$hardcode_minus_L_F77
15639 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15640 # the resulting binary.
15641 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15643 # Set to yes if building a shared library automatically hardcodes DIR into the library
15644 # and all subsequent libraries and executables linked against it.
15645 hardcode_automatic=$hardcode_automatic_F77
15647 # Variables whose values should be saved in libtool wrapper scripts and
15648 # restored at relink time.
15649 variables_saved_for_relink="$variables_saved_for_relink"
15651 # Whether libtool must link a program against all its dependency libraries.
15652 link_all_deplibs=$link_all_deplibs_F77
15654 # Compile-time system search path for libraries
15655 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15657 # Run-time system search path for libraries
15658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15660 # Fix the shell variable \$srcfile for the compiler.
15661 fix_srcfile_path="$fix_srcfile_path_F77"
15663 # Set to yes if exported symbols are required.
15664 always_export_symbols=$always_export_symbols_F77
15666 # The commands to list exported symbols.
15667 export_symbols_cmds=$lt_export_symbols_cmds_F77
15669 # The commands to extract the exported symbol list from a shared archive.
15670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15672 # Symbols that should not be listed in the preloaded symbols.
15673 exclude_expsyms=$lt_exclude_expsyms_F77
15675 # Symbols that must always be exported.
15676 include_expsyms=$lt_include_expsyms_F77
15678 # ### END LIBTOOL TAG CONFIG: $tagname
15684 # If there is no Makefile yet, we rely on a make rule to execute
15685 # `config.status --recheck' to rerun these tests and create the
15686 # libtool script then.
15687 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15688 if test -f "$ltmain_in"; then
15689 test -f Makefile && make "$ltmain"
15695 ac_cpp='$CPP $CPPFLAGS'
15696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15708 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15712 # Source file extension for Java test sources.
15715 # Object file extension for compiled Java test sources.
15719 # Code to be used in simple compile tests
15720 lt_simple_compile_test_code="class foo {}\n"
15722 # Code to be used in simple link tests
15723 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15725 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15727 # If no C compiler was specified, use CC.
15730 # If no C compiler flags were specified, use CFLAGS.
15731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15733 # Allow CC to be a program name with arguments.
15737 # save warnings/boilerplate of simple test code
15738 ac_outfile=conftest.$ac_objext
15739 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15740 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15741 _lt_compiler_boilerplate=`cat conftest.err`
15744 ac_outfile=conftest.$ac_objext
15745 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15746 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15747 _lt_linker_boilerplate=`cat conftest.err`
15751 # Allow CC to be a program name with arguments.
15756 for cc_temp in $compiler""; do
15758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15764 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15767 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15768 archive_cmds_need_lc_GCJ=no
15770 old_archive_cmds_GCJ=$old_archive_cmds
15773 ## There is no encapsulation within the following macros, do not change
15774 ## the running order or otherwise move them around unless you know exactly
15775 ## what you are doing...
15777 lt_prog_compiler_no_builtin_flag_GCJ=
15779 if test "$GCC" = yes; then
15780 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15783 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15784 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15785 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 lt_cv_prog_compiler_rtti_exceptions=no
15789 ac_outfile=conftest.$ac_objext
15790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15791 lt_compiler_flag="-fno-rtti -fno-exceptions"
15792 # Insert the option either (1) after the last *FLAGS variable, or
15793 # (2) before a word containing "conftest.", or (3) at the end.
15794 # Note that $ac_compile itself does not contain backslashes and begins
15795 # with a dollar sign (not a hyphen), so the echo should work correctly.
15796 # The option is referenced via a variable to avoid confusing sed.
15797 lt_compile=`echo "$ac_compile" | $SED \
15798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15800 -e 's:$: $lt_compiler_flag:'`
15801 (eval echo "\"\$as_me:15801: $lt_compile\"" >&5)
15802 (eval "$lt_compile" 2>conftest.err)
15804 cat conftest.err >&5
15805 echo "$as_me:15805: \$? = $ac_status" >&5
15806 if (exit $ac_status) && test -s "$ac_outfile"; then
15807 # The compiler can only warn and ignore the option if not recognized
15808 # So say no if there are warnings other than the usual output.
15809 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15812 lt_cv_prog_compiler_rtti_exceptions=yes
15818 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15819 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15821 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15822 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15829 lt_prog_compiler_wl_GCJ=
15830 lt_prog_compiler_pic_GCJ=
15831 lt_prog_compiler_static_GCJ=
15833 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15834 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15836 if test "$GCC" = yes; then
15837 lt_prog_compiler_wl_GCJ='-Wl,'
15838 lt_prog_compiler_static_GCJ='-static'
15842 # All AIX code is PIC.
15843 if test "$host_cpu" = ia64; then
15844 # AIX 5 now supports IA64 processor
15845 lt_prog_compiler_static_GCJ='-Bstatic'
15850 # FIXME: we need at least 68020 code to build shared libraries, but
15851 # adding the `-m68020' flag to GCC prevents building anything better,
15853 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15856 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15857 # PIC is the default for these OSes.
15860 mingw* | pw32* | os2*)
15861 # This hack is so that the source file can tell whether it is being
15862 # built for inclusion in a dll (and should export symbols for example).
15863 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15866 darwin* | rhapsody*)
15867 # PIC is the default on this platform
15868 # Common symbols not allowed in MH_DYLIB files
15869 lt_prog_compiler_pic_GCJ='-fno-common'
15873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15874 # Instead, we relocate shared libraries at runtime.
15878 # Just because we use GCC doesn't mean we suddenly get shared libraries
15879 # on systems that don't support them.
15880 lt_prog_compiler_can_build_shared_GCJ=no
15885 if test -d /usr/nec; then
15886 lt_prog_compiler_pic_GCJ=-Kconform_pic
15891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15892 # not for PA HP-UX.
15898 lt_prog_compiler_pic_GCJ='-fPIC'
15904 lt_prog_compiler_pic_GCJ='-fPIC'
15908 # PORTME Check for flag to pass linker flags through the system compiler.
15911 lt_prog_compiler_wl_GCJ='-Wl,'
15912 if test "$host_cpu" = ia64; then
15913 # AIX 5 now supports IA64 processor
15914 lt_prog_compiler_static_GCJ='-Bstatic'
15916 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15920 # PIC is the default on this platform
15921 # Common symbols not allowed in MH_DYLIB files
15922 case $cc_basename in
15924 lt_prog_compiler_pic_GCJ='-qnocommon'
15925 lt_prog_compiler_wl_GCJ='-Wl,'
15930 mingw* | pw32* | os2*)
15931 # This hack is so that the source file can tell whether it is being
15932 # built for inclusion in a dll (and should export symbols for example).
15933 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15936 hpux9* | hpux10* | hpux11*)
15937 lt_prog_compiler_wl_GCJ='-Wl,'
15938 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15939 # not for PA HP-UX.
15945 lt_prog_compiler_pic_GCJ='+Z'
15948 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15949 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15952 irix5* | irix6* | nonstopux*)
15953 lt_prog_compiler_wl_GCJ='-Wl,'
15954 # PIC (with -KPIC) is the default.
15955 lt_prog_compiler_static_GCJ='-non_shared'
15959 lt_prog_compiler_pic_GCJ='-KPIC'
15960 lt_prog_compiler_static_GCJ='-Bstatic'
15964 case $cc_basename in
15966 lt_prog_compiler_wl_GCJ='-Wl,'
15967 lt_prog_compiler_pic_GCJ='-KPIC'
15968 lt_prog_compiler_static_GCJ='-static'
15970 pgcc* | pgf77* | pgf90* | pgf95*)
15971 # Portland Group compilers (*not* the Pentium gcc compiler,
15972 # which looks to be a dead project)
15973 lt_prog_compiler_wl_GCJ='-Wl,'
15974 lt_prog_compiler_pic_GCJ='-fpic'
15975 lt_prog_compiler_static_GCJ='-Bstatic'
15978 lt_prog_compiler_wl_GCJ='-Wl,'
15979 # All Alpha code is PIC.
15980 lt_prog_compiler_static_GCJ='-non_shared'
15985 osf3* | osf4* | osf5*)
15986 lt_prog_compiler_wl_GCJ='-Wl,'
15987 # All OSF/1 code is PIC.
15988 lt_prog_compiler_static_GCJ='-non_shared'
15992 lt_prog_compiler_pic_GCJ='-KPIC'
15993 lt_prog_compiler_static_GCJ='-Bstatic'
15994 case $cc_basename in
15995 f77* | f90* | f95*)
15996 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15998 lt_prog_compiler_wl_GCJ='-Wl,';;
16003 lt_prog_compiler_wl_GCJ='-Qoption ld '
16004 lt_prog_compiler_pic_GCJ='-PIC'
16005 lt_prog_compiler_static_GCJ='-Bstatic'
16008 sysv4 | sysv4.2uw2* | sysv4.3*)
16009 lt_prog_compiler_wl_GCJ='-Wl,'
16010 lt_prog_compiler_pic_GCJ='-KPIC'
16011 lt_prog_compiler_static_GCJ='-Bstatic'
16015 if test -d /usr/nec ;then
16016 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16017 lt_prog_compiler_static_GCJ='-Bstatic'
16021 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16022 lt_prog_compiler_wl_GCJ='-Wl,'
16023 lt_prog_compiler_pic_GCJ='-KPIC'
16024 lt_prog_compiler_static_GCJ='-Bstatic'
16028 lt_prog_compiler_wl_GCJ='-Wl,'
16029 lt_prog_compiler_can_build_shared_GCJ=no
16033 lt_prog_compiler_pic_GCJ='-pic'
16034 lt_prog_compiler_static_GCJ='-Bstatic'
16038 lt_prog_compiler_can_build_shared_GCJ=no
16043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16044 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16047 # Check to make sure the PIC flag actually works.
16049 if test -n "$lt_prog_compiler_pic_GCJ"; then
16051 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16052 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16053 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 lt_prog_compiler_pic_works_GCJ=no
16057 ac_outfile=conftest.$ac_objext
16058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16059 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16060 # Insert the option either (1) after the last *FLAGS variable, or
16061 # (2) before a word containing "conftest.", or (3) at the end.
16062 # Note that $ac_compile itself does not contain backslashes and begins
16063 # with a dollar sign (not a hyphen), so the echo should work correctly.
16064 # The option is referenced via a variable to avoid confusing sed.
16065 lt_compile=`echo "$ac_compile" | $SED \
16066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16068 -e 's:$: $lt_compiler_flag:'`
16069 (eval echo "\"\$as_me:16069: $lt_compile\"" >&5)
16070 (eval "$lt_compile" 2>conftest.err)
16072 cat conftest.err >&5
16073 echo "$as_me:16073: \$? = $ac_status" >&5
16074 if (exit $ac_status) && test -s "$ac_outfile"; then
16075 # The compiler can only warn and ignore the option if not recognized
16076 # So say no if there are warnings other than the usual output.
16077 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16080 lt_prog_compiler_pic_works_GCJ=yes
16086 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16087 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16089 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16090 case $lt_prog_compiler_pic_GCJ in
16092 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16095 lt_prog_compiler_pic_GCJ=
16096 lt_prog_compiler_can_build_shared_GCJ=no
16101 # For platforms which do not support PIC, -DPIC is meaningless:
16103 lt_prog_compiler_pic_GCJ=
16106 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16111 # Check to make sure the static flag actually works.
16113 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16114 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16115 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16116 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 lt_prog_compiler_static_works_GCJ=no
16120 save_LDFLAGS="$LDFLAGS"
16121 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16122 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16124 # The linker can only warn and ignore the option if not recognized
16125 # So say no if there are warnings
16126 if test -s conftest.err; then
16127 # Append any errors to the config.log.
16128 cat conftest.err 1>&5
16129 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16131 if diff conftest.exp conftest.er2 >/dev/null; then
16132 lt_prog_compiler_static_works_GCJ=yes
16135 lt_prog_compiler_static_works_GCJ=yes
16139 LDFLAGS="$save_LDFLAGS"
16142 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16143 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16145 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16148 lt_prog_compiler_static_GCJ=
16152 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16153 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16154 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 lt_cv_prog_compiler_c_o_GCJ=no
16158 $rm -r conftest 2>/dev/null
16162 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16164 lt_compiler_flag="-o out/conftest2.$ac_objext"
16165 # Insert the option either (1) after the last *FLAGS variable, or
16166 # (2) before a word containing "conftest.", or (3) at the end.
16167 # Note that $ac_compile itself does not contain backslashes and begins
16168 # with a dollar sign (not a hyphen), so the echo should work correctly.
16169 lt_compile=`echo "$ac_compile" | $SED \
16170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16172 -e 's:$: $lt_compiler_flag:'`
16173 (eval echo "\"\$as_me:16173: $lt_compile\"" >&5)
16174 (eval "$lt_compile" 2>out/conftest.err)
16176 cat out/conftest.err >&5
16177 echo "$as_me:16177: \$? = $ac_status" >&5
16178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16180 # The compiler can only warn and ignore the option if not recognized
16181 # So say no if there are warnings
16182 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16185 lt_cv_prog_compiler_c_o_GCJ=yes
16190 # SGI C++ compiler will create directory out/ii_files/ for
16191 # template instantiation
16192 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16193 $rm out/* && rmdir out
16199 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16200 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16203 hard_links="nottested"
16204 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16205 # do not overwrite the value of need_locks provided by the user
16206 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16207 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16212 ln conftest.a conftest.b 2>&5 || hard_links=no
16213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16214 echo "$as_me:$LINENO: result: $hard_links" >&5
16215 echo "${ECHO_T}$hard_links" >&6
16216 if test "$hard_links" = no; then
16217 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16218 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16225 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16226 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16229 allow_undefined_flag_GCJ=
16230 enable_shared_with_static_runtimes_GCJ=no
16232 archive_expsym_cmds_GCJ=
16233 old_archive_From_new_cmds_GCJ=
16234 old_archive_from_expsyms_cmds_GCJ=
16235 export_dynamic_flag_spec_GCJ=
16236 whole_archive_flag_spec_GCJ=
16237 thread_safe_flag_spec_GCJ=
16238 hardcode_libdir_flag_spec_GCJ=
16239 hardcode_libdir_flag_spec_ld_GCJ=
16240 hardcode_libdir_separator_GCJ=
16241 hardcode_direct_GCJ=no
16242 hardcode_minus_L_GCJ=no
16243 hardcode_shlibpath_var_GCJ=unsupported
16244 link_all_deplibs_GCJ=unknown
16245 hardcode_automatic_GCJ=no
16247 module_expsym_cmds_GCJ=
16248 always_export_symbols_GCJ=no
16249 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16250 # include_expsyms should be a list of space-separated symbols to be *always*
16251 # included in the symbol list
16252 include_expsyms_GCJ=
16253 # exclude_expsyms can be an extended regexp of symbols to exclude
16254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16256 # as well as any symbol that contains `d'.
16257 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16259 # platforms (ab)use it in PIC code, but their linkers get confused if
16260 # the symbol is explicitly referenced. Since portable code cannot
16261 # rely on this symbol name, it's probably fine to never include it in
16262 # preloaded symbol tables.
16263 extract_expsyms_cmds=
16264 # Just being paranoid about ensuring that cc_basename is set.
16265 for cc_temp in $compiler""; do
16267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16276 cygwin* | mingw* | pw32*)
16277 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16278 # When not using gcc, we currently assume that we are using
16279 # Microsoft Visual C++.
16280 if test "$GCC" != yes; then
16285 # we just hope/assume this is gcc and not c89 (= MSVC++)
16294 if test "$with_gnu_ld" = yes; then
16295 # If archive_cmds runs LD, not CC, wlarc should be empty
16298 # Set some defaults for GNU ld with shared library support. These
16299 # are reset later if shared libraries are not supported. Putting them
16300 # here allows them to be overridden if necessary.
16301 runpath_var=LD_RUN_PATH
16302 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16303 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16304 # ancient GNU ld didn't support --whole-archive et. al.
16305 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16306 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16308 whole_archive_flag_spec_GCJ=
16310 supports_anon_versioning=no
16311 case `$LD -v 2>/dev/null` in
16312 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16313 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16314 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16315 *\ 2.11.*) ;; # other 2.11 versions
16316 *) supports_anon_versioning=yes ;;
16319 # See if GNU ld supports shared libraries.
16321 aix3* | aix4* | aix5*)
16322 # On AIX/PPC, the GNU linker is very broken
16323 if test "$host_cpu" != ia64; then
16327 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16328 *** to be unable to reliably create shared libraries on AIX.
16329 *** Therefore, libtool is disabling shared libraries support. If you
16330 *** really care for shared libraries, you may want to modify your PATH
16331 *** so that a non-GNU linker is found, and then restart.
16338 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)'
16339 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16340 hardcode_minus_L_GCJ=yes
16342 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16343 # that the semantics of dynamic libraries on AmigaOS, at least up
16344 # to version 4, is to share data among multiple programs linked
16345 # with the same dynamic library. Since this doesn't match the
16346 # behavior of shared libraries on other platforms, we can't use
16352 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16353 allow_undefined_flag_GCJ=unsupported
16354 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16355 # support --undefined. This deserves some investigation. FIXME
16356 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16362 cygwin* | mingw* | pw32*)
16363 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16364 # as there is no search path for DLLs.
16365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16366 allow_undefined_flag_GCJ=unsupported
16367 always_export_symbols_GCJ=no
16368 enable_shared_with_static_runtimes_GCJ=yes
16369 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16371 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16372 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16373 # If the export-symbols file already is a .def file (1st line
16374 # is EXPORTS), use it as is; otherwise, prepend...
16375 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16376 cp $export_symbols $output_objdir/$soname.def;
16378 echo EXPORTS > $output_objdir/$soname.def;
16379 cat $export_symbols >> $output_objdir/$soname.def;
16381 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16388 hardcode_direct_GCJ=no
16389 hardcode_shlibpath_var_GCJ=no
16390 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16391 export_dynamic_flag_spec_GCJ='${wl}-E'
16392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16393 # Instead, shared libraries are loaded at an image base (0x10000000 by
16394 # default) and relocated if they conflict, which is a slow very memory
16395 # consuming and fragmenting process. To avoid this, we pick a random,
16396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16398 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16399 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16405 case $cc_basename,$host_cpu in
16406 pgcc*) # Portland Group C compiler
16407 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16408 tmp_addflag=' $pic_flag'
16410 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16411 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16412 tmp_addflag=' $pic_flag -Mnomain' ;;
16413 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16414 tmp_addflag=' -i_dynamic' ;;
16415 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16416 tmp_addflag=' -i_dynamic -nofor_main' ;;
16417 ifc* | ifort*) # Intel Fortran compiler
16418 tmp_addflag=' -nofor_main' ;;
16420 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16422 if test $supports_anon_versioning = yes; then
16423 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16425 $echo "local: *; };" >> $output_objdir/$libname.ver~
16426 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16435 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16438 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16439 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16444 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16448 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16449 *** create shared libraries on Solaris systems. Therefore, libtool
16450 *** is disabling shared libraries support. We urge you to upgrade GNU
16451 *** binutils to release 2.9.1 or newer. Another option is to modify
16452 *** your PATH or compiler configuration so that the native linker is
16453 *** used, and then restart.
16456 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16457 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16458 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16465 case `$LD -v 2>&1` in
16466 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16470 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16471 *** reliably create shared libraries on SCO systems. Therefore, libtool
16472 *** is disabling shared libraries support. We urge you to upgrade GNU
16473 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16474 *** your PATH or compiler configuration so that the native linker is
16475 *** used, and then restart.
16480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16481 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16482 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16483 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16492 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16494 hardcode_direct_GCJ=yes
16495 hardcode_shlibpath_var_GCJ=no
16499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16508 if test "$ld_shlibs_GCJ" = no; then
16510 hardcode_libdir_flag_spec_GCJ=
16511 export_dynamic_flag_spec_GCJ=
16512 whole_archive_flag_spec_GCJ=
16515 # PORTME fill in a description of your system's linker (not GNU ld)
16518 allow_undefined_flag_GCJ=unsupported
16519 always_export_symbols_GCJ=yes
16520 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'
16521 # Note: this linker hardcodes the directories in LIBPATH if there
16522 # are no directories specified by -L.
16523 hardcode_minus_L_GCJ=yes
16524 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16525 # Neither direct hardcoding nor static linking is supported with a
16527 hardcode_direct_GCJ=unsupported
16532 if test "$host_cpu" = ia64; then
16533 # On IA64, the linker does run time linking by default, so we don't
16534 # have to do anything special.
16535 aix_use_runtimelinking=no
16536 exp_sym_flag='-Bexport'
16539 # If we're using GNU nm, then we don't want the "-C" option.
16540 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16541 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16542 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'
16544 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'
16546 aix_use_runtimelinking=no
16548 # Test if we are trying to use run time linking or normal
16549 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16550 # need to do runtime linking.
16551 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16552 for ld_flag in $LDFLAGS; do
16553 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16554 aix_use_runtimelinking=yes
16561 exp_sym_flag='-bexport'
16562 no_entry_flag='-bnoentry'
16565 # When large executables or shared objects are built, AIX ld can
16566 # have problems creating the table of contents. If linking a library
16567 # or program results in "error TOC overflow" add -mminimal-toc to
16568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16571 archive_cmds_GCJ=''
16572 hardcode_direct_GCJ=yes
16573 hardcode_libdir_separator_GCJ=':'
16574 link_all_deplibs_GCJ=yes
16576 if test "$GCC" = yes; then
16577 case $host_os in aix4.[012]|aix4.[012].*)
16578 # We only want to do this on AIX 4.2 and lower, the check
16579 # below for broken collect2 doesn't work under 4.3+
16580 collect2name=`${CC} -print-prog-name=collect2`
16581 if test -f "$collect2name" && \
16582 strings "$collect2name" | grep resolve_lib_name >/dev/null
16584 # We have reworked collect2
16585 hardcode_direct_GCJ=yes
16587 # We have old collect2
16588 hardcode_direct_GCJ=unsupported
16589 # It fails to find uninstalled libraries when the uninstalled
16590 # path is not listed in the libpath. Setting hardcode_minus_L
16591 # to unsupported forces relinking
16592 hardcode_minus_L_GCJ=yes
16593 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16594 hardcode_libdir_separator_GCJ=
16598 shared_flag='-shared'
16599 if test "$aix_use_runtimelinking" = yes; then
16600 shared_flag="$shared_flag "'${wl}-G'
16604 if test "$host_cpu" = ia64; then
16605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16606 # chokes on -Wl,-G. The following line is correct:
16609 if test "$aix_use_runtimelinking" = yes; then
16610 shared_flag='${wl}-G'
16612 shared_flag='${wl}-bM:SRE'
16617 # It seems that -bexpall does not export symbols beginning with
16618 # underscore (_), so it is better to generate a list of symbols to export.
16619 always_export_symbols_GCJ=yes
16620 if test "$aix_use_runtimelinking" = yes; then
16621 # Warning - without using the other runtime loading flags (-brtl),
16622 # -berok will link without error, but may produce a broken library.
16623 allow_undefined_flag_GCJ='-berok'
16624 # Determine the default libpath from the value encoded in an empty executable.
16625 cat >conftest.$ac_ext <<_ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16640 rm -f conftest.$ac_objext conftest$ac_exeext
16641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16642 (eval $ac_link) 2>conftest.er1
16644 grep -v '^ *+' conftest.er1 >conftest.err
16646 cat conftest.err >&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -z "$ac_c_werror_flag"
16650 || test ! -s conftest.err'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest$ac_exeext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16665 # Check for a 64-bit object if we didn't find anything.
16666 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; }
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16673 rm -f conftest.err conftest.$ac_objext \
16674 conftest$ac_exeext conftest.$ac_ext
16675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16677 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16678 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16680 if test "$host_cpu" = ia64; then
16681 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16682 allow_undefined_flag_GCJ="-z nodefs"
16683 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16685 # Determine the default libpath from the value encoded in an empty executable.
16686 cat >conftest.$ac_ext <<_ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16703 (eval $ac_link) 2>conftest.er1
16705 grep -v '^ *+' conftest.er1 >conftest.err
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -z "$ac_c_werror_flag"
16711 || test ! -s conftest.err'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; } &&
16717 { ac_try='test -s conftest$ac_exeext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16726 # Check for a 64-bit object if we didn't find anything.
16727 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; }
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16734 rm -f conftest.err conftest.$ac_objext \
16735 conftest$ac_exeext conftest.$ac_ext
16736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16738 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16739 # Warning - without using the other run time loading flags,
16740 # -berok will link without error, but may produce a broken library.
16741 no_undefined_flag_GCJ=' ${wl}-bernotok'
16742 allow_undefined_flag_GCJ=' ${wl}-berok'
16743 # Exported symbols can be pulled into shared objects from archives
16744 whole_archive_flag_spec_GCJ='$convenience'
16745 archive_cmds_need_lc_GCJ=yes
16746 # This is similar to how AIX traditionally builds its shared libraries.
16747 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16753 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)'
16754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16755 hardcode_minus_L_GCJ=yes
16756 # see comment about different semantics on the GNU ld section
16761 export_dynamic_flag_spec_GCJ=-rdynamic
16764 cygwin* | mingw* | pw32*)
16765 # When not using gcc, we currently assume that we are using
16766 # Microsoft Visual C++.
16767 # hardcode_libdir_flag_spec is actually meaningless, as there is
16768 # no search path for DLLs.
16769 hardcode_libdir_flag_spec_GCJ=' '
16770 allow_undefined_flag_GCJ=unsupported
16771 # Tell ltmain to make .lib files, not .a files.
16773 # Tell ltmain to make .dll files, not .so files.
16775 # FIXME: Setting linknames here is a bad hack.
16776 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16777 # The linker will automatically build a .lib file if we build a DLL.
16778 old_archive_From_new_cmds_GCJ='true'
16779 # FIXME: Should let the user specify the lib program.
16780 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16781 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16782 enable_shared_with_static_runtimes_GCJ=yes
16785 darwin* | rhapsody*)
16787 rhapsody* | darwin1.[012])
16788 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16791 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16792 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16794 case ${MACOSX_DEPLOYMENT_TARGET} in
16796 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16799 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16805 archive_cmds_need_lc_GCJ=no
16806 hardcode_direct_GCJ=no
16807 hardcode_automatic_GCJ=yes
16808 hardcode_shlibpath_var_GCJ=unsupported
16809 whole_archive_flag_spec_GCJ=''
16810 link_all_deplibs_GCJ=yes
16811 if test "$GCC" = yes ; then
16812 output_verbose_link_cmd='echo'
16813 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16814 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16816 archive_expsym_cmds_GCJ='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}'
16817 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}'
16819 case $cc_basename in
16821 output_verbose_link_cmd='echo'
16822 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16823 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16824 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16825 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16826 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}'
16836 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16837 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16838 hardcode_shlibpath_var_GCJ=no
16845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16846 # support. Future versions do this automatically, but an explicit c++rt0.o
16847 # does not break anything, and helps significantly (at the cost of a little
16850 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16851 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16852 hardcode_direct_GCJ=yes
16853 hardcode_shlibpath_var_GCJ=no
16856 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16858 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16859 hardcode_direct_GCJ=yes
16860 hardcode_minus_L_GCJ=yes
16861 hardcode_shlibpath_var_GCJ=no
16864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16865 freebsd* | kfreebsd*-gnu | dragonfly*)
16866 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16867 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16868 hardcode_direct_GCJ=yes
16869 hardcode_shlibpath_var_GCJ=no
16873 if test "$GCC" = yes; then
16874 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'
16876 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'
16878 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16879 hardcode_libdir_separator_GCJ=:
16880 hardcode_direct_GCJ=yes
16882 # hardcode_minus_L: Not really in the search PATH,
16883 # but as the default location of the library.
16884 hardcode_minus_L_GCJ=yes
16885 export_dynamic_flag_spec_GCJ='${wl}-E'
16889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16890 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16892 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16894 if test "$with_gnu_ld" = no; then
16895 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16896 hardcode_libdir_separator_GCJ=:
16898 hardcode_direct_GCJ=yes
16899 export_dynamic_flag_spec_GCJ='${wl}-E'
16901 # hardcode_minus_L: Not really in the search PATH,
16902 # but as the default location of the library.
16903 hardcode_minus_L_GCJ=yes
16908 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16911 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16914 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16917 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16923 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16926 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16929 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16933 if test "$with_gnu_ld" = no; then
16934 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16935 hardcode_libdir_separator_GCJ=:
16939 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16940 hardcode_direct_GCJ=no
16941 hardcode_shlibpath_var_GCJ=no
16944 hardcode_direct_GCJ=yes
16945 export_dynamic_flag_spec_GCJ='${wl}-E'
16947 # hardcode_minus_L: Not really in the search PATH,
16948 # but as the default location of the library.
16949 hardcode_minus_L_GCJ=yes
16955 irix5* | irix6* | nonstopux*)
16956 if test "$GCC" = yes; then
16957 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'
16959 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'
16960 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16963 hardcode_libdir_separator_GCJ=:
16964 link_all_deplibs_GCJ=yes
16968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16971 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16973 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16974 hardcode_direct_GCJ=yes
16975 hardcode_shlibpath_var_GCJ=no
16979 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16980 hardcode_direct_GCJ=yes
16981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16982 hardcode_libdir_separator_GCJ=:
16983 hardcode_shlibpath_var_GCJ=no
16987 hardcode_direct_GCJ=yes
16988 hardcode_shlibpath_var_GCJ=no
16989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16990 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16991 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16993 export_dynamic_flag_spec_GCJ='${wl}-E'
16996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17001 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17002 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17009 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17010 hardcode_minus_L_GCJ=yes
17011 allow_undefined_flag_GCJ=unsupported
17012 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'
17013 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17017 if test "$GCC" = yes; then
17018 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17019 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'
17021 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17022 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'
17024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17025 hardcode_libdir_separator_GCJ=:
17028 osf4* | osf5*) # as osf3* with the addition of -msym flag
17029 if test "$GCC" = yes; then
17030 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17031 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'
17032 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17034 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17035 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'
17036 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~
17037 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17039 # Both c and cxx compiler support -rpath directly
17040 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17042 hardcode_libdir_separator_GCJ=:
17046 no_undefined_flag_GCJ=' -z text'
17047 if test "$GCC" = yes; then
17049 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17050 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17051 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17054 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17055 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17058 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17059 hardcode_shlibpath_var_GCJ=no
17061 solaris2.[0-5] | solaris2.[0-5].*) ;;
17063 # The compiler driver will combine linker options so we
17064 # cannot just pass the convience library names through
17065 # without $wl, iff we do not link with $LD.
17066 # Luckily, gcc supports the same syntax we need for Sun Studio.
17067 # Supported since Solaris 2.6 (maybe 2.5.1?)
17070 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17072 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17075 link_all_deplibs_GCJ=yes
17079 if test "x$host_vendor" = xsequent; then
17080 # Use $CC to link under sequent, because it throws in some extra .o
17081 # files that make .init and .fini sections work.
17082 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17084 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17086 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17087 hardcode_direct_GCJ=yes
17088 hardcode_minus_L_GCJ=yes
17089 hardcode_shlibpath_var_GCJ=no
17093 case $host_vendor in
17095 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17096 hardcode_direct_GCJ=yes # is this really true???
17099 ## LD is ld it makes a PLAMLIB
17100 ## CC just makes a GrossModule.
17101 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17102 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17103 hardcode_direct_GCJ=no
17106 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17107 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17110 runpath_var='LD_RUN_PATH'
17111 hardcode_shlibpath_var_GCJ=no
17115 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17116 hardcode_shlibpath_var_GCJ=no
17117 export_dynamic_flag_spec_GCJ='-Bexport'
17121 if test -d /usr/nec; then
17122 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17123 hardcode_shlibpath_var_GCJ=no
17124 runpath_var=LD_RUN_PATH
17125 hardcode_runpath_var=yes
17130 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17131 no_undefined_flag_GCJ='${wl}-z,text'
17132 archive_cmds_need_lc_GCJ=no
17133 hardcode_shlibpath_var_GCJ=no
17134 runpath_var='LD_RUN_PATH'
17136 if test "$GCC" = yes; then
17137 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17138 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17140 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17141 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17145 sysv5* | sco3.2v5* | sco5v6*)
17146 # Note: We can NOT use -z defs as we might desire, because we do not
17147 # link with -lc, and that would cause any symbols used from libc to
17148 # always be unresolved, which means just about no library would
17149 # ever link correctly. If we're not using GNU ld we use -z text
17150 # though, which does catch some bad symbols but isn't as heavy-handed
17152 no_undefined_flag_GCJ='${wl}-z,text'
17153 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17154 archive_cmds_need_lc_GCJ=no
17155 hardcode_shlibpath_var_GCJ=no
17156 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17157 hardcode_libdir_separator_GCJ=':'
17158 link_all_deplibs_GCJ=yes
17159 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17160 runpath_var='LD_RUN_PATH'
17162 if test "$GCC" = yes; then
17163 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17166 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17167 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17172 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17174 hardcode_shlibpath_var_GCJ=no
17183 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17184 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17185 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17188 # Do we need to explicitly link libc?
17190 case "x$archive_cmds_need_lc_GCJ" in
17192 # Assume -lc should be added
17193 archive_cmds_need_lc_GCJ=yes
17195 if test "$enable_shared" = yes && test "$GCC" = yes; then
17196 case $archive_cmds_GCJ in
17198 # FIXME: we may have to deal with multi-command sequences.
17201 # Test whether the compiler implicitly links with -lc since on some
17202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17203 # to ld, don't add -lc before -lgcc.
17204 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17205 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17210 (eval $ac_compile) 2>&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } 2>conftest.err; then
17216 libobjs=conftest.$ac_objext
17218 wl=$lt_prog_compiler_wl_GCJ
17219 pic_flag=$lt_prog_compiler_pic_GCJ
17225 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17226 allow_undefined_flag_GCJ=
17227 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17228 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }
17233 archive_cmds_need_lc_GCJ=no
17235 archive_cmds_need_lc_GCJ=yes
17237 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17239 cat conftest.err 1>&5
17242 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17243 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17250 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17251 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17252 library_names_spec=
17253 libname_spec='lib$name'
17257 postuninstall_cmds=
17261 shlibpath_overrides_runpath=unknown
17263 dynamic_linker="$host_os ld.so"
17264 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17265 if test "$GCC" = yes; then
17266 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17267 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17268 # if the path contains ";" then we assume it to be the separator
17269 # otherwise default to the standard path separator (i.e. ":") - it is
17270 # assumed that no part of a normal pathname contains ";" but that should
17271 # okay in the real world where ";" in dirpaths is itself problematic.
17272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17279 need_lib_prefix=unknown
17280 hardcode_into_libs=no
17282 # when you set need_version to no, make sure it does not cause -set_version
17283 # flags to be left without arguments
17284 need_version=unknown
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17290 shlibpath_var=LIBPATH
17292 # AIX 3 has no versioning support, so we append a major version to the name.
17293 soname_spec='${libname}${release}${shared_ext}$major'
17300 hardcode_into_libs=yes
17301 if test "$host_cpu" = ia64; then
17302 # AIX 5 supports IA64
17303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17304 shlibpath_var=LD_LIBRARY_PATH
17306 # With GCC up to 2.95.x, collect2 would create an import file
17307 # for dependence libraries. The import file would start with
17308 # the line `#! .'. This would cause the generated library to
17309 # depend on `.', always an invalid library. This was fixed in
17310 # development snapshots of GCC prior to 3.0.
17312 aix4 | aix4.[01] | aix4.[01].*)
17313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17315 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17318 can_build_shared=no
17322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17323 # soname into executable. Probably we can add versioning support to
17324 # collect2, so additional links can be useful in future.
17325 if test "$aix_use_runtimelinking" = yes; then
17326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17327 # instead of lib<name>.a to let people know that these are not
17328 # typical AIX shared libraries.
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331 # We preserve .a as extension for shared libraries through AIX4.2
17332 # and later when we are not doing run time linking.
17333 library_names_spec='${libname}${release}.a $libname.a'
17334 soname_spec='${libname}${release}${shared_ext}$major'
17336 shlibpath_var=LIBPATH
17341 library_names_spec='$libname.ixlibrary $libname.a'
17342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17343 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'
17347 library_names_spec='${libname}${shared_ext}'
17348 dynamic_linker="$host_os ld.so"
17349 shlibpath_var=LIBRARY_PATH
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356 soname_spec='${libname}${release}${shared_ext}$major'
17357 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17358 shlibpath_var=LD_LIBRARY_PATH
17359 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17360 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17361 # the default ld.so.conf also contains /usr/contrib/lib and
17362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17363 # libtool to hard-code these into programs
17366 cygwin* | mingw* | pw32*)
17367 version_type=windows
17372 case $GCC,$host_os in
17373 yes,cygwin* | yes,mingw* | yes,pw32*)
17374 library_names_spec='$libname.dll.a'
17375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17376 postinstall_cmds='base_file=`basename \${file}`~
17377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17378 dldir=$destdir/`dirname \$dlpath`~
17379 test -d \$dldir || mkdir -p \$dldir~
17380 $install_prog $dir/$dlname \$dldir/$dlname~
17381 chmod a+x \$dldir/$dlname'
17382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17383 dlpath=$dir/\$dldll~
17385 shlibpath_overrides_runpath=yes
17389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17390 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17391 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17394 # MinGW DLLs use traditional 'lib' prefix
17395 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17396 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17397 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17398 # It is most probably a Windows format PATH printed by
17399 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17400 # path with ; separators, and with drive letters. We can handle the
17401 # drive letters (cygwin fileutils understands them), so leave them,
17402 # especially as we might pass files found there to a mingw objdump,
17403 # which wouldn't understand a cygwinified path. Ahh.
17404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17410 # pw32 DLLs use 'pw' prefix rather than 'lib'
17411 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17417 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17420 dynamic_linker='Win32 ld.exe'
17421 # FIXME: first we should search . and the directory the executable is in
17425 darwin* | rhapsody*)
17426 dynamic_linker="$host_os dyld"
17427 version_type=darwin
17430 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17431 soname_spec='${libname}${release}${major}$shared_ext'
17432 shlibpath_overrides_runpath=yes
17433 shlibpath_var=DYLD_LIBRARY_PATH
17434 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17435 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17436 if test "$GCC" = yes; then
17437 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"`
17439 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17449 soname_spec='${libname}${release}${shared_ext}$major'
17450 shlibpath_var=LD_LIBRARY_PATH
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17462 soname_spec='${libname}${release}${shared_ext}$major'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 shlibpath_overrides_runpath=no
17465 hardcode_into_libs=yes
17466 dynamic_linker='GNU ld.so'
17469 freebsd* | dragonfly*)
17470 # DragonFly does not have aout. When/if they implement a new
17471 # versioning mechanism, adjust this.
17472 if test -x /usr/bin/objformat; then
17473 objformat=`/usr/bin/objformat`
17476 freebsd[123]*) objformat=aout ;;
17477 *) objformat=elf ;;
17480 version_type=freebsd-$objformat
17481 case $version_type in
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17492 shlibpath_var=LD_LIBRARY_PATH
17495 shlibpath_overrides_runpath=yes
17497 freebsd3.[01]* | freebsdelf3.[01]*)
17498 shlibpath_overrides_runpath=yes
17499 hardcode_into_libs=yes
17501 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17502 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17503 shlibpath_overrides_runpath=no
17504 hardcode_into_libs=yes
17506 freebsd*) # from 4.6 on
17507 shlibpath_overrides_runpath=yes
17508 hardcode_into_libs=yes
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17518 soname_spec='${libname}${release}${shared_ext}$major'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 hardcode_into_libs=yes
17523 hpux9* | hpux10* | hpux11*)
17524 # Give a soname corresponding to the major version so that dld.sl refuses to
17525 # link against other versions.
17532 hardcode_into_libs=yes
17533 dynamic_linker="$host_os dld.so"
17534 shlibpath_var=LD_LIBRARY_PATH
17535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17537 soname_spec='${libname}${release}${shared_ext}$major'
17538 if test "X$HPUX_IA64_MODE" = X32; then
17539 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17547 hardcode_into_libs=yes
17548 dynamic_linker="$host_os dld.sl"
17549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 soname_spec='${libname}${release}${shared_ext}$major'
17553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17558 dynamic_linker="$host_os dld.sl"
17559 shlibpath_var=SHLIB_PATH
17560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17565 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17566 postinstall_cmds='chmod 555 $lib'
17573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17574 soname_spec='${libname}${release}${shared_ext}$major'
17575 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17576 shlibpath_var=LD_LIBRARY_PATH
17577 shlibpath_overrides_runpath=no
17578 hardcode_into_libs=yes
17581 irix5* | irix6* | nonstopux*)
17583 nonstopux*) version_type=nonstopux ;;
17585 if test "$lt_cv_prog_gnu_ld" = yes; then
17593 soname_spec='${libname}${release}${shared_ext}$major'
17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17596 irix5* | nonstopux*)
17597 libsuff= shlibsuff=
17600 case $LD in # libtool.m4 will add one of these switches to LD
17601 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17602 libsuff= shlibsuff= libmagic=32-bit;;
17603 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17604 libsuff=32 shlibsuff=N32 libmagic=N32;;
17605 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17606 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17607 *) libsuff= shlibsuff= libmagic=never-match;;
17611 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17612 shlibpath_overrides_runpath=no
17613 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17614 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17615 hardcode_into_libs=yes
17618 # No shared lib support for Linux oldld, aout, or coff.
17619 linux*oldld* | linux*aout* | linux*coff*)
17623 # This must be Linux ELF.
17628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629 soname_spec='${libname}${release}${shared_ext}$major'
17630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17631 shlibpath_var=LD_LIBRARY_PATH
17632 shlibpath_overrides_runpath=no
17633 # This implies no fast_install, which is unacceptable.
17634 # Some rework will be needed to allow for fast_install
17635 # before this can be enabled.
17636 hardcode_into_libs=yes
17638 # Append ld.so.conf contents to the search path
17639 if test -f /etc/ld.so.conf; then
17640 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17644 # We used to test for /lib/ld.so.1 and disable shared libraries on
17645 # powerpc, because MkLinux only supported shared libraries with the
17646 # GNU dynamic linker. Since this was broken with cross compilers,
17647 # most powerpc-linux boxes support dynamic linking these days and
17648 # people can always --disable-shared, the test was removed, and we
17649 # assume the GNU/Linux dynamic linker is in use.
17650 dynamic_linker='GNU/Linux ld.so'
17657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17658 soname_spec='${libname}${release}${shared_ext}$major'
17659 shlibpath_var=LD_LIBRARY_PATH
17660 shlibpath_overrides_runpath=no
17661 hardcode_into_libs=yes
17662 dynamic_linker='GNU ld.so'
17669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17672 dynamic_linker='NetBSD (a.out) ld.so'
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 dynamic_linker='NetBSD ld.elf_so'
17678 shlibpath_var=LD_LIBRARY_PATH
17679 shlibpath_overrides_runpath=yes
17680 hardcode_into_libs=yes
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686 shlibpath_var=LD_LIBRARY_PATH
17687 shlibpath_overrides_runpath=yes
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17695 soname_spec='${libname}${release}${shared_ext}$major'
17696 shlibpath_var=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath=yes
17702 sys_lib_dlsearch_path_spec="/usr/lib"
17704 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17706 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17707 *) need_version=no ;;
17709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17711 shlibpath_var=LD_LIBRARY_PATH
17712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17714 openbsd2.[89] | openbsd2.[89].*)
17715 shlibpath_overrides_runpath=no
17718 shlibpath_overrides_runpath=yes
17722 shlibpath_overrides_runpath=yes
17727 libname_spec='$name'
17730 library_names_spec='$libname${shared_ext} $libname.a'
17731 dynamic_linker='OS/2 ld.exe'
17732 shlibpath_var=LIBPATH
17735 osf3* | osf4* | osf5*)
17739 soname_spec='${libname}${release}${shared_ext}$major'
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17743 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17751 soname_spec='${libname}${release}${shared_ext}$major'
17752 shlibpath_var=LD_LIBRARY_PATH
17753 shlibpath_overrides_runpath=yes
17754 hardcode_into_libs=yes
17755 # ldd complains unless libraries are executable
17756 postinstall_cmds='chmod +x $lib'
17761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17763 shlibpath_var=LD_LIBRARY_PATH
17764 shlibpath_overrides_runpath=yes
17765 if test "$with_gnu_ld" = yes; then
17773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17774 soname_spec='${libname}${release}${shared_ext}$major'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 case $host_vendor in
17778 shlibpath_overrides_runpath=no
17780 export_dynamic_flag_spec='${wl}-Blargedynsym'
17781 runpath_var=LD_RUN_PATH
17789 shlibpath_overrides_runpath=no
17790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17796 if test -d /usr/nec ;then
17798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17799 soname_spec='$libname${shared_ext}.$major'
17800 shlibpath_var=LD_LIBRARY_PATH
17804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17805 version_type=freebsd-elf
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17809 soname_spec='${libname}${release}${shared_ext}$major'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 hardcode_into_libs=yes
17812 if test "$with_gnu_ld" = yes; then
17813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17814 shlibpath_overrides_runpath=no
17816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17817 shlibpath_overrides_runpath=yes
17820 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17824 sys_lib_dlsearch_path_spec='/usr/lib'
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830 soname_spec='${libname}${release}${shared_ext}$major'
17831 shlibpath_var=LD_LIBRARY_PATH
17838 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17839 echo "${ECHO_T}$dynamic_linker" >&6
17840 test "$dynamic_linker" = no && can_build_shared=no
17842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17843 if test "$GCC" = yes; then
17844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17847 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17849 hardcode_action_GCJ=
17850 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17851 test -n "$runpath_var_GCJ" || \
17852 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17854 # We can hardcode non-existant directories.
17855 if test "$hardcode_direct_GCJ" != no &&
17856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17857 # have to relink, otherwise we might link with an installed library
17858 # when we should be linking with a yet-to-be-installed one
17859 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17860 test "$hardcode_minus_L_GCJ" != no; then
17861 # Linking always hardcodes the temporary library directory.
17862 hardcode_action_GCJ=relink
17864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17865 hardcode_action_GCJ=immediate
17868 # We cannot hardcode anything, or else we can only hardcode existing
17870 hardcode_action_GCJ=unsupported
17872 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17873 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17875 if test "$hardcode_action_GCJ" = relink; then
17876 # Fast installation is not supported
17877 enable_fast_install=no
17878 elif test "$shlibpath_overrides_runpath" = yes ||
17879 test "$enable_shared" = no; then
17880 # Fast installation is not necessary
17881 enable_fast_install=needless
17885 # The else clause should only fire when bootstrapping the
17886 # libtool distribution, otherwise you forgot to ship ltmain.sh
17887 # with your package, and you will get complaints that there are
17888 # no rules to generate ltmain.sh.
17889 if test -f "$ltmain"; then
17890 # See if we are running on zsh, and set the options which allow our commands through
17891 # without removal of \ escapes.
17892 if test -n "${ZSH_VERSION+set}" ; then
17893 setopt NO_GLOB_SUBST
17895 # Now quote all the things that may contain metacharacters while being
17896 # careful not to overquote the AC_SUBSTed values. We take copies of the
17897 # variables and quote the copies for generation of the libtool script.
17898 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17900 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17901 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17902 deplibs_check_method reload_flag reload_cmds need_locks \
17903 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17904 lt_cv_sys_global_symbol_to_c_name_address \
17905 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17906 old_postinstall_cmds old_postuninstall_cmds \
17910 lt_prog_compiler_wl_GCJ \
17911 lt_prog_compiler_pic_GCJ \
17912 lt_prog_compiler_static_GCJ \
17913 lt_prog_compiler_no_builtin_flag_GCJ \
17914 export_dynamic_flag_spec_GCJ \
17915 thread_safe_flag_spec_GCJ \
17916 whole_archive_flag_spec_GCJ \
17917 enable_shared_with_static_runtimes_GCJ \
17918 old_archive_cmds_GCJ \
17919 old_archive_from_new_cmds_GCJ \
17920 predep_objects_GCJ \
17921 postdep_objects_GCJ \
17924 compiler_lib_search_path_GCJ \
17926 archive_expsym_cmds_GCJ \
17927 postinstall_cmds_GCJ \
17928 postuninstall_cmds_GCJ \
17929 old_archive_from_expsyms_cmds_GCJ \
17930 allow_undefined_flag_GCJ \
17931 no_undefined_flag_GCJ \
17932 export_symbols_cmds_GCJ \
17933 hardcode_libdir_flag_spec_GCJ \
17934 hardcode_libdir_flag_spec_ld_GCJ \
17935 hardcode_libdir_separator_GCJ \
17936 hardcode_automatic_GCJ \
17938 module_expsym_cmds_GCJ \
17939 lt_cv_prog_compiler_c_o_GCJ \
17940 exclude_expsyms_GCJ \
17941 include_expsyms_GCJ; do
17944 old_archive_cmds_GCJ | \
17945 old_archive_from_new_cmds_GCJ | \
17946 archive_cmds_GCJ | \
17947 archive_expsym_cmds_GCJ | \
17948 module_cmds_GCJ | \
17949 module_expsym_cmds_GCJ | \
17950 old_archive_from_expsyms_cmds_GCJ | \
17951 export_symbols_cmds_GCJ | \
17952 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17953 postinstall_cmds | postuninstall_cmds | \
17954 old_postinstall_cmds | old_postuninstall_cmds | \
17955 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17956 # Double-quote double-evaled strings.
17957 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17960 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17966 *'\$0 --fallback-echo"')
17967 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17973 cat <<__EOF__ >> "$cfgfile"
17974 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17976 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17978 # Shell to use when invoking shell scripts.
17981 # Whether or not to build shared libraries.
17982 build_libtool_libs=$enable_shared
17984 # Whether or not to build static libraries.
17985 build_old_libs=$enable_static
17987 # Whether or not to add -lc for building shared libraries.
17988 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17990 # Whether or not to disallow shared libs when runtime libs are static
17991 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17993 # Whether or not to optimize for fast installation.
17994 fast_install=$enable_fast_install
17997 host_alias=$host_alias
18001 # The build system.
18002 build_alias=$build_alias
18006 # An echo program that does not interpret backslashes.
18011 AR_FLAGS=$lt_AR_FLAGS
18016 # LTCC compiler flags.
18017 LTCFLAGS=$lt_LTCFLAGS
18019 # A language-specific compiler.
18020 CC=$lt_compiler_GCJ
18022 # Is the compiler the GNU C compiler?
18028 # The linker used to build libraries.
18031 # Whether we need hard or soft links.
18034 # A BSD-compatible nm program.
18037 # A symbol stripping program
18040 # Used to examine libraries when file_magic_cmd begins "file"
18041 MAGIC_CMD=$MAGIC_CMD
18043 # Used on cygwin: DLL creation program.
18046 # Used on cygwin: object dumper.
18049 # Used on cygwin: assembler.
18052 # The name of the directory that contains temporary libtool files.
18055 # How to create reloadable object files.
18056 reload_flag=$lt_reload_flag
18057 reload_cmds=$lt_reload_cmds
18059 # How to pass a linker flag through the compiler.
18060 wl=$lt_lt_prog_compiler_wl_GCJ
18062 # Object file suffix (normally "o").
18063 objext="$ac_objext"
18065 # Old archive suffix (normally "a").
18068 # Shared library suffix (normally ".so").
18069 shrext_cmds='$shrext_cmds'
18071 # Executable file suffix (normally "").
18074 # Additional compiler flags for building library objects.
18075 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18078 # What is the maximum length of a command?
18079 max_cmd_len=$lt_cv_sys_max_cmd_len
18081 # Does compiler simultaneously support -c and -o options?
18082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18084 # Must we lock files when doing compilation?
18085 need_locks=$lt_need_locks
18087 # Do we need the lib prefix for modules?
18088 need_lib_prefix=$need_lib_prefix
18090 # Do we need a version for libraries?
18091 need_version=$need_version
18093 # Whether dlopen is supported.
18094 dlopen_support=$enable_dlopen
18096 # Whether dlopen of programs is supported.
18097 dlopen_self=$enable_dlopen_self
18099 # Whether dlopen of statically linked programs is supported.
18100 dlopen_self_static=$enable_dlopen_self_static
18102 # Compiler flag to prevent dynamic linking.
18103 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18105 # Compiler flag to turn off builtin functions.
18106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18108 # Compiler flag to allow reflexive dlopens.
18109 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18111 # Compiler flag to generate shared objects directly from archives.
18112 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18114 # Compiler flag to generate thread-safe objects.
18115 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18117 # Library versioning type.
18118 version_type=$version_type
18120 # Format of library name prefix.
18121 libname_spec=$lt_libname_spec
18123 # List of archive names. First name is the real one, the rest are links.
18124 # The last name is the one that the linker finds with -lNAME.
18125 library_names_spec=$lt_library_names_spec
18127 # The coded name of the library, if different from the real name.
18128 soname_spec=$lt_soname_spec
18130 # Commands used to build and install an old-style archive.
18132 old_archive_cmds=$lt_old_archive_cmds_GCJ
18133 old_postinstall_cmds=$lt_old_postinstall_cmds
18134 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18136 # Create an old-style archive from a shared archive.
18137 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18139 # Create a temporary old-style archive to link instead of a shared archive.
18140 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18142 # Commands used to build and install a shared archive.
18143 archive_cmds=$lt_archive_cmds_GCJ
18144 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18145 postinstall_cmds=$lt_postinstall_cmds
18146 postuninstall_cmds=$lt_postuninstall_cmds
18148 # Commands used to build a loadable module (assumed same as above if empty)
18149 module_cmds=$lt_module_cmds_GCJ
18150 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18152 # Commands to strip libraries.
18153 old_striplib=$lt_old_striplib
18154 striplib=$lt_striplib
18156 # Dependencies to place before the objects being linked to create a
18158 predep_objects=$lt_predep_objects_GCJ
18160 # Dependencies to place after the objects being linked to create a
18162 postdep_objects=$lt_postdep_objects_GCJ
18164 # Dependencies to place before the objects being linked to create a
18166 predeps=$lt_predeps_GCJ
18168 # Dependencies to place after the objects being linked to create a
18170 postdeps=$lt_postdeps_GCJ
18172 # The library search path used internally by the compiler when linking
18173 # a shared library.
18174 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18176 # Method to check whether dependent libraries are shared objects.
18177 deplibs_check_method=$lt_deplibs_check_method
18179 # Command to use when deplibs_check_method == file_magic.
18180 file_magic_cmd=$lt_file_magic_cmd
18182 # Flag that allows shared libraries with undefined symbols to be built.
18183 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18185 # Flag that forces no undefined symbols.
18186 no_undefined_flag=$lt_no_undefined_flag_GCJ
18188 # Commands used to finish a libtool library installation in a directory.
18189 finish_cmds=$lt_finish_cmds
18191 # Same as above, but a single script fragment to be evaled but not shown.
18192 finish_eval=$lt_finish_eval
18194 # Take the output of nm and produce a listing of raw symbols and C names.
18195 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18197 # Transform the output of nm in a proper C declaration
18198 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18200 # Transform the output of nm in a C name address pair
18201 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18203 # This is the shared library runtime path variable.
18204 runpath_var=$runpath_var
18206 # This is the shared library path variable.
18207 shlibpath_var=$shlibpath_var
18209 # Is shlibpath searched before the hard-coded library search path?
18210 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18212 # How to hardcode a shared library path into an executable.
18213 hardcode_action=$hardcode_action_GCJ
18215 # Whether we should hardcode library paths into libraries.
18216 hardcode_into_libs=$hardcode_into_libs
18218 # Flag to hardcode \$libdir into a binary during linking.
18219 # This must work even if \$libdir does not exist.
18220 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18222 # If ld is used when linking, flag to hardcode \$libdir into
18223 # a binary during linking. This must work even if \$libdir does
18225 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18227 # Whether we need a single -rpath flag with a separated argument.
18228 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18230 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18231 # resulting binary.
18232 hardcode_direct=$hardcode_direct_GCJ
18234 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18235 # resulting binary.
18236 hardcode_minus_L=$hardcode_minus_L_GCJ
18238 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18239 # the resulting binary.
18240 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18242 # Set to yes if building a shared library automatically hardcodes DIR into the library
18243 # and all subsequent libraries and executables linked against it.
18244 hardcode_automatic=$hardcode_automatic_GCJ
18246 # Variables whose values should be saved in libtool wrapper scripts and
18247 # restored at relink time.
18248 variables_saved_for_relink="$variables_saved_for_relink"
18250 # Whether libtool must link a program against all its dependency libraries.
18251 link_all_deplibs=$link_all_deplibs_GCJ
18253 # Compile-time system search path for libraries
18254 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18256 # Run-time system search path for libraries
18257 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18259 # Fix the shell variable \$srcfile for the compiler.
18260 fix_srcfile_path="$fix_srcfile_path_GCJ"
18262 # Set to yes if exported symbols are required.
18263 always_export_symbols=$always_export_symbols_GCJ
18265 # The commands to list exported symbols.
18266 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18268 # The commands to extract the exported symbol list from a shared archive.
18269 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18271 # Symbols that should not be listed in the preloaded symbols.
18272 exclude_expsyms=$lt_exclude_expsyms_GCJ
18274 # Symbols that must always be exported.
18275 include_expsyms=$lt_include_expsyms_GCJ
18277 # ### END LIBTOOL TAG CONFIG: $tagname
18283 # If there is no Makefile yet, we rely on a make rule to execute
18284 # `config.status --recheck' to rerun these tests and create the
18285 # libtool script then.
18286 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18287 if test -f "$ltmain_in"; then
18288 test -f Makefile && make "$ltmain"
18294 ac_cpp='$CPP $CPPFLAGS'
18295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18310 # Source file extension for RC test sources.
18313 # Object file extension for compiled RC test sources.
18317 # Code to be used in simple compile tests
18318 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18320 # Code to be used in simple link tests
18321 lt_simple_link_test_code="$lt_simple_compile_test_code"
18323 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18325 # If no C compiler was specified, use CC.
18328 # If no C compiler flags were specified, use CFLAGS.
18329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18331 # Allow CC to be a program name with arguments.
18335 # save warnings/boilerplate of simple test code
18336 ac_outfile=conftest.$ac_objext
18337 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18339 _lt_compiler_boilerplate=`cat conftest.err`
18342 ac_outfile=conftest.$ac_objext
18343 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18345 _lt_linker_boilerplate=`cat conftest.err`
18349 # Allow CC to be a program name with arguments.
18354 for cc_temp in $compiler""; do
18356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18362 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18364 lt_cv_prog_compiler_c_o_RC=yes
18366 # The else clause should only fire when bootstrapping the
18367 # libtool distribution, otherwise you forgot to ship ltmain.sh
18368 # with your package, and you will get complaints that there are
18369 # no rules to generate ltmain.sh.
18370 if test -f "$ltmain"; then
18371 # See if we are running on zsh, and set the options which allow our commands through
18372 # without removal of \ escapes.
18373 if test -n "${ZSH_VERSION+set}" ; then
18374 setopt NO_GLOB_SUBST
18376 # Now quote all the things that may contain metacharacters while being
18377 # careful not to overquote the AC_SUBSTed values. We take copies of the
18378 # variables and quote the copies for generation of the libtool script.
18379 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18381 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18382 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18383 deplibs_check_method reload_flag reload_cmds need_locks \
18384 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18385 lt_cv_sys_global_symbol_to_c_name_address \
18386 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18387 old_postinstall_cmds old_postuninstall_cmds \
18391 lt_prog_compiler_wl_RC \
18392 lt_prog_compiler_pic_RC \
18393 lt_prog_compiler_static_RC \
18394 lt_prog_compiler_no_builtin_flag_RC \
18395 export_dynamic_flag_spec_RC \
18396 thread_safe_flag_spec_RC \
18397 whole_archive_flag_spec_RC \
18398 enable_shared_with_static_runtimes_RC \
18399 old_archive_cmds_RC \
18400 old_archive_from_new_cmds_RC \
18401 predep_objects_RC \
18402 postdep_objects_RC \
18405 compiler_lib_search_path_RC \
18407 archive_expsym_cmds_RC \
18408 postinstall_cmds_RC \
18409 postuninstall_cmds_RC \
18410 old_archive_from_expsyms_cmds_RC \
18411 allow_undefined_flag_RC \
18412 no_undefined_flag_RC \
18413 export_symbols_cmds_RC \
18414 hardcode_libdir_flag_spec_RC \
18415 hardcode_libdir_flag_spec_ld_RC \
18416 hardcode_libdir_separator_RC \
18417 hardcode_automatic_RC \
18419 module_expsym_cmds_RC \
18420 lt_cv_prog_compiler_c_o_RC \
18421 exclude_expsyms_RC \
18422 include_expsyms_RC; do
18425 old_archive_cmds_RC | \
18426 old_archive_from_new_cmds_RC | \
18427 archive_cmds_RC | \
18428 archive_expsym_cmds_RC | \
18430 module_expsym_cmds_RC | \
18431 old_archive_from_expsyms_cmds_RC | \
18432 export_symbols_cmds_RC | \
18433 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18434 postinstall_cmds | postuninstall_cmds | \
18435 old_postinstall_cmds | old_postuninstall_cmds | \
18436 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18437 # Double-quote double-evaled strings.
18438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18441 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18447 *'\$0 --fallback-echo"')
18448 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18454 cat <<__EOF__ >> "$cfgfile"
18455 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18457 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18459 # Shell to use when invoking shell scripts.
18462 # Whether or not to build shared libraries.
18463 build_libtool_libs=$enable_shared
18465 # Whether or not to build static libraries.
18466 build_old_libs=$enable_static
18468 # Whether or not to add -lc for building shared libraries.
18469 build_libtool_need_lc=$archive_cmds_need_lc_RC
18471 # Whether or not to disallow shared libs when runtime libs are static
18472 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18474 # Whether or not to optimize for fast installation.
18475 fast_install=$enable_fast_install
18478 host_alias=$host_alias
18482 # The build system.
18483 build_alias=$build_alias
18487 # An echo program that does not interpret backslashes.
18492 AR_FLAGS=$lt_AR_FLAGS
18497 # LTCC compiler flags.
18498 LTCFLAGS=$lt_LTCFLAGS
18500 # A language-specific compiler.
18503 # Is the compiler the GNU C compiler?
18509 # The linker used to build libraries.
18512 # Whether we need hard or soft links.
18515 # A BSD-compatible nm program.
18518 # A symbol stripping program
18521 # Used to examine libraries when file_magic_cmd begins "file"
18522 MAGIC_CMD=$MAGIC_CMD
18524 # Used on cygwin: DLL creation program.
18527 # Used on cygwin: object dumper.
18530 # Used on cygwin: assembler.
18533 # The name of the directory that contains temporary libtool files.
18536 # How to create reloadable object files.
18537 reload_flag=$lt_reload_flag
18538 reload_cmds=$lt_reload_cmds
18540 # How to pass a linker flag through the compiler.
18541 wl=$lt_lt_prog_compiler_wl_RC
18543 # Object file suffix (normally "o").
18544 objext="$ac_objext"
18546 # Old archive suffix (normally "a").
18549 # Shared library suffix (normally ".so").
18550 shrext_cmds='$shrext_cmds'
18552 # Executable file suffix (normally "").
18555 # Additional compiler flags for building library objects.
18556 pic_flag=$lt_lt_prog_compiler_pic_RC
18559 # What is the maximum length of a command?
18560 max_cmd_len=$lt_cv_sys_max_cmd_len
18562 # Does compiler simultaneously support -c and -o options?
18563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18565 # Must we lock files when doing compilation?
18566 need_locks=$lt_need_locks
18568 # Do we need the lib prefix for modules?
18569 need_lib_prefix=$need_lib_prefix
18571 # Do we need a version for libraries?
18572 need_version=$need_version
18574 # Whether dlopen is supported.
18575 dlopen_support=$enable_dlopen
18577 # Whether dlopen of programs is supported.
18578 dlopen_self=$enable_dlopen_self
18580 # Whether dlopen of statically linked programs is supported.
18581 dlopen_self_static=$enable_dlopen_self_static
18583 # Compiler flag to prevent dynamic linking.
18584 link_static_flag=$lt_lt_prog_compiler_static_RC
18586 # Compiler flag to turn off builtin functions.
18587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18589 # Compiler flag to allow reflexive dlopens.
18590 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18592 # Compiler flag to generate shared objects directly from archives.
18593 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18595 # Compiler flag to generate thread-safe objects.
18596 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18598 # Library versioning type.
18599 version_type=$version_type
18601 # Format of library name prefix.
18602 libname_spec=$lt_libname_spec
18604 # List of archive names. First name is the real one, the rest are links.
18605 # The last name is the one that the linker finds with -lNAME.
18606 library_names_spec=$lt_library_names_spec
18608 # The coded name of the library, if different from the real name.
18609 soname_spec=$lt_soname_spec
18611 # Commands used to build and install an old-style archive.
18613 old_archive_cmds=$lt_old_archive_cmds_RC
18614 old_postinstall_cmds=$lt_old_postinstall_cmds
18615 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18617 # Create an old-style archive from a shared archive.
18618 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18620 # Create a temporary old-style archive to link instead of a shared archive.
18621 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18623 # Commands used to build and install a shared archive.
18624 archive_cmds=$lt_archive_cmds_RC
18625 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18626 postinstall_cmds=$lt_postinstall_cmds
18627 postuninstall_cmds=$lt_postuninstall_cmds
18629 # Commands used to build a loadable module (assumed same as above if empty)
18630 module_cmds=$lt_module_cmds_RC
18631 module_expsym_cmds=$lt_module_expsym_cmds_RC
18633 # Commands to strip libraries.
18634 old_striplib=$lt_old_striplib
18635 striplib=$lt_striplib
18637 # Dependencies to place before the objects being linked to create a
18639 predep_objects=$lt_predep_objects_RC
18641 # Dependencies to place after the objects being linked to create a
18643 postdep_objects=$lt_postdep_objects_RC
18645 # Dependencies to place before the objects being linked to create a
18647 predeps=$lt_predeps_RC
18649 # Dependencies to place after the objects being linked to create a
18651 postdeps=$lt_postdeps_RC
18653 # The library search path used internally by the compiler when linking
18654 # a shared library.
18655 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18657 # Method to check whether dependent libraries are shared objects.
18658 deplibs_check_method=$lt_deplibs_check_method
18660 # Command to use when deplibs_check_method == file_magic.
18661 file_magic_cmd=$lt_file_magic_cmd
18663 # Flag that allows shared libraries with undefined symbols to be built.
18664 allow_undefined_flag=$lt_allow_undefined_flag_RC
18666 # Flag that forces no undefined symbols.
18667 no_undefined_flag=$lt_no_undefined_flag_RC
18669 # Commands used to finish a libtool library installation in a directory.
18670 finish_cmds=$lt_finish_cmds
18672 # Same as above, but a single script fragment to be evaled but not shown.
18673 finish_eval=$lt_finish_eval
18675 # Take the output of nm and produce a listing of raw symbols and C names.
18676 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18678 # Transform the output of nm in a proper C declaration
18679 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18681 # Transform the output of nm in a C name address pair
18682 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18684 # This is the shared library runtime path variable.
18685 runpath_var=$runpath_var
18687 # This is the shared library path variable.
18688 shlibpath_var=$shlibpath_var
18690 # Is shlibpath searched before the hard-coded library search path?
18691 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18693 # How to hardcode a shared library path into an executable.
18694 hardcode_action=$hardcode_action_RC
18696 # Whether we should hardcode library paths into libraries.
18697 hardcode_into_libs=$hardcode_into_libs
18699 # Flag to hardcode \$libdir into a binary during linking.
18700 # This must work even if \$libdir does not exist.
18701 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18703 # If ld is used when linking, flag to hardcode \$libdir into
18704 # a binary during linking. This must work even if \$libdir does
18706 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18708 # Whether we need a single -rpath flag with a separated argument.
18709 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18711 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18712 # resulting binary.
18713 hardcode_direct=$hardcode_direct_RC
18715 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18716 # resulting binary.
18717 hardcode_minus_L=$hardcode_minus_L_RC
18719 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18720 # the resulting binary.
18721 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18723 # Set to yes if building a shared library automatically hardcodes DIR into the library
18724 # and all subsequent libraries and executables linked against it.
18725 hardcode_automatic=$hardcode_automatic_RC
18727 # Variables whose values should be saved in libtool wrapper scripts and
18728 # restored at relink time.
18729 variables_saved_for_relink="$variables_saved_for_relink"
18731 # Whether libtool must link a program against all its dependency libraries.
18732 link_all_deplibs=$link_all_deplibs_RC
18734 # Compile-time system search path for libraries
18735 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18737 # Run-time system search path for libraries
18738 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18740 # Fix the shell variable \$srcfile for the compiler.
18741 fix_srcfile_path="$fix_srcfile_path_RC"
18743 # Set to yes if exported symbols are required.
18744 always_export_symbols=$always_export_symbols_RC
18746 # The commands to list exported symbols.
18747 export_symbols_cmds=$lt_export_symbols_cmds_RC
18749 # The commands to extract the exported symbol list from a shared archive.
18750 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18752 # Symbols that should not be listed in the preloaded symbols.
18753 exclude_expsyms=$lt_exclude_expsyms_RC
18755 # Symbols that must always be exported.
18756 include_expsyms=$lt_include_expsyms_RC
18758 # ### END LIBTOOL TAG CONFIG: $tagname
18764 # If there is no Makefile yet, we rely on a make rule to execute
18765 # `config.status --recheck' to rerun these tests and create the
18766 # libtool script then.
18767 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18768 if test -f "$ltmain_in"; then
18769 test -f Makefile && make "$ltmain"
18775 ac_cpp='$CPP $CPPFLAGS'
18776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18785 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18786 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18787 { (exit 1); exit 1; }; }
18791 # Append the new tag name to the list of available tags.
18792 if test -n "$tagname" ; then
18793 available_tags="$available_tags $tagname"
18799 # Now substitute the updated list of available tags.
18800 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18801 mv "${ofile}T" "$ofile"
18805 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18806 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18807 { (exit 1); exit 1; }; }
18813 # This can be used to rebuild libtool when needed
18814 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18816 # Always use our own libtool.
18817 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18819 # Prevent multiple expansion
18832 # Check whether --with-system-libtool or --without-system-libtool was given.
18833 if test "${with_system_libtool+set}" = set; then
18834 withval="$with_system_libtool"
18835 # Extract the first word of "libtool", so it can be a program name with args.
18836 set dummy libtool; ac_word=$2
18837 echo "$as_me:$LINENO: checking for $ac_word" >&5
18838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18839 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18848 as_dummy="$PATH:/usr/local/bin"
18849 for as_dir in $as_dummy
18852 test -z "$as_dir" && as_dir=.
18853 for ac_exec_ext in '' $ac_executable_extensions; do
18854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18855 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18865 LIBTOOL=$ac_cv_path_LIBTOOL
18867 if test -n "$LIBTOOL"; then
18868 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18869 echo "${ECHO_T}$LIBTOOL" >&6
18871 echo "$as_me:$LINENO: result: no" >&5
18872 echo "${ECHO_T}no" >&6
18877 LIBTOOL="`pwd`/libtool"
18896 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18897 if test "${enable_strict_dependencies+set}" = set; then
18898 enableval="$enable_strict_dependencies"
18902 docdir='${datadir}/doc/freeradius'
18903 echo "$as_me:$LINENO: checking docdir" >&5
18904 echo $ECHO_N "checking docdir... $ECHO_C" >&6
18906 # Check whether --with-docdir or --without-docdir was given.
18907 if test "${with_docdir+set}" = set; then
18908 withval="$with_docdir"
18911 { { echo "$as_me:$LINENO: error: Need docdir" >&5
18912 echo "$as_me: error: Need docdir" >&2;}
18913 { (exit 1); exit 1; }; }
18917 [\\/$]* | ?:[\\/]* )
18921 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
18922 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
18923 { (exit 1); exit 1; }; }
18929 echo "$as_me:$LINENO: result: $docdir" >&5
18930 echo "${ECHO_T}$docdir" >&6
18932 logdir='${localstatedir}/log/radius'
18933 echo "$as_me:$LINENO: checking logdir" >&5
18934 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18936 # Check whether --with-logdir or --without-logdir was given.
18937 if test "${with_logdir+set}" = set; then
18938 withval="$with_logdir"
18941 { { echo "$as_me:$LINENO: error: Need logdir" >&5
18942 echo "$as_me: error: Need logdir" >&2;}
18943 { (exit 1); exit 1; }; }
18947 [\\/$]* | ?:[\\/]* )
18951 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
18952 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
18953 { (exit 1); exit 1; }; }
18959 echo "$as_me:$LINENO: result: $logdir" >&5
18960 echo "${ECHO_T}$logdir" >&6
18962 radacctdir='${logdir}/radacct'
18963 echo "$as_me:$LINENO: checking radacctdir" >&5
18964 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18966 # Check whether --with-radacctdir or --without-radacctdir was given.
18967 if test "${with_radacctdir+set}" = set; then
18968 withval="$with_radacctdir"
18971 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18972 echo "$as_me: error: Need radacctdir" >&2;}
18973 { (exit 1); exit 1; }; }
18977 [\\/$]* | ?:[\\/]* )
18978 radacctdir="$withval"
18981 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
18982 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
18983 { (exit 1); exit 1; }; }
18989 echo "$as_me:$LINENO: result: $radacctdir" >&5
18990 echo "${ECHO_T}$radacctdir" >&6
18992 raddbdir='${sysconfdir}/raddb'
18993 echo "$as_me:$LINENO: checking raddbdir" >&5
18994 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18996 # Check whether --with-raddbdir or --without-raddbdir was given.
18997 if test "${with_raddbdir+set}" = set; then
18998 withval="$with_raddbdir"
19001 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19002 echo "$as_me: error: Need raddbdir" >&2;}
19003 { (exit 1); exit 1; }; }
19007 [\\/$]* | ?:[\\/]* )
19008 raddbdir="$withval"
19011 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19012 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19013 { (exit 1); exit 1; }; }
19019 echo "$as_me:$LINENO: result: $raddbdir" >&5
19020 echo "${ECHO_T}$raddbdir" >&6
19024 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19025 if test "${with_ascend_binary+set}" = set; then
19026 withval="$with_ascend_binary"
19035 if test "X$ASCEND_BINARY" = "Xyes"; then
19037 cat >>confdefs.h <<\_ACEOF
19038 #define ASCEND_BINARY
19045 # Check whether --with-threads or --without-threads was given.
19046 if test "${with_threads+set}" = set; then
19047 withval="$with_threads"
19059 # Check whether --with-snmp or --without-snmp was given.
19060 if test "${with_snmp+set}" = set; then
19061 withval="$with_snmp"
19073 # Check whether --with-static_modules or --without-static_modules was given.
19074 if test "${with_static_modules+set}" = set; then
19075 withval="$with_static_modules"
19077 for i in $withval; do
19078 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19085 # Check whether --with-modules or --without-modules was given.
19086 if test "${with_modules+set}" = set; then
19087 withval="$with_modules"
19089 for i in $withval; do
19090 MODULES="$MODULES $i"
19095 # Check whether --enable-developer or --disable-developer was given.
19096 if test "${enable_developer+set}" = set; then
19097 enableval="$enable_developer"
19098 case "$enableval" in
19108 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19114 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19115 if test "${with_experimental_modules+set}" = set; then
19116 withval="$with_experimental_modules"
19126 OPENSSL_INCLUDE_DIR=
19128 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19129 if test "${with_openssl_includes+set}" = set; then
19130 withval="$with_openssl_includes"
19132 *) OPENSSL_INCLUDE_DIR="$withval"
19140 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19141 if test "${with_openssl_libraries+set}" = set; then
19142 withval="$with_openssl_libraries"
19144 *) OPENSSL_LIB_DIR="$withval"
19152 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19153 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19154 withval="$with_rlm_FOO_lib_dir"
19163 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19164 if test "${with_rlm_FOO_include_dir+set}" = set; then
19165 withval="$with_rlm_FOO_include_dir"
19176 # Check whether --with-udpfromto or --without-udpfromto was given.
19177 if test "${with_udpfromto+set}" = set; then
19178 withval="$with_udpfromto"
19189 if test "x$WITH_UDPFROMTO" = "xyes"; then
19191 cat >>confdefs.h <<\_ACEOF
19192 #define WITH_UDPFROMTO
19198 CHECKRAD=checkrad.pl
19199 # Extract the first word of "perl", so it can be a program name with args.
19200 set dummy perl; ac_word=$2
19201 echo "$as_me:$LINENO: checking for $ac_word" >&5
19202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19203 if test "${ac_cv_path_PERL+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19208 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19212 for as_dir in $PATH
19215 test -z "$as_dir" && as_dir=.
19216 for ac_exec_ext in '' $ac_executable_extensions; do
19217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19218 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19225 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19229 PERL=$ac_cv_path_PERL
19231 if test -n "$PERL"; then
19232 echo "$as_me:$LINENO: result: $PERL" >&5
19233 echo "${ECHO_T}$PERL" >&6
19235 echo "$as_me:$LINENO: result: no" >&5
19236 echo "${ECHO_T}no" >&6
19239 if test "x$ac_cv_path_PERL" = "x"; then
19240 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19241 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19243 # Extract the first word of "snmpget", so it can be a program name with args.
19244 set dummy snmpget; ac_word=$2
19245 echo "$as_me:$LINENO: checking for $ac_word" >&5
19246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19247 if test "${ac_cv_path_SNMPGET+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19256 for as_dir in $PATH
19259 test -z "$as_dir" && as_dir=.
19260 for ac_exec_ext in '' $ac_executable_extensions; do
19261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19262 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19272 SNMPGET=$ac_cv_path_SNMPGET
19274 if test -n "$SNMPGET"; then
19275 echo "$as_me:$LINENO: result: $SNMPGET" >&5
19276 echo "${ECHO_T}$SNMPGET" >&6
19278 echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6
19282 if test "x$ac_cv_path_SNMPGET" = "x"; then
19283 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19284 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19287 # Extract the first word of "snmpwalk", so it can be a program name with args.
19288 set dummy snmpwalk; ac_word=$2
19289 echo "$as_me:$LINENO: checking for $ac_word" >&5
19290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19291 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19300 for as_dir in $PATH
19303 test -z "$as_dir" && as_dir=.
19304 for ac_exec_ext in '' $ac_executable_extensions; do
19305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19306 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19316 SNMPWALK=$ac_cv_path_SNMPWALK
19318 if test -n "$SNMPWALK"; then
19319 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19320 echo "${ECHO_T}$SNMPWALK" >&6
19322 echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6
19326 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19327 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19328 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19331 # Extract the first word of "rusers", so it can be a program name with args.
19332 set dummy rusers; ac_word=$2
19333 echo "$as_me:$LINENO: checking for $ac_word" >&5
19334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19335 if test "${ac_cv_path_RUSERS+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19344 for as_dir in $PATH
19347 test -z "$as_dir" && as_dir=.
19348 for ac_exec_ext in '' $ac_executable_extensions; do
19349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19350 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19357 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19361 RUSERS=$ac_cv_path_RUSERS
19363 if test -n "$RUSERS"; then
19364 echo "$as_me:$LINENO: result: $RUSERS" >&5
19365 echo "${ECHO_T}$RUSERS" >&6
19367 echo "$as_me:$LINENO: result: no" >&5
19368 echo "${ECHO_T}no" >&6
19372 missing_dir=`cd $ac_aux_dir && pwd`
19373 # expand $ac_aux_dir to an absolute path
19374 am_aux_dir=`cd $ac_aux_dir && pwd`
19376 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19377 # Use eval to expand $SHELL
19378 if eval "$MISSING --run true"; then
19379 am_missing_run="$MISSING --run "
19382 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19383 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19387 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19390 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19393 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19396 # Extract the first word of "locate", so it can be a program name with args.
19397 set dummy locate; ac_word=$2
19398 echo "$as_me:$LINENO: checking for $ac_word" >&5
19399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19400 if test "${ac_cv_path_LOCATE+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19409 for as_dir in $PATH
19412 test -z "$as_dir" && as_dir=.
19413 for ac_exec_ext in '' $ac_executable_extensions; do
19414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19415 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19425 LOCATE=$ac_cv_path_LOCATE
19427 if test -n "$LOCATE"; then
19428 echo "$as_me:$LINENO: result: $LOCATE" >&5
19429 echo "${ECHO_T}$LOCATE" >&6
19431 echo "$as_me:$LINENO: result: no" >&5
19432 echo "${ECHO_T}no" >&6
19435 # Extract the first word of "dirname", so it can be a program name with args.
19436 set dummy dirname; ac_word=$2
19437 echo "$as_me:$LINENO: checking for $ac_word" >&5
19438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19439 if test "${ac_cv_path_DIRNAME+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19448 for as_dir in $PATH
19451 test -z "$as_dir" && as_dir=.
19452 for ac_exec_ext in '' $ac_executable_extensions; do
19453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19454 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19464 DIRNAME=$ac_cv_path_DIRNAME
19466 if test -n "$DIRNAME"; then
19467 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19468 echo "${ECHO_T}$DIRNAME" >&6
19470 echo "$as_me:$LINENO: result: no" >&5
19471 echo "${ECHO_T}no" >&6
19474 # Extract the first word of "grep", so it can be a program name with args.
19475 set dummy grep; ac_word=$2
19476 echo "$as_me:$LINENO: checking for $ac_word" >&5
19477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19478 if test "${ac_cv_path_GREP+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19487 for as_dir in $PATH
19490 test -z "$as_dir" && as_dir=.
19491 for ac_exec_ext in '' $ac_executable_extensions; do
19492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19493 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19503 GREP=$ac_cv_path_GREP
19505 if test -n "$GREP"; then
19506 echo "$as_me:$LINENO: result: $GREP" >&5
19507 echo "${ECHO_T}$GREP" >&6
19509 echo "$as_me:$LINENO: result: no" >&5
19510 echo "${ECHO_T}no" >&6
19516 if test "x$WITH_THREADS" = "xyes"; then
19517 if test $ac_cv_prog_suncc = "yes"; then
19518 CFLAGS="$CFLAGS -mt"
19522 for ac_header in pthread.h
19524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19526 echo "$as_me:$LINENO: checking for $ac_header" >&5
19527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19534 # Is the header compilable?
19535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19537 cat >conftest.$ac_ext <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 $ac_includes_default
19544 #include <$ac_header>
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548 (eval $ac_compile) 2>conftest.er1
19550 grep -v '^ *+' conftest.er1 >conftest.err
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
19555 { ac_try='test -z "$ac_c_werror_flag"
19556 || test ! -s conftest.err'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_header_compiler=yes
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_header_compiler=no
19575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19577 echo "${ECHO_T}$ac_header_compiler" >&6
19579 # Is the header present?
19580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 #include <$ac_header>
19590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19593 grep -v '^ *+' conftest.er1 >conftest.err
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } >/dev/null; then
19598 if test -s conftest.err; then
19599 ac_cpp_err=$ac_c_preproc_warn_flag
19600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19607 if test -z "$ac_cpp_err"; then
19608 ac_header_preproc=yes
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19613 ac_header_preproc=no
19615 rm -f conftest.err conftest.$ac_ext
19616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19617 echo "${ECHO_T}$ac_header_preproc" >&6
19619 # So? What about this header?
19620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19626 ac_header_preproc=yes
19629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19643 ## ------------------------------------------ ##
19644 ## Report this to the AC_PACKAGE_NAME lists. ##
19645 ## ------------------------------------------ ##
19648 sed "s/^/$as_me: WARNING: /" >&2
19651 echo "$as_me:$LINENO: checking for $ac_header" >&5
19652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 eval "$as_ac_Header=\$ac_header_preproc"
19658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19663 cat >>confdefs.h <<_ACEOF
19664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19674 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19675 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19676 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 ac_check_lib_save_LIBS=$LIBS
19680 LIBS="-lpthread $LIBS"
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19688 /* Override any gcc2 internal prototype to avoid an error. */
19692 /* We use char because int might match the return type of a gcc2
19693 builtin and then its argument prototype would still apply. */
19694 char pthread_create ();
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705 (eval $ac_link) 2>conftest.er1
19707 grep -v '^ *+' conftest.er1 >conftest.err
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } &&
19712 { ac_try='test -z "$ac_c_werror_flag"
19713 || test ! -s conftest.err'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest$ac_exeext'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 ac_cv_lib_pthread_pthread_create=yes
19727 echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19730 ac_cv_lib_pthread_pthread_create=no
19732 rm -f conftest.err conftest.$ac_objext \
19733 conftest$ac_exeext conftest.$ac_ext
19734 LIBS=$ac_check_lib_save_LIBS
19736 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19737 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19738 if test $ac_cv_lib_pthread_pthread_create = yes; then
19739 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19740 LIBS="$LIBS -lpthread"
19742 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19743 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19744 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 ac_check_lib_save_LIBS=$LIBS
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19756 /* Override any gcc2 internal prototype to avoid an error. */
19760 /* We use char because int might match the return type of a gcc2
19761 builtin and then its argument prototype would still apply. */
19762 char pthread_create ();
19771 rm -f conftest.$ac_objext conftest$ac_exeext
19772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19773 (eval $ac_link) 2>conftest.er1
19775 grep -v '^ *+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_c_werror_flag"
19781 || test ! -s conftest.err'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest$ac_exeext'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; }; then
19793 ac_cv_lib_c_r_pthread_create=yes
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19798 ac_cv_lib_c_r_pthread_create=no
19800 rm -f conftest.err conftest.$ac_objext \
19801 conftest$ac_exeext conftest.$ac_ext
19802 LIBS=$ac_check_lib_save_LIBS
19804 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19805 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19806 if test $ac_cv_lib_c_r_pthread_create = yes; then
19807 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19818 if test "x$WITH_THREADS" != "xyes"; then
19820 ac_cv_header_pthread_h="no"
19824 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19825 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19826 if test "${ac_cv_search_sem_init+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 ac_func_search_save_LIBS=$LIBS
19830 ac_cv_search_sem_init=no
19831 cat >conftest.$ac_ext <<_ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19838 /* Override any gcc2 internal prototype to avoid an error. */
19842 /* We use char because int might match the return type of a gcc2
19843 builtin and then its argument prototype would still apply. */
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19855 (eval $ac_link) 2>conftest.er1
19857 grep -v '^ *+' conftest.er1 >conftest.err
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } &&
19862 { ac_try='test -z "$ac_c_werror_flag"
19863 || test ! -s conftest.err'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; } &&
19869 { ac_try='test -s conftest$ac_exeext'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
19875 ac_cv_search_sem_init="none required"
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19881 rm -f conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19883 if test "$ac_cv_search_sem_init" = no; then
19884 for ac_lib in pthread sem posix4 rt semaphore; do
19885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19886 cat >conftest.$ac_ext <<_ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19893 /* Override any gcc2 internal prototype to avoid an error. */
19897 /* We use char because int might match the return type of a gcc2
19898 builtin and then its argument prototype would still apply. */
19908 rm -f conftest.$ac_objext conftest$ac_exeext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910 (eval $ac_link) 2>conftest.er1
19912 grep -v '^ *+' conftest.er1 >conftest.err
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest$ac_exeext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_cv_search_sem_init="-l$ac_lib"
19933 echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19937 rm -f conftest.err conftest.$ac_objext \
19938 conftest$ac_exeext conftest.$ac_ext
19941 LIBS=$ac_func_search_save_LIBS
19943 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19944 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19945 if test "$ac_cv_search_sem_init" != no; then
19946 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19949 { { 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
19950 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;}
19951 { (exit 1); exit 1; }; }
19958 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19959 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19960 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 ac_check_lib_save_LIBS=$LIBS
19964 LIBS="-lsocket $LIBS"
19965 cat >conftest.$ac_ext <<_ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19972 /* Override any gcc2 internal prototype to avoid an error. */
19976 /* We use char because int might match the return type of a gcc2
19977 builtin and then its argument prototype would still apply. */
19978 char getsockname ();
19987 rm -f conftest.$ac_objext conftest$ac_exeext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19989 (eval $ac_link) 2>conftest.er1
19991 grep -v '^ *+' conftest.er1 >conftest.err
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest$ac_exeext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20009 ac_cv_lib_socket_getsockname=yes
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20014 ac_cv_lib_socket_getsockname=no
20016 rm -f conftest.err conftest.$ac_objext \
20017 conftest$ac_exeext conftest.$ac_ext
20018 LIBS=$ac_check_lib_save_LIBS
20020 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20021 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20022 if test $ac_cv_lib_socket_getsockname = yes; then
20023 cat >>confdefs.h <<_ACEOF
20024 #define HAVE_LIBSOCKET 1
20027 LIBS="-lsocket $LIBS"
20033 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20034 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20035 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 ac_check_lib_save_LIBS=$LIBS
20039 LIBS="-lresolv $LIBS"
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20047 /* Override any gcc2 internal prototype to avoid an error. */
20051 /* We use char because int might match the return type of a gcc2
20052 builtin and then its argument prototype would still apply. */
20062 rm -f conftest.$ac_objext conftest$ac_exeext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20064 (eval $ac_link) 2>conftest.er1
20066 grep -v '^ *+' conftest.er1 >conftest.err
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
20071 { ac_try='test -z "$ac_c_werror_flag"
20072 || test ! -s conftest.err'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; } &&
20078 { ac_try='test -s conftest$ac_exeext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_lib_resolv_inet_aton=yes
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 ac_cv_lib_resolv_inet_aton=no
20091 rm -f conftest.err conftest.$ac_objext \
20092 conftest$ac_exeext conftest.$ac_ext
20093 LIBS=$ac_check_lib_save_LIBS
20095 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20096 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20097 if test $ac_cv_lib_resolv_inet_aton = yes; then
20098 cat >>confdefs.h <<_ACEOF
20099 #define HAVE_LIBRESOLV 1
20102 LIBS="-lresolv $LIBS"
20108 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20109 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20110 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20113 ac_check_lib_save_LIBS=$LIBS
20115 cat >conftest.$ac_ext <<_ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20122 /* Override any gcc2 internal prototype to avoid an error. */
20126 /* We use char because int might match the return type of a gcc2
20127 builtin and then its argument prototype would still apply. */
20137 rm -f conftest.$ac_objext conftest$ac_exeext
20138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20139 (eval $ac_link) 2>conftest.er1
20141 grep -v '^ *+' conftest.er1 >conftest.err
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
20146 { ac_try='test -z "$ac_c_werror_flag"
20147 || test ! -s conftest.err'
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; } &&
20153 { ac_try='test -s conftest$ac_exeext'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 ac_cv_lib_nsl_inet_ntoa=yes
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ac_cv_lib_nsl_inet_ntoa=no
20166 rm -f conftest.err conftest.$ac_objext \
20167 conftest$ac_exeext conftest.$ac_ext
20168 LIBS=$ac_check_lib_save_LIBS
20170 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20171 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20172 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20173 cat >>confdefs.h <<_ACEOF
20174 #define HAVE_LIBNSL 1
20184 if test "x$OPENSSL_LIB_DIR" != "x"; then
20185 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20187 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20188 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
20189 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
20192 ac_check_lib_save_LIBS=$LIBS
20193 LIBS="-lcrypto $LIBS"
20194 cat >conftest.$ac_ext <<_ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20201 /* Override any gcc2 internal prototype to avoid an error. */
20205 /* We use char because int might match the return type of a gcc2
20206 builtin and then its argument prototype would still apply. */
20216 rm -f conftest.$ac_objext conftest$ac_exeext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20218 (eval $ac_link) 2>conftest.er1
20220 grep -v '^ *+' conftest.er1 >conftest.err
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
20225 { ac_try='test -z "$ac_c_werror_flag"
20226 || 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_crypto_DH_new=yes
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_cv_lib_crypto_DH_new=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_crypto_DH_new" >&5
20250 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
20251 if test $ac_cv_lib_crypto_DH_new = yes; then
20254 cat >>confdefs.h <<\_ACEOF
20255 #define HAVE_LIBCRYPTO 1
20258 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20259 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
20260 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 ac_check_lib_save_LIBS=$LIBS
20265 cat >conftest.$ac_ext <<_ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20272 /* Override any gcc2 internal prototype to avoid an error. */
20276 /* We use char because int might match the return type of a gcc2
20277 builtin and then its argument prototype would still apply. */
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289 (eval $ac_link) 2>conftest.er1
20291 grep -v '^ *+' conftest.er1 >conftest.err
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest$ac_exeext'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 ac_cv_lib_ssl_SSL_new=yes
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20314 ac_cv_lib_ssl_SSL_new=no
20316 rm -f conftest.err conftest.$ac_objext \
20317 conftest$ac_exeext conftest.$ac_ext
20318 LIBS=$ac_check_lib_save_LIBS
20320 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20321 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
20322 if test $ac_cv_lib_ssl_SSL_new = yes; then
20325 cat >>confdefs.h <<\_ACEOF
20326 #define HAVE_LIBSSL 1
20329 if test "x$OPENSSL_LIB_DIR" != "x"; then
20330 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20332 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20342 echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
20343 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
20344 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 ac_check_lib_save_LIBS=$LIBS
20348 LIBS="-lpcap $LIBS"
20349 cat >conftest.$ac_ext <<_ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20356 /* Override any gcc2 internal prototype to avoid an error. */
20360 /* We use char because int might match the return type of a gcc2
20361 builtin and then its argument prototype would still apply. */
20362 char pcap_open_live ();
20371 rm -f conftest.$ac_objext conftest$ac_exeext
20372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20373 (eval $ac_link) 2>conftest.er1
20375 grep -v '^ *+' conftest.er1 >conftest.err
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } &&
20380 { ac_try='test -z "$ac_c_werror_flag"
20381 || test ! -s conftest.err'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; } &&
20387 { ac_try='test -s conftest$ac_exeext'
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 ac_cv_lib_pcap_pcap_open_live=yes
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20398 ac_cv_lib_pcap_pcap_open_live=no
20400 rm -f conftest.err conftest.$ac_objext \
20401 conftest$ac_exeext conftest.$ac_ext
20402 LIBS=$ac_check_lib_save_LIBS
20404 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20405 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6
20406 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
20409 cat >>confdefs.h <<\_ACEOF
20410 #define HAVE_LIBPCAP 1
20415 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20416 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20423 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20426 CFLAGS="$CFLAGS -DDARWIN"
20435 ac_header_dirent=no
20436 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20437 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20438 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20439 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 cat >conftest.$ac_ext <<_ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20449 #include <sys/types.h>
20461 rm -f conftest.$ac_objext
20462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20463 (eval $ac_compile) 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -z "$ac_c_werror_flag"
20471 || test ! -s conftest.err'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest.$ac_objext'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 eval "$as_ac_Header=yes"
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20488 eval "$as_ac_Header=no"
20490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20495 cat >>confdefs.h <<_ACEOF
20496 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20499 ac_header_dirent=$ac_hdr; break
20503 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20504 if test $ac_header_dirent = dirent.h; then
20505 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20506 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20507 if test "${ac_cv_search_opendir+set}" = set; then
20508 echo $ECHO_N "(cached) $ECHO_C" >&6
20510 ac_func_search_save_LIBS=$LIBS
20511 ac_cv_search_opendir=no
20512 cat >conftest.$ac_ext <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20519 /* Override any gcc2 internal prototype to avoid an error. */
20523 /* We use char because int might match the return type of a gcc2
20524 builtin and then its argument prototype would still apply. */
20534 rm -f conftest.$ac_objext conftest$ac_exeext
20535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20536 (eval $ac_link) 2>conftest.er1
20538 grep -v '^ *+' conftest.er1 >conftest.err
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } &&
20543 { ac_try='test -z "$ac_c_werror_flag"
20544 || test ! -s conftest.err'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest$ac_exeext'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_search_opendir="none required"
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20562 rm -f conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564 if test "$ac_cv_search_opendir" = no; then
20565 for ac_lib in dir; do
20566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20567 cat >conftest.$ac_ext <<_ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20574 /* Override any gcc2 internal prototype to avoid an error. */
20578 /* We use char because int might match the return type of a gcc2
20579 builtin and then its argument prototype would still apply. */
20589 rm -f conftest.$ac_objext conftest$ac_exeext
20590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20591 (eval $ac_link) 2>conftest.er1
20593 grep -v '^ *+' conftest.er1 >conftest.err
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
20598 { ac_try='test -z "$ac_c_werror_flag"
20599 || test ! -s conftest.err'
20600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601 (eval $ac_try) 2>&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; } &&
20605 { ac_try='test -s conftest$ac_exeext'
20606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607 (eval $ac_try) 2>&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; }; then
20611 ac_cv_search_opendir="-l$ac_lib"
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20618 rm -f conftest.err conftest.$ac_objext \
20619 conftest$ac_exeext conftest.$ac_ext
20622 LIBS=$ac_func_search_save_LIBS
20624 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20625 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20626 if test "$ac_cv_search_opendir" != no; then
20627 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20632 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20633 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20634 if test "${ac_cv_search_opendir+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20637 ac_func_search_save_LIBS=$LIBS
20638 ac_cv_search_opendir=no
20639 cat >conftest.$ac_ext <<_ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20646 /* Override any gcc2 internal prototype to avoid an error. */
20650 /* We use char because int might match the return type of a gcc2
20651 builtin and then its argument prototype would still apply. */
20661 rm -f conftest.$ac_objext conftest$ac_exeext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20663 (eval $ac_link) 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -z "$ac_c_werror_flag"
20671 || test ! -s conftest.err'
20672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673 (eval $ac_try) 2>&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); }; } &&
20677 { ac_try='test -s conftest$ac_exeext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_cv_search_opendir="none required"
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20689 rm -f conftest.err conftest.$ac_objext \
20690 conftest$ac_exeext conftest.$ac_ext
20691 if test "$ac_cv_search_opendir" = no; then
20692 for ac_lib in x; do
20693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20701 /* Override any gcc2 internal prototype to avoid an error. */
20705 /* We use char because int might match the return type of a gcc2
20706 builtin and then its argument prototype would still apply. */
20716 rm -f conftest.$ac_objext conftest$ac_exeext
20717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20718 (eval $ac_link) 2>conftest.er1
20720 grep -v '^ *+' conftest.er1 >conftest.err
20722 cat conftest.err >&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } &&
20725 { ac_try='test -z "$ac_c_werror_flag"
20726 || test ! -s conftest.err'
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; } &&
20732 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20738 ac_cv_search_opendir="-l$ac_lib"
20741 echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20745 rm -f conftest.err conftest.$ac_objext \
20746 conftest$ac_exeext conftest.$ac_ext
20749 LIBS=$ac_func_search_save_LIBS
20751 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20752 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20753 if test "$ac_cv_search_opendir" != no; then
20754 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20760 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20762 if test "${ac_cv_header_stdc+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 #include <stdlib.h>
20772 #include <stdarg.h>
20773 #include <string.h>
20784 rm -f conftest.$ac_objext
20785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20786 (eval $ac_compile) 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
20793 { ac_try='test -z "$ac_c_werror_flag"
20794 || test ! -s conftest.err'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; } &&
20800 { ac_try='test -s conftest.$ac_objext'
20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
20806 ac_cv_header_stdc=yes
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_cv_header_stdc=no
20813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20815 if test $ac_cv_header_stdc = yes; then
20816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20817 cat >conftest.$ac_ext <<_ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20823 #include <string.h>
20826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20827 $EGREP "memchr" >/dev/null 2>&1; then
20830 ac_cv_header_stdc=no
20836 if test $ac_cv_header_stdc = yes; then
20837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20838 cat >conftest.$ac_ext <<_ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 #include <stdlib.h>
20847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20848 $EGREP "free" >/dev/null 2>&1; then
20851 ac_cv_header_stdc=no
20857 if test $ac_cv_header_stdc = yes; then
20858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20859 if test "$cross_compiling" = yes; then
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20869 #if ((' ' & 0x0FF) == 0x020)
20870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20873 # define ISLOWER(c) \
20874 (('a' <= (c) && (c) <= 'i') \
20875 || ('j' <= (c) && (c) <= 'r') \
20876 || ('s' <= (c) && (c) <= 'z'))
20877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20885 for (i = 0; i < 256; i++)
20886 if (XOR (islower (i), ISLOWER (i))
20887 || toupper (i) != TOUPPER (i))
20892 rm -f conftest$ac_exeext
20893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20894 (eval $ac_link) 2>&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20905 echo "$as_me: program exited with status $ac_status" >&5
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ( exit $ac_status )
20910 ac_cv_header_stdc=no
20912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20916 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20917 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20918 if test $ac_cv_header_stdc = yes; then
20920 cat >>confdefs.h <<\_ACEOF
20921 #define STDC_HEADERS 1
20926 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20927 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20928 if test "${ac_cv_header_time+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 #include <sys/types.h>
20938 #include <sys/time.h>
20944 if ((struct tm *) 0)
20950 rm -f conftest.$ac_objext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20952 (eval $ac_compile) 2>conftest.er1
20954 grep -v '^ *+' conftest.er1 >conftest.err
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_c_werror_flag"
20960 || test ! -s conftest.err'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; } &&
20966 { ac_try='test -s conftest.$ac_objext'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 ac_cv_header_time=yes
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 ac_cv_header_time=no
20979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20981 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20982 echo "${ECHO_T}$ac_cv_header_time" >&6
20983 if test $ac_cv_header_time = yes; then
20985 cat >>confdefs.h <<\_ACEOF
20986 #define TIME_WITH_SYS_TIME 1
20991 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20992 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20993 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 #include <sys/types.h>
21003 #include <sys/wait.h>
21004 #ifndef WEXITSTATUS
21005 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21008 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21016 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21021 rm -f conftest.$ac_objext
21022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21023 (eval $ac_compile) 2>conftest.er1
21025 grep -v '^ *+' conftest.er1 >conftest.err
21027 cat conftest.err >&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } &&
21030 { ac_try='test -z "$ac_c_werror_flag"
21031 || test ! -s conftest.err'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest.$ac_objext'
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21043 ac_cv_header_sys_wait_h=yes
21045 echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 ac_cv_header_sys_wait_h=no
21050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21052 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21053 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21054 if test $ac_cv_header_sys_wait_h = yes; then
21056 cat >>confdefs.h <<\_ACEOF
21057 #define HAVE_SYS_WAIT_H 1
21124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21126 echo "$as_me:$LINENO: checking for $ac_header" >&5
21127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21134 # Is the header compilable?
21135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 $ac_includes_default
21144 #include <$ac_header>
21146 rm -f conftest.$ac_objext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21148 (eval $ac_compile) 2>conftest.er1
21150 grep -v '^ *+' conftest.er1 >conftest.err
21152 cat conftest.err >&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } &&
21155 { ac_try='test -z "$ac_c_werror_flag"
21156 || test ! -s conftest.err'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; } &&
21162 { ac_try='test -s conftest.$ac_objext'
21163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164 (eval $ac_try) 2>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; }; then
21168 ac_header_compiler=yes
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ac_header_compiler=no
21175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21177 echo "${ECHO_T}$ac_header_compiler" >&6
21179 # Is the header present?
21180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 #include <$ac_header>
21190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21193 grep -v '^ *+' conftest.er1 >conftest.err
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } >/dev/null; then
21198 if test -s conftest.err; then
21199 ac_cpp_err=$ac_c_preproc_warn_flag
21200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21207 if test -z "$ac_cpp_err"; then
21208 ac_header_preproc=yes
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21213 ac_header_preproc=no
21215 rm -f conftest.err conftest.$ac_ext
21216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21217 echo "${ECHO_T}$ac_header_preproc" >&6
21219 # So? What about this header?
21220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21226 ac_header_preproc=yes
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21243 ## ------------------------------------------ ##
21244 ## Report this to the AC_PACKAGE_NAME lists. ##
21245 ## ------------------------------------------ ##
21248 sed "s/^/$as_me: WARNING: /" >&2
21251 echo "$as_me:$LINENO: checking for $ac_header" >&5
21252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 eval "$as_ac_Header=\$ac_header_preproc"
21258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21263 cat >>confdefs.h <<_ACEOF
21264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21273 if test "${ac_cv_header_regex_h+set}" = set; then
21274 echo "$as_me:$LINENO: checking for regex.h" >&5
21275 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21276 if test "${ac_cv_header_regex_h+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21280 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21282 # Is the header compilable?
21283 echo "$as_me:$LINENO: checking regex.h usability" >&5
21284 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 $ac_includes_default
21294 rm -f conftest.$ac_objext
21295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21296 (eval $ac_compile) 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } &&
21303 { ac_try='test -z "$ac_c_werror_flag"
21304 || test ! -s conftest.err'
21305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306 (eval $ac_try) 2>&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); }; } &&
21310 { ac_try='test -s conftest.$ac_objext'
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
21316 ac_header_compiler=yes
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21321 ac_header_compiler=no
21323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21325 echo "${ECHO_T}$ac_header_compiler" >&6
21327 # Is the header present?
21328 echo "$as_me:$LINENO: checking regex.h presence" >&5
21329 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21341 grep -v '^ *+' conftest.er1 >conftest.err
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } >/dev/null; then
21346 if test -s conftest.err; then
21347 ac_cpp_err=$ac_c_preproc_warn_flag
21348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21355 if test -z "$ac_cpp_err"; then
21356 ac_header_preproc=yes
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21361 ac_header_preproc=no
21363 rm -f conftest.err conftest.$ac_ext
21364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21365 echo "${ECHO_T}$ac_header_preproc" >&6
21367 # So? What about this header?
21368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21370 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21371 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21373 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21374 ac_header_preproc=yes
21377 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21378 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21379 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21380 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21381 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21382 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21383 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21384 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
21385 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21386 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21387 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21388 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21391 ## ------------------------------------------ ##
21392 ## Report this to the AC_PACKAGE_NAME lists. ##
21393 ## ------------------------------------------ ##
21396 sed "s/^/$as_me: WARNING: /" >&2
21399 echo "$as_me:$LINENO: checking for regex.h" >&5
21400 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21401 if test "${ac_cv_header_regex_h+set}" = set; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21404 ac_cv_header_regex_h=$ac_header_preproc
21406 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21407 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21410 if test $ac_cv_header_regex_h = yes; then
21412 cat >>confdefs.h <<\_ACEOF
21413 #define HAVE_REGEX_H
21419 if test "x$ac_cv_header_regex_h" = "xyes"; then
21422 cat >conftest.$ac_ext <<_ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21429 #ifdef REG_EXTENDED
21434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21435 $EGREP "yes" >/dev/null 2>&1; then
21437 cat >>confdefs.h <<\_ACEOF
21438 #define HAVE_REG_EXTENDED
21448 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21451 cat >>confdefs.h <<\_ACEOF
21457 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21460 cat >>confdefs.h <<\_ACEOF
21466 OPENSSL_INCLUDE="-DNO_OPENSSL"
21467 if test "x$OPENSSL_LIBS" = "x"; then
21468 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
21469 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21471 old_CPPFLAGS=$CPPFLAGS
21472 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21473 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21475 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21488 echo "$as_me:$LINENO: checking for $ac_header" >&5
21489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21496 # Is the header compilable?
21497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21499 cat >conftest.$ac_ext <<_ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 $ac_includes_default
21506 #include <$ac_header>
21508 rm -f conftest.$ac_objext
21509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21510 (eval $ac_compile) 2>conftest.er1
21512 grep -v '^ *+' conftest.er1 >conftest.err
21514 cat conftest.err >&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } &&
21517 { ac_try='test -z "$ac_c_werror_flag"
21518 || test ! -s conftest.err'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; } &&
21524 { ac_try='test -s conftest.$ac_objext'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
21530 ac_header_compiler=yes
21532 echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21535 ac_header_compiler=no
21537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21539 echo "${ECHO_T}$ac_header_compiler" >&6
21541 # Is the header present?
21542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21544 cat >conftest.$ac_ext <<_ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21550 #include <$ac_header>
21552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21555 grep -v '^ *+' conftest.er1 >conftest.err
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } >/dev/null; then
21560 if test -s conftest.err; then
21561 ac_cpp_err=$ac_c_preproc_warn_flag
21562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21569 if test -z "$ac_cpp_err"; then
21570 ac_header_preproc=yes
21572 echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21575 ac_header_preproc=no
21577 rm -f conftest.err conftest.$ac_ext
21578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21579 echo "${ECHO_T}$ac_header_preproc" >&6
21581 # So? What about this header?
21582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21588 ac_header_preproc=yes
21591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21605 ## ------------------------------------------ ##
21606 ## Report this to the AC_PACKAGE_NAME lists. ##
21607 ## ------------------------------------------ ##
21610 sed "s/^/$as_me: WARNING: /" >&2
21613 echo "$as_me:$LINENO: checking for $ac_header" >&5
21614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 eval "$as_ac_Header=\$ac_header_preproc"
21620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21625 cat >>confdefs.h <<_ACEOF
21626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21636 if test "x$OPENSSL_LIBS" != "x"; then
21637 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21638 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 #include <openssl/crypto.h>
21646 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21652 $EGREP "yes" >/dev/null 2>&1; then
21657 if test "x$goodssl" != "xyes"; then
21658 echo "$as_me:$LINENO: result: no" >&5
21659 echo "${ECHO_T}no" >&6
21662 echo "$as_me:$LINENO: result: yes" >&5
21663 echo "${ECHO_T}yes" >&6
21664 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21665 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21667 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21671 CPPFLAGS=$old_CPPFLAGS
21675 export OPENSSL_LIBS
21677 if test "x$PCAP_LIBS" = x; then
21678 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
21679 echo "$as_me: skipping test for pcap.h." >&6;}
21681 if test "${ac_cv_header_pcap_h+set}" = set; then
21682 echo "$as_me:$LINENO: checking for pcap.h" >&5
21683 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
21684 if test "${ac_cv_header_pcap_h+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21687 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
21688 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
21690 # Is the header compilable?
21691 echo "$as_me:$LINENO: checking pcap.h usability" >&5
21692 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6
21693 cat >conftest.$ac_ext <<_ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 $ac_includes_default
21702 rm -f conftest.$ac_objext
21703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21704 (eval $ac_compile) 2>conftest.er1
21706 grep -v '^ *+' conftest.er1 >conftest.err
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } &&
21711 { ac_try='test -z "$ac_c_werror_flag"
21712 || test ! -s conftest.err'
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; } &&
21718 { ac_try='test -s conftest.$ac_objext'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724 ac_header_compiler=yes
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21729 ac_header_compiler=no
21731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21733 echo "${ECHO_T}$ac_header_compiler" >&6
21735 # Is the header present?
21736 echo "$as_me:$LINENO: checking pcap.h presence" >&5
21737 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6
21738 cat >conftest.$ac_ext <<_ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21749 grep -v '^ *+' conftest.er1 >conftest.err
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } >/dev/null; then
21754 if test -s conftest.err; then
21755 ac_cpp_err=$ac_c_preproc_warn_flag
21756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21763 if test -z "$ac_cpp_err"; then
21764 ac_header_preproc=yes
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ac_header_preproc=no
21771 rm -f conftest.err conftest.$ac_ext
21772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21773 echo "${ECHO_T}$ac_header_preproc" >&6
21775 # So? What about this header?
21776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21778 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
21779 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21780 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
21781 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
21782 ac_header_preproc=yes
21785 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
21786 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
21787 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
21788 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
21789 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
21790 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
21792 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
21793 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
21794 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
21796 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
21799 ## ------------------------------------------ ##
21800 ## Report this to the AC_PACKAGE_NAME lists. ##
21801 ## ------------------------------------------ ##
21804 sed "s/^/$as_me: WARNING: /" >&2
21807 echo "$as_me:$LINENO: checking for pcap.h" >&5
21808 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
21809 if test "${ac_cv_header_pcap_h+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 ac_cv_header_pcap_h=$ac_header_preproc
21814 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
21815 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
21818 if test $ac_cv_header_pcap_h = yes; then
21820 cat >>confdefs.h <<\_ACEOF
21821 #define HAVE_PCAP_H 1
21826 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21827 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21836 echo "$as_me:$LINENO: checking for off_t" >&5
21837 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21838 if test "${ac_cv_type_off_t+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 cat >conftest.$ac_ext <<_ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 $ac_includes_default
21853 if (sizeof (off_t))
21859 rm -f conftest.$ac_objext
21860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21861 (eval $ac_compile) 2>conftest.er1
21863 grep -v '^ *+' conftest.er1 >conftest.err
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } &&
21868 { ac_try='test -z "$ac_c_werror_flag"
21869 || test ! -s conftest.err'
21870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); }; } &&
21875 { ac_try='test -s conftest.$ac_objext'
21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 ac_cv_type_off_t=yes
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 ac_cv_type_off_t=no
21888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21890 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21891 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21892 if test $ac_cv_type_off_t = yes; then
21896 cat >>confdefs.h <<_ACEOF
21902 echo "$as_me:$LINENO: checking for pid_t" >&5
21903 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21904 if test "${ac_cv_type_pid_t+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21907 cat >conftest.$ac_ext <<_ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913 $ac_includes_default
21919 if (sizeof (pid_t))
21925 rm -f conftest.$ac_objext
21926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21927 (eval $ac_compile) 2>conftest.er1
21929 grep -v '^ *+' conftest.er1 >conftest.err
21931 cat conftest.err >&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } &&
21934 { ac_try='test -z "$ac_c_werror_flag"
21935 || test ! -s conftest.err'
21936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937 (eval $ac_try) 2>&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; } &&
21941 { ac_try='test -s conftest.$ac_objext'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }; then
21947 ac_cv_type_pid_t=yes
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 ac_cv_type_pid_t=no
21954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21956 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21957 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21958 if test $ac_cv_type_pid_t = yes; then
21962 cat >>confdefs.h <<_ACEOF
21968 echo "$as_me:$LINENO: checking for size_t" >&5
21969 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21970 if test "${ac_cv_type_size_t+set}" = set; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21973 cat >conftest.$ac_ext <<_ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 $ac_includes_default
21985 if (sizeof (size_t))
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993 (eval $ac_compile) 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_c_werror_flag"
22001 || test ! -s conftest.err'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; } &&
22007 { ac_try='test -s conftest.$ac_objext'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }; then
22013 ac_cv_type_size_t=yes
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ac_cv_type_size_t=no
22020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22022 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22023 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22024 if test $ac_cv_type_size_t = yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define size_t unsigned
22034 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22035 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22036 if test "${ac_cv_type_uid_t+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 cat >conftest.$ac_ext <<_ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 #include <sys/types.h>
22048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22049 $EGREP "uid_t" >/dev/null 2>&1; then
22050 ac_cv_type_uid_t=yes
22052 ac_cv_type_uid_t=no
22057 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22058 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22059 if test $ac_cv_type_uid_t = no; then
22061 cat >>confdefs.h <<\_ACEOF
22066 cat >>confdefs.h <<\_ACEOF
22074 echo "$as_me:$LINENO: checking for socklen_t" >&5
22075 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22076 if test "${ac_cv_type_socklen_t+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 ac_cv_type_socklen_t=no
22080 cat >conftest.$ac_ext <<_ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22086 #ifdef HAVE_SYS_TYPES_H
22087 #include <sys/types.h>
22089 #ifdef HAVE_SYS_SOCKET_H
22090 #include <sys/socket.h>
22101 rm -f conftest.$ac_objext
22102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22103 (eval $ac_compile) 2>conftest.er1
22105 grep -v '^ *+' conftest.er1 >conftest.err
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } &&
22110 { ac_try='test -z "$ac_c_werror_flag"
22111 || test ! -s conftest.err'
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; } &&
22117 { ac_try='test -s conftest.$ac_objext'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 ac_cv_type_socklen_t=yes
22125 echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22133 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22134 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22136 if test "$ac_cv_type_socklen_t" != "yes"; then
22138 cat >>confdefs.h <<\_ACEOF
22139 #define socklen_t int
22146 echo "$as_me:$LINENO: checking for uint8_t" >&5
22147 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22148 if test "${ac_cv_type_uint8_t+set}" = set; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 ac_cv_type_uint8_t=no
22152 cat >conftest.$ac_ext <<_ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h. */
22158 #ifdef HAVE_INTTYPES_H
22159 #include <inttypes.h>
22161 #ifdef HAVE_STDINT_H
22162 #include <stdint.h>
22173 rm -f conftest.$ac_objext
22174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22175 (eval $ac_compile) 2>conftest.er1
22177 grep -v '^ *+' conftest.er1 >conftest.err
22179 cat conftest.err >&5
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); } &&
22182 { ac_try='test -z "$ac_c_werror_flag"
22183 || test ! -s conftest.err'
22184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185 (eval $ac_try) 2>&5
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; } &&
22189 { ac_try='test -s conftest.$ac_objext'
22190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191 (eval $ac_try) 2>&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; }; then
22195 ac_cv_type_uint8_t=yes
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22205 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22206 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22208 if test "$ac_cv_type_uint8_t" != "yes"; then
22210 cat >>confdefs.h <<\_ACEOF
22211 #define uint8_t unsigned char
22218 echo "$as_me:$LINENO: checking for uint16_t" >&5
22219 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22220 if test "${ac_cv_type_uint16_t+set}" = set; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22223 ac_cv_type_uint16_t=no
22224 cat >conftest.$ac_ext <<_ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22230 #ifdef HAVE_INTTYPES_H
22231 #include <inttypes.h>
22233 #ifdef HAVE_STDINT_H
22234 #include <stdint.h>
22245 rm -f conftest.$ac_objext
22246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22247 (eval $ac_compile) 2>conftest.er1
22249 grep -v '^ *+' conftest.er1 >conftest.err
22251 cat conftest.err >&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } &&
22254 { ac_try='test -z "$ac_c_werror_flag"
22255 || test ! -s conftest.err'
22256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257 (eval $ac_try) 2>&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); }; } &&
22261 { ac_try='test -s conftest.$ac_objext'
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263 (eval $ac_try) 2>&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; }; then
22267 ac_cv_type_uint16_t=yes
22269 echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22277 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22278 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22280 if test "$ac_cv_type_uint16_t" != "yes"; then
22282 cat >>confdefs.h <<\_ACEOF
22283 #define uint16_t unsigned short
22290 echo "$as_me:$LINENO: checking for uint32_t" >&5
22291 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22292 if test "${ac_cv_type_uint32_t+set}" = set; then
22293 echo $ECHO_N "(cached) $ECHO_C" >&6
22295 ac_cv_type_uint32_t=no
22296 cat >conftest.$ac_ext <<_ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h. */
22302 #ifdef HAVE_INTTYPES_H
22303 #include <inttypes.h>
22305 #ifdef HAVE_STDINT_H
22306 #include <stdint.h>
22317 rm -f conftest.$ac_objext
22318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22319 (eval $ac_compile) 2>conftest.er1
22321 grep -v '^ *+' conftest.er1 >conftest.err
22323 cat conftest.err >&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } &&
22326 { ac_try='test -z "$ac_c_werror_flag"
22327 || test ! -s conftest.err'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; } &&
22333 { ac_try='test -s conftest.$ac_objext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 ac_cv_type_uint32_t=yes
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22349 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22350 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22352 if test "$ac_cv_type_uint32_t" != "yes"; then
22354 cat >>confdefs.h <<\_ACEOF
22355 #define uint32_t unsigned int
22361 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22362 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
22363 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22373 #ifdef HAVE_NETINET_IN_H
22374 #include <netinet/in.h>
22381 if ((struct in6_addr *) 0)
22383 if (sizeof (struct in6_addr))
22389 rm -f conftest.$ac_objext
22390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22391 (eval $ac_compile) 2>conftest.er1
22393 grep -v '^ *+' conftest.er1 >conftest.err
22395 cat conftest.err >&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } &&
22398 { ac_try='test -z "$ac_c_werror_flag"
22399 || test ! -s conftest.err'
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; } &&
22405 { ac_try='test -s conftest.$ac_objext'
22406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }; }; then
22411 ac_cv_type_struct_in6_addr=yes
22413 echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 ac_cv_type_struct_in6_addr=no
22418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22420 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
22421 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
22422 if test $ac_cv_type_struct_in6_addr = yes; then
22424 cat >>confdefs.h <<\_ACEOF
22425 #define HAVE_STRUCT_IN6_ADDR 1
22431 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22432 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
22433 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22436 cat >conftest.$ac_ext <<_ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22443 #ifdef HAVE_NETINET_IN_H
22444 #include <netinet/in.h>
22446 #ifdef HAVE_SYS_SOCKET_H
22447 #include <sys/socket.h>
22454 if ((struct sockaddr_storage *) 0)
22456 if (sizeof (struct sockaddr_storage))
22462 rm -f conftest.$ac_objext
22463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22464 (eval $ac_compile) 2>conftest.er1
22466 grep -v '^ *+' conftest.er1 >conftest.err
22468 cat conftest.err >&5
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } &&
22471 { ac_try='test -z "$ac_c_werror_flag"
22472 || test ! -s conftest.err'
22473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22474 (eval $ac_try) 2>&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); }; } &&
22478 { ac_try='test -s conftest.$ac_objext'
22479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22480 (eval $ac_try) 2>&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); }; }; then
22484 ac_cv_type_struct_sockaddr_storage=yes
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 ac_cv_type_struct_sockaddr_storage=no
22491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22493 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22494 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
22495 if test $ac_cv_type_struct_sockaddr_storage = yes; then
22497 cat >>confdefs.h <<\_ACEOF
22498 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22504 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22505 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
22506 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
22507 echo $ECHO_N "(cached) $ECHO_C" >&6
22509 cat >conftest.$ac_ext <<_ACEOF
22512 cat confdefs.h >>conftest.$ac_ext
22513 cat >>conftest.$ac_ext <<_ACEOF
22514 /* end confdefs.h. */
22516 #ifdef HAVE_NETINET_IN_H
22517 #include <netinet/in.h>
22524 if ((struct sockaddr_in6 *) 0)
22526 if (sizeof (struct sockaddr_in6))
22532 rm -f conftest.$ac_objext
22533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22534 (eval $ac_compile) 2>conftest.er1
22536 grep -v '^ *+' conftest.er1 >conftest.err
22538 cat conftest.err >&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } &&
22541 { ac_try='test -z "$ac_c_werror_flag"
22542 || test ! -s conftest.err'
22543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544 (eval $ac_try) 2>&5
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); }; } &&
22548 { ac_try='test -s conftest.$ac_objext'
22549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550 (eval $ac_try) 2>&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); }; }; then
22554 ac_cv_type_struct_sockaddr_in6=yes
22556 echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 ac_cv_type_struct_sockaddr_in6=no
22561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22563 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
22564 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
22565 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
22567 cat >>confdefs.h <<\_ACEOF
22568 #define HAVE_STRUCT_SOCKADDR_IN6 1
22574 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22575 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
22576 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22579 cat >conftest.$ac_ext <<_ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22586 #ifdef HAVE_SYS_TYPES_H
22587 #include <sys/types.h>
22589 #ifdef HAVE_SYS_SOCKET_H
22590 #include <sys/socket.h>
22592 #ifdef HAVE_NETDB_H
22600 if ((struct addrinfo *) 0)
22602 if (sizeof (struct addrinfo))
22608 rm -f conftest.$ac_objext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610 (eval $ac_compile) 2>conftest.er1
22612 grep -v '^ *+' conftest.er1 >conftest.err
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
22617 { ac_try='test -z "$ac_c_werror_flag"
22618 || test ! -s conftest.err'
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; } &&
22624 { ac_try='test -s conftest.$ac_objext'
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 ac_cv_type_struct_addrinfo=yes
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22635 ac_cv_type_struct_addrinfo=no
22637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22639 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
22640 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
22641 if test $ac_cv_type_struct_addrinfo = yes; then
22643 cat >>confdefs.h <<\_ACEOF
22644 #define HAVE_STRUCT_ADDRINFO 1
22709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22710 echo "$as_me:$LINENO: checking for $ac_func" >&5
22711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22712 if eval "test \"\${$as_ac_var+set}\" = set"; then
22713 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 cat >conftest.$ac_ext <<_ACEOF
22718 cat confdefs.h >>conftest.$ac_ext
22719 cat >>conftest.$ac_ext <<_ACEOF
22720 /* end confdefs.h. */
22721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22723 #define $ac_func innocuous_$ac_func
22725 /* System header to define __stub macros and hopefully few prototypes,
22726 which can conflict with char $ac_func (); below.
22727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22728 <limits.h> exists even on freestanding compilers. */
22731 # include <limits.h>
22733 # include <assert.h>
22738 /* Override any gcc2 internal prototype to avoid an error. */
22743 /* We use char because int might match the return type of a gcc2
22744 builtin and then its argument prototype would still apply. */
22746 /* The GNU C library defines this for functions which it implements
22747 to always fail with ENOSYS. Some functions are actually named
22748 something starting with __ and the normal name is an alias. */
22749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22752 char (*f) () = $ac_func;
22761 return f != $ac_func;
22766 rm -f conftest.$ac_objext conftest$ac_exeext
22767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22768 (eval $ac_link) 2>conftest.er1
22770 grep -v '^ *+' conftest.er1 >conftest.err
22772 cat conftest.err >&5
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } &&
22775 { ac_try='test -z "$ac_c_werror_flag"
22776 || test ! -s conftest.err'
22777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778 (eval $ac_try) 2>&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); }; } &&
22782 { ac_try='test -s conftest$ac_exeext'
22783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784 (eval $ac_try) 2>&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); }; }; then
22788 eval "$as_ac_var=yes"
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22793 eval "$as_ac_var=no"
22795 rm -f conftest.err conftest.$ac_objext \
22796 conftest$ac_exeext conftest.$ac_ext
22798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22800 if test `eval echo '${'$as_ac_var'}'` = yes; then
22801 cat >>confdefs.h <<_ACEOF
22802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22819 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22820 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
22821 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
22822 echo $ECHO_N "(cached) $ECHO_C" >&6
22824 cat >conftest.$ac_ext <<_ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22832 #include <string.h>
22833 #ifdef HAVE_UNISTD_H
22834 #include <unistd.h>
22836 #ifdef HAVE_CRYPT_H
22839 #ifdef HAVE_ERRNO_H
22842 #ifdef HAVE_RESOURCE_H
22843 #include <resource.h>
22845 #ifdef HAVE_GETOPT_H
22846 #include <getopt.h>
22848 #ifdef HAVE_MALLOC_H
22849 #include <malloc.h>
22854 #ifdef HAVE_UTMPX_H
22857 #ifdef HAVE_SYS_SELECT_H
22858 #include <sys/select.h>
22860 #ifdef HAVE_DLFCN_H
22863 #ifdef HAVE_REGEX_H
22866 #ifdef HAVE_SYSLOG_H
22867 #include <syslog.h>
22869 #ifdef HAVE_INTTYPES_H
22870 #include <inttypes.h>
22872 #ifdef HAVE_STDINT_H
22873 #include <stdint.h>
22875 #ifdef HAVE_ARPA_INET_H
22876 #include <arpa/inet.h>
22882 char *(*pfn) = (char *(*)) $ac_func
22887 rm -f conftest.$ac_objext
22888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22889 (eval $ac_compile) 2>conftest.er1
22891 grep -v '^ *+' conftest.er1 >conftest.err
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } &&
22896 { ac_try='test -z "$ac_c_werror_flag"
22897 || test ! -s conftest.err'
22898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899 (eval $ac_try) 2>&5
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); }; } &&
22903 { ac_try='test -s conftest.$ac_objext'
22904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905 (eval $ac_try) 2>&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }; }; then
22909 eval "radius_cv_decl_needed_$ac_func=no"
22911 echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22914 eval "radius_cv_decl_needed_$ac_func=yes"
22916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22919 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22920 echo "$as_me:$LINENO: result: yes" >&5
22921 echo "${ECHO_T}yes" >&6
22922 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22923 cat >>confdefs.h <<_ACEOF
22924 #define $radius_tr_decl 1
22928 echo "$as_me:$LINENO: result: no" >&5
22929 echo "${ECHO_T}no" >&6
22935 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22936 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22937 if test "${ac_cv_type_signal+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22940 cat >conftest.$ac_ext <<_ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946 #include <sys/types.h>
22947 #include <signal.h>
22952 extern "C" void (*signal (int, void (*)(int)))(int);
22954 void (*signal ()) ();
22965 rm -f conftest.$ac_objext
22966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22967 (eval $ac_compile) 2>conftest.er1
22969 grep -v '^ *+' conftest.er1 >conftest.err
22971 cat conftest.err >&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } &&
22974 { ac_try='test -z "$ac_c_werror_flag"
22975 || test ! -s conftest.err'
22976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22977 (eval $ac_try) 2>&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); }; } &&
22981 { ac_try='test -s conftest.$ac_objext'
22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983 (eval $ac_try) 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; }; then
22987 ac_cv_type_signal=void
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 ac_cv_type_signal=int
22994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22996 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22997 echo "${ECHO_T}$ac_cv_type_signal" >&6
22999 cat >>confdefs.h <<_ACEOF
23000 #define RETSIGTYPE $ac_cv_type_signal
23005 if test "x$ac_cv_header_utmpx_h" = "xyes"
23008 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23009 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23012 cat >conftest.$ac_ext <<_ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23021 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23027 int foo = offsetof(struct utmpx, ut_xtime)
23032 rm -f conftest.$ac_objext
23033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23034 (eval $ac_compile) 2>conftest.er1
23036 grep -v '^ *+' conftest.er1 >conftest.err
23038 cat conftest.err >&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } &&
23041 { ac_try='test -z "$ac_c_werror_flag"
23042 || test ! -s conftest.err'
23043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23044 (eval $ac_try) 2>&5
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); }; } &&
23048 { ac_try='test -s conftest.$ac_objext'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; }; then
23056 echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23063 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23064 if test "x$has_element" != "x"; then
23065 echo "$as_me:$LINENO: result: yes" >&5
23066 echo "${ECHO_T}yes" >&6
23067 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23069 echo "$as_me:$LINENO: result: no" >&5
23070 echo "${ECHO_T}no" >&6
23071 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23074 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23077 cat >>confdefs.h <<\_ACEOF
23078 #define ut_xtime ut_tv.tv_sec
23085 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23086 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23089 cat >conftest.$ac_ext <<_ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23096 #include <netinet/in.h>
23098 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23104 int foo = offsetof(struct in_pktinfo, ipi_addr)
23109 rm -f conftest.$ac_objext
23110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23111 (eval $ac_compile) 2>conftest.er1
23113 grep -v '^ *+' conftest.er1 >conftest.err
23115 cat conftest.err >&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } &&
23118 { ac_try='test -z "$ac_c_werror_flag"
23119 || test ! -s conftest.err'
23120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121 (eval $ac_try) 2>&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); }; } &&
23125 { ac_try='test -s conftest.$ac_objext'
23126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23127 (eval $ac_try) 2>&5
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); }; }; then
23133 echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.$ac_ext >&5
23138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23140 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23141 if test "x$has_element" != "x"; then
23142 echo "$as_me:$LINENO: result: yes" >&5
23143 echo "${ECHO_T}yes" >&6
23144 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23146 echo "$as_me:$LINENO: result: no" >&5
23147 echo "${ECHO_T}no" >&6
23148 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23151 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_IP_PKTINFO
23161 echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23162 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6
23165 cat >conftest.$ac_ext <<_ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h. */
23172 #include <netinet/in.h>
23174 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23180 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23185 rm -f conftest.$ac_objext
23186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23187 (eval $ac_compile) 2>conftest.er1
23189 grep -v '^ *+' conftest.er1 >conftest.err
23191 cat conftest.err >&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); } &&
23194 { ac_try='test -z "$ac_c_werror_flag"
23195 || test ! -s conftest.err'
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; } &&
23201 { ac_try='test -s conftest.$ac_objext'
23202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23203 (eval $ac_try) 2>&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); }; }; then
23209 echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23216 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23217 if test "x$has_element" != "x"; then
23218 echo "$as_me:$LINENO: result: yes" >&5
23219 echo "${ECHO_T}yes" >&6
23220 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23222 echo "$as_me:$LINENO: result: no" >&5
23223 echo "${ECHO_T}no" >&6
23224 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23227 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23230 cat >>confdefs.h <<\_ACEOF
23231 #define HAVE_IN6_PKTINFO
23237 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23238 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23239 if test "${ac_cv_c_const+set}" = set; then
23240 echo $ECHO_N "(cached) $ECHO_C" >&6
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23252 /* FIXME: Include the comments suggested by Paul. */
23253 #ifndef __cplusplus
23254 /* Ultrix mips cc rejects this. */
23255 typedef int charset[2];
23257 /* SunOS 4.1.1 cc rejects this. */
23258 char const *const *ccp;
23260 /* NEC SVR4.0.2 mips cc rejects this. */
23261 struct point {int x, y;};
23262 static struct point const zero = {0,0};
23263 /* AIX XL C 1.02.0.0 rejects this.
23264 It does not let you subtract one const X* pointer from another in
23265 an arm of an if-expression whose if-part is not a constant
23267 const char *g = "string";
23268 ccp = &g + (g ? g-g : 0);
23269 /* HPUX 7.0 cc rejects these. */
23272 ccp = (char const *const *) p;
23273 { /* SCO 3.2v4 cc rejects this. */
23275 char const *s = 0 ? (char *) 0 : (char const *) 0;
23279 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23280 int x[] = {25, 17};
23281 const int *foo = &x[0];
23284 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23285 typedef const int *iptr;
23289 { /* AIX XL C 1.02.0.0 rejects this saying
23290 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23291 struct s { int j; const int *ap[3]; };
23292 struct s *b; b->j = 5;
23294 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23295 const int foo = 10;
23303 rm -f conftest.$ac_objext
23304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23305 (eval $ac_compile) 2>conftest.er1
23307 grep -v '^ *+' conftest.er1 >conftest.err
23309 cat conftest.err >&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } &&
23312 { ac_try='test -z "$ac_c_werror_flag"
23313 || test ! -s conftest.err'
23314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315 (eval $ac_try) 2>&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; } &&
23319 { ac_try='test -s conftest.$ac_objext'
23320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23321 (eval $ac_try) 2>&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; }; then
23327 echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23334 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23335 echo "${ECHO_T}$ac_cv_c_const" >&6
23336 if test $ac_cv_c_const = no; then
23338 cat >>confdefs.h <<\_ACEOF
23345 echo "$as_me:$LINENO: checking type of OS" >&5
23346 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
23348 echo "$as_me:$LINENO: result: $OS" >&5
23349 echo "${ECHO_T}$OS" >&6
23350 if test "$OS" = "OS/2"; then
23357 if test "x$GCC" = "xyes"; then
23358 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23361 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23362 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
23363 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23364 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23365 CFLAGS="$CFLAGS $devflags"
23367 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
23368 echo "${ECHO_T}yes. Using $devflags" >&6
23371 CFLAGS="$CFLAGS -DNDEBUG"
23373 echo "$as_me:$LINENO: result: no." >&5
23374 echo "${ECHO_T}no." >&6
23378 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23379 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
23380 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23383 ac_check_lib_save_LIBS=$LIBS
23384 LIBS="-lcrypt $LIBS"
23385 cat >conftest.$ac_ext <<_ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h. */
23392 /* Override any gcc2 internal prototype to avoid an error. */
23396 /* We use char because int might match the return type of a gcc2
23397 builtin and then its argument prototype would still apply. */
23407 rm -f conftest.$ac_objext conftest$ac_exeext
23408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23409 (eval $ac_link) 2>conftest.er1
23411 grep -v '^ *+' conftest.er1 >conftest.err
23413 cat conftest.err >&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } &&
23416 { ac_try='test -z "$ac_c_werror_flag"
23417 || test ! -s conftest.err'
23418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419 (eval $ac_try) 2>&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); }; } &&
23423 { ac_try='test -s conftest$ac_exeext'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; }; then
23429 ac_cv_lib_crypt_crypt=yes
23431 echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23434 ac_cv_lib_crypt_crypt=no
23436 rm -f conftest.err conftest.$ac_objext \
23437 conftest$ac_exeext conftest.$ac_ext
23438 LIBS=$ac_check_lib_save_LIBS
23440 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23441 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23442 if test $ac_cv_lib_crypt_crypt = yes; then
23447 if test "$CRYPTLIB" != ""; then
23449 cat >>confdefs.h <<\_ACEOF
23454 echo "$as_me:$LINENO: checking for crypt" >&5
23455 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23456 if test "${ac_cv_func_crypt+set}" = set; then
23457 echo $ECHO_N "(cached) $ECHO_C" >&6
23459 cat >conftest.$ac_ext <<_ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h. */
23465 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23467 #define crypt innocuous_crypt
23469 /* System header to define __stub macros and hopefully few prototypes,
23470 which can conflict with char crypt (); below.
23471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23472 <limits.h> exists even on freestanding compilers. */
23475 # include <limits.h>
23477 # include <assert.h>
23482 /* Override any gcc2 internal prototype to avoid an error. */
23487 /* We use char because int might match the return type of a gcc2
23488 builtin and then its argument prototype would still apply. */
23490 /* The GNU C library defines this for functions which it implements
23491 to always fail with ENOSYS. Some functions are actually named
23492 something starting with __ and the normal name is an alias. */
23493 #if defined (__stub_crypt) || defined (__stub___crypt)
23496 char (*f) () = crypt;
23510 rm -f conftest.$ac_objext conftest$ac_exeext
23511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23512 (eval $ac_link) 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"
23520 || test ! -s conftest.err'
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; } &&
23526 { ac_try='test -s conftest$ac_exeext'
23527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528 (eval $ac_try) 2>&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; }; then
23532 ac_cv_func_crypt=yes
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 ac_cv_func_crypt=no
23539 rm -f conftest.err conftest.$ac_objext \
23540 conftest$ac_exeext conftest.$ac_ext
23542 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23543 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23544 if test $ac_cv_func_crypt = yes; then
23546 cat >>confdefs.h <<\_ACEOF
23554 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23555 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23556 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23559 ac_check_lib_save_LIBS=$LIBS
23560 LIBS="-lcipher $LIBS"
23561 cat >conftest.$ac_ext <<_ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23568 /* Override any gcc2 internal prototype to avoid an error. */
23572 /* We use char because int might match the return type of a gcc2
23573 builtin and then its argument prototype would still apply. */
23583 rm -f conftest.$ac_objext conftest$ac_exeext
23584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23585 (eval $ac_link) 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } &&
23592 { ac_try='test -z "$ac_c_werror_flag"
23593 || test ! -s conftest.err'
23594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; } &&
23599 { ac_try='test -s conftest$ac_exeext'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23605 ac_cv_lib_cipher_setkey=yes
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23610 ac_cv_lib_cipher_setkey=no
23612 rm -f conftest.err conftest.$ac_objext \
23613 conftest$ac_exeext conftest.$ac_ext
23614 LIBS=$ac_check_lib_save_LIBS
23616 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23617 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
23618 if test $ac_cv_lib_cipher_setkey = yes; then
23619 CRYPTLIB="${CRYPTLIB} -lcipher"
23625 if test "x$WITH_SNMP" = "xyes"; then
23630 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23631 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
23633 cat >conftest.$ac_ext <<_ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23640 #ifdef HAVE_SYS_TYPES_H
23641 #include <sys/types.h>
23643 #ifdef HAVE_STDINT_H
23644 #include <stdint.h>
23646 #ifdef HAVE_STDIO_H
23649 #ifdef HAVE_NETDB_H
23652 #ifdef HAVE_UNISTD_H
23653 #include <unistd.h>
23655 #include <ucd-snmp/ucd-snmp-config.h>
23656 #include <ucd-snmp/asn1.h>
23657 #include <ucd-snmp/snmp.h>
23658 #include <ucd-snmp/snmp_impl.h>
23667 rm -f conftest.$ac_objext
23668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23669 (eval $ac_compile) 2>conftest.er1
23671 grep -v '^ *+' conftest.er1 >conftest.err
23673 cat conftest.err >&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } &&
23676 { ac_try='test -z "$ac_c_werror_flag"
23677 || test ! -s conftest.err'
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest.$ac_objext'
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 SNMP_INCLUDE="";ucdsnmp=yes
23691 echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23698 if test "x$ucdsnmp" = "x"; then
23699 old_CFLAGS="$CFLAGS"
23700 for try in /usr/include /usr/local/include $snmp_include_dir; do
23701 CFLAGS="$old_CFLAGS -I$try"
23702 cat >conftest.$ac_ext <<_ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h. */
23709 #ifdef HAVE_SYS_TYPES_H
23710 #include <sys/types.h>
23712 #ifdef HAVE_STDINT_H
23713 #include <stdint.h>
23715 #ifdef HAVE_STDIO_H
23718 #ifdef HAVE_NETDB_H
23721 #ifdef HAVE_UNISTD_H
23722 #include <unistd.h>
23724 #include <ucd-snmp/ucd-snmp-config.h>
23725 #include <ucd-snmp/asn1.h>
23726 #include <ucd-snmp/snmp.h>
23727 #include <ucd-snmp/snmp_impl.h>
23736 rm -f conftest.$ac_objext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23738 (eval $ac_compile) 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } &&
23745 { ac_try='test -z "$ac_c_werror_flag"
23746 || test ! -s conftest.err'
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; } &&
23752 { ac_try='test -s conftest.$ac_objext'
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; }; then
23758 SNMP_INCLUDE="-I$try";ucdsnmp=yes
23760 echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23766 if test "x$ucdsnmp" != "x"; then
23770 CFLAGS="$old_CFLAGS"
23773 if test "x$ucdsnmp" = "x"; then
23774 old_CFLAGS="$CFLAGS"
23775 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23776 CFLAGS="$old_CFLAGS -I$try"
23777 cat >conftest.$ac_ext <<_ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23784 #ifdef HAVE_SYS_TYPES_H
23785 #include <sys/types.h>
23787 #ifdef HAVE_STDINT_H
23788 #include <stdint.h>
23790 #ifdef HAVE_STDIO_H
23793 #ifdef HAVE_NETDB_H
23796 #ifdef HAVE_UNISTD_H
23797 #include <unistd.h>
23801 #include <snmp_impl.h>
23810 rm -f conftest.$ac_objext
23811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23812 (eval $ac_compile) 2>conftest.er1
23814 grep -v '^ *+' conftest.er1 >conftest.err
23816 cat conftest.err >&5
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); } &&
23819 { ac_try='test -z "$ac_c_werror_flag"
23820 || test ! -s conftest.err'
23821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23822 (eval $ac_try) 2>&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); }; } &&
23826 { ac_try='test -s conftest.$ac_objext'
23827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23828 (eval $ac_try) 2>&5
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); }; }; then
23832 SNMP_INCLUDE="";ucdsnmp=no
23834 echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23840 if test "x$ucdsnmp" != "x"; then
23844 CFLAGS="$old_CFLAGS"
23847 if test "x$ucdsnmp" = "x"; then
23848 old_CFLAGS="$CFLAGS"
23849 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23850 CFLAGS="$old_CFLAGS -I$try"
23851 cat >conftest.$ac_ext <<_ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h. */
23858 #ifdef HAVE_SYS_TYPES_H
23859 #include <sys/types.h>
23861 #ifdef HAVE_STDINT_H
23862 #include <stdint.h>
23864 #ifdef HAVE_STDIO_H
23867 #ifdef HAVE_NETDB_H
23870 #ifdef HAVE_UNISTD_H
23871 #include <unistd.h>
23875 #include <snmp_impl.h>
23884 rm -f conftest.$ac_objext
23885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23886 (eval $ac_compile) 2>conftest.er1
23888 grep -v '^ *+' conftest.er1 >conftest.err
23890 cat conftest.err >&5
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } &&
23893 { ac_try='test -z "$ac_c_werror_flag"
23894 || test ! -s conftest.err'
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; } &&
23900 { ac_try='test -s conftest.$ac_objext'
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; }; then
23906 SNMP_INCLUDE="-I$try";ucdsnmp=no
23908 echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23914 if test "x$ucdsnmp" != "x"; then
23918 CFLAGS="$old_CFLAGS"
23921 if test "x$ucdsnmp" = "x"; then
23922 echo "$as_me:$LINENO: result: no" >&5
23923 echo "${ECHO_T}no" >&6
23925 if test "x$ucdsnmp" = "xyes"; then
23926 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23927 echo "${ECHO_T}(ucd-snmp)yes" >&6
23929 cat >>confdefs.h <<\_ACEOF
23930 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
23934 echo "$as_me:$LINENO: result: yes" >&5
23935 echo "${ECHO_T}yes" >&6
23937 cat >>confdefs.h <<\_ACEOF
23938 #define HAVE_ASN1_SNMP_SNMPIMPL_H
23942 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23943 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
23946 LIBS="$old_LIBS -lsnmp"
23947 cat >conftest.$ac_ext <<_ACEOF
23950 cat confdefs.h >>conftest.$ac_ext
23951 cat >>conftest.$ac_ext <<_ACEOF
23952 /* end confdefs.h. */
23953 extern char snmp_build_var_op();
23957 snmp_build_var_op()
23962 rm -f conftest.$ac_objext conftest$ac_exeext
23963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23964 (eval $ac_link) 2>conftest.er1
23966 grep -v '^ *+' conftest.er1 >conftest.err
23968 cat conftest.err >&5
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); } &&
23971 { ac_try='test -z "$ac_c_werror_flag"
23972 || test ! -s conftest.err'
23973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23974 (eval $ac_try) 2>&5
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); }; } &&
23978 { ac_try='test -s conftest$ac_exeext'
23979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23980 (eval $ac_try) 2>&5
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); }; }; then
23986 echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23991 rm -f conftest.err conftest.$ac_objext \
23992 conftest$ac_exeext conftest.$ac_ext
23994 if test "x$SNMP_LIBS" = "x"; then
23995 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23996 LIBS="$old_LIBS -L$try -lsnmp"
23997 cat >conftest.$ac_ext <<_ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h. */
24003 extern char snmp_build_var_op();
24007 snmp_build_var_op()
24012 rm -f conftest.$ac_objext conftest$ac_exeext
24013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24014 (eval $ac_link) 2>conftest.er1
24016 grep -v '^ *+' conftest.er1 >conftest.err
24018 cat conftest.err >&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); } &&
24021 { ac_try='test -z "$ac_c_werror_flag"
24022 || test ! -s conftest.err'
24023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24024 (eval $ac_try) 2>&5
24026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); }; } &&
24028 { ac_try='test -s conftest$ac_exeext'
24029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24030 (eval $ac_try) 2>&5
24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); }; }; then
24034 SNMP_LIBS="-L$try -lsnmp"
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24041 rm -f conftest.err conftest.$ac_objext \
24042 conftest$ac_exeext conftest.$ac_ext
24043 if test "x$SNMP_LIBS" != "x"; then
24046 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24047 cat >conftest.$ac_ext <<_ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h. */
24053 extern char snmp_build_var_op();
24057 snmp_build_var_op()
24062 rm -f conftest.$ac_objext conftest$ac_exeext
24063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24064 (eval $ac_link) 2>conftest.er1
24066 grep -v '^ *+' conftest.er1 >conftest.err
24068 cat conftest.err >&5
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); } &&
24071 { ac_try='test -z "$ac_c_werror_flag"
24072 || test ! -s conftest.err'
24073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; } &&
24078 { ac_try='test -s conftest$ac_exeext'
24079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080 (eval $ac_try) 2>&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); }; }; then
24084 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24086 echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24091 rm -f conftest.err conftest.$ac_objext \
24092 conftest$ac_exeext conftest.$ac_ext
24093 if test "x$SNMP_LIBS" != "x"; then
24096 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24103 extern char snmp_build_var_op();
24107 snmp_build_var_op()
24112 rm -f conftest.$ac_objext conftest$ac_exeext
24113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24114 (eval $ac_link) 2>conftest.er1
24116 grep -v '^ *+' conftest.er1 >conftest.err
24118 cat conftest.err >&5
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } &&
24121 { ac_try='test -z "$ac_c_werror_flag"
24122 || test ! -s conftest.err'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; } &&
24128 { ac_try='test -s conftest$ac_exeext'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24141 rm -f conftest.err conftest.$ac_objext \
24142 conftest$ac_exeext conftest.$ac_ext
24143 if test "x$SNMP_LIBS" != "x"; then
24150 CFLAGS="$old_CFLAGS"
24151 if test "x$SNMP_LIBS" = "x"; then
24152 echo "$as_me:$LINENO: result: no" >&5
24153 echo "${ECHO_T}no" >&6
24156 echo "$as_me:$LINENO: result: yes" >&5
24157 echo "${ECHO_T}yes" >&6
24159 cat >>confdefs.h <<\_ACEOF
24164 cat >>confdefs.h <<\_ACEOF
24165 #define HAVE_LIBSNMP
24174 cat >>confdefs.h <<\_ACEOF
24179 cat >>confdefs.h <<\_ACEOF
24180 #define SYSVSTYLE 2
24184 cat >>confdefs.h <<\_ACEOF
24188 gethostbyaddrrstyle=""
24189 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24190 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24194 cat >>confdefs.h <<\_ACEOF
24195 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24198 gethostbyaddrrstyle=BSD
24199 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24200 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24203 if test "x$gethostbyaddrrstyle" = "x"; then
24204 cat >conftest.$ac_ext <<_ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h. */
24217 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24222 rm -f conftest.$ac_objext conftest$ac_exeext
24223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24224 (eval $ac_link) 2>conftest.er1
24226 grep -v '^ *+' conftest.er1 >conftest.err
24228 cat conftest.err >&5
24229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230 (exit $ac_status); } &&
24231 { ac_try='test -z "$ac_c_werror_flag"
24232 || test ! -s conftest.err'
24233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24234 (eval $ac_try) 2>&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); }; } &&
24238 { ac_try='test -s conftest$ac_exeext'
24239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24240 (eval $ac_try) 2>&5
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); }; }; then
24246 cat >>confdefs.h <<\_ACEOF
24247 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24250 gethostbyaddrrstyle=GNU
24253 echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24257 rm -f conftest.err conftest.$ac_objext \
24258 conftest$ac_exeext conftest.$ac_ext
24260 if test "x$gethostbyaddrrstyle" = "x"; then
24261 cat >conftest.$ac_ext <<_ACEOF
24264 cat confdefs.h >>conftest.$ac_ext
24265 cat >>conftest.$ac_ext <<_ACEOF
24266 /* end confdefs.h. */
24274 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24279 rm -f conftest.$ac_objext conftest$ac_exeext
24280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24281 (eval $ac_link) 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"
24289 || test ! -s conftest.err'
24290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24291 (eval $ac_try) 2>&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); }; } &&
24295 { ac_try='test -s conftest$ac_exeext'
24296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297 (eval $ac_try) 2>&5
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); }; }; then
24303 cat >>confdefs.h <<\_ACEOF
24304 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24307 gethostbyaddrrstyle=SYSV
24310 echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24314 rm -f conftest.err conftest.$ac_objext \
24315 conftest$ac_exeext conftest.$ac_ext
24317 if test "x$gethostbyaddrrstyle" = "x"; then
24318 cat >conftest.$ac_ext <<_ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h. */
24331 gethostbyaddr(NULL, 0, 0)
24336 rm -f conftest.$ac_objext conftest$ac_exeext
24337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24338 (eval $ac_link) 2>conftest.er1
24340 grep -v '^ *+' conftest.er1 >conftest.err
24342 cat conftest.err >&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); } &&
24345 { ac_try='test -z "$ac_c_werror_flag"
24346 || test ! -s conftest.err'
24347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348 (eval $ac_try) 2>&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); }; } &&
24352 { ac_try='test -s conftest$ac_exeext'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; }; then
24360 cat >>confdefs.h <<\_ACEOF
24361 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24364 gethostbyaddrrstyle=BSD
24367 echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24371 rm -f conftest.err conftest.$ac_objext \
24372 conftest$ac_exeext conftest.$ac_ext
24375 if test "x$gethostbyaddrrstyle" = "x"; then
24376 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24377 echo "${ECHO_T}none! It must not exist, here." >&6
24379 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24380 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
24383 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24384 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24385 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24388 gethostbynamerstyle=""
24389 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24390 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
24391 cat >conftest.$ac_ext <<_ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24404 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24409 rm -f conftest.$ac_objext conftest$ac_exeext
24410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24411 (eval $ac_link) 2>conftest.er1
24413 grep -v '^ *+' conftest.er1 >conftest.err
24415 cat conftest.err >&5
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); } &&
24418 { ac_try='test -z "$ac_c_werror_flag"
24419 || test ! -s conftest.err'
24420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; } &&
24425 { ac_try='test -s conftest$ac_exeext'
24426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427 (eval $ac_try) 2>&5
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); }; }; then
24433 cat >>confdefs.h <<\_ACEOF
24434 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24437 gethostbynamerstyle=GNU
24440 echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24444 rm -f conftest.err conftest.$ac_objext \
24445 conftest$ac_exeext conftest.$ac_ext
24446 if test "x$gethostbynamerstyle" = "x"; then
24447 cat >conftest.$ac_ext <<_ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h. */
24460 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24465 rm -f conftest.$ac_objext conftest$ac_exeext
24466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24467 (eval $ac_link) 2>conftest.er1
24469 grep -v '^ *+' conftest.er1 >conftest.err
24471 cat conftest.err >&5
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); } &&
24474 { ac_try='test -z "$ac_c_werror_flag"
24475 || test ! -s conftest.err'
24476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477 (eval $ac_try) 2>&5
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); }; } &&
24481 { ac_try='test -s conftest$ac_exeext'
24482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483 (eval $ac_try) 2>&5
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); }; }; then
24489 cat >>confdefs.h <<\_ACEOF
24490 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24493 gethostbynamerstyle=SYSV
24496 echo "$as_me: failed program was:" >&5
24497 sed 's/^/| /' conftest.$ac_ext >&5
24500 rm -f conftest.err conftest.$ac_objext \
24501 conftest$ac_exeext conftest.$ac_ext
24503 if test "x$gethostbynamerstyle" = "x"; then
24504 cat >conftest.$ac_ext <<_ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24517 gethostbyname(NULL)
24522 rm -f conftest.$ac_objext conftest$ac_exeext
24523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24524 (eval $ac_link) 2>conftest.er1
24526 grep -v '^ *+' conftest.er1 >conftest.err
24528 cat conftest.err >&5
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } &&
24531 { ac_try='test -z "$ac_c_werror_flag"
24532 || test ! -s conftest.err'
24533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24534 (eval $ac_try) 2>&5
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); }; } &&
24538 { ac_try='test -s conftest$ac_exeext'
24539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24540 (eval $ac_try) 2>&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); }; }; then
24546 cat >>confdefs.h <<\_ACEOF
24547 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24550 gethostbynamerstyle=BSD
24553 echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24557 rm -f conftest.err conftest.$ac_objext \
24558 conftest$ac_exeext conftest.$ac_ext
24561 if test "x$gethostbynamerstyle" = "x"; then
24562 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24563 echo "${ECHO_T}none! It must not exist, here." >&6
24565 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24566 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
24569 if test "x$gethostbynamerstyle" = "xBSD"; then
24570 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24571 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24575 cat >>confdefs.h <<\_ACEOF
24576 #define POSIXSTYLE 1
24580 cat >>confdefs.h <<\_ACEOF
24581 #define SOLARISSTYLE 2
24585 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24586 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
24587 cat >conftest.$ac_ext <<_ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24599 ctime_r(NULL, NULL, 0)
24604 rm -f conftest.$ac_objext conftest$ac_exeext
24605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24606 (eval $ac_link) 2>conftest.er1
24608 grep -v '^ *+' conftest.er1 >conftest.err
24610 cat conftest.err >&5
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); } &&
24613 { ac_try='test -z "$ac_c_werror_flag"
24614 || test ! -s conftest.err'
24615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616 (eval $ac_try) 2>&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; } &&
24620 { ac_try='test -s conftest$ac_exeext'
24621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24622 (eval $ac_try) 2>&5
24624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); }; }; then
24628 cat >>confdefs.h <<\_ACEOF
24629 #define CTIMERSTYLE SOLARISSTYLE
24632 ctimerstyle="SOLARIS"
24635 echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24639 rm -f conftest.err conftest.$ac_objext \
24640 conftest$ac_exeext conftest.$ac_ext
24641 if test "x$ctimerstyle" = "x"; then
24642 cat >conftest.$ac_ext <<_ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h. */
24654 ctime_r(NULL, NULL)
24659 rm -f conftest.$ac_objext conftest$ac_exeext
24660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24661 (eval $ac_link) 2>conftest.er1
24663 grep -v '^ *+' conftest.er1 >conftest.err
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } &&
24668 { ac_try='test -z "$ac_c_werror_flag"
24669 || test ! -s conftest.err'
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; } &&
24675 { ac_try='test -s conftest$ac_exeext'
24676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677 (eval $ac_try) 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; }; then
24683 cat >>confdefs.h <<\_ACEOF
24684 #define CTIMERSTYLE POSIXSTYLE
24687 ctimerstyle="POSIX"
24690 echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24694 rm -f conftest.err conftest.$ac_objext \
24695 conftest$ac_exeext conftest.$ac_ext
24698 if test "x$ctimerstyle" = "x"; then
24699 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24700 echo "${ECHO_T}none! It must not exist, here." >&6
24702 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24703 echo "${ECHO_T}${ctimerstyle}-style" >&6
24711 export top_builddir
24712 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24713 echo "${ECHO_T}top_builddir=$top_builddir" >&6
24719 mysubdirs="$LIBLTDLPATH"
24720 if test "x$EXPERIMENTAL" = "xyes"; then
24721 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
24722 mysubdirs=`echo $mysubdirs $bar`
24724 for bar in `cat "${srcdir}"/src/modules/stable`; do
24725 if test -f "${srcdir}"/src/modules/$bar/configure; then
24726 mysubdirs="$mysubdirs src/modules/$bar"
24731 if test "x$EXPERIMENTAL" = "xyes"; then
24732 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
24733 MODULES="$MODULES $foo"
24736 for foo in `cat "${srcdir}"/src/modules/stable`; do
24737 MODULES="$MODULES $foo"
24743 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24748 ac_config_commands="$ac_config_commands stamp-h"
24750 ac_config_commands="$ac_config_commands build-radpaths-h"
24752 ac_config_commands="$ac_config_commands main-chmod"
24754 ac_config_commands="$ac_config_commands scripts-chmod"
24760 USE_SHARED_LIBS=$enable_shared
24762 USE_STATIC_LIBS=$enable_static
24769 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"
24770 cat >confcache <<\_ACEOF
24771 # This file is a shell script that caches the results of configure
24772 # tests run on this system so they can be shared between configure
24773 # scripts and configure runs, see configure's option --config-cache.
24774 # It is not useful on other systems. If it contains results you don't
24775 # want to keep, you may remove or edit it.
24777 # config.status only pays attention to the cache file if you give it
24778 # the --recheck option to rerun configure.
24780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24782 # following values.
24786 # The following way of writing the cache mishandles newlines in values,
24787 # but we know of no workaround that is simple, portable, and efficient.
24788 # So, don't put newlines in cache variables' values.
24789 # Ultrix sh set writes to stderr and can't be redirected directly,
24790 # and sets the high bit in the cache file unless we assign to the vars.
24793 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24795 # `set' does not quote correctly, so add quotes (double-quote
24796 # substitution turns \\\\ into \\, and sed turns \\ into \).
24799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24802 # `set' quotes correctly as required by POSIX, so do not add quotes.
24804 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24813 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24815 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24816 if test -w $cache_file; then
24817 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24818 cat confcache >$cache_file
24820 echo "not updating unwritable cache $cache_file"
24825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24826 # Let make expand exec_prefix.
24827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24829 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24830 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24831 # trailing colons and then remove the whole line if VPATH becomes empty
24832 # (actually we leave an empty line to preserve line numbers).
24833 if test "x$srcdir" = x.; then
24834 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24835 s/:*\$(srcdir):*/:/;
24836 s/:*\${srcdir}:*/:/;
24838 s/^\([^=]*=[ ]*\):*/\1/;
24844 DEFS=-DHAVE_CONFIG_H
24848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24849 # 1. Remove the extension, and $U if already installed.
24850 ac_i=`echo "$ac_i" |
24851 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24853 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24854 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24856 LIBOBJS=$ac_libobjs
24858 LTLIBOBJS=$ac_ltlibobjs
24862 : ${CONFIG_STATUS=./config.status}
24863 ac_clean_files_save=$ac_clean_files
24864 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24865 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24866 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24867 cat >$CONFIG_STATUS <<_ACEOF
24869 # Generated by $as_me.
24870 # Run this file to recreate the current configuration.
24871 # Compiler output produced by configure, useful for debugging
24872 # configure, is in config.log if it exists.
24875 ac_cs_recheck=false
24877 SHELL=\${CONFIG_SHELL-$SHELL}
24880 cat >>$CONFIG_STATUS <<\_ACEOF
24881 ## --------------------- ##
24882 ## M4sh Initialization. ##
24883 ## --------------------- ##
24885 # Be Bourne compatible
24886 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24889 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24890 # is contrary to our usage. Disable this feature.
24891 alias -g '${1+"$@"}'='"$@"'
24892 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24895 DUALCASE=1; export DUALCASE # for MKS sh
24897 # Support unset when possible.
24898 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24905 # Work around bugs in pre-3.0 UWIN ksh.
24906 $as_unset ENV MAIL MAILPATH
24913 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24914 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24915 LC_TELEPHONE LC_TIME
24917 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24918 eval $as_var=C; export $as_var
24924 # Required to use basename.
24925 if expr a : '\(a\)' >/dev/null 2>&1; then
24931 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24932 as_basename=basename
24938 # Name of the executable.
24939 as_me=`$as_basename "$0" ||
24940 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24941 X"$0" : 'X\(//\)$' \| \
24942 X"$0" : 'X\(/\)$' \| \
24943 . : '\(.\)' 2>/dev/null ||
24945 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24946 /^X\/\(\/\/\)$/{ s//\1/; q; }
24947 /^X\/\(\/\).*/{ s//\1/; q; }
24951 # PATH needs CR, and LINENO needs CR and PATH.
24952 # Avoid depending upon Character Ranges.
24953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24956 as_cr_digits='0123456789'
24957 as_cr_alnum=$as_cr_Letters$as_cr_digits
24959 # The user is always right.
24960 if test "${PATH_SEPARATOR+set}" != set; then
24961 echo "#! /bin/sh" >conf$$.sh
24962 echo "exit 0" >>conf$$.sh
24964 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24973 as_lineno_1=$LINENO
24974 as_lineno_2=$LINENO
24975 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24976 test "x$as_lineno_1" != "x$as_lineno_2" &&
24977 test "x$as_lineno_3" = "x$as_lineno_2" || {
24978 # Find who we are. Look in the path if we contain no path at all
24981 *[\\/]* ) as_myself=$0 ;;
24982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24983 for as_dir in $PATH
24986 test -z "$as_dir" && as_dir=.
24987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24992 # We did not find ourselves, most probably we were run as `sh COMMAND'
24993 # in which case we are not to be found in the path.
24994 if test "x$as_myself" = x; then
24997 if test ! -f "$as_myself"; then
24998 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24999 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25000 { (exit 1); exit 1; }; }
25002 case $CONFIG_SHELL in
25004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25005 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25008 test -z "$as_dir" && as_dir=.
25009 for as_base in sh bash ksh sh5; do
25012 if ("$as_dir/$as_base" -c '
25013 as_lineno_1=$LINENO
25014 as_lineno_2=$LINENO
25015 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25016 test "x$as_lineno_1" != "x$as_lineno_2" &&
25017 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25018 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25019 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25020 CONFIG_SHELL=$as_dir/$as_base
25021 export CONFIG_SHELL
25022 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25030 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25031 # uniformly replaced by the line number. The first 'sed' inserts a
25032 # line-number line before each line; the second 'sed' does the real
25033 # work. The second script uses 'N' to pair each line-number line
25034 # with the numbered line, and appends trailing '-' during
25035 # substitution so that $LINENO is not a special case at line end.
25036 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25037 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25038 sed '=' <$as_myself |
25043 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25046 s,^['$as_cr_digits']*\n,,
25047 ' >$as_me.lineno &&
25048 chmod +x $as_me.lineno ||
25049 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25050 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25051 { (exit 1); exit 1; }; }
25053 # Don't try to exec as it changes $[0], causing all sort of problems
25054 # (the dirname of $[0] is not the place where we might find the
25055 # original and so on. Autoconf is especially sensible to this).
25057 # Exit status is that of the last command.
25062 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25063 *c*,-n*) ECHO_N= ECHO_C='
25065 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25066 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25069 if expr a : '\(a\)' >/dev/null 2>&1; then
25075 rm -f conf$$ conf$$.exe conf$$.file
25077 if ln -s conf$$.file conf$$ 2>/dev/null; then
25078 # We could just check for DJGPP; but this test a) works b) is more generic
25079 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25080 if test -f conf$$.exe; then
25081 # Don't use ln at all; we don't have any links
25086 elif ln conf$$.file conf$$ 2>/dev/null; then
25091 rm -f conf$$ conf$$.exe conf$$.file
25093 if mkdir -p . 2>/dev/null; then
25096 test -d ./-p && rmdir ./-p
25100 as_executable_p="test -f"
25102 # Sed expression to map a string onto a valid CPP name.
25103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25105 # Sed expression to map a string onto a valid variable name.
25106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25110 # We need space, tab and new line, in precisely that order.
25120 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25121 # report actual input values of CONFIG_FILES etc. instead of their
25122 # values after options handling. Logging --version etc. is OK.
25126 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25127 ## Running $as_me. ##
25132 This file was extended by $as_me, which was
25133 generated by GNU Autoconf 2.59. Invocation command line was
25135 CONFIG_FILES = $CONFIG_FILES
25136 CONFIG_HEADERS = $CONFIG_HEADERS
25137 CONFIG_LINKS = $CONFIG_LINKS
25138 CONFIG_COMMANDS = $CONFIG_COMMANDS
25142 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25146 # Files that config.status was made for.
25147 if test -n "$ac_config_files"; then
25148 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25151 if test -n "$ac_config_headers"; then
25152 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25155 if test -n "$ac_config_links"; then
25156 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25159 if test -n "$ac_config_commands"; then
25160 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25163 cat >>$CONFIG_STATUS <<\_ACEOF
25166 \`$as_me' instantiates files from templates according to the
25167 current configuration.
25169 Usage: $0 [OPTIONS] [FILE]...
25171 -h, --help print this help, then exit
25172 -V, --version print version number, then exit
25173 -q, --quiet do not print progress messages
25174 -d, --debug don't remove temporary files
25175 --recheck update $as_me by reconfiguring in the same conditions
25176 --file=FILE[:TEMPLATE]
25177 instantiate the configuration file FILE
25178 --header=FILE[:TEMPLATE]
25179 instantiate the configuration header FILE
25181 Configuration files:
25184 Configuration headers:
25187 Configuration commands:
25190 Report bugs to <bug-autoconf@gnu.org>."
25193 cat >>$CONFIG_STATUS <<_ACEOF
25196 configured by $0, generated by GNU Autoconf 2.59,
25197 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25199 Copyright (C) 2003 Free Software Foundation, Inc.
25200 This config.status script is free software; the Free Software Foundation
25201 gives unlimited permission to copy, distribute and modify it."
25205 cat >>$CONFIG_STATUS <<\_ACEOF
25206 # If no file are specified by the user, then we need to provide default
25207 # value. By we need to know if files were specified by the user.
25213 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25214 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25222 *) # This is not an option, so the user has probably given explicit
25225 ac_need_defaults=false;;
25229 # Handling of the options.
25231 cat >>$CONFIG_STATUS <<\_ACEOF
25232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25234 --version | --vers* | -V )
25235 echo "$ac_cs_version"; exit 0 ;;
25237 # Conflict between --help and --header
25238 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25239 Try \`$0 --help' for more information." >&5
25240 echo "$as_me: error: ambiguous option: $1
25241 Try \`$0 --help' for more information." >&2;}
25242 { (exit 1); exit 1; }; };;
25243 --help | --hel | -h )
25244 echo "$ac_cs_usage"; exit 0 ;;
25245 --debug | --d* | -d )
25247 --file | --fil | --fi | --f )
25249 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25250 ac_need_defaults=false;;
25251 --header | --heade | --head | --hea )
25253 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25254 ac_need_defaults=false;;
25255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25256 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25259 # This is an error.
25260 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25261 Try \`$0 --help' for more information." >&5
25262 echo "$as_me: error: unrecognized option: $1
25263 Try \`$0 --help' for more information." >&2;}
25264 { (exit 1); exit 1; }; } ;;
25266 *) ac_config_targets="$ac_config_targets $1" ;;
25272 ac_configure_extra_args=
25274 if $ac_cs_silent; then
25276 ac_configure_extra_args="$ac_configure_extra_args --silent"
25280 cat >>$CONFIG_STATUS <<_ACEOF
25281 if \$ac_cs_recheck; then
25282 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25283 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25292 cat >>$CONFIG_STATUS <<\_ACEOF
25293 for ac_config_target in $ac_config_targets
25295 case "$ac_config_target" in
25296 # Handling of arguments.
25297 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25298 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25299 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25300 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25301 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25302 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25303 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25304 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25305 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25306 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25307 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25308 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25309 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25310 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25311 "./raddb/radrelay.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
25312 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25313 "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25314 "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25315 "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25316 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25317 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25318 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25319 { (exit 1); exit 1; }; };;
25323 # If the user did not use the arguments to specify the items to instantiate,
25324 # then the envvar interface is used. Set only those that are not.
25325 # We use the long form for the default assignment because of an extremely
25326 # bizarre bug on SunOS 4.1.3.
25327 if $ac_need_defaults; then
25328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25329 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25330 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25333 # Have a temporary directory for convenience. Make it in the build tree
25334 # simply because there is no reason to put it here, and in addition,
25335 # creating and moving files from /tmp can sometimes cause problems.
25336 # Create a temporary directory, and hook for its removal unless debugging.
25339 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25340 trap '{ (exit 1); exit 1; }' 1 2 13 15
25343 # Create a (secure) tmp directory for tmp files.
25346 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25347 test -n "$tmp" && test -d "$tmp"
25350 tmp=./confstat$$-$RANDOM
25351 (umask 077 && mkdir $tmp)
25354 echo "$me: cannot create a temporary directory in ." >&2
25355 { (exit 1); exit 1; }
25360 cat >>$CONFIG_STATUS <<_ACEOF
25363 # CONFIG_FILES section.
25366 # No need to generate the scripts if there are no CONFIG_FILES.
25367 # This happens for instance when ./config.status config.h
25368 if test -n "\$CONFIG_FILES"; then
25369 # Protect against being on the right side of a sed subst in config.status.
25370 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25371 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25372 s,@SHELL@,$SHELL,;t t
25373 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25374 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25375 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25376 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25377 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25378 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25379 s,@exec_prefix@,$exec_prefix,;t t
25380 s,@prefix@,$prefix,;t t
25381 s,@program_transform_name@,$program_transform_name,;t t
25382 s,@bindir@,$bindir,;t t
25383 s,@sbindir@,$sbindir,;t t
25384 s,@libexecdir@,$libexecdir,;t t
25385 s,@datadir@,$datadir,;t t
25386 s,@sysconfdir@,$sysconfdir,;t t
25387 s,@sharedstatedir@,$sharedstatedir,;t t
25388 s,@localstatedir@,$localstatedir,;t t
25389 s,@libdir@,$libdir,;t t
25390 s,@includedir@,$includedir,;t t
25391 s,@oldincludedir@,$oldincludedir,;t t
25392 s,@infodir@,$infodir,;t t
25393 s,@mandir@,$mandir,;t t
25394 s,@build_alias@,$build_alias,;t t
25395 s,@host_alias@,$host_alias,;t t
25396 s,@target_alias@,$target_alias,;t t
25397 s,@DEFS@,$DEFS,;t t
25398 s,@ECHO_C@,$ECHO_C,;t t
25399 s,@ECHO_N@,$ECHO_N,;t t
25400 s,@ECHO_T@,$ECHO_T,;t t
25401 s,@LIBS@,$LIBS,;t t
25403 s,@CFLAGS@,$CFLAGS,;t t
25404 s,@LDFLAGS@,$LDFLAGS,;t t
25405 s,@CPPFLAGS@,$CPPFLAGS,;t t
25406 s,@ac_ct_CC@,$ac_ct_CC,;t t
25407 s,@EXEEXT@,$EXEEXT,;t t
25408 s,@OBJEXT@,$OBJEXT,;t t
25410 s,@CXXFLAGS@,$CXXFLAGS,;t t
25411 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25413 s,@EGREP@,$EGREP,;t t
25414 s,@RANLIB@,$RANLIB,;t t
25415 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25416 s,@GMAKE@,$GMAKE,;t t
25417 s,@MAKE@,$MAKE,;t t
25418 s,@LTDL_SUBDIRS@,$LTDL_SUBDIRS,;t t
25419 s,@LIBTOOL@,$LIBTOOL,;t t
25420 s,@build@,$build,;t t
25421 s,@build_cpu@,$build_cpu,;t t
25422 s,@build_vendor@,$build_vendor,;t t
25423 s,@build_os@,$build_os,;t t
25424 s,@host@,$host,;t t
25425 s,@host_cpu@,$host_cpu,;t t
25426 s,@host_vendor@,$host_vendor,;t t
25427 s,@host_os@,$host_os,;t t
25428 s,@LN_S@,$LN_S,;t t
25429 s,@ECHO@,$ECHO,;t t
25431 s,@ac_ct_AR@,$ac_ct_AR,;t t
25432 s,@STRIP@,$STRIP,;t t
25433 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25434 s,@CXXCPP@,$CXXCPP,;t t
25436 s,@FFLAGS@,$FFLAGS,;t t
25437 s,@ac_ct_F77@,$ac_ct_F77,;t t
25438 s,@docdir@,$docdir,;t t
25439 s,@logdir@,$logdir,;t t
25440 s,@radacctdir@,$radacctdir,;t t
25441 s,@raddbdir@,$raddbdir,;t t
25442 s,@PERL@,$PERL,;t t
25443 s,@SNMPGET@,$SNMPGET,;t t
25444 s,@SNMPWALK@,$SNMPWALK,;t t
25445 s,@RUSERS@,$RUSERS,;t t
25446 s,@ACLOCAL@,$ACLOCAL,;t t
25447 s,@AUTOCONF@,$AUTOCONF,;t t
25448 s,@AUTOHEADER@,$AUTOHEADER,;t t
25449 s,@LOCATE@,$LOCATE,;t t
25450 s,@DIRNAME@,$DIRNAME,;t t
25451 s,@GREP@,$GREP,;t t
25452 s,@REGEX@,$REGEX,;t t
25453 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25454 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25455 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25456 s,@PCAP_LIBS@,$PCAP_LIBS,;t t
25457 s,@LIBPREFIX@,$LIBPREFIX,;t t
25458 s,@CRYPTLIB@,$CRYPTLIB,;t t
25459 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25460 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25461 s,@HOSTINFO@,$HOSTINFO,;t t
25462 s,@LIBLTDL@,$LIBLTDL,;t t
25463 s,@INCLTDL@,$INCLTDL,;t t
25464 s,@subdirs@,$subdirs,;t t
25465 s,@MODULES@,$MODULES,;t t
25466 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25467 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25468 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25469 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25470 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25471 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25472 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25473 s,@LIBOBJS@,$LIBOBJS,;t t
25474 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25479 cat >>$CONFIG_STATUS <<\_ACEOF
25480 # Split the substitutions into bite-sized pieces for seds with
25481 # small command number limits, like on Digital OSF/1 and HP-UX.
25482 ac_max_sed_lines=48
25483 ac_sed_frag=1 # Number of current file.
25484 ac_beg=1 # First line for current file.
25485 ac_end=$ac_max_sed_lines # Line after last line for current file.
25488 while $ac_more_lines; do
25489 if test $ac_beg -gt 1; then
25490 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25492 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25494 if test ! -s $tmp/subs.frag; then
25495 ac_more_lines=false
25497 # The purpose of the label and of the branching condition is to
25498 # speed up the sed processing (if there are no `@' at all, there
25499 # is no need to browse any of the substitutions).
25500 # These are the two extra sed commands mentioned above.
25502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25503 if test -z "$ac_sed_cmds"; then
25504 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25506 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25508 ac_sed_frag=`expr $ac_sed_frag + 1`
25510 ac_end=`expr $ac_end + $ac_max_sed_lines`
25513 if test -z "$ac_sed_cmds"; then
25516 fi # test -n "$CONFIG_FILES"
25519 cat >>$CONFIG_STATUS <<\_ACEOF
25520 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25521 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25523 - | *:- | *:-:* ) # input from stdin
25525 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25527 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25528 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25529 * ) ac_file_in=$ac_file.in ;;
25532 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25533 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25535 X"$ac_file" : 'X\(//\)[^/]' \| \
25536 X"$ac_file" : 'X\(//\)$' \| \
25537 X"$ac_file" : 'X\(/\)' \| \
25538 . : '\(.\)' 2>/dev/null ||
25540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25542 /^X\(\/\/\)$/{ s//\1/; q; }
25543 /^X\(\/\).*/{ s//\1/; q; }
25545 { if $as_mkdir_p; then
25550 while test ! -d "$as_dir"; do
25551 as_dirs="$as_dir $as_dirs"
25552 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25554 X"$as_dir" : 'X\(//\)[^/]' \| \
25555 X"$as_dir" : 'X\(//\)$' \| \
25556 X"$as_dir" : 'X\(/\)' \| \
25557 . : '\(.\)' 2>/dev/null ||
25559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25561 /^X\(\/\/\)$/{ s//\1/; q; }
25562 /^X\(\/\).*/{ s//\1/; q; }
25565 test ! -n "$as_dirs" || mkdir $as_dirs
25566 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25567 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25568 { (exit 1); exit 1; }; }; }
25572 if test "$ac_dir" != .; then
25573 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25574 # A "../" for each directory in $ac_dir_suffix.
25575 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25577 ac_dir_suffix= ac_top_builddir=
25581 .) # No --srcdir option. We are building in place.
25583 if test -z "$ac_top_builddir"; then
25586 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25588 [\\/]* | ?:[\\/]* ) # Absolute path.
25589 ac_srcdir=$srcdir$ac_dir_suffix;
25590 ac_top_srcdir=$srcdir ;;
25591 *) # Relative path.
25592 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25593 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25596 # Do not use `cd foo && pwd` to compute absolute paths, because
25597 # the directories may not exist.
25599 .) ac_abs_builddir="$ac_dir";;
25602 .) ac_abs_builddir=`pwd`;;
25603 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25604 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25607 case $ac_abs_builddir in
25608 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25610 case ${ac_top_builddir}. in
25611 .) ac_abs_top_builddir=$ac_abs_builddir;;
25612 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25613 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25616 case $ac_abs_builddir in
25617 .) ac_abs_srcdir=$ac_srcdir;;
25620 .) ac_abs_srcdir=$ac_abs_builddir;;
25621 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25622 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25625 case $ac_abs_builddir in
25626 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25628 case $ac_top_srcdir in
25629 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25630 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25631 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25637 if test x"$ac_file" != x-; then
25638 { echo "$as_me:$LINENO: creating $ac_file" >&5
25639 echo "$as_me: creating $ac_file" >&6;}
25642 # Let's still pretend it is `configure' which instantiates (i.e., don't
25643 # use $as_me), people would be surprised to read:
25644 # /* config.h. Generated by config.status. */
25645 if test x"$ac_file" = x-; then
25648 configure_input="$ac_file. "
25650 configure_input=$configure_input"Generated from `echo $ac_file_in |
25651 sed 's,.*/,,'` by configure."
25653 # First look for the input files in the build tree, otherwise in the
25655 ac_file_inputs=`IFS=:
25656 for f in $ac_file_in; do
25658 -) echo $tmp/stdin ;;
25660 # Absolute (can't be DOS-style, as IFS=:)
25661 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25662 echo "$as_me: error: cannot find input file: $f" >&2;}
25663 { (exit 1); exit 1; }; }
25666 if test -f "$f"; then
25669 elif test -f "$srcdir/$f"; then
25674 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25675 echo "$as_me: error: cannot find input file: $f" >&2;}
25676 { (exit 1); exit 1; }; }
25679 done` || { (exit 1); exit 1; }
25681 cat >>$CONFIG_STATUS <<_ACEOF
25685 cat >>$CONFIG_STATUS <<\_ACEOF
25687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25688 s,@configure_input@,$configure_input,;t t
25689 s,@srcdir@,$ac_srcdir,;t t
25690 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25691 s,@top_srcdir@,$ac_top_srcdir,;t t
25692 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25693 s,@builddir@,$ac_builddir,;t t
25694 s,@abs_builddir@,$ac_abs_builddir,;t t
25695 s,@top_builddir@,$ac_top_builddir,;t t
25696 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25697 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25699 if test x"$ac_file" != x-; then
25700 mv $tmp/out $ac_file
25708 cat >>$CONFIG_STATUS <<\_ACEOF
25711 # CONFIG_HEADER section.
25714 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25715 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25717 # ac_d sets the value in "#define NAME VALUE" lines.
25718 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25719 ac_dB='[ ].*$,\1#\2'
25722 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25723 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25724 ac_uB='$,\1#\2define\3'
25728 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25729 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25731 - | *:- | *:-:* ) # input from stdin
25733 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25734 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25735 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25736 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25737 * ) ac_file_in=$ac_file.in ;;
25740 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25741 echo "$as_me: creating $ac_file" >&6;}
25743 # First look for the input files in the build tree, otherwise in the
25745 ac_file_inputs=`IFS=:
25746 for f in $ac_file_in; do
25748 -) echo $tmp/stdin ;;
25750 # Absolute (can't be DOS-style, as IFS=:)
25751 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25752 echo "$as_me: error: cannot find input file: $f" >&2;}
25753 { (exit 1); exit 1; }; }
25754 # Do quote $f, to prevent DOS paths from being IFS'd.
25757 if test -f "$f"; then
25760 elif test -f "$srcdir/$f"; then
25765 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25766 echo "$as_me: error: cannot find input file: $f" >&2;}
25767 { (exit 1); exit 1; }; }
25770 done` || { (exit 1); exit 1; }
25771 # Remove the trailing spaces.
25772 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25776 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25777 # `conftest.undefs', that substitutes the proper values into
25778 # config.h.in to produce config.h. The first handles `#define'
25779 # templates, and the second `#undef' templates.
25780 # And first: Protect against being on the right side of a sed subst in
25781 # config.status. Protect against being in an unquoted here document
25782 # in config.status.
25783 rm -f conftest.defines conftest.undefs
25784 # Using a here document instead of a string reduces the quoting nightmare.
25785 # Putting comments in sed scripts is not portable.
25787 # `end' is used to avoid that the second main sed command (meant for
25788 # 0-ary CPP macros) applies to n-ary macro definitions.
25789 # See the Autoconf documentation for `clear'.
25790 cat >confdef2sed.sed <<\_ACEOF
25795 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25797 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25800 # If some macros were called several times there might be several times
25801 # the same #defines, which is useless. Nevertheless, we may not want to
25802 # sort them, since we want the *last* AC-DEFINE to be honored.
25803 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25804 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25805 rm -f confdef2sed.sed
25807 # This sed command replaces #undef with comments. This is necessary, for
25808 # example, in the case of _POSIX_SOURCE, which is predefined and required
25809 # on some systems where configure will not decide to define it.
25810 cat >>conftest.undefs <<\_ACEOF
25811 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25814 # Break up conftest.defines because some shells have a limit on the size
25815 # of here documents, and old seds have small limits too (100 cmds).
25816 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25817 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25818 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25819 echo ' :' >>$CONFIG_STATUS
25820 rm -f conftest.tail
25821 while grep . conftest.defines >/dev/null
25823 # Write a limited-size here document to $tmp/defines.sed.
25824 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25825 # Speed up: don't consider the non `#define' lines.
25826 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25827 # Work around the forget-to-reset-the-flag bug.
25828 echo 't clr' >>$CONFIG_STATUS
25829 echo ': clr' >>$CONFIG_STATUS
25830 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25832 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25834 mv $tmp/out $tmp/in
25836 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25837 rm -f conftest.defines
25838 mv conftest.tail conftest.defines
25840 rm -f conftest.defines
25841 echo ' fi # grep' >>$CONFIG_STATUS
25842 echo >>$CONFIG_STATUS
25844 # Break up conftest.undefs because some shells have a limit on the size
25845 # of here documents, and old seds have small limits too (100 cmds).
25846 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25847 rm -f conftest.tail
25848 while grep . conftest.undefs >/dev/null
25850 # Write a limited-size here document to $tmp/undefs.sed.
25851 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25852 # Speed up: don't consider the non `#undef'
25853 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25854 # Work around the forget-to-reset-the-flag bug.
25855 echo 't clr' >>$CONFIG_STATUS
25856 echo ': clr' >>$CONFIG_STATUS
25857 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25859 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25861 mv $tmp/out $tmp/in
25863 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25864 rm -f conftest.undefs
25865 mv conftest.tail conftest.undefs
25867 rm -f conftest.undefs
25869 cat >>$CONFIG_STATUS <<\_ACEOF
25870 # Let's still pretend it is `configure' which instantiates (i.e., don't
25871 # use $as_me), people would be surprised to read:
25872 # /* config.h. Generated by config.status. */
25873 if test x"$ac_file" = x-; then
25874 echo "/* Generated by configure. */" >$tmp/config.h
25876 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25878 cat $tmp/in >>$tmp/config.h
25880 if test x"$ac_file" != x-; then
25881 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25882 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25883 echo "$as_me: $ac_file is unchanged" >&6;}
25885 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25887 X"$ac_file" : 'X\(//\)[^/]' \| \
25888 X"$ac_file" : 'X\(//\)$' \| \
25889 X"$ac_file" : 'X\(/\)' \| \
25890 . : '\(.\)' 2>/dev/null ||
25892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25894 /^X\(\/\/\)$/{ s//\1/; q; }
25895 /^X\(\/\).*/{ s//\1/; q; }
25897 { if $as_mkdir_p; then
25902 while test ! -d "$as_dir"; do
25903 as_dirs="$as_dir $as_dirs"
25904 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25906 X"$as_dir" : 'X\(//\)[^/]' \| \
25907 X"$as_dir" : 'X\(//\)$' \| \
25908 X"$as_dir" : 'X\(/\)' \| \
25909 . : '\(.\)' 2>/dev/null ||
25911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25913 /^X\(\/\/\)$/{ s//\1/; q; }
25914 /^X\(\/\).*/{ s//\1/; q; }
25917 test ! -n "$as_dirs" || mkdir $as_dirs
25918 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25919 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25920 { (exit 1); exit 1; }; }; }
25923 mv $tmp/config.h $ac_file
25927 rm -f $tmp/config.h
25931 cat >>$CONFIG_STATUS <<\_ACEOF
25934 # CONFIG_COMMANDS section.
25936 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25937 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25938 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25939 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25940 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25941 X"$ac_dest" : 'X\(//\)[^/]' \| \
25942 X"$ac_dest" : 'X\(//\)$' \| \
25943 X"$ac_dest" : 'X\(/\)' \| \
25944 . : '\(.\)' 2>/dev/null ||
25946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25948 /^X\(\/\/\)$/{ s//\1/; q; }
25949 /^X\(\/\).*/{ s//\1/; q; }
25951 { if $as_mkdir_p; then
25956 while test ! -d "$as_dir"; do
25957 as_dirs="$as_dir $as_dirs"
25958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25960 X"$as_dir" : 'X\(//\)[^/]' \| \
25961 X"$as_dir" : 'X\(//\)$' \| \
25962 X"$as_dir" : 'X\(/\)' \| \
25963 . : '\(.\)' 2>/dev/null ||
25965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25967 /^X\(\/\/\)$/{ s//\1/; q; }
25968 /^X\(\/\).*/{ s//\1/; q; }
25971 test ! -n "$as_dirs" || mkdir $as_dirs
25972 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25973 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25974 { (exit 1); exit 1; }; }; }
25978 if test "$ac_dir" != .; then
25979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25980 # A "../" for each directory in $ac_dir_suffix.
25981 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25983 ac_dir_suffix= ac_top_builddir=
25987 .) # No --srcdir option. We are building in place.
25989 if test -z "$ac_top_builddir"; then
25992 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25994 [\\/]* | ?:[\\/]* ) # Absolute path.
25995 ac_srcdir=$srcdir$ac_dir_suffix;
25996 ac_top_srcdir=$srcdir ;;
25997 *) # Relative path.
25998 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25999 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26002 # Do not use `cd foo && pwd` to compute absolute paths, because
26003 # the directories may not exist.
26005 .) ac_abs_builddir="$ac_dir";;
26008 .) ac_abs_builddir=`pwd`;;
26009 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26010 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26013 case $ac_abs_builddir in
26014 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26016 case ${ac_top_builddir}. in
26017 .) ac_abs_top_builddir=$ac_abs_builddir;;
26018 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26019 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26022 case $ac_abs_builddir in
26023 .) ac_abs_srcdir=$ac_srcdir;;
26026 .) ac_abs_srcdir=$ac_abs_builddir;;
26027 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26028 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26031 case $ac_abs_builddir in
26032 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26034 case $ac_top_srcdir in
26035 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26036 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26037 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26042 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26043 echo "$as_me: executing $ac_dest commands" >&6;}
26045 stamp-h ) echo timestamp > src/include/stamp-h ;;
26046 build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26047 main-chmod ) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26048 scripts-chmod ) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26053 cat >>$CONFIG_STATUS <<\_ACEOF
26055 { (exit 0); exit 0; }
26057 chmod +x $CONFIG_STATUS
26058 ac_clean_files=$ac_clean_files_save
26061 # configure is writing to config.log, and then calls config.status.
26062 # config.status does its own redirection, appending to config.log.
26063 # Unfortunately, on DOS this fails, as config.log is still kept open
26064 # by configure, so config.status won't be able to write to it; its
26065 # output is simply discarded. So we exec the FD to /dev/null,
26066 # effectively closing config.log, so it can be properly (re)opened and
26067 # appended to by config.status. When coming back to configure, we
26068 # need to make the FD available again.
26069 if test "$no_create" != yes; then
26071 ac_config_status_args=
26072 test "$silent" = yes &&
26073 ac_config_status_args="$ac_config_status_args --quiet"
26075 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26077 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26078 # would make configure fail if this is the last instruction.
26079 $ac_cs_success || { (exit 1); exit 1; }
26083 # CONFIG_SUBDIRS section.
26085 if test "$no_recursion" != yes; then
26087 # Remove --cache-file and --srcdir arguments so they do not pile up.
26088 ac_sub_configure_args=
26090 for ac_arg in $ac_configure_args; do
26091 if test -n "$ac_prev"; then
26096 -cache-file | --cache-file | --cache-fil | --cache-fi \
26097 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26098 ac_prev=cache_file ;;
26099 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26103 --config-cache | -C)
26105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26113 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26117 # Always prepend --prefix to ensure using the same prefix
26118 # in subdir configurations.
26119 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26122 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26124 # Do not complain, so a configure script can configure whichever
26125 # parts of a large source tree are present.
26126 test -d $srcdir/$ac_dir || continue
26128 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26129 echo "$as_me: configuring in $ac_dir" >&6;}
26130 { if $as_mkdir_p; then
26135 while test ! -d "$as_dir"; do
26136 as_dirs="$as_dir $as_dirs"
26137 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26139 X"$as_dir" : 'X\(//\)[^/]' \| \
26140 X"$as_dir" : 'X\(//\)$' \| \
26141 X"$as_dir" : 'X\(/\)' \| \
26142 . : '\(.\)' 2>/dev/null ||
26144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26146 /^X\(\/\/\)$/{ s//\1/; q; }
26147 /^X\(\/\).*/{ s//\1/; q; }
26150 test ! -n "$as_dirs" || mkdir $as_dirs
26151 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26152 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26153 { (exit 1); exit 1; }; }; }
26157 if test "$ac_dir" != .; then
26158 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26159 # A "../" for each directory in $ac_dir_suffix.
26160 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26162 ac_dir_suffix= ac_top_builddir=
26166 .) # No --srcdir option. We are building in place.
26168 if test -z "$ac_top_builddir"; then
26171 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26173 [\\/]* | ?:[\\/]* ) # Absolute path.
26174 ac_srcdir=$srcdir$ac_dir_suffix;
26175 ac_top_srcdir=$srcdir ;;
26176 *) # Relative path.
26177 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26178 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26181 # Do not use `cd foo && pwd` to compute absolute paths, because
26182 # the directories may not exist.
26184 .) ac_abs_builddir="$ac_dir";;
26187 .) ac_abs_builddir=`pwd`;;
26188 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26189 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26192 case $ac_abs_builddir in
26193 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26195 case ${ac_top_builddir}. in
26196 .) ac_abs_top_builddir=$ac_abs_builddir;;
26197 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26198 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26201 case $ac_abs_builddir in
26202 .) ac_abs_srcdir=$ac_srcdir;;
26205 .) ac_abs_srcdir=$ac_abs_builddir;;
26206 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26207 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26210 case $ac_abs_builddir in
26211 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26213 case $ac_top_srcdir in
26214 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26215 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26216 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26223 # Check for guested configure; otherwise get Cygnus style configure.
26224 if test -f $ac_srcdir/configure.gnu; then
26225 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26226 elif test -f $ac_srcdir/configure; then
26227 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26228 elif test -f $ac_srcdir/configure.in; then
26229 ac_sub_configure=$ac_configure
26231 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26232 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26236 # The recursion is here.
26237 if test -n "$ac_sub_configure"; then
26238 # Make the cache file name correct relative to the subdirectory.
26239 case $cache_file in
26240 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26241 *) # Relative path.
26242 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26245 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26246 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26247 # The eval makes quoting arguments work.
26248 eval $ac_sub_configure $ac_sub_configure_args \
26249 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26250 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26251 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26252 { (exit 1); exit 1; }; }