2 # From configure.in Revision: 1.222 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=${tagnames+${tagnames},}CXX
397 tagnames=${tagnames+${tagnames},}F77
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
429 ac_unique_file="src/main/radiusd.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP RANLIB ac_ct_RANLIB abs_top_builddir GMAKE MAKE LIBLTDLPATH LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS LIBPREFIX CRYPTLIB SNMP_LIBS SNMP_INCLUDE HOSTINFO LIBLTDL INCLTDL subdirs MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures this package to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 if test -n "$ac_init_help"; then
1021 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1022 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1023 --disable-largefile omit support for large files
1024 --enable-shared[=PKGS]
1025 build shared libraries [default=yes]
1026 --enable-static[=PKGS]
1027 build static libraries [default=yes]
1028 --enable-fast-install[=PKGS]
1029 optimize for fast installation [default=yes]
1030 --disable-libtool-lock avoid locking (might break parallel builds)
1031 --enable-strict-dependencies Fail configure on lack of module dependancy.
1032 --enable-developer Enables features of interest to developers.
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037 --with-system-libtool try to use libtool installed in your system default=use our own
1038 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1039 --with-pic try to use only PIC/non-PIC objects [default=use
1042 include additional configurations [automatic]
1043 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1044 --with-radacctdir=PATH Directory for detail files LOGDIR/radacct
1045 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1046 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1047 --with-threads Use threads, if available. (default=yes)
1048 --with-snmp Compile in SNMP support. (default=yes)
1049 --with-large-files Compile in large (2G+) file support. (default=no)
1050 --with-static-modules=QUOTED-MODULE-LIST
1051 --with-experimental-modules Use experimental and unstable modules. (default=no)
1052 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1053 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1054 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1055 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1056 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1058 Some influential environment variables:
1059 CC C compiler command
1060 CFLAGS C compiler flags
1061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1062 nonstandard directory <lib dir>
1063 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064 headers in a nonstandard directory <include dir>
1065 CXX C++ compiler command
1066 CXXFLAGS C++ compiler flags
1068 CXXCPP C++ preprocessor
1069 F77 Fortran 77 compiler command
1070 FFLAGS Fortran 77 compiler flags
1072 Use these variables to override the choices made by `configure' or to help
1073 it to find libraries and programs with nonstandard names/locations.
1078 if test "$ac_init_help" = "recursive"; then
1079 # If there are subdirs, report their specific --help.
1081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082 test -d $ac_dir || continue
1085 if test "$ac_dir" != .; then
1086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087 # A "../" for each directory in $ac_dir_suffix.
1088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 ac_dir_suffix= ac_top_builddir=
1094 .) # No --srcdir option. We are building in place.
1096 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101 [\\/]* | ?:[\\/]* ) # Absolute path.
1102 ac_srcdir=$srcdir$ac_dir_suffix;
1103 ac_top_srcdir=$srcdir ;;
1105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109 # Do not use `cd foo && pwd` to compute absolute paths, because
1110 # the directories may not exist.
1112 .) ac_abs_builddir="$ac_dir";;
1115 .) ac_abs_builddir=`pwd`;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120 case $ac_abs_builddir in
1121 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 case ${ac_top_builddir}. in
1124 .) ac_abs_top_builddir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129 case $ac_abs_builddir in
1130 .) ac_abs_srcdir=$ac_srcdir;;
1133 .) ac_abs_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 case $ac_top_srcdir in
1142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149 # Check for guested configure; otherwise get Cygnus style configure.
1150 if test -f $ac_srcdir/configure.gnu; then
1152 $SHELL $ac_srcdir/configure.gnu --help=recursive
1153 elif test -f $ac_srcdir/configure; then
1155 $SHELL $ac_srcdir/configure --help=recursive
1156 elif test -f $ac_srcdir/configure.ac ||
1157 test -f $ac_srcdir/configure.in; then
1159 $ac_configure --help
1161 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167 test -n "$ac_init_help" && exit 0
1168 if $ac_init_version; then
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by $as_me, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1513 RADIUSD_MAJOR_VERSION=1
1514 RADIUSD_MINOR_VERSION=1.0-pre0
1515 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 if test -n "$CC"; then
1552 echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1560 if test -z "$ac_cv_prog_CC"; then
1562 # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="gcc"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1602 if test -z "$CC"; then
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1640 if test -z "$ac_cv_prog_CC"; then
1642 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="cc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1683 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703 ac_prog_rejected=yes
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 if test $ac_prog_rejected = yes; then
1714 # We found a bogon in the path, so make sure we never use it.
1715 set dummy $ac_cv_prog_CC
1717 if test $# != 0; then
1718 # We chose a different compiler from the bogus one.
1719 # However, it has the same basename, so the bogon will be chosen
1720 # first if we set CC to just the basename; use the full file name.
1722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1737 if test -z "$CC"; then
1738 if test -n "$ac_tool_prefix"; then
1741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 if test -n "$CC"; then
1769 echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1776 test -n "$CC" && break
1779 if test -z "$CC"; then
1783 # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="$ac_prog"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1818 test -n "$ac_ct_CC" && break
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835 "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838 (eval $ac_compiler --version </dev/null >&5) 2>&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843 (eval $ac_compiler -v </dev/null >&5) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848 (eval $ac_compiler -V </dev/null >&5) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1853 cat >conftest.$ac_ext <<_ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h. */
1868 ac_clean_files_save=$ac_clean_files
1869 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1870 # Try to create an executable without -o first, disregard a.out.
1871 # It will help us diagnose broken compilers, and finding out an intuition
1873 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1874 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1875 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1877 (eval $ac_link_default) 2>&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # Find the output, starting from the most likely. This scheme is
1882 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1885 # Be careful to initialize this variable, since it used to be cached.
1886 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 # b.out is created by i960 compilers.
1889 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 test -f "$ac_file" || continue
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1896 # This is the source file.
1899 # We found the default executable, but exeext='' is most
1903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1904 # FIXME: I believe we export ac_cv_exeext for Libtool,
1905 # but it would be cool to find out if it's true. Does anybody
1906 # maintain Libtool? --akim.
1914 echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1918 See \`config.log' for more details." >&5
1919 echo "$as_me: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&2;}
1921 { (exit 77); exit 77; }; }
1924 ac_exeext=$ac_cv_exeext
1925 echo "$as_me:$LINENO: result: $ac_file" >&5
1926 echo "${ECHO_T}$ac_file" >&6
1928 # Check the compiler produces executables we can run. If not, either
1929 # the compiler is broken, or we cross compile.
1930 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1931 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1932 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1933 # If not cross compiling, check that we can run a simple program.
1934 if test "$cross_compiling" != yes; then
1935 if { ac_try='./$ac_file'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 if test "$cross_compiling" = maybe; then
1946 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&5
1949 echo "$as_me: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&2;}
1952 { (exit 1); exit 1; }; }
1956 echo "$as_me:$LINENO: result: yes" >&5
1957 echo "${ECHO_T}yes" >&6
1959 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1960 ac_clean_files=$ac_clean_files_save
1961 # Check the compiler produces executables we can run. If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1964 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1965 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1966 echo "${ECHO_T}$cross_compiling" >&6
1968 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1969 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1971 (eval $ac_link) 2>&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; then
1975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1977 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 for ac_file in conftest.exe conftest conftest.*; do
1980 test -f "$ac_file" || continue
1982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&2;}
1994 { (exit 1); exit 1; }; }
1997 rm -f conftest$ac_cv_exeext
1998 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1999 echo "${ECHO_T}$ac_cv_exeext" >&6
2001 rm -f conftest.$ac_ext
2002 EXEEXT=$ac_cv_exeext
2004 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2005 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2006 if test "${ac_cv_objext+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 cat >conftest.$ac_ext <<_ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2024 rm -f conftest.o conftest.obj
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; then
2030 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2038 echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&2;}
2045 { (exit 1); exit 1; }; }
2048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2050 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2051 echo "${ECHO_T}$ac_cv_objext" >&6
2052 OBJEXT=$ac_cv_objext
2054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 cat >conftest.$ac_ext <<_ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h. */
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>conftest.er1
2081 grep -v '^ *+' conftest.er1 >conftest.err
2083 cat conftest.err >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2109 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2111 GCC=`test $ac_compiler_gnu = yes && echo yes`
2112 ac_test_CFLAGS=${CFLAGS+set}
2113 ac_save_CFLAGS=$CFLAGS
2115 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_g+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>conftest.er1
2139 grep -v '^ *+' conftest.er1 >conftest.err
2141 cat conftest.err >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
2144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2165 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2166 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2167 if test "$ac_test_CFLAGS" = set; then
2168 CFLAGS=$ac_save_CFLAGS
2169 elif test $ac_cv_prog_cc_g = yes; then
2170 if test "$GCC" = yes; then
2176 if test "$GCC" = yes; then
2182 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2183 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2184 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 ac_cv_prog_cc_stdc=no
2189 cat >conftest.$ac_ext <<_ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2197 #include <sys/types.h>
2198 #include <sys/stat.h>
2199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2200 struct buf { int x; };
2201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2202 static char *e (p, i)
2208 static char *f (char * (*g) (char **, int), char **p, ...)
2213 s = g (p, va_arg (v,int));
2218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2219 function prototypes and stuff, but not '\xHH' hex character constants.
2220 These don't provoke an error unfortunately, instead are silently treated
2221 as 'x'. The following induces an error, until -std1 is added to get
2222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2223 array size at least. It's necessary to write '\x00'==0 to get something
2224 that's true only with -std1. */
2225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2227 int test (int i, double x);
2228 struct s1 {int (*f) (int a);};
2229 struct s2 {int (*f) (double a);};
2230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2241 # Don't try gcc -ansi; that turns off useful extensions and
2242 # breaks some systems' header files.
2243 # AIX -qlanglvl=ansi
2244 # Ultrix and OSF/1 -std1
2245 # HP-UX 10.20 and later -Ae
2246 # HP-UX older versions -Aa -D_HPUX_SOURCE
2247 # SVR4 -Xc -D__EXTENSIONS__
2248 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2250 CC="$ac_save_CC $ac_arg"
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2255 grep -v '^ *+' conftest.er1 >conftest.err
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 ac_cv_prog_cc_stdc=$ac_arg
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2279 rm -f conftest.err conftest.$ac_objext
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2286 case "x$ac_cv_prog_cc_stdc" in
2288 echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2291 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293 CC="$CC $ac_cv_prog_cc_stdc" ;;
2296 # Some people use a C++ compiler to compile C. Since we use `exit',
2297 # in C++ we need to declare it. In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 for ac_declaration in \
2328 'extern "C" void std::exit (int) throw (); using std::exit;' \
2329 'extern "C" void std::exit (int); using std::exit;' \
2330 'extern "C" void exit (int) throw ();' \
2331 'extern "C" void exit (int);' \
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1 >conftest.err
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 cat >conftest.$ac_ext <<_ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>conftest.er1
2398 grep -v '^ *+' conftest.er1 >conftest.err
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2424 if test -n "$ac_declaration"; then
2425 echo '#ifdef __cplusplus' >>confdefs.h
2426 echo $ac_declaration >>confdefs.h
2427 echo '#endif' >>confdefs.h
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443 ac_cpp='$CXXCPP $CPPFLAGS'
2444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2447 if test -n "$ac_tool_prefix"; then
2448 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2452 echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_CXX+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$CXX"; then
2458 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 if test -n "$CXX"; then
2478 echo "$as_me:$LINENO: result: $CXX" >&5
2479 echo "${ECHO_T}$CXX" >&6
2481 echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2485 test -n "$CXX" && break
2488 if test -z "$CXX"; then
2490 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2492 # Extract the first word of "$ac_prog", so it can be a program name with args.
2493 set dummy $ac_prog; ac_word=$2
2494 echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 if test -n "$ac_ct_CXX"; then
2500 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509 ac_cv_prog_ac_ct_CXX="$ac_prog"
2510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2519 if test -n "$ac_ct_CXX"; then
2520 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2521 echo "${ECHO_T}$ac_ct_CXX" >&6
2523 echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2527 test -n "$ac_ct_CXX" && break
2529 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2535 # Provide some information about the compiler.
2536 echo "$as_me:$LINENO:" \
2537 "checking for C++ compiler version" >&5
2538 ac_compiler=`set X $ac_compile; echo $2`
2539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2540 (eval $ac_compiler --version </dev/null >&5) 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2545 (eval $ac_compiler -v </dev/null >&5) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }
2549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2550 (eval $ac_compiler -V </dev/null >&5) 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 cat >conftest.$ac_ext <<_ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2612 GXX=`test $ac_compiler_gnu = yes && echo yes`
2613 ac_test_CXXFLAGS=${CXXFLAGS+set}
2614 ac_save_CXXFLAGS=$CXXFLAGS
2616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2618 if test "${ac_cv_prog_cxx_g+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.$ac_ext <<_ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2640 grep -v '^ *+' conftest.er1 >conftest.err
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 ac_cv_prog_cxx_g=yes
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2667 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2668 if test "$ac_test_CXXFLAGS" = set; then
2669 CXXFLAGS=$ac_save_CXXFLAGS
2670 elif test $ac_cv_prog_cxx_g = yes; then
2671 if test "$GXX" = yes; then
2677 if test "$GXX" = yes; then
2683 for ac_declaration in \
2685 'extern "C" void std::exit (int) throw (); using std::exit;' \
2686 'extern "C" void std::exit (int); using std::exit;' \
2687 'extern "C" void exit (int) throw ();' \
2688 'extern "C" void exit (int);' \
2691 cat >conftest.$ac_ext <<_ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>conftest.er1
2711 grep -v '^ *+' conftest.er1 >conftest.err
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 cat >conftest.$ac_ext <<_ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>conftest.er1
2755 grep -v '^ *+' conftest.er1 >conftest.err
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 if test -n "$ac_declaration"; then
2782 echo '#ifdef __cplusplus' >>confdefs.h
2783 echo $ac_declaration >>confdefs.h
2784 echo '#endif' >>confdefs.h
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2801 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2802 # On Suns, sometimes $CPP names a directory.
2803 if test -n "$CPP" && test -d "$CPP"; then
2806 if test -z "$CPP"; then
2807 if test "${ac_cv_prog_CPP+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 # Double quotes because CPP needs to be expanded
2811 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2814 for ac_c_preproc_warn_flag in '' yes
2816 # Use a header file that comes with gcc, so configuring glibc
2817 # with a fresh cross-compiler works.
2818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2819 # <limits.h> exists even on freestanding compilers.
2820 # On the NeXT, cc -E runs the code through the compiler's parser,
2821 # not just through cpp. "Syntax error" is here to catch this case.
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2829 # include <limits.h>
2831 # include <assert.h>
2835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2838 grep -v '^ *+' conftest.er1 >conftest.err
2840 cat conftest.err >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } >/dev/null; then
2843 if test -s conftest.err; then
2844 ac_cpp_err=$ac_c_preproc_warn_flag
2845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2852 if test -z "$ac_cpp_err"; then
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2858 # Broken: fails on valid input.
2861 rm -f conftest.err conftest.$ac_ext
2863 # OK, works on sane cases. Now check whether non-existent headers
2864 # can be detected and how.
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 #include <ac_nonexistent.h>
2873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } >/dev/null; then
2881 if test -s conftest.err; then
2882 ac_cpp_err=$ac_c_preproc_warn_flag
2883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2890 if test -z "$ac_cpp_err"; then
2891 # Broken: success on invalid input.
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 # Passes both tests.
2901 rm -f conftest.err conftest.$ac_ext
2904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2905 rm -f conftest.err conftest.$ac_ext
2906 if $ac_preproc_ok; then
2918 echo "$as_me:$LINENO: result: $CPP" >&5
2919 echo "${ECHO_T}$CPP" >&6
2921 for ac_c_preproc_warn_flag in '' yes
2923 # Use a header file that comes with gcc, so configuring glibc
2924 # with a fresh cross-compiler works.
2925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2926 # <limits.h> exists even on freestanding compilers.
2927 # On the NeXT, cc -E runs the code through the compiler's parser,
2928 # not just through cpp. "Syntax error" is here to catch this case.
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2936 # include <limits.h>
2938 # include <assert.h>
2942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } >/dev/null; then
2950 if test -s conftest.err; then
2951 ac_cpp_err=$ac_c_preproc_warn_flag
2952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959 if test -z "$ac_cpp_err"; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 # Broken: fails on valid input.
2968 rm -f conftest.err conftest.$ac_ext
2970 # OK, works on sane cases. Now check whether non-existent headers
2971 # can be detected and how.
2972 cat >conftest.$ac_ext <<_ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2978 #include <ac_nonexistent.h>
2980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2983 grep -v '^ *+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } >/dev/null; then
2988 if test -s conftest.err; then
2989 ac_cpp_err=$ac_c_preproc_warn_flag
2990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2997 if test -z "$ac_cpp_err"; then
2998 # Broken: success on invalid input.
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 # Passes both tests.
3008 rm -f conftest.err conftest.$ac_ext
3011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3012 rm -f conftest.err conftest.$ac_ext
3013 if $ac_preproc_ok; then
3016 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3017 See \`config.log' for more details." >&5
3018 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3019 See \`config.log' for more details." >&2;}
3020 { (exit 1); exit 1; }; }
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 echo "$as_me:$LINENO: checking for egrep" >&5
3031 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3032 if test "${ac_cv_prog_egrep+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3036 then ac_cv_prog_egrep='grep -E'
3037 else ac_cv_prog_egrep='egrep'
3040 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3041 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3042 EGREP=$ac_cv_prog_egrep
3046 echo "$as_me:$LINENO: checking for AIX" >&5
3047 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3048 cat >conftest.$ac_ext <<_ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3060 $EGREP "yes" >/dev/null 2>&1; then
3061 echo "$as_me:$LINENO: result: yes" >&5
3062 echo "${ECHO_T}yes" >&6
3063 cat >>confdefs.h <<\_ACEOF
3064 #define _ALL_SOURCE 1
3068 echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6
3075 if test $ac_cv_c_compiler_gnu = yes; then
3076 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3077 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3078 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 ac_pattern="Autoconf.*'x'"
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3092 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3093 ac_cv_prog_gcc_traditional=yes
3095 ac_cv_prog_gcc_traditional=no
3100 if test $ac_cv_prog_gcc_traditional = no; then
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3111 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3112 ac_cv_prog_gcc_traditional=yes
3118 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3119 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3120 if test $ac_cv_prog_gcc_traditional = yes; then
3121 CC="$CC -traditional"
3125 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3126 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
3127 if test "${ac_cv_prog_suncc+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 cat > conftest.c <<EOF
3135 if { ac_try='${CC-cc} -E conftest.c'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3141 ac_cv_prog_suncc=yes
3146 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3147 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3151 echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_prog_RANLIB+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if test -n "$RANLIB"; then
3157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 RANLIB=$ac_cv_prog_RANLIB
3176 if test -n "$RANLIB"; then
3177 echo "$as_me:$LINENO: result: $RANLIB" >&5
3178 echo "${ECHO_T}$RANLIB" >&6
3180 echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6
3185 if test -z "$ac_cv_prog_RANLIB"; then
3186 ac_ct_RANLIB=$RANLIB
3187 # Extract the first word of "ranlib", so it can be a program name with args.
3188 set dummy ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$ac_ct_RANLIB"; then
3195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_RANLIB="ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215 if test -n "$ac_ct_RANLIB"; then
3216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3223 RANLIB=$ac_ct_RANLIB
3225 RANLIB="$ac_cv_prog_RANLIB"
3229 abs_top_builddir=`pwd`
3232 # Check whether --enable-largefile or --disable-largefile was given.
3233 if test "${enable_largefile+set}" = set; then
3234 enableval="$enable_largefile"
3237 if test "$enable_largefile" != no; then
3239 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3240 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3241 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 ac_cv_sys_largefile_CC=no
3245 if test "$GCC" != yes; then
3248 # IRIX 6.2 and later do not support large files by default,
3249 # so use the C compiler's -n32 option if that helps.
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256 #include <sys/types.h>
3257 /* Check that off_t can represent 2**63 - 1 correctly.
3258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3259 since some C++ compilers masquerading as C compilers
3260 incorrectly reject 9223372036854775807. */
3261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3263 && LARGE_OFF_T % 2147483647 == 1)
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3300 rm -f conftest.err conftest.$ac_objext
3302 rm -f conftest.$ac_objext
3303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3304 (eval $ac_compile) 2>conftest.er1
3306 grep -v '^ *+' conftest.er1 >conftest.err
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } &&
3311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 ac_cv_sys_largefile_CC=' -n32'; break
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3329 rm -f conftest.err conftest.$ac_objext
3333 rm -f conftest.$ac_ext
3336 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3337 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3338 if test "$ac_cv_sys_largefile_CC" != no; then
3339 CC=$CC$ac_cv_sys_largefile_CC
3342 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3343 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3344 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 ac_cv_sys_file_offset_bits=no
3349 cat >conftest.$ac_ext <<_ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355 #include <sys/types.h>
3356 /* Check that off_t can represent 2**63 - 1 correctly.
3357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3358 since some C++ compilers masquerading as C compilers
3359 incorrectly reject 9223372036854775807. */
3360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3362 && LARGE_OFF_T % 2147483647 == 1)
3372 rm -f conftest.$ac_objext
3373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3374 (eval $ac_compile) 2>conftest.er1
3376 grep -v '^ *+' conftest.er1 >conftest.err
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; } &&
3387 { ac_try='test -s conftest.$ac_objext'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #define _FILE_OFFSET_BITS 64
3407 #include <sys/types.h>
3408 /* Check that off_t can represent 2**63 - 1 correctly.
3409 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3410 since some C++ compilers masquerading as C compilers
3411 incorrectly reject 9223372036854775807. */
3412 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3413 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3414 && LARGE_OFF_T % 2147483647 == 1)
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3428 grep -v '^ *+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try='test -s conftest.$ac_objext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3445 ac_cv_sys_file_offset_bits=64; break
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3456 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3457 if test "$ac_cv_sys_file_offset_bits" != no; then
3459 cat >>confdefs.h <<_ACEOF
3460 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3465 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3466 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3467 if test "${ac_cv_sys_large_files+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 ac_cv_sys_large_files=no
3472 cat >conftest.$ac_ext <<_ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #include <sys/types.h>
3479 /* Check that off_t can represent 2**63 - 1 correctly.
3480 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3481 since some C++ compilers masquerading as C compilers
3482 incorrectly reject 9223372036854775807. */
3483 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3484 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3485 && LARGE_OFF_T % 2147483647 == 1)
3495 rm -f conftest.$ac_objext
3496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3497 (eval $ac_compile) 2>conftest.er1
3499 grep -v '^ *+' conftest.er1 >conftest.err
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #define _LARGE_FILES 1
3530 #include <sys/types.h>
3531 /* Check that off_t can represent 2**63 - 1 correctly.
3532 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3533 since some C++ compilers masquerading as C compilers
3534 incorrectly reject 9223372036854775807. */
3535 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3537 && LARGE_OFF_T % 2147483647 == 1)
3547 rm -f conftest.$ac_objext
3548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3549 (eval $ac_compile) 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } &&
3556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 ac_cv_sys_large_files=1; break
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3579 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3580 if test "$ac_cv_sys_large_files" != no; then
3582 cat >>confdefs.h <<_ACEOF
3583 #define _LARGE_FILES $ac_cv_sys_large_files
3593 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3594 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3595 if test "${ac_cv_c_bigendian+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 # See if sys/param.h defines the BYTE_ORDER macro.
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #include <sys/types.h>
3606 #include <sys/param.h>
3611 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3619 rm -f conftest.$ac_objext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3621 (eval $ac_compile) 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try='test -s conftest.$ac_objext'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
3640 # It does; now see whether it defined to BIG_ENDIAN or not.
3641 cat >conftest.$ac_ext <<_ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3647 #include <sys/types.h>
3648 #include <sys/param.h>
3653 #if BYTE_ORDER != BIG_ENDIAN
3661 rm -f conftest.$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663 (eval $ac_compile) 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_c_bigendian=yes
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_cv_c_bigendian=no
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 # It does not; compile a test program.
3695 if test "$cross_compiling" = yes; then
3696 # try to guess the endianness by grepping values into an object file
3697 ac_cv_c_bigendian=unknown
3698 cat >conftest.$ac_ext <<_ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3705 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3706 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3707 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3708 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3709 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3713 _ascii (); _ebcdic ();
3718 rm -f conftest.$ac_objext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720 (eval $ac_compile) 2>conftest.er1
3722 grep -v '^ *+' conftest.er1 >conftest.err
3724 cat conftest.err >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } &&
3727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3740 ac_cv_c_bigendian=yes
3742 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3743 if test "$ac_cv_c_bigendian" = unknown; then
3744 ac_cv_c_bigendian=no
3746 # finding both strings is unlikely to happen, but who knows?
3747 ac_cv_c_bigendian=unknown
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3766 /* Are we little or big endian? From Harbison&Steele. */
3770 char c[sizeof (long)];
3773 exit (u.c[sizeof (long) - 1] == 1);
3776 rm -f conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_cv_c_bigendian=no
3789 echo "$as_me: program exited with status $ac_status" >&5
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3794 ac_cv_c_bigendian=yes
3796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3801 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3802 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3803 case $ac_cv_c_bigendian in
3806 cat >>confdefs.h <<\_ACEOF
3807 #define WORDS_BIGENDIAN 1
3813 { { echo "$as_me:$LINENO: error: unknown endianness
3814 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3815 echo "$as_me: error: unknown endianness
3816 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3817 { (exit 1); exit 1; }; } ;;
3821 # Extract the first word of "gmake", so it can be a program name with args.
3822 set dummy gmake; ac_word=$2
3823 echo "$as_me:$LINENO: checking for $ac_word" >&5
3824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3825 if test "${ac_cv_prog_GMAKE+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 if test -n "$GMAKE"; then
3829 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_GMAKE="yes"
3839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3848 GMAKE=$ac_cv_prog_GMAKE
3849 if test -n "$GMAKE"; then
3850 echo "$as_me:$LINENO: result: $GMAKE" >&5
3851 echo "${ECHO_T}$GMAKE" >&6
3853 echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3857 if test $GMAKE = no; then
3858 # Extract the first word of "make", so it can be a program name with args.
3859 set dummy make; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_path_MAKE+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3888 MAKE=$ac_cv_path_MAKE
3890 if test -n "$MAKE"; then
3891 echo "$as_me:$LINENO: result: $MAKE" >&5
3892 echo "${ECHO_T}$MAKE" >&6
3894 echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3899 # Extract the first word of "gmake", so it can be a program name with args.
3900 set dummy gmake; ac_word=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_path_MAKE+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3929 MAKE=$ac_cv_path_MAKE
3931 if test -n "$MAKE"; then
3932 echo "$as_me:$LINENO: result: $MAKE" >&5
3933 echo "${ECHO_T}$MAKE" >&6
3935 echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3940 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3941 if test -z "$makever"; then
3942 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3943 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3944 echo "$as_me: error: GNU Make is not installed. Please download and install it
3945 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3946 { (exit 1); exit 1; }; }
3949 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3950 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3951 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 ac_check_lib_save_LIBS=$LIBS
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3963 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3978 rm -f conftest.$ac_objext conftest$ac_exeext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3980 (eval $ac_link) 2>conftest.er1
3982 grep -v '^ *+' conftest.er1 >conftest.err
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest$ac_exeext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_cv_lib_ltdl_lt_dlinit=yes
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 ac_cv_lib_ltdl_lt_dlinit=no
4006 rm -f conftest.err conftest.$ac_objext \
4007 conftest$ac_exeext conftest.$ac_ext
4008 LIBS=$ac_check_lib_save_LIBS
4010 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4011 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
4012 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4013 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4015 if test x"$enable_ltdl_install" = xno; then
4016 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4017 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4019 enable_ltdl_install=yes
4024 if test x"$enable_ltdl_install" = x"yes"; then
4025 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4026 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4027 LTDLINCL='-I${top_srcdir}/''libltdl'
4030 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4036 # For backwards non-gettext consistent compatibility...
4040 # Check whether --enable-shared or --disable-shared was given.
4041 if test "${enable_shared+set}" = set; then
4042 enableval="$enable_shared"
4043 p=${PACKAGE-default}
4045 yes) enable_shared=yes ;;
4046 no) enable_shared=no ;;
4049 # Look at the argument we got. We use all the common list separators.
4050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4051 for pkg in $enableval; do
4053 if test "X$pkg" = "X$p"; then
4064 # Check whether --enable-static or --disable-static was given.
4065 if test "${enable_static+set}" = set; then
4066 enableval="$enable_static"
4067 p=${PACKAGE-default}
4069 yes) enable_static=yes ;;
4070 no) enable_static=no ;;
4073 # Look at the argument we got. We use all the common list separators.
4074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4075 for pkg in $enableval; do
4077 if test "X$pkg" = "X$p"; then
4088 # Check whether --enable-fast-install or --disable-fast-install was given.
4089 if test "${enable_fast_install+set}" = set; then
4090 enableval="$enable_fast_install"
4091 p=${PACKAGE-default}
4093 yes) enable_fast_install=yes ;;
4094 no) enable_fast_install=no ;;
4096 enable_fast_install=no
4097 # Look at the argument we got. We use all the common list separators.
4098 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4099 for pkg in $enableval; do
4101 if test "X$pkg" = "X$p"; then
4102 enable_fast_install=yes
4109 enable_fast_install=yes
4113 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4114 if test -f $ac_dir/install-sh; then
4116 ac_install_sh="$ac_aux_dir/install-sh -c"
4118 elif test -f $ac_dir/install.sh; then
4120 ac_install_sh="$ac_aux_dir/install.sh -c"
4122 elif test -f $ac_dir/shtool; then
4124 ac_install_sh="$ac_aux_dir/shtool install -c"
4128 if test -z "$ac_aux_dir"; then
4129 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4130 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4131 { (exit 1); exit 1; }; }
4133 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4134 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4135 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4137 # Make sure we can run config.sub.
4138 $ac_config_sub sun4 >/dev/null 2>&1 ||
4139 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4140 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4141 { (exit 1); exit 1; }; }
4143 echo "$as_me:$LINENO: checking build system type" >&5
4144 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4145 if test "${ac_cv_build+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 ac_cv_build_alias=$build_alias
4149 test -z "$ac_cv_build_alias" &&
4150 ac_cv_build_alias=`$ac_config_guess`
4151 test -z "$ac_cv_build_alias" &&
4152 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4153 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4154 { (exit 1); exit 1; }; }
4155 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4156 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4157 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4158 { (exit 1); exit 1; }; }
4161 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4162 echo "${ECHO_T}$ac_cv_build" >&6
4164 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4165 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4166 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4169 echo "$as_me:$LINENO: checking host system type" >&5
4170 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4171 if test "${ac_cv_host+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 ac_cv_host_alias=$host_alias
4175 test -z "$ac_cv_host_alias" &&
4176 ac_cv_host_alias=$ac_cv_build_alias
4177 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4178 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4179 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4180 { (exit 1); exit 1; }; }
4183 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4184 echo "${ECHO_T}$ac_cv_host" >&6
4186 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4187 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4188 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4191 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4192 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4193 if test "${lt_cv_path_SED+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 # Loop through the user's path and test for sed and gsed.
4197 # Then use that list of sed's as ones to test for truncation.
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir=.
4203 for lt_ac_prog in sed gsed; do
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4206 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4213 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4214 # along with /bin/sed that truncates output.
4215 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4216 test ! -f $lt_ac_sed && break
4217 cat /dev/null > conftest.in
4219 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4220 # Check for GNU sed and select it if it is found.
4221 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4222 lt_cv_path_SED=$lt_ac_sed
4226 cat conftest.in conftest.in >conftest.tmp
4227 mv conftest.tmp conftest.in
4228 cp conftest.in conftest.nl
4230 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4231 cmp -s conftest.out conftest.nl || break
4232 # 10000 chars as input seems more than enough
4233 test $lt_ac_count -gt 10 && break
4234 lt_ac_count=`expr $lt_ac_count + 1`
4235 if test $lt_ac_count -gt $lt_ac_max; then
4236 lt_ac_max=$lt_ac_count
4237 lt_cv_path_SED=$lt_ac_sed
4245 echo "$as_me:$LINENO: result: $SED" >&5
4246 echo "${ECHO_T}$SED" >&6
4249 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4250 if test "${with_gnu_ld+set}" = set; then
4251 withval="$with_gnu_ld"
4252 test "$withval" = no || with_gnu_ld=yes
4257 if test "$GCC" = yes; then
4258 # Check if gcc -print-prog-name=ld gives a path.
4259 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4260 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4263 # gcc leaves a trailing carriage return which upsets mingw
4264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4269 # Accept absolute paths.
4271 re_direlt='/[^/][^/]*/\.\./'
4272 # Canonicalize the pathname of ld
4273 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4274 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4275 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4277 test -z "$LD" && LD="$ac_prog"
4280 # If it fails, then pretend we aren't using GCC.
4284 # If it is relative, then search for the first ld in PATH.
4288 elif test "$with_gnu_ld" = yes; then
4289 echo "$as_me:$LINENO: checking for GNU ld" >&5
4290 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4292 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4293 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4295 if test "${lt_cv_path_LD+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 if test -z "$LD"; then
4299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4300 for ac_dir in $PATH; do
4302 test -z "$ac_dir" && ac_dir=.
4303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4304 lt_cv_path_LD="$ac_dir/$ac_prog"
4305 # Check to see if the program is GNU ld. I'd rather use --version,
4306 # but apparently some GNU ld's only accept -v.
4307 # Break only if it was the GNU/non-GNU ld that we prefer.
4308 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4309 *GNU* | *'with BFD'*)
4310 test "$with_gnu_ld" != no && break
4313 test "$with_gnu_ld" != yes && break
4320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4325 if test -n "$LD"; then
4326 echo "$as_me:$LINENO: result: $LD" >&5
4327 echo "${ECHO_T}$LD" >&6
4329 echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4332 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4333 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4334 { (exit 1); exit 1; }; }
4335 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4336 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4337 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4341 case `$LD -v 2>&1 </dev/null` in
4342 *GNU* | *'with BFD'*)
4343 lt_cv_prog_gnu_ld=yes
4346 lt_cv_prog_gnu_ld=no
4350 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4351 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4352 with_gnu_ld=$lt_cv_prog_gnu_ld
4355 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4356 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4357 if test "${lt_cv_ld_reload_flag+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 lt_cv_ld_reload_flag='-r'
4362 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4363 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4364 reload_flag=$lt_cv_ld_reload_flag
4365 case $reload_flag in
4367 *) reload_flag=" $reload_flag" ;;
4369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4371 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4372 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4373 if test "${lt_cv_path_NM+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 if test -n "$NM"; then
4377 # Let the user override the test.
4380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4381 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4383 test -z "$ac_dir" && ac_dir=.
4384 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4385 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4386 # Check to see if the nm accepts a BSD-compat flag.
4387 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4388 # nm: unknown option "B" ignored
4389 # Tru64's nm complains that /dev/null is an invalid object file
4390 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4391 */dev/null* | *'Invalid file or object type'*)
4392 lt_cv_path_NM="$tmp_nm -B"
4396 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4398 lt_cv_path_NM="$tmp_nm -p"
4402 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4403 continue # so that we can try to find one that supports BSD flags
4410 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4413 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4414 echo "${ECHO_T}$lt_cv_path_NM" >&6
4417 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4418 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4420 if test "$LN_S" = "ln -s"; then
4421 echo "$as_me:$LINENO: result: yes" >&5
4422 echo "${ECHO_T}yes" >&6
4424 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4425 echo "${ECHO_T}no, using $LN_S" >&6
4428 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4429 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4430 if test "${lt_cv_deplibs_check_method+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 lt_cv_file_magic_cmd='$MAGIC_CMD'
4434 lt_cv_file_magic_test_file=
4435 lt_cv_deplibs_check_method='unknown'
4436 # Need to set the preceding variable on all platforms that support
4437 # interlibrary dependencies.
4438 # 'none' -- dependencies not supported.
4439 # `unknown' -- same as none, but documents that we really don't know.
4440 # 'pass_all' -- all dependencies passed with no checks.
4441 # 'test_compile' -- check by making test program.
4442 # 'file_magic [[regex]]' -- check by looking for files in library path
4443 # which responds to the $file_magic_cmd with a given extended regex.
4444 # If you have `file' or equivalent on your system and you're not sure
4445 # whether `pass_all' will *always* work, you probably want this one.
4449 lt_cv_deplibs_check_method=pass_all
4453 lt_cv_deplibs_check_method=pass_all
4457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4458 lt_cv_file_magic_cmd='/usr/bin/file -L'
4459 lt_cv_file_magic_test_file=/shlib/libc.so
4463 # func_win32_libid is a shell function defined in ltmain.sh
4464 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4465 lt_cv_file_magic_cmd='func_win32_libid'
4469 # Base MSYS/MinGW do not provide the 'file' command needed by
4470 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4471 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4472 lt_cv_file_magic_cmd='$OBJDUMP -f'
4475 darwin* | rhapsody*)
4476 lt_cv_deplibs_check_method=pass_all
4479 freebsd* | kfreebsd*-gnu)
4480 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4483 # Not sure whether the presence of OpenBSD here was a mistake.
4484 # Let's accept both of them until this is cleared up.
4485 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4486 lt_cv_file_magic_cmd=/usr/bin/file
4487 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4491 lt_cv_deplibs_check_method=pass_all
4496 lt_cv_deplibs_check_method=pass_all
4499 hpux10.20* | hpux11*)
4500 lt_cv_file_magic_cmd=/usr/bin/file
4503 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4504 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4507 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]'
4508 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4511 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4512 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4517 irix5* | irix6* | nonstopux*)
4519 *-32|*"-32 ") libmagic=32-bit;;
4520 *-n32|*"-n32 ") libmagic=N32;;
4521 *-64|*"-64 ") libmagic=64-bit;;
4522 *) libmagic=never-match;;
4524 lt_cv_deplibs_check_method=pass_all
4527 # This must be Linux ELF.
4529 lt_cv_deplibs_check_method=pass_all
4532 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4533 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4542 lt_cv_file_magic_cmd=/usr/bin/file
4543 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4547 lt_cv_deplibs_check_method=unknown
4551 lt_cv_file_magic_cmd=/usr/bin/file
4552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4556 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4560 osf3* | osf4* | osf5*)
4561 lt_cv_deplibs_check_method=pass_all
4565 lt_cv_deplibs_check_method=pass_all
4569 lt_cv_deplibs_check_method=pass_all
4572 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4573 case $host_vendor in
4575 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]'
4576 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4579 lt_cv_deplibs_check_method=pass_all
4582 lt_cv_file_magic_cmd='/bin/file'
4583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4586 lt_cv_file_magic_cmd='/bin/file'
4587 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4588 lt_cv_file_magic_test_file=/lib/libc.so
4591 lt_cv_deplibs_check_method=pass_all
4596 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4597 lt_cv_deplibs_check_method=pass_all
4602 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4603 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4604 file_magic_cmd=$lt_cv_file_magic_cmd
4605 deplibs_check_method=$lt_cv_deplibs_check_method
4606 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4611 # If no C compiler was specified, use CC.
4614 # Allow CC to be a program name with arguments.
4617 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4618 if test "${enable_libtool_lock+set}" = set; then
4619 enableval="$enable_libtool_lock"
4622 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4624 # Some flags need to be propagated to the compiler or linker for good
4628 # Find out which ABI we are using.
4629 echo 'int i;' > conftest.$ac_ext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; then
4635 case `/usr/bin/file conftest.$ac_objext` in
4647 # Find out which ABI we are using.
4648 echo '#line 4648 "configure"' > conftest.$ac_ext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650 (eval $ac_compile) 2>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; then
4654 if test "$lt_cv_prog_gnu_ld" = yes; then
4655 case `/usr/bin/file conftest.$ac_objext` in
4657 LD="${LD-ld} -melf32bsmip"
4660 LD="${LD-ld} -melf32bmipn32"
4663 LD="${LD-ld} -melf64bmip"
4667 case `/usr/bin/file conftest.$ac_objext` in
4683 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4684 # Find out which ABI we are using.
4685 echo 'int i;' > conftest.$ac_ext
4686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4687 (eval $ac_compile) 2>&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; then
4691 case "`/usr/bin/file conftest.o`" in
4695 LD="${LD-ld} -m elf_i386"
4697 ppc64-*linux*|powerpc64-*linux*)
4698 LD="${LD-ld} -m elf32ppclinux"
4701 LD="${LD-ld} -m elf_s390"
4704 LD="${LD-ld} -m elf32_sparc"
4711 LD="${LD-ld} -m elf_x86_64"
4713 ppc*-*linux*|powerpc*-*linux*)
4714 LD="${LD-ld} -m elf64ppc"
4717 LD="${LD-ld} -m elf64_s390"
4720 LD="${LD-ld} -m elf64_sparc"
4730 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4731 SAVE_CFLAGS="$CFLAGS"
4732 CFLAGS="$CFLAGS -belf"
4733 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4734 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4735 if test "${lt_cv_cc_needs_belf+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 ac_cpp='$CPP $CPPFLAGS'
4740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744 cat >conftest.$ac_ext <<_ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4759 rm -f conftest.$ac_objext conftest$ac_exeext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4761 (eval $ac_link) 2>conftest.er1
4763 grep -v '^ *+' conftest.er1 >conftest.err
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest$ac_exeext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 lt_cv_cc_needs_belf=yes
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 lt_cv_cc_needs_belf=no
4787 rm -f conftest.err conftest.$ac_objext \
4788 conftest$ac_exeext conftest.$ac_ext
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4797 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4798 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4799 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4800 CFLAGS="$SAVE_CFLAGS"
4806 need_locks="$enable_libtool_lock"
4809 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4811 if test "${ac_cv_header_stdc+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4837 grep -v '^ *+' conftest.er1 >conftest.err
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; } &&
4848 { ac_try='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_cv_header_stdc=yes
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4859 ac_cv_header_stdc=no
4861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863 if test $ac_cv_header_stdc = yes; then
4864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4875 $EGREP "memchr" >/dev/null 2>&1; then
4878 ac_cv_header_stdc=no
4884 if test $ac_cv_header_stdc = yes; then
4885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4886 cat >conftest.$ac_ext <<_ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4896 $EGREP "free" >/dev/null 2>&1; then
4899 ac_cv_header_stdc=no
4905 if test $ac_cv_header_stdc = yes; then
4906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4907 if test "$cross_compiling" = yes; then
4910 cat >conftest.$ac_ext <<_ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4917 #if ((' ' & 0x0FF) == 0x020)
4918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4921 # define ISLOWER(c) \
4922 (('a' <= (c) && (c) <= 'i') \
4923 || ('j' <= (c) && (c) <= 'r') \
4924 || ('s' <= (c) && (c) <= 'z'))
4925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4933 for (i = 0; i < 256; i++)
4934 if (XOR (islower (i), ISLOWER (i))
4935 || toupper (i) != TOUPPER (i))
4940 rm -f conftest$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942 (eval $ac_link) 2>&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4953 echo "$as_me: program exited with status $ac_status" >&5
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4958 ac_cv_header_stdc=no
4960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4966 if test $ac_cv_header_stdc = yes; then
4968 cat >>confdefs.h <<\_ACEOF
4969 #define STDC_HEADERS 1
4974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4985 inttypes.h stdint.h unistd.h
4987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4988 echo "$as_me:$LINENO: checking for $ac_header" >&5
4989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 $ac_includes_default
5001 #include <$ac_header>
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 eval "$as_ac_Header=yes"
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5029 eval "$as_ac_Header=no"
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5036 cat >>confdefs.h <<_ACEOF
5037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5046 for ac_header in dlfcn.h
5048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5058 # Is the header compilable?
5059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 $ac_includes_default
5068 #include <$ac_header>
5070 rm -f conftest.$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5074 grep -v '^ *+' conftest.er1 >conftest.err
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest.$ac_objext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_header_compiler=yes
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 ac_header_compiler=no
5098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5100 echo "${ECHO_T}$ac_header_compiler" >&6
5102 # Is the header present?
5103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5105 cat >conftest.$ac_ext <<_ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 #include <$ac_header>
5113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116 grep -v '^ *+' conftest.er1 >conftest.err
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_c_preproc_warn_flag
5123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5130 if test -z "$ac_cpp_err"; then
5131 ac_header_preproc=yes
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5136 ac_header_preproc=no
5138 rm -f conftest.err conftest.$ac_ext
5139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5140 echo "${ECHO_T}$ac_header_preproc" >&6
5142 # So? What about this header?
5143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5149 ac_header_preproc=yes
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5166 ## ------------------------------------------ ##
5167 ## Report this to the AC_PACKAGE_NAME lists. ##
5168 ## ------------------------------------------ ##
5171 sed "s/^/$as_me: WARNING: /" >&2
5174 echo "$as_me:$LINENO: checking for $ac_header" >&5
5175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 eval "$as_ac_Header=\$ac_header_preproc"
5181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5186 cat >>confdefs.h <<_ACEOF
5187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195 ac_cpp='$CXXCPP $CPPFLAGS'
5196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5199 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5200 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5201 if test -z "$CXXCPP"; then
5202 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 # Double quotes because CXXCPP needs to be expanded
5206 for CXXCPP in "$CXX -E" "/lib/cpp"
5209 for ac_cxx_preproc_warn_flag in '' yes
5211 # Use a header file that comes with gcc, so configuring glibc
5212 # with a fresh cross-compiler works.
5213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214 # <limits.h> exists even on freestanding compilers.
5215 # On the NeXT, cc -E runs the code through the compiler's parser,
5216 # not just through cpp. "Syntax error" is here to catch this case.
5217 cat >conftest.$ac_ext <<_ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5224 # include <limits.h>
5226 # include <assert.h>
5230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } >/dev/null; then
5238 if test -s conftest.err; then
5239 ac_cpp_err=$ac_cxx_preproc_warn_flag
5240 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5247 if test -z "$ac_cpp_err"; then
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 # Broken: fails on valid input.
5256 rm -f conftest.err conftest.$ac_ext
5258 # OK, works on sane cases. Now check whether non-existent headers
5259 # can be detected and how.
5260 cat >conftest.$ac_ext <<_ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #include <ac_nonexistent.h>
5268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5271 grep -v '^ *+' conftest.er1 >conftest.err
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_cxx_preproc_warn_flag
5278 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5285 if test -z "$ac_cpp_err"; then
5286 # Broken: success on invalid input.
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 # Passes both tests.
5296 rm -f conftest.err conftest.$ac_ext
5299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5300 rm -f conftest.err conftest.$ac_ext
5301 if $ac_preproc_ok; then
5306 ac_cv_prog_CXXCPP=$CXXCPP
5309 CXXCPP=$ac_cv_prog_CXXCPP
5311 ac_cv_prog_CXXCPP=$CXXCPP
5313 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5314 echo "${ECHO_T}$CXXCPP" >&6
5316 for ac_cxx_preproc_warn_flag in '' yes
5318 # Use a header file that comes with gcc, so configuring glibc
5319 # with a fresh cross-compiler works.
5320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5321 # <limits.h> exists even on freestanding compilers.
5322 # On the NeXT, cc -E runs the code through the compiler's parser,
5323 # not just through cpp. "Syntax error" is here to catch this case.
5324 cat >conftest.$ac_ext <<_ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5331 # include <limits.h>
5333 # include <assert.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
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 # Broken: fails on valid input.
5363 rm -f conftest.err conftest.$ac_ext
5365 # OK, works on sane cases. Now check whether non-existent headers
5366 # can be detected and how.
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 #include <ac_nonexistent.h>
5375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5378 grep -v '^ *+' conftest.er1 >conftest.err
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_cxx_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5392 if test -z "$ac_cpp_err"; then
5393 # Broken: success on invalid input.
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5399 # Passes both tests.
5403 rm -f conftest.err conftest.$ac_ext
5406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5407 rm -f conftest.err conftest.$ac_ext
5408 if $ac_preproc_ok; then
5411 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5412 See \`config.log' for more details." >&5
5413 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5414 See \`config.log' for more details." >&2;}
5415 { (exit 1); exit 1; }; }
5419 ac_cpp='$CXXCPP $CPPFLAGS'
5420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5426 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5427 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5429 if test -n "$ac_tool_prefix"; then
5430 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 if test "${ac_cv_prog_F77+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 if test -n "$F77"; then
5440 ac_cv_prog_F77="$F77" # Let the user override the test.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 if test -n "$F77"; then
5460 echo "$as_me:$LINENO: result: $F77" >&5
5461 echo "${ECHO_T}$F77" >&6
5463 echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6
5467 test -n "$F77" && break
5470 if test -z "$F77"; then
5472 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5474 # Extract the first word of "$ac_prog", so it can be a program name with args.
5475 set dummy $ac_prog; ac_word=$2
5476 echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 if test -n "$ac_ct_F77"; then
5482 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_ac_ct_F77="$ac_prog"
5492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5501 if test -n "$ac_ct_F77"; then
5502 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5503 echo "${ECHO_T}$ac_ct_F77" >&6
5505 echo "$as_me:$LINENO: result: no" >&5
5506 echo "${ECHO_T}no" >&6
5509 test -n "$ac_ct_F77" && break
5516 # Provide some information about the compiler.
5517 echo "$as_me:5517:" \
5518 "checking for Fortran 77 compiler version" >&5
5519 ac_compiler=`set X $ac_compile; echo $2`
5520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5521 (eval $ac_compiler --version </dev/null >&5) 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }
5525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5526 (eval $ac_compiler -v </dev/null >&5) 2>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }
5530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5531 (eval $ac_compiler -V </dev/null >&5) 2>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }
5537 # If we don't use `.F' as extension, the preprocessor is not run on the
5538 # input file. (Note that this only needs to work for GNU compilers.)
5541 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5542 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5543 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5554 rm -f conftest.$ac_objext
5555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5556 (eval $ac_compile) 2>conftest.er1
5558 grep -v '^ *+' conftest.er1 >conftest.err
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } &&
5563 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; } &&
5569 { ac_try='test -s conftest.$ac_objext'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5583 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5586 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5587 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5589 ac_test_FFLAGS=${FFLAGS+set}
5590 ac_save_FFLAGS=$FFLAGS
5592 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5593 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5594 if test "${ac_cv_prog_f77_g+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605 (eval $ac_compile) 2>conftest.er1
5607 grep -v '^ *+' conftest.er1 >conftest.err
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; } &&
5618 { ac_try='test -s conftest.$ac_objext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_prog_f77_g=yes
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5634 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5635 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5636 if test "$ac_test_FFLAGS" = set; then
5637 FFLAGS=$ac_save_FFLAGS
5638 elif test $ac_cv_prog_f77_g = yes; then
5639 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5645 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5652 G77=`test $ac_compiler_gnu = yes && echo yes`
5654 ac_cpp='$CPP $CPPFLAGS'
5655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5663 # find the maximum length of command line arguments
5664 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5665 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5666 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 # On DJGPP, this test can blow up pretty badly due to problems in libc
5675 # (any single argument exceeding 2000 bytes causes a buffer overrun
5676 # during glob expansion). Even if it were fixed, the result of this
5677 # check would be larger than it should be.
5678 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5682 # Under GNU Hurd, this test is not required because there is
5683 # no limit to the length of command line arguments.
5684 # Libtool will interpret -1 as no limit whatsoever
5685 lt_cv_sys_max_cmd_len=-1;
5689 # On Win9x/ME, this test blows up -- it succeeds, but takes
5690 # about 5 minutes as the teststring grows exponentially.
5691 # Worse, since 9x/ME are not pre-emptively multitasking,
5692 # you end up with a "frozen" computer, even though with patience
5693 # the test eventually succeeds (with a max line length of 256k).
5694 # Instead, let's just punt: use the minimum linelength reported by
5695 # all of the supported platforms: 8192 (on NT/2K/XP).
5696 lt_cv_sys_max_cmd_len=8192;
5700 # On AmigaOS with pdksh, this test takes hours, literally.
5701 # So we just punt and use a minimum line length of 8192.
5702 lt_cv_sys_max_cmd_len=8192;
5706 # If test is not a shell built-in, we'll probably end up computing a
5707 # maximum length that is only half of the actual maximum length, but
5709 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5710 = "XX$teststring") >/dev/null 2>&1 &&
5711 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5712 lt_cv_sys_max_cmd_len=$new_result &&
5713 test $i != 17 # 1/2 MB should be enough
5716 teststring=$teststring$teststring
5719 # Add a significant safety factor because C++ compilers can tack on massive
5720 # amounts of additional arguments before passing them to the linker.
5721 # It appears as though 1/2 is a usable value.
5722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5728 if test -n $lt_cv_sys_max_cmd_len ; then
5729 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5730 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5732 echo "$as_me:$LINENO: result: none" >&5
5733 echo "${ECHO_T}none" >&6
5739 # Check for command to grab the raw symbol name followed by C symbol from nm.
5740 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5741 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5742 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 # These are sane defaults that work on at least a few old systems.
5747 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5749 # Character class describing NM global symbol codes.
5750 symcode='[BCDEGRST]'
5752 # Regexp to match symbols that can be accessed directly from C.
5753 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5755 # Transform the above into a raw symbol and a C symbol.
5756 symxfrm='\1 \2\3 \3'
5758 # Transform an extracted symbol line into a proper C declaration
5759 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5761 # Transform an extracted symbol line into symbol name and symbol address
5762 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'"
5764 # Define system-specific variables.
5769 cygwin* | mingw* | pw32*)
5770 symcode='[ABCDGISTW]'
5772 hpux*) # Its linker distinguishes data from code symbols
5773 if test "$host_cpu" = ia64; then
5774 symcode='[ABCDEGRST]'
5776 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5777 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'"
5780 symcode='[BCDEGRST]'
5783 symcode='[BCDEGQRST]'
5793 # Handle CRLF in mingw tool chain
5797 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5801 # If we're using GNU nm, then use its standard symbol codes.
5802 case `$NM -V 2>&1` in
5803 *GNU* | *'with BFD'*)
5804 symcode='[ABCDGIRSTW]' ;;
5807 # Try without a prefix undercore, then with it.
5808 for ac_symprfx in "" "_"; do
5810 # Write the raw and C identifiers.
5811 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5813 # Check to see that the pipe works correctly.
5817 cat > conftest.$ac_ext <<EOF
5822 void nm_test_func(){}
5826 int main(){nm_test_var='a';nm_test_func();return(0);}
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830 (eval $ac_compile) 2>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; then
5834 # Now try to grab the symbols.
5836 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5837 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && test -s "$nlist"; then
5841 # Try sorting and uniquifying the output.
5842 if sort "$nlist" | uniq > "$nlist"T; then
5843 mv -f "$nlist"T "$nlist"
5848 # Make sure that we snagged all the symbols we need.
5849 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5850 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5851 cat <<EOF > conftest.$ac_ext
5857 # Now generate the symbol file.
5858 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5860 cat <<EOF >> conftest.$ac_ext
5861 #if defined (__STDC__) && __STDC__
5862 # define lt_ptr_t void *
5864 # define lt_ptr_t char *
5868 /* The mapping between symbol names and symbols. */
5873 lt_preloaded_symbols[] =
5876 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5877 cat <<\EOF >> conftest.$ac_ext
5885 # Now try linking the two files.
5886 mv conftest.$ac_objext conftstm.$ac_objext
5887 lt_save_LIBS="$LIBS"
5888 lt_save_CFLAGS="$CFLAGS"
5889 LIBS="conftstm.$ac_objext"
5890 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892 (eval $ac_link) 2>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5898 LIBS="$lt_save_LIBS"
5899 CFLAGS="$lt_save_CFLAGS"
5901 echo "cannot find nm_test_func in $nlist" >&5
5904 echo "cannot find nm_test_var in $nlist" >&5
5907 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5910 echo "$progname: failed program was:" >&5
5911 cat conftest.$ac_ext >&5
5913 rm -f conftest* conftst*
5915 # Do not use the global_symbol_pipe unless it works.
5916 if test "$pipe_works" = yes; then
5919 lt_cv_sys_global_symbol_pipe=
5925 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5926 lt_cv_sys_global_symbol_to_cdecl=
5928 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5929 echo "$as_me:$LINENO: result: failed" >&5
5930 echo "${ECHO_T}failed" >&6
5932 echo "$as_me:$LINENO: result: ok" >&5
5933 echo "${ECHO_T}ok" >&6
5936 echo "$as_me:$LINENO: checking for objdir" >&5
5937 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5938 if test "${lt_cv_objdir+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 rm -f .libs 2>/dev/null
5942 mkdir .libs 2>/dev/null
5943 if test -d .libs; then
5946 # MS-DOS does not allow filenames that begin with a dot.
5949 rmdir .libs 2>/dev/null
5951 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5952 echo "${ECHO_T}$lt_cv_objdir" >&6
5953 objdir=$lt_cv_objdir
5961 # AIX sometimes has problems with the GCC collect2 program. For some
5962 # reason, if we set the COLLECT_NAMES environment variable, the problems
5963 # vanish in a puff of smoke.
5964 if test "X${COLLECT_NAMES+set}" != Xset; then
5966 export COLLECT_NAMES
5971 # Sed substitution that helps us do robust quoting. It backslashifies
5972 # metacharacters that are still active within double-quoted strings.
5973 Xsed='sed -e s/^X//'
5974 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5976 # Same as above, but do not quote variable references.
5977 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5979 # Sed substitution to delay expansion of an escaped shell variable in a
5980 # double_quote_subst'ed string.
5981 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5983 # Sed substitution to avoid accidental globbing in evaled expressions
5984 no_glob_subst='s/\*/\\\*/g'
5990 default_ofile=libtool
5991 can_build_shared=yes
5993 # All known linkers require a `.a' archive for static linking (except M$VC,
5994 # which needs '.lib').
5996 ltmain="$ac_aux_dir/ltmain.sh"
5997 ofile="$default_ofile"
5998 with_gnu_ld="$lt_cv_prog_gnu_ld"
6000 if test -n "$ac_tool_prefix"; then
6001 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6002 set dummy ${ac_tool_prefix}ar; ac_word=$2
6003 echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6005 if test "${ac_cv_prog_AR+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 if test -n "$AR"; then
6009 ac_cv_prog_AR="$AR" # Let the user override the test.
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018 ac_cv_prog_AR="${ac_tool_prefix}ar"
6019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 if test -n "$AR"; then
6029 echo "$as_me:$LINENO: result: $AR" >&5
6030 echo "${ECHO_T}$AR" >&6
6032 echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6
6037 if test -z "$ac_cv_prog_AR"; then
6039 # Extract the first word of "ar", so it can be a program name with args.
6040 set dummy ar; ac_word=$2
6041 echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6043 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 if test -n "$ac_ct_AR"; then
6047 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_ac_ct_AR="ar"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6066 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6067 if test -n "$ac_ct_AR"; then
6068 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6069 echo "${ECHO_T}$ac_ct_AR" >&6
6071 echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6
6080 if test -n "$ac_tool_prefix"; then
6081 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6083 echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085 if test "${ac_cv_prog_RANLIB+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 if test -n "$RANLIB"; then
6089 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 RANLIB=$ac_cv_prog_RANLIB
6108 if test -n "$RANLIB"; then
6109 echo "$as_me:$LINENO: result: $RANLIB" >&5
6110 echo "${ECHO_T}$RANLIB" >&6
6112 echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6117 if test -z "$ac_cv_prog_RANLIB"; then
6118 ac_ct_RANLIB=$RANLIB
6119 # Extract the first word of "ranlib", so it can be a program name with args.
6120 set dummy ranlib; ac_word=$2
6121 echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6123 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 if test -n "$ac_ct_RANLIB"; then
6127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_ac_ct_RANLIB="ranlib"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6147 if test -n "$ac_ct_RANLIB"; then
6148 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6149 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6151 echo "$as_me:$LINENO: result: no" >&5
6152 echo "${ECHO_T}no" >&6
6155 RANLIB=$ac_ct_RANLIB
6157 RANLIB="$ac_cv_prog_RANLIB"
6160 if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}strip; ac_word=$2
6163 echo "$as_me:$LINENO: checking for $ac_word" >&5
6164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6165 if test "${ac_cv_prog_STRIP+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 if test -n "$STRIP"; then
6169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 STRIP=$ac_cv_prog_STRIP
6188 if test -n "$STRIP"; then
6189 echo "$as_me:$LINENO: result: $STRIP" >&5
6190 echo "${ECHO_T}$STRIP" >&6
6192 echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6
6197 if test -z "$ac_cv_prog_STRIP"; then
6199 # Extract the first word of "strip", so it can be a program name with args.
6200 set dummy strip; ac_word=$2
6201 echo "$as_me:$LINENO: checking for $ac_word" >&5
6202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6203 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 if test -n "$ac_ct_STRIP"; then
6207 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216 ac_cv_prog_ac_ct_STRIP="strip"
6217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6226 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6227 if test -n "$ac_ct_STRIP"; then
6228 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6229 echo "${ECHO_T}$ac_ct_STRIP" >&6
6231 echo "$as_me:$LINENO: result: no" >&5
6232 echo "${ECHO_T}no" >&6
6237 STRIP="$ac_cv_prog_STRIP"
6242 old_CFLAGS="$CFLAGS"
6244 # Set sane defaults for various variables
6245 test -z "$AR" && AR=ar
6246 test -z "$AR_FLAGS" && AR_FLAGS=cru
6247 test -z "$AS" && AS=as
6248 test -z "$CC" && CC=cc
6249 test -z "$LTCC" && LTCC=$CC
6250 test -z "$DLLTOOL" && DLLTOOL=dlltool
6251 test -z "$LD" && LD=ld
6252 test -z "$LN_S" && LN_S="ln -s"
6253 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6254 test -z "$NM" && NM=nm
6255 test -z "$SED" && SED=sed
6256 test -z "$OBJDUMP" && OBJDUMP=objdump
6257 test -z "$RANLIB" && RANLIB=:
6258 test -z "$STRIP" && STRIP=:
6259 test -z "$ac_objext" && ac_objext=o
6261 # Determine commands to create old-style static archives.
6262 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6263 old_postinstall_cmds='chmod 644 $oldlib'
6264 old_postuninstall_cmds=
6266 if test -n "$RANLIB"; then
6269 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6272 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6275 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6278 # Only perform the check for file, if the check method requires it
6279 case $deplibs_check_method in
6281 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6282 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6283 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6292 lt_save_MAGIC_CMD="$MAGIC_CMD"
6293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6295 for ac_dir in $ac_dummy; do
6297 test -z "$ac_dir" && ac_dir=.
6298 if test -f $ac_dir/${ac_tool_prefix}file; then
6299 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6300 if test -n "$file_magic_test_file"; then
6301 case $deplibs_check_method in
6303 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6306 $EGREP "$file_magic_regex" > /dev/null; then
6311 *** Warning: the command libtool uses to detect shared libraries,
6312 *** $file_magic_cmd, produces output that libtool cannot recognize.
6313 *** The result is that libtool may fail to recognize shared libraries
6314 *** as such. This will affect the creation of libtool libraries that
6315 *** depend on shared libraries, but programs linked with such libtool
6316 *** libraries will work regardless of this problem. Nevertheless, you
6317 *** may want to report the problem to your system manager and/or to
6318 *** bug-libtool@gnu.org
6328 MAGIC_CMD="$lt_save_MAGIC_CMD"
6333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6334 if test -n "$MAGIC_CMD"; then
6335 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6336 echo "${ECHO_T}$MAGIC_CMD" >&6
6338 echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6
6342 if test -z "$lt_cv_path_MAGIC_CMD"; then
6343 if test -n "$ac_tool_prefix"; then
6344 echo "$as_me:$LINENO: checking for file" >&5
6345 echo $ECHO_N "checking for file... $ECHO_C" >&6
6346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6354 lt_save_MAGIC_CMD="$MAGIC_CMD"
6355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6356 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6357 for ac_dir in $ac_dummy; do
6359 test -z "$ac_dir" && ac_dir=.
6360 if test -f $ac_dir/file; then
6361 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6362 if test -n "$file_magic_test_file"; then
6363 case $deplibs_check_method in
6365 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6368 $EGREP "$file_magic_regex" > /dev/null; then
6373 *** Warning: the command libtool uses to detect shared libraries,
6374 *** $file_magic_cmd, produces output that libtool cannot recognize.
6375 *** The result is that libtool may fail to recognize shared libraries
6376 *** as such. This will affect the creation of libtool libraries that
6377 *** depend on shared libraries, but programs linked with such libtool
6378 *** libraries will work regardless of this problem. Nevertheless, you
6379 *** may want to report the problem to your system manager and/or to
6380 *** bug-libtool@gnu.org
6390 MAGIC_CMD="$lt_save_MAGIC_CMD"
6395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6396 if test -n "$MAGIC_CMD"; then
6397 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6398 echo "${ECHO_T}$MAGIC_CMD" >&6
6400 echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6
6416 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6417 if test "${enable_libtool_lock+set}" = set; then
6418 enableval="$enable_libtool_lock"
6421 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6424 # Check whether --with-pic or --without-pic was given.
6425 if test "${with_pic+set}" = set; then
6431 test -z "$pic_mode" && pic_mode=default
6433 # Use C for the default configuration in the libtool script
6437 ac_cpp='$CPP $CPPFLAGS'
6438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6443 # Source file extension for C test sources.
6446 # Object file extension for compiled C test sources.
6450 # Code to be used in simple compile tests
6451 lt_simple_compile_test_code="int some_variable = 0;\n"
6453 # Code to be used in simple link tests
6454 lt_simple_link_test_code='int main(){return(0);}\n'
6457 # If no C compiler was specified, use CC.
6460 # Allow CC to be a program name with arguments.
6465 # Check for any special shared library compilation flags.
6468 if test "$GCC" = no; then
6471 lt_prog_cc_shlib='-belf'
6475 if test -n "$lt_prog_cc_shlib"; then
6476 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6477 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6478 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6480 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6481 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6482 lt_cv_prog_cc_can_build_shared=no
6488 # Check to make sure the static flag actually works.
6490 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6491 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6492 if test "${lt_prog_compiler_static_works+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 lt_prog_compiler_static_works=no
6496 save_LDFLAGS="$LDFLAGS"
6497 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6498 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6500 # The compiler can only warn and ignore the option if not recognized
6501 # So say no if there are warnings
6502 if test -s conftest.err; then
6503 # Append any errors to the config.log.
6504 cat conftest.err 1>&5
6506 lt_prog_compiler_static_works=yes
6510 LDFLAGS="$save_LDFLAGS"
6513 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6514 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6516 if test x"$lt_prog_compiler_static_works" = xyes; then
6519 lt_prog_compiler_static=
6525 lt_prog_compiler_no_builtin_flag=
6527 if test "$GCC" = yes; then
6528 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6531 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6532 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6533 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 lt_cv_prog_compiler_rtti_exceptions=no
6537 ac_outfile=conftest.$ac_objext
6538 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6539 lt_compiler_flag="-fno-rtti -fno-exceptions"
6540 # Insert the option either (1) after the last *FLAGS variable, or
6541 # (2) before a word containing "conftest.", or (3) at the end.
6542 # Note that $ac_compile itself does not contain backslashes and begins
6543 # with a dollar sign (not a hyphen), so the echo should work correctly.
6544 # The option is referenced via a variable to avoid confusing sed.
6545 lt_compile=`echo "$ac_compile" | $SED \
6546 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6548 -e 's:$: $lt_compiler_flag:'`
6549 (eval echo "\"\$as_me:6549: $lt_compile\"" >&5)
6550 (eval "$lt_compile" 2>conftest.err)
6552 cat conftest.err >&5
6553 echo "$as_me:6553: \$? = $ac_status" >&5
6554 if (exit $ac_status) && test -s "$ac_outfile"; then
6555 # The compiler can only warn and ignore the option if not recognized
6556 # So say no if there are warnings
6557 if test ! -s conftest.err; then
6558 lt_cv_prog_compiler_rtti_exceptions=yes
6564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6565 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6567 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6568 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6575 lt_prog_compiler_wl=
6576 lt_prog_compiler_pic=
6577 lt_prog_compiler_static=
6579 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6582 if test "$GCC" = yes; then
6583 lt_prog_compiler_wl='-Wl,'
6584 lt_prog_compiler_static='-static'
6588 # All AIX code is PIC.
6589 if test "$host_cpu" = ia64; then
6590 # AIX 5 now supports IA64 processor
6591 lt_prog_compiler_static='-Bstatic'
6596 # FIXME: we need at least 68020 code to build shared libraries, but
6597 # adding the `-m68020' flag to GCC prevents building anything better,
6599 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6602 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6603 # PIC is the default for these OSes.
6606 mingw* | pw32* | os2*)
6607 # This hack is so that the source file can tell whether it is being
6608 # built for inclusion in a dll (and should export symbols for example).
6609 lt_prog_compiler_pic='-DDLL_EXPORT'
6612 darwin* | rhapsody*)
6613 # PIC is the default on this platform
6614 # Common symbols not allowed in MH_DYLIB files
6615 lt_prog_compiler_pic='-fno-common'
6619 # Just because we use GCC doesn't mean we suddenly get shared libraries
6620 # on systems that don't support them.
6621 lt_prog_compiler_can_build_shared=no
6626 if test -d /usr/nec; then
6627 lt_prog_compiler_pic=-Kconform_pic
6632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6639 lt_prog_compiler_pic='-fPIC'
6645 lt_prog_compiler_pic='-fPIC'
6649 # PORTME Check for flag to pass linker flags through the system compiler.
6652 lt_prog_compiler_wl='-Wl,'
6653 if test "$host_cpu" = ia64; then
6654 # AIX 5 now supports IA64 processor
6655 lt_prog_compiler_static='-Bstatic'
6657 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6661 mingw* | pw32* | os2*)
6662 # This hack is so that the source file can tell whether it is being
6663 # built for inclusion in a dll (and should export symbols for example).
6664 lt_prog_compiler_pic='-DDLL_EXPORT'
6667 hpux9* | hpux10* | hpux11*)
6668 lt_prog_compiler_wl='-Wl,'
6669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6676 lt_prog_compiler_pic='+Z'
6679 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6680 lt_prog_compiler_static='${wl}-a ${wl}archive'
6683 irix5* | irix6* | nonstopux*)
6684 lt_prog_compiler_wl='-Wl,'
6685 # PIC (with -KPIC) is the default.
6686 lt_prog_compiler_static='-non_shared'
6690 lt_prog_compiler_pic='-KPIC'
6691 lt_prog_compiler_static='-Bstatic'
6697 lt_prog_compiler_wl='-Wl,'
6698 lt_prog_compiler_pic='-KPIC'
6699 lt_prog_compiler_static='-static'
6702 lt_prog_compiler_wl='-Wl,'
6703 # All Alpha code is PIC.
6704 lt_prog_compiler_static='-non_shared'
6709 osf3* | osf4* | osf5*)
6710 lt_prog_compiler_wl='-Wl,'
6711 # All OSF/1 code is PIC.
6712 lt_prog_compiler_static='-non_shared'
6716 lt_prog_compiler_pic='-Kpic'
6717 lt_prog_compiler_static='-dn'
6721 lt_prog_compiler_wl='-Wl,'
6722 lt_prog_compiler_pic='-KPIC'
6723 lt_prog_compiler_static='-Bstatic'
6727 lt_prog_compiler_wl='-Qoption ld '
6728 lt_prog_compiler_pic='-PIC'
6729 lt_prog_compiler_static='-Bstatic'
6732 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6733 lt_prog_compiler_wl='-Wl,'
6734 lt_prog_compiler_pic='-KPIC'
6735 lt_prog_compiler_static='-Bstatic'
6739 if test -d /usr/nec ;then
6740 lt_prog_compiler_pic='-Kconform_pic'
6741 lt_prog_compiler_static='-Bstatic'
6746 lt_prog_compiler_pic='-pic'
6747 lt_prog_compiler_static='-Bstatic'
6751 lt_prog_compiler_can_build_shared=no
6756 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6757 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6760 # Check to make sure the PIC flag actually works.
6762 if test -n "$lt_prog_compiler_pic"; then
6764 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6766 if test "${lt_prog_compiler_pic_works+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 lt_prog_compiler_pic_works=no
6770 ac_outfile=conftest.$ac_objext
6771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6772 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6773 # Insert the option either (1) after the last *FLAGS variable, or
6774 # (2) before a word containing "conftest.", or (3) at the end.
6775 # Note that $ac_compile itself does not contain backslashes and begins
6776 # with a dollar sign (not a hyphen), so the echo should work correctly.
6777 # The option is referenced via a variable to avoid confusing sed.
6778 lt_compile=`echo "$ac_compile" | $SED \
6779 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6781 -e 's:$: $lt_compiler_flag:'`
6782 (eval echo "\"\$as_me:6782: $lt_compile\"" >&5)
6783 (eval "$lt_compile" 2>conftest.err)
6785 cat conftest.err >&5
6786 echo "$as_me:6786: \$? = $ac_status" >&5
6787 if (exit $ac_status) && test -s "$ac_outfile"; then
6788 # The compiler can only warn and ignore the option if not recognized
6789 # So say no if there are warnings
6790 if test ! -s conftest.err; then
6791 lt_prog_compiler_pic_works=yes
6797 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6798 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6800 if test x"$lt_prog_compiler_pic_works" = xyes; then
6801 case $lt_prog_compiler_pic in
6803 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6806 lt_prog_compiler_pic=
6807 lt_prog_compiler_can_build_shared=no
6812 # For platforms which do not support PIC, -DPIC is meaningless:
6814 lt_prog_compiler_pic=
6817 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6821 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6823 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 lt_cv_prog_compiler_c_o=no
6827 $rm -r conftest 2>/dev/null
6831 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6833 lt_compiler_flag="-o out/conftest2.$ac_objext"
6834 # Insert the option either (1) after the last *FLAGS variable, or
6835 # (2) before a word containing "conftest.", or (3) at the end.
6836 # Note that $ac_compile itself does not contain backslashes and begins
6837 # with a dollar sign (not a hyphen), so the echo should work correctly.
6838 lt_compile=`echo "$ac_compile" | $SED \
6839 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6841 -e 's:$: $lt_compiler_flag:'`
6842 (eval echo "\"\$as_me:6842: $lt_compile\"" >&5)
6843 (eval "$lt_compile" 2>out/conftest.err)
6845 cat out/conftest.err >&5
6846 echo "$as_me:6846: \$? = $ac_status" >&5
6847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6849 # The compiler can only warn and ignore the option if not recognized
6850 # So say no if there are warnings
6851 if test ! -s out/conftest.err; then
6852 lt_cv_prog_compiler_c_o=yes
6857 # SGI C++ compiler will create directory out/ii_files/ for
6858 # template instantiation
6859 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6860 $rm out/* && rmdir out
6866 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6870 hard_links="nottested"
6871 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6872 # do not overwrite the value of need_locks provided by the user
6873 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6874 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6879 ln conftest.a conftest.b 2>&5 || hard_links=no
6880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6881 echo "$as_me:$LINENO: result: $hard_links" >&5
6882 echo "${ECHO_T}$hard_links" >&6
6883 if test "$hard_links" = no; then
6884 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6885 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6892 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6896 allow_undefined_flag=
6897 enable_shared_with_static_runtimes=no
6899 archive_expsym_cmds=
6900 old_archive_From_new_cmds=
6901 old_archive_from_expsyms_cmds=
6902 export_dynamic_flag_spec=
6903 whole_archive_flag_spec=
6904 thread_safe_flag_spec=
6905 hardcode_libdir_flag_spec=
6906 hardcode_libdir_flag_spec_ld=
6907 hardcode_libdir_separator=
6910 hardcode_shlibpath_var=unsupported
6911 link_all_deplibs=unknown
6912 hardcode_automatic=no
6915 always_export_symbols=no
6916 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6917 # include_expsyms should be a list of space-separated symbols to be *always*
6918 # included in the symbol list
6920 # exclude_expsyms can be an extended regexp of symbols to exclude
6921 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6922 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6923 # as well as any symbol that contains `d'.
6924 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6925 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6926 # platforms (ab)use it in PIC code, but their linkers get confused if
6927 # the symbol is explicitly referenced. Since portable code cannot
6928 # rely on this symbol name, it's probably fine to never include it in
6929 # preloaded symbol tables.
6930 extract_expsyms_cmds=
6933 cygwin* | mingw* | pw32*)
6934 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6935 # When not using gcc, we currently assume that we are using
6936 # Microsoft Visual C++.
6937 if test "$GCC" != yes; then
6947 if test "$with_gnu_ld" = yes; then
6948 # If archive_cmds runs LD, not CC, wlarc should be empty
6951 # See if GNU ld supports shared libraries.
6953 aix3* | aix4* | aix5*)
6954 # On AIX/PPC, the GNU linker is very broken
6955 if test "$host_cpu" != ia64; then
6959 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6960 *** to be unable to reliably create shared libraries on AIX.
6961 *** Therefore, libtool is disabling shared libraries support. If you
6962 *** really care for shared libraries, you may want to modify your PATH
6963 *** so that a non-GNU linker is found, and then restart.
6970 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)'
6971 hardcode_libdir_flag_spec='-L$libdir'
6972 hardcode_minus_L=yes
6974 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6975 # that the semantics of dynamic libraries on AmigaOS, at least up
6976 # to version 4, is to share data among multiple programs linked
6977 # with the same dynamic library. Since this doesn't match the
6978 # behavior of shared libraries on other platforms, we can't use
6984 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6985 allow_undefined_flag=unsupported
6986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6987 # support --undefined. This deserves some investigation. FIXME
6988 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6994 cygwin* | mingw* | pw32*)
6995 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6996 # as there is no search path for DLLs.
6997 hardcode_libdir_flag_spec='-L$libdir'
6998 allow_undefined_flag=unsupported
6999 always_export_symbols=no
7000 enable_shared_with_static_runtimes=yes
7001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7003 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7005 # If the export-symbols file already is a .def file (1st line
7006 # is EXPORTS), use it as is; otherwise, prepend...
7007 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7008 cp $export_symbols $output_objdir/$soname.def;
7010 echo EXPORTS > $output_objdir/$soname.def;
7011 cat $export_symbols >> $output_objdir/$soname.def;
7013 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7019 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7021 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7030 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7034 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7035 *** create shared libraries on Solaris systems. Therefore, libtool
7036 *** is disabling shared libraries support. We urge you to upgrade GNU
7037 *** binutils to release 2.9.1 or newer. Another option is to modify
7038 *** your PATH or compiler configuration so that the native linker is
7039 *** used, and then restart.
7042 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7051 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7054 hardcode_shlibpath_var=no
7058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7059 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7060 archive_cmds="$tmp_archive_cmds"
7061 supports_anon_versioning=no
7062 case `$LD -v 2>/dev/null` in
7063 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7066 *\ 2.11.*) ;; # other 2.11 versions
7067 *) supports_anon_versioning=yes ;;
7069 if test $supports_anon_versioning = yes; then
7070 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7072 $echo "local: *; };" >> $output_objdir/$libname.ver~
7073 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7075 archive_expsym_cmds="$tmp_archive_cmds"
7084 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7093 if test "$ld_shlibs" = yes; then
7094 runpath_var=LD_RUN_PATH
7095 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7096 export_dynamic_flag_spec='${wl}--export-dynamic'
7097 # ancient GNU ld didn't support --whole-archive et. al.
7098 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7099 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7101 whole_archive_flag_spec=
7105 # PORTME fill in a description of your system's linker (not GNU ld)
7108 allow_undefined_flag=unsupported
7109 always_export_symbols=yes
7110 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'
7111 # Note: this linker hardcodes the directories in LIBPATH if there
7112 # are no directories specified by -L.
7113 hardcode_minus_L=yes
7114 if test "$GCC" = yes && test -z "$link_static_flag"; then
7115 # Neither direct hardcoding nor static linking is supported with a
7117 hardcode_direct=unsupported
7122 if test "$host_cpu" = ia64; then
7123 # On IA64, the linker does run time linking by default, so we don't
7124 # have to do anything special.
7125 aix_use_runtimelinking=no
7126 exp_sym_flag='-Bexport'
7129 # If we're using GNU nm, then we don't want the "-C" option.
7130 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7131 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7132 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'
7134 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'
7136 aix_use_runtimelinking=no
7138 # Test if we are trying to use run time linking or normal
7139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7140 # need to do runtime linking.
7141 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7142 for ld_flag in $LDFLAGS; do
7143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7144 aix_use_runtimelinking=yes
7150 exp_sym_flag='-bexport'
7151 no_entry_flag='-bnoentry'
7154 # When large executables or shared objects are built, AIX ld can
7155 # have problems creating the table of contents. If linking a library
7156 # or program results in "error TOC overflow" add -mminimal-toc to
7157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7162 hardcode_libdir_separator=':'
7163 link_all_deplibs=yes
7165 if test "$GCC" = yes; then
7166 case $host_os in aix4.012|aix4.012.*)
7167 # We only want to do this on AIX 4.2 and lower, the check
7168 # below for broken collect2 doesn't work under 4.3+
7169 collect2name=`${CC} -print-prog-name=collect2`
7170 if test -f "$collect2name" && \
7171 strings "$collect2name" | grep resolve_lib_name >/dev/null
7173 # We have reworked collect2
7176 # We have old collect2
7177 hardcode_direct=unsupported
7178 # It fails to find uninstalled libraries when the uninstalled
7179 # path is not listed in the libpath. Setting hardcode_minus_L
7180 # to unsupported forces relinking
7181 hardcode_minus_L=yes
7182 hardcode_libdir_flag_spec='-L$libdir'
7183 hardcode_libdir_separator=
7186 shared_flag='-shared'
7189 if test "$host_cpu" = ia64; then
7190 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7191 # chokes on -Wl,-G. The following line is correct:
7194 if test "$aix_use_runtimelinking" = yes; then
7195 shared_flag='${wl}-G'
7197 shared_flag='${wl}-bM:SRE'
7202 # It seems that -bexpall does not export symbols beginning with
7203 # underscore (_), so it is better to generate a list of symbols to export.
7204 always_export_symbols=yes
7205 if test "$aix_use_runtimelinking" = yes; then
7206 # Warning - without using the other runtime loading flags (-brtl),
7207 # -berok will link without error, but may produce a broken library.
7208 allow_undefined_flag='-berok'
7209 # Determine the default libpath from the value encoded in an empty executable.
7210 cat >conftest.$ac_ext <<_ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7225 rm -f conftest.$ac_objext conftest$ac_exeext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227 (eval $ac_link) 2>conftest.er1
7229 grep -v '^ *+' conftest.er1 >conftest.err
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7249 # Check for a 64-bit object if we didn't find anything.
7250 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; }
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7257 rm -f conftest.err conftest.$ac_objext \
7258 conftest$ac_exeext conftest.$ac_ext
7259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7261 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7262 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7264 if test "$host_cpu" = ia64; then
7265 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7266 allow_undefined_flag="-z nodefs"
7267 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7269 # Determine the default libpath from the value encoded in an empty executable.
7270 cat >conftest.$ac_ext <<_ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7285 rm -f conftest.$ac_objext conftest$ac_exeext
7286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7287 (eval $ac_link) 2>conftest.er1
7289 grep -v '^ *+' conftest.er1 >conftest.err
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; } &&
7300 { ac_try='test -s conftest$ac_exeext'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7309 # Check for a 64-bit object if we didn't find anything.
7310 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; }
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7317 rm -f conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7321 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7322 # Warning - without using the other run time loading flags,
7323 # -berok will link without error, but may produce a broken library.
7324 no_undefined_flag=' ${wl}-bernotok'
7325 allow_undefined_flag=' ${wl}-berok'
7326 # -bexpall does not export symbols beginning with underscore (_)
7327 always_export_symbols=yes
7328 # Exported symbols can be pulled into shared objects from archives
7329 whole_archive_flag_spec=' '
7330 archive_cmds_need_lc=yes
7331 # This is similar to how AIX traditionally builds it's shared libraries.
7332 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7338 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)'
7339 hardcode_libdir_flag_spec='-L$libdir'
7340 hardcode_minus_L=yes
7341 # see comment about different semantics on the GNU ld section
7346 export_dynamic_flag_spec=-rdynamic
7349 cygwin* | mingw* | pw32*)
7350 # When not using gcc, we currently assume that we are using
7351 # Microsoft Visual C++.
7352 # hardcode_libdir_flag_spec is actually meaningless, as there is
7353 # no search path for DLLs.
7354 hardcode_libdir_flag_spec=' '
7355 allow_undefined_flag=unsupported
7356 # Tell ltmain to make .lib files, not .a files.
7358 # Tell ltmain to make .dll files, not .so files.
7360 # FIXME: Setting linknames here is a bad hack.
7361 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7362 # The linker will automatically build a .lib file if we build a DLL.
7363 old_archive_From_new_cmds='true'
7364 # FIXME: Should let the user specify the lib program.
7365 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7366 fix_srcfile_path='`cygpath -w "$srcfile"`'
7367 enable_shared_with_static_runtimes=yes
7370 darwin* | rhapsody*)
7371 if test "$GXX" = yes ; then
7372 archive_cmds_need_lc=no
7374 rhapsody* | darwin1.[012])
7375 allow_undefined_flag='-undefined suppress'
7378 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7379 allow_undefined_flag='-flat_namespace -undefined suppress'
7381 case ${MACOSX_DEPLOYMENT_TARGET} in
7383 allow_undefined_flag='-flat_namespace -undefined suppress'
7386 allow_undefined_flag='-undefined dynamic_lookup'
7392 lt_int_apple_cc_single_mod=no
7393 output_verbose_link_cmd='echo'
7394 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7395 lt_int_apple_cc_single_mod=yes
7397 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7398 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7400 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7402 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7403 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7404 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7405 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7407 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7409 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}'
7411 hardcode_automatic=yes
7412 hardcode_shlibpath_var=unsupported
7413 whole_archive_flag_spec='-all_load $convenience'
7414 link_all_deplibs=yes
7421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7422 hardcode_libdir_flag_spec='-L$libdir'
7423 hardcode_shlibpath_var=no
7430 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7431 # support. Future versions do this automatically, but an explicit c++rt0.o
7432 # does not break anything, and helps significantly (at the cost of a little
7435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7436 hardcode_libdir_flag_spec='-R$libdir'
7438 hardcode_shlibpath_var=no
7441 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7443 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7445 hardcode_minus_L=yes
7446 hardcode_shlibpath_var=no
7449 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7450 freebsd* | kfreebsd*-gnu)
7451 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7452 hardcode_libdir_flag_spec='-R$libdir'
7454 hardcode_shlibpath_var=no
7458 if test "$GCC" = yes; then
7459 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'
7461 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'
7463 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7464 hardcode_libdir_separator=:
7467 # hardcode_minus_L: Not really in the search PATH,
7468 # but as the default location of the library.
7469 hardcode_minus_L=yes
7470 export_dynamic_flag_spec='${wl}-E'
7474 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7477 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7480 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7486 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7489 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7493 if test "$with_gnu_ld" = no; then
7496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7497 hardcode_libdir_flag_spec_ld='+b $libdir'
7498 hardcode_libdir_separator=:
7500 hardcode_shlibpath_var=no
7503 hardcode_libdir_flag_spec='-L$libdir'
7505 hardcode_shlibpath_var=no
7507 # hardcode_minus_L: Not really in the search PATH,
7508 # but as the default location of the library.
7509 hardcode_minus_L=yes
7512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7513 hardcode_libdir_separator=:
7515 export_dynamic_flag_spec='${wl}-E'
7517 # hardcode_minus_L: Not really in the search PATH,
7518 # but as the default location of the library.
7519 hardcode_minus_L=yes
7525 irix5* | irix6* | nonstopux*)
7526 if test "$GCC" = yes; then
7527 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'
7529 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'
7530 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7533 hardcode_libdir_separator=:
7534 link_all_deplibs=yes
7537 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7541 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7543 hardcode_libdir_flag_spec='-R$libdir'
7545 hardcode_shlibpath_var=no
7549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7552 hardcode_libdir_separator=:
7553 hardcode_shlibpath_var=no
7558 hardcode_shlibpath_var=no
7559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7561 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7562 export_dynamic_flag_spec='${wl}-E'
7565 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7567 hardcode_libdir_flag_spec='-R$libdir'
7570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7578 hardcode_libdir_flag_spec='-L$libdir'
7579 hardcode_minus_L=yes
7580 allow_undefined_flag=unsupported
7581 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'
7582 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7586 if test "$GCC" = yes; then
7587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7588 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'
7590 allow_undefined_flag=' -expect_unresolved \*'
7591 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'
7593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7594 hardcode_libdir_separator=:
7597 osf4* | osf5*) # as osf3* with the addition of -msym flag
7598 if test "$GCC" = yes; then
7599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7600 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'
7601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7603 allow_undefined_flag=' -expect_unresolved \*'
7604 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'
7605 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7606 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7608 # Both c and cxx compiler support -rpath directly
7609 hardcode_libdir_flag_spec='-rpath $libdir'
7611 hardcode_libdir_separator=:
7615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7616 hardcode_shlibpath_var=no
7617 export_dynamic_flag_spec='${wl}-Bexport'
7618 runpath_var=LD_RUN_PATH
7619 hardcode_runpath_var=yes
7623 no_undefined_flag=' -z text'
7624 if test "$GCC" = yes; then
7625 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7626 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7627 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7629 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7631 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7633 hardcode_libdir_flag_spec='-R$libdir'
7634 hardcode_shlibpath_var=no
7636 solaris2.[0-5] | solaris2.[0-5].*) ;;
7637 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7638 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7640 link_all_deplibs=yes
7644 if test "x$host_vendor" = xsequent; then
7645 # Use $CC to link under sequent, because it throws in some extra .o
7646 # files that make .init and .fini sections work.
7647 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7649 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7651 hardcode_libdir_flag_spec='-L$libdir'
7653 hardcode_minus_L=yes
7654 hardcode_shlibpath_var=no
7658 case $host_vendor in
7660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7661 hardcode_direct=yes # is this really true???
7664 ## LD is ld it makes a PLAMLIB
7665 ## CC just makes a GrossModule.
7666 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7667 reload_cmds='$CC -r -o $output$reload_objs'
7671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7672 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7675 runpath_var='LD_RUN_PATH'
7676 hardcode_shlibpath_var=no
7680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681 hardcode_shlibpath_var=no
7682 export_dynamic_flag_spec='-Bexport'
7686 if test -d /usr/nec; then
7687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7688 hardcode_shlibpath_var=no
7689 runpath_var=LD_RUN_PATH
7690 hardcode_runpath_var=yes
7696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7699 hardcode_shlibpath_var=no
7700 hardcode_runpath_var=yes
7701 runpath_var=LD_RUN_PATH
7704 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7705 no_undefined_flag='${wl}-z ${wl}text'
7706 if test "$GCC" = yes; then
7707 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7709 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7711 runpath_var='LD_RUN_PATH'
7712 hardcode_shlibpath_var=no
7716 no_undefined_flag=' -z text'
7717 # $CC -shared without GNU ld will not create a library from C++
7718 # object files and a static libstdc++, better avoid it by now
7719 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7720 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7722 hardcode_libdir_flag_spec=
7723 hardcode_shlibpath_var=no
7724 runpath_var='LD_RUN_PATH'
7728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7729 hardcode_libdir_flag_spec='-L$libdir'
7730 hardcode_shlibpath_var=no
7739 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7740 echo "${ECHO_T}$ld_shlibs" >&6
7741 test "$ld_shlibs" = no && can_build_shared=no
7743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7744 if test "$GCC" = yes; then
7745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7749 # Do we need to explicitly link libc?
7751 case "x$archive_cmds_need_lc" in
7753 # Assume -lc should be added
7754 archive_cmds_need_lc=yes
7756 if test "$enable_shared" = yes && test "$GCC" = yes; then
7757 case $archive_cmds in
7759 # FIXME: we may have to deal with multi-command sequences.
7762 # Test whether the compiler implicitly links with -lc since on some
7763 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7764 # to ld, don't add -lc before -lgcc.
7765 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7766 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771 (eval $ac_compile) 2>&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } 2>conftest.err; then
7777 libobjs=conftest.$ac_objext
7779 wl=$lt_prog_compiler_wl
7785 lt_save_allow_undefined_flag=$allow_undefined_flag
7786 allow_undefined_flag=
7787 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7788 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }
7793 archive_cmds_need_lc=no
7795 archive_cmds_need_lc=yes
7797 allow_undefined_flag=$lt_save_allow_undefined_flag
7799 cat conftest.err 1>&5
7802 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7803 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7810 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7811 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7813 libname_spec='lib$name'
7821 shlibpath_overrides_runpath=unknown
7823 dynamic_linker="$host_os ld.so"
7824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7825 if test "$GCC" = yes; then
7826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7827 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7828 # if the path contains ";" then we assume it to be the separator
7829 # otherwise default to the standard path separator (i.e. ":") - it is
7830 # assumed that no part of a normal pathname contains ";" but that should
7831 # okay in the real world where ";" in dirpaths is itself problematic.
7832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7837 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7839 need_lib_prefix=unknown
7840 hardcode_into_libs=no
7842 # when you set need_version to no, make sure it does not cause -set_version
7843 # flags to be left without arguments
7844 need_version=unknown
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7850 shlibpath_var=LIBPATH
7852 # AIX 3 has no versioning support, so we append a major version to the name.
7853 soname_spec='${libname}${release}${shared_ext}$major'
7860 hardcode_into_libs=yes
7861 if test "$host_cpu" = ia64; then
7862 # AIX 5 supports IA64
7863 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7864 shlibpath_var=LD_LIBRARY_PATH
7866 # With GCC up to 2.95.x, collect2 would create an import file
7867 # for dependence libraries. The import file would start with
7868 # the line `#! .'. This would cause the generated library to
7869 # depend on `.', always an invalid library. This was fixed in
7870 # development snapshots of GCC prior to 3.0.
7872 aix4 | aix4.[01] | aix4.[01].*)
7873 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7875 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7882 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7883 # soname into executable. Probably we can add versioning support to
7884 # collect2, so additional links can be useful in future.
7885 if test "$aix_use_runtimelinking" = yes; then
7886 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7887 # instead of lib<name>.a to let people know that these are not
7888 # typical AIX shared libraries.
7889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7891 # We preserve .a as extension for shared libraries through AIX4.2
7892 # and later when we are not doing run time linking.
7893 library_names_spec='${libname}${release}.a $libname.a'
7894 soname_spec='${libname}${release}${shared_ext}$major'
7896 shlibpath_var=LIBPATH
7901 library_names_spec='$libname.ixlibrary $libname.a'
7902 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7903 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'
7907 library_names_spec='${libname}${shared_ext}'
7908 dynamic_linker="$host_os ld.so"
7909 shlibpath_var=LIBRARY_PATH
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7916 soname_spec='${libname}${release}${shared_ext}$major'
7917 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7918 shlibpath_var=LD_LIBRARY_PATH
7919 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7920 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7921 # the default ld.so.conf also contains /usr/contrib/lib and
7922 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7923 # libtool to hard-code these into programs
7926 cygwin* | mingw* | pw32*)
7927 version_type=windows
7932 case $GCC,$host_os in
7933 yes,cygwin* | yes,mingw* | yes,pw32*)
7934 library_names_spec='$libname.dll.a'
7935 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7936 postinstall_cmds='base_file=`basename \${file}`~
7937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7938 dldir=$destdir/`dirname \$dlpath`~
7939 test -d \$dldir || mkdir -p \$dldir~
7940 $install_prog $dir/$dlname \$dldir/$dlname'
7941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7942 dlpath=$dir/\$dldll~
7944 shlibpath_overrides_runpath=yes
7948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7950 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7953 # MinGW DLLs use traditional 'lib' prefix
7954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7956 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7957 # It is most probably a Windows format PATH printed by
7958 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7959 # path with ; separators, and with drive letters. We can handle the
7960 # drive letters (cygwin fileutils understands them), so leave them,
7961 # especially as we might pass files found there to a mingw objdump,
7962 # which wouldn't understand a cygwinified path. Ahh.
7963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7969 # pw32 DLLs use 'pw' prefix rather than 'lib'
7970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7979 dynamic_linker='Win32 ld.exe'
7980 # FIXME: first we should search . and the directory the executable is in
7984 darwin* | rhapsody*)
7985 dynamic_linker="$host_os dyld"
7989 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7990 soname_spec='${libname}${release}${major}$shared_ext'
7991 shlibpath_overrides_runpath=yes
7992 shlibpath_var=DYLD_LIBRARY_PATH
7993 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7994 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7995 if test "$GCC" = yes; then
7996 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"`
7998 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8008 soname_spec='${libname}${release}${shared_ext}$major'
8009 shlibpath_var=LD_LIBRARY_PATH
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8021 soname_spec='${libname}${release}${shared_ext}$major'
8022 shlibpath_var=LD_LIBRARY_PATH
8023 shlibpath_overrides_runpath=no
8024 hardcode_into_libs=yes
8025 dynamic_linker='GNU ld.so'
8029 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8030 version_type=freebsd-$objformat
8031 case $version_type in
8033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8042 shlibpath_var=LD_LIBRARY_PATH
8045 shlibpath_overrides_runpath=yes
8047 freebsd3.01* | freebsdelf3.01*)
8048 shlibpath_overrides_runpath=yes
8049 hardcode_into_libs=yes
8052 shlibpath_overrides_runpath=no
8053 hardcode_into_libs=yes
8062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8063 soname_spec='${libname}${release}${shared_ext}$major'
8064 shlibpath_var=LD_LIBRARY_PATH
8065 hardcode_into_libs=yes
8068 hpux9* | hpux10* | hpux11*)
8069 # Give a soname corresponding to the major version so that dld.sl refuses to
8070 # link against other versions.
8077 hardcode_into_libs=yes
8078 dynamic_linker="$host_os dld.so"
8079 shlibpath_var=LD_LIBRARY_PATH
8080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8082 soname_spec='${libname}${release}${shared_ext}$major'
8083 if test "X$HPUX_IA64_MODE" = X32; then
8084 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8092 hardcode_into_libs=yes
8093 dynamic_linker="$host_os dld.sl"
8094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8097 soname_spec='${libname}${release}${shared_ext}$major'
8098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8103 dynamic_linker="$host_os dld.sl"
8104 shlibpath_var=SHLIB_PATH
8105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8107 soname_spec='${libname}${release}${shared_ext}$major'
8110 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8111 postinstall_cmds='chmod 555 $lib'
8114 irix5* | irix6* | nonstopux*)
8116 nonstopux*) version_type=nonstopux ;;
8118 if test "$lt_cv_prog_gnu_ld" = yes; then
8126 soname_spec='${libname}${release}${shared_ext}$major'
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8129 irix5* | nonstopux*)
8133 case $LD in # libtool.m4 will add one of these switches to LD
8134 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8135 libsuff= shlibsuff= libmagic=32-bit;;
8136 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8137 libsuff=32 shlibsuff=N32 libmagic=N32;;
8138 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8139 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8140 *) libsuff= shlibsuff= libmagic=never-match;;
8144 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8145 shlibpath_overrides_runpath=no
8146 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8147 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8148 hardcode_into_libs=yes
8151 # No shared lib support for Linux oldld, aout, or coff.
8152 linux*oldld* | linux*aout* | linux*coff*)
8156 # This must be Linux ELF.
8161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8162 soname_spec='${libname}${release}${shared_ext}$major'
8163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8164 shlibpath_var=LD_LIBRARY_PATH
8165 shlibpath_overrides_runpath=no
8166 # This implies no fast_install, which is unacceptable.
8167 # Some rework will be needed to allow for fast_install
8168 # before this can be enabled.
8169 hardcode_into_libs=yes
8171 # Append ld.so.conf contents to the search path
8172 if test -f /etc/ld.so.conf; then
8173 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8174 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8177 # We used to test for /lib/ld.so.1 and disable shared libraries on
8178 # powerpc, because MkLinux only supported shared libraries with the
8179 # GNU dynamic linker. Since this was broken with cross compilers,
8180 # most powerpc-linux boxes support dynamic linking these days and
8181 # people can always --disable-shared, the test was removed, and we
8182 # assume the GNU/Linux dynamic linker is in use.
8183 dynamic_linker='GNU/Linux ld.so'
8190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8191 soname_spec='${libname}${release}${shared_ext}$major'
8192 shlibpath_var=LD_LIBRARY_PATH
8193 shlibpath_overrides_runpath=no
8194 hardcode_into_libs=yes
8195 dynamic_linker='NetBSD ld.elf_so'
8202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8203 soname_spec='${libname}${release}${shared_ext}$major'
8204 shlibpath_var=LD_LIBRARY_PATH
8205 shlibpath_overrides_runpath=no
8206 hardcode_into_libs=yes
8207 dynamic_linker='GNU ld.so'
8214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8217 dynamic_linker='NetBSD (a.out) ld.so'
8219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8220 soname_spec='${libname}${release}${shared_ext}$major'
8221 dynamic_linker='NetBSD ld.elf_so'
8223 shlibpath_var=LD_LIBRARY_PATH
8224 shlibpath_overrides_runpath=yes
8225 hardcode_into_libs=yes
8230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8231 shlibpath_var=LD_LIBRARY_PATH
8232 shlibpath_overrides_runpath=yes
8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240 soname_spec='${libname}${release}${shared_ext}$major'
8241 shlibpath_var=LD_LIBRARY_PATH
8242 shlibpath_overrides_runpath=yes
8249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8251 shlibpath_var=LD_LIBRARY_PATH
8252 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8254 openbsd2.[89] | openbsd2.[89].*)
8255 shlibpath_overrides_runpath=no
8258 shlibpath_overrides_runpath=yes
8262 shlibpath_overrides_runpath=yes
8267 libname_spec='$name'
8270 library_names_spec='$libname${shared_ext} $libname.a'
8271 dynamic_linker='OS/2 ld.exe'
8272 shlibpath_var=LIBPATH
8275 osf3* | osf4* | osf5*)
8279 soname_spec='${libname}${release}${shared_ext}$major'
8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281 shlibpath_var=LD_LIBRARY_PATH
8282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8288 soname_spec='${libname}${release}${shared_ext}$major'
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290 shlibpath_var=LD_LIBRARY_PATH
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=yes
8301 hardcode_into_libs=yes
8302 # ldd complains unless libraries are executable
8303 postinstall_cmds='chmod +x $lib'
8308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8309 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8310 shlibpath_var=LD_LIBRARY_PATH
8311 shlibpath_overrides_runpath=yes
8312 if test "$with_gnu_ld" = yes; then
8318 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8321 soname_spec='${libname}${release}${shared_ext}$major'
8322 shlibpath_var=LD_LIBRARY_PATH
8323 case $host_vendor in
8325 shlibpath_overrides_runpath=no
8327 export_dynamic_flag_spec='${wl}-Blargedynsym'
8328 runpath_var=LD_RUN_PATH
8336 shlibpath_overrides_runpath=no
8337 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8343 if test -d /usr/nec ;then
8345 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8346 soname_spec='$libname${shared_ext}.$major'
8347 shlibpath_var=LD_LIBRARY_PATH
8353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8354 soname_spec='${libname}${release}${shared_ext}$major'
8355 shlibpath_var=LD_LIBRARY_PATH
8362 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8363 echo "${ECHO_T}$dynamic_linker" >&6
8364 test "$dynamic_linker" = no && can_build_shared=no
8366 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8369 if test -n "$hardcode_libdir_flag_spec" || \
8370 test -n "$runpath_var " || \
8371 test "X$hardcode_automatic"="Xyes" ; then
8373 # We can hardcode non-existant directories.
8374 if test "$hardcode_direct" != no &&
8375 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8376 # have to relink, otherwise we might link with an installed library
8377 # when we should be linking with a yet-to-be-installed one
8378 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8379 test "$hardcode_minus_L" != no; then
8380 # Linking always hardcodes the temporary library directory.
8381 hardcode_action=relink
8383 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8384 hardcode_action=immediate
8387 # We cannot hardcode anything, or else we can only hardcode existing
8389 hardcode_action=unsupported
8391 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8392 echo "${ECHO_T}$hardcode_action" >&6
8394 if test "$hardcode_action" = relink; then
8395 # Fast installation is not supported
8396 enable_fast_install=no
8397 elif test "$shlibpath_overrides_runpath" = yes ||
8398 test "$enable_shared" = no; then
8399 # Fast installation is not necessary
8400 enable_fast_install=needless
8405 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8406 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8407 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8408 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8409 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8410 echo "$as_me:$LINENO: result: yes" >&5
8411 echo "${ECHO_T}yes" >&6
8413 # FIXME - insert some real tests, host_os isn't really good enough
8416 if test -n "$STRIP" ; then
8417 striplib="$STRIP -x"
8418 echo "$as_me:$LINENO: result: yes" >&5
8419 echo "${ECHO_T}yes" >&6
8421 echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6
8426 echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6
8432 if test "x$enable_dlopen" != xyes; then
8433 enable_dlopen=unknown
8434 enable_dlopen_self=unknown
8435 enable_dlopen_self_static=unknown
8442 lt_cv_dlopen="load_add_on"
8444 lt_cv_dlopen_self=yes
8448 lt_cv_dlopen="LoadLibrary"
8453 lt_cv_dlopen="dlopen"
8458 # if libdl is installed we need to link against it
8459 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 ac_check_lib_save_LIBS=$LIBS
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8473 /* Override any gcc2 internal prototype to avoid an error. */
8477 /* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_lib_dl_dlopen=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_cv_lib_dl_dlopen=no
8516 rm -f conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 LIBS=$ac_check_lib_save_LIBS
8520 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8522 if test $ac_cv_lib_dl_dlopen = yes; then
8523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8528 lt_cv_dlopen_self=yes
8535 echo "$as_me:$LINENO: checking for shl_load" >&5
8536 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8537 if test "${ac_cv_func_shl_load+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8548 #define shl_load innocuous_shl_load
8550 /* System header to define __stub macros and hopefully few prototypes,
8551 which can conflict with char shl_load (); below.
8552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8553 <limits.h> exists even on freestanding compilers. */
8556 # include <limits.h>
8558 # include <assert.h>
8563 /* Override any gcc2 internal prototype to avoid an error. */
8568 /* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8571 /* The GNU C library defines this for functions which it implements
8572 to always fail with ENOSYS. Some functions are actually named
8573 something starting with __ and the normal name is an alias. */
8574 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8577 char (*f) () = shl_load;
8586 return f != shl_load;
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593 (eval $ac_link) 2>conftest.er1
8595 grep -v '^ *+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; } &&
8606 { ac_try='test -s conftest$ac_exeext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 ac_cv_func_shl_load=yes
8614 echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8617 ac_cv_func_shl_load=no
8619 rm -f conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
8622 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8623 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8624 if test $ac_cv_func_shl_load = yes; then
8625 lt_cv_dlopen="shl_load"
8627 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8628 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8629 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 ac_check_lib_save_LIBS=$LIBS
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8641 /* Override any gcc2 internal prototype to avoid an error. */
8645 /* We use char because int might match the return type of a gcc2
8646 builtin and then its argument prototype would still apply. */
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658 (eval $ac_link) 2>conftest.er1
8660 grep -v '^ *+' conftest.er1 >conftest.err
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; } &&
8671 { ac_try='test -s conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_cv_lib_dld_shl_load=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 ac_cv_lib_dld_shl_load=no
8684 rm -f conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext conftest.$ac_ext
8686 LIBS=$ac_check_lib_save_LIBS
8688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8689 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8690 if test $ac_cv_lib_dld_shl_load = yes; then
8691 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8693 echo "$as_me:$LINENO: checking for dlopen" >&5
8694 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8695 if test "${ac_cv_func_dlopen+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 cat >conftest.$ac_ext <<_ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8706 #define dlopen innocuous_dlopen
8708 /* System header to define __stub macros and hopefully few prototypes,
8709 which can conflict with char dlopen (); below.
8710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8711 <limits.h> exists even on freestanding compilers. */
8714 # include <limits.h>
8716 # include <assert.h>
8721 /* Override any gcc2 internal prototype to avoid an error. */
8726 /* We use char because int might match the return type of a gcc2
8727 builtin and then its argument prototype would still apply. */
8729 /* The GNU C library defines this for functions which it implements
8730 to always fail with ENOSYS. Some functions are actually named
8731 something starting with __ and the normal name is an alias. */
8732 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8735 char (*f) () = dlopen;
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751 (eval $ac_link) 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_func_dlopen=yes
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 ac_cv_func_dlopen=no
8777 rm -f conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8780 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8781 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8782 if test $ac_cv_func_dlopen = yes; then
8783 lt_cv_dlopen="dlopen"
8785 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8786 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8787 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 ac_check_lib_save_LIBS=$LIBS
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8799 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; } &&
8829 { ac_try='test -s conftest$ac_exeext'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 ac_cv_lib_dl_dlopen=yes
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_cv_lib_dl_dlopen=no
8842 rm -f conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844 LIBS=$ac_check_lib_save_LIBS
8846 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8847 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8848 if test $ac_cv_lib_dl_dlopen = yes; then
8849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8851 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8852 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8853 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 ac_check_lib_save_LIBS=$LIBS
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8865 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882 (eval $ac_link) 2>conftest.er1
8884 grep -v '^ *+' conftest.er1 >conftest.err
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } &&
8889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; } &&
8895 { ac_try='test -s conftest$ac_exeext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_cv_lib_svld_dlopen=yes
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8906 ac_cv_lib_svld_dlopen=no
8908 rm -f conftest.err conftest.$ac_objext \
8909 conftest$ac_exeext conftest.$ac_ext
8910 LIBS=$ac_check_lib_save_LIBS
8912 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8913 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8914 if test $ac_cv_lib_svld_dlopen = yes; then
8915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8917 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8918 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8919 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 ac_check_lib_save_LIBS=$LIBS
8924 cat >conftest.$ac_ext <<_ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8931 /* Override any gcc2 internal prototype to avoid an error. */
8935 /* We use char because int might match the return type of a gcc2
8936 builtin and then its argument prototype would still apply. */
8946 rm -f conftest.$ac_objext conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_lib_dld_dld_link=yes
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_cv_lib_dld_dld_link=no
8974 rm -f conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8978 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8979 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8980 if test $ac_cv_lib_dld_dld_link = yes; then
8981 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9002 if test "x$lt_cv_dlopen" != xno; then
9008 case $lt_cv_dlopen in
9010 save_CPPFLAGS="$CPPFLAGS"
9011 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9013 save_LDFLAGS="$LDFLAGS"
9014 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9017 LIBS="$lt_cv_dlopen_libs $LIBS"
9019 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9020 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9021 if test "${lt_cv_dlopen_self+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 if test "$cross_compiling" = yes; then :
9025 lt_cv_dlopen_self=cross
9027 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9028 lt_status=$lt_dlunknown
9029 cat > conftest.$ac_ext <<EOF
9030 #line 9030 "configure"
9031 #include "confdefs.h"
9040 # define LT_DLGLOBAL RTLD_GLOBAL
9043 # define LT_DLGLOBAL DL_GLOBAL
9045 # define LT_DLGLOBAL 0
9049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9050 find out it does not work in some platform. */
9051 #ifndef LT_DLLAZY_OR_NOW
9053 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9056 # define LT_DLLAZY_OR_NOW DL_LAZY
9059 # define LT_DLLAZY_OR_NOW RTLD_NOW
9062 # define LT_DLLAZY_OR_NOW DL_NOW
9064 # define LT_DLLAZY_OR_NOW 0
9072 extern "C" void exit (int);
9075 void fnord() { int i=42;}
9078 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9079 int status = $lt_dlunknown;
9083 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9084 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9085 /* dlclose (self); */
9091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9096 (./conftest; exit; ) 2>/dev/null
9099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9101 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9104 # compilation failed
9105 lt_cv_dlopen_self=no
9112 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9113 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9115 if test "x$lt_cv_dlopen_self" = xyes; then
9116 LDFLAGS="$LDFLAGS $link_static_flag"
9117 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9118 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9119 if test "${lt_cv_dlopen_self_static+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 if test "$cross_compiling" = yes; then :
9123 lt_cv_dlopen_self_static=cross
9125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9126 lt_status=$lt_dlunknown
9127 cat > conftest.$ac_ext <<EOF
9128 #line 9128 "configure"
9129 #include "confdefs.h"
9138 # define LT_DLGLOBAL RTLD_GLOBAL
9141 # define LT_DLGLOBAL DL_GLOBAL
9143 # define LT_DLGLOBAL 0
9147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9148 find out it does not work in some platform. */
9149 #ifndef LT_DLLAZY_OR_NOW
9151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9154 # define LT_DLLAZY_OR_NOW DL_LAZY
9157 # define LT_DLLAZY_OR_NOW RTLD_NOW
9160 # define LT_DLLAZY_OR_NOW DL_NOW
9162 # define LT_DLLAZY_OR_NOW 0
9170 extern "C" void exit (int);
9173 void fnord() { int i=42;}
9176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9177 int status = $lt_dlunknown;
9181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9183 /* dlclose (self); */
9189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190 (eval $ac_link) 2>&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9194 (./conftest; exit; ) 2>/dev/null
9197 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9198 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9199 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9202 # compilation failed
9203 lt_cv_dlopen_self_static=no
9210 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9211 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9214 CPPFLAGS="$save_CPPFLAGS"
9215 LDFLAGS="$save_LDFLAGS"
9220 case $lt_cv_dlopen_self in
9221 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9222 *) enable_dlopen_self=unknown ;;
9225 case $lt_cv_dlopen_self_static in
9226 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9227 *) enable_dlopen_self_static=unknown ;;
9232 # Report which librarie types wil actually be built
9233 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9234 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9235 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9236 echo "${ECHO_T}$can_build_shared" >&6
9238 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9239 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9240 test "$can_build_shared" = "no" && enable_shared=no
9242 # On AIX, shared libraries and static libraries use the same namespace, and
9243 # are all built from PIC.
9246 test "$enable_shared" = yes && enable_static=no
9247 if test -n "$RANLIB"; then
9248 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9249 postinstall_cmds='$RANLIB $lib'
9254 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9255 test "$enable_shared" = yes && enable_static=no
9258 darwin* | rhapsody*)
9259 if test "$GCC" = yes; then
9260 archive_cmds_need_lc=no
9262 rhapsody* | darwin1.[012])
9263 allow_undefined_flag='-undefined suppress'
9266 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9267 allow_undefined_flag='-flat_namespace -undefined suppress'
9269 case ${MACOSX_DEPLOYMENT_TARGET} in
9271 allow_undefined_flag='-flat_namespace -undefined suppress'
9274 allow_undefined_flag='-undefined dynamic_lookup'
9280 output_verbose_link_cmd='echo'
9281 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9282 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9283 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9284 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}'
9285 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}'
9287 hardcode_automatic=yes
9288 hardcode_shlibpath_var=unsupported
9289 whole_archive_flag_spec='-all_load $convenience'
9290 link_all_deplibs=yes
9296 echo "$as_me:$LINENO: result: $enable_shared" >&5
9297 echo "${ECHO_T}$enable_shared" >&6
9299 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9300 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9301 # Make sure either enable_shared or enable_static is yes.
9302 test "$enable_shared" = yes || enable_static=yes
9303 echo "$as_me:$LINENO: result: $enable_static" >&5
9304 echo "${ECHO_T}$enable_static" >&6
9306 # The else clause should only fire when bootstrapping the
9307 # libtool distribution, otherwise you forgot to ship ltmain.sh
9308 # with your package, and you will get complaints that there are
9309 # no rules to generate ltmain.sh.
9310 if test -f "$ltmain"; then
9311 # See if we are running on zsh, and set the options which allow our commands through
9312 # without removal of \ escapes.
9313 if test -n "${ZSH_VERSION+set}" ; then
9314 setopt NO_GLOB_SUBST
9316 # Now quote all the things that may contain metacharacters while being
9317 # careful not to overquote the AC_SUBSTed values. We take copies of the
9318 # variables and quote the copies for generation of the libtool script.
9319 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9321 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9322 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9323 deplibs_check_method reload_flag reload_cmds need_locks \
9324 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9325 lt_cv_sys_global_symbol_to_c_name_address \
9326 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9327 old_postinstall_cmds old_postuninstall_cmds \
9331 lt_prog_compiler_wl \
9332 lt_prog_compiler_pic \
9333 lt_prog_compiler_static \
9334 lt_prog_compiler_no_builtin_flag \
9335 export_dynamic_flag_spec \
9336 thread_safe_flag_spec \
9337 whole_archive_flag_spec \
9338 enable_shared_with_static_runtimes \
9340 old_archive_from_new_cmds \
9345 compiler_lib_search_path \
9347 archive_expsym_cmds \
9349 postuninstall_cmds \
9350 old_archive_from_expsyms_cmds \
9351 allow_undefined_flag \
9353 export_symbols_cmds \
9354 hardcode_libdir_flag_spec \
9355 hardcode_libdir_flag_spec_ld \
9356 hardcode_libdir_separator \
9357 hardcode_automatic \
9359 module_expsym_cmds \
9360 lt_cv_prog_compiler_c_o \
9365 old_archive_cmds | \
9366 old_archive_from_new_cmds | \
9368 archive_expsym_cmds | \
9370 module_expsym_cmds | \
9371 old_archive_from_expsyms_cmds | \
9372 export_symbols_cmds | \
9373 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9374 postinstall_cmds | postuninstall_cmds | \
9375 old_postinstall_cmds | old_postuninstall_cmds | \
9376 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9377 # Double-quote double-evaled strings.
9378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9387 *'\$0 --fallback-echo"')
9388 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9393 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9395 { echo "$as_me:$LINENO: creating $ofile" >&5
9396 echo "$as_me: creating $ofile" >&6;}
9398 cat <<__EOF__ >> "$cfgfile"
9401 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9402 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9403 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9405 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9406 # Free Software Foundation, Inc.
9408 # This file is part of GNU Libtool:
9409 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9411 # This program is free software; you can redistribute it and/or modify
9412 # it under the terms of the GNU General Public License as published by
9413 # the Free Software Foundation; either version 2 of the License, or
9414 # (at your option) any later version.
9416 # This program is distributed in the hope that it will be useful, but
9417 # WITHOUT ANY WARRANTY; without even the implied warranty of
9418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9419 # General Public License for more details.
9421 # You should have received a copy of the GNU General Public License
9422 # along with this program; if not, write to the Free Software
9423 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9425 # As a special exception to the GNU General Public License, if you
9426 # distribute this file as part of a program that contains a
9427 # configuration script generated by Autoconf, you may include it under
9428 # the same distribution terms that you use for the rest of that program.
9430 # A sed program that does not truncate output.
9433 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9434 Xsed="$SED -e s/^X//"
9436 # The HP-UX ksh and POSIX shell print the target directory to stdout
9438 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9440 # The names of the tagged configurations supported by this script.
9443 # ### BEGIN LIBTOOL CONFIG
9445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9447 # Shell to use when invoking shell scripts.
9450 # Whether or not to build shared libraries.
9451 build_libtool_libs=$enable_shared
9453 # Whether or not to build static libraries.
9454 build_old_libs=$enable_static
9456 # Whether or not to add -lc for building shared libraries.
9457 build_libtool_need_lc=$archive_cmds_need_lc
9459 # Whether or not to disallow shared libs when runtime libs are static
9460 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9462 # Whether or not to optimize for fast installation.
9463 fast_install=$enable_fast_install
9466 host_alias=$host_alias
9469 # An echo program that does not interpret backslashes.
9474 AR_FLAGS=$lt_AR_FLAGS
9479 # A language-specific compiler.
9482 # Is the compiler the GNU C compiler?
9488 # The linker used to build libraries.
9491 # Whether we need hard or soft links.
9494 # A BSD-compatible nm program.
9497 # A symbol stripping program
9500 # Used to examine libraries when file_magic_cmd begins "file"
9501 MAGIC_CMD=$MAGIC_CMD
9503 # Used on cygwin: DLL creation program.
9506 # Used on cygwin: object dumper.
9509 # Used on cygwin: assembler.
9512 # The name of the directory that contains temporary libtool files.
9515 # How to create reloadable object files.
9516 reload_flag=$lt_reload_flag
9517 reload_cmds=$lt_reload_cmds
9519 # How to pass a linker flag through the compiler.
9520 wl=$lt_lt_prog_compiler_wl
9522 # Object file suffix (normally "o").
9525 # Old archive suffix (normally "a").
9528 # Shared library suffix (normally ".so").
9529 shrext_cmds='$shrext_cmds'
9531 # Executable file suffix (normally "").
9534 # Additional compiler flags for building library objects.
9535 pic_flag=$lt_lt_prog_compiler_pic
9538 # What is the maximum length of a command?
9539 max_cmd_len=$lt_cv_sys_max_cmd_len
9541 # Does compiler simultaneously support -c and -o options?
9542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9544 # Must we lock files when doing compilation ?
9545 need_locks=$lt_need_locks
9547 # Do we need the lib prefix for modules?
9548 need_lib_prefix=$need_lib_prefix
9550 # Do we need a version for libraries?
9551 need_version=$need_version
9553 # Whether dlopen is supported.
9554 dlopen_support=$enable_dlopen
9556 # Whether dlopen of programs is supported.
9557 dlopen_self=$enable_dlopen_self
9559 # Whether dlopen of statically linked programs is supported.
9560 dlopen_self_static=$enable_dlopen_self_static
9562 # Compiler flag to prevent dynamic linking.
9563 link_static_flag=$lt_lt_prog_compiler_static
9565 # Compiler flag to turn off builtin functions.
9566 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9568 # Compiler flag to allow reflexive dlopens.
9569 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9571 # Compiler flag to generate shared objects directly from archives.
9572 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9574 # Compiler flag to generate thread-safe objects.
9575 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9577 # Library versioning type.
9578 version_type=$version_type
9580 # Format of library name prefix.
9581 libname_spec=$lt_libname_spec
9583 # List of archive names. First name is the real one, the rest are links.
9584 # The last name is the one that the linker finds with -lNAME.
9585 library_names_spec=$lt_library_names_spec
9587 # The coded name of the library, if different from the real name.
9588 soname_spec=$lt_soname_spec
9590 # Commands used to build and install an old-style archive.
9592 old_archive_cmds=$lt_old_archive_cmds
9593 old_postinstall_cmds=$lt_old_postinstall_cmds
9594 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9596 # Create an old-style archive from a shared archive.
9597 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9599 # Create a temporary old-style archive to link instead of a shared archive.
9600 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9602 # Commands used to build and install a shared archive.
9603 archive_cmds=$lt_archive_cmds
9604 archive_expsym_cmds=$lt_archive_expsym_cmds
9605 postinstall_cmds=$lt_postinstall_cmds
9606 postuninstall_cmds=$lt_postuninstall_cmds
9608 # Commands used to build a loadable module (assumed same as above if empty)
9609 module_cmds=$lt_module_cmds
9610 module_expsym_cmds=$lt_module_expsym_cmds
9612 # Commands to strip libraries.
9613 old_striplib=$lt_old_striplib
9614 striplib=$lt_striplib
9616 # Dependencies to place before the objects being linked to create a
9618 predep_objects=$lt_predep_objects
9620 # Dependencies to place after the objects being linked to create a
9622 postdep_objects=$lt_postdep_objects
9624 # Dependencies to place before the objects being linked to create a
9628 # Dependencies to place after the objects being linked to create a
9630 postdeps=$lt_postdeps
9632 # The library search path used internally by the compiler when linking
9634 compiler_lib_search_path=$lt_compiler_lib_search_path
9636 # Method to check whether dependent libraries are shared objects.
9637 deplibs_check_method=$lt_deplibs_check_method
9639 # Command to use when deplibs_check_method == file_magic.
9640 file_magic_cmd=$lt_file_magic_cmd
9642 # Flag that allows shared libraries with undefined symbols to be built.
9643 allow_undefined_flag=$lt_allow_undefined_flag
9645 # Flag that forces no undefined symbols.
9646 no_undefined_flag=$lt_no_undefined_flag
9648 # Commands used to finish a libtool library installation in a directory.
9649 finish_cmds=$lt_finish_cmds
9651 # Same as above, but a single script fragment to be evaled but not shown.
9652 finish_eval=$lt_finish_eval
9654 # Take the output of nm and produce a listing of raw symbols and C names.
9655 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9657 # Transform the output of nm in a proper C declaration
9658 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9660 # Transform the output of nm in a C name address pair
9661 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9663 # This is the shared library runtime path variable.
9664 runpath_var=$runpath_var
9666 # This is the shared library path variable.
9667 shlibpath_var=$shlibpath_var
9669 # Is shlibpath searched before the hard-coded library search path?
9670 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9672 # How to hardcode a shared library path into an executable.
9673 hardcode_action=$hardcode_action
9675 # Whether we should hardcode library paths into libraries.
9676 hardcode_into_libs=$hardcode_into_libs
9678 # Flag to hardcode \$libdir into a binary during linking.
9679 # This must work even if \$libdir does not exist.
9680 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9682 # If ld is used when linking, flag to hardcode \$libdir into
9683 # a binary during linking. This must work even if \$libdir does
9685 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9687 # Whether we need a single -rpath flag with a separated argument.
9688 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9690 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9692 hardcode_direct=$hardcode_direct
9694 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9696 hardcode_minus_L=$hardcode_minus_L
9698 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9699 # the resulting binary.
9700 hardcode_shlibpath_var=$hardcode_shlibpath_var
9702 # Set to yes if building a shared library automatically hardcodes DIR into the library
9703 # and all subsequent libraries and executables linked against it.
9704 hardcode_automatic=$hardcode_automatic
9706 # Variables whose values should be saved in libtool wrapper scripts and
9707 # restored at relink time.
9708 variables_saved_for_relink="$variables_saved_for_relink"
9710 # Whether libtool must link a program against all its dependency libraries.
9711 link_all_deplibs=$link_all_deplibs
9713 # Compile-time system search path for libraries
9714 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9716 # Run-time system search path for libraries
9717 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9719 # Fix the shell variable \$srcfile for the compiler.
9720 fix_srcfile_path="$fix_srcfile_path"
9722 # Set to yes if exported symbols are required.
9723 always_export_symbols=$always_export_symbols
9725 # The commands to list exported symbols.
9726 export_symbols_cmds=$lt_export_symbols_cmds
9728 # The commands to extract the exported symbol list from a shared archive.
9729 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9731 # Symbols that should not be listed in the preloaded symbols.
9732 exclude_expsyms=$lt_exclude_expsyms
9734 # Symbols that must always be exported.
9735 include_expsyms=$lt_include_expsyms
9737 # ### END LIBTOOL CONFIG
9744 cat <<\EOF >> "$cfgfile"
9746 # AIX sometimes has problems with the GCC collect2 program. For some
9747 # reason, if we set the COLLECT_NAMES environment variable, the problems
9748 # vanish in a puff of smoke.
9749 if test "X${COLLECT_NAMES+set}" != Xset; then
9751 export COLLECT_NAMES
9757 # We use sed instead of cat because bash on DJGPP gets confused if
9758 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9759 # text mode, it properly converts lines to CR/LF. This bash problem
9760 # is reportedly fixed, but why not run on old versions too?
9761 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9763 mv -f "$cfgfile" "$ofile" || \
9764 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9768 # If there is no Makefile yet, we rely on a make rule to execute
9769 # `config.status --recheck' to rerun these tests and create the
9770 # libtool script then.
9771 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9772 if test -f "$ltmain_in"; then
9773 test -f Makefile && make "$ltmain"
9779 ac_cpp='$CPP $CPPFLAGS'
9780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9787 # Check whether --with-tags or --without-tags was given.
9788 if test "${with_tags+set}" = set; then
9789 withval="$with_tags"
9793 if test -f "$ltmain" && test -n "$tagnames"; then
9794 if test ! -f "${ofile}"; then
9795 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9796 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9799 if test -z "$LTCC"; then
9800 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9801 if test -z "$LTCC"; then
9802 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9803 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9806 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9810 # Extract list of available tagged configurations in $ofile.
9811 # Note that this assumes the entire list is on one line.
9812 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9815 for tagname in $tagnames; do
9817 # Check whether tagname contains only valid characters
9818 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9820 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9821 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9822 { (exit 1); exit 1; }; }
9826 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9828 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9829 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9830 { (exit 1); exit 1; }; }
9833 # Update the list of available tags.
9834 if test -n "$tagname"; then
9835 echo appending configuration tag \"$tagname\" to $ofile
9839 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9841 ac_cpp='$CXXCPP $CPPFLAGS'
9842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9849 archive_cmds_need_lc_CXX=no
9850 allow_undefined_flag_CXX=
9851 always_export_symbols_CXX=no
9852 archive_expsym_cmds_CXX=
9853 export_dynamic_flag_spec_CXX=
9854 hardcode_direct_CXX=no
9855 hardcode_libdir_flag_spec_CXX=
9856 hardcode_libdir_flag_spec_ld_CXX=
9857 hardcode_libdir_separator_CXX=
9858 hardcode_minus_L_CXX=no
9859 hardcode_automatic_CXX=no
9861 module_expsym_cmds_CXX=
9862 link_all_deplibs_CXX=unknown
9863 old_archive_cmds_CXX=$old_archive_cmds
9864 no_undefined_flag_CXX=
9865 whole_archive_flag_spec_CXX=
9866 enable_shared_with_static_runtimes_CXX=no
9868 # Dependencies to place before and after the object being linked:
9870 postdep_objects_CXX=
9873 compiler_lib_search_path_CXX=
9875 # Source file extension for C++ test sources.
9878 # Object file extension for compiled C++ test sources.
9882 # Code to be used in simple compile tests
9883 lt_simple_compile_test_code="int some_variable = 0;\n"
9885 # Code to be used in simple link tests
9886 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9888 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9890 # If no C compiler was specified, use CC.
9893 # Allow CC to be a program name with arguments.
9897 # Allow CC to be a program name with arguments.
9902 lt_save_with_gnu_ld=$with_gnu_ld
9903 lt_save_path_LD=$lt_cv_path_LD
9904 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9905 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9907 unset lt_cv_prog_gnu_ld
9909 if test -n "${lt_cv_path_LDCXX+set}"; then
9910 lt_cv_path_LD=$lt_cv_path_LDCXX
9914 test -z "${LDCXX+set}" || LD=$LDCXX
9918 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9920 # We don't want -fno-exception wen compiling C++ code, so set the
9921 # no_builtin_flag separately
9922 if test "$GXX" = yes; then
9923 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9925 lt_prog_compiler_no_builtin_flag_CXX=
9928 if test "$GXX" = yes; then
9929 # Set up default GNU C++ configuration
9932 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9933 if test "${with_gnu_ld+set}" = set; then
9934 withval="$with_gnu_ld"
9935 test "$withval" = no || with_gnu_ld=yes
9940 if test "$GCC" = yes; then
9941 # Check if gcc -print-prog-name=ld gives a path.
9942 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9943 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9946 # gcc leaves a trailing carriage return which upsets mingw
9947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9952 # Accept absolute paths.
9954 re_direlt='/[^/][^/]*/\.\./'
9955 # Canonicalize the pathname of ld
9956 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9957 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9958 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9960 test -z "$LD" && LD="$ac_prog"
9963 # If it fails, then pretend we aren't using GCC.
9967 # If it is relative, then search for the first ld in PATH.
9971 elif test "$with_gnu_ld" = yes; then
9972 echo "$as_me:$LINENO: checking for GNU ld" >&5
9973 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9975 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9976 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9978 if test "${lt_cv_path_LD+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 if test -z "$LD"; then
9982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9983 for ac_dir in $PATH; do
9985 test -z "$ac_dir" && ac_dir=.
9986 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9987 lt_cv_path_LD="$ac_dir/$ac_prog"
9988 # Check to see if the program is GNU ld. I'd rather use --version,
9989 # but apparently some GNU ld's only accept -v.
9990 # Break only if it was the GNU/non-GNU ld that we prefer.
9991 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9992 *GNU* | *'with BFD'*)
9993 test "$with_gnu_ld" != no && break
9996 test "$with_gnu_ld" != yes && break
10003 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10007 LD="$lt_cv_path_LD"
10008 if test -n "$LD"; then
10009 echo "$as_me:$LINENO: result: $LD" >&5
10010 echo "${ECHO_T}$LD" >&6
10012 echo "$as_me:$LINENO: result: no" >&5
10013 echo "${ECHO_T}no" >&6
10015 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10016 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10017 { (exit 1); exit 1; }; }
10018 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10019 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10020 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10024 case `$LD -v 2>&1 </dev/null` in
10025 *GNU* | *'with BFD'*)
10026 lt_cv_prog_gnu_ld=yes
10029 lt_cv_prog_gnu_ld=no
10033 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10034 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10035 with_gnu_ld=$lt_cv_prog_gnu_ld
10039 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10040 # archiving commands below assume that GNU ld is being used.
10041 if test "$with_gnu_ld" = yes; then
10042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10043 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'
10045 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10048 # If archive_cmds runs LD, not CC, wlarc should be empty
10049 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10050 # investigate it a little bit more. (MM)
10053 # ancient GNU ld didn't support --whole-archive et. al.
10054 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10055 grep 'no-whole-archive' > /dev/null; then
10056 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10058 whole_archive_flag_spec_CXX=
10064 # A generic and very simple default shared library creation
10065 # command for GNU C++ for the case where it uses the native
10066 # linker, instead of GNU ld. If possible, this setting should
10067 # overridden to take advantage of the native linker features on
10068 # the platform it is being used on.
10069 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10072 # Commands to make compiler produce verbose output that lists
10073 # what "hidden" libraries, object files and flags are used when
10074 # linking a shared library.
10075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10083 # PORTME: fill in a description of your system's C++ link characteristics
10084 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10085 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10089 # FIXME: insert proper C++ library support
10093 if test "$host_cpu" = ia64; then
10094 # On IA64, the linker does run time linking by default, so we don't
10095 # have to do anything special.
10096 aix_use_runtimelinking=no
10097 exp_sym_flag='-Bexport'
10100 aix_use_runtimelinking=no
10102 # Test if we are trying to use run time linking or normal
10103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10104 # need to do runtime linking.
10105 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10106 for ld_flag in $LDFLAGS; do
10109 aix_use_runtimelinking=yes
10116 exp_sym_flag='-bexport'
10117 no_entry_flag='-bnoentry'
10120 # When large executables or shared objects are built, AIX ld can
10121 # have problems creating the table of contents. If linking a library
10122 # or program results in "error TOC overflow" add -mminimal-toc to
10123 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10124 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10126 archive_cmds_CXX=''
10127 hardcode_direct_CXX=yes
10128 hardcode_libdir_separator_CXX=':'
10129 link_all_deplibs_CXX=yes
10131 if test "$GXX" = yes; then
10132 case $host_os in aix4.012|aix4.012.*)
10133 # We only want to do this on AIX 4.2 and lower, the check
10134 # below for broken collect2 doesn't work under 4.3+
10135 collect2name=`${CC} -print-prog-name=collect2`
10136 if test -f "$collect2name" && \
10137 strings "$collect2name" | grep resolve_lib_name >/dev/null
10139 # We have reworked collect2
10140 hardcode_direct_CXX=yes
10142 # We have old collect2
10143 hardcode_direct_CXX=unsupported
10144 # It fails to find uninstalled libraries when the uninstalled
10145 # path is not listed in the libpath. Setting hardcode_minus_L
10146 # to unsupported forces relinking
10147 hardcode_minus_L_CXX=yes
10148 hardcode_libdir_flag_spec_CXX='-L$libdir'
10149 hardcode_libdir_separator_CXX=
10152 shared_flag='-shared'
10155 if test "$host_cpu" = ia64; then
10156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10157 # chokes on -Wl,-G. The following line is correct:
10160 if test "$aix_use_runtimelinking" = yes; then
10161 shared_flag='${wl}-G'
10163 shared_flag='${wl}-bM:SRE'
10168 # It seems that -bexpall does not export symbols beginning with
10169 # underscore (_), so it is better to generate a list of symbols to export.
10170 always_export_symbols_CXX=yes
10171 if test "$aix_use_runtimelinking" = yes; then
10172 # Warning - without using the other runtime loading flags (-brtl),
10173 # -berok will link without error, but may produce a broken library.
10174 allow_undefined_flag_CXX='-berok'
10175 # Determine the default libpath from the value encoded in an empty executable.
10176 cat >conftest.$ac_ext <<_ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193 (eval $ac_link) 2>conftest.er1
10195 grep -v '^ *+' conftest.er1 >conftest.err
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest$ac_exeext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10215 # Check for a 64-bit object if we didn't find anything.
10216 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; }
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10223 rm -f conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10227 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10229 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10231 if test "$host_cpu" = ia64; then
10232 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10233 allow_undefined_flag_CXX="-z nodefs"
10234 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10236 # Determine the default libpath from the value encoded in an empty executable.
10237 cat >conftest.$ac_ext <<_ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10254 (eval $ac_link) 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10276 # Check for a 64-bit object if we didn't find anything.
10277 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; }
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10284 rm -f conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10288 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10289 # Warning - without using the other run time loading flags,
10290 # -berok will link without error, but may produce a broken library.
10291 no_undefined_flag_CXX=' ${wl}-bernotok'
10292 allow_undefined_flag_CXX=' ${wl}-berok'
10293 # -bexpall does not export symbols beginning with underscore (_)
10294 always_export_symbols_CXX=yes
10295 # Exported symbols can be pulled into shared objects from archives
10296 whole_archive_flag_spec_CXX=' '
10297 archive_cmds_need_lc_CXX=yes
10298 # This is similar to how AIX traditionally builds it's shared libraries.
10299 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10304 case $cc_basename in
10306 # FIXME: insert proper C++ library support
10312 cygwin* | mingw* | pw32*)
10313 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10314 # as there is no search path for DLLs.
10315 hardcode_libdir_flag_spec_CXX='-L$libdir'
10316 allow_undefined_flag_CXX=unsupported
10317 always_export_symbols_CXX=no
10318 enable_shared_with_static_runtimes_CXX=yes
10320 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10321 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10322 # If the export-symbols file already is a .def file (1st line
10323 # is EXPORTS), use it as is; otherwise, prepend...
10324 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10325 cp $export_symbols $output_objdir/$soname.def;
10327 echo EXPORTS > $output_objdir/$soname.def;
10328 cat $export_symbols >> $output_objdir/$soname.def;
10330 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10336 darwin* | rhapsody*)
10337 if test "$GXX" = yes; then
10338 archive_cmds_need_lc_CXX=no
10340 rhapsody* | darwin1.[012])
10341 allow_undefined_flag_CXX='-undefined suppress'
10344 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10345 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10347 case ${MACOSX_DEPLOYMENT_TARGET} in
10349 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10352 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10358 lt_int_apple_cc_single_mod=no
10359 output_verbose_link_cmd='echo'
10360 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10361 lt_int_apple_cc_single_mod=yes
10363 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10364 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10366 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10368 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10370 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10371 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10372 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}'
10374 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10376 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}'
10377 hardcode_direct_CXX=no
10378 hardcode_automatic_CXX=yes
10379 hardcode_shlibpath_var_CXX=unsupported
10380 whole_archive_flag_spec_CXX='-all_load $convenience'
10381 link_all_deplibs_CXX=yes
10388 case $cc_basename in
10390 # FIXME: insert proper C++ library support
10394 # Green Hills C++ Compiler
10395 # FIXME: insert proper C++ library support
10399 # FIXME: insert proper C++ library support
10405 # C++ shared libraries reported to be fairly broken before switch to ELF
10409 archive_cmds_need_lc_CXX=no
10411 freebsd* | kfreebsd*-gnu)
10412 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10419 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10420 hardcode_libdir_separator_CXX=:
10421 export_dynamic_flag_spec_CXX='${wl}-E'
10422 hardcode_direct_CXX=yes
10423 hardcode_minus_L_CXX=yes # Not in the search PATH,
10424 # but as the default
10425 # location of the library.
10427 case $cc_basename in
10429 # FIXME: insert proper C++ library support
10433 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'
10434 # Commands to make compiler produce verbose output that lists
10435 # what "hidden" libraries, object files and flags are used when
10436 # linking a shared library.
10438 # There doesn't appear to be a way to prevent this compiler from
10439 # explicitly linking system object files so we need to strip them
10440 # from the output so that they don't get included in the library
10442 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'
10445 if test "$GXX" = yes; then
10446 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'
10448 # FIXME: insert proper C++ library support
10455 if test $with_gnu_ld = no; then
10456 case "$host_cpu" in
10458 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10459 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10460 hardcode_libdir_separator_CXX=:
10463 hardcode_libdir_flag_spec_CXX='-L$libdir'
10466 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10467 hardcode_libdir_separator_CXX=:
10468 export_dynamic_flag_spec_CXX='${wl}-E'
10472 case "$host_cpu" in
10474 hardcode_direct_CXX=no
10475 hardcode_shlibpath_var_CXX=no
10478 hardcode_direct_CXX=no
10479 hardcode_shlibpath_var_CXX=no
10480 hardcode_minus_L_CXX=yes # Not in the search PATH,
10481 # but as the default
10482 # location of the library.
10485 hardcode_direct_CXX=yes
10486 hardcode_minus_L_CXX=yes # Not in the search PATH,
10487 # but as the default
10488 # location of the library.
10492 case $cc_basename in
10494 # FIXME: insert proper C++ library support
10498 case "$host_cpu" in
10500 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10503 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10506 # Commands to make compiler produce verbose output that lists
10507 # what "hidden" libraries, object files and flags are used when
10508 # linking a shared library.
10510 # There doesn't appear to be a way to prevent this compiler from
10511 # explicitly linking system object files so we need to strip them
10512 # from the output so that they don't get included in the library
10514 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'
10517 if test "$GXX" = yes; then
10518 if test $with_gnu_ld = no; then
10519 case "$host_cpu" in
10521 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10524 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'
10529 # FIXME: insert proper C++ library support
10536 case $cc_basename in
10539 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10541 # Archives containing C++ object files must be created using
10542 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10543 # necessary to make sure instantiated templates are included
10545 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10548 if test "$GXX" = yes; then
10549 if test "$with_gnu_ld" = no; then
10550 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10552 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'
10555 link_all_deplibs_CXX=yes
10558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10559 hardcode_libdir_separator_CXX=:
10562 case $cc_basename in
10564 # Kuck and Associates, Inc. (KAI) C++ Compiler
10566 # KCC will only create a shared library if the output file
10567 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10568 # to its proper name (with version) after linking.
10569 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'
10570 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'
10571 # Commands to make compiler produce verbose output that lists
10572 # what "hidden" libraries, object files and flags are used when
10573 # linking a shared library.
10575 # There doesn't appear to be a way to prevent this compiler from
10576 # explicitly linking system object files so we need to strip them
10577 # from the output so that they don't get included in the library
10579 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'
10581 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10584 # Archives containing C++ object files must be created using
10585 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10586 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10591 archive_cmds_need_lc_CXX=no
10592 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10593 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'
10594 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10595 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10596 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10600 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10601 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'
10603 runpath_var=LD_RUN_PATH
10604 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10605 hardcode_libdir_separator_CXX=:
10607 # Commands to make compiler produce verbose output that lists
10608 # what "hidden" libraries, object files and flags are used when
10609 # linking a shared library.
10611 # There doesn't appear to be a way to prevent this compiler from
10612 # explicitly linking system object files so we need to strip them
10613 # from the output so that they don't get included in the library
10615 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'
10620 # FIXME: insert proper C++ library support
10624 # FIXME: insert proper C++ library support
10628 case $cc_basename in
10630 # FIXME: insert proper C++ library support
10634 # FIXME: insert proper C++ library support
10639 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10641 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10643 hardcode_libdir_flag_spec_CXX='-R$libdir'
10644 hardcode_direct_CXX=yes
10645 hardcode_shlibpath_var_CXX=no
10647 # Workaround some broken pre-1.5 toolchains
10648 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10651 case $cc_basename in
10653 # Kuck and Associates, Inc. (KAI) C++ Compiler
10655 # KCC will only create a shared library if the output file
10656 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10657 # to its proper name (with version) after linking.
10658 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'
10660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10661 hardcode_libdir_separator_CXX=:
10663 # Archives containing C++ object files must be created using
10664 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10665 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10669 # Rational C++ 2.4.1
10670 # FIXME: insert proper C++ library support
10674 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10675 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10677 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10678 hardcode_libdir_separator_CXX=:
10680 # Commands to make compiler produce verbose output that lists
10681 # what "hidden" libraries, object files and flags are used when
10682 # linking a shared library.
10684 # There doesn't appear to be a way to prevent this compiler from
10685 # explicitly linking system object files so we need to strip them
10686 # from the output so that they don't get included in the library
10688 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'
10691 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10692 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10693 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10695 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10696 hardcode_libdir_separator_CXX=:
10698 # Commands to make compiler produce verbose output that lists
10699 # what "hidden" libraries, object files and flags are used when
10700 # linking a shared library.
10701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10704 # FIXME: insert proper C++ library support
10711 case $cc_basename in
10713 # Kuck and Associates, Inc. (KAI) C++ Compiler
10715 # KCC will only create a shared library if the output file
10716 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10717 # to its proper name (with version) after linking.
10718 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'
10720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10721 hardcode_libdir_separator_CXX=:
10723 # Archives containing C++ object files must be created using
10724 # the KAI C++ compiler.
10725 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10728 # Rational C++ 2.4.1
10729 # FIXME: insert proper C++ library support
10733 allow_undefined_flag_CXX=' -expect_unresolved \*'
10734 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10735 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10736 echo "-hidden">> $lib.exp~
10737 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10740 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10741 hardcode_libdir_separator_CXX=:
10743 # Commands to make compiler produce verbose output that lists
10744 # what "hidden" libraries, object files and flags are used when
10745 # linking a shared library.
10747 # There doesn't appear to be a way to prevent this compiler from
10748 # explicitly linking system object files so we need to strip them
10749 # from the output so that they don't get included in the library
10751 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'
10754 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10755 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10756 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10758 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10759 hardcode_libdir_separator_CXX=:
10761 # Commands to make compiler produce verbose output that lists
10762 # what "hidden" libraries, object files and flags are used when
10763 # linking a shared library.
10764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10767 # FIXME: insert proper C++ library support
10774 # FIXME: insert proper C++ library support
10778 archive_cmds_need_lc_CXX=no
10779 case $cc_basename in
10781 # FIXME: insert proper C++ library support
10785 # FIXME: insert proper C++ library support
10791 case $cc_basename in
10794 # FIXME: insert proper C++ library support
10799 # FIXME: insert proper C++ library support
10803 # FIXME: insert proper C++ library support
10809 case $cc_basename in
10811 # Sun C++ 4.2, 5.x and Centerline C++
10812 no_undefined_flag_CXX=' -zdefs'
10813 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10814 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10815 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10817 hardcode_libdir_flag_spec_CXX='-R$libdir'
10818 hardcode_shlibpath_var_CXX=no
10820 solaris2.0-5 | solaris2.0-5.*) ;;
10822 # The C++ compiler is used as linker so we must use $wl
10823 # flag to pass the commands to the underlying system
10825 # Supported since Solaris 2.6 (maybe 2.5.1?)
10826 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10829 link_all_deplibs_CXX=yes
10831 # Commands to make compiler produce verbose output that lists
10832 # what "hidden" libraries, object files and flags are used when
10833 # linking a shared library.
10835 # There doesn't appear to be a way to prevent this compiler from
10836 # explicitly linking system object files so we need to strip them
10837 # from the output so that they don't get included in the library
10839 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10841 # Archives containing C++ object files must be created using
10842 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10843 # necessary to make sure instantiated templates are included
10845 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10848 # Green Hills C++ Compiler
10849 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10851 # The C++ compiler must be used to create the archive.
10852 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10855 # GNU C++ compiler with Solaris linker
10856 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10857 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10858 if $CC --version | grep -v '^2\.7' > /dev/null; then
10859 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10860 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10861 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10863 # Commands to make compiler produce verbose output that lists
10864 # what "hidden" libraries, object files and flags are used when
10865 # linking a shared library.
10866 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10868 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10870 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10871 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10872 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10874 # Commands to make compiler produce verbose output that lists
10875 # what "hidden" libraries, object files and flags are used when
10876 # linking a shared library.
10877 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10880 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10885 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10886 archive_cmds_need_lc_CXX=no
10889 case $cc_basename in
10891 # NonStop-UX NCC 3.20
10892 # FIXME: insert proper C++ library support
10896 # FIXME: insert proper C++ library support
10902 # FIXME: insert proper C++ library support
10906 # FIXME: insert proper C++ library support
10910 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10911 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10912 test "$ld_shlibs_CXX" = no && can_build_shared=no
10918 cat > conftest.$ac_ext <<EOF
10922 Foo (void) { a = 0; }
10928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10929 (eval $ac_compile) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; then
10933 # Parse the compiler output and extract the necessary
10934 # objects, libraries and library flags.
10936 # Sentinel used to keep track of whether or not we are before
10937 # the conftest object file.
10938 pre_test_object_deps_done=no
10940 # The `*' in the case matches for architectures that use `case' in
10941 # $output_verbose_cmd can trigger glob expansion during the loop
10942 # eval without this substitution.
10943 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10945 for p in `eval $output_verbose_link_cmd`; do
10949 # Some compilers place space between "-{L,R}" and the path.
10950 # Remove the space.
10951 if test $p = "-L" \
10952 || test $p = "-R"; then
10959 if test "$pre_test_object_deps_done" = no; then
10962 # Internal compiler library paths should come after those
10963 # provided the user. The postdeps already come after the
10964 # user supplied libs so there is no need to process them.
10965 if test -z "$compiler_lib_search_path_CXX"; then
10966 compiler_lib_search_path_CXX="${prev}${p}"
10968 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10971 # The "-l" case would never come before the object being
10972 # linked, so don't bother handling this case.
10975 if test -z "$postdeps_CXX"; then
10976 postdeps_CXX="${prev}${p}"
10978 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10984 # This assumes that the test object file only shows up
10985 # once in the compiler output.
10986 if test "$p" = "conftest.$objext"; then
10987 pre_test_object_deps_done=yes
10991 if test "$pre_test_object_deps_done" = no; then
10992 if test -z "$predep_objects_CXX"; then
10993 predep_objects_CXX="$p"
10995 predep_objects_CXX="$predep_objects_CXX $p"
10998 if test -z "$postdep_objects_CXX"; then
10999 postdep_objects_CXX="$p"
11001 postdep_objects_CXX="$postdep_objects_CXX $p"
11006 *) ;; # Ignore the rest.
11014 echo "libtool.m4: error: problem compiling CXX test program"
11017 $rm -f confest.$objext
11019 case " $postdeps_CXX " in
11020 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11023 lt_prog_compiler_wl_CXX=
11024 lt_prog_compiler_pic_CXX=
11025 lt_prog_compiler_static_CXX=
11027 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11028 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11030 # C++ specific cases for pic, static, wl, etc.
11031 if test "$GXX" = yes; then
11032 lt_prog_compiler_wl_CXX='-Wl,'
11033 lt_prog_compiler_static_CXX='-static'
11037 # All AIX code is PIC.
11038 if test "$host_cpu" = ia64; then
11039 # AIX 5 now supports IA64 processor
11040 lt_prog_compiler_static_CXX='-Bstatic'
11044 # FIXME: we need at least 68020 code to build shared libraries, but
11045 # adding the `-m68020' flag to GCC prevents building anything better,
11047 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11049 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11050 # PIC is the default for these OSes.
11052 mingw* | os2* | pw32*)
11053 # This hack is so that the source file can tell whether it is being
11054 # built for inclusion in a dll (and should export symbols for example).
11055 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11057 darwin* | rhapsody*)
11058 # PIC is the default on this platform
11059 # Common symbols not allowed in MH_DYLIB files
11060 lt_prog_compiler_pic_CXX='-fno-common'
11063 # DJGPP does not support shared libraries at all
11064 lt_prog_compiler_pic_CXX=
11067 if test -d /usr/nec; then
11068 lt_prog_compiler_pic_CXX=-Kconform_pic
11072 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11073 # not for PA HP-UX.
11074 case "$host_cpu" in
11078 lt_prog_compiler_pic_CXX='-fPIC'
11083 lt_prog_compiler_pic_CXX='-fPIC'
11089 # All AIX code is PIC.
11090 if test "$host_cpu" = ia64; then
11091 # AIX 5 now supports IA64 processor
11092 lt_prog_compiler_static_CXX='-Bstatic'
11094 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11098 case $cc_basename in
11100 # Green Hills C++ Compiler
11101 # _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"
11106 case $cc_basename in
11108 lt_prog_compiler_pic_CXX='-KPIC'
11111 # Green Hills C++ Compiler
11112 lt_prog_compiler_pic_CXX='-pic'
11118 freebsd* | kfreebsd*-gnu)
11119 # FreeBSD uses GNU C++
11121 hpux9* | hpux10* | hpux11*)
11122 case $cc_basename in
11124 lt_prog_compiler_wl_CXX='-Wl,'
11125 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11126 if test "$host_cpu" != ia64; then
11127 lt_prog_compiler_pic_CXX='+Z'
11131 lt_prog_compiler_wl_CXX='-Wl,'
11132 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11133 case "$host_cpu" in
11138 lt_prog_compiler_pic_CXX='+Z'
11146 irix5* | irix6* | nonstopux*)
11147 case $cc_basename in
11149 lt_prog_compiler_wl_CXX='-Wl,'
11150 lt_prog_compiler_static_CXX='-non_shared'
11151 # CC pic flag -KPIC is the default.
11158 case $cc_basename in
11161 lt_prog_compiler_wl_CXX='--backend -Wl,'
11162 lt_prog_compiler_pic_CXX='-fPIC'
11166 lt_prog_compiler_wl_CXX='-Wl,'
11167 lt_prog_compiler_pic_CXX='-KPIC'
11168 lt_prog_compiler_static_CXX='-static'
11172 # Make sure the PIC flag is empty. It appears that all Alpha
11173 # Linux and Compaq Tru64 Unix objects are PIC.
11174 lt_prog_compiler_pic_CXX=
11175 lt_prog_compiler_static_CXX='-non_shared'
11186 case $cc_basename in
11188 lt_prog_compiler_pic_CXX='-W c,exportall'
11194 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11196 osf3* | osf4* | osf5*)
11197 case $cc_basename in
11199 lt_prog_compiler_wl_CXX='--backend -Wl,'
11202 # Rational C++ 2.4.1
11203 lt_prog_compiler_pic_CXX='-pic'
11206 # Digital/Compaq C++
11207 lt_prog_compiler_wl_CXX='-Wl,'
11208 # Make sure the PIC flag is empty. It appears that all Alpha
11209 # Linux and Compaq Tru64 Unix objects are PIC.
11210 lt_prog_compiler_pic_CXX=
11211 lt_prog_compiler_static_CXX='-non_shared'
11220 case $cc_basename in
11222 lt_prog_compiler_pic_CXX='-fPIC'
11229 case $cc_basename in
11231 # Sun C++ 4.2, 5.x and Centerline C++
11232 lt_prog_compiler_pic_CXX='-KPIC'
11233 lt_prog_compiler_static_CXX='-Bstatic'
11234 lt_prog_compiler_wl_CXX='-Qoption ld '
11237 # Green Hills C++ Compiler
11238 lt_prog_compiler_pic_CXX='-PIC'
11245 case $cc_basename in
11248 lt_prog_compiler_pic_CXX='-pic'
11249 lt_prog_compiler_static_CXX='-Bstatic'
11253 lt_prog_compiler_pic_CXX='-pic'
11260 case $cc_basename in
11262 # NonStop-UX NCC 3.20
11263 lt_prog_compiler_pic_CXX='-KPIC'
11274 lt_prog_compiler_can_build_shared_CXX=no
11279 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11280 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11283 # Check to make sure the PIC flag actually works.
11285 if test -n "$lt_prog_compiler_pic_CXX"; then
11287 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11288 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11289 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 lt_prog_compiler_pic_works_CXX=no
11293 ac_outfile=conftest.$ac_objext
11294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11295 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11296 # Insert the option either (1) after the last *FLAGS variable, or
11297 # (2) before a word containing "conftest.", or (3) at the end.
11298 # Note that $ac_compile itself does not contain backslashes and begins
11299 # with a dollar sign (not a hyphen), so the echo should work correctly.
11300 # The option is referenced via a variable to avoid confusing sed.
11301 lt_compile=`echo "$ac_compile" | $SED \
11302 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11304 -e 's:$: $lt_compiler_flag:'`
11305 (eval echo "\"\$as_me:11305: $lt_compile\"" >&5)
11306 (eval "$lt_compile" 2>conftest.err)
11308 cat conftest.err >&5
11309 echo "$as_me:11309: \$? = $ac_status" >&5
11310 if (exit $ac_status) && test -s "$ac_outfile"; then
11311 # The compiler can only warn and ignore the option if not recognized
11312 # So say no if there are warnings
11313 if test ! -s conftest.err; then
11314 lt_prog_compiler_pic_works_CXX=yes
11320 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11321 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11323 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11324 case $lt_prog_compiler_pic_CXX in
11326 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11329 lt_prog_compiler_pic_CXX=
11330 lt_prog_compiler_can_build_shared_CXX=no
11335 # For platforms which do not support PIC, -DPIC is meaningless:
11337 lt_prog_compiler_pic_CXX=
11340 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11344 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11345 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11346 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 lt_cv_prog_compiler_c_o_CXX=no
11350 $rm -r conftest 2>/dev/null
11354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11356 lt_compiler_flag="-o out/conftest2.$ac_objext"
11357 # Insert the option either (1) after the last *FLAGS variable, or
11358 # (2) before a word containing "conftest.", or (3) at the end.
11359 # Note that $ac_compile itself does not contain backslashes and begins
11360 # with a dollar sign (not a hyphen), so the echo should work correctly.
11361 lt_compile=`echo "$ac_compile" | $SED \
11362 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11364 -e 's:$: $lt_compiler_flag:'`
11365 (eval echo "\"\$as_me:11365: $lt_compile\"" >&5)
11366 (eval "$lt_compile" 2>out/conftest.err)
11368 cat out/conftest.err >&5
11369 echo "$as_me:11369: \$? = $ac_status" >&5
11370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11372 # The compiler can only warn and ignore the option if not recognized
11373 # So say no if there are warnings
11374 if test ! -s out/conftest.err; then
11375 lt_cv_prog_compiler_c_o_CXX=yes
11380 # SGI C++ compiler will create directory out/ii_files/ for
11381 # template instantiation
11382 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11383 $rm out/* && rmdir out
11389 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11390 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11393 hard_links="nottested"
11394 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11395 # do not overwrite the value of need_locks provided by the user
11396 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11397 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11402 ln conftest.a conftest.b 2>&5 || hard_links=no
11403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11404 echo "$as_me:$LINENO: result: $hard_links" >&5
11405 echo "${ECHO_T}$hard_links" >&6
11406 if test "$hard_links" = no; then
11407 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11408 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11415 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11416 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11418 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11421 # If we're using GNU nm, then we don't want the "-C" option.
11422 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11423 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11424 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'
11426 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'
11430 export_symbols_cmds_CXX="$ltdll_cmds"
11433 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11436 link_all_deplibs_CXX=no
11439 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11443 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11444 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11445 test "$ld_shlibs_CXX" = no && can_build_shared=no
11447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11448 if test "$GCC" = yes; then
11449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11453 # Do we need to explicitly link libc?
11455 case "x$archive_cmds_need_lc_CXX" in
11457 # Assume -lc should be added
11458 archive_cmds_need_lc_CXX=yes
11460 if test "$enable_shared" = yes && test "$GCC" = yes; then
11461 case $archive_cmds_CXX in
11463 # FIXME: we may have to deal with multi-command sequences.
11466 # Test whether the compiler implicitly links with -lc since on some
11467 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11468 # to ld, don't add -lc before -lgcc.
11469 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11470 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } 2>conftest.err; then
11481 libobjs=conftest.$ac_objext
11483 wl=$lt_prog_compiler_wl_CXX
11489 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11490 allow_undefined_flag_CXX=
11491 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11492 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }
11497 archive_cmds_need_lc_CXX=no
11499 archive_cmds_need_lc_CXX=yes
11501 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11503 cat conftest.err 1>&5
11506 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11507 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11514 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11515 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11516 library_names_spec=
11517 libname_spec='lib$name'
11521 postuninstall_cmds=
11525 shlibpath_overrides_runpath=unknown
11527 dynamic_linker="$host_os ld.so"
11528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11529 if test "$GCC" = yes; then
11530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11531 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11532 # if the path contains ";" then we assume it to be the separator
11533 # otherwise default to the standard path separator (i.e. ":") - it is
11534 # assumed that no part of a normal pathname contains ";" but that should
11535 # okay in the real world where ";" in dirpaths is itself problematic.
11536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11543 need_lib_prefix=unknown
11544 hardcode_into_libs=no
11546 # when you set need_version to no, make sure it does not cause -set_version
11547 # flags to be left without arguments
11548 need_version=unknown
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11554 shlibpath_var=LIBPATH
11556 # AIX 3 has no versioning support, so we append a major version to the name.
11557 soname_spec='${libname}${release}${shared_ext}$major'
11564 hardcode_into_libs=yes
11565 if test "$host_cpu" = ia64; then
11566 # AIX 5 supports IA64
11567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11568 shlibpath_var=LD_LIBRARY_PATH
11570 # With GCC up to 2.95.x, collect2 would create an import file
11571 # for dependence libraries. The import file would start with
11572 # the line `#! .'. This would cause the generated library to
11573 # depend on `.', always an invalid library. This was fixed in
11574 # development snapshots of GCC prior to 3.0.
11576 aix4 | aix4.[01] | aix4.[01].*)
11577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11579 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11582 can_build_shared=no
11586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11587 # soname into executable. Probably we can add versioning support to
11588 # collect2, so additional links can be useful in future.
11589 if test "$aix_use_runtimelinking" = yes; then
11590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11591 # instead of lib<name>.a to let people know that these are not
11592 # typical AIX shared libraries.
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595 # We preserve .a as extension for shared libraries through AIX4.2
11596 # and later when we are not doing run time linking.
11597 library_names_spec='${libname}${release}.a $libname.a'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11600 shlibpath_var=LIBPATH
11605 library_names_spec='$libname.ixlibrary $libname.a'
11606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11607 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'
11611 library_names_spec='${libname}${shared_ext}'
11612 dynamic_linker="$host_os ld.so"
11613 shlibpath_var=LIBRARY_PATH
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11625 # the default ld.so.conf also contains /usr/contrib/lib and
11626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11627 # libtool to hard-code these into programs
11630 cygwin* | mingw* | pw32*)
11631 version_type=windows
11636 case $GCC,$host_os in
11637 yes,cygwin* | yes,mingw* | yes,pw32*)
11638 library_names_spec='$libname.dll.a'
11639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11640 postinstall_cmds='base_file=`basename \${file}`~
11641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11642 dldir=$destdir/`dirname \$dlpath`~
11643 test -d \$dldir || mkdir -p \$dldir~
11644 $install_prog $dir/$dlname \$dldir/$dlname'
11645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11646 dlpath=$dir/\$dldll~
11648 shlibpath_overrides_runpath=yes
11652 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11654 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11657 # MinGW DLLs use traditional 'lib' prefix
11658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11659 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11660 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11661 # It is most probably a Windows format PATH printed by
11662 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11663 # path with ; separators, and with drive letters. We can handle the
11664 # drive letters (cygwin fileutils understands them), so leave them,
11665 # especially as we might pass files found there to a mingw objdump,
11666 # which wouldn't understand a cygwinified path. Ahh.
11667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11673 # pw32 DLLs use 'pw' prefix rather than 'lib'
11674 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11680 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11683 dynamic_linker='Win32 ld.exe'
11684 # FIXME: first we should search . and the directory the executable is in
11688 darwin* | rhapsody*)
11689 dynamic_linker="$host_os dyld"
11690 version_type=darwin
11693 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11694 soname_spec='${libname}${release}${major}$shared_ext'
11695 shlibpath_overrides_runpath=yes
11696 shlibpath_var=DYLD_LIBRARY_PATH
11697 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11698 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11699 if test "$GCC" = yes; then
11700 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"`
11702 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11712 soname_spec='${libname}${release}${shared_ext}$major'
11713 shlibpath_var=LD_LIBRARY_PATH
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11725 soname_spec='${libname}${release}${shared_ext}$major'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 shlibpath_overrides_runpath=no
11728 hardcode_into_libs=yes
11729 dynamic_linker='GNU ld.so'
11733 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11734 version_type=freebsd-$objformat
11735 case $version_type in
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11746 shlibpath_var=LD_LIBRARY_PATH
11749 shlibpath_overrides_runpath=yes
11751 freebsd3.01* | freebsdelf3.01*)
11752 shlibpath_overrides_runpath=yes
11753 hardcode_into_libs=yes
11756 shlibpath_overrides_runpath=no
11757 hardcode_into_libs=yes
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11767 soname_spec='${libname}${release}${shared_ext}$major'
11768 shlibpath_var=LD_LIBRARY_PATH
11769 hardcode_into_libs=yes
11772 hpux9* | hpux10* | hpux11*)
11773 # Give a soname corresponding to the major version so that dld.sl refuses to
11774 # link against other versions.
11778 case "$host_cpu" in
11781 hardcode_into_libs=yes
11782 dynamic_linker="$host_os dld.so"
11783 shlibpath_var=LD_LIBRARY_PATH
11784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786 soname_spec='${libname}${release}${shared_ext}$major'
11787 if test "X$HPUX_IA64_MODE" = X32; then
11788 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11790 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11796 hardcode_into_libs=yes
11797 dynamic_linker="$host_os dld.sl"
11798 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801 soname_spec='${libname}${release}${shared_ext}$major'
11802 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11807 dynamic_linker="$host_os dld.sl"
11808 shlibpath_var=SHLIB_PATH
11809 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811 soname_spec='${libname}${release}${shared_ext}$major'
11814 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11815 postinstall_cmds='chmod 555 $lib'
11818 irix5* | irix6* | nonstopux*)
11820 nonstopux*) version_type=nonstopux ;;
11822 if test "$lt_cv_prog_gnu_ld" = yes; then
11830 soname_spec='${libname}${release}${shared_ext}$major'
11831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11833 irix5* | nonstopux*)
11834 libsuff= shlibsuff=
11837 case $LD in # libtool.m4 will add one of these switches to LD
11838 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11839 libsuff= shlibsuff= libmagic=32-bit;;
11840 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11841 libsuff=32 shlibsuff=N32 libmagic=N32;;
11842 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11843 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11844 *) libsuff= shlibsuff= libmagic=never-match;;
11848 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11849 shlibpath_overrides_runpath=no
11850 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11851 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11852 hardcode_into_libs=yes
11855 # No shared lib support for Linux oldld, aout, or coff.
11856 linux*oldld* | linux*aout* | linux*coff*)
11860 # This must be Linux ELF.
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11868 shlibpath_var=LD_LIBRARY_PATH
11869 shlibpath_overrides_runpath=no
11870 # This implies no fast_install, which is unacceptable.
11871 # Some rework will be needed to allow for fast_install
11872 # before this can be enabled.
11873 hardcode_into_libs=yes
11875 # Append ld.so.conf contents to the search path
11876 if test -f /etc/ld.so.conf; then
11877 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11878 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11881 # We used to test for /lib/ld.so.1 and disable shared libraries on
11882 # powerpc, because MkLinux only supported shared libraries with the
11883 # GNU dynamic linker. Since this was broken with cross compilers,
11884 # most powerpc-linux boxes support dynamic linking these days and
11885 # people can always --disable-shared, the test was removed, and we
11886 # assume the GNU/Linux dynamic linker is in use.
11887 dynamic_linker='GNU/Linux ld.so'
11894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11895 soname_spec='${libname}${release}${shared_ext}$major'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 shlibpath_overrides_runpath=no
11898 hardcode_into_libs=yes
11899 dynamic_linker='NetBSD ld.elf_so'
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 shlibpath_overrides_runpath=no
11910 hardcode_into_libs=yes
11911 dynamic_linker='GNU ld.so'
11918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11921 dynamic_linker='NetBSD (a.out) ld.so'
11923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11924 soname_spec='${libname}${release}${shared_ext}$major'
11925 dynamic_linker='NetBSD ld.elf_so'
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=yes
11929 hardcode_into_libs=yes
11934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11935 shlibpath_var=LD_LIBRARY_PATH
11936 shlibpath_overrides_runpath=yes
11943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944 soname_spec='${libname}${release}${shared_ext}$major'
11945 shlibpath_var=LD_LIBRARY_PATH
11946 shlibpath_overrides_runpath=yes
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11955 shlibpath_var=LD_LIBRARY_PATH
11956 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11958 openbsd2.[89] | openbsd2.[89].*)
11959 shlibpath_overrides_runpath=no
11962 shlibpath_overrides_runpath=yes
11966 shlibpath_overrides_runpath=yes
11971 libname_spec='$name'
11974 library_names_spec='$libname${shared_ext} $libname.a'
11975 dynamic_linker='OS/2 ld.exe'
11976 shlibpath_var=LIBPATH
11979 osf3* | osf4* | osf5*)
11983 soname_spec='${libname}${release}${shared_ext}$major'
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985 shlibpath_var=LD_LIBRARY_PATH
11986 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11987 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11994 shlibpath_var=LD_LIBRARY_PATH
12001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12002 soname_spec='${libname}${release}${shared_ext}$major'
12003 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=yes
12005 hardcode_into_libs=yes
12006 # ldd complains unless libraries are executable
12007 postinstall_cmds='chmod +x $lib'
12012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12014 shlibpath_var=LD_LIBRARY_PATH
12015 shlibpath_overrides_runpath=yes
12016 if test "$with_gnu_ld" = yes; then
12022 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 soname_spec='${libname}${release}${shared_ext}$major'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 case $host_vendor in
12029 shlibpath_overrides_runpath=no
12031 export_dynamic_flag_spec='${wl}-Blargedynsym'
12032 runpath_var=LD_RUN_PATH
12040 shlibpath_overrides_runpath=no
12041 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12047 if test -d /usr/nec ;then
12049 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12050 soname_spec='$libname${shared_ext}.$major'
12051 shlibpath_var=LD_LIBRARY_PATH
12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 shlibpath_var=LD_LIBRARY_PATH
12066 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12067 echo "${ECHO_T}$dynamic_linker" >&6
12068 test "$dynamic_linker" = no && can_build_shared=no
12070 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12071 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12072 hardcode_action_CXX=
12073 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12074 test -n "$runpath_var CXX" || \
12075 test "X$hardcode_automatic_CXX"="Xyes" ; then
12077 # We can hardcode non-existant directories.
12078 if test "$hardcode_direct_CXX" != no &&
12079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12080 # have to relink, otherwise we might link with an installed library
12081 # when we should be linking with a yet-to-be-installed one
12082 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12083 test "$hardcode_minus_L_CXX" != no; then
12084 # Linking always hardcodes the temporary library directory.
12085 hardcode_action_CXX=relink
12087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12088 hardcode_action_CXX=immediate
12091 # We cannot hardcode anything, or else we can only hardcode existing
12093 hardcode_action_CXX=unsupported
12095 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12096 echo "${ECHO_T}$hardcode_action_CXX" >&6
12098 if test "$hardcode_action_CXX" = relink; then
12099 # Fast installation is not supported
12100 enable_fast_install=no
12101 elif test "$shlibpath_overrides_runpath" = yes ||
12102 test "$enable_shared" = no; then
12103 # Fast installation is not necessary
12104 enable_fast_install=needless
12109 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12110 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12111 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12112 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12113 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12114 echo "$as_me:$LINENO: result: yes" >&5
12115 echo "${ECHO_T}yes" >&6
12117 # FIXME - insert some real tests, host_os isn't really good enough
12120 if test -n "$STRIP" ; then
12121 striplib="$STRIP -x"
12122 echo "$as_me:$LINENO: result: yes" >&5
12123 echo "${ECHO_T}yes" >&6
12125 echo "$as_me:$LINENO: result: no" >&5
12126 echo "${ECHO_T}no" >&6
12130 echo "$as_me:$LINENO: result: no" >&5
12131 echo "${ECHO_T}no" >&6
12136 if test "x$enable_dlopen" != xyes; then
12137 enable_dlopen=unknown
12138 enable_dlopen_self=unknown
12139 enable_dlopen_self_static=unknown
12146 lt_cv_dlopen="load_add_on"
12148 lt_cv_dlopen_self=yes
12152 lt_cv_dlopen="LoadLibrary"
12157 lt_cv_dlopen="dlopen"
12162 # if libdl is installed we need to link against it
12163 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12164 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12165 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 ac_check_lib_save_LIBS=$LIBS
12170 cat >conftest.$ac_ext <<_ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12177 /* Override any gcc2 internal prototype to avoid an error. */
12181 /* We use char because int might match the return type of a gcc2
12182 builtin and then its argument prototype would still apply. */
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12194 (eval $ac_link) 2>conftest.er1
12196 grep -v '^ *+' conftest.er1 >conftest.err
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try='test -s conftest$ac_exeext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_cv_lib_dl_dlopen=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 ac_cv_lib_dl_dlopen=no
12220 rm -f conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222 LIBS=$ac_check_lib_save_LIBS
12224 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12225 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12226 if test $ac_cv_lib_dl_dlopen = yes; then
12227 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12230 lt_cv_dlopen="dyld"
12232 lt_cv_dlopen_self=yes
12239 echo "$as_me:$LINENO: checking for shl_load" >&5
12240 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12241 if test "${ac_cv_func_shl_load+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12252 #define shl_load innocuous_shl_load
12254 /* System header to define __stub macros and hopefully few prototypes,
12255 which can conflict with char shl_load (); below.
12256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257 <limits.h> exists even on freestanding compilers. */
12260 # include <limits.h>
12262 # include <assert.h>
12267 /* Override any gcc2 internal prototype to avoid an error. */
12272 /* We use char because int might match the return type of a gcc2
12273 builtin and then its argument prototype would still apply. */
12275 /* The GNU C library defines this for functions which it implements
12276 to always fail with ENOSYS. Some functions are actually named
12277 something starting with __ and the normal name is an alias. */
12278 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12281 char (*f) () = shl_load;
12290 return f != shl_load;
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297 (eval $ac_link) 2>conftest.er1
12299 grep -v '^ *+' conftest.er1 >conftest.err
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } &&
12304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest$ac_exeext'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 ac_cv_func_shl_load=yes
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12321 ac_cv_func_shl_load=no
12323 rm -f conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12326 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12327 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12328 if test $ac_cv_func_shl_load = yes; then
12329 lt_cv_dlopen="shl_load"
12331 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12332 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12333 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 ac_check_lib_save_LIBS=$LIBS
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12345 /* Override any gcc2 internal prototype to avoid an error. */
12349 /* We use char because int might match the return type of a gcc2
12350 builtin and then its argument prototype would still apply. */
12360 rm -f conftest.$ac_objext conftest$ac_exeext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12362 (eval $ac_link) 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest$ac_exeext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_lib_dld_shl_load=yes
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 ac_cv_lib_dld_shl_load=no
12388 rm -f conftest.err conftest.$ac_objext \
12389 conftest$ac_exeext conftest.$ac_ext
12390 LIBS=$ac_check_lib_save_LIBS
12392 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12393 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12394 if test $ac_cv_lib_dld_shl_load = yes; then
12395 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12397 echo "$as_me:$LINENO: checking for dlopen" >&5
12398 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12399 if test "${ac_cv_func_dlopen+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12410 #define dlopen innocuous_dlopen
12412 /* System header to define __stub macros and hopefully few prototypes,
12413 which can conflict with char dlopen (); below.
12414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12415 <limits.h> exists even on freestanding compilers. */
12418 # include <limits.h>
12420 # include <assert.h>
12425 /* Override any gcc2 internal prototype to avoid an error. */
12430 /* We use char because int might match the return type of a gcc2
12431 builtin and then its argument prototype would still apply. */
12433 /* The GNU C library defines this for functions which it implements
12434 to always fail with ENOSYS. Some functions are actually named
12435 something starting with __ and the normal name is an alias. */
12436 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12439 char (*f) () = dlopen;
12448 return f != dlopen;
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12455 (eval $ac_link) 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; } &&
12468 { ac_try='test -s conftest$ac_exeext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_cv_func_dlopen=yes
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ac_cv_func_dlopen=no
12481 rm -f conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12484 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12485 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12486 if test $ac_cv_func_dlopen = yes; then
12487 lt_cv_dlopen="dlopen"
12489 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12490 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12491 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 ac_check_lib_save_LIBS=$LIBS
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12503 /* Override any gcc2 internal prototype to avoid an error. */
12507 /* We use char because int might match the return type of a gcc2
12508 builtin and then its argument prototype would still apply. */
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>conftest.er1
12522 grep -v '^ *+' conftest.er1 >conftest.err
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; } &&
12533 { ac_try='test -s conftest$ac_exeext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_cv_lib_dl_dlopen=yes
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12544 ac_cv_lib_dl_dlopen=no
12546 rm -f conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12548 LIBS=$ac_check_lib_save_LIBS
12550 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12551 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12552 if test $ac_cv_lib_dl_dlopen = yes; then
12553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12555 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12556 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12557 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 ac_check_lib_save_LIBS=$LIBS
12561 LIBS="-lsvld $LIBS"
12562 cat >conftest.$ac_ext <<_ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12569 /* Override any gcc2 internal prototype to avoid an error. */
12573 /* We use char because int might match the return type of a gcc2
12574 builtin and then its argument prototype would still apply. */
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586 (eval $ac_link) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; } &&
12599 { ac_try='test -s conftest$ac_exeext'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12605 ac_cv_lib_svld_dlopen=yes
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12610 ac_cv_lib_svld_dlopen=no
12612 rm -f conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12616 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12617 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12618 if test $ac_cv_lib_svld_dlopen = yes; then
12619 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12621 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12622 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12623 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 ac_check_lib_save_LIBS=$LIBS
12628 cat >conftest.$ac_ext <<_ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12635 /* Override any gcc2 internal prototype to avoid an error. */
12639 /* We use char because int might match the return type of a gcc2
12640 builtin and then its argument prototype would still apply. */
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652 (eval $ac_link) 2>conftest.er1
12654 grep -v '^ *+' conftest.er1 >conftest.err
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest$ac_exeext'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12671 ac_cv_lib_dld_dld_link=yes
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12676 ac_cv_lib_dld_dld_link=no
12678 rm -f conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS
12682 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12683 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12684 if test $ac_cv_lib_dld_dld_link = yes; then
12685 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12706 if test "x$lt_cv_dlopen" != xno; then
12712 case $lt_cv_dlopen in
12714 save_CPPFLAGS="$CPPFLAGS"
12715 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12717 save_LDFLAGS="$LDFLAGS"
12718 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12721 LIBS="$lt_cv_dlopen_libs $LIBS"
12723 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12724 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12725 if test "${lt_cv_dlopen_self+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12728 if test "$cross_compiling" = yes; then :
12729 lt_cv_dlopen_self=cross
12731 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12732 lt_status=$lt_dlunknown
12733 cat > conftest.$ac_ext <<EOF
12734 #line 12734 "configure"
12735 #include "confdefs.h"
12744 # define LT_DLGLOBAL RTLD_GLOBAL
12747 # define LT_DLGLOBAL DL_GLOBAL
12749 # define LT_DLGLOBAL 0
12753 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12754 find out it does not work in some platform. */
12755 #ifndef LT_DLLAZY_OR_NOW
12757 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12760 # define LT_DLLAZY_OR_NOW DL_LAZY
12763 # define LT_DLLAZY_OR_NOW RTLD_NOW
12766 # define LT_DLLAZY_OR_NOW DL_NOW
12768 # define LT_DLLAZY_OR_NOW 0
12776 extern "C" void exit (int);
12779 void fnord() { int i=42;}
12782 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12783 int status = $lt_dlunknown;
12787 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12788 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12789 /* dlclose (self); */
12795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12796 (eval $ac_link) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12800 (./conftest; exit; ) 2>/dev/null
12802 case x$lt_status in
12803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12805 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12808 # compilation failed
12809 lt_cv_dlopen_self=no
12816 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12817 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12819 if test "x$lt_cv_dlopen_self" = xyes; then
12820 LDFLAGS="$LDFLAGS $link_static_flag"
12821 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12822 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12823 if test "${lt_cv_dlopen_self_static+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 if test "$cross_compiling" = yes; then :
12827 lt_cv_dlopen_self_static=cross
12829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12830 lt_status=$lt_dlunknown
12831 cat > conftest.$ac_ext <<EOF
12832 #line 12832 "configure"
12833 #include "confdefs.h"
12842 # define LT_DLGLOBAL RTLD_GLOBAL
12845 # define LT_DLGLOBAL DL_GLOBAL
12847 # define LT_DLGLOBAL 0
12851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12852 find out it does not work in some platform. */
12853 #ifndef LT_DLLAZY_OR_NOW
12855 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12858 # define LT_DLLAZY_OR_NOW DL_LAZY
12861 # define LT_DLLAZY_OR_NOW RTLD_NOW
12864 # define LT_DLLAZY_OR_NOW DL_NOW
12866 # define LT_DLLAZY_OR_NOW 0
12874 extern "C" void exit (int);
12877 void fnord() { int i=42;}
12880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12881 int status = $lt_dlunknown;
12885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12886 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12887 /* dlclose (self); */
12893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12894 (eval $ac_link) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12898 (./conftest; exit; ) 2>/dev/null
12900 case x$lt_status in
12901 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12902 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12903 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12906 # compilation failed
12907 lt_cv_dlopen_self_static=no
12914 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12915 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12918 CPPFLAGS="$save_CPPFLAGS"
12919 LDFLAGS="$save_LDFLAGS"
12924 case $lt_cv_dlopen_self in
12925 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12926 *) enable_dlopen_self=unknown ;;
12929 case $lt_cv_dlopen_self_static in
12930 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12931 *) enable_dlopen_self_static=unknown ;;
12936 # The else clause should only fire when bootstrapping the
12937 # libtool distribution, otherwise you forgot to ship ltmain.sh
12938 # with your package, and you will get complaints that there are
12939 # no rules to generate ltmain.sh.
12940 if test -f "$ltmain"; then
12941 # See if we are running on zsh, and set the options which allow our commands through
12942 # without removal of \ escapes.
12943 if test -n "${ZSH_VERSION+set}" ; then
12944 setopt NO_GLOB_SUBST
12946 # Now quote all the things that may contain metacharacters while being
12947 # careful not to overquote the AC_SUBSTed values. We take copies of the
12948 # variables and quote the copies for generation of the libtool script.
12949 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12951 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12952 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12953 deplibs_check_method reload_flag reload_cmds need_locks \
12954 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12955 lt_cv_sys_global_symbol_to_c_name_address \
12956 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12957 old_postinstall_cmds old_postuninstall_cmds \
12961 lt_prog_compiler_wl_CXX \
12962 lt_prog_compiler_pic_CXX \
12963 lt_prog_compiler_static_CXX \
12964 lt_prog_compiler_no_builtin_flag_CXX \
12965 export_dynamic_flag_spec_CXX \
12966 thread_safe_flag_spec_CXX \
12967 whole_archive_flag_spec_CXX \
12968 enable_shared_with_static_runtimes_CXX \
12969 old_archive_cmds_CXX \
12970 old_archive_from_new_cmds_CXX \
12971 predep_objects_CXX \
12972 postdep_objects_CXX \
12975 compiler_lib_search_path_CXX \
12977 archive_expsym_cmds_CXX \
12978 postinstall_cmds_CXX \
12979 postuninstall_cmds_CXX \
12980 old_archive_from_expsyms_cmds_CXX \
12981 allow_undefined_flag_CXX \
12982 no_undefined_flag_CXX \
12983 export_symbols_cmds_CXX \
12984 hardcode_libdir_flag_spec_CXX \
12985 hardcode_libdir_flag_spec_ld_CXX \
12986 hardcode_libdir_separator_CXX \
12987 hardcode_automatic_CXX \
12989 module_expsym_cmds_CXX \
12990 lt_cv_prog_compiler_c_o_CXX \
12991 exclude_expsyms_CXX \
12992 include_expsyms_CXX; do
12995 old_archive_cmds_CXX | \
12996 old_archive_from_new_cmds_CXX | \
12997 archive_cmds_CXX | \
12998 archive_expsym_cmds_CXX | \
12999 module_cmds_CXX | \
13000 module_expsym_cmds_CXX | \
13001 old_archive_from_expsyms_cmds_CXX | \
13002 export_symbols_cmds_CXX | \
13003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13004 postinstall_cmds | postuninstall_cmds | \
13005 old_postinstall_cmds | old_postuninstall_cmds | \
13006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13007 # Double-quote double-evaled strings.
13008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13017 *'\$0 --fallback-echo"')
13018 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13024 cat <<__EOF__ >> "$cfgfile"
13025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13029 # Shell to use when invoking shell scripts.
13032 # Whether or not to build shared libraries.
13033 build_libtool_libs=$enable_shared
13035 # Whether or not to build static libraries.
13036 build_old_libs=$enable_static
13038 # Whether or not to add -lc for building shared libraries.
13039 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13041 # Whether or not to disallow shared libs when runtime libs are static
13042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13044 # Whether or not to optimize for fast installation.
13045 fast_install=$enable_fast_install
13048 host_alias=$host_alias
13051 # An echo program that does not interpret backslashes.
13056 AR_FLAGS=$lt_AR_FLAGS
13061 # A language-specific compiler.
13062 CC=$lt_compiler_CXX
13064 # Is the compiler the GNU C compiler?
13070 # The linker used to build libraries.
13073 # Whether we need hard or soft links.
13076 # A BSD-compatible nm program.
13079 # A symbol stripping program
13082 # Used to examine libraries when file_magic_cmd begins "file"
13083 MAGIC_CMD=$MAGIC_CMD
13085 # Used on cygwin: DLL creation program.
13088 # Used on cygwin: object dumper.
13091 # Used on cygwin: assembler.
13094 # The name of the directory that contains temporary libtool files.
13097 # How to create reloadable object files.
13098 reload_flag=$lt_reload_flag
13099 reload_cmds=$lt_reload_cmds
13101 # How to pass a linker flag through the compiler.
13102 wl=$lt_lt_prog_compiler_wl_CXX
13104 # Object file suffix (normally "o").
13105 objext="$ac_objext"
13107 # Old archive suffix (normally "a").
13110 # Shared library suffix (normally ".so").
13111 shrext_cmds='$shrext_cmds'
13113 # Executable file suffix (normally "").
13116 # Additional compiler flags for building library objects.
13117 pic_flag=$lt_lt_prog_compiler_pic_CXX
13120 # What is the maximum length of a command?
13121 max_cmd_len=$lt_cv_sys_max_cmd_len
13123 # Does compiler simultaneously support -c and -o options?
13124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13126 # Must we lock files when doing compilation ?
13127 need_locks=$lt_need_locks
13129 # Do we need the lib prefix for modules?
13130 need_lib_prefix=$need_lib_prefix
13132 # Do we need a version for libraries?
13133 need_version=$need_version
13135 # Whether dlopen is supported.
13136 dlopen_support=$enable_dlopen
13138 # Whether dlopen of programs is supported.
13139 dlopen_self=$enable_dlopen_self
13141 # Whether dlopen of statically linked programs is supported.
13142 dlopen_self_static=$enable_dlopen_self_static
13144 # Compiler flag to prevent dynamic linking.
13145 link_static_flag=$lt_lt_prog_compiler_static_CXX
13147 # Compiler flag to turn off builtin functions.
13148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13150 # Compiler flag to allow reflexive dlopens.
13151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13153 # Compiler flag to generate shared objects directly from archives.
13154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13156 # Compiler flag to generate thread-safe objects.
13157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13159 # Library versioning type.
13160 version_type=$version_type
13162 # Format of library name prefix.
13163 libname_spec=$lt_libname_spec
13165 # List of archive names. First name is the real one, the rest are links.
13166 # The last name is the one that the linker finds with -lNAME.
13167 library_names_spec=$lt_library_names_spec
13169 # The coded name of the library, if different from the real name.
13170 soname_spec=$lt_soname_spec
13172 # Commands used to build and install an old-style archive.
13174 old_archive_cmds=$lt_old_archive_cmds_CXX
13175 old_postinstall_cmds=$lt_old_postinstall_cmds
13176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13178 # Create an old-style archive from a shared archive.
13179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13181 # Create a temporary old-style archive to link instead of a shared archive.
13182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13184 # Commands used to build and install a shared archive.
13185 archive_cmds=$lt_archive_cmds_CXX
13186 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13187 postinstall_cmds=$lt_postinstall_cmds
13188 postuninstall_cmds=$lt_postuninstall_cmds
13190 # Commands used to build a loadable module (assumed same as above if empty)
13191 module_cmds=$lt_module_cmds_CXX
13192 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13194 # Commands to strip libraries.
13195 old_striplib=$lt_old_striplib
13196 striplib=$lt_striplib
13198 # Dependencies to place before the objects being linked to create a
13200 predep_objects=$lt_predep_objects_CXX
13202 # Dependencies to place after the objects being linked to create a
13204 postdep_objects=$lt_postdep_objects_CXX
13206 # Dependencies to place before the objects being linked to create a
13208 predeps=$lt_predeps_CXX
13210 # Dependencies to place after the objects being linked to create a
13212 postdeps=$lt_postdeps_CXX
13214 # The library search path used internally by the compiler when linking
13215 # a shared library.
13216 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13218 # Method to check whether dependent libraries are shared objects.
13219 deplibs_check_method=$lt_deplibs_check_method
13221 # Command to use when deplibs_check_method == file_magic.
13222 file_magic_cmd=$lt_file_magic_cmd
13224 # Flag that allows shared libraries with undefined symbols to be built.
13225 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13227 # Flag that forces no undefined symbols.
13228 no_undefined_flag=$lt_no_undefined_flag_CXX
13230 # Commands used to finish a libtool library installation in a directory.
13231 finish_cmds=$lt_finish_cmds
13233 # Same as above, but a single script fragment to be evaled but not shown.
13234 finish_eval=$lt_finish_eval
13236 # Take the output of nm and produce a listing of raw symbols and C names.
13237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13239 # Transform the output of nm in a proper C declaration
13240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13242 # Transform the output of nm in a C name address pair
13243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13245 # This is the shared library runtime path variable.
13246 runpath_var=$runpath_var
13248 # This is the shared library path variable.
13249 shlibpath_var=$shlibpath_var
13251 # Is shlibpath searched before the hard-coded library search path?
13252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13254 # How to hardcode a shared library path into an executable.
13255 hardcode_action=$hardcode_action_CXX
13257 # Whether we should hardcode library paths into libraries.
13258 hardcode_into_libs=$hardcode_into_libs
13260 # Flag to hardcode \$libdir into a binary during linking.
13261 # This must work even if \$libdir does not exist.
13262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13264 # If ld is used when linking, flag to hardcode \$libdir into
13265 # a binary during linking. This must work even if \$libdir does
13267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13269 # Whether we need a single -rpath flag with a separated argument.
13270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13273 # resulting binary.
13274 hardcode_direct=$hardcode_direct_CXX
13276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13277 # resulting binary.
13278 hardcode_minus_L=$hardcode_minus_L_CXX
13280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13281 # the resulting binary.
13282 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13284 # Set to yes if building a shared library automatically hardcodes DIR into the library
13285 # and all subsequent libraries and executables linked against it.
13286 hardcode_automatic=$hardcode_automatic_CXX
13288 # Variables whose values should be saved in libtool wrapper scripts and
13289 # restored at relink time.
13290 variables_saved_for_relink="$variables_saved_for_relink"
13292 # Whether libtool must link a program against all its dependency libraries.
13293 link_all_deplibs=$link_all_deplibs_CXX
13295 # Compile-time system search path for libraries
13296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13298 # Run-time system search path for libraries
13299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13301 # Fix the shell variable \$srcfile for the compiler.
13302 fix_srcfile_path="$fix_srcfile_path_CXX"
13304 # Set to yes if exported symbols are required.
13305 always_export_symbols=$always_export_symbols_CXX
13307 # The commands to list exported symbols.
13308 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13310 # The commands to extract the exported symbol list from a shared archive.
13311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13313 # Symbols that should not be listed in the preloaded symbols.
13314 exclude_expsyms=$lt_exclude_expsyms_CXX
13316 # Symbols that must always be exported.
13317 include_expsyms=$lt_include_expsyms_CXX
13319 # ### END LIBTOOL TAG CONFIG: $tagname
13325 # If there is no Makefile yet, we rely on a make rule to execute
13326 # `config.status --recheck' to rerun these tests and create the
13327 # libtool script then.
13328 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13329 if test -f "$ltmain_in"; then
13330 test -f Makefile && make "$ltmain"
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13345 with_gnu_ldcxx=$with_gnu_ld
13346 with_gnu_ld=$lt_save_with_gnu_ld
13347 lt_cv_path_LDCXX=$lt_cv_path_LD
13348 lt_cv_path_LD=$lt_save_path_LD
13349 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13350 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13358 if test -n "$F77" && test "X$F77" != "Xno"; then
13361 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13362 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13363 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13366 archive_cmds_need_lc_F77=no
13367 allow_undefined_flag_F77=
13368 always_export_symbols_F77=no
13369 archive_expsym_cmds_F77=
13370 export_dynamic_flag_spec_F77=
13371 hardcode_direct_F77=no
13372 hardcode_libdir_flag_spec_F77=
13373 hardcode_libdir_flag_spec_ld_F77=
13374 hardcode_libdir_separator_F77=
13375 hardcode_minus_L_F77=no
13376 hardcode_automatic_F77=no
13378 module_expsym_cmds_F77=
13379 link_all_deplibs_F77=unknown
13380 old_archive_cmds_F77=$old_archive_cmds
13381 no_undefined_flag_F77=
13382 whole_archive_flag_spec_F77=
13383 enable_shared_with_static_runtimes_F77=no
13385 # Source file extension for f77 test sources.
13388 # Object file extension for compiled f77 test sources.
13392 # Code to be used in simple compile tests
13393 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13395 # Code to be used in simple link tests
13396 lt_simple_link_test_code=" program t\n end\n"
13398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13400 # If no C compiler was specified, use CC.
13403 # Allow CC to be a program name with arguments.
13407 # Allow CC to be a program name with arguments.
13412 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13414 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13416 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13417 echo "${ECHO_T}$can_build_shared" >&6
13419 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13421 test "$can_build_shared" = "no" && enable_shared=no
13423 # On AIX, shared libraries and static libraries use the same namespace, and
13424 # are all built from PIC.
13427 test "$enable_shared" = yes && enable_static=no
13428 if test -n "$RANLIB"; then
13429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13430 postinstall_cmds='$RANLIB $lib'
13434 test "$enable_shared" = yes && enable_static=no
13437 echo "$as_me:$LINENO: result: $enable_shared" >&5
13438 echo "${ECHO_T}$enable_shared" >&6
13440 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13441 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13442 # Make sure either enable_shared or enable_static is yes.
13443 test "$enable_shared" = yes || enable_static=yes
13444 echo "$as_me:$LINENO: result: $enable_static" >&5
13445 echo "${ECHO_T}$enable_static" >&6
13447 test "$ld_shlibs_F77" = no && can_build_shared=no
13452 lt_prog_compiler_wl_F77=
13453 lt_prog_compiler_pic_F77=
13454 lt_prog_compiler_static_F77=
13456 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13459 if test "$GCC" = yes; then
13460 lt_prog_compiler_wl_F77='-Wl,'
13461 lt_prog_compiler_static_F77='-static'
13465 # All AIX code is PIC.
13466 if test "$host_cpu" = ia64; then
13467 # AIX 5 now supports IA64 processor
13468 lt_prog_compiler_static_F77='-Bstatic'
13473 # FIXME: we need at least 68020 code to build shared libraries, but
13474 # adding the `-m68020' flag to GCC prevents building anything better,
13476 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13479 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13480 # PIC is the default for these OSes.
13483 mingw* | pw32* | os2*)
13484 # This hack is so that the source file can tell whether it is being
13485 # built for inclusion in a dll (and should export symbols for example).
13486 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13489 darwin* | rhapsody*)
13490 # PIC is the default on this platform
13491 # Common symbols not allowed in MH_DYLIB files
13492 lt_prog_compiler_pic_F77='-fno-common'
13496 # Just because we use GCC doesn't mean we suddenly get shared libraries
13497 # on systems that don't support them.
13498 lt_prog_compiler_can_build_shared_F77=no
13503 if test -d /usr/nec; then
13504 lt_prog_compiler_pic_F77=-Kconform_pic
13509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13510 # not for PA HP-UX.
13511 case "$host_cpu" in
13516 lt_prog_compiler_pic_F77='-fPIC'
13522 lt_prog_compiler_pic_F77='-fPIC'
13526 # PORTME Check for flag to pass linker flags through the system compiler.
13529 lt_prog_compiler_wl_F77='-Wl,'
13530 if test "$host_cpu" = ia64; then
13531 # AIX 5 now supports IA64 processor
13532 lt_prog_compiler_static_F77='-Bstatic'
13534 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13538 mingw* | pw32* | os2*)
13539 # This hack is so that the source file can tell whether it is being
13540 # built for inclusion in a dll (and should export symbols for example).
13541 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13544 hpux9* | hpux10* | hpux11*)
13545 lt_prog_compiler_wl_F77='-Wl,'
13546 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13547 # not for PA HP-UX.
13548 case "$host_cpu" in
13553 lt_prog_compiler_pic_F77='+Z'
13556 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13557 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13560 irix5* | irix6* | nonstopux*)
13561 lt_prog_compiler_wl_F77='-Wl,'
13562 # PIC (with -KPIC) is the default.
13563 lt_prog_compiler_static_F77='-non_shared'
13567 lt_prog_compiler_pic_F77='-KPIC'
13568 lt_prog_compiler_static_F77='-Bstatic'
13574 lt_prog_compiler_wl_F77='-Wl,'
13575 lt_prog_compiler_pic_F77='-KPIC'
13576 lt_prog_compiler_static_F77='-static'
13579 lt_prog_compiler_wl_F77='-Wl,'
13580 # All Alpha code is PIC.
13581 lt_prog_compiler_static_F77='-non_shared'
13586 osf3* | osf4* | osf5*)
13587 lt_prog_compiler_wl_F77='-Wl,'
13588 # All OSF/1 code is PIC.
13589 lt_prog_compiler_static_F77='-non_shared'
13593 lt_prog_compiler_pic_F77='-Kpic'
13594 lt_prog_compiler_static_F77='-dn'
13598 lt_prog_compiler_wl_F77='-Wl,'
13599 lt_prog_compiler_pic_F77='-KPIC'
13600 lt_prog_compiler_static_F77='-Bstatic'
13604 lt_prog_compiler_wl_F77='-Qoption ld '
13605 lt_prog_compiler_pic_F77='-PIC'
13606 lt_prog_compiler_static_F77='-Bstatic'
13609 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13610 lt_prog_compiler_wl_F77='-Wl,'
13611 lt_prog_compiler_pic_F77='-KPIC'
13612 lt_prog_compiler_static_F77='-Bstatic'
13616 if test -d /usr/nec ;then
13617 lt_prog_compiler_pic_F77='-Kconform_pic'
13618 lt_prog_compiler_static_F77='-Bstatic'
13623 lt_prog_compiler_pic_F77='-pic'
13624 lt_prog_compiler_static_F77='-Bstatic'
13628 lt_prog_compiler_can_build_shared_F77=no
13633 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13634 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13637 # Check to make sure the PIC flag actually works.
13639 if test -n "$lt_prog_compiler_pic_F77"; then
13641 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13642 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13643 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 lt_prog_compiler_pic_works_F77=no
13647 ac_outfile=conftest.$ac_objext
13648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13649 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13650 # Insert the option either (1) after the last *FLAGS variable, or
13651 # (2) before a word containing "conftest.", or (3) at the end.
13652 # Note that $ac_compile itself does not contain backslashes and begins
13653 # with a dollar sign (not a hyphen), so the echo should work correctly.
13654 # The option is referenced via a variable to avoid confusing sed.
13655 lt_compile=`echo "$ac_compile" | $SED \
13656 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13658 -e 's:$: $lt_compiler_flag:'`
13659 (eval echo "\"\$as_me:13659: $lt_compile\"" >&5)
13660 (eval "$lt_compile" 2>conftest.err)
13662 cat conftest.err >&5
13663 echo "$as_me:13663: \$? = $ac_status" >&5
13664 if (exit $ac_status) && test -s "$ac_outfile"; then
13665 # The compiler can only warn and ignore the option if not recognized
13666 # So say no if there are warnings
13667 if test ! -s conftest.err; then
13668 lt_prog_compiler_pic_works_F77=yes
13674 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13675 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13677 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13678 case $lt_prog_compiler_pic_F77 in
13680 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13683 lt_prog_compiler_pic_F77=
13684 lt_prog_compiler_can_build_shared_F77=no
13689 # For platforms which do not support PIC, -DPIC is meaningless:
13691 lt_prog_compiler_pic_F77=
13694 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13698 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13699 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13700 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 lt_cv_prog_compiler_c_o_F77=no
13704 $rm -r conftest 2>/dev/null
13708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13710 lt_compiler_flag="-o out/conftest2.$ac_objext"
13711 # Insert the option either (1) after the last *FLAGS variable, or
13712 # (2) before a word containing "conftest.", or (3) at the end.
13713 # Note that $ac_compile itself does not contain backslashes and begins
13714 # with a dollar sign (not a hyphen), so the echo should work correctly.
13715 lt_compile=`echo "$ac_compile" | $SED \
13716 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13718 -e 's:$: $lt_compiler_flag:'`
13719 (eval echo "\"\$as_me:13719: $lt_compile\"" >&5)
13720 (eval "$lt_compile" 2>out/conftest.err)
13722 cat out/conftest.err >&5
13723 echo "$as_me:13723: \$? = $ac_status" >&5
13724 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13726 # The compiler can only warn and ignore the option if not recognized
13727 # So say no if there are warnings
13728 if test ! -s out/conftest.err; then
13729 lt_cv_prog_compiler_c_o_F77=yes
13734 # SGI C++ compiler will create directory out/ii_files/ for
13735 # template instantiation
13736 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13737 $rm out/* && rmdir out
13743 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13744 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13747 hard_links="nottested"
13748 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13749 # do not overwrite the value of need_locks provided by the user
13750 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13751 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13756 ln conftest.a conftest.b 2>&5 || hard_links=no
13757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13758 echo "$as_me:$LINENO: result: $hard_links" >&5
13759 echo "${ECHO_T}$hard_links" >&6
13760 if test "$hard_links" = no; then
13761 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13762 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13769 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13770 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13773 allow_undefined_flag_F77=
13774 enable_shared_with_static_runtimes_F77=no
13776 archive_expsym_cmds_F77=
13777 old_archive_From_new_cmds_F77=
13778 old_archive_from_expsyms_cmds_F77=
13779 export_dynamic_flag_spec_F77=
13780 whole_archive_flag_spec_F77=
13781 thread_safe_flag_spec_F77=
13782 hardcode_libdir_flag_spec_F77=
13783 hardcode_libdir_flag_spec_ld_F77=
13784 hardcode_libdir_separator_F77=
13785 hardcode_direct_F77=no
13786 hardcode_minus_L_F77=no
13787 hardcode_shlibpath_var_F77=unsupported
13788 link_all_deplibs_F77=unknown
13789 hardcode_automatic_F77=no
13791 module_expsym_cmds_F77=
13792 always_export_symbols_F77=no
13793 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13794 # include_expsyms should be a list of space-separated symbols to be *always*
13795 # included in the symbol list
13796 include_expsyms_F77=
13797 # exclude_expsyms can be an extended regexp of symbols to exclude
13798 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13799 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13800 # as well as any symbol that contains `d'.
13801 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13802 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13803 # platforms (ab)use it in PIC code, but their linkers get confused if
13804 # the symbol is explicitly referenced. Since portable code cannot
13805 # rely on this symbol name, it's probably fine to never include it in
13806 # preloaded symbol tables.
13807 extract_expsyms_cmds=
13810 cygwin* | mingw* | pw32*)
13811 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13812 # When not using gcc, we currently assume that we are using
13813 # Microsoft Visual C++.
13814 if test "$GCC" != yes; then
13824 if test "$with_gnu_ld" = yes; then
13825 # If archive_cmds runs LD, not CC, wlarc should be empty
13828 # See if GNU ld supports shared libraries.
13830 aix3* | aix4* | aix5*)
13831 # On AIX/PPC, the GNU linker is very broken
13832 if test "$host_cpu" != ia64; then
13836 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13837 *** to be unable to reliably create shared libraries on AIX.
13838 *** Therefore, libtool is disabling shared libraries support. If you
13839 *** really care for shared libraries, you may want to modify your PATH
13840 *** so that a non-GNU linker is found, and then restart.
13847 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)'
13848 hardcode_libdir_flag_spec_F77='-L$libdir'
13849 hardcode_minus_L_F77=yes
13851 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13852 # that the semantics of dynamic libraries on AmigaOS, at least up
13853 # to version 4, is to share data among multiple programs linked
13854 # with the same dynamic library. Since this doesn't match the
13855 # behavior of shared libraries on other platforms, we can't use
13861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13862 allow_undefined_flag_F77=unsupported
13863 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13864 # support --undefined. This deserves some investigation. FIXME
13865 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13871 cygwin* | mingw* | pw32*)
13872 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13873 # as there is no search path for DLLs.
13874 hardcode_libdir_flag_spec_F77='-L$libdir'
13875 allow_undefined_flag_F77=unsupported
13876 always_export_symbols_F77=no
13877 enable_shared_with_static_runtimes_F77=yes
13878 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13880 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13881 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13882 # If the export-symbols file already is a .def file (1st line
13883 # is EXPORTS), use it as is; otherwise, prepend...
13884 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13885 cp $export_symbols $output_objdir/$soname.def;
13887 echo EXPORTS > $output_objdir/$soname.def;
13888 cat $export_symbols >> $output_objdir/$soname.def;
13890 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13896 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13898 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13901 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13907 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13911 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13912 *** create shared libraries on Solaris systems. Therefore, libtool
13913 *** is disabling shared libraries support. We urge you to upgrade GNU
13914 *** binutils to release 2.9.1 or newer. Another option is to modify
13915 *** your PATH or compiler configuration so that the native linker is
13916 *** used, and then restart.
13919 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13920 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13928 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13930 hardcode_direct_F77=yes
13931 hardcode_shlibpath_var_F77=no
13935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13936 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13937 archive_cmds_F77="$tmp_archive_cmds"
13938 supports_anon_versioning=no
13939 case `$LD -v 2>/dev/null` in
13940 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13941 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13942 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13943 *\ 2.11.*) ;; # other 2.11 versions
13944 *) supports_anon_versioning=yes ;;
13946 if test $supports_anon_versioning = yes; then
13947 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13949 $echo "local: *; };" >> $output_objdir/$libname.ver~
13950 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13952 archive_expsym_cmds_F77="$tmp_archive_cmds"
13954 link_all_deplibs_F77=no
13961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13962 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13970 if test "$ld_shlibs_F77" = yes; then
13971 runpath_var=LD_RUN_PATH
13972 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13973 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13974 # ancient GNU ld didn't support --whole-archive et. al.
13975 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13976 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13978 whole_archive_flag_spec_F77=
13982 # PORTME fill in a description of your system's linker (not GNU ld)
13985 allow_undefined_flag_F77=unsupported
13986 always_export_symbols_F77=yes
13987 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'
13988 # Note: this linker hardcodes the directories in LIBPATH if there
13989 # are no directories specified by -L.
13990 hardcode_minus_L_F77=yes
13991 if test "$GCC" = yes && test -z "$link_static_flag"; then
13992 # Neither direct hardcoding nor static linking is supported with a
13994 hardcode_direct_F77=unsupported
13999 if test "$host_cpu" = ia64; then
14000 # On IA64, the linker does run time linking by default, so we don't
14001 # have to do anything special.
14002 aix_use_runtimelinking=no
14003 exp_sym_flag='-Bexport'
14006 # If we're using GNU nm, then we don't want the "-C" option.
14007 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14008 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14009 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'
14011 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'
14013 aix_use_runtimelinking=no
14015 # Test if we are trying to use run time linking or normal
14016 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14017 # need to do runtime linking.
14018 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14019 for ld_flag in $LDFLAGS; do
14020 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14021 aix_use_runtimelinking=yes
14027 exp_sym_flag='-bexport'
14028 no_entry_flag='-bnoentry'
14031 # When large executables or shared objects are built, AIX ld can
14032 # have problems creating the table of contents. If linking a library
14033 # or program results in "error TOC overflow" add -mminimal-toc to
14034 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14035 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14037 archive_cmds_F77=''
14038 hardcode_direct_F77=yes
14039 hardcode_libdir_separator_F77=':'
14040 link_all_deplibs_F77=yes
14042 if test "$GCC" = yes; then
14043 case $host_os in aix4.012|aix4.012.*)
14044 # We only want to do this on AIX 4.2 and lower, the check
14045 # below for broken collect2 doesn't work under 4.3+
14046 collect2name=`${CC} -print-prog-name=collect2`
14047 if test -f "$collect2name" && \
14048 strings "$collect2name" | grep resolve_lib_name >/dev/null
14050 # We have reworked collect2
14051 hardcode_direct_F77=yes
14053 # We have old collect2
14054 hardcode_direct_F77=unsupported
14055 # It fails to find uninstalled libraries when the uninstalled
14056 # path is not listed in the libpath. Setting hardcode_minus_L
14057 # to unsupported forces relinking
14058 hardcode_minus_L_F77=yes
14059 hardcode_libdir_flag_spec_F77='-L$libdir'
14060 hardcode_libdir_separator_F77=
14063 shared_flag='-shared'
14066 if test "$host_cpu" = ia64; then
14067 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14068 # chokes on -Wl,-G. The following line is correct:
14071 if test "$aix_use_runtimelinking" = yes; then
14072 shared_flag='${wl}-G'
14074 shared_flag='${wl}-bM:SRE'
14079 # It seems that -bexpall does not export symbols beginning with
14080 # underscore (_), so it is better to generate a list of symbols to export.
14081 always_export_symbols_F77=yes
14082 if test "$aix_use_runtimelinking" = yes; then
14083 # Warning - without using the other runtime loading flags (-brtl),
14084 # -berok will link without error, but may produce a broken library.
14085 allow_undefined_flag_F77='-berok'
14086 # Determine the default libpath from the value encoded in an empty executable.
14087 cat >conftest.$ac_ext <<_ACEOF
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094 (eval $ac_link) 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14114 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14116 # Check for a 64-bit object if we didn't find anything.
14117 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; }
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14124 rm -f conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14128 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14129 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14131 if test "$host_cpu" = ia64; then
14132 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14133 allow_undefined_flag_F77="-z nodefs"
14134 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14136 # Determine the default libpath from the value encoded in an empty executable.
14137 cat >conftest.$ac_ext <<_ACEOF
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144 (eval $ac_link) 2>conftest.er1
14146 grep -v '^ *+' conftest.er1 >conftest.err
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; } &&
14157 { ac_try='test -s conftest$ac_exeext'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; }; then
14164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14166 # Check for a 64-bit object if we didn't find anything.
14167 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; }
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14174 rm -f conftest.err conftest.$ac_objext \
14175 conftest$ac_exeext conftest.$ac_ext
14176 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14178 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14179 # Warning - without using the other run time loading flags,
14180 # -berok will link without error, but may produce a broken library.
14181 no_undefined_flag_F77=' ${wl}-bernotok'
14182 allow_undefined_flag_F77=' ${wl}-berok'
14183 # -bexpall does not export symbols beginning with underscore (_)
14184 always_export_symbols_F77=yes
14185 # Exported symbols can be pulled into shared objects from archives
14186 whole_archive_flag_spec_F77=' '
14187 archive_cmds_need_lc_F77=yes
14188 # This is similar to how AIX traditionally builds it's shared libraries.
14189 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14195 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)'
14196 hardcode_libdir_flag_spec_F77='-L$libdir'
14197 hardcode_minus_L_F77=yes
14198 # see comment about different semantics on the GNU ld section
14203 export_dynamic_flag_spec_F77=-rdynamic
14206 cygwin* | mingw* | pw32*)
14207 # When not using gcc, we currently assume that we are using
14208 # Microsoft Visual C++.
14209 # hardcode_libdir_flag_spec is actually meaningless, as there is
14210 # no search path for DLLs.
14211 hardcode_libdir_flag_spec_F77=' '
14212 allow_undefined_flag_F77=unsupported
14213 # Tell ltmain to make .lib files, not .a files.
14215 # Tell ltmain to make .dll files, not .so files.
14217 # FIXME: Setting linknames here is a bad hack.
14218 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14219 # The linker will automatically build a .lib file if we build a DLL.
14220 old_archive_From_new_cmds_F77='true'
14221 # FIXME: Should let the user specify the lib program.
14222 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14223 fix_srcfile_path='`cygpath -w "$srcfile"`'
14224 enable_shared_with_static_runtimes_F77=yes
14227 darwin* | rhapsody*)
14228 if test "$GXX" = yes ; then
14229 archive_cmds_need_lc_F77=no
14231 rhapsody* | darwin1.[012])
14232 allow_undefined_flag_F77='-undefined suppress'
14235 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14236 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14238 case ${MACOSX_DEPLOYMENT_TARGET} in
14240 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14243 allow_undefined_flag_F77='-undefined dynamic_lookup'
14249 lt_int_apple_cc_single_mod=no
14250 output_verbose_link_cmd='echo'
14251 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14252 lt_int_apple_cc_single_mod=yes
14254 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14255 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14257 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14259 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14260 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14261 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14262 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14264 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14266 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}'
14267 hardcode_direct_F77=no
14268 hardcode_automatic_F77=yes
14269 hardcode_shlibpath_var_F77=unsupported
14270 whole_archive_flag_spec_F77='-all_load $convenience'
14271 link_all_deplibs_F77=yes
14278 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279 hardcode_libdir_flag_spec_F77='-L$libdir'
14280 hardcode_shlibpath_var_F77=no
14287 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14288 # support. Future versions do this automatically, but an explicit c++rt0.o
14289 # does not break anything, and helps significantly (at the cost of a little
14292 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14293 hardcode_libdir_flag_spec_F77='-R$libdir'
14294 hardcode_direct_F77=yes
14295 hardcode_shlibpath_var_F77=no
14298 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14300 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14301 hardcode_direct_F77=yes
14302 hardcode_minus_L_F77=yes
14303 hardcode_shlibpath_var_F77=no
14306 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14307 freebsd* | kfreebsd*-gnu)
14308 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14309 hardcode_libdir_flag_spec_F77='-R$libdir'
14310 hardcode_direct_F77=yes
14311 hardcode_shlibpath_var_F77=no
14315 if test "$GCC" = yes; then
14316 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'
14318 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'
14320 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14321 hardcode_libdir_separator_F77=:
14322 hardcode_direct_F77=yes
14324 # hardcode_minus_L: Not really in the search PATH,
14325 # but as the default location of the library.
14326 hardcode_minus_L_F77=yes
14327 export_dynamic_flag_spec_F77='${wl}-E'
14331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14332 case "$host_cpu" in
14334 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14337 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14341 case "$host_cpu" in
14343 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14346 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14350 if test "$with_gnu_ld" = no; then
14351 case "$host_cpu" in
14353 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14354 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14355 hardcode_libdir_separator_F77=:
14356 hardcode_direct_F77=no
14357 hardcode_shlibpath_var_F77=no
14360 hardcode_libdir_flag_spec_F77='-L$libdir'
14361 hardcode_direct_F77=no
14362 hardcode_shlibpath_var_F77=no
14364 # hardcode_minus_L: Not really in the search PATH,
14365 # but as the default location of the library.
14366 hardcode_minus_L_F77=yes
14369 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14370 hardcode_libdir_separator_F77=:
14371 hardcode_direct_F77=yes
14372 export_dynamic_flag_spec_F77='${wl}-E'
14374 # hardcode_minus_L: Not really in the search PATH,
14375 # but as the default location of the library.
14376 hardcode_minus_L_F77=yes
14382 irix5* | irix6* | nonstopux*)
14383 if test "$GCC" = yes; then
14384 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'
14386 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'
14387 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14389 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14390 hardcode_libdir_separator_F77=:
14391 link_all_deplibs_F77=yes
14394 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14396 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14398 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14400 hardcode_libdir_flag_spec_F77='-R$libdir'
14401 hardcode_direct_F77=yes
14402 hardcode_shlibpath_var_F77=no
14406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407 hardcode_direct_F77=yes
14408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14409 hardcode_libdir_separator_F77=:
14410 hardcode_shlibpath_var_F77=no
14414 hardcode_direct_F77=yes
14415 hardcode_shlibpath_var_F77=no
14416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14417 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14418 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14419 export_dynamic_flag_spec_F77='${wl}-E'
14422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14423 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14424 hardcode_libdir_flag_spec_F77='-R$libdir'
14427 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14428 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14435 hardcode_libdir_flag_spec_F77='-L$libdir'
14436 hardcode_minus_L_F77=yes
14437 allow_undefined_flag_F77=unsupported
14438 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'
14439 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14443 if test "$GCC" = yes; then
14444 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14445 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'
14447 allow_undefined_flag_F77=' -expect_unresolved \*'
14448 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'
14450 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14451 hardcode_libdir_separator_F77=:
14454 osf4* | osf5*) # as osf3* with the addition of -msym flag
14455 if test "$GCC" = yes; then
14456 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14457 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'
14458 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14460 allow_undefined_flag_F77=' -expect_unresolved \*'
14461 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'
14462 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~
14463 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14465 # Both c and cxx compiler support -rpath directly
14466 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14468 hardcode_libdir_separator_F77=:
14472 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473 hardcode_shlibpath_var_F77=no
14474 export_dynamic_flag_spec_F77='${wl}-Bexport'
14475 runpath_var=LD_RUN_PATH
14476 hardcode_runpath_var=yes
14480 no_undefined_flag_F77=' -z text'
14481 if test "$GCC" = yes; then
14482 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14483 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14484 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14486 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14487 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14488 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14490 hardcode_libdir_flag_spec_F77='-R$libdir'
14491 hardcode_shlibpath_var_F77=no
14493 solaris2.[0-5] | solaris2.[0-5].*) ;;
14494 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14495 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14497 link_all_deplibs_F77=yes
14501 if test "x$host_vendor" = xsequent; then
14502 # Use $CC to link under sequent, because it throws in some extra .o
14503 # files that make .init and .fini sections work.
14504 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14506 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14508 hardcode_libdir_flag_spec_F77='-L$libdir'
14509 hardcode_direct_F77=yes
14510 hardcode_minus_L_F77=yes
14511 hardcode_shlibpath_var_F77=no
14515 case $host_vendor in
14517 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14518 hardcode_direct_F77=yes # is this really true???
14521 ## LD is ld it makes a PLAMLIB
14522 ## CC just makes a GrossModule.
14523 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14524 reload_cmds_F77='$CC -r -o $output$reload_objs'
14525 hardcode_direct_F77=no
14528 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14529 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14532 runpath_var='LD_RUN_PATH'
14533 hardcode_shlibpath_var_F77=no
14537 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14538 hardcode_shlibpath_var_F77=no
14539 export_dynamic_flag_spec_F77='-Bexport'
14543 if test -d /usr/nec; then
14544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14545 hardcode_shlibpath_var_F77=no
14546 runpath_var=LD_RUN_PATH
14547 hardcode_runpath_var=yes
14553 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14554 hardcode_direct_F77=yes
14555 hardcode_minus_L_F77=no
14556 hardcode_shlibpath_var_F77=no
14557 hardcode_runpath_var=yes
14558 runpath_var=LD_RUN_PATH
14561 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14562 no_undefined_flag_F77='${wl}-z ${wl}text'
14563 if test "$GCC" = yes; then
14564 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14566 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 runpath_var='LD_RUN_PATH'
14569 hardcode_shlibpath_var_F77=no
14573 no_undefined_flag_F77=' -z text'
14574 # $CC -shared without GNU ld will not create a library from C++
14575 # object files and a static libstdc++, better avoid it by now
14576 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14577 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14578 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14579 hardcode_libdir_flag_spec_F77=
14580 hardcode_shlibpath_var_F77=no
14581 runpath_var='LD_RUN_PATH'
14585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586 hardcode_libdir_flag_spec_F77='-L$libdir'
14587 hardcode_shlibpath_var_F77=no
14596 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14597 echo "${ECHO_T}$ld_shlibs_F77" >&6
14598 test "$ld_shlibs_F77" = no && can_build_shared=no
14600 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14601 if test "$GCC" = yes; then
14602 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14606 # Do we need to explicitly link libc?
14608 case "x$archive_cmds_need_lc_F77" in
14610 # Assume -lc should be added
14611 archive_cmds_need_lc_F77=yes
14613 if test "$enable_shared" = yes && test "$GCC" = yes; then
14614 case $archive_cmds_F77 in
14616 # FIXME: we may have to deal with multi-command sequences.
14619 # Test whether the compiler implicitly links with -lc since on some
14620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14621 # to ld, don't add -lc before -lgcc.
14622 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14623 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628 (eval $ac_compile) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } 2>conftest.err; then
14634 libobjs=conftest.$ac_objext
14636 wl=$lt_prog_compiler_wl_F77
14642 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14643 allow_undefined_flag_F77=
14644 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14645 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }
14650 archive_cmds_need_lc_F77=no
14652 archive_cmds_need_lc_F77=yes
14654 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14656 cat conftest.err 1>&5
14659 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14660 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14667 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14668 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14669 library_names_spec=
14670 libname_spec='lib$name'
14674 postuninstall_cmds=
14678 shlibpath_overrides_runpath=unknown
14680 dynamic_linker="$host_os ld.so"
14681 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14682 if test "$GCC" = yes; then
14683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14684 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14685 # if the path contains ";" then we assume it to be the separator
14686 # otherwise default to the standard path separator (i.e. ":") - it is
14687 # assumed that no part of a normal pathname contains ";" but that should
14688 # okay in the real world where ";" in dirpaths is itself problematic.
14689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14694 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14696 need_lib_prefix=unknown
14697 hardcode_into_libs=no
14699 # when you set need_version to no, make sure it does not cause -set_version
14700 # flags to be left without arguments
14701 need_version=unknown
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14707 shlibpath_var=LIBPATH
14709 # AIX 3 has no versioning support, so we append a major version to the name.
14710 soname_spec='${libname}${release}${shared_ext}$major'
14717 hardcode_into_libs=yes
14718 if test "$host_cpu" = ia64; then
14719 # AIX 5 supports IA64
14720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14721 shlibpath_var=LD_LIBRARY_PATH
14723 # With GCC up to 2.95.x, collect2 would create an import file
14724 # for dependence libraries. The import file would start with
14725 # the line `#! .'. This would cause the generated library to
14726 # depend on `.', always an invalid library. This was fixed in
14727 # development snapshots of GCC prior to 3.0.
14729 aix4 | aix4.[01] | aix4.[01].*)
14730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14732 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14735 can_build_shared=no
14739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14740 # soname into executable. Probably we can add versioning support to
14741 # collect2, so additional links can be useful in future.
14742 if test "$aix_use_runtimelinking" = yes; then
14743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14744 # instead of lib<name>.a to let people know that these are not
14745 # typical AIX shared libraries.
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14748 # We preserve .a as extension for shared libraries through AIX4.2
14749 # and later when we are not doing run time linking.
14750 library_names_spec='${libname}${release}.a $libname.a'
14751 soname_spec='${libname}${release}${shared_ext}$major'
14753 shlibpath_var=LIBPATH
14758 library_names_spec='$libname.ixlibrary $libname.a'
14759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14760 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'
14764 library_names_spec='${libname}${shared_ext}'
14765 dynamic_linker="$host_os ld.so"
14766 shlibpath_var=LIBRARY_PATH
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 soname_spec='${libname}${release}${shared_ext}$major'
14774 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14777 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14778 # the default ld.so.conf also contains /usr/contrib/lib and
14779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14780 # libtool to hard-code these into programs
14783 cygwin* | mingw* | pw32*)
14784 version_type=windows
14789 case $GCC,$host_os in
14790 yes,cygwin* | yes,mingw* | yes,pw32*)
14791 library_names_spec='$libname.dll.a'
14792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14793 postinstall_cmds='base_file=`basename \${file}`~
14794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14795 dldir=$destdir/`dirname \$dlpath`~
14796 test -d \$dldir || mkdir -p \$dldir~
14797 $install_prog $dir/$dlname \$dldir/$dlname'
14798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14799 dlpath=$dir/\$dldll~
14801 shlibpath_overrides_runpath=yes
14805 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14806 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14807 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14810 # MinGW DLLs use traditional 'lib' prefix
14811 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14812 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14813 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14814 # It is most probably a Windows format PATH printed by
14815 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14816 # path with ; separators, and with drive letters. We can handle the
14817 # drive letters (cygwin fileutils understands them), so leave them,
14818 # especially as we might pass files found there to a mingw objdump,
14819 # which wouldn't understand a cygwinified path. Ahh.
14820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14826 # pw32 DLLs use 'pw' prefix rather than 'lib'
14827 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14833 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14836 dynamic_linker='Win32 ld.exe'
14837 # FIXME: first we should search . and the directory the executable is in
14841 darwin* | rhapsody*)
14842 dynamic_linker="$host_os dyld"
14843 version_type=darwin
14846 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14847 soname_spec='${libname}${release}${major}$shared_ext'
14848 shlibpath_overrides_runpath=yes
14849 shlibpath_var=DYLD_LIBRARY_PATH
14850 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14851 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14852 if test "$GCC" = yes; then
14853 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"`
14855 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 shlibpath_var=LD_LIBRARY_PATH
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14878 soname_spec='${libname}${release}${shared_ext}$major'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 shlibpath_overrides_runpath=no
14881 hardcode_into_libs=yes
14882 dynamic_linker='GNU ld.so'
14886 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14887 version_type=freebsd-$objformat
14888 case $version_type in
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14899 shlibpath_var=LD_LIBRARY_PATH
14902 shlibpath_overrides_runpath=yes
14904 freebsd3.01* | freebsdelf3.01*)
14905 shlibpath_overrides_runpath=yes
14906 hardcode_into_libs=yes
14909 shlibpath_overrides_runpath=no
14910 hardcode_into_libs=yes
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 hardcode_into_libs=yes
14925 hpux9* | hpux10* | hpux11*)
14926 # Give a soname corresponding to the major version so that dld.sl refuses to
14927 # link against other versions.
14931 case "$host_cpu" in
14934 hardcode_into_libs=yes
14935 dynamic_linker="$host_os dld.so"
14936 shlibpath_var=LD_LIBRARY_PATH
14937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 if test "X$HPUX_IA64_MODE" = X32; then
14941 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14943 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14949 hardcode_into_libs=yes
14950 dynamic_linker="$host_os dld.sl"
14951 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14960 dynamic_linker="$host_os dld.sl"
14961 shlibpath_var=SHLIB_PATH
14962 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14967 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14968 postinstall_cmds='chmod 555 $lib'
14971 irix5* | irix6* | nonstopux*)
14973 nonstopux*) version_type=nonstopux ;;
14975 if test "$lt_cv_prog_gnu_ld" = yes; then
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14986 irix5* | nonstopux*)
14987 libsuff= shlibsuff=
14990 case $LD in # libtool.m4 will add one of these switches to LD
14991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14992 libsuff= shlibsuff= libmagic=32-bit;;
14993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14994 libsuff=32 shlibsuff=N32 libmagic=N32;;
14995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14996 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14997 *) libsuff= shlibsuff= libmagic=never-match;;
15001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15002 shlibpath_overrides_runpath=no
15003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15005 hardcode_into_libs=yes
15008 # No shared lib support for Linux oldld, aout, or coff.
15009 linux*oldld* | linux*aout* | linux*coff*)
15013 # This must be Linux ELF.
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15021 shlibpath_var=LD_LIBRARY_PATH
15022 shlibpath_overrides_runpath=no
15023 # This implies no fast_install, which is unacceptable.
15024 # Some rework will be needed to allow for fast_install
15025 # before this can be enabled.
15026 hardcode_into_libs=yes
15028 # Append ld.so.conf contents to the search path
15029 if test -f /etc/ld.so.conf; then
15030 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15034 # We used to test for /lib/ld.so.1 and disable shared libraries on
15035 # powerpc, because MkLinux only supported shared libraries with the
15036 # GNU dynamic linker. Since this was broken with cross compilers,
15037 # most powerpc-linux boxes support dynamic linking these days and
15038 # people can always --disable-shared, the test was removed, and we
15039 # assume the GNU/Linux dynamic linker is in use.
15040 dynamic_linker='GNU/Linux ld.so'
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15048 soname_spec='${libname}${release}${shared_ext}$major'
15049 shlibpath_var=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath=no
15051 hardcode_into_libs=yes
15052 dynamic_linker='NetBSD ld.elf_so'
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15060 soname_spec='${libname}${release}${shared_ext}$major'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 shlibpath_overrides_runpath=no
15063 hardcode_into_libs=yes
15064 dynamic_linker='GNU ld.so'
15071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15074 dynamic_linker='NetBSD (a.out) ld.so'
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15077 soname_spec='${libname}${release}${shared_ext}$major'
15078 dynamic_linker='NetBSD ld.elf_so'
15080 shlibpath_var=LD_LIBRARY_PATH
15081 shlibpath_overrides_runpath=yes
15082 hardcode_into_libs=yes
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088 shlibpath_var=LD_LIBRARY_PATH
15089 shlibpath_overrides_runpath=yes
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 shlibpath_var=LD_LIBRARY_PATH
15099 shlibpath_overrides_runpath=yes
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15111 openbsd2.[89] | openbsd2.[89].*)
15112 shlibpath_overrides_runpath=no
15115 shlibpath_overrides_runpath=yes
15119 shlibpath_overrides_runpath=yes
15124 libname_spec='$name'
15127 library_names_spec='$libname${shared_ext} $libname.a'
15128 dynamic_linker='OS/2 ld.exe'
15129 shlibpath_var=LIBPATH
15132 osf3* | osf4* | osf5*)
15136 soname_spec='${libname}${release}${shared_ext}$major'
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138 shlibpath_var=LD_LIBRARY_PATH
15139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15145 soname_spec='${libname}${release}${shared_ext}$major'
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 shlibpath_var=LD_LIBRARY_PATH
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155 soname_spec='${libname}${release}${shared_ext}$major'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 shlibpath_overrides_runpath=yes
15158 hardcode_into_libs=yes
15159 # ldd complains unless libraries are executable
15160 postinstall_cmds='chmod +x $lib'
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15166 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15167 shlibpath_var=LD_LIBRARY_PATH
15168 shlibpath_overrides_runpath=yes
15169 if test "$with_gnu_ld" = yes; then
15175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 shlibpath_var=LD_LIBRARY_PATH
15180 case $host_vendor in
15182 shlibpath_overrides_runpath=no
15184 export_dynamic_flag_spec='${wl}-Blargedynsym'
15185 runpath_var=LD_RUN_PATH
15193 shlibpath_overrides_runpath=no
15194 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15200 if test -d /usr/nec ;then
15202 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15203 soname_spec='$libname${shared_ext}.$major'
15204 shlibpath_var=LD_LIBRARY_PATH
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 shlibpath_var=LD_LIBRARY_PATH
15219 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15220 echo "${ECHO_T}$dynamic_linker" >&6
15221 test "$dynamic_linker" = no && can_build_shared=no
15223 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15224 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15225 hardcode_action_F77=
15226 if test -n "$hardcode_libdir_flag_spec_F77" || \
15227 test -n "$runpath_var F77" || \
15228 test "X$hardcode_automatic_F77"="Xyes" ; then
15230 # We can hardcode non-existant directories.
15231 if test "$hardcode_direct_F77" != no &&
15232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15233 # have to relink, otherwise we might link with an installed library
15234 # when we should be linking with a yet-to-be-installed one
15235 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15236 test "$hardcode_minus_L_F77" != no; then
15237 # Linking always hardcodes the temporary library directory.
15238 hardcode_action_F77=relink
15240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15241 hardcode_action_F77=immediate
15244 # We cannot hardcode anything, or else we can only hardcode existing
15246 hardcode_action_F77=unsupported
15248 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15249 echo "${ECHO_T}$hardcode_action_F77" >&6
15251 if test "$hardcode_action_F77" = relink; then
15252 # Fast installation is not supported
15253 enable_fast_install=no
15254 elif test "$shlibpath_overrides_runpath" = yes ||
15255 test "$enable_shared" = no; then
15256 # Fast installation is not necessary
15257 enable_fast_install=needless
15262 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15263 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15264 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15265 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15266 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15267 echo "$as_me:$LINENO: result: yes" >&5
15268 echo "${ECHO_T}yes" >&6
15270 # FIXME - insert some real tests, host_os isn't really good enough
15273 if test -n "$STRIP" ; then
15274 striplib="$STRIP -x"
15275 echo "$as_me:$LINENO: result: yes" >&5
15276 echo "${ECHO_T}yes" >&6
15278 echo "$as_me:$LINENO: result: no" >&5
15279 echo "${ECHO_T}no" >&6
15283 echo "$as_me:$LINENO: result: no" >&5
15284 echo "${ECHO_T}no" >&6
15291 # The else clause should only fire when bootstrapping the
15292 # libtool distribution, otherwise you forgot to ship ltmain.sh
15293 # with your package, and you will get complaints that there are
15294 # no rules to generate ltmain.sh.
15295 if test -f "$ltmain"; then
15296 # See if we are running on zsh, and set the options which allow our commands through
15297 # without removal of \ escapes.
15298 if test -n "${ZSH_VERSION+set}" ; then
15299 setopt NO_GLOB_SUBST
15301 # Now quote all the things that may contain metacharacters while being
15302 # careful not to overquote the AC_SUBSTed values. We take copies of the
15303 # variables and quote the copies for generation of the libtool script.
15304 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15306 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15307 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15308 deplibs_check_method reload_flag reload_cmds need_locks \
15309 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15310 lt_cv_sys_global_symbol_to_c_name_address \
15311 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15312 old_postinstall_cmds old_postuninstall_cmds \
15316 lt_prog_compiler_wl_F77 \
15317 lt_prog_compiler_pic_F77 \
15318 lt_prog_compiler_static_F77 \
15319 lt_prog_compiler_no_builtin_flag_F77 \
15320 export_dynamic_flag_spec_F77 \
15321 thread_safe_flag_spec_F77 \
15322 whole_archive_flag_spec_F77 \
15323 enable_shared_with_static_runtimes_F77 \
15324 old_archive_cmds_F77 \
15325 old_archive_from_new_cmds_F77 \
15326 predep_objects_F77 \
15327 postdep_objects_F77 \
15330 compiler_lib_search_path_F77 \
15332 archive_expsym_cmds_F77 \
15333 postinstall_cmds_F77 \
15334 postuninstall_cmds_F77 \
15335 old_archive_from_expsyms_cmds_F77 \
15336 allow_undefined_flag_F77 \
15337 no_undefined_flag_F77 \
15338 export_symbols_cmds_F77 \
15339 hardcode_libdir_flag_spec_F77 \
15340 hardcode_libdir_flag_spec_ld_F77 \
15341 hardcode_libdir_separator_F77 \
15342 hardcode_automatic_F77 \
15344 module_expsym_cmds_F77 \
15345 lt_cv_prog_compiler_c_o_F77 \
15346 exclude_expsyms_F77 \
15347 include_expsyms_F77; do
15350 old_archive_cmds_F77 | \
15351 old_archive_from_new_cmds_F77 | \
15352 archive_cmds_F77 | \
15353 archive_expsym_cmds_F77 | \
15354 module_cmds_F77 | \
15355 module_expsym_cmds_F77 | \
15356 old_archive_from_expsyms_cmds_F77 | \
15357 export_symbols_cmds_F77 | \
15358 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15359 postinstall_cmds | postuninstall_cmds | \
15360 old_postinstall_cmds | old_postuninstall_cmds | \
15361 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15362 # Double-quote double-evaled strings.
15363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15372 *'\$0 --fallback-echo"')
15373 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15379 cat <<__EOF__ >> "$cfgfile"
15380 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15382 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15384 # Shell to use when invoking shell scripts.
15387 # Whether or not to build shared libraries.
15388 build_libtool_libs=$enable_shared
15390 # Whether or not to build static libraries.
15391 build_old_libs=$enable_static
15393 # Whether or not to add -lc for building shared libraries.
15394 build_libtool_need_lc=$archive_cmds_need_lc_F77
15396 # Whether or not to disallow shared libs when runtime libs are static
15397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15399 # Whether or not to optimize for fast installation.
15400 fast_install=$enable_fast_install
15403 host_alias=$host_alias
15406 # An echo program that does not interpret backslashes.
15411 AR_FLAGS=$lt_AR_FLAGS
15416 # A language-specific compiler.
15417 CC=$lt_compiler_F77
15419 # Is the compiler the GNU C compiler?
15425 # The linker used to build libraries.
15428 # Whether we need hard or soft links.
15431 # A BSD-compatible nm program.
15434 # A symbol stripping program
15437 # Used to examine libraries when file_magic_cmd begins "file"
15438 MAGIC_CMD=$MAGIC_CMD
15440 # Used on cygwin: DLL creation program.
15443 # Used on cygwin: object dumper.
15446 # Used on cygwin: assembler.
15449 # The name of the directory that contains temporary libtool files.
15452 # How to create reloadable object files.
15453 reload_flag=$lt_reload_flag
15454 reload_cmds=$lt_reload_cmds
15456 # How to pass a linker flag through the compiler.
15457 wl=$lt_lt_prog_compiler_wl_F77
15459 # Object file suffix (normally "o").
15460 objext="$ac_objext"
15462 # Old archive suffix (normally "a").
15465 # Shared library suffix (normally ".so").
15466 shrext_cmds='$shrext_cmds'
15468 # Executable file suffix (normally "").
15471 # Additional compiler flags for building library objects.
15472 pic_flag=$lt_lt_prog_compiler_pic_F77
15475 # What is the maximum length of a command?
15476 max_cmd_len=$lt_cv_sys_max_cmd_len
15478 # Does compiler simultaneously support -c and -o options?
15479 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15481 # Must we lock files when doing compilation ?
15482 need_locks=$lt_need_locks
15484 # Do we need the lib prefix for modules?
15485 need_lib_prefix=$need_lib_prefix
15487 # Do we need a version for libraries?
15488 need_version=$need_version
15490 # Whether dlopen is supported.
15491 dlopen_support=$enable_dlopen
15493 # Whether dlopen of programs is supported.
15494 dlopen_self=$enable_dlopen_self
15496 # Whether dlopen of statically linked programs is supported.
15497 dlopen_self_static=$enable_dlopen_self_static
15499 # Compiler flag to prevent dynamic linking.
15500 link_static_flag=$lt_lt_prog_compiler_static_F77
15502 # Compiler flag to turn off builtin functions.
15503 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15505 # Compiler flag to allow reflexive dlopens.
15506 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15508 # Compiler flag to generate shared objects directly from archives.
15509 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15511 # Compiler flag to generate thread-safe objects.
15512 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15514 # Library versioning type.
15515 version_type=$version_type
15517 # Format of library name prefix.
15518 libname_spec=$lt_libname_spec
15520 # List of archive names. First name is the real one, the rest are links.
15521 # The last name is the one that the linker finds with -lNAME.
15522 library_names_spec=$lt_library_names_spec
15524 # The coded name of the library, if different from the real name.
15525 soname_spec=$lt_soname_spec
15527 # Commands used to build and install an old-style archive.
15529 old_archive_cmds=$lt_old_archive_cmds_F77
15530 old_postinstall_cmds=$lt_old_postinstall_cmds
15531 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15533 # Create an old-style archive from a shared archive.
15534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15536 # Create a temporary old-style archive to link instead of a shared archive.
15537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15539 # Commands used to build and install a shared archive.
15540 archive_cmds=$lt_archive_cmds_F77
15541 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15542 postinstall_cmds=$lt_postinstall_cmds
15543 postuninstall_cmds=$lt_postuninstall_cmds
15545 # Commands used to build a loadable module (assumed same as above if empty)
15546 module_cmds=$lt_module_cmds_F77
15547 module_expsym_cmds=$lt_module_expsym_cmds_F77
15549 # Commands to strip libraries.
15550 old_striplib=$lt_old_striplib
15551 striplib=$lt_striplib
15553 # Dependencies to place before the objects being linked to create a
15555 predep_objects=$lt_predep_objects_F77
15557 # Dependencies to place after the objects being linked to create a
15559 postdep_objects=$lt_postdep_objects_F77
15561 # Dependencies to place before the objects being linked to create a
15563 predeps=$lt_predeps_F77
15565 # Dependencies to place after the objects being linked to create a
15567 postdeps=$lt_postdeps_F77
15569 # The library search path used internally by the compiler when linking
15570 # a shared library.
15571 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15573 # Method to check whether dependent libraries are shared objects.
15574 deplibs_check_method=$lt_deplibs_check_method
15576 # Command to use when deplibs_check_method == file_magic.
15577 file_magic_cmd=$lt_file_magic_cmd
15579 # Flag that allows shared libraries with undefined symbols to be built.
15580 allow_undefined_flag=$lt_allow_undefined_flag_F77
15582 # Flag that forces no undefined symbols.
15583 no_undefined_flag=$lt_no_undefined_flag_F77
15585 # Commands used to finish a libtool library installation in a directory.
15586 finish_cmds=$lt_finish_cmds
15588 # Same as above, but a single script fragment to be evaled but not shown.
15589 finish_eval=$lt_finish_eval
15591 # Take the output of nm and produce a listing of raw symbols and C names.
15592 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15594 # Transform the output of nm in a proper C declaration
15595 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15597 # Transform the output of nm in a C name address pair
15598 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15600 # This is the shared library runtime path variable.
15601 runpath_var=$runpath_var
15603 # This is the shared library path variable.
15604 shlibpath_var=$shlibpath_var
15606 # Is shlibpath searched before the hard-coded library search path?
15607 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15609 # How to hardcode a shared library path into an executable.
15610 hardcode_action=$hardcode_action_F77
15612 # Whether we should hardcode library paths into libraries.
15613 hardcode_into_libs=$hardcode_into_libs
15615 # Flag to hardcode \$libdir into a binary during linking.
15616 # This must work even if \$libdir does not exist.
15617 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15619 # If ld is used when linking, flag to hardcode \$libdir into
15620 # a binary during linking. This must work even if \$libdir does
15622 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15624 # Whether we need a single -rpath flag with a separated argument.
15625 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15627 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15628 # resulting binary.
15629 hardcode_direct=$hardcode_direct_F77
15631 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15632 # resulting binary.
15633 hardcode_minus_L=$hardcode_minus_L_F77
15635 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15636 # the resulting binary.
15637 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15639 # Set to yes if building a shared library automatically hardcodes DIR into the library
15640 # and all subsequent libraries and executables linked against it.
15641 hardcode_automatic=$hardcode_automatic_F77
15643 # Variables whose values should be saved in libtool wrapper scripts and
15644 # restored at relink time.
15645 variables_saved_for_relink="$variables_saved_for_relink"
15647 # Whether libtool must link a program against all its dependency libraries.
15648 link_all_deplibs=$link_all_deplibs_F77
15650 # Compile-time system search path for libraries
15651 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15653 # Run-time system search path for libraries
15654 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15656 # Fix the shell variable \$srcfile for the compiler.
15657 fix_srcfile_path="$fix_srcfile_path_F77"
15659 # Set to yes if exported symbols are required.
15660 always_export_symbols=$always_export_symbols_F77
15662 # The commands to list exported symbols.
15663 export_symbols_cmds=$lt_export_symbols_cmds_F77
15665 # The commands to extract the exported symbol list from a shared archive.
15666 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15668 # Symbols that should not be listed in the preloaded symbols.
15669 exclude_expsyms=$lt_exclude_expsyms_F77
15671 # Symbols that must always be exported.
15672 include_expsyms=$lt_include_expsyms_F77
15674 # ### END LIBTOOL TAG CONFIG: $tagname
15680 # If there is no Makefile yet, we rely on a make rule to execute
15681 # `config.status --recheck' to rerun these tests and create the
15682 # libtool script then.
15683 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15684 if test -f "$ltmain_in"; then
15685 test -f Makefile && make "$ltmain"
15691 ac_cpp='$CPP $CPPFLAGS'
15692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15704 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15708 # Source file extension for Java test sources.
15711 # Object file extension for compiled Java test sources.
15715 # Code to be used in simple compile tests
15716 lt_simple_compile_test_code="class foo {}\n"
15718 # Code to be used in simple link tests
15719 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15721 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15723 # If no C compiler was specified, use CC.
15726 # Allow CC to be a program name with arguments.
15730 # Allow CC to be a program name with arguments.
15736 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15737 archive_cmds_need_lc_GCJ=no
15740 lt_prog_compiler_no_builtin_flag_GCJ=
15742 if test "$GCC" = yes; then
15743 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15746 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15747 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15748 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 lt_cv_prog_compiler_rtti_exceptions=no
15752 ac_outfile=conftest.$ac_objext
15753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15754 lt_compiler_flag="-fno-rtti -fno-exceptions"
15755 # Insert the option either (1) after the last *FLAGS variable, or
15756 # (2) before a word containing "conftest.", or (3) at the end.
15757 # Note that $ac_compile itself does not contain backslashes and begins
15758 # with a dollar sign (not a hyphen), so the echo should work correctly.
15759 # The option is referenced via a variable to avoid confusing sed.
15760 lt_compile=`echo "$ac_compile" | $SED \
15761 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15763 -e 's:$: $lt_compiler_flag:'`
15764 (eval echo "\"\$as_me:15764: $lt_compile\"" >&5)
15765 (eval "$lt_compile" 2>conftest.err)
15767 cat conftest.err >&5
15768 echo "$as_me:15768: \$? = $ac_status" >&5
15769 if (exit $ac_status) && test -s "$ac_outfile"; then
15770 # The compiler can only warn and ignore the option if not recognized
15771 # So say no if there are warnings
15772 if test ! -s conftest.err; then
15773 lt_cv_prog_compiler_rtti_exceptions=yes
15779 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15780 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15782 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15783 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15790 lt_prog_compiler_wl_GCJ=
15791 lt_prog_compiler_pic_GCJ=
15792 lt_prog_compiler_static_GCJ=
15794 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15795 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15797 if test "$GCC" = yes; then
15798 lt_prog_compiler_wl_GCJ='-Wl,'
15799 lt_prog_compiler_static_GCJ='-static'
15803 # All AIX code is PIC.
15804 if test "$host_cpu" = ia64; then
15805 # AIX 5 now supports IA64 processor
15806 lt_prog_compiler_static_GCJ='-Bstatic'
15811 # FIXME: we need at least 68020 code to build shared libraries, but
15812 # adding the `-m68020' flag to GCC prevents building anything better,
15814 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15817 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15818 # PIC is the default for these OSes.
15821 mingw* | pw32* | os2*)
15822 # This hack is so that the source file can tell whether it is being
15823 # built for inclusion in a dll (and should export symbols for example).
15824 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15827 darwin* | rhapsody*)
15828 # PIC is the default on this platform
15829 # Common symbols not allowed in MH_DYLIB files
15830 lt_prog_compiler_pic_GCJ='-fno-common'
15834 # Just because we use GCC doesn't mean we suddenly get shared libraries
15835 # on systems that don't support them.
15836 lt_prog_compiler_can_build_shared_GCJ=no
15841 if test -d /usr/nec; then
15842 lt_prog_compiler_pic_GCJ=-Kconform_pic
15847 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15848 # not for PA HP-UX.
15849 case "$host_cpu" in
15854 lt_prog_compiler_pic_GCJ='-fPIC'
15860 lt_prog_compiler_pic_GCJ='-fPIC'
15864 # PORTME Check for flag to pass linker flags through the system compiler.
15867 lt_prog_compiler_wl_GCJ='-Wl,'
15868 if test "$host_cpu" = ia64; then
15869 # AIX 5 now supports IA64 processor
15870 lt_prog_compiler_static_GCJ='-Bstatic'
15872 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15876 mingw* | pw32* | os2*)
15877 # This hack is so that the source file can tell whether it is being
15878 # built for inclusion in a dll (and should export symbols for example).
15879 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15882 hpux9* | hpux10* | hpux11*)
15883 lt_prog_compiler_wl_GCJ='-Wl,'
15884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15885 # not for PA HP-UX.
15886 case "$host_cpu" in
15891 lt_prog_compiler_pic_GCJ='+Z'
15894 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15895 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15898 irix5* | irix6* | nonstopux*)
15899 lt_prog_compiler_wl_GCJ='-Wl,'
15900 # PIC (with -KPIC) is the default.
15901 lt_prog_compiler_static_GCJ='-non_shared'
15905 lt_prog_compiler_pic_GCJ='-KPIC'
15906 lt_prog_compiler_static_GCJ='-Bstatic'
15912 lt_prog_compiler_wl_GCJ='-Wl,'
15913 lt_prog_compiler_pic_GCJ='-KPIC'
15914 lt_prog_compiler_static_GCJ='-static'
15917 lt_prog_compiler_wl_GCJ='-Wl,'
15918 # All Alpha code is PIC.
15919 lt_prog_compiler_static_GCJ='-non_shared'
15924 osf3* | osf4* | osf5*)
15925 lt_prog_compiler_wl_GCJ='-Wl,'
15926 # All OSF/1 code is PIC.
15927 lt_prog_compiler_static_GCJ='-non_shared'
15931 lt_prog_compiler_pic_GCJ='-Kpic'
15932 lt_prog_compiler_static_GCJ='-dn'
15936 lt_prog_compiler_wl_GCJ='-Wl,'
15937 lt_prog_compiler_pic_GCJ='-KPIC'
15938 lt_prog_compiler_static_GCJ='-Bstatic'
15942 lt_prog_compiler_wl_GCJ='-Qoption ld '
15943 lt_prog_compiler_pic_GCJ='-PIC'
15944 lt_prog_compiler_static_GCJ='-Bstatic'
15947 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15948 lt_prog_compiler_wl_GCJ='-Wl,'
15949 lt_prog_compiler_pic_GCJ='-KPIC'
15950 lt_prog_compiler_static_GCJ='-Bstatic'
15954 if test -d /usr/nec ;then
15955 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15956 lt_prog_compiler_static_GCJ='-Bstatic'
15961 lt_prog_compiler_pic_GCJ='-pic'
15962 lt_prog_compiler_static_GCJ='-Bstatic'
15966 lt_prog_compiler_can_build_shared_GCJ=no
15971 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15972 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15975 # Check to make sure the PIC flag actually works.
15977 if test -n "$lt_prog_compiler_pic_GCJ"; then
15979 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15980 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15981 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15984 lt_prog_compiler_pic_works_GCJ=no
15985 ac_outfile=conftest.$ac_objext
15986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15987 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15988 # Insert the option either (1) after the last *FLAGS variable, or
15989 # (2) before a word containing "conftest.", or (3) at the end.
15990 # Note that $ac_compile itself does not contain backslashes and begins
15991 # with a dollar sign (not a hyphen), so the echo should work correctly.
15992 # The option is referenced via a variable to avoid confusing sed.
15993 lt_compile=`echo "$ac_compile" | $SED \
15994 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15996 -e 's:$: $lt_compiler_flag:'`
15997 (eval echo "\"\$as_me:15997: $lt_compile\"" >&5)
15998 (eval "$lt_compile" 2>conftest.err)
16000 cat conftest.err >&5
16001 echo "$as_me:16001: \$? = $ac_status" >&5
16002 if (exit $ac_status) && test -s "$ac_outfile"; then
16003 # The compiler can only warn and ignore the option if not recognized
16004 # So say no if there are warnings
16005 if test ! -s conftest.err; then
16006 lt_prog_compiler_pic_works_GCJ=yes
16012 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16013 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16015 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16016 case $lt_prog_compiler_pic_GCJ in
16018 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16021 lt_prog_compiler_pic_GCJ=
16022 lt_prog_compiler_can_build_shared_GCJ=no
16027 # For platforms which do not support PIC, -DPIC is meaningless:
16029 lt_prog_compiler_pic_GCJ=
16032 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16036 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16037 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16038 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 lt_cv_prog_compiler_c_o_GCJ=no
16042 $rm -r conftest 2>/dev/null
16046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16048 lt_compiler_flag="-o out/conftest2.$ac_objext"
16049 # Insert the option either (1) after the last *FLAGS variable, or
16050 # (2) before a word containing "conftest.", or (3) at the end.
16051 # Note that $ac_compile itself does not contain backslashes and begins
16052 # with a dollar sign (not a hyphen), so the echo should work correctly.
16053 lt_compile=`echo "$ac_compile" | $SED \
16054 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16056 -e 's:$: $lt_compiler_flag:'`
16057 (eval echo "\"\$as_me:16057: $lt_compile\"" >&5)
16058 (eval "$lt_compile" 2>out/conftest.err)
16060 cat out/conftest.err >&5
16061 echo "$as_me:16061: \$? = $ac_status" >&5
16062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16064 # The compiler can only warn and ignore the option if not recognized
16065 # So say no if there are warnings
16066 if test ! -s out/conftest.err; then
16067 lt_cv_prog_compiler_c_o_GCJ=yes
16072 # SGI C++ compiler will create directory out/ii_files/ for
16073 # template instantiation
16074 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16075 $rm out/* && rmdir out
16081 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16082 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16085 hard_links="nottested"
16086 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16087 # do not overwrite the value of need_locks provided by the user
16088 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16089 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16094 ln conftest.a conftest.b 2>&5 || hard_links=no
16095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16096 echo "$as_me:$LINENO: result: $hard_links" >&5
16097 echo "${ECHO_T}$hard_links" >&6
16098 if test "$hard_links" = no; then
16099 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16100 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16107 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16108 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16111 allow_undefined_flag_GCJ=
16112 enable_shared_with_static_runtimes_GCJ=no
16114 archive_expsym_cmds_GCJ=
16115 old_archive_From_new_cmds_GCJ=
16116 old_archive_from_expsyms_cmds_GCJ=
16117 export_dynamic_flag_spec_GCJ=
16118 whole_archive_flag_spec_GCJ=
16119 thread_safe_flag_spec_GCJ=
16120 hardcode_libdir_flag_spec_GCJ=
16121 hardcode_libdir_flag_spec_ld_GCJ=
16122 hardcode_libdir_separator_GCJ=
16123 hardcode_direct_GCJ=no
16124 hardcode_minus_L_GCJ=no
16125 hardcode_shlibpath_var_GCJ=unsupported
16126 link_all_deplibs_GCJ=unknown
16127 hardcode_automatic_GCJ=no
16129 module_expsym_cmds_GCJ=
16130 always_export_symbols_GCJ=no
16131 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16132 # include_expsyms should be a list of space-separated symbols to be *always*
16133 # included in the symbol list
16134 include_expsyms_GCJ=
16135 # exclude_expsyms can be an extended regexp of symbols to exclude
16136 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16137 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16138 # as well as any symbol that contains `d'.
16139 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16141 # platforms (ab)use it in PIC code, but their linkers get confused if
16142 # the symbol is explicitly referenced. Since portable code cannot
16143 # rely on this symbol name, it's probably fine to never include it in
16144 # preloaded symbol tables.
16145 extract_expsyms_cmds=
16148 cygwin* | mingw* | pw32*)
16149 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16150 # When not using gcc, we currently assume that we are using
16151 # Microsoft Visual C++.
16152 if test "$GCC" != yes; then
16162 if test "$with_gnu_ld" = yes; then
16163 # If archive_cmds runs LD, not CC, wlarc should be empty
16166 # See if GNU ld supports shared libraries.
16168 aix3* | aix4* | aix5*)
16169 # On AIX/PPC, the GNU linker is very broken
16170 if test "$host_cpu" != ia64; then
16174 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16175 *** to be unable to reliably create shared libraries on AIX.
16176 *** Therefore, libtool is disabling shared libraries support. If you
16177 *** really care for shared libraries, you may want to modify your PATH
16178 *** so that a non-GNU linker is found, and then restart.
16185 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)'
16186 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16187 hardcode_minus_L_GCJ=yes
16189 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16190 # that the semantics of dynamic libraries on AmigaOS, at least up
16191 # to version 4, is to share data among multiple programs linked
16192 # with the same dynamic library. Since this doesn't match the
16193 # behavior of shared libraries on other platforms, we can't use
16199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16200 allow_undefined_flag_GCJ=unsupported
16201 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16202 # support --undefined. This deserves some investigation. FIXME
16203 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16209 cygwin* | mingw* | pw32*)
16210 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16211 # as there is no search path for DLLs.
16212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16213 allow_undefined_flag_GCJ=unsupported
16214 always_export_symbols_GCJ=no
16215 enable_shared_with_static_runtimes_GCJ=yes
16216 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16218 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16219 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16220 # If the export-symbols file already is a .def file (1st line
16221 # is EXPORTS), use it as is; otherwise, prepend...
16222 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16223 cp $export_symbols $output_objdir/$soname.def;
16225 echo EXPORTS > $output_objdir/$soname.def;
16226 cat $export_symbols >> $output_objdir/$soname.def;
16228 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16234 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16236 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16239 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16240 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16245 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16250 *** create shared libraries on Solaris systems. Therefore, libtool
16251 *** is disabling shared libraries support. We urge you to upgrade GNU
16252 *** binutils to release 2.9.1 or newer. Another option is to modify
16253 *** your PATH or compiler configuration so that the native linker is
16254 *** used, and then restart.
16257 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16258 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16259 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16266 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16268 hardcode_direct_GCJ=yes
16269 hardcode_shlibpath_var_GCJ=no
16273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16274 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16275 archive_cmds_GCJ="$tmp_archive_cmds"
16276 supports_anon_versioning=no
16277 case `$LD -v 2>/dev/null` in
16278 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16279 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16280 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16281 *\ 2.11.*) ;; # other 2.11 versions
16282 *) supports_anon_versioning=yes ;;
16284 if test $supports_anon_versioning = yes; then
16285 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16287 $echo "local: *; };" >> $output_objdir/$libname.ver~
16288 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16290 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16292 link_all_deplibs_GCJ=no
16299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16300 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16301 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16308 if test "$ld_shlibs_GCJ" = yes; then
16309 runpath_var=LD_RUN_PATH
16310 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16311 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16312 # ancient GNU ld didn't support --whole-archive et. al.
16313 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16314 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16316 whole_archive_flag_spec_GCJ=
16320 # PORTME fill in a description of your system's linker (not GNU ld)
16323 allow_undefined_flag_GCJ=unsupported
16324 always_export_symbols_GCJ=yes
16325 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'
16326 # Note: this linker hardcodes the directories in LIBPATH if there
16327 # are no directories specified by -L.
16328 hardcode_minus_L_GCJ=yes
16329 if test "$GCC" = yes && test -z "$link_static_flag"; then
16330 # Neither direct hardcoding nor static linking is supported with a
16332 hardcode_direct_GCJ=unsupported
16337 if test "$host_cpu" = ia64; then
16338 # On IA64, the linker does run time linking by default, so we don't
16339 # have to do anything special.
16340 aix_use_runtimelinking=no
16341 exp_sym_flag='-Bexport'
16344 # If we're using GNU nm, then we don't want the "-C" option.
16345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16346 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16347 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'
16349 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'
16351 aix_use_runtimelinking=no
16353 # Test if we are trying to use run time linking or normal
16354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16355 # need to do runtime linking.
16356 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16357 for ld_flag in $LDFLAGS; do
16358 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16359 aix_use_runtimelinking=yes
16365 exp_sym_flag='-bexport'
16366 no_entry_flag='-bnoentry'
16369 # When large executables or shared objects are built, AIX ld can
16370 # have problems creating the table of contents. If linking a library
16371 # or program results in "error TOC overflow" add -mminimal-toc to
16372 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16373 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16375 archive_cmds_GCJ=''
16376 hardcode_direct_GCJ=yes
16377 hardcode_libdir_separator_GCJ=':'
16378 link_all_deplibs_GCJ=yes
16380 if test "$GCC" = yes; then
16381 case $host_os in aix4.012|aix4.012.*)
16382 # We only want to do this on AIX 4.2 and lower, the check
16383 # below for broken collect2 doesn't work under 4.3+
16384 collect2name=`${CC} -print-prog-name=collect2`
16385 if test -f "$collect2name" && \
16386 strings "$collect2name" | grep resolve_lib_name >/dev/null
16388 # We have reworked collect2
16389 hardcode_direct_GCJ=yes
16391 # We have old collect2
16392 hardcode_direct_GCJ=unsupported
16393 # It fails to find uninstalled libraries when the uninstalled
16394 # path is not listed in the libpath. Setting hardcode_minus_L
16395 # to unsupported forces relinking
16396 hardcode_minus_L_GCJ=yes
16397 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16398 hardcode_libdir_separator_GCJ=
16401 shared_flag='-shared'
16404 if test "$host_cpu" = ia64; then
16405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16406 # chokes on -Wl,-G. The following line is correct:
16409 if test "$aix_use_runtimelinking" = yes; then
16410 shared_flag='${wl}-G'
16412 shared_flag='${wl}-bM:SRE'
16417 # It seems that -bexpall does not export symbols beginning with
16418 # underscore (_), so it is better to generate a list of symbols to export.
16419 always_export_symbols_GCJ=yes
16420 if test "$aix_use_runtimelinking" = yes; then
16421 # Warning - without using the other runtime loading flags (-brtl),
16422 # -berok will link without error, but may produce a broken library.
16423 allow_undefined_flag_GCJ='-berok'
16424 # Determine the default libpath from the value encoded in an empty executable.
16425 cat >conftest.$ac_ext <<_ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16442 (eval $ac_link) 2>conftest.er1
16444 grep -v '^ *+' conftest.er1 >conftest.err
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } &&
16449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest$ac_exeext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16464 # Check for a 64-bit object if we didn't find anything.
16465 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; }
16468 echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16472 rm -f conftest.err conftest.$ac_objext \
16473 conftest$ac_exeext conftest.$ac_ext
16474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16476 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16477 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16479 if test "$host_cpu" = ia64; then
16480 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16481 allow_undefined_flag_GCJ="-z nodefs"
16482 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16484 # Determine the default libpath from the value encoded in an empty executable.
16485 cat >conftest.$ac_ext <<_ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16502 (eval $ac_link) 2>conftest.er1
16504 grep -v '^ *+' conftest.er1 >conftest.err
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest$ac_exeext'
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16524 # Check for a 64-bit object if we didn't find anything.
16525 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; }
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16532 rm -f conftest.err conftest.$ac_objext \
16533 conftest$ac_exeext conftest.$ac_ext
16534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16536 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16537 # Warning - without using the other run time loading flags,
16538 # -berok will link without error, but may produce a broken library.
16539 no_undefined_flag_GCJ=' ${wl}-bernotok'
16540 allow_undefined_flag_GCJ=' ${wl}-berok'
16541 # -bexpall does not export symbols beginning with underscore (_)
16542 always_export_symbols_GCJ=yes
16543 # Exported symbols can be pulled into shared objects from archives
16544 whole_archive_flag_spec_GCJ=' '
16545 archive_cmds_need_lc_GCJ=yes
16546 # This is similar to how AIX traditionally builds it's shared libraries.
16547 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16553 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)'
16554 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16555 hardcode_minus_L_GCJ=yes
16556 # see comment about different semantics on the GNU ld section
16561 export_dynamic_flag_spec_GCJ=-rdynamic
16564 cygwin* | mingw* | pw32*)
16565 # When not using gcc, we currently assume that we are using
16566 # Microsoft Visual C++.
16567 # hardcode_libdir_flag_spec is actually meaningless, as there is
16568 # no search path for DLLs.
16569 hardcode_libdir_flag_spec_GCJ=' '
16570 allow_undefined_flag_GCJ=unsupported
16571 # Tell ltmain to make .lib files, not .a files.
16573 # Tell ltmain to make .dll files, not .so files.
16575 # FIXME: Setting linknames here is a bad hack.
16576 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16577 # The linker will automatically build a .lib file if we build a DLL.
16578 old_archive_From_new_cmds_GCJ='true'
16579 # FIXME: Should let the user specify the lib program.
16580 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16581 fix_srcfile_path='`cygpath -w "$srcfile"`'
16582 enable_shared_with_static_runtimes_GCJ=yes
16585 darwin* | rhapsody*)
16586 if test "$GXX" = yes ; then
16587 archive_cmds_need_lc_GCJ=no
16589 rhapsody* | darwin1.[012])
16590 allow_undefined_flag_GCJ='-undefined suppress'
16593 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16594 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16596 case ${MACOSX_DEPLOYMENT_TARGET} in
16598 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16601 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16607 lt_int_apple_cc_single_mod=no
16608 output_verbose_link_cmd='echo'
16609 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16610 lt_int_apple_cc_single_mod=yes
16612 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16613 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16615 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16617 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16618 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16619 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16620 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16622 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16624 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}'
16625 hardcode_direct_GCJ=no
16626 hardcode_automatic_GCJ=yes
16627 hardcode_shlibpath_var_GCJ=unsupported
16628 whole_archive_flag_spec_GCJ='-all_load $convenience'
16629 link_all_deplibs_GCJ=yes
16636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16637 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16638 hardcode_shlibpath_var_GCJ=no
16645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16646 # support. Future versions do this automatically, but an explicit c++rt0.o
16647 # does not break anything, and helps significantly (at the cost of a little
16650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16651 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16652 hardcode_direct_GCJ=yes
16653 hardcode_shlibpath_var_GCJ=no
16656 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16658 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16659 hardcode_direct_GCJ=yes
16660 hardcode_minus_L_GCJ=yes
16661 hardcode_shlibpath_var_GCJ=no
16664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16665 freebsd* | kfreebsd*-gnu)
16666 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16667 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16668 hardcode_direct_GCJ=yes
16669 hardcode_shlibpath_var_GCJ=no
16673 if test "$GCC" = yes; then
16674 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'
16676 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'
16678 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16679 hardcode_libdir_separator_GCJ=:
16680 hardcode_direct_GCJ=yes
16682 # hardcode_minus_L: Not really in the search PATH,
16683 # but as the default location of the library.
16684 hardcode_minus_L_GCJ=yes
16685 export_dynamic_flag_spec_GCJ='${wl}-E'
16689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16690 case "$host_cpu" in
16692 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16695 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16699 case "$host_cpu" in
16701 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16704 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16708 if test "$with_gnu_ld" = no; then
16709 case "$host_cpu" in
16711 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16712 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16713 hardcode_libdir_separator_GCJ=:
16714 hardcode_direct_GCJ=no
16715 hardcode_shlibpath_var_GCJ=no
16718 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16719 hardcode_direct_GCJ=no
16720 hardcode_shlibpath_var_GCJ=no
16722 # hardcode_minus_L: Not really in the search PATH,
16723 # but as the default location of the library.
16724 hardcode_minus_L_GCJ=yes
16727 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16728 hardcode_libdir_separator_GCJ=:
16729 hardcode_direct_GCJ=yes
16730 export_dynamic_flag_spec_GCJ='${wl}-E'
16732 # hardcode_minus_L: Not really in the search PATH,
16733 # but as the default location of the library.
16734 hardcode_minus_L_GCJ=yes
16740 irix5* | irix6* | nonstopux*)
16741 if test "$GCC" = yes; then
16742 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'
16744 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'
16745 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16748 hardcode_libdir_separator_GCJ=:
16749 link_all_deplibs_GCJ=yes
16752 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16754 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16756 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16758 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16759 hardcode_direct_GCJ=yes
16760 hardcode_shlibpath_var_GCJ=no
16764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16765 hardcode_direct_GCJ=yes
16766 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16767 hardcode_libdir_separator_GCJ=:
16768 hardcode_shlibpath_var_GCJ=no
16772 hardcode_direct_GCJ=yes
16773 hardcode_shlibpath_var_GCJ=no
16774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16775 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16776 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16777 export_dynamic_flag_spec_GCJ='${wl}-E'
16780 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16781 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16782 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16785 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16786 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16793 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16794 hardcode_minus_L_GCJ=yes
16795 allow_undefined_flag_GCJ=unsupported
16796 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'
16797 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16801 if test "$GCC" = yes; then
16802 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16803 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'
16805 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16806 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'
16808 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16809 hardcode_libdir_separator_GCJ=:
16812 osf4* | osf5*) # as osf3* with the addition of -msym flag
16813 if test "$GCC" = yes; then
16814 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16815 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'
16816 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16818 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16819 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'
16820 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~
16821 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16823 # Both c and cxx compiler support -rpath directly
16824 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16826 hardcode_libdir_separator_GCJ=:
16830 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16831 hardcode_shlibpath_var_GCJ=no
16832 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16833 runpath_var=LD_RUN_PATH
16834 hardcode_runpath_var=yes
16838 no_undefined_flag_GCJ=' -z text'
16839 if test "$GCC" = yes; then
16840 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16841 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16842 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16844 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16845 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16848 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16849 hardcode_shlibpath_var_GCJ=no
16851 solaris2.[0-5] | solaris2.[0-5].*) ;;
16852 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16853 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16855 link_all_deplibs_GCJ=yes
16859 if test "x$host_vendor" = xsequent; then
16860 # Use $CC to link under sequent, because it throws in some extra .o
16861 # files that make .init and .fini sections work.
16862 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16864 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16866 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867 hardcode_direct_GCJ=yes
16868 hardcode_minus_L_GCJ=yes
16869 hardcode_shlibpath_var_GCJ=no
16873 case $host_vendor in
16875 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16876 hardcode_direct_GCJ=yes # is this really true???
16879 ## LD is ld it makes a PLAMLIB
16880 ## CC just makes a GrossModule.
16881 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16882 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16883 hardcode_direct_GCJ=no
16886 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16887 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16890 runpath_var='LD_RUN_PATH'
16891 hardcode_shlibpath_var_GCJ=no
16895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16896 hardcode_shlibpath_var_GCJ=no
16897 export_dynamic_flag_spec_GCJ='-Bexport'
16901 if test -d /usr/nec; then
16902 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16903 hardcode_shlibpath_var_GCJ=no
16904 runpath_var=LD_RUN_PATH
16905 hardcode_runpath_var=yes
16911 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16912 hardcode_direct_GCJ=yes
16913 hardcode_minus_L_GCJ=no
16914 hardcode_shlibpath_var_GCJ=no
16915 hardcode_runpath_var=yes
16916 runpath_var=LD_RUN_PATH
16919 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16920 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16921 if test "$GCC" = yes; then
16922 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16924 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16926 runpath_var='LD_RUN_PATH'
16927 hardcode_shlibpath_var_GCJ=no
16931 no_undefined_flag_GCJ=' -z text'
16932 # $CC -shared without GNU ld will not create a library from C++
16933 # object files and a static libstdc++, better avoid it by now
16934 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16935 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16937 hardcode_libdir_flag_spec_GCJ=
16938 hardcode_shlibpath_var_GCJ=no
16939 runpath_var='LD_RUN_PATH'
16943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16945 hardcode_shlibpath_var_GCJ=no
16954 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16955 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16956 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16959 if test "$GCC" = yes; then
16960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16964 # Do we need to explicitly link libc?
16966 case "x$archive_cmds_need_lc_GCJ" in
16968 # Assume -lc should be added
16969 archive_cmds_need_lc_GCJ=yes
16971 if test "$enable_shared" = yes && test "$GCC" = yes; then
16972 case $archive_cmds_GCJ in
16974 # FIXME: we may have to deal with multi-command sequences.
16977 # Test whether the compiler implicitly links with -lc since on some
16978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16979 # to ld, don't add -lc before -lgcc.
16980 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16981 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16986 (eval $ac_compile) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } 2>conftest.err; then
16992 libobjs=conftest.$ac_objext
16994 wl=$lt_prog_compiler_wl_GCJ
17000 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17001 allow_undefined_flag_GCJ=
17002 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17003 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }
17008 archive_cmds_need_lc_GCJ=no
17010 archive_cmds_need_lc_GCJ=yes
17012 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17014 cat conftest.err 1>&5
17017 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17018 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17025 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17026 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17027 library_names_spec=
17028 libname_spec='lib$name'
17032 postuninstall_cmds=
17036 shlibpath_overrides_runpath=unknown
17038 dynamic_linker="$host_os ld.so"
17039 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17040 if test "$GCC" = yes; then
17041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17042 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17043 # if the path contains ";" then we assume it to be the separator
17044 # otherwise default to the standard path separator (i.e. ":") - it is
17045 # assumed that no part of a normal pathname contains ";" but that should
17046 # okay in the real world where ";" in dirpaths is itself problematic.
17047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17052 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17054 need_lib_prefix=unknown
17055 hardcode_into_libs=no
17057 # when you set need_version to no, make sure it does not cause -set_version
17058 # flags to be left without arguments
17059 need_version=unknown
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17065 shlibpath_var=LIBPATH
17067 # AIX 3 has no versioning support, so we append a major version to the name.
17068 soname_spec='${libname}${release}${shared_ext}$major'
17075 hardcode_into_libs=yes
17076 if test "$host_cpu" = ia64; then
17077 # AIX 5 supports IA64
17078 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17079 shlibpath_var=LD_LIBRARY_PATH
17081 # With GCC up to 2.95.x, collect2 would create an import file
17082 # for dependence libraries. The import file would start with
17083 # the line `#! .'. This would cause the generated library to
17084 # depend on `.', always an invalid library. This was fixed in
17085 # development snapshots of GCC prior to 3.0.
17087 aix4 | aix4.[01] | aix4.[01].*)
17088 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17090 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17093 can_build_shared=no
17097 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17098 # soname into executable. Probably we can add versioning support to
17099 # collect2, so additional links can be useful in future.
17100 if test "$aix_use_runtimelinking" = yes; then
17101 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17102 # instead of lib<name>.a to let people know that these are not
17103 # typical AIX shared libraries.
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17106 # We preserve .a as extension for shared libraries through AIX4.2
17107 # and later when we are not doing run time linking.
17108 library_names_spec='${libname}${release}.a $libname.a'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17111 shlibpath_var=LIBPATH
17116 library_names_spec='$libname.ixlibrary $libname.a'
17117 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17118 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'
17122 library_names_spec='${libname}${shared_ext}'
17123 dynamic_linker="$host_os ld.so"
17124 shlibpath_var=LIBRARY_PATH
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17133 shlibpath_var=LD_LIBRARY_PATH
17134 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17135 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17136 # the default ld.so.conf also contains /usr/contrib/lib and
17137 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17138 # libtool to hard-code these into programs
17141 cygwin* | mingw* | pw32*)
17142 version_type=windows
17147 case $GCC,$host_os in
17148 yes,cygwin* | yes,mingw* | yes,pw32*)
17149 library_names_spec='$libname.dll.a'
17150 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17151 postinstall_cmds='base_file=`basename \${file}`~
17152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17153 dldir=$destdir/`dirname \$dlpath`~
17154 test -d \$dldir || mkdir -p \$dldir~
17155 $install_prog $dir/$dlname \$dldir/$dlname'
17156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17157 dlpath=$dir/\$dldll~
17159 shlibpath_overrides_runpath=yes
17163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17165 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17168 # MinGW DLLs use traditional 'lib' prefix
17169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17170 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17171 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17172 # It is most probably a Windows format PATH printed by
17173 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17174 # path with ; separators, and with drive letters. We can handle the
17175 # drive letters (cygwin fileutils understands them), so leave them,
17176 # especially as we might pass files found there to a mingw objdump,
17177 # which wouldn't understand a cygwinified path. Ahh.
17178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17184 # pw32 DLLs use 'pw' prefix rather than 'lib'
17185 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17191 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17194 dynamic_linker='Win32 ld.exe'
17195 # FIXME: first we should search . and the directory the executable is in
17199 darwin* | rhapsody*)
17200 dynamic_linker="$host_os dyld"
17201 version_type=darwin
17204 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17205 soname_spec='${libname}${release}${major}$shared_ext'
17206 shlibpath_overrides_runpath=yes
17207 shlibpath_var=DYLD_LIBRARY_PATH
17208 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17209 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17210 if test "$GCC" = yes; then
17211 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"`
17213 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17223 soname_spec='${libname}${release}${shared_ext}$major'
17224 shlibpath_var=LD_LIBRARY_PATH
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=no
17239 hardcode_into_libs=yes
17240 dynamic_linker='GNU ld.so'
17244 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17245 version_type=freebsd-$objformat
17246 case $version_type in
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17257 shlibpath_var=LD_LIBRARY_PATH
17260 shlibpath_overrides_runpath=yes
17262 freebsd3.01* | freebsdelf3.01*)
17263 shlibpath_overrides_runpath=yes
17264 hardcode_into_libs=yes
17267 shlibpath_overrides_runpath=no
17268 hardcode_into_libs=yes
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 hardcode_into_libs=yes
17283 hpux9* | hpux10* | hpux11*)
17284 # Give a soname corresponding to the major version so that dld.sl refuses to
17285 # link against other versions.
17289 case "$host_cpu" in
17292 hardcode_into_libs=yes
17293 dynamic_linker="$host_os dld.so"
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297 soname_spec='${libname}${release}${shared_ext}$major'
17298 if test "X$HPUX_IA64_MODE" = X32; then
17299 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17301 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17307 hardcode_into_libs=yes
17308 dynamic_linker="$host_os dld.sl"
17309 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17318 dynamic_linker="$host_os dld.sl"
17319 shlibpath_var=SHLIB_PATH
17320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322 soname_spec='${libname}${release}${shared_ext}$major'
17325 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17326 postinstall_cmds='chmod 555 $lib'
17329 irix5* | irix6* | nonstopux*)
17331 nonstopux*) version_type=nonstopux ;;
17333 if test "$lt_cv_prog_gnu_ld" = yes; then
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17344 irix5* | nonstopux*)
17345 libsuff= shlibsuff=
17348 case $LD in # libtool.m4 will add one of these switches to LD
17349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17350 libsuff= shlibsuff= libmagic=32-bit;;
17351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17352 libsuff=32 shlibsuff=N32 libmagic=N32;;
17353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17355 *) libsuff= shlibsuff= libmagic=never-match;;
17359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17360 shlibpath_overrides_runpath=no
17361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17363 hardcode_into_libs=yes
17366 # No shared lib support for Linux oldld, aout, or coff.
17367 linux*oldld* | linux*aout* | linux*coff*)
17371 # This must be Linux ELF.
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=no
17381 # This implies no fast_install, which is unacceptable.
17382 # Some rework will be needed to allow for fast_install
17383 # before this can be enabled.
17384 hardcode_into_libs=yes
17386 # Append ld.so.conf contents to the search path
17387 if test -f /etc/ld.so.conf; then
17388 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17389 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17392 # We used to test for /lib/ld.so.1 and disable shared libraries on
17393 # powerpc, because MkLinux only supported shared libraries with the
17394 # GNU dynamic linker. Since this was broken with cross compilers,
17395 # most powerpc-linux boxes support dynamic linking these days and
17396 # people can always --disable-shared, the test was removed, and we
17397 # assume the GNU/Linux dynamic linker is in use.
17398 dynamic_linker='GNU/Linux ld.so'
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 shlibpath_overrides_runpath=no
17409 hardcode_into_libs=yes
17410 dynamic_linker='NetBSD ld.elf_so'
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 shlibpath_overrides_runpath=no
17421 hardcode_into_libs=yes
17422 dynamic_linker='GNU ld.so'
17429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17432 dynamic_linker='NetBSD (a.out) ld.so'
17434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17435 soname_spec='${libname}${release}${shared_ext}$major'
17436 dynamic_linker='NetBSD ld.elf_so'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 shlibpath_overrides_runpath=yes
17440 hardcode_into_libs=yes
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446 shlibpath_var=LD_LIBRARY_PATH
17447 shlibpath_overrides_runpath=yes
17454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455 soname_spec='${libname}${release}${shared_ext}$major'
17456 shlibpath_var=LD_LIBRARY_PATH
17457 shlibpath_overrides_runpath=yes
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17466 shlibpath_var=LD_LIBRARY_PATH
17467 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17469 openbsd2.[89] | openbsd2.[89].*)
17470 shlibpath_overrides_runpath=no
17473 shlibpath_overrides_runpath=yes
17477 shlibpath_overrides_runpath=yes
17482 libname_spec='$name'
17485 library_names_spec='$libname${shared_ext} $libname.a'
17486 dynamic_linker='OS/2 ld.exe'
17487 shlibpath_var=LIBPATH
17490 osf3* | osf4* | osf5*)
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17496 shlibpath_var=LD_LIBRARY_PATH
17497 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17498 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17503 soname_spec='${libname}${release}${shared_ext}$major'
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505 shlibpath_var=LD_LIBRARY_PATH
17512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17513 soname_spec='${libname}${release}${shared_ext}$major'
17514 shlibpath_var=LD_LIBRARY_PATH
17515 shlibpath_overrides_runpath=yes
17516 hardcode_into_libs=yes
17517 # ldd complains unless libraries are executable
17518 postinstall_cmds='chmod +x $lib'
17523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17524 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17525 shlibpath_var=LD_LIBRARY_PATH
17526 shlibpath_overrides_runpath=yes
17527 if test "$with_gnu_ld" = yes; then
17533 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17536 soname_spec='${libname}${release}${shared_ext}$major'
17537 shlibpath_var=LD_LIBRARY_PATH
17538 case $host_vendor in
17540 shlibpath_overrides_runpath=no
17542 export_dynamic_flag_spec='${wl}-Blargedynsym'
17543 runpath_var=LD_RUN_PATH
17551 shlibpath_overrides_runpath=no
17552 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17558 if test -d /usr/nec ;then
17560 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17561 soname_spec='$libname${shared_ext}.$major'
17562 shlibpath_var=LD_LIBRARY_PATH
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 shlibpath_var=LD_LIBRARY_PATH
17577 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17578 echo "${ECHO_T}$dynamic_linker" >&6
17579 test "$dynamic_linker" = no && can_build_shared=no
17581 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17582 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17583 hardcode_action_GCJ=
17584 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17585 test -n "$runpath_var GCJ" || \
17586 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17588 # We can hardcode non-existant directories.
17589 if test "$hardcode_direct_GCJ" != no &&
17590 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17591 # have to relink, otherwise we might link with an installed library
17592 # when we should be linking with a yet-to-be-installed one
17593 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17594 test "$hardcode_minus_L_GCJ" != no; then
17595 # Linking always hardcodes the temporary library directory.
17596 hardcode_action_GCJ=relink
17598 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17599 hardcode_action_GCJ=immediate
17602 # We cannot hardcode anything, or else we can only hardcode existing
17604 hardcode_action_GCJ=unsupported
17606 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17607 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17609 if test "$hardcode_action_GCJ" = relink; then
17610 # Fast installation is not supported
17611 enable_fast_install=no
17612 elif test "$shlibpath_overrides_runpath" = yes ||
17613 test "$enable_shared" = no; then
17614 # Fast installation is not necessary
17615 enable_fast_install=needless
17620 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17621 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17622 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17623 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17624 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17625 echo "$as_me:$LINENO: result: yes" >&5
17626 echo "${ECHO_T}yes" >&6
17628 # FIXME - insert some real tests, host_os isn't really good enough
17631 if test -n "$STRIP" ; then
17632 striplib="$STRIP -x"
17633 echo "$as_me:$LINENO: result: yes" >&5
17634 echo "${ECHO_T}yes" >&6
17636 echo "$as_me:$LINENO: result: no" >&5
17637 echo "${ECHO_T}no" >&6
17641 echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6
17647 if test "x$enable_dlopen" != xyes; then
17648 enable_dlopen=unknown
17649 enable_dlopen_self=unknown
17650 enable_dlopen_self_static=unknown
17657 lt_cv_dlopen="load_add_on"
17659 lt_cv_dlopen_self=yes
17663 lt_cv_dlopen="LoadLibrary"
17668 lt_cv_dlopen="dlopen"
17673 # if libdl is installed we need to link against it
17674 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17675 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17676 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 ac_check_lib_save_LIBS=$LIBS
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17688 /* Override any gcc2 internal prototype to avoid an error. */
17692 /* We use char because int might match the return type of a gcc2
17693 builtin and then its argument prototype would still apply. */
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705 (eval $ac_link) 2>conftest.er1
17707 grep -v '^ *+' conftest.er1 >conftest.err
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; } &&
17718 { ac_try='test -s conftest$ac_exeext'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
17724 ac_cv_lib_dl_dlopen=yes
17726 echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17729 ac_cv_lib_dl_dlopen=no
17731 rm -f conftest.err conftest.$ac_objext \
17732 conftest$ac_exeext conftest.$ac_ext
17733 LIBS=$ac_check_lib_save_LIBS
17735 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17737 if test $ac_cv_lib_dl_dlopen = yes; then
17738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17741 lt_cv_dlopen="dyld"
17743 lt_cv_dlopen_self=yes
17750 echo "$as_me:$LINENO: checking for shl_load" >&5
17751 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17752 if test "${ac_cv_func_shl_load+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 cat >conftest.$ac_ext <<_ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17763 #define shl_load innocuous_shl_load
17765 /* System header to define __stub macros and hopefully few prototypes,
17766 which can conflict with char shl_load (); below.
17767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17768 <limits.h> exists even on freestanding compilers. */
17771 # include <limits.h>
17773 # include <assert.h>
17778 /* Override any gcc2 internal prototype to avoid an error. */
17783 /* We use char because int might match the return type of a gcc2
17784 builtin and then its argument prototype would still apply. */
17786 /* The GNU C library defines this for functions which it implements
17787 to always fail with ENOSYS. Some functions are actually named
17788 something starting with __ and the normal name is an alias. */
17789 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17792 char (*f) () = shl_load;
17801 return f != shl_load;
17806 rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17808 (eval $ac_link) 2>conftest.er1
17810 grep -v '^ *+' conftest.er1 >conftest.err
17812 cat conftest.err >&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest$ac_exeext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ac_cv_func_shl_load=yes
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ac_cv_func_shl_load=no
17834 rm -f conftest.err conftest.$ac_objext \
17835 conftest$ac_exeext conftest.$ac_ext
17837 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17838 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17839 if test $ac_cv_func_shl_load = yes; then
17840 lt_cv_dlopen="shl_load"
17842 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17843 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17844 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 ac_check_lib_save_LIBS=$LIBS
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17856 /* Override any gcc2 internal prototype to avoid an error. */
17860 /* We use char because int might match the return type of a gcc2
17861 builtin and then its argument prototype would still apply. */
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873 (eval $ac_link) 2>conftest.er1
17875 grep -v '^ *+' conftest.er1 >conftest.err
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } &&
17880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest$ac_exeext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_cv_lib_dld_shl_load=yes
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 ac_cv_lib_dld_shl_load=no
17899 rm -f conftest.err conftest.$ac_objext \
17900 conftest$ac_exeext conftest.$ac_ext
17901 LIBS=$ac_check_lib_save_LIBS
17903 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17904 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17905 if test $ac_cv_lib_dld_shl_load = yes; then
17906 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17908 echo "$as_me:$LINENO: checking for dlopen" >&5
17909 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17910 if test "${ac_cv_func_dlopen+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 cat >conftest.$ac_ext <<_ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17921 #define dlopen innocuous_dlopen
17923 /* System header to define __stub macros and hopefully few prototypes,
17924 which can conflict with char dlopen (); below.
17925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17926 <limits.h> exists even on freestanding compilers. */
17929 # include <limits.h>
17931 # include <assert.h>
17936 /* Override any gcc2 internal prototype to avoid an error. */
17941 /* We use char because int might match the return type of a gcc2
17942 builtin and then its argument prototype would still apply. */
17944 /* The GNU C library defines this for functions which it implements
17945 to always fail with ENOSYS. Some functions are actually named
17946 something starting with __ and the normal name is an alias. */
17947 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17950 char (*f) () = dlopen;
17959 return f != dlopen;
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17966 (eval $ac_link) 2>conftest.er1
17968 grep -v '^ *+' conftest.er1 >conftest.err
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest$ac_exeext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_cv_func_dlopen=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 ac_cv_func_dlopen=no
17992 rm -f conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17995 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17996 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17997 if test $ac_cv_func_dlopen = yes; then
17998 lt_cv_dlopen="dlopen"
18000 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18001 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18002 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 ac_check_lib_save_LIBS=$LIBS
18007 cat >conftest.$ac_ext <<_ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h. */
18014 /* Override any gcc2 internal prototype to avoid an error. */
18018 /* We use char because int might match the return type of a gcc2
18019 builtin and then its argument prototype would still apply. */
18029 rm -f conftest.$ac_objext conftest$ac_exeext
18030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18031 (eval $ac_link) 2>conftest.er1
18033 grep -v '^ *+' conftest.er1 >conftest.err
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } &&
18038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest$ac_exeext'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 ac_cv_lib_dl_dlopen=yes
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 ac_cv_lib_dl_dlopen=no
18057 rm -f conftest.err conftest.$ac_objext \
18058 conftest$ac_exeext conftest.$ac_ext
18059 LIBS=$ac_check_lib_save_LIBS
18061 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18063 if test $ac_cv_lib_dl_dlopen = yes; then
18064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18066 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18067 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18069 echo $ECHO_N "(cached) $ECHO_C" >&6
18071 ac_check_lib_save_LIBS=$LIBS
18072 LIBS="-lsvld $LIBS"
18073 cat >conftest.$ac_ext <<_ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18080 /* Override any gcc2 internal prototype to avoid an error. */
18084 /* We use char because int might match the return type of a gcc2
18085 builtin and then its argument prototype would still apply. */
18095 rm -f conftest.$ac_objext conftest$ac_exeext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097 (eval $ac_link) 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest$ac_exeext'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
18116 ac_cv_lib_svld_dlopen=yes
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ac_cv_lib_svld_dlopen=no
18123 rm -f conftest.err conftest.$ac_objext \
18124 conftest$ac_exeext conftest.$ac_ext
18125 LIBS=$ac_check_lib_save_LIBS
18127 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18128 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18129 if test $ac_cv_lib_svld_dlopen = yes; then
18130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18132 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18133 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18134 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 ac_check_lib_save_LIBS=$LIBS
18139 cat >conftest.$ac_ext <<_ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h. */
18146 /* Override any gcc2 internal prototype to avoid an error. */
18150 /* We use char because int might match the return type of a gcc2
18151 builtin and then its argument prototype would still apply. */
18161 rm -f conftest.$ac_objext conftest$ac_exeext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18163 (eval $ac_link) 2>conftest.er1
18165 grep -v '^ *+' conftest.er1 >conftest.err
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; } &&
18176 { ac_try='test -s conftest$ac_exeext'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
18182 ac_cv_lib_dld_dld_link=yes
18184 echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 ac_cv_lib_dld_dld_link=no
18189 rm -f conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
18191 LIBS=$ac_check_lib_save_LIBS
18193 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18194 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18195 if test $ac_cv_lib_dld_dld_link = yes; then
18196 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18217 if test "x$lt_cv_dlopen" != xno; then
18223 case $lt_cv_dlopen in
18225 save_CPPFLAGS="$CPPFLAGS"
18226 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18228 save_LDFLAGS="$LDFLAGS"
18229 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18232 LIBS="$lt_cv_dlopen_libs $LIBS"
18234 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18235 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18236 if test "${lt_cv_dlopen_self+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 if test "$cross_compiling" = yes; then :
18240 lt_cv_dlopen_self=cross
18242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18243 lt_status=$lt_dlunknown
18244 cat > conftest.$ac_ext <<EOF
18245 #line 18245 "configure"
18246 #include "confdefs.h"
18255 # define LT_DLGLOBAL RTLD_GLOBAL
18258 # define LT_DLGLOBAL DL_GLOBAL
18260 # define LT_DLGLOBAL 0
18264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18265 find out it does not work in some platform. */
18266 #ifndef LT_DLLAZY_OR_NOW
18268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18271 # define LT_DLLAZY_OR_NOW DL_LAZY
18274 # define LT_DLLAZY_OR_NOW RTLD_NOW
18277 # define LT_DLLAZY_OR_NOW DL_NOW
18279 # define LT_DLLAZY_OR_NOW 0
18287 extern "C" void exit (int);
18290 void fnord() { int i=42;}
18293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18294 int status = $lt_dlunknown;
18298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18300 /* dlclose (self); */
18306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18307 (eval $ac_link) 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18311 (./conftest; exit; ) 2>/dev/null
18313 case x$lt_status in
18314 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18315 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18316 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18319 # compilation failed
18320 lt_cv_dlopen_self=no
18327 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18328 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18330 if test "x$lt_cv_dlopen_self" = xyes; then
18331 LDFLAGS="$LDFLAGS $link_static_flag"
18332 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18333 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18334 if test "${lt_cv_dlopen_self_static+set}" = set; then
18335 echo $ECHO_N "(cached) $ECHO_C" >&6
18337 if test "$cross_compiling" = yes; then :
18338 lt_cv_dlopen_self_static=cross
18340 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18341 lt_status=$lt_dlunknown
18342 cat > conftest.$ac_ext <<EOF
18343 #line 18343 "configure"
18344 #include "confdefs.h"
18353 # define LT_DLGLOBAL RTLD_GLOBAL
18356 # define LT_DLGLOBAL DL_GLOBAL
18358 # define LT_DLGLOBAL 0
18362 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18363 find out it does not work in some platform. */
18364 #ifndef LT_DLLAZY_OR_NOW
18366 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18369 # define LT_DLLAZY_OR_NOW DL_LAZY
18372 # define LT_DLLAZY_OR_NOW RTLD_NOW
18375 # define LT_DLLAZY_OR_NOW DL_NOW
18377 # define LT_DLLAZY_OR_NOW 0
18385 extern "C" void exit (int);
18388 void fnord() { int i=42;}
18391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18392 int status = $lt_dlunknown;
18396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18397 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18398 /* dlclose (self); */
18404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18405 (eval $ac_link) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18409 (./conftest; exit; ) 2>/dev/null
18411 case x$lt_status in
18412 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18413 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18414 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18417 # compilation failed
18418 lt_cv_dlopen_self_static=no
18425 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18426 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18429 CPPFLAGS="$save_CPPFLAGS"
18430 LDFLAGS="$save_LDFLAGS"
18435 case $lt_cv_dlopen_self in
18436 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18437 *) enable_dlopen_self=unknown ;;
18440 case $lt_cv_dlopen_self_static in
18441 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18442 *) enable_dlopen_self_static=unknown ;;
18447 # The else clause should only fire when bootstrapping the
18448 # libtool distribution, otherwise you forgot to ship ltmain.sh
18449 # with your package, and you will get complaints that there are
18450 # no rules to generate ltmain.sh.
18451 if test -f "$ltmain"; then
18452 # See if we are running on zsh, and set the options which allow our commands through
18453 # without removal of \ escapes.
18454 if test -n "${ZSH_VERSION+set}" ; then
18455 setopt NO_GLOB_SUBST
18457 # Now quote all the things that may contain metacharacters while being
18458 # careful not to overquote the AC_SUBSTed values. We take copies of the
18459 # variables and quote the copies for generation of the libtool script.
18460 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18462 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18463 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18464 deplibs_check_method reload_flag reload_cmds need_locks \
18465 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18466 lt_cv_sys_global_symbol_to_c_name_address \
18467 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18468 old_postinstall_cmds old_postuninstall_cmds \
18472 lt_prog_compiler_wl_GCJ \
18473 lt_prog_compiler_pic_GCJ \
18474 lt_prog_compiler_static_GCJ \
18475 lt_prog_compiler_no_builtin_flag_GCJ \
18476 export_dynamic_flag_spec_GCJ \
18477 thread_safe_flag_spec_GCJ \
18478 whole_archive_flag_spec_GCJ \
18479 enable_shared_with_static_runtimes_GCJ \
18480 old_archive_cmds_GCJ \
18481 old_archive_from_new_cmds_GCJ \
18482 predep_objects_GCJ \
18483 postdep_objects_GCJ \
18486 compiler_lib_search_path_GCJ \
18488 archive_expsym_cmds_GCJ \
18489 postinstall_cmds_GCJ \
18490 postuninstall_cmds_GCJ \
18491 old_archive_from_expsyms_cmds_GCJ \
18492 allow_undefined_flag_GCJ \
18493 no_undefined_flag_GCJ \
18494 export_symbols_cmds_GCJ \
18495 hardcode_libdir_flag_spec_GCJ \
18496 hardcode_libdir_flag_spec_ld_GCJ \
18497 hardcode_libdir_separator_GCJ \
18498 hardcode_automatic_GCJ \
18500 module_expsym_cmds_GCJ \
18501 lt_cv_prog_compiler_c_o_GCJ \
18502 exclude_expsyms_GCJ \
18503 include_expsyms_GCJ; do
18506 old_archive_cmds_GCJ | \
18507 old_archive_from_new_cmds_GCJ | \
18508 archive_cmds_GCJ | \
18509 archive_expsym_cmds_GCJ | \
18510 module_cmds_GCJ | \
18511 module_expsym_cmds_GCJ | \
18512 old_archive_from_expsyms_cmds_GCJ | \
18513 export_symbols_cmds_GCJ | \
18514 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18515 postinstall_cmds | postuninstall_cmds | \
18516 old_postinstall_cmds | old_postuninstall_cmds | \
18517 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18518 # Double-quote double-evaled strings.
18519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18528 *'\$0 --fallback-echo"')
18529 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18535 cat <<__EOF__ >> "$cfgfile"
18536 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18538 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18540 # Shell to use when invoking shell scripts.
18543 # Whether or not to build shared libraries.
18544 build_libtool_libs=$enable_shared
18546 # Whether or not to build static libraries.
18547 build_old_libs=$enable_static
18549 # Whether or not to add -lc for building shared libraries.
18550 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18552 # Whether or not to disallow shared libs when runtime libs are static
18553 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18555 # Whether or not to optimize for fast installation.
18556 fast_install=$enable_fast_install
18559 host_alias=$host_alias
18562 # An echo program that does not interpret backslashes.
18567 AR_FLAGS=$lt_AR_FLAGS
18572 # A language-specific compiler.
18573 CC=$lt_compiler_GCJ
18575 # Is the compiler the GNU C compiler?
18581 # The linker used to build libraries.
18584 # Whether we need hard or soft links.
18587 # A BSD-compatible nm program.
18590 # A symbol stripping program
18593 # Used to examine libraries when file_magic_cmd begins "file"
18594 MAGIC_CMD=$MAGIC_CMD
18596 # Used on cygwin: DLL creation program.
18599 # Used on cygwin: object dumper.
18602 # Used on cygwin: assembler.
18605 # The name of the directory that contains temporary libtool files.
18608 # How to create reloadable object files.
18609 reload_flag=$lt_reload_flag
18610 reload_cmds=$lt_reload_cmds
18612 # How to pass a linker flag through the compiler.
18613 wl=$lt_lt_prog_compiler_wl_GCJ
18615 # Object file suffix (normally "o").
18616 objext="$ac_objext"
18618 # Old archive suffix (normally "a").
18621 # Shared library suffix (normally ".so").
18622 shrext_cmds='$shrext_cmds'
18624 # Executable file suffix (normally "").
18627 # Additional compiler flags for building library objects.
18628 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18631 # What is the maximum length of a command?
18632 max_cmd_len=$lt_cv_sys_max_cmd_len
18634 # Does compiler simultaneously support -c and -o options?
18635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18637 # Must we lock files when doing compilation ?
18638 need_locks=$lt_need_locks
18640 # Do we need the lib prefix for modules?
18641 need_lib_prefix=$need_lib_prefix
18643 # Do we need a version for libraries?
18644 need_version=$need_version
18646 # Whether dlopen is supported.
18647 dlopen_support=$enable_dlopen
18649 # Whether dlopen of programs is supported.
18650 dlopen_self=$enable_dlopen_self
18652 # Whether dlopen of statically linked programs is supported.
18653 dlopen_self_static=$enable_dlopen_self_static
18655 # Compiler flag to prevent dynamic linking.
18656 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18658 # Compiler flag to turn off builtin functions.
18659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18661 # Compiler flag to allow reflexive dlopens.
18662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18664 # Compiler flag to generate shared objects directly from archives.
18665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18667 # Compiler flag to generate thread-safe objects.
18668 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18670 # Library versioning type.
18671 version_type=$version_type
18673 # Format of library name prefix.
18674 libname_spec=$lt_libname_spec
18676 # List of archive names. First name is the real one, the rest are links.
18677 # The last name is the one that the linker finds with -lNAME.
18678 library_names_spec=$lt_library_names_spec
18680 # The coded name of the library, if different from the real name.
18681 soname_spec=$lt_soname_spec
18683 # Commands used to build and install an old-style archive.
18685 old_archive_cmds=$lt_old_archive_cmds_GCJ
18686 old_postinstall_cmds=$lt_old_postinstall_cmds
18687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18689 # Create an old-style archive from a shared archive.
18690 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18692 # Create a temporary old-style archive to link instead of a shared archive.
18693 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18695 # Commands used to build and install a shared archive.
18696 archive_cmds=$lt_archive_cmds_GCJ
18697 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18698 postinstall_cmds=$lt_postinstall_cmds
18699 postuninstall_cmds=$lt_postuninstall_cmds
18701 # Commands used to build a loadable module (assumed same as above if empty)
18702 module_cmds=$lt_module_cmds_GCJ
18703 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18705 # Commands to strip libraries.
18706 old_striplib=$lt_old_striplib
18707 striplib=$lt_striplib
18709 # Dependencies to place before the objects being linked to create a
18711 predep_objects=$lt_predep_objects_GCJ
18713 # Dependencies to place after the objects being linked to create a
18715 postdep_objects=$lt_postdep_objects_GCJ
18717 # Dependencies to place before the objects being linked to create a
18719 predeps=$lt_predeps_GCJ
18721 # Dependencies to place after the objects being linked to create a
18723 postdeps=$lt_postdeps_GCJ
18725 # The library search path used internally by the compiler when linking
18726 # a shared library.
18727 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18729 # Method to check whether dependent libraries are shared objects.
18730 deplibs_check_method=$lt_deplibs_check_method
18732 # Command to use when deplibs_check_method == file_magic.
18733 file_magic_cmd=$lt_file_magic_cmd
18735 # Flag that allows shared libraries with undefined symbols to be built.
18736 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18738 # Flag that forces no undefined symbols.
18739 no_undefined_flag=$lt_no_undefined_flag_GCJ
18741 # Commands used to finish a libtool library installation in a directory.
18742 finish_cmds=$lt_finish_cmds
18744 # Same as above, but a single script fragment to be evaled but not shown.
18745 finish_eval=$lt_finish_eval
18747 # Take the output of nm and produce a listing of raw symbols and C names.
18748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18750 # Transform the output of nm in a proper C declaration
18751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18753 # Transform the output of nm in a C name address pair
18754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18756 # This is the shared library runtime path variable.
18757 runpath_var=$runpath_var
18759 # This is the shared library path variable.
18760 shlibpath_var=$shlibpath_var
18762 # Is shlibpath searched before the hard-coded library search path?
18763 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18765 # How to hardcode a shared library path into an executable.
18766 hardcode_action=$hardcode_action_GCJ
18768 # Whether we should hardcode library paths into libraries.
18769 hardcode_into_libs=$hardcode_into_libs
18771 # Flag to hardcode \$libdir into a binary during linking.
18772 # This must work even if \$libdir does not exist.
18773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18775 # If ld is used when linking, flag to hardcode \$libdir into
18776 # a binary during linking. This must work even if \$libdir does
18778 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18780 # Whether we need a single -rpath flag with a separated argument.
18781 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18783 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18784 # resulting binary.
18785 hardcode_direct=$hardcode_direct_GCJ
18787 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18788 # resulting binary.
18789 hardcode_minus_L=$hardcode_minus_L_GCJ
18791 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18792 # the resulting binary.
18793 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18795 # Set to yes if building a shared library automatically hardcodes DIR into the library
18796 # and all subsequent libraries and executables linked against it.
18797 hardcode_automatic=$hardcode_automatic_GCJ
18799 # Variables whose values should be saved in libtool wrapper scripts and
18800 # restored at relink time.
18801 variables_saved_for_relink="$variables_saved_for_relink"
18803 # Whether libtool must link a program against all its dependency libraries.
18804 link_all_deplibs=$link_all_deplibs_GCJ
18806 # Compile-time system search path for libraries
18807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18809 # Run-time system search path for libraries
18810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18812 # Fix the shell variable \$srcfile for the compiler.
18813 fix_srcfile_path="$fix_srcfile_path_GCJ"
18815 # Set to yes if exported symbols are required.
18816 always_export_symbols=$always_export_symbols_GCJ
18818 # The commands to list exported symbols.
18819 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18821 # The commands to extract the exported symbol list from a shared archive.
18822 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18824 # Symbols that should not be listed in the preloaded symbols.
18825 exclude_expsyms=$lt_exclude_expsyms_GCJ
18827 # Symbols that must always be exported.
18828 include_expsyms=$lt_include_expsyms_GCJ
18830 # ### END LIBTOOL TAG CONFIG: $tagname
18836 # If there is no Makefile yet, we rely on a make rule to execute
18837 # `config.status --recheck' to rerun these tests and create the
18838 # libtool script then.
18839 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18840 if test -f "$ltmain_in"; then
18841 test -f Makefile && make "$ltmain"
18847 ac_cpp='$CPP $CPPFLAGS'
18848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18863 # Source file extension for RC test sources.
18866 # Object file extension for compiled RC test sources.
18870 # Code to be used in simple compile tests
18871 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18873 # Code to be used in simple link tests
18874 lt_simple_link_test_code="$lt_simple_compile_test_code"
18876 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18878 # If no C compiler was specified, use CC.
18881 # Allow CC to be a program name with arguments.
18885 # Allow CC to be a program name with arguments.
18890 lt_cv_prog_compiler_c_o_RC=yes
18892 # The else clause should only fire when bootstrapping the
18893 # libtool distribution, otherwise you forgot to ship ltmain.sh
18894 # with your package, and you will get complaints that there are
18895 # no rules to generate ltmain.sh.
18896 if test -f "$ltmain"; then
18897 # See if we are running on zsh, and set the options which allow our commands through
18898 # without removal of \ escapes.
18899 if test -n "${ZSH_VERSION+set}" ; then
18900 setopt NO_GLOB_SUBST
18902 # Now quote all the things that may contain metacharacters while being
18903 # careful not to overquote the AC_SUBSTed values. We take copies of the
18904 # variables and quote the copies for generation of the libtool script.
18905 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18907 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18908 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18909 deplibs_check_method reload_flag reload_cmds need_locks \
18910 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18911 lt_cv_sys_global_symbol_to_c_name_address \
18912 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18913 old_postinstall_cmds old_postuninstall_cmds \
18917 lt_prog_compiler_wl_RC \
18918 lt_prog_compiler_pic_RC \
18919 lt_prog_compiler_static_RC \
18920 lt_prog_compiler_no_builtin_flag_RC \
18921 export_dynamic_flag_spec_RC \
18922 thread_safe_flag_spec_RC \
18923 whole_archive_flag_spec_RC \
18924 enable_shared_with_static_runtimes_RC \
18925 old_archive_cmds_RC \
18926 old_archive_from_new_cmds_RC \
18927 predep_objects_RC \
18928 postdep_objects_RC \
18931 compiler_lib_search_path_RC \
18933 archive_expsym_cmds_RC \
18934 postinstall_cmds_RC \
18935 postuninstall_cmds_RC \
18936 old_archive_from_expsyms_cmds_RC \
18937 allow_undefined_flag_RC \
18938 no_undefined_flag_RC \
18939 export_symbols_cmds_RC \
18940 hardcode_libdir_flag_spec_RC \
18941 hardcode_libdir_flag_spec_ld_RC \
18942 hardcode_libdir_separator_RC \
18943 hardcode_automatic_RC \
18945 module_expsym_cmds_RC \
18946 lt_cv_prog_compiler_c_o_RC \
18947 exclude_expsyms_RC \
18948 include_expsyms_RC; do
18951 old_archive_cmds_RC | \
18952 old_archive_from_new_cmds_RC | \
18953 archive_cmds_RC | \
18954 archive_expsym_cmds_RC | \
18956 module_expsym_cmds_RC | \
18957 old_archive_from_expsyms_cmds_RC | \
18958 export_symbols_cmds_RC | \
18959 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18960 postinstall_cmds | postuninstall_cmds | \
18961 old_postinstall_cmds | old_postuninstall_cmds | \
18962 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18963 # Double-quote double-evaled strings.
18964 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18967 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18973 *'\$0 --fallback-echo"')
18974 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18980 cat <<__EOF__ >> "$cfgfile"
18981 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18985 # Shell to use when invoking shell scripts.
18988 # Whether or not to build shared libraries.
18989 build_libtool_libs=$enable_shared
18991 # Whether or not to build static libraries.
18992 build_old_libs=$enable_static
18994 # Whether or not to add -lc for building shared libraries.
18995 build_libtool_need_lc=$archive_cmds_need_lc_RC
18997 # Whether or not to disallow shared libs when runtime libs are static
18998 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19000 # Whether or not to optimize for fast installation.
19001 fast_install=$enable_fast_install
19004 host_alias=$host_alias
19007 # An echo program that does not interpret backslashes.
19012 AR_FLAGS=$lt_AR_FLAGS
19017 # A language-specific compiler.
19020 # Is the compiler the GNU C compiler?
19026 # The linker used to build libraries.
19029 # Whether we need hard or soft links.
19032 # A BSD-compatible nm program.
19035 # A symbol stripping program
19038 # Used to examine libraries when file_magic_cmd begins "file"
19039 MAGIC_CMD=$MAGIC_CMD
19041 # Used on cygwin: DLL creation program.
19044 # Used on cygwin: object dumper.
19047 # Used on cygwin: assembler.
19050 # The name of the directory that contains temporary libtool files.
19053 # How to create reloadable object files.
19054 reload_flag=$lt_reload_flag
19055 reload_cmds=$lt_reload_cmds
19057 # How to pass a linker flag through the compiler.
19058 wl=$lt_lt_prog_compiler_wl_RC
19060 # Object file suffix (normally "o").
19061 objext="$ac_objext"
19063 # Old archive suffix (normally "a").
19066 # Shared library suffix (normally ".so").
19067 shrext_cmds='$shrext_cmds'
19069 # Executable file suffix (normally "").
19072 # Additional compiler flags for building library objects.
19073 pic_flag=$lt_lt_prog_compiler_pic_RC
19076 # What is the maximum length of a command?
19077 max_cmd_len=$lt_cv_sys_max_cmd_len
19079 # Does compiler simultaneously support -c and -o options?
19080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19082 # Must we lock files when doing compilation ?
19083 need_locks=$lt_need_locks
19085 # Do we need the lib prefix for modules?
19086 need_lib_prefix=$need_lib_prefix
19088 # Do we need a version for libraries?
19089 need_version=$need_version
19091 # Whether dlopen is supported.
19092 dlopen_support=$enable_dlopen
19094 # Whether dlopen of programs is supported.
19095 dlopen_self=$enable_dlopen_self
19097 # Whether dlopen of statically linked programs is supported.
19098 dlopen_self_static=$enable_dlopen_self_static
19100 # Compiler flag to prevent dynamic linking.
19101 link_static_flag=$lt_lt_prog_compiler_static_RC
19103 # Compiler flag to turn off builtin functions.
19104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19106 # Compiler flag to allow reflexive dlopens.
19107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19109 # Compiler flag to generate shared objects directly from archives.
19110 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19112 # Compiler flag to generate thread-safe objects.
19113 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19115 # Library versioning type.
19116 version_type=$version_type
19118 # Format of library name prefix.
19119 libname_spec=$lt_libname_spec
19121 # List of archive names. First name is the real one, the rest are links.
19122 # The last name is the one that the linker finds with -lNAME.
19123 library_names_spec=$lt_library_names_spec
19125 # The coded name of the library, if different from the real name.
19126 soname_spec=$lt_soname_spec
19128 # Commands used to build and install an old-style archive.
19130 old_archive_cmds=$lt_old_archive_cmds_RC
19131 old_postinstall_cmds=$lt_old_postinstall_cmds
19132 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19134 # Create an old-style archive from a shared archive.
19135 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19137 # Create a temporary old-style archive to link instead of a shared archive.
19138 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19140 # Commands used to build and install a shared archive.
19141 archive_cmds=$lt_archive_cmds_RC
19142 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19143 postinstall_cmds=$lt_postinstall_cmds
19144 postuninstall_cmds=$lt_postuninstall_cmds
19146 # Commands used to build a loadable module (assumed same as above if empty)
19147 module_cmds=$lt_module_cmds_RC
19148 module_expsym_cmds=$lt_module_expsym_cmds_RC
19150 # Commands to strip libraries.
19151 old_striplib=$lt_old_striplib
19152 striplib=$lt_striplib
19154 # Dependencies to place before the objects being linked to create a
19156 predep_objects=$lt_predep_objects_RC
19158 # Dependencies to place after the objects being linked to create a
19160 postdep_objects=$lt_postdep_objects_RC
19162 # Dependencies to place before the objects being linked to create a
19164 predeps=$lt_predeps_RC
19166 # Dependencies to place after the objects being linked to create a
19168 postdeps=$lt_postdeps_RC
19170 # The library search path used internally by the compiler when linking
19171 # a shared library.
19172 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19174 # Method to check whether dependent libraries are shared objects.
19175 deplibs_check_method=$lt_deplibs_check_method
19177 # Command to use when deplibs_check_method == file_magic.
19178 file_magic_cmd=$lt_file_magic_cmd
19180 # Flag that allows shared libraries with undefined symbols to be built.
19181 allow_undefined_flag=$lt_allow_undefined_flag_RC
19183 # Flag that forces no undefined symbols.
19184 no_undefined_flag=$lt_no_undefined_flag_RC
19186 # Commands used to finish a libtool library installation in a directory.
19187 finish_cmds=$lt_finish_cmds
19189 # Same as above, but a single script fragment to be evaled but not shown.
19190 finish_eval=$lt_finish_eval
19192 # Take the output of nm and produce a listing of raw symbols and C names.
19193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19195 # Transform the output of nm in a proper C declaration
19196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19198 # Transform the output of nm in a C name address pair
19199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19201 # This is the shared library runtime path variable.
19202 runpath_var=$runpath_var
19204 # This is the shared library path variable.
19205 shlibpath_var=$shlibpath_var
19207 # Is shlibpath searched before the hard-coded library search path?
19208 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19210 # How to hardcode a shared library path into an executable.
19211 hardcode_action=$hardcode_action_RC
19213 # Whether we should hardcode library paths into libraries.
19214 hardcode_into_libs=$hardcode_into_libs
19216 # Flag to hardcode \$libdir into a binary during linking.
19217 # This must work even if \$libdir does not exist.
19218 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19220 # If ld is used when linking, flag to hardcode \$libdir into
19221 # a binary during linking. This must work even if \$libdir does
19223 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19225 # Whether we need a single -rpath flag with a separated argument.
19226 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19228 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19229 # resulting binary.
19230 hardcode_direct=$hardcode_direct_RC
19232 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19233 # resulting binary.
19234 hardcode_minus_L=$hardcode_minus_L_RC
19236 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19237 # the resulting binary.
19238 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19240 # Set to yes if building a shared library automatically hardcodes DIR into the library
19241 # and all subsequent libraries and executables linked against it.
19242 hardcode_automatic=$hardcode_automatic_RC
19244 # Variables whose values should be saved in libtool wrapper scripts and
19245 # restored at relink time.
19246 variables_saved_for_relink="$variables_saved_for_relink"
19248 # Whether libtool must link a program against all its dependency libraries.
19249 link_all_deplibs=$link_all_deplibs_RC
19251 # Compile-time system search path for libraries
19252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19254 # Run-time system search path for libraries
19255 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19257 # Fix the shell variable \$srcfile for the compiler.
19258 fix_srcfile_path="$fix_srcfile_path_RC"
19260 # Set to yes if exported symbols are required.
19261 always_export_symbols=$always_export_symbols_RC
19263 # The commands to list exported symbols.
19264 export_symbols_cmds=$lt_export_symbols_cmds_RC
19266 # The commands to extract the exported symbol list from a shared archive.
19267 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19269 # Symbols that should not be listed in the preloaded symbols.
19270 exclude_expsyms=$lt_exclude_expsyms_RC
19272 # Symbols that must always be exported.
19273 include_expsyms=$lt_include_expsyms_RC
19275 # ### END LIBTOOL TAG CONFIG: $tagname
19281 # If there is no Makefile yet, we rely on a make rule to execute
19282 # `config.status --recheck' to rerun these tests and create the
19283 # libtool script then.
19284 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19285 if test -f "$ltmain_in"; then
19286 test -f Makefile && make "$ltmain"
19292 ac_cpp='$CPP $CPPFLAGS'
19293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19302 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19303 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19304 { (exit 1); exit 1; }; }
19308 # Append the new tag name to the list of available tags.
19309 if test -n "$tagname" ; then
19310 available_tags="$available_tags $tagname"
19316 # Now substitute the updated list of available tags.
19317 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19318 mv "${ofile}T" "$ofile"
19322 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19323 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19324 { (exit 1); exit 1; }; }
19330 # This can be used to rebuild libtool when needed
19331 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19333 # Always use our own libtool.
19334 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19336 # Prevent multiple expansion
19349 # Check whether --with-system-libtool or --without-system-libtool was given.
19350 if test "${with_system_libtool+set}" = set; then
19351 withval="$with_system_libtool"
19352 # Extract the first word of "libtool", so it can be a program name with args.
19353 set dummy libtool; ac_word=$2
19354 echo "$as_me:$LINENO: checking for $ac_word" >&5
19355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19356 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19365 as_dummy="$PATH:/usr/local/bin"
19366 for as_dir in $as_dummy
19369 test -z "$as_dir" && as_dir=.
19370 for ac_exec_ext in '' $ac_executable_extensions; do
19371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19372 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19382 LIBTOOL=$ac_cv_path_LIBTOOL
19384 if test -n "$LIBTOOL"; then
19385 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19386 echo "${ECHO_T}$LIBTOOL" >&6
19388 echo "$as_me:$LINENO: result: no" >&5
19389 echo "${ECHO_T}no" >&6
19394 LIBTOOL="`pwd`/libtool"
19413 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
19414 if test "${enable_strict_dependencies+set}" = set; then
19415 enableval="$enable_strict_dependencies"
19419 logdir='${localstatedir}/log/radius'
19420 echo "$as_me:$LINENO: checking logdir" >&5
19421 echo $ECHO_N "checking logdir... $ECHO_C" >&6
19423 # Check whether --with-logdir or --without-logdir was given.
19424 if test "${with_logdir+set}" = set; then
19425 withval="$with_logdir"
19428 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19429 echo "$as_me: error: Need logdir" >&2;}
19430 { (exit 1); exit 1; }; }
19441 echo "$as_me:$LINENO: result: $logdir" >&5
19442 echo "${ECHO_T}$logdir" >&6
19444 radacctdir='${logdir}/radacct'
19445 echo "$as_me:$LINENO: checking radacctdir" >&5
19446 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
19448 # Check whether --with-radacctdir or --without-radacctdir was given.
19449 if test "${with_radacctdir+set}" = set; then
19450 withval="$with_radacctdir"
19453 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19454 echo "$as_me: error: Need radacctdir" >&2;}
19455 { (exit 1); exit 1; }; }
19460 radacctdir="$withval"
19466 echo "$as_me:$LINENO: result: $radacctdir" >&5
19467 echo "${ECHO_T}$radacctdir" >&6
19469 raddbdir='${sysconfdir}/raddb'
19470 echo "$as_me:$LINENO: checking raddbdir" >&5
19471 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
19473 # Check whether --with-raddbdir or --without-raddbdir was given.
19474 if test "${with_raddbdir+set}" = set; then
19475 withval="$with_raddbdir"
19478 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19479 echo "$as_me: error: Need raddbdir" >&2;}
19480 { (exit 1); exit 1; }; }
19485 raddbdir="$withval"
19491 echo "$as_me:$LINENO: result: $raddbdir" >&5
19492 echo "${ECHO_T}$raddbdir" >&6
19496 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19497 if test "${with_ascend_binary+set}" = set; then
19498 withval="$with_ascend_binary"
19507 if test "X$ASCEND_BINARY" = "Xyes"; then
19509 cat >>confdefs.h <<\_ACEOF
19510 #define ASCEND_BINARY
19517 # Check whether --with-threads or --without-threads was given.
19518 if test "${with_threads+set}" = set; then
19519 withval="$with_threads"
19531 # Check whether --with-snmp or --without-snmp was given.
19532 if test "${with_snmp+set}" = set; then
19533 withval="$with_snmp"
19543 rad_enable_largefiles=no
19545 # Check whether --with-large-files or --without-large-files was given.
19546 if test "${with_large_files+set}" = set; then
19547 withval="$with_large_files"
19550 rad_enable_largefiles=yes
19562 # Check whether --with-static_modules or --without-static_modules was given.
19563 if test "${with_static_modules+set}" = set; then
19564 withval="$with_static_modules"
19566 for i in $withval; do
19567 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19572 # Check whether --enable-developer or --disable-developer was given.
19573 if test "${enable_developer+set}" = set; then
19574 enableval="$enable_developer"
19575 case "$enableval" in
19585 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19591 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19592 if test "${with_experimental_modules+set}" = set; then
19593 withval="$with_experimental_modules"
19604 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19605 if test "${with_openssl_includes+set}" = set; then
19606 withval="$with_openssl_includes"
19608 *) OPENSSL_INCLUDE_DIR="$withval"
19615 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19616 if test "${with_openssl_libraries+set}" = set; then
19617 withval="$with_openssl_libraries"
19619 *) OPENSSL_LIB_DIR="$withval"
19627 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19628 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19629 withval="$with_rlm_FOO_lib_dir"
19638 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19639 if test "${with_rlm_FOO_include_dir+set}" = set; then
19640 withval="$with_rlm_FOO_include_dir"
19651 # Check whether --with-udpfromto or --without-udpfromto was given.
19652 if test "${with_udpfromto+set}" = set; then
19653 withval="$with_udpfromto"
19664 if test "x$WITH_UDPFROMTO" = "xyes"; then
19666 cat >>confdefs.h <<\_ACEOF
19667 #define WITH_UDPFROMTO
19673 CHECKRAD=checkrad.pl
19674 # Extract the first word of "perl", so it can be a program name with args.
19675 set dummy perl; ac_word=$2
19676 echo "$as_me:$LINENO: checking for $ac_word" >&5
19677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19678 if test "${ac_cv_path_PERL+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19687 for as_dir in $PATH
19690 test -z "$as_dir" && as_dir=.
19691 for ac_exec_ext in '' $ac_executable_extensions; do
19692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19693 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19700 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19704 PERL=$ac_cv_path_PERL
19706 if test -n "$PERL"; then
19707 echo "$as_me:$LINENO: result: $PERL" >&5
19708 echo "${ECHO_T}$PERL" >&6
19710 echo "$as_me:$LINENO: result: no" >&5
19711 echo "${ECHO_T}no" >&6
19714 if test "x$ac_cv_path_PERL" = "x"; then
19715 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19716 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19718 # Extract the first word of "snmpget", so it can be a program name with args.
19719 set dummy snmpget; ac_word=$2
19720 echo "$as_me:$LINENO: checking for $ac_word" >&5
19721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19722 if test "${ac_cv_path_SNMPGET+set}" = set; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19731 for as_dir in $PATH
19734 test -z "$as_dir" && as_dir=.
19735 for ac_exec_ext in '' $ac_executable_extensions; do
19736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19737 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19747 SNMPGET=$ac_cv_path_SNMPGET
19749 if test -n "$SNMPGET"; then
19750 echo "$as_me:$LINENO: result: $SNMPGET" >&5
19751 echo "${ECHO_T}$SNMPGET" >&6
19753 echo "$as_me:$LINENO: result: no" >&5
19754 echo "${ECHO_T}no" >&6
19757 if test "x$ac_cv_path_SNMPGET" = "x"; then
19758 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19759 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19762 # Extract the first word of "snmpwalk", so it can be a program name with args.
19763 set dummy snmpwalk; ac_word=$2
19764 echo "$as_me:$LINENO: checking for $ac_word" >&5
19765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19766 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19775 for as_dir in $PATH
19778 test -z "$as_dir" && as_dir=.
19779 for ac_exec_ext in '' $ac_executable_extensions; do
19780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19781 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19791 SNMPWALK=$ac_cv_path_SNMPWALK
19793 if test -n "$SNMPWALK"; then
19794 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19795 echo "${ECHO_T}$SNMPWALK" >&6
19797 echo "$as_me:$LINENO: result: no" >&5
19798 echo "${ECHO_T}no" >&6
19801 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19802 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19803 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19806 # Extract the first word of "rusers", so it can be a program name with args.
19807 set dummy rusers; ac_word=$2
19808 echo "$as_me:$LINENO: checking for $ac_word" >&5
19809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19810 if test "${ac_cv_path_RUSERS+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819 for as_dir in $PATH
19822 test -z "$as_dir" && as_dir=.
19823 for ac_exec_ext in '' $ac_executable_extensions; do
19824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19825 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19832 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19836 RUSERS=$ac_cv_path_RUSERS
19838 if test -n "$RUSERS"; then
19839 echo "$as_me:$LINENO: result: $RUSERS" >&5
19840 echo "${ECHO_T}$RUSERS" >&6
19842 echo "$as_me:$LINENO: result: no" >&5
19843 echo "${ECHO_T}no" >&6
19847 missing_dir=`cd $ac_aux_dir && pwd`
19848 # expand $ac_aux_dir to an absolute path
19849 am_aux_dir=`cd $ac_aux_dir && pwd`
19851 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19852 # Use eval to expand $SHELL
19853 if eval "$MISSING --run true"; then
19854 am_missing_run="$MISSING --run "
19857 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19858 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19868 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19871 # Extract the first word of "locate", so it can be a program name with args.
19872 set dummy locate; ac_word=$2
19873 echo "$as_me:$LINENO: checking for $ac_word" >&5
19874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19875 if test "${ac_cv_path_LOCATE+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19884 for as_dir in $PATH
19887 test -z "$as_dir" && as_dir=.
19888 for ac_exec_ext in '' $ac_executable_extensions; do
19889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19890 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19900 LOCATE=$ac_cv_path_LOCATE
19902 if test -n "$LOCATE"; then
19903 echo "$as_me:$LINENO: result: $LOCATE" >&5
19904 echo "${ECHO_T}$LOCATE" >&6
19906 echo "$as_me:$LINENO: result: no" >&5
19907 echo "${ECHO_T}no" >&6
19910 # Extract the first word of "dirname", so it can be a program name with args.
19911 set dummy dirname; ac_word=$2
19912 echo "$as_me:$LINENO: checking for $ac_word" >&5
19913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19914 if test "${ac_cv_path_DIRNAME+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19923 for as_dir in $PATH
19926 test -z "$as_dir" && as_dir=.
19927 for ac_exec_ext in '' $ac_executable_extensions; do
19928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19929 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19939 DIRNAME=$ac_cv_path_DIRNAME
19941 if test -n "$DIRNAME"; then
19942 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19943 echo "${ECHO_T}$DIRNAME" >&6
19945 echo "$as_me:$LINENO: result: no" >&5
19946 echo "${ECHO_T}no" >&6
19949 # Extract the first word of "grep", so it can be a program name with args.
19950 set dummy grep; ac_word=$2
19951 echo "$as_me:$LINENO: checking for $ac_word" >&5
19952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19953 if test "${ac_cv_path_GREP+set}" = set; then
19954 echo $ECHO_N "(cached) $ECHO_C" >&6
19958 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19962 for as_dir in $PATH
19965 test -z "$as_dir" && as_dir=.
19966 for ac_exec_ext in '' $ac_executable_extensions; do
19967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19968 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19978 GREP=$ac_cv_path_GREP
19980 if test -n "$GREP"; then
19981 echo "$as_me:$LINENO: result: $GREP" >&5
19982 echo "${ECHO_T}$GREP" >&6
19984 echo "$as_me:$LINENO: result: no" >&5
19985 echo "${ECHO_T}no" >&6
19991 if test "x$WITH_THREADS" = "xyes"; then
19992 if test $ac_cv_prog_suncc = "yes"; then
19993 CFLAGS="$CFLAGS -mt"
19997 for ac_header in pthread.h
19999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20001 echo "$as_me:$LINENO: checking for $ac_header" >&5
20002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20009 # Is the header compilable?
20010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20012 cat >conftest.$ac_ext <<_ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20018 $ac_includes_default
20019 #include <$ac_header>
20021 rm -f conftest.$ac_objext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023 (eval $ac_compile) 2>conftest.er1
20025 grep -v '^ *+' conftest.er1 >conftest.err
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
20030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest.$ac_objext'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 ac_header_compiler=yes
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_header_compiler=no
20049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20051 echo "${ECHO_T}$ac_header_compiler" >&6
20053 # Is the header present?
20054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 #include <$ac_header>
20064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } >/dev/null; then
20072 if test -s conftest.err; then
20073 ac_cpp_err=$ac_c_preproc_warn_flag
20074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20081 if test -z "$ac_cpp_err"; then
20082 ac_header_preproc=yes
20084 echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20087 ac_header_preproc=no
20089 rm -f conftest.err conftest.$ac_ext
20090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20091 echo "${ECHO_T}$ac_header_preproc" >&6
20093 # So? What about this header?
20094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20100 ac_header_preproc=yes
20103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20117 ## ------------------------------------------ ##
20118 ## Report this to the AC_PACKAGE_NAME lists. ##
20119 ## ------------------------------------------ ##
20122 sed "s/^/$as_me: WARNING: /" >&2
20125 echo "$as_me:$LINENO: checking for $ac_header" >&5
20126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 eval "$as_ac_Header=\$ac_header_preproc"
20132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20137 cat >>confdefs.h <<_ACEOF
20138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20148 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20149 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20150 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 ac_check_lib_save_LIBS=$LIBS
20154 LIBS="-lpthread $LIBS"
20155 cat >conftest.$ac_ext <<_ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20162 /* Override any gcc2 internal prototype to avoid an error. */
20166 /* We use char because int might match the return type of a gcc2
20167 builtin and then its argument prototype would still apply. */
20168 char pthread_create ();
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20179 (eval $ac_link) 2>conftest.er1
20181 grep -v '^ *+' conftest.er1 >conftest.err
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } &&
20186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest$ac_exeext'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; }; then
20198 ac_cv_lib_pthread_pthread_create=yes
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20203 ac_cv_lib_pthread_pthread_create=no
20205 rm -f conftest.err conftest.$ac_objext \
20206 conftest$ac_exeext conftest.$ac_ext
20207 LIBS=$ac_check_lib_save_LIBS
20209 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20210 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20211 if test $ac_cv_lib_pthread_pthread_create = yes; then
20212 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20213 LIBS="$LIBS -lpthread"
20215 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20216 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20217 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 ac_check_lib_save_LIBS=$LIBS
20222 cat >conftest.$ac_ext <<_ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20229 /* Override any gcc2 internal prototype to avoid an error. */
20233 /* We use char because int might match the return type of a gcc2
20234 builtin and then its argument prototype would still apply. */
20235 char pthread_create ();
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20246 (eval $ac_link) 2>conftest.er1
20248 grep -v '^ *+' conftest.er1 >conftest.err
20250 cat conftest.err >&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } &&
20253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest$ac_exeext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_cv_lib_c_r_pthread_create=yes
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_cv_lib_c_r_pthread_create=no
20272 rm -f conftest.err conftest.$ac_objext \
20273 conftest$ac_exeext conftest.$ac_ext
20274 LIBS=$ac_check_lib_save_LIBS
20276 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20277 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20278 if test $ac_cv_lib_c_r_pthread_create = yes; then
20279 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20290 if test "x$WITH_THREADS" != "xyes"; then
20292 ac_cv_header_pthread_h="no"
20296 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20297 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
20298 if test "${ac_cv_search_sem_init+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 ac_func_search_save_LIBS=$LIBS
20302 ac_cv_search_sem_init=no
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20310 /* Override any gcc2 internal prototype to avoid an error. */
20314 /* We use char because int might match the return type of a gcc2
20315 builtin and then its argument prototype would still apply. */
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20327 (eval $ac_link) 2>conftest.er1
20329 grep -v '^ *+' conftest.er1 >conftest.err
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } &&
20334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336 (eval $ac_try) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; } &&
20340 { ac_try='test -s conftest$ac_exeext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ac_cv_search_sem_init="none required"
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20352 rm -f conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext conftest.$ac_ext
20354 if test "$ac_cv_search_sem_init" = no; then
20355 for ac_lib in pthread sem posix4 rt semaphore; do
20356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20357 cat >conftest.$ac_ext <<_ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20364 /* Override any gcc2 internal prototype to avoid an error. */
20368 /* We use char because int might match the return type of a gcc2
20369 builtin and then its argument prototype would still apply. */
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381 (eval $ac_link) 2>conftest.er1
20383 grep -v '^ *+' conftest.er1 >conftest.err
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; } &&
20394 { ac_try='test -s conftest$ac_exeext'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_cv_search_sem_init="-l$ac_lib"
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20407 rm -f conftest.err conftest.$ac_objext \
20408 conftest$ac_exeext conftest.$ac_ext
20411 LIBS=$ac_func_search_save_LIBS
20413 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20414 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
20415 if test "$ac_cv_search_sem_init" != no; then
20416 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
20419 { { 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
20420 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;}
20421 { (exit 1); exit 1; }; }
20428 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20429 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
20430 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20431 echo $ECHO_N "(cached) $ECHO_C" >&6
20433 ac_check_lib_save_LIBS=$LIBS
20434 LIBS="-lsocket $LIBS"
20435 cat >conftest.$ac_ext <<_ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h. */
20442 /* Override any gcc2 internal prototype to avoid an error. */
20446 /* We use char because int might match the return type of a gcc2
20447 builtin and then its argument prototype would still apply. */
20448 char getsockname ();
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20459 (eval $ac_link) 2>conftest.er1
20461 grep -v '^ *+' conftest.er1 >conftest.err
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } &&
20466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; } &&
20472 { ac_try='test -s conftest$ac_exeext'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20478 ac_cv_lib_socket_getsockname=yes
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ac_cv_lib_socket_getsockname=no
20485 rm -f conftest.err conftest.$ac_objext \
20486 conftest$ac_exeext conftest.$ac_ext
20487 LIBS=$ac_check_lib_save_LIBS
20489 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20490 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20491 if test $ac_cv_lib_socket_getsockname = yes; then
20492 cat >>confdefs.h <<_ACEOF
20493 #define HAVE_LIBSOCKET 1
20496 LIBS="-lsocket $LIBS"
20502 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20503 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20504 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 ac_check_lib_save_LIBS=$LIBS
20508 LIBS="-lresolv $LIBS"
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20516 /* Override any gcc2 internal prototype to avoid an error. */
20520 /* We use char because int might match the return type of a gcc2
20521 builtin and then its argument prototype would still apply. */
20531 rm -f conftest.$ac_objext conftest$ac_exeext
20532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20533 (eval $ac_link) 2>conftest.er1
20535 grep -v '^ *+' conftest.er1 >conftest.err
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } &&
20540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try='test -s conftest$ac_exeext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 ac_cv_lib_resolv_inet_aton=yes
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20557 ac_cv_lib_resolv_inet_aton=no
20559 rm -f conftest.err conftest.$ac_objext \
20560 conftest$ac_exeext conftest.$ac_ext
20561 LIBS=$ac_check_lib_save_LIBS
20563 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20564 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20565 if test $ac_cv_lib_resolv_inet_aton = yes; then
20566 cat >>confdefs.h <<_ACEOF
20567 #define HAVE_LIBRESOLV 1
20570 LIBS="-lresolv $LIBS"
20576 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20577 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20578 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 ac_check_lib_save_LIBS=$LIBS
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20590 /* Override any gcc2 internal prototype to avoid an error. */
20594 /* We use char because int might match the return type of a gcc2
20595 builtin and then its argument prototype would still apply. */
20605 rm -f conftest.$ac_objext conftest$ac_exeext
20606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20607 (eval $ac_link) 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
20614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; } &&
20620 { ac_try='test -s conftest$ac_exeext'
20621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622 (eval $ac_try) 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 ac_cv_lib_nsl_inet_ntoa=yes
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_cv_lib_nsl_inet_ntoa=no
20633 rm -f conftest.err conftest.$ac_objext \
20634 conftest$ac_exeext conftest.$ac_ext
20635 LIBS=$ac_check_lib_save_LIBS
20637 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20638 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20639 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20640 cat >>confdefs.h <<_ACEOF
20641 #define HAVE_LIBNSL 1
20652 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20655 CFLAGS="$CFLAGS -DDARWIN"
20664 ac_header_dirent=no
20665 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20666 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20667 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20668 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20672 cat >conftest.$ac_ext <<_ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h. */
20678 #include <sys/types.h>
20690 rm -f conftest.$ac_objext
20691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20692 (eval $ac_compile) 2>conftest.er1
20694 grep -v '^ *+' conftest.er1 >conftest.err
20696 cat conftest.err >&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } &&
20699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; } &&
20705 { ac_try='test -s conftest.$ac_objext'
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; }; then
20711 eval "$as_ac_Header=yes"
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20716 eval "$as_ac_Header=no"
20718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20723 cat >>confdefs.h <<_ACEOF
20724 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20727 ac_header_dirent=$ac_hdr; break
20731 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20732 if test $ac_header_dirent = dirent.h; then
20733 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20734 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20735 if test "${ac_cv_search_opendir+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 ac_func_search_save_LIBS=$LIBS
20739 ac_cv_search_opendir=no
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20747 /* Override any gcc2 internal prototype to avoid an error. */
20751 /* We use char because int might match the return type of a gcc2
20752 builtin and then its argument prototype would still apply. */
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20764 (eval $ac_link) 2>conftest.er1
20766 grep -v '^ *+' conftest.er1 >conftest.err
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
20771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest$ac_exeext'
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 ac_cv_search_opendir="none required"
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20789 rm -f conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
20791 if test "$ac_cv_search_opendir" = no; then
20792 for ac_lib in dir; do
20793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20794 cat >conftest.$ac_ext <<_ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20801 /* Override any gcc2 internal prototype to avoid an error. */
20805 /* We use char because int might match the return type of a gcc2
20806 builtin and then its argument prototype would still apply. */
20816 rm -f conftest.$ac_objext conftest$ac_exeext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20818 (eval $ac_link) 2>conftest.er1
20820 grep -v '^ *+' conftest.er1 >conftest.err
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } &&
20825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; } &&
20831 { ac_try='test -s conftest$ac_exeext'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 ac_cv_search_opendir="-l$ac_lib"
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20844 rm -f conftest.err conftest.$ac_objext \
20845 conftest$ac_exeext conftest.$ac_ext
20848 LIBS=$ac_func_search_save_LIBS
20850 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20851 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20852 if test "$ac_cv_search_opendir" != no; then
20853 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20858 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20860 if test "${ac_cv_search_opendir+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 ac_func_search_save_LIBS=$LIBS
20864 ac_cv_search_opendir=no
20865 cat >conftest.$ac_ext <<_ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20872 /* Override any gcc2 internal prototype to avoid an error. */
20876 /* We use char because int might match the return type of a gcc2
20877 builtin and then its argument prototype would still apply. */
20887 rm -f conftest.$ac_objext conftest$ac_exeext
20888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20889 (eval $ac_link) 2>conftest.er1
20891 grep -v '^ *+' conftest.er1 >conftest.err
20893 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } &&
20896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; } &&
20902 { ac_try='test -s conftest$ac_exeext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 ac_cv_search_opendir="none required"
20910 echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20914 rm -f conftest.err conftest.$ac_objext \
20915 conftest$ac_exeext conftest.$ac_ext
20916 if test "$ac_cv_search_opendir" = no; then
20917 for ac_lib in x; do
20918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20919 cat >conftest.$ac_ext <<_ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20926 /* Override any gcc2 internal prototype to avoid an error. */
20930 /* We use char because int might match the return type of a gcc2
20931 builtin and then its argument prototype would still apply. */
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20943 (eval $ac_link) 2>conftest.er1
20945 grep -v '^ *+' conftest.er1 >conftest.err
20947 cat conftest.err >&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } &&
20950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; } &&
20956 { ac_try='test -s conftest$ac_exeext'
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; }; then
20962 ac_cv_search_opendir="-l$ac_lib"
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20969 rm -f conftest.err conftest.$ac_objext \
20970 conftest$ac_exeext conftest.$ac_ext
20973 LIBS=$ac_func_search_save_LIBS
20975 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20976 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20977 if test "$ac_cv_search_opendir" != no; then
20978 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20984 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20985 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20986 if test "${ac_cv_header_stdc+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20989 cat >conftest.$ac_ext <<_ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 #include <stdlib.h>
20996 #include <stdarg.h>
20997 #include <string.h>
21008 rm -f conftest.$ac_objext
21009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21010 (eval $ac_compile) 2>conftest.er1
21012 grep -v '^ *+' conftest.er1 >conftest.err
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } &&
21017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; } &&
21023 { ac_try='test -s conftest.$ac_objext'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ac_cv_header_stdc=yes
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ac_cv_header_stdc=no
21036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21038 if test $ac_cv_header_stdc = yes; then
21039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21040 cat >conftest.$ac_ext <<_ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 #include <string.h>
21049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21050 $EGREP "memchr" >/dev/null 2>&1; then
21053 ac_cv_header_stdc=no
21059 if test $ac_cv_header_stdc = yes; then
21060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21061 cat >conftest.$ac_ext <<_ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21067 #include <stdlib.h>
21070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21071 $EGREP "free" >/dev/null 2>&1; then
21074 ac_cv_header_stdc=no
21080 if test $ac_cv_header_stdc = yes; then
21081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21082 if test "$cross_compiling" = yes; then
21085 cat >conftest.$ac_ext <<_ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21092 #if ((' ' & 0x0FF) == 0x020)
21093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21096 # define ISLOWER(c) \
21097 (('a' <= (c) && (c) <= 'i') \
21098 || ('j' <= (c) && (c) <= 'r') \
21099 || ('s' <= (c) && (c) <= 'z'))
21100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21108 for (i = 0; i < 256; i++)
21109 if (XOR (islower (i), ISLOWER (i))
21110 || toupper (i) != TOUPPER (i))
21115 rm -f conftest$ac_exeext
21116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21117 (eval $ac_link) 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; }; then
21128 echo "$as_me: program exited with status $ac_status" >&5
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ( exit $ac_status )
21133 ac_cv_header_stdc=no
21135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21139 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21140 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21141 if test $ac_cv_header_stdc = yes; then
21143 cat >>confdefs.h <<\_ACEOF
21144 #define STDC_HEADERS 1
21149 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21150 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21151 if test "${ac_cv_header_time+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 cat >conftest.$ac_ext <<_ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21160 #include <sys/types.h>
21161 #include <sys/time.h>
21167 if ((struct tm *) 0)
21173 rm -f conftest.$ac_objext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21175 (eval $ac_compile) 2>conftest.er1
21177 grep -v '^ *+' conftest.er1 >conftest.err
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } &&
21182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; } &&
21188 { ac_try='test -s conftest.$ac_objext'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
21194 ac_cv_header_time=yes
21196 echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21199 ac_cv_header_time=no
21201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21203 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21204 echo "${ECHO_T}$ac_cv_header_time" >&6
21205 if test $ac_cv_header_time = yes; then
21207 cat >>confdefs.h <<\_ACEOF
21208 #define TIME_WITH_SYS_TIME 1
21213 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21214 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21215 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 cat >conftest.$ac_ext <<_ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 #include <sys/types.h>
21225 #include <sys/wait.h>
21226 #ifndef WEXITSTATUS
21227 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21230 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21238 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21243 rm -f conftest.$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245 (eval $ac_compile) 2>conftest.er1
21247 grep -v '^ *+' conftest.er1 >conftest.err
21249 cat conftest.err >&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } &&
21252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; } &&
21258 { ac_try='test -s conftest.$ac_objext'
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
21264 ac_cv_header_sys_wait_h=yes
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21269 ac_cv_header_sys_wait_h=no
21271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21273 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21274 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21275 if test $ac_cv_header_sys_wait_h = yes; then
21277 cat >>confdefs.h <<\_ACEOF
21278 #define HAVE_SYS_WAIT_H 1
21345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21347 echo "$as_me:$LINENO: checking for $ac_header" >&5
21348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21355 # Is the header compilable?
21356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21358 cat >conftest.$ac_ext <<_ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h. */
21364 $ac_includes_default
21365 #include <$ac_header>
21367 rm -f conftest.$ac_objext
21368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21369 (eval $ac_compile) 2>conftest.er1
21371 grep -v '^ *+' conftest.er1 >conftest.err
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } &&
21376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; } &&
21382 { ac_try='test -s conftest.$ac_objext'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21388 ac_header_compiler=yes
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21393 ac_header_compiler=no
21395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21397 echo "${ECHO_T}$ac_header_compiler" >&6
21399 # Is the header present?
21400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21402 cat >conftest.$ac_ext <<_ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 #include <$ac_header>
21410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21413 grep -v '^ *+' conftest.er1 >conftest.err
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } >/dev/null; then
21418 if test -s conftest.err; then
21419 ac_cpp_err=$ac_c_preproc_warn_flag
21420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21427 if test -z "$ac_cpp_err"; then
21428 ac_header_preproc=yes
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ac_header_preproc=no
21435 rm -f conftest.err conftest.$ac_ext
21436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21437 echo "${ECHO_T}$ac_header_preproc" >&6
21439 # So? What about this header?
21440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21446 ac_header_preproc=yes
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21463 ## ------------------------------------------ ##
21464 ## Report this to the AC_PACKAGE_NAME lists. ##
21465 ## ------------------------------------------ ##
21468 sed "s/^/$as_me: WARNING: /" >&2
21471 echo "$as_me:$LINENO: checking for $ac_header" >&5
21472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21474 echo $ECHO_N "(cached) $ECHO_C" >&6
21476 eval "$as_ac_Header=\$ac_header_preproc"
21478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21483 cat >>confdefs.h <<_ACEOF
21484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21493 if test "${ac_cv_header_regex_h+set}" = set; then
21494 echo "$as_me:$LINENO: checking for regex.h" >&5
21495 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21496 if test "${ac_cv_header_regex_h+set}" = set; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21499 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21500 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21502 # Is the header compilable?
21503 echo "$as_me:$LINENO: checking regex.h usability" >&5
21504 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 $ac_includes_default
21514 rm -f conftest.$ac_objext
21515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21516 (eval $ac_compile) 2>conftest.er1
21518 grep -v '^ *+' conftest.er1 >conftest.err
21520 cat conftest.err >&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } &&
21523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; } &&
21529 { ac_try='test -s conftest.$ac_objext'
21530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531 (eval $ac_try) 2>&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; }; then
21535 ac_header_compiler=yes
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 ac_header_compiler=no
21542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21544 echo "${ECHO_T}$ac_header_compiler" >&6
21546 # Is the header present?
21547 echo "$as_me:$LINENO: checking regex.h presence" >&5
21548 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21560 grep -v '^ *+' conftest.er1 >conftest.err
21562 cat conftest.err >&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } >/dev/null; then
21565 if test -s conftest.err; then
21566 ac_cpp_err=$ac_c_preproc_warn_flag
21567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21574 if test -z "$ac_cpp_err"; then
21575 ac_header_preproc=yes
21577 echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21580 ac_header_preproc=no
21582 rm -f conftest.err conftest.$ac_ext
21583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21584 echo "${ECHO_T}$ac_header_preproc" >&6
21586 # So? What about this header?
21587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21589 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21590 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21591 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21592 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21593 ac_header_preproc=yes
21596 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21597 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21598 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21599 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21600 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21601 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21602 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21603 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
21604 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21605 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21606 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21607 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21610 ## ------------------------------------------ ##
21611 ## Report this to the AC_PACKAGE_NAME lists. ##
21612 ## ------------------------------------------ ##
21615 sed "s/^/$as_me: WARNING: /" >&2
21618 echo "$as_me:$LINENO: checking for regex.h" >&5
21619 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21620 if test "${ac_cv_header_regex_h+set}" = set; then
21621 echo $ECHO_N "(cached) $ECHO_C" >&6
21623 ac_cv_header_regex_h=$ac_header_preproc
21625 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21626 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21629 if test $ac_cv_header_regex_h = yes; then
21631 cat >>confdefs.h <<\_ACEOF
21632 #define HAVE_REGEX_H
21638 if test "x$ac_cv_header_regex_h" = "xyes"; then
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21648 #ifdef REG_EXTENDED
21653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21654 $EGREP "yes" >/dev/null 2>&1; then
21656 cat >>confdefs.h <<\_ACEOF
21657 #define HAVE_REG_EXTENDED
21667 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21670 cat >>confdefs.h <<\_ACEOF
21676 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21679 cat >>confdefs.h <<\_ACEOF
21685 smart_try_dir="$OPENSSL_INCLUDE_DIR"
21686 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
21689 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
21690 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21691 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
21693 old_CFLAGS="$CFLAGS"
21697 if test "x$smart_try_dir" != "x"; then
21698 for try in $smart_try_dir; do
21699 CFLAGS="$old_CFLAGS -I$try"
21700 cat >conftest.$ac_ext <<_ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21707 #include <openssl/ssl.h>
21716 rm -f conftest.$ac_objext
21717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718 (eval $ac_compile) 2>conftest.er1
21720 grep -v '^ *+' conftest.er1 >conftest.err
21722 cat conftest.err >&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } &&
21725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; } &&
21731 { ac_try='test -s conftest.$ac_objext'
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; }; then
21737 smart_include="-I$try"
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21745 if test "x$smart_include" != "x"; then
21748 CFLAGS="$old_CFLAGS"
21752 if test "x$smart_include" = "x"; then
21753 cat >conftest.$ac_ext <<_ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21760 #include <openssl/ssl.h>
21769 rm -f conftest.$ac_objext
21770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21771 (eval $ac_compile) 2>conftest.er1
21773 grep -v '^ *+' conftest.er1 >conftest.err
21775 cat conftest.err >&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } &&
21778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780 (eval $ac_try) 2>&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; } &&
21784 { ac_try='test -s conftest.$ac_objext'
21785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786 (eval $ac_try) 2>&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; }; then
21792 echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21800 if test "x$smart_include" = "x"; then
21803 if test "x$LOCATE" != "x"; then
21807 for x in `${LOCATE} $file 2>/dev/null`; do
21808 base=`echo $x | sed "s%/${file}%%"`
21809 if test "x$x" = "x$base"; then
21813 dir=`${DIRNAME} $x 2>/dev/null`
21814 exclude=`echo ${dir} | ${GREP} /home`
21815 if test "x$exclude" != "x"; then
21819 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21820 if test "x$already" = "x"; then
21826 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21829 for try in $smart_include_dir /usr/local/include /opt/include; do
21830 CFLAGS="$old_CFLAGS -I$try"
21831 cat >conftest.$ac_ext <<_ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21838 #include <openssl/ssl.h>
21847 rm -f conftest.$ac_objext
21848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21849 (eval $ac_compile) 2>conftest.er1
21851 grep -v '^ *+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } &&
21856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 (eval $ac_try) 2>&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; } &&
21862 { ac_try='test -s conftest.$ac_objext'
21863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21864 (eval $ac_try) 2>&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); }; }; then
21868 smart_include="-I$try"
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21876 if test "x$smart_include" != "x"; then
21879 CFLAGS="$old_CFLAGS"
21883 if test "x$smart_include" != "x"; then
21884 echo "$as_me:$LINENO: result: yes" >&5
21885 echo "${ECHO_T}yes" >&6
21886 eval "ac_cv_header_$ac_safe=yes"
21887 CFLAGS="$old_CFLAGS $smart_include"
21888 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21890 echo "$as_me:$LINENO: result: no" >&5
21891 echo "${ECHO_T}no" >&6
21896 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21898 cat >>confdefs.h <<\_ACEOF
21899 #define HAVE_OPENSSL_SSL_H
21902 old_CPPFLAGS="$CPPFLAGS"
21903 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21904 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21919 echo "$as_me:$LINENO: checking for $ac_header" >&5
21920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21927 # Is the header compilable?
21928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21930 cat >conftest.$ac_ext <<_ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h. */
21936 $ac_includes_default
21937 #include <$ac_header>
21939 rm -f conftest.$ac_objext
21940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21941 (eval $ac_compile) 2>conftest.er1
21943 grep -v '^ *+' conftest.er1 >conftest.err
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } &&
21948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950 (eval $ac_try) 2>&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; } &&
21954 { ac_try='test -s conftest.$ac_objext'
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; }; then
21960 ac_header_compiler=yes
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21965 ac_header_compiler=no
21967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21969 echo "${ECHO_T}$ac_header_compiler" >&6
21971 # Is the header present?
21972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21974 cat >conftest.$ac_ext <<_ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 #include <$ac_header>
21982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21985 grep -v '^ *+' conftest.er1 >conftest.err
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } >/dev/null; then
21990 if test -s conftest.err; then
21991 ac_cpp_err=$ac_c_preproc_warn_flag
21992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21999 if test -z "$ac_cpp_err"; then
22000 ac_header_preproc=yes
22002 echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22005 ac_header_preproc=no
22007 rm -f conftest.err conftest.$ac_ext
22008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22009 echo "${ECHO_T}$ac_header_preproc" >&6
22011 # So? What about this header?
22012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22018 ac_header_preproc=yes
22021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22035 ## ------------------------------------------ ##
22036 ## Report this to the AC_PACKAGE_NAME lists. ##
22037 ## ------------------------------------------ ##
22040 sed "s/^/$as_me: WARNING: /" >&2
22043 echo "$as_me:$LINENO: checking for $ac_header" >&5
22044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22046 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 eval "$as_ac_Header=\$ac_header_preproc"
22050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22055 cat >>confdefs.h <<_ACEOF
22056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22063 CPPFLAGS="$old_CPPFLAGS"
22065 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22066 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
22067 old_CPPFLAGS=$CPPFLAGS
22069 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22070 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
22072 cat >conftest.$ac_ext <<_ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22078 #include <openssl/crypto.h>
22079 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22085 $EGREP "yes" >/dev/null 2>&1; then
22090 if test "x$goodssl" != "xyes"; then
22091 echo "$as_me:$LINENO: result: no" >&5
22092 echo "${ECHO_T}no" >&6
22096 echo "$as_me:$LINENO: result: yes" >&5
22097 echo "${ECHO_T}yes" >&6
22099 # Look for the OpenSSL libraries.
22100 smart_try_dir=$OPENSSL_LIB_DIR
22103 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
22104 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
22105 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
22106 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
22112 if test "x$smart_try_dir" != "x"; then
22113 for try in $smart_try_dir; do
22114 LIBS="-L$try -lcrypto $old_LIBS"
22115 cat >conftest.$ac_ext <<_ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h. */
22121 extern char DH_new();
22130 rm -f conftest.$ac_objext conftest$ac_exeext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132 (eval $ac_link) 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
22139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; } &&
22145 { ac_try='test -s conftest$ac_exeext'
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22151 smart_lib="-L$try -lcrypto"
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22157 rm -f conftest.err conftest.$ac_objext \
22158 conftest$ac_exeext conftest.$ac_ext
22159 if test "x$smart_lib" != "x"; then
22166 if test "x$smart_lib" = "x"; then
22167 LIBS="-lcrypto $old_LIBS"
22168 cat >conftest.$ac_ext <<_ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 extern char DH_new();
22183 rm -f conftest.$ac_objext conftest$ac_exeext
22184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22185 (eval $ac_link) 2>conftest.er1
22187 grep -v '^ *+' conftest.er1 >conftest.err
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } &&
22192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; } &&
22198 { ac_try='test -s conftest$ac_exeext'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; }; then
22204 smart_lib="-lcrypto"
22206 echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22210 rm -f conftest.err conftest.$ac_objext \
22211 conftest$ac_exeext conftest.$ac_ext
22215 if test "x$smart_lib" = "x"; then
22218 if test "x$LOCATE" != "x"; then
22220 file=libcrypto${libltdl_cv_shlibext}
22222 for x in `${LOCATE} $file 2>/dev/null`; do
22223 base=`echo $x | sed "s%/${file}%%"`
22224 if test "x$x" = "x$base"; then
22228 dir=`${DIRNAME} $x 2>/dev/null`
22229 exclude=`echo ${dir} | ${GREP} /home`
22230 if test "x$exclude" != "x"; then
22234 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22235 if test "x$already" = "x"; then
22241 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22245 if test "x$LOCATE" != "x"; then
22249 for x in `${LOCATE} $file 2>/dev/null`; do
22250 base=`echo $x | sed "s%/${file}%%"`
22251 if test "x$x" = "x$base"; then
22255 dir=`${DIRNAME} $x 2>/dev/null`
22256 exclude=`echo ${dir} | ${GREP} /home`
22257 if test "x$exclude" != "x"; then
22261 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22262 if test "x$already" = "x"; then
22268 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22271 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
22272 LIBS="-L$try -lcrypto $old_LIBS"
22273 cat >conftest.$ac_ext <<_ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 extern char DH_new();
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22290 (eval $ac_link) 2>conftest.er1
22292 grep -v '^ *+' conftest.er1 >conftest.err
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } &&
22297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; } &&
22303 { ac_try='test -s conftest$ac_exeext'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 smart_lib="-L$try -lcrypto"
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22315 rm -f conftest.err conftest.$ac_objext \
22316 conftest$ac_exeext conftest.$ac_ext
22317 if test "x$smart_lib" != "x"; then
22324 if test "x$smart_lib" != "x"; then
22325 echo "$as_me:$LINENO: result: yes" >&5
22326 echo "${ECHO_T}yes" >&6
22327 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
22328 LIBS="$smart_lib $old_LIBS"
22329 SMART_LIBS="$smart_lib $SMART_LIBS"
22331 echo "$as_me:$LINENO: result: no" >&5
22332 echo "${ECHO_T}no" >&6
22335 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
22338 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
22339 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
22340 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
22341 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
22347 if test "x$smart_try_dir" != "x"; then
22348 for try in $smart_try_dir; do
22349 LIBS="-L$try -lssl $old_LIBS"
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22356 extern char SSL_new();
22365 rm -f conftest.$ac_objext conftest$ac_exeext
22366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22367 (eval $ac_link) 2>conftest.er1
22369 grep -v '^ *+' conftest.er1 >conftest.err
22371 cat conftest.err >&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); } &&
22374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; } &&
22380 { ac_try='test -s conftest$ac_exeext'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; }; then
22386 smart_lib="-L$try -lssl"
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22392 rm -f conftest.err conftest.$ac_objext \
22393 conftest$ac_exeext conftest.$ac_ext
22394 if test "x$smart_lib" != "x"; then
22401 if test "x$smart_lib" = "x"; then
22402 LIBS="-lssl $old_LIBS"
22403 cat >conftest.$ac_ext <<_ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h. */
22409 extern char SSL_new();
22418 rm -f conftest.$ac_objext conftest$ac_exeext
22419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22420 (eval $ac_link) 2>conftest.er1
22422 grep -v '^ *+' conftest.er1 >conftest.err
22424 cat conftest.err >&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } &&
22427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; } &&
22433 { ac_try='test -s conftest$ac_exeext'
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; }; then
22441 echo "$as_me: failed program was:" >&5
22442 sed 's/^/| /' conftest.$ac_ext >&5
22445 rm -f conftest.err conftest.$ac_objext \
22446 conftest$ac_exeext conftest.$ac_ext
22450 if test "x$smart_lib" = "x"; then
22453 if test "x$LOCATE" != "x"; then
22455 file=libssl${libltdl_cv_shlibext}
22457 for x in `${LOCATE} $file 2>/dev/null`; do
22458 base=`echo $x | sed "s%/${file}%%"`
22459 if test "x$x" = "x$base"; then
22463 dir=`${DIRNAME} $x 2>/dev/null`
22464 exclude=`echo ${dir} | ${GREP} /home`
22465 if test "x$exclude" != "x"; then
22469 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22470 if test "x$already" = "x"; then
22476 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22480 if test "x$LOCATE" != "x"; then
22484 for x in `${LOCATE} $file 2>/dev/null`; do
22485 base=`echo $x | sed "s%/${file}%%"`
22486 if test "x$x" = "x$base"; then
22490 dir=`${DIRNAME} $x 2>/dev/null`
22491 exclude=`echo ${dir} | ${GREP} /home`
22492 if test "x$exclude" != "x"; then
22496 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22497 if test "x$already" = "x"; then
22503 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22506 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
22507 LIBS="-L$try -lssl $old_LIBS"
22508 cat >conftest.$ac_ext <<_ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h. */
22514 extern char SSL_new();
22523 rm -f conftest.$ac_objext conftest$ac_exeext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22525 (eval $ac_link) 2>conftest.er1
22527 grep -v '^ *+' conftest.er1 >conftest.err
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; } &&
22538 { ac_try='test -s conftest$ac_exeext'
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; }; then
22544 smart_lib="-L$try -lssl"
22546 echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22550 rm -f conftest.err conftest.$ac_objext \
22551 conftest$ac_exeext conftest.$ac_ext
22552 if test "x$smart_lib" != "x"; then
22559 if test "x$smart_lib" != "x"; then
22560 echo "$as_me:$LINENO: result: yes" >&5
22561 echo "${ECHO_T}yes" >&6
22562 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
22563 LIBS="$smart_lib $old_LIBS"
22564 SMART_LIBS="$smart_lib $SMART_LIBS"
22566 echo "$as_me:$LINENO: result: no" >&5
22567 echo "${ECHO_T}no" >&6
22570 if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
22571 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22572 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
22574 if test "x$OPENSSL_LIB_DIR" != "x"; then
22575 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
22577 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
22584 CPPFLAGS=$old_CPPFLAGS
22589 export OPENSSL_LIBS
22592 echo "$as_me:$LINENO: checking for off_t" >&5
22593 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22594 if test "${ac_cv_type_off_t+set}" = set; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22597 cat >conftest.$ac_ext <<_ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22603 $ac_includes_default
22609 if (sizeof (off_t))
22615 rm -f conftest.$ac_objext
22616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22617 (eval $ac_compile) 2>conftest.er1
22619 grep -v '^ *+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } &&
22624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
22630 { ac_try='test -s conftest.$ac_objext'
22631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; }; then
22636 ac_cv_type_off_t=yes
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 ac_cv_type_off_t=no
22643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22645 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22646 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22647 if test $ac_cv_type_off_t = yes; then
22651 cat >>confdefs.h <<_ACEOF
22657 echo "$as_me:$LINENO: checking for pid_t" >&5
22658 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22659 if test "${ac_cv_type_pid_t+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 cat >conftest.$ac_ext <<_ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 $ac_includes_default
22674 if (sizeof (pid_t))
22680 rm -f conftest.$ac_objext
22681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22682 (eval $ac_compile) 2>conftest.er1
22684 grep -v '^ *+' conftest.er1 >conftest.err
22686 cat conftest.err >&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } &&
22689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; } &&
22695 { ac_try='test -s conftest.$ac_objext'
22696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22697 (eval $ac_try) 2>&5
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); }; }; then
22701 ac_cv_type_pid_t=yes
22703 echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22706 ac_cv_type_pid_t=no
22708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22710 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22711 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22712 if test $ac_cv_type_pid_t = yes; then
22716 cat >>confdefs.h <<_ACEOF
22722 echo "$as_me:$LINENO: checking for size_t" >&5
22723 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22724 if test "${ac_cv_type_size_t+set}" = set; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22727 cat >conftest.$ac_ext <<_ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22733 $ac_includes_default
22739 if (sizeof (size_t))
22745 rm -f conftest.$ac_objext
22746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22747 (eval $ac_compile) 2>conftest.er1
22749 grep -v '^ *+' conftest.er1 >conftest.err
22751 cat conftest.err >&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } &&
22754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; } &&
22760 { ac_try='test -s conftest.$ac_objext'
22761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762 (eval $ac_try) 2>&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); }; }; then
22766 ac_cv_type_size_t=yes
22768 echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22771 ac_cv_type_size_t=no
22773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22775 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22776 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22777 if test $ac_cv_type_size_t = yes; then
22781 cat >>confdefs.h <<_ACEOF
22782 #define size_t unsigned
22787 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22788 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22789 if test "${ac_cv_type_uid_t+set}" = set; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22792 cat >conftest.$ac_ext <<_ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h. */
22798 #include <sys/types.h>
22801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22802 $EGREP "uid_t" >/dev/null 2>&1; then
22803 ac_cv_type_uid_t=yes
22805 ac_cv_type_uid_t=no
22810 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22811 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22812 if test $ac_cv_type_uid_t = no; then
22814 cat >>confdefs.h <<\_ACEOF
22819 cat >>confdefs.h <<\_ACEOF
22827 echo "$as_me:$LINENO: checking for socklen_t" >&5
22828 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22829 if test "${ac_cv_type_socklen_t+set}" = set; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22832 ac_cv_type_socklen_t=no
22833 cat >conftest.$ac_ext <<_ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 #ifdef HAVE_SYS_TYPES_H
22840 #include <sys/types.h>
22842 #ifdef HAVE_SYS_SOCKET_H
22843 #include <sys/socket.h>
22854 rm -f conftest.$ac_objext
22855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22856 (eval $ac_compile) 2>conftest.er1
22858 grep -v '^ *+' conftest.er1 >conftest.err
22860 cat conftest.err >&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
22863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; } &&
22869 { ac_try='test -s conftest.$ac_objext'
22870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871 (eval $ac_try) 2>&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; }; then
22875 ac_cv_type_socklen_t=yes
22877 echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22885 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22886 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22888 if test "$ac_cv_type_socklen_t" != "yes"; then
22890 cat >>confdefs.h <<\_ACEOF
22891 #define socklen_t int
22898 echo "$as_me:$LINENO: checking for uint8_t" >&5
22899 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22900 if test "${ac_cv_type_uint8_t+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 ac_cv_type_uint8_t=no
22904 cat >conftest.$ac_ext <<_ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 #ifdef HAVE_INTTYPES_H
22911 #include <inttypes.h>
22913 #ifdef HAVE_STDINT_H
22914 #include <stdint.h>
22925 rm -f conftest.$ac_objext
22926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22927 (eval $ac_compile) 2>conftest.er1
22929 grep -v '^ *+' conftest.er1 >conftest.err
22931 cat conftest.err >&5
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); } &&
22934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936 (eval $ac_try) 2>&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); }; } &&
22940 { ac_try='test -s conftest.$ac_objext'
22941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942 (eval $ac_try) 2>&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); }; }; then
22946 ac_cv_type_uint8_t=yes
22948 echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22956 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22957 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22959 if test "$ac_cv_type_uint8_t" != "yes"; then
22961 cat >>confdefs.h <<\_ACEOF
22962 #define uint8_t unsigned char
22969 echo "$as_me:$LINENO: checking for uint16_t" >&5
22970 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22971 if test "${ac_cv_type_uint16_t+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 ac_cv_type_uint16_t=no
22975 cat >conftest.$ac_ext <<_ACEOF
22978 cat confdefs.h >>conftest.$ac_ext
22979 cat >>conftest.$ac_ext <<_ACEOF
22980 /* end confdefs.h. */
22981 #ifdef HAVE_INTTYPES_H
22982 #include <inttypes.h>
22984 #ifdef HAVE_STDINT_H
22985 #include <stdint.h>
22996 rm -f conftest.$ac_objext
22997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22998 (eval $ac_compile) 2>conftest.er1
23000 grep -v '^ *+' conftest.er1 >conftest.err
23002 cat conftest.err >&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } &&
23005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; } &&
23011 { ac_try='test -s conftest.$ac_objext'
23012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); }; }; then
23017 ac_cv_type_uint16_t=yes
23019 echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23027 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23028 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
23030 if test "$ac_cv_type_uint16_t" != "yes"; then
23032 cat >>confdefs.h <<\_ACEOF
23033 #define uint16_t unsigned short
23040 echo "$as_me:$LINENO: checking for uint32_t" >&5
23041 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
23042 if test "${ac_cv_type_uint32_t+set}" = set; then
23043 echo $ECHO_N "(cached) $ECHO_C" >&6
23045 ac_cv_type_uint32_t=no
23046 cat >conftest.$ac_ext <<_ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 #ifdef HAVE_INTTYPES_H
23053 #include <inttypes.h>
23055 #ifdef HAVE_STDINT_H
23056 #include <stdint.h>
23067 rm -f conftest.$ac_objext
23068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23069 (eval $ac_compile) 2>conftest.er1
23071 grep -v '^ *+' conftest.er1 >conftest.err
23073 cat conftest.err >&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } &&
23076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078 (eval $ac_try) 2>&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; } &&
23082 { ac_try='test -s conftest.$ac_objext'
23083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084 (eval $ac_try) 2>&5
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; }; then
23088 ac_cv_type_uint32_t=yes
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23098 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23099 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
23101 if test "$ac_cv_type_uint32_t" != "yes"; then
23103 cat >>confdefs.h <<\_ACEOF
23104 #define uint32_t unsigned int
23110 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
23111 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
23112 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 cat >conftest.$ac_ext <<_ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23122 #ifdef HAVE_NETINET_IN_H
23123 #include <netinet/in.h>
23130 if ((struct in6_addr *) 0)
23132 if (sizeof (struct in6_addr))
23138 rm -f conftest.$ac_objext
23139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23140 (eval $ac_compile) 2>conftest.er1
23142 grep -v '^ *+' conftest.er1 >conftest.err
23144 cat conftest.err >&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } &&
23147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149 (eval $ac_try) 2>&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); }; } &&
23153 { ac_try='test -s conftest.$ac_objext'
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; }; then
23159 ac_cv_type_struct_in6_addr=yes
23161 echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23164 ac_cv_type_struct_in6_addr=no
23166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23168 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23169 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
23170 if test $ac_cv_type_struct_in6_addr = yes; then
23172 cat >>confdefs.h <<\_ACEOF
23173 #define HAVE_STRUCT_IN6_ADDR 1
23179 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23180 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
23181 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23184 cat >conftest.$ac_ext <<_ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h. */
23191 #ifdef HAVE_NETINET_IN_H
23192 #include <netinet/in.h>
23199 if ((struct sockaddr_storage *) 0)
23201 if (sizeof (struct sockaddr_storage))
23207 rm -f conftest.$ac_objext
23208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23209 (eval $ac_compile) 2>conftest.er1
23211 grep -v '^ *+' conftest.er1 >conftest.err
23213 cat conftest.err >&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); } &&
23216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218 (eval $ac_try) 2>&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); }; } &&
23222 { ac_try='test -s conftest.$ac_objext'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; }; then
23228 ac_cv_type_struct_sockaddr_storage=yes
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_cv_type_struct_sockaddr_storage=no
23235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23237 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23238 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
23239 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23248 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23249 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
23250 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23253 cat >conftest.$ac_ext <<_ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h. */
23260 #ifdef HAVE_NETINET_IN_H
23261 #include <netinet/in.h>
23268 if ((struct sockaddr_in6 *) 0)
23270 if (sizeof (struct sockaddr_in6))
23276 rm -f conftest.$ac_objext
23277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23278 (eval $ac_compile) 2>conftest.er1
23280 grep -v '^ *+' conftest.er1 >conftest.err
23282 cat conftest.err >&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } &&
23285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287 (eval $ac_try) 2>&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; } &&
23291 { ac_try='test -s conftest.$ac_objext'
23292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293 (eval $ac_try) 2>&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; }; then
23297 ac_cv_type_struct_sockaddr_in6=yes
23299 echo "$as_me: failed program was:" >&5
23300 sed 's/^/| /' conftest.$ac_ext >&5
23302 ac_cv_type_struct_sockaddr_in6=no
23304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23306 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23307 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
23308 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23310 cat >>confdefs.h <<\_ACEOF
23311 #define HAVE_STRUCT_SOCKADDR_IN6 1
23317 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23318 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
23319 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23322 cat >conftest.$ac_ext <<_ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23329 #ifdef HAVE_SYS_TYPES_H
23330 #include <sys/types.h>
23332 #ifdef HAVE_SYS_SOCKET_H
23333 #include <sys/socket.h>
23335 #ifdef HAVE_NETDB_H
23343 if ((struct addrinfo *) 0)
23345 if (sizeof (struct addrinfo))
23351 rm -f conftest.$ac_objext
23352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23353 (eval $ac_compile) 2>conftest.er1
23355 grep -v '^ *+' conftest.er1 >conftest.err
23357 cat conftest.err >&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } &&
23360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362 (eval $ac_try) 2>&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); }; } &&
23366 { ac_try='test -s conftest.$ac_objext'
23367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368 (eval $ac_try) 2>&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 ac_cv_type_struct_addrinfo=yes
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23377 ac_cv_type_struct_addrinfo=no
23379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23381 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23382 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
23383 if test $ac_cv_type_struct_addrinfo = yes; then
23385 cat >>confdefs.h <<\_ACEOF
23386 #define HAVE_STRUCT_ADDRINFO 1
23451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23452 echo "$as_me:$LINENO: checking for $ac_func" >&5
23453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23454 if eval "test \"\${$as_ac_var+set}\" = set"; then
23455 echo $ECHO_N "(cached) $ECHO_C" >&6
23457 cat >conftest.$ac_ext <<_ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h. */
23463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23465 #define $ac_func innocuous_$ac_func
23467 /* System header to define __stub macros and hopefully few prototypes,
23468 which can conflict with char $ac_func (); below.
23469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23470 <limits.h> exists even on freestanding compilers. */
23473 # include <limits.h>
23475 # include <assert.h>
23480 /* Override any gcc2 internal prototype to avoid an error. */
23485 /* We use char because int might match the return type of a gcc2
23486 builtin and then its argument prototype would still apply. */
23488 /* The GNU C library defines this for functions which it implements
23489 to always fail with ENOSYS. Some functions are actually named
23490 something starting with __ and the normal name is an alias. */
23491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23494 char (*f) () = $ac_func;
23503 return f != $ac_func;
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23510 (eval $ac_link) 2>conftest.er1
23512 grep -v '^ *+' conftest.er1 >conftest.err
23514 cat conftest.err >&5
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); } &&
23517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519 (eval $ac_try) 2>&5
23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); }; } &&
23523 { ac_try='test -s conftest$ac_exeext'
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; }; then
23529 eval "$as_ac_var=yes"
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 eval "$as_ac_var=no"
23536 rm -f conftest.err conftest.$ac_objext \
23537 conftest$ac_exeext conftest.$ac_ext
23539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23541 if test `eval echo '${'$as_ac_var'}'` = yes; then
23542 cat >>confdefs.h <<_ACEOF
23543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23560 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23561 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
23562 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
23563 echo $ECHO_N "(cached) $ECHO_C" >&6
23565 cat >conftest.$ac_ext <<_ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23573 #include <string.h>
23574 #ifdef HAVE_UNISTD_H
23575 #include <unistd.h>
23577 #ifdef HAVE_CRYPT_H
23580 #ifdef HAVE_ERRNO_H
23583 #ifdef HAVE_RESOURCE_H
23584 #include <resource.h>
23586 #ifdef HAVE_GETOPT_H
23587 #include <getopt.h>
23589 #ifdef HAVE_MALLOC_H
23590 #include <malloc.h>
23595 #ifdef HAVE_UTMPX_H
23598 #ifdef HAVE_SYS_SELECT_H
23599 #include <sys/select.h>
23601 #ifdef HAVE_DLFCN_H
23604 #ifdef HAVE_REGEX_H
23607 #ifdef HAVE_SYSLOG_H
23608 #include <syslog.h>
23610 #ifdef HAVE_INTTYPES_H
23611 #include <inttypes.h>
23613 #ifdef HAVE_STDINT_H
23614 #include <stdint.h>
23616 #ifdef HAVE_ARPA_INET_H
23617 #include <arpa/inet.h>
23623 char *(*pfn) = (char *(*)) $ac_func
23628 rm -f conftest.$ac_objext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23630 (eval $ac_compile) 2>conftest.er1
23632 grep -v '^ *+' conftest.er1 >conftest.err
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
23637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } &&
23643 { ac_try='test -s conftest.$ac_objext'
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; }; then
23649 eval "radius_cv_decl_needed_$ac_func=no"
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 eval "radius_cv_decl_needed_$ac_func=yes"
23656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23659 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23660 echo "$as_me:$LINENO: result: yes" >&5
23661 echo "${ECHO_T}yes" >&6
23662 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23663 cat >>confdefs.h <<_ACEOF
23664 #define $radius_tr_decl 1
23668 echo "$as_me:$LINENO: result: no" >&5
23669 echo "${ECHO_T}no" >&6
23675 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23676 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23677 if test "${ac_cv_type_signal+set}" = set; then
23678 echo $ECHO_N "(cached) $ECHO_C" >&6
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 #include <sys/types.h>
23687 #include <signal.h>
23692 extern "C" void (*signal (int, void (*)(int)))(int);
23694 void (*signal ()) ();
23705 rm -f conftest.$ac_objext
23706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23707 (eval $ac_compile) 2>conftest.er1
23709 grep -v '^ *+' conftest.er1 >conftest.err
23711 cat conftest.err >&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } &&
23714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716 (eval $ac_try) 2>&5
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; } &&
23720 { ac_try='test -s conftest.$ac_objext'
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; }; then
23726 ac_cv_type_signal=void
23728 echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23731 ac_cv_type_signal=int
23733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23735 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23736 echo "${ECHO_T}$ac_cv_type_signal" >&6
23738 cat >>confdefs.h <<_ACEOF
23739 #define RETSIGTYPE $ac_cv_type_signal
23744 if test "x$ac_cv_header_utmpx_h" = "xyes"
23747 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23748 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23751 cat >conftest.$ac_ext <<_ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23760 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23766 int foo = offsetof(struct utmpx, ut_xtime)
23771 rm -f conftest.$ac_objext
23772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23773 (eval $ac_compile) 2>conftest.er1
23775 grep -v '^ *+' conftest.er1 >conftest.err
23777 cat conftest.err >&5
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); } &&
23780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782 (eval $ac_try) 2>&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); }; } &&
23786 { ac_try='test -s conftest.$ac_objext'
23787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788 (eval $ac_try) 2>&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); }; }; then
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23801 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23802 if test "x$has_element" != "x"; then
23803 echo "$as_me:$LINENO: result: yes" >&5
23804 echo "${ECHO_T}yes" >&6
23805 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23807 echo "$as_me:$LINENO: result: no" >&5
23808 echo "${ECHO_T}no" >&6
23809 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23812 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23815 cat >>confdefs.h <<\_ACEOF
23816 #define ut_xtime ut_tv.tv_sec
23823 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23824 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23827 cat >conftest.$ac_ext <<_ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h. */
23834 #include <netinet/in.h>
23836 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23842 int foo = offsetof(struct in_pktinfo, ipi_addr)
23847 rm -f conftest.$ac_objext
23848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23849 (eval $ac_compile) 2>conftest.er1
23851 grep -v '^ *+' conftest.er1 >conftest.err
23853 cat conftest.err >&5
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); } &&
23856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858 (eval $ac_try) 2>&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); }; } &&
23862 { ac_try='test -s conftest.$ac_objext'
23863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23864 (eval $ac_try) 2>&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); }; }; then
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23877 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23878 if test "x$has_element" != "x"; then
23879 echo "$as_me:$LINENO: result: yes" >&5
23880 echo "${ECHO_T}yes" >&6
23881 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23883 echo "$as_me:$LINENO: result: no" >&5
23884 echo "${ECHO_T}no" >&6
23885 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23888 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23891 cat >>confdefs.h <<\_ACEOF
23892 #define HAVE_IP_PKTINFO
23898 echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23899 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6
23902 cat >conftest.$ac_ext <<_ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h. */
23909 #include <netinet/in.h>
23911 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23917 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23922 rm -f conftest.$ac_objext
23923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23924 (eval $ac_compile) 2>conftest.er1
23926 grep -v '^ *+' conftest.er1 >conftest.err
23928 cat conftest.err >&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); } &&
23931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23933 (eval $ac_try) 2>&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); }; } &&
23937 { ac_try='test -s conftest.$ac_objext'
23938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23939 (eval $ac_try) 2>&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); }; }; then
23945 echo "$as_me: failed program was:" >&5
23946 sed 's/^/| /' conftest.$ac_ext >&5
23950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23952 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23953 if test "x$has_element" != "x"; then
23954 echo "$as_me:$LINENO: result: yes" >&5
23955 echo "${ECHO_T}yes" >&6
23956 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23958 echo "$as_me:$LINENO: result: no" >&5
23959 echo "${ECHO_T}no" >&6
23960 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23963 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23966 cat >>confdefs.h <<\_ACEOF
23967 #define HAVE_IN6_PKTINFO
23973 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23974 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23975 if test "${ac_cv_c_const+set}" = set; then
23976 echo $ECHO_N "(cached) $ECHO_C" >&6
23978 cat >conftest.$ac_ext <<_ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23988 /* FIXME: Include the comments suggested by Paul. */
23989 #ifndef __cplusplus
23990 /* Ultrix mips cc rejects this. */
23991 typedef int charset[2];
23993 /* SunOS 4.1.1 cc rejects this. */
23994 char const *const *ccp;
23996 /* NEC SVR4.0.2 mips cc rejects this. */
23997 struct point {int x, y;};
23998 static struct point const zero = {0,0};
23999 /* AIX XL C 1.02.0.0 rejects this.
24000 It does not let you subtract one const X* pointer from another in
24001 an arm of an if-expression whose if-part is not a constant
24003 const char *g = "string";
24004 ccp = &g + (g ? g-g : 0);
24005 /* HPUX 7.0 cc rejects these. */
24008 ccp = (char const *const *) p;
24009 { /* SCO 3.2v4 cc rejects this. */
24011 char const *s = 0 ? (char *) 0 : (char const *) 0;
24015 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24016 int x[] = {25, 17};
24017 const int *foo = &x[0];
24020 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24021 typedef const int *iptr;
24025 { /* AIX XL C 1.02.0.0 rejects this saying
24026 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24027 struct s { int j; const int *ap[3]; };
24028 struct s *b; b->j = 5;
24030 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24031 const int foo = 10;
24039 rm -f conftest.$ac_objext
24040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24041 (eval $ac_compile) 2>conftest.er1
24043 grep -v '^ *+' conftest.er1 >conftest.err
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } &&
24048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050 (eval $ac_try) 2>&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); }; } &&
24054 { ac_try='test -s conftest.$ac_objext'
24055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056 (eval $ac_try) 2>&5
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); }; }; then
24062 echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24069 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24070 echo "${ECHO_T}$ac_cv_c_const" >&6
24071 if test $ac_cv_c_const = no; then
24073 cat >>confdefs.h <<\_ACEOF
24080 echo "$as_me:$LINENO: checking type of OS" >&5
24081 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
24083 echo "$as_me:$LINENO: result: $OS" >&5
24084 echo "${ECHO_T}$OS" >&6
24085 if test "$OS" = "OS/2"; then
24092 if test "x$GCC" = "xyes"; then
24093 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
24096 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
24097 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
24098 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
24099 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
24100 CFLAGS="$CFLAGS $devflags"
24102 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
24103 echo "${ECHO_T}yes. Using $devflags" >&6
24106 CFLAGS="$CFLAGS -DNDEBUG"
24108 echo "$as_me:$LINENO: result: no." >&5
24109 echo "${ECHO_T}no." >&6
24113 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
24114 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
24115 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
24116 echo $ECHO_N "(cached) $ECHO_C" >&6
24118 ac_check_lib_save_LIBS=$LIBS
24119 LIBS="-lcrypt $LIBS"
24120 cat >conftest.$ac_ext <<_ACEOF
24123 cat confdefs.h >>conftest.$ac_ext
24124 cat >>conftest.$ac_ext <<_ACEOF
24125 /* end confdefs.h. */
24127 /* Override any gcc2 internal prototype to avoid an error. */
24131 /* We use char because int might match the return type of a gcc2
24132 builtin and then its argument prototype would still apply. */
24142 rm -f conftest.$ac_objext conftest$ac_exeext
24143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24144 (eval $ac_link) 2>conftest.er1
24146 grep -v '^ *+' conftest.er1 >conftest.err
24148 cat conftest.err >&5
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); } &&
24151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; } &&
24157 { ac_try='test -s conftest$ac_exeext'
24158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159 (eval $ac_try) 2>&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); }; }; then
24163 ac_cv_lib_crypt_crypt=yes
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24168 ac_cv_lib_crypt_crypt=no
24170 rm -f conftest.err conftest.$ac_objext \
24171 conftest$ac_exeext conftest.$ac_ext
24172 LIBS=$ac_check_lib_save_LIBS
24174 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24175 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
24176 if test $ac_cv_lib_crypt_crypt = yes; then
24181 if test "$CRYPTLIB" != ""; then
24183 cat >>confdefs.h <<\_ACEOF
24188 echo "$as_me:$LINENO: checking for crypt" >&5
24189 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
24190 if test "${ac_cv_func_crypt+set}" = set; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24193 cat >conftest.$ac_ext <<_ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h. */
24199 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24201 #define crypt innocuous_crypt
24203 /* System header to define __stub macros and hopefully few prototypes,
24204 which can conflict with char crypt (); below.
24205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24206 <limits.h> exists even on freestanding compilers. */
24209 # include <limits.h>
24211 # include <assert.h>
24216 /* Override any gcc2 internal prototype to avoid an error. */
24221 /* We use char because int might match the return type of a gcc2
24222 builtin and then its argument prototype would still apply. */
24224 /* The GNU C library defines this for functions which it implements
24225 to always fail with ENOSYS. Some functions are actually named
24226 something starting with __ and the normal name is an alias. */
24227 #if defined (__stub_crypt) || defined (__stub___crypt)
24230 char (*f) () = crypt;
24244 rm -f conftest.$ac_objext conftest$ac_exeext
24245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24246 (eval $ac_link) 2>conftest.er1
24248 grep -v '^ *+' conftest.er1 >conftest.err
24250 cat conftest.err >&5
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); } &&
24253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24255 (eval $ac_try) 2>&5
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); }; } &&
24259 { ac_try='test -s conftest$ac_exeext'
24260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24261 (eval $ac_try) 2>&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); }; }; then
24265 ac_cv_func_crypt=yes
24267 echo "$as_me: failed program was:" >&5
24268 sed 's/^/| /' conftest.$ac_ext >&5
24270 ac_cv_func_crypt=no
24272 rm -f conftest.err conftest.$ac_objext \
24273 conftest$ac_exeext conftest.$ac_ext
24275 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24276 echo "${ECHO_T}$ac_cv_func_crypt" >&6
24277 if test $ac_cv_func_crypt = yes; then
24279 cat >>confdefs.h <<\_ACEOF
24287 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24288 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
24289 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24290 echo $ECHO_N "(cached) $ECHO_C" >&6
24292 ac_check_lib_save_LIBS=$LIBS
24293 LIBS="-lcipher $LIBS"
24294 cat >conftest.$ac_ext <<_ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24301 /* Override any gcc2 internal prototype to avoid an error. */
24305 /* We use char because int might match the return type of a gcc2
24306 builtin and then its argument prototype would still apply. */
24316 rm -f conftest.$ac_objext conftest$ac_exeext
24317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24318 (eval $ac_link) 2>conftest.er1
24320 grep -v '^ *+' conftest.er1 >conftest.err
24322 cat conftest.err >&5
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); } &&
24325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest$ac_exeext'
24332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333 (eval $ac_try) 2>&5
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); }; }; then
24337 ac_cv_lib_cipher_setkey=yes
24339 echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.$ac_ext >&5
24342 ac_cv_lib_cipher_setkey=no
24344 rm -f conftest.err conftest.$ac_objext \
24345 conftest$ac_exeext conftest.$ac_ext
24346 LIBS=$ac_check_lib_save_LIBS
24348 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24349 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
24350 if test $ac_cv_lib_cipher_setkey = yes; then
24351 CRYPTLIB="${CRYPTLIB} -lcipher"
24357 if test "x$WITH_SNMP" = "xyes"; then
24362 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24363 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
24365 cat >conftest.$ac_ext <<_ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24372 #ifdef HAVE_SYS_TYPES_H
24373 #include <sys/types.h>
24375 #ifdef HAVE_STDINT_H
24376 #include <stdint.h>
24378 #ifdef HAVE_STDIO_H
24381 #ifdef HAVE_NETDB_H
24384 #ifdef HAVE_UNISTD_H
24385 #include <unistd.h>
24387 #include <ucd-snmp/ucd-snmp-config.h>
24388 #include <ucd-snmp/asn1.h>
24389 #include <ucd-snmp/snmp.h>
24390 #include <ucd-snmp/snmp_impl.h>
24399 rm -f conftest.$ac_objext
24400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24401 (eval $ac_compile) 2>conftest.er1
24403 grep -v '^ *+' conftest.er1 >conftest.err
24405 cat conftest.err >&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); } &&
24408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; } &&
24414 { ac_try='test -s conftest.$ac_objext'
24415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24416 (eval $ac_try) 2>&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); }; }; then
24420 SNMP_INCLUDE="";ucdsnmp=yes
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24429 if test "x$ucdsnmp" = "x"; then
24430 old_CFLAGS="$CFLAGS"
24431 for try in /usr/include /usr/local/include $snmp_include_dir; do
24432 CFLAGS="$old_CFLAGS -I$try"
24433 cat >conftest.$ac_ext <<_ACEOF
24436 cat confdefs.h >>conftest.$ac_ext
24437 cat >>conftest.$ac_ext <<_ACEOF
24438 /* end confdefs.h. */
24440 #ifdef HAVE_SYS_TYPES_H
24441 #include <sys/types.h>
24443 #ifdef HAVE_STDINT_H
24444 #include <stdint.h>
24446 #ifdef HAVE_STDIO_H
24449 #ifdef HAVE_NETDB_H
24452 #ifdef HAVE_UNISTD_H
24453 #include <unistd.h>
24455 #include <ucd-snmp/ucd-snmp-config.h>
24456 #include <ucd-snmp/asn1.h>
24457 #include <ucd-snmp/snmp.h>
24458 #include <ucd-snmp/snmp_impl.h>
24467 rm -f conftest.$ac_objext
24468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24469 (eval $ac_compile) 2>conftest.er1
24471 grep -v '^ *+' conftest.er1 >conftest.err
24473 cat conftest.err >&5
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); } &&
24476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478 (eval $ac_try) 2>&5
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; } &&
24482 { ac_try='test -s conftest.$ac_objext'
24483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484 (eval $ac_try) 2>&5
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); }; }; then
24488 SNMP_INCLUDE="-I$try";ucdsnmp=yes
24490 echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24496 if test "x$ucdsnmp" != "x"; then
24500 CFLAGS="$old_CFLAGS"
24503 if test "x$ucdsnmp" = "x"; then
24504 old_CFLAGS="$CFLAGS"
24505 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24506 CFLAGS="$old_CFLAGS -I$try"
24507 cat >conftest.$ac_ext <<_ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h. */
24514 #ifdef HAVE_SYS_TYPES_H
24515 #include <sys/types.h>
24517 #ifdef HAVE_STDINT_H
24518 #include <stdint.h>
24520 #ifdef HAVE_STDIO_H
24523 #ifdef HAVE_NETDB_H
24526 #ifdef HAVE_UNISTD_H
24527 #include <unistd.h>
24531 #include <snmp_impl.h>
24540 rm -f conftest.$ac_objext
24541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24542 (eval $ac_compile) 2>conftest.er1
24544 grep -v '^ *+' conftest.er1 >conftest.err
24546 cat conftest.err >&5
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); } &&
24549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24551 (eval $ac_try) 2>&5
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); }; } &&
24555 { ac_try='test -s conftest.$ac_objext'
24556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24557 (eval $ac_try) 2>&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; }; then
24561 SNMP_INCLUDE="";ucdsnmp=no
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24569 if test "x$ucdsnmp" != "x"; then
24573 CFLAGS="$old_CFLAGS"
24576 if test "x$ucdsnmp" = "x"; then
24577 old_CFLAGS="$CFLAGS"
24578 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24579 CFLAGS="$old_CFLAGS -I$try"
24580 cat >conftest.$ac_ext <<_ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h. */
24587 #ifdef HAVE_SYS_TYPES_H
24588 #include <sys/types.h>
24590 #ifdef HAVE_STDINT_H
24591 #include <stdint.h>
24593 #ifdef HAVE_STDIO_H
24596 #ifdef HAVE_NETDB_H
24599 #ifdef HAVE_UNISTD_H
24600 #include <unistd.h>
24604 #include <snmp_impl.h>
24613 rm -f conftest.$ac_objext
24614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24615 (eval $ac_compile) 2>conftest.er1
24617 grep -v '^ *+' conftest.er1 >conftest.err
24619 cat conftest.err >&5
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); } &&
24622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624 (eval $ac_try) 2>&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); }; } &&
24628 { ac_try='test -s conftest.$ac_objext'
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; }; then
24634 SNMP_INCLUDE="-I$try";ucdsnmp=no
24636 echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24642 if test "x$ucdsnmp" != "x"; then
24646 CFLAGS="$old_CFLAGS"
24649 if test "x$ucdsnmp" = "x"; then
24650 echo "$as_me:$LINENO: result: no" >&5
24651 echo "${ECHO_T}no" >&6
24653 if test "x$ucdsnmp" = "xyes"; then
24654 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24655 echo "${ECHO_T}(ucd-snmp)yes" >&6
24657 cat >>confdefs.h <<\_ACEOF
24658 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24662 echo "$as_me:$LINENO: result: yes" >&5
24663 echo "${ECHO_T}yes" >&6
24665 cat >>confdefs.h <<\_ACEOF
24666 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24670 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24671 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
24674 LIBS="$old_LIBS -lsnmp"
24675 cat >conftest.$ac_ext <<_ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h. */
24681 extern char snmp_build_var_op();
24685 snmp_build_var_op()
24690 rm -f conftest.$ac_objext conftest$ac_exeext
24691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24692 (eval $ac_link) 2>conftest.er1
24694 grep -v '^ *+' conftest.er1 >conftest.err
24696 cat conftest.err >&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); } &&
24699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701 (eval $ac_try) 2>&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); }; } &&
24705 { ac_try='test -s conftest$ac_exeext'
24706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24707 (eval $ac_try) 2>&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); }; }; then
24713 echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24718 rm -f conftest.err conftest.$ac_objext \
24719 conftest$ac_exeext conftest.$ac_ext
24721 if test "x$SNMP_LIBS" = "x"; then
24722 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24723 LIBS="$old_LIBS -L$try -lsnmp"
24724 cat >conftest.$ac_ext <<_ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h. */
24730 extern char snmp_build_var_op();
24734 snmp_build_var_op()
24739 rm -f conftest.$ac_objext conftest$ac_exeext
24740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24741 (eval $ac_link) 2>conftest.er1
24743 grep -v '^ *+' conftest.er1 >conftest.err
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } &&
24748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750 (eval $ac_try) 2>&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; } &&
24754 { ac_try='test -s conftest$ac_exeext'
24755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24756 (eval $ac_try) 2>&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); }; }; then
24760 SNMP_LIBS="-L$try -lsnmp"
24762 echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24767 rm -f conftest.err conftest.$ac_objext \
24768 conftest$ac_exeext conftest.$ac_ext
24769 if test "x$SNMP_LIBS" != "x"; then
24772 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24773 cat >conftest.$ac_ext <<_ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24779 extern char snmp_build_var_op();
24783 snmp_build_var_op()
24788 rm -f conftest.$ac_objext conftest$ac_exeext
24789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24790 (eval $ac_link) 2>conftest.er1
24792 grep -v '^ *+' conftest.er1 >conftest.err
24794 cat conftest.err >&5
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); } &&
24797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799 (eval $ac_try) 2>&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); }; } &&
24803 { ac_try='test -s conftest$ac_exeext'
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; }; then
24809 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24811 echo "$as_me: failed program was:" >&5
24812 sed 's/^/| /' conftest.$ac_ext >&5
24816 rm -f conftest.err conftest.$ac_objext \
24817 conftest$ac_exeext conftest.$ac_ext
24818 if test "x$SNMP_LIBS" != "x"; then
24821 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24822 cat >conftest.$ac_ext <<_ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24828 extern char snmp_build_var_op();
24832 snmp_build_var_op()
24837 rm -f conftest.$ac_objext conftest$ac_exeext
24838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24839 (eval $ac_link) 2>conftest.er1
24841 grep -v '^ *+' conftest.er1 >conftest.err
24843 cat conftest.err >&5
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); } &&
24846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848 (eval $ac_try) 2>&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); }; } &&
24852 { ac_try='test -s conftest$ac_exeext'
24853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24854 (eval $ac_try) 2>&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); }; }; then
24858 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24860 echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24865 rm -f conftest.err conftest.$ac_objext \
24866 conftest$ac_exeext conftest.$ac_ext
24867 if test "x$SNMP_LIBS" != "x"; then
24874 CFLAGS="$old_CFLAGS"
24875 if test "x$SNMP_LIBS" = "x"; then
24876 echo "$as_me:$LINENO: result: no" >&5
24877 echo "${ECHO_T}no" >&6
24880 echo "$as_me:$LINENO: result: yes" >&5
24881 echo "${ECHO_T}yes" >&6
24883 cat >>confdefs.h <<\_ACEOF
24888 cat >>confdefs.h <<\_ACEOF
24889 #define HAVE_LIBSNMP
24898 cat >>confdefs.h <<\_ACEOF
24903 cat >>confdefs.h <<\_ACEOF
24904 #define SYSVSTYLE 2
24908 cat >>confdefs.h <<\_ACEOF
24912 gethostbyaddrrstyle=""
24913 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24914 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24918 cat >>confdefs.h <<\_ACEOF
24919 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24922 gethostbyaddrrstyle=BSD
24923 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24924 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24927 if test "x$gethostbyaddrrstyle" = "x"; then
24928 cat >conftest.$ac_ext <<_ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h. */
24941 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24946 rm -f conftest.$ac_objext conftest$ac_exeext
24947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24948 (eval $ac_link) 2>conftest.er1
24950 grep -v '^ *+' conftest.er1 >conftest.err
24952 cat conftest.err >&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); } &&
24955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; } &&
24961 { ac_try='test -s conftest$ac_exeext'
24962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963 (eval $ac_try) 2>&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; }; then
24969 cat >>confdefs.h <<\_ACEOF
24970 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24973 gethostbyaddrrstyle=GNU
24976 echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24980 rm -f conftest.err conftest.$ac_objext \
24981 conftest$ac_exeext conftest.$ac_ext
24983 if test "x$gethostbyaddrrstyle" = "x"; then
24984 cat >conftest.$ac_ext <<_ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h. */
24997 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25004 (eval $ac_link) 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
25011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013 (eval $ac_try) 2>&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; } &&
25017 { ac_try='test -s conftest$ac_exeext'
25018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; }; then
25025 cat >>confdefs.h <<\_ACEOF
25026 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25029 gethostbyaddrrstyle=SYSV
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25036 rm -f conftest.err conftest.$ac_objext \
25037 conftest$ac_exeext conftest.$ac_ext
25039 if test "x$gethostbyaddrrstyle" = "x"; then
25040 cat >conftest.$ac_ext <<_ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h. */
25053 gethostbyaddr(NULL, 0, 0)
25058 rm -f conftest.$ac_objext conftest$ac_exeext
25059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25060 (eval $ac_link) 2>conftest.er1
25062 grep -v '^ *+' conftest.er1 >conftest.err
25064 cat conftest.err >&5
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); } &&
25067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069 (eval $ac_try) 2>&5
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; } &&
25073 { ac_try='test -s conftest$ac_exeext'
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25081 cat >>confdefs.h <<\_ACEOF
25082 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25085 gethostbyaddrrstyle=BSD
25088 echo "$as_me: failed program was:" >&5
25089 sed 's/^/| /' conftest.$ac_ext >&5
25092 rm -f conftest.err conftest.$ac_objext \
25093 conftest$ac_exeext conftest.$ac_ext
25096 if test "x$gethostbyaddrrstyle" = "x"; then
25097 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25098 echo "${ECHO_T}none! It must not exist, here." >&6
25100 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25101 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
25104 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25105 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25106 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25109 gethostbynamerstyle=""
25110 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25111 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
25112 cat >conftest.$ac_ext <<_ACEOF
25115 cat confdefs.h >>conftest.$ac_ext
25116 cat >>conftest.$ac_ext <<_ACEOF
25117 /* end confdefs.h. */
25125 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25130 rm -f conftest.$ac_objext conftest$ac_exeext
25131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25132 (eval $ac_link) 2>conftest.er1
25134 grep -v '^ *+' conftest.er1 >conftest.err
25136 cat conftest.err >&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); } &&
25139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; } &&
25145 { ac_try='test -s conftest$ac_exeext'
25146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147 (eval $ac_try) 2>&5
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); }; }; then
25153 cat >>confdefs.h <<\_ACEOF
25154 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25157 gethostbynamerstyle=GNU
25160 echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25164 rm -f conftest.err conftest.$ac_objext \
25165 conftest$ac_exeext conftest.$ac_ext
25166 if test "x$gethostbynamerstyle" = "x"; then
25167 cat >conftest.$ac_ext <<_ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h. */
25180 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25185 rm -f conftest.$ac_objext conftest$ac_exeext
25186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25187 (eval $ac_link) 2>conftest.er1
25189 grep -v '^ *+' conftest.er1 >conftest.err
25191 cat conftest.err >&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); } &&
25194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; } &&
25200 { ac_try='test -s conftest$ac_exeext'
25201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202 (eval $ac_try) 2>&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; }; then
25208 cat >>confdefs.h <<\_ACEOF
25209 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25212 gethostbynamerstyle=SYSV
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25219 rm -f conftest.err conftest.$ac_objext \
25220 conftest$ac_exeext conftest.$ac_ext
25222 if test "x$gethostbynamerstyle" = "x"; then
25223 cat >conftest.$ac_ext <<_ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25236 gethostbyname(NULL)
25241 rm -f conftest.$ac_objext conftest$ac_exeext
25242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25243 (eval $ac_link) 2>conftest.er1
25245 grep -v '^ *+' conftest.er1 >conftest.err
25247 cat conftest.err >&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } &&
25250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; } &&
25256 { ac_try='test -s conftest$ac_exeext'
25257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258 (eval $ac_try) 2>&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
25264 cat >>confdefs.h <<\_ACEOF
25265 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25268 gethostbynamerstyle=BSD
25271 echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25275 rm -f conftest.err conftest.$ac_objext \
25276 conftest$ac_exeext conftest.$ac_ext
25279 if test "x$gethostbynamerstyle" = "x"; then
25280 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25281 echo "${ECHO_T}none! It must not exist, here." >&6
25283 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25284 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
25287 if test "x$gethostbynamerstyle" = "xBSD"; then
25288 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25289 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25293 cat >>confdefs.h <<\_ACEOF
25294 #define POSIXSTYLE 1
25298 cat >>confdefs.h <<\_ACEOF
25299 #define SOLARISSTYLE 2
25303 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25304 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
25305 cat >conftest.$ac_ext <<_ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25317 ctime_r(NULL, NULL, 0)
25322 rm -f conftest.$ac_objext conftest$ac_exeext
25323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25324 (eval $ac_link) 2>conftest.er1
25326 grep -v '^ *+' conftest.er1 >conftest.err
25328 cat conftest.err >&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } &&
25331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25333 (eval $ac_try) 2>&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); }; } &&
25337 { ac_try='test -s conftest$ac_exeext'
25338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25339 (eval $ac_try) 2>&5
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; }; then
25345 cat >>confdefs.h <<\_ACEOF
25346 #define CTIMERSTYLE SOLARISSTYLE
25349 ctimerstyle="SOLARIS"
25352 echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25356 rm -f conftest.err conftest.$ac_objext \
25357 conftest$ac_exeext conftest.$ac_ext
25358 if test "x$ctimerstyle" = "x"; then
25359 cat >conftest.$ac_ext <<_ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25371 ctime_r(NULL, NULL)
25376 rm -f conftest.$ac_objext conftest$ac_exeext
25377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25378 (eval $ac_link) 2>conftest.er1
25380 grep -v '^ *+' conftest.er1 >conftest.err
25382 cat conftest.err >&5
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); } &&
25385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; } &&
25391 { ac_try='test -s conftest$ac_exeext'
25392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393 (eval $ac_try) 2>&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); }; }; then
25399 cat >>confdefs.h <<\_ACEOF
25400 #define CTIMERSTYLE POSIXSTYLE
25403 ctimerstyle="POSIX"
25406 echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25410 rm -f conftest.err conftest.$ac_objext \
25411 conftest$ac_exeext conftest.$ac_ext
25414 if test "x$ctimerstyle" = "x"; then
25415 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25416 echo "${ECHO_T}none! It must not exist, here." >&6
25418 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25419 echo "${ECHO_T}${ctimerstyle}-style" >&6
25427 export top_builddir
25428 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25429 echo "${ECHO_T}top_builddir=$top_builddir" >&6
25433 if test "x$INCLTDL" != "x";then
25434 INCLTDL='-I${top_builddir}/''libltdl'
25439 mysubdirs="$LIBLTDLPATH"
25440 if test "x$EXPERIMENTAL" = "xyes"; then
25441 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
25442 mysubdirs=`echo $mysubdirs $bar`
25444 for bar in `cat src/modules/stable`; do
25445 if test -f src/modules/$bar/configure; then
25446 mysubdirs="$mysubdirs src/modules/$bar"
25452 if test "x$EXPERIMENTAL" = "xyes"; then
25453 for foo in `ls -1 src/modules | grep rlm_`; do
25454 MODULES="$MODULES $foo"
25457 for foo in `cat src/modules/stable`; do
25458 MODULES="$MODULES $foo"
25464 subdirs="$subdirs $mysubdirs"
25469 ac_config_commands="$ac_config_commands stamp-h"
25471 ac_config_commands="$ac_config_commands build-radpaths-h"
25473 ac_config_commands="$ac_config_commands main-chmod"
25475 ac_config_commands="$ac_config_commands scripts-chmod"
25481 USE_SHARED_LIBS=$enable_shared
25483 USE_STATIC_LIBS=$enable_static
25490 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"
25491 cat >confcache <<\_ACEOF
25492 # This file is a shell script that caches the results of configure
25493 # tests run on this system so they can be shared between configure
25494 # scripts and configure runs, see configure's option --config-cache.
25495 # It is not useful on other systems. If it contains results you don't
25496 # want to keep, you may remove or edit it.
25498 # config.status only pays attention to the cache file if you give it
25499 # the --recheck option to rerun configure.
25501 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25503 # following values.
25507 # The following way of writing the cache mishandles newlines in values,
25508 # but we know of no workaround that is simple, portable, and efficient.
25509 # So, don't put newlines in cache variables' values.
25510 # Ultrix sh set writes to stderr and can't be redirected directly,
25511 # and sets the high bit in the cache file unless we assign to the vars.
25514 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25516 # `set' does not quote correctly, so add quotes (double-quote
25517 # substitution turns \\\\ into \\, and sed turns \\ into \).
25520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25523 # `set' quotes correctly as required by POSIX, so do not add quotes.
25525 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25534 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25536 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25537 if test -w $cache_file; then
25538 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25539 cat confcache >$cache_file
25541 echo "not updating unwritable cache $cache_file"
25546 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25547 # Let make expand exec_prefix.
25548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25550 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25551 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25552 # trailing colons and then remove the whole line if VPATH becomes empty
25553 # (actually we leave an empty line to preserve line numbers).
25554 if test "x$srcdir" = x.; then
25555 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25556 s/:*\$(srcdir):*/:/;
25557 s/:*\${srcdir}:*/:/;
25559 s/^\([^=]*=[ ]*\):*/\1/;
25565 DEFS=-DHAVE_CONFIG_H
25569 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25570 # 1. Remove the extension, and $U if already installed.
25571 ac_i=`echo "$ac_i" |
25572 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25574 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25575 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25577 LIBOBJS=$ac_libobjs
25579 LTLIBOBJS=$ac_ltlibobjs
25583 : ${CONFIG_STATUS=./config.status}
25584 ac_clean_files_save=$ac_clean_files
25585 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25586 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25587 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25588 cat >$CONFIG_STATUS <<_ACEOF
25590 # Generated by $as_me.
25591 # Run this file to recreate the current configuration.
25592 # Compiler output produced by configure, useful for debugging
25593 # configure, is in config.log if it exists.
25596 ac_cs_recheck=false
25598 SHELL=\${CONFIG_SHELL-$SHELL}
25601 cat >>$CONFIG_STATUS <<\_ACEOF
25602 ## --------------------- ##
25603 ## M4sh Initialization. ##
25604 ## --------------------- ##
25606 # Be Bourne compatible
25607 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25610 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25611 # is contrary to our usage. Disable this feature.
25612 alias -g '${1+"$@"}'='"$@"'
25613 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25616 DUALCASE=1; export DUALCASE # for MKS sh
25618 # Support unset when possible.
25619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25626 # Work around bugs in pre-3.0 UWIN ksh.
25627 $as_unset ENV MAIL MAILPATH
25634 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25635 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25636 LC_TELEPHONE LC_TIME
25638 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25639 eval $as_var=C; export $as_var
25645 # Required to use basename.
25646 if expr a : '\(a\)' >/dev/null 2>&1; then
25652 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25653 as_basename=basename
25659 # Name of the executable.
25660 as_me=`$as_basename "$0" ||
25661 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25662 X"$0" : 'X\(//\)$' \| \
25663 X"$0" : 'X\(/\)$' \| \
25664 . : '\(.\)' 2>/dev/null ||
25666 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25667 /^X\/\(\/\/\)$/{ s//\1/; q; }
25668 /^X\/\(\/\).*/{ s//\1/; q; }
25672 # PATH needs CR, and LINENO needs CR and PATH.
25673 # Avoid depending upon Character Ranges.
25674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25677 as_cr_digits='0123456789'
25678 as_cr_alnum=$as_cr_Letters$as_cr_digits
25680 # The user is always right.
25681 if test "${PATH_SEPARATOR+set}" != set; then
25682 echo "#! /bin/sh" >conf$$.sh
25683 echo "exit 0" >>conf$$.sh
25685 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25694 as_lineno_1=$LINENO
25695 as_lineno_2=$LINENO
25696 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25697 test "x$as_lineno_1" != "x$as_lineno_2" &&
25698 test "x$as_lineno_3" = "x$as_lineno_2" || {
25699 # Find who we are. Look in the path if we contain no path at all
25702 *[\\/]* ) as_myself=$0 ;;
25703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25704 for as_dir in $PATH
25707 test -z "$as_dir" && as_dir=.
25708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25713 # We did not find ourselves, most probably we were run as `sh COMMAND'
25714 # in which case we are not to be found in the path.
25715 if test "x$as_myself" = x; then
25718 if test ! -f "$as_myself"; then
25719 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25720 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25721 { (exit 1); exit 1; }; }
25723 case $CONFIG_SHELL in
25725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25726 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25729 test -z "$as_dir" && as_dir=.
25730 for as_base in sh bash ksh sh5; do
25733 if ("$as_dir/$as_base" -c '
25734 as_lineno_1=$LINENO
25735 as_lineno_2=$LINENO
25736 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25737 test "x$as_lineno_1" != "x$as_lineno_2" &&
25738 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25739 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25740 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25741 CONFIG_SHELL=$as_dir/$as_base
25742 export CONFIG_SHELL
25743 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25751 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25752 # uniformly replaced by the line number. The first 'sed' inserts a
25753 # line-number line before each line; the second 'sed' does the real
25754 # work. The second script uses 'N' to pair each line-number line
25755 # with the numbered line, and appends trailing '-' during
25756 # substitution so that $LINENO is not a special case at line end.
25757 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25758 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25759 sed '=' <$as_myself |
25764 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25767 s,^['$as_cr_digits']*\n,,
25768 ' >$as_me.lineno &&
25769 chmod +x $as_me.lineno ||
25770 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25771 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25772 { (exit 1); exit 1; }; }
25774 # Don't try to exec as it changes $[0], causing all sort of problems
25775 # (the dirname of $[0] is not the place where we might find the
25776 # original and so on. Autoconf is especially sensible to this).
25778 # Exit status is that of the last command.
25783 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25784 *c*,-n*) ECHO_N= ECHO_C='
25786 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25787 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25790 if expr a : '\(a\)' >/dev/null 2>&1; then
25796 rm -f conf$$ conf$$.exe conf$$.file
25798 if ln -s conf$$.file conf$$ 2>/dev/null; then
25799 # We could just check for DJGPP; but this test a) works b) is more generic
25800 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25801 if test -f conf$$.exe; then
25802 # Don't use ln at all; we don't have any links
25807 elif ln conf$$.file conf$$ 2>/dev/null; then
25812 rm -f conf$$ conf$$.exe conf$$.file
25814 if mkdir -p . 2>/dev/null; then
25817 test -d ./-p && rmdir ./-p
25821 as_executable_p="test -f"
25823 # Sed expression to map a string onto a valid CPP name.
25824 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25826 # Sed expression to map a string onto a valid variable name.
25827 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25831 # We need space, tab and new line, in precisely that order.
25841 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25842 # report actual input values of CONFIG_FILES etc. instead of their
25843 # values after options handling. Logging --version etc. is OK.
25847 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25848 ## Running $as_me. ##
25853 This file was extended by $as_me, which was
25854 generated by GNU Autoconf 2.59. Invocation command line was
25856 CONFIG_FILES = $CONFIG_FILES
25857 CONFIG_HEADERS = $CONFIG_HEADERS
25858 CONFIG_LINKS = $CONFIG_LINKS
25859 CONFIG_COMMANDS = $CONFIG_COMMANDS
25863 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25867 # Files that config.status was made for.
25868 if test -n "$ac_config_files"; then
25869 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25872 if test -n "$ac_config_headers"; then
25873 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25876 if test -n "$ac_config_links"; then
25877 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25880 if test -n "$ac_config_commands"; then
25881 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25884 cat >>$CONFIG_STATUS <<\_ACEOF
25887 \`$as_me' instantiates files from templates according to the
25888 current configuration.
25890 Usage: $0 [OPTIONS] [FILE]...
25892 -h, --help print this help, then exit
25893 -V, --version print version number, then exit
25894 -q, --quiet do not print progress messages
25895 -d, --debug don't remove temporary files
25896 --recheck update $as_me by reconfiguring in the same conditions
25897 --file=FILE[:TEMPLATE]
25898 instantiate the configuration file FILE
25899 --header=FILE[:TEMPLATE]
25900 instantiate the configuration header FILE
25902 Configuration files:
25905 Configuration headers:
25908 Configuration commands:
25911 Report bugs to <bug-autoconf@gnu.org>."
25914 cat >>$CONFIG_STATUS <<_ACEOF
25917 configured by $0, generated by GNU Autoconf 2.59,
25918 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25920 Copyright (C) 2003 Free Software Foundation, Inc.
25921 This config.status script is free software; the Free Software Foundation
25922 gives unlimited permission to copy, distribute and modify it."
25926 cat >>$CONFIG_STATUS <<\_ACEOF
25927 # If no file are specified by the user, then we need to provide default
25928 # value. By we need to know if files were specified by the user.
25934 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25935 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25943 *) # This is not an option, so the user has probably given explicit
25946 ac_need_defaults=false;;
25950 # Handling of the options.
25952 cat >>$CONFIG_STATUS <<\_ACEOF
25953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25955 --version | --vers* | -V )
25956 echo "$ac_cs_version"; exit 0 ;;
25958 # Conflict between --help and --header
25959 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25960 Try \`$0 --help' for more information." >&5
25961 echo "$as_me: error: ambiguous option: $1
25962 Try \`$0 --help' for more information." >&2;}
25963 { (exit 1); exit 1; }; };;
25964 --help | --hel | -h )
25965 echo "$ac_cs_usage"; exit 0 ;;
25966 --debug | --d* | -d )
25968 --file | --fil | --fi | --f )
25970 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25971 ac_need_defaults=false;;
25972 --header | --heade | --head | --hea )
25974 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25975 ac_need_defaults=false;;
25976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25977 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25980 # This is an error.
25981 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25982 Try \`$0 --help' for more information." >&5
25983 echo "$as_me: error: unrecognized option: $1
25984 Try \`$0 --help' for more information." >&2;}
25985 { (exit 1); exit 1; }; } ;;
25987 *) ac_config_targets="$ac_config_targets $1" ;;
25993 ac_configure_extra_args=
25995 if $ac_cs_silent; then
25997 ac_configure_extra_args="$ac_configure_extra_args --silent"
26001 cat >>$CONFIG_STATUS <<_ACEOF
26002 if \$ac_cs_recheck; then
26003 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26004 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26013 cat >>$CONFIG_STATUS <<\_ACEOF
26014 for ac_config_target in $ac_config_targets
26016 case "$ac_config_target" in
26017 # Handling of arguments.
26018 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26019 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26020 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26021 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26022 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26023 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26024 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26025 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26026 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
26027 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26028 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26029 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26030 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26031 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26032 "./raddb/radrelay.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
26033 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26034 "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26035 "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26036 "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26037 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26038 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26039 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26040 { (exit 1); exit 1; }; };;
26044 # If the user did not use the arguments to specify the items to instantiate,
26045 # then the envvar interface is used. Set only those that are not.
26046 # We use the long form for the default assignment because of an extremely
26047 # bizarre bug on SunOS 4.1.3.
26048 if $ac_need_defaults; then
26049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26054 # Have a temporary directory for convenience. Make it in the build tree
26055 # simply because there is no reason to put it here, and in addition,
26056 # creating and moving files from /tmp can sometimes cause problems.
26057 # Create a temporary directory, and hook for its removal unless debugging.
26060 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26061 trap '{ (exit 1); exit 1; }' 1 2 13 15
26064 # Create a (secure) tmp directory for tmp files.
26067 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26068 test -n "$tmp" && test -d "$tmp"
26071 tmp=./confstat$$-$RANDOM
26072 (umask 077 && mkdir $tmp)
26075 echo "$me: cannot create a temporary directory in ." >&2
26076 { (exit 1); exit 1; }
26081 cat >>$CONFIG_STATUS <<_ACEOF
26084 # CONFIG_FILES section.
26087 # No need to generate the scripts if there are no CONFIG_FILES.
26088 # This happens for instance when ./config.status config.h
26089 if test -n "\$CONFIG_FILES"; then
26090 # Protect against being on the right side of a sed subst in config.status.
26091 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26092 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26093 s,@SHELL@,$SHELL,;t t
26094 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26095 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26096 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26097 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26098 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26099 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26100 s,@exec_prefix@,$exec_prefix,;t t
26101 s,@prefix@,$prefix,;t t
26102 s,@program_transform_name@,$program_transform_name,;t t
26103 s,@bindir@,$bindir,;t t
26104 s,@sbindir@,$sbindir,;t t
26105 s,@libexecdir@,$libexecdir,;t t
26106 s,@datadir@,$datadir,;t t
26107 s,@sysconfdir@,$sysconfdir,;t t
26108 s,@sharedstatedir@,$sharedstatedir,;t t
26109 s,@localstatedir@,$localstatedir,;t t
26110 s,@libdir@,$libdir,;t t
26111 s,@includedir@,$includedir,;t t
26112 s,@oldincludedir@,$oldincludedir,;t t
26113 s,@infodir@,$infodir,;t t
26114 s,@mandir@,$mandir,;t t
26115 s,@build_alias@,$build_alias,;t t
26116 s,@host_alias@,$host_alias,;t t
26117 s,@target_alias@,$target_alias,;t t
26118 s,@DEFS@,$DEFS,;t t
26119 s,@ECHO_C@,$ECHO_C,;t t
26120 s,@ECHO_N@,$ECHO_N,;t t
26121 s,@ECHO_T@,$ECHO_T,;t t
26122 s,@LIBS@,$LIBS,;t t
26124 s,@CFLAGS@,$CFLAGS,;t t
26125 s,@LDFLAGS@,$LDFLAGS,;t t
26126 s,@CPPFLAGS@,$CPPFLAGS,;t t
26127 s,@ac_ct_CC@,$ac_ct_CC,;t t
26128 s,@EXEEXT@,$EXEEXT,;t t
26129 s,@OBJEXT@,$OBJEXT,;t t
26131 s,@CXXFLAGS@,$CXXFLAGS,;t t
26132 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26134 s,@EGREP@,$EGREP,;t t
26135 s,@RANLIB@,$RANLIB,;t t
26136 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26137 s,@abs_top_builddir@,$abs_top_builddir,;t t
26138 s,@GMAKE@,$GMAKE,;t t
26139 s,@MAKE@,$MAKE,;t t
26140 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
26141 s,@LIBTOOL@,$LIBTOOL,;t t
26142 s,@build@,$build,;t t
26143 s,@build_cpu@,$build_cpu,;t t
26144 s,@build_vendor@,$build_vendor,;t t
26145 s,@build_os@,$build_os,;t t
26146 s,@host@,$host,;t t
26147 s,@host_cpu@,$host_cpu,;t t
26148 s,@host_vendor@,$host_vendor,;t t
26149 s,@host_os@,$host_os,;t t
26150 s,@LN_S@,$LN_S,;t t
26151 s,@ECHO@,$ECHO,;t t
26153 s,@ac_ct_AR@,$ac_ct_AR,;t t
26154 s,@STRIP@,$STRIP,;t t
26155 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26156 s,@CXXCPP@,$CXXCPP,;t t
26158 s,@FFLAGS@,$FFLAGS,;t t
26159 s,@ac_ct_F77@,$ac_ct_F77,;t t
26160 s,@logdir@,$logdir,;t t
26161 s,@radacctdir@,$radacctdir,;t t
26162 s,@raddbdir@,$raddbdir,;t t
26163 s,@PERL@,$PERL,;t t
26164 s,@SNMPGET@,$SNMPGET,;t t
26165 s,@SNMPWALK@,$SNMPWALK,;t t
26166 s,@RUSERS@,$RUSERS,;t t
26167 s,@ACLOCAL@,$ACLOCAL,;t t
26168 s,@AUTOCONF@,$AUTOCONF,;t t
26169 s,@AUTOHEADER@,$AUTOHEADER,;t t
26170 s,@LOCATE@,$LOCATE,;t t
26171 s,@DIRNAME@,$DIRNAME,;t t
26172 s,@GREP@,$GREP,;t t
26173 s,@REGEX@,$REGEX,;t t
26174 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
26175 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
26176 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
26177 s,@LIBPREFIX@,$LIBPREFIX,;t t
26178 s,@CRYPTLIB@,$CRYPTLIB,;t t
26179 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
26180 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
26181 s,@HOSTINFO@,$HOSTINFO,;t t
26182 s,@LIBLTDL@,$LIBLTDL,;t t
26183 s,@INCLTDL@,$INCLTDL,;t t
26184 s,@subdirs@,$subdirs,;t t
26185 s,@MODULES@,$MODULES,;t t
26186 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
26187 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
26188 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
26189 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
26190 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
26191 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
26192 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
26193 s,@LIBOBJS@,$LIBOBJS,;t t
26194 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26199 cat >>$CONFIG_STATUS <<\_ACEOF
26200 # Split the substitutions into bite-sized pieces for seds with
26201 # small command number limits, like on Digital OSF/1 and HP-UX.
26202 ac_max_sed_lines=48
26203 ac_sed_frag=1 # Number of current file.
26204 ac_beg=1 # First line for current file.
26205 ac_end=$ac_max_sed_lines # Line after last line for current file.
26208 while $ac_more_lines; do
26209 if test $ac_beg -gt 1; then
26210 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26212 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26214 if test ! -s $tmp/subs.frag; then
26215 ac_more_lines=false
26217 # The purpose of the label and of the branching condition is to
26218 # speed up the sed processing (if there are no `@' at all, there
26219 # is no need to browse any of the substitutions).
26220 # These are the two extra sed commands mentioned above.
26222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26223 if test -z "$ac_sed_cmds"; then
26224 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26226 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26228 ac_sed_frag=`expr $ac_sed_frag + 1`
26230 ac_end=`expr $ac_end + $ac_max_sed_lines`
26233 if test -z "$ac_sed_cmds"; then
26236 fi # test -n "$CONFIG_FILES"
26239 cat >>$CONFIG_STATUS <<\_ACEOF
26240 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26241 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26243 - | *:- | *:-:* ) # input from stdin
26245 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26246 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26247 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26248 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26249 * ) ac_file_in=$ac_file.in ;;
26252 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26253 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26255 X"$ac_file" : 'X\(//\)[^/]' \| \
26256 X"$ac_file" : 'X\(//\)$' \| \
26257 X"$ac_file" : 'X\(/\)' \| \
26258 . : '\(.\)' 2>/dev/null ||
26260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26262 /^X\(\/\/\)$/{ s//\1/; q; }
26263 /^X\(\/\).*/{ s//\1/; q; }
26265 { if $as_mkdir_p; then
26270 while test ! -d "$as_dir"; do
26271 as_dirs="$as_dir $as_dirs"
26272 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26274 X"$as_dir" : 'X\(//\)[^/]' \| \
26275 X"$as_dir" : 'X\(//\)$' \| \
26276 X"$as_dir" : 'X\(/\)' \| \
26277 . : '\(.\)' 2>/dev/null ||
26279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26281 /^X\(\/\/\)$/{ s//\1/; q; }
26282 /^X\(\/\).*/{ s//\1/; q; }
26285 test ! -n "$as_dirs" || mkdir $as_dirs
26286 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26287 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26288 { (exit 1); exit 1; }; }; }
26292 if test "$ac_dir" != .; then
26293 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26294 # A "../" for each directory in $ac_dir_suffix.
26295 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26297 ac_dir_suffix= ac_top_builddir=
26301 .) # No --srcdir option. We are building in place.
26303 if test -z "$ac_top_builddir"; then
26306 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26308 [\\/]* | ?:[\\/]* ) # Absolute path.
26309 ac_srcdir=$srcdir$ac_dir_suffix;
26310 ac_top_srcdir=$srcdir ;;
26311 *) # Relative path.
26312 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26313 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26316 # Do not use `cd foo && pwd` to compute absolute paths, because
26317 # the directories may not exist.
26319 .) ac_abs_builddir="$ac_dir";;
26322 .) ac_abs_builddir=`pwd`;;
26323 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26324 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26327 case $ac_abs_builddir in
26328 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26330 case ${ac_top_builddir}. in
26331 .) ac_abs_top_builddir=$ac_abs_builddir;;
26332 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26333 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26336 case $ac_abs_builddir in
26337 .) ac_abs_srcdir=$ac_srcdir;;
26340 .) ac_abs_srcdir=$ac_abs_builddir;;
26341 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26342 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26345 case $ac_abs_builddir in
26346 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26348 case $ac_top_srcdir in
26349 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26350 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26351 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26357 # Let's still pretend it is `configure' which instantiates (i.e., don't
26358 # use $as_me), people would be surprised to read:
26359 # /* config.h. Generated by config.status. */
26360 if test x"$ac_file" = x-; then
26363 configure_input="$ac_file. "
26365 configure_input=$configure_input"Generated from `echo $ac_file_in |
26366 sed 's,.*/,,'` by configure."
26368 # First look for the input files in the build tree, otherwise in the
26370 ac_file_inputs=`IFS=:
26371 for f in $ac_file_in; do
26373 -) echo $tmp/stdin ;;
26375 # Absolute (can't be DOS-style, as IFS=:)
26376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26377 echo "$as_me: error: cannot find input file: $f" >&2;}
26378 { (exit 1); exit 1; }; }
26381 if test -f "$f"; then
26384 elif test -f "$srcdir/$f"; then
26389 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26390 echo "$as_me: error: cannot find input file: $f" >&2;}
26391 { (exit 1); exit 1; }; }
26394 done` || { (exit 1); exit 1; }
26396 if test x"$ac_file" != x-; then
26397 { echo "$as_me:$LINENO: creating $ac_file" >&5
26398 echo "$as_me: creating $ac_file" >&6;}
26402 cat >>$CONFIG_STATUS <<_ACEOF
26406 cat >>$CONFIG_STATUS <<\_ACEOF
26408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26409 s,@configure_input@,$configure_input,;t t
26410 s,@srcdir@,$ac_srcdir,;t t
26411 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26412 s,@top_srcdir@,$ac_top_srcdir,;t t
26413 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26414 s,@builddir@,$ac_builddir,;t t
26415 s,@abs_builddir@,$ac_abs_builddir,;t t
26416 s,@top_builddir@,$ac_top_builddir,;t t
26417 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26418 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26420 if test x"$ac_file" != x-; then
26421 mv $tmp/out $ac_file
26429 cat >>$CONFIG_STATUS <<\_ACEOF
26432 # CONFIG_HEADER section.
26435 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26436 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26438 # ac_d sets the value in "#define NAME VALUE" lines.
26439 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26440 ac_dB='[ ].*$,\1#\2'
26443 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26444 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26445 ac_uB='$,\1#\2define\3'
26449 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26450 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26452 - | *:- | *:-:* ) # input from stdin
26454 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26455 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26456 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26457 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26458 * ) ac_file_in=$ac_file.in ;;
26461 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26462 echo "$as_me: creating $ac_file" >&6;}
26464 # First look for the input files in the build tree, otherwise in the
26466 ac_file_inputs=`IFS=:
26467 for f in $ac_file_in; do
26469 -) echo $tmp/stdin ;;
26471 # Absolute (can't be DOS-style, as IFS=:)
26472 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26473 echo "$as_me: error: cannot find input file: $f" >&2;}
26474 { (exit 1); exit 1; }; }
26475 # Do quote $f, to prevent DOS paths from being IFS'd.
26478 if test -f "$f"; then
26481 elif test -f "$srcdir/$f"; then
26486 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26487 echo "$as_me: error: cannot find input file: $f" >&2;}
26488 { (exit 1); exit 1; }; }
26491 done` || { (exit 1); exit 1; }
26492 # Remove the trailing spaces.
26493 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26497 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26498 # `conftest.undefs', that substitutes the proper values into
26499 # config.h.in to produce config.h. The first handles `#define'
26500 # templates, and the second `#undef' templates.
26501 # And first: Protect against being on the right side of a sed subst in
26502 # config.status. Protect against being in an unquoted here document
26503 # in config.status.
26504 rm -f conftest.defines conftest.undefs
26505 # Using a here document instead of a string reduces the quoting nightmare.
26506 # Putting comments in sed scripts is not portable.
26508 # `end' is used to avoid that the second main sed command (meant for
26509 # 0-ary CPP macros) applies to n-ary macro definitions.
26510 # See the Autoconf documentation for `clear'.
26511 cat >confdef2sed.sed <<\_ACEOF
26516 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26518 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26521 # If some macros were called several times there might be several times
26522 # the same #defines, which is useless. Nevertheless, we may not want to
26523 # sort them, since we want the *last* AC-DEFINE to be honored.
26524 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26525 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26526 rm -f confdef2sed.sed
26528 # This sed command replaces #undef with comments. This is necessary, for
26529 # example, in the case of _POSIX_SOURCE, which is predefined and required
26530 # on some systems where configure will not decide to define it.
26531 cat >>conftest.undefs <<\_ACEOF
26532 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26535 # Break up conftest.defines because some shells have a limit on the size
26536 # of here documents, and old seds have small limits too (100 cmds).
26537 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26538 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26539 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26540 echo ' :' >>$CONFIG_STATUS
26541 rm -f conftest.tail
26542 while grep . conftest.defines >/dev/null
26544 # Write a limited-size here document to $tmp/defines.sed.
26545 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26546 # Speed up: don't consider the non `#define' lines.
26547 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26548 # Work around the forget-to-reset-the-flag bug.
26549 echo 't clr' >>$CONFIG_STATUS
26550 echo ': clr' >>$CONFIG_STATUS
26551 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26553 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26555 mv $tmp/out $tmp/in
26557 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26558 rm -f conftest.defines
26559 mv conftest.tail conftest.defines
26561 rm -f conftest.defines
26562 echo ' fi # grep' >>$CONFIG_STATUS
26563 echo >>$CONFIG_STATUS
26565 # Break up conftest.undefs because some shells have a limit on the size
26566 # of here documents, and old seds have small limits too (100 cmds).
26567 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26568 rm -f conftest.tail
26569 while grep . conftest.undefs >/dev/null
26571 # Write a limited-size here document to $tmp/undefs.sed.
26572 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26573 # Speed up: don't consider the non `#undef'
26574 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26575 # Work around the forget-to-reset-the-flag bug.
26576 echo 't clr' >>$CONFIG_STATUS
26577 echo ': clr' >>$CONFIG_STATUS
26578 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26580 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26582 mv $tmp/out $tmp/in
26584 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26585 rm -f conftest.undefs
26586 mv conftest.tail conftest.undefs
26588 rm -f conftest.undefs
26590 cat >>$CONFIG_STATUS <<\_ACEOF
26591 # Let's still pretend it is `configure' which instantiates (i.e., don't
26592 # use $as_me), people would be surprised to read:
26593 # /* config.h. Generated by config.status. */
26594 if test x"$ac_file" = x-; then
26595 echo "/* Generated by configure. */" >$tmp/config.h
26597 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26599 cat $tmp/in >>$tmp/config.h
26601 if test x"$ac_file" != x-; then
26602 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26603 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26604 echo "$as_me: $ac_file is unchanged" >&6;}
26606 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26608 X"$ac_file" : 'X\(//\)[^/]' \| \
26609 X"$ac_file" : 'X\(//\)$' \| \
26610 X"$ac_file" : 'X\(/\)' \| \
26611 . : '\(.\)' 2>/dev/null ||
26613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26615 /^X\(\/\/\)$/{ s//\1/; q; }
26616 /^X\(\/\).*/{ s//\1/; q; }
26618 { if $as_mkdir_p; then
26623 while test ! -d "$as_dir"; do
26624 as_dirs="$as_dir $as_dirs"
26625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26627 X"$as_dir" : 'X\(//\)[^/]' \| \
26628 X"$as_dir" : 'X\(//\)$' \| \
26629 X"$as_dir" : 'X\(/\)' \| \
26630 . : '\(.\)' 2>/dev/null ||
26632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26634 /^X\(\/\/\)$/{ s//\1/; q; }
26635 /^X\(\/\).*/{ s//\1/; q; }
26638 test ! -n "$as_dirs" || mkdir $as_dirs
26639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26641 { (exit 1); exit 1; }; }; }
26644 mv $tmp/config.h $ac_file
26648 rm -f $tmp/config.h
26652 cat >>$CONFIG_STATUS <<\_ACEOF
26655 # CONFIG_COMMANDS section.
26657 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26658 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26659 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26660 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26661 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26662 X"$ac_dest" : 'X\(//\)[^/]' \| \
26663 X"$ac_dest" : 'X\(//\)$' \| \
26664 X"$ac_dest" : 'X\(/\)' \| \
26665 . : '\(.\)' 2>/dev/null ||
26667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26669 /^X\(\/\/\)$/{ s//\1/; q; }
26670 /^X\(\/\).*/{ s//\1/; q; }
26672 { if $as_mkdir_p; then
26677 while test ! -d "$as_dir"; do
26678 as_dirs="$as_dir $as_dirs"
26679 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26681 X"$as_dir" : 'X\(//\)[^/]' \| \
26682 X"$as_dir" : 'X\(//\)$' \| \
26683 X"$as_dir" : 'X\(/\)' \| \
26684 . : '\(.\)' 2>/dev/null ||
26686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26688 /^X\(\/\/\)$/{ s//\1/; q; }
26689 /^X\(\/\).*/{ s//\1/; q; }
26692 test ! -n "$as_dirs" || mkdir $as_dirs
26693 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26694 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26695 { (exit 1); exit 1; }; }; }
26699 if test "$ac_dir" != .; then
26700 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26701 # A "../" for each directory in $ac_dir_suffix.
26702 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26704 ac_dir_suffix= ac_top_builddir=
26708 .) # No --srcdir option. We are building in place.
26710 if test -z "$ac_top_builddir"; then
26713 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26715 [\\/]* | ?:[\\/]* ) # Absolute path.
26716 ac_srcdir=$srcdir$ac_dir_suffix;
26717 ac_top_srcdir=$srcdir ;;
26718 *) # Relative path.
26719 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26720 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26723 # Do not use `cd foo && pwd` to compute absolute paths, because
26724 # the directories may not exist.
26726 .) ac_abs_builddir="$ac_dir";;
26729 .) ac_abs_builddir=`pwd`;;
26730 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26731 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26734 case $ac_abs_builddir in
26735 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26737 case ${ac_top_builddir}. in
26738 .) ac_abs_top_builddir=$ac_abs_builddir;;
26739 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26740 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26743 case $ac_abs_builddir in
26744 .) ac_abs_srcdir=$ac_srcdir;;
26747 .) ac_abs_srcdir=$ac_abs_builddir;;
26748 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26749 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26752 case $ac_abs_builddir in
26753 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26755 case $ac_top_srcdir in
26756 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26757 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26758 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26763 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26764 echo "$as_me: executing $ac_dest commands" >&6;}
26766 stamp-h ) echo timestamp > src/include/stamp-h ;;
26767 build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26768 main-chmod ) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26769 scripts-chmod ) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26774 cat >>$CONFIG_STATUS <<\_ACEOF
26776 { (exit 0); exit 0; }
26778 chmod +x $CONFIG_STATUS
26779 ac_clean_files=$ac_clean_files_save
26782 # configure is writing to config.log, and then calls config.status.
26783 # config.status does its own redirection, appending to config.log.
26784 # Unfortunately, on DOS this fails, as config.log is still kept open
26785 # by configure, so config.status won't be able to write to it; its
26786 # output is simply discarded. So we exec the FD to /dev/null,
26787 # effectively closing config.log, so it can be properly (re)opened and
26788 # appended to by config.status. When coming back to configure, we
26789 # need to make the FD available again.
26790 if test "$no_create" != yes; then
26792 ac_config_status_args=
26793 test "$silent" = yes &&
26794 ac_config_status_args="$ac_config_status_args --quiet"
26796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26799 # would make configure fail if this is the last instruction.
26800 $ac_cs_success || { (exit 1); exit 1; }
26804 # CONFIG_SUBDIRS section.
26806 if test "$no_recursion" != yes; then
26808 # Remove --cache-file and --srcdir arguments so they do not pile up.
26809 ac_sub_configure_args=
26811 for ac_arg in $ac_configure_args; do
26812 if test -n "$ac_prev"; then
26817 -cache-file | --cache-file | --cache-fil | --cache-fi \
26818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26819 ac_prev=cache_file ;;
26820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26824 --config-cache | -C)
26826 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26828 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26830 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26832 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26834 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26838 # Always prepend --prefix to ensure using the same prefix
26839 # in subdir configurations.
26840 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26843 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26845 # Do not complain, so a configure script can configure whichever
26846 # parts of a large source tree are present.
26847 test -d $srcdir/$ac_dir || continue
26849 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26850 echo "$as_me: configuring in $ac_dir" >&6;}
26851 { if $as_mkdir_p; then
26856 while test ! -d "$as_dir"; do
26857 as_dirs="$as_dir $as_dirs"
26858 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26860 X"$as_dir" : 'X\(//\)[^/]' \| \
26861 X"$as_dir" : 'X\(//\)$' \| \
26862 X"$as_dir" : 'X\(/\)' \| \
26863 . : '\(.\)' 2>/dev/null ||
26865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26867 /^X\(\/\/\)$/{ s//\1/; q; }
26868 /^X\(\/\).*/{ s//\1/; q; }
26871 test ! -n "$as_dirs" || mkdir $as_dirs
26872 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26873 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26874 { (exit 1); exit 1; }; }; }
26878 if test "$ac_dir" != .; then
26879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26880 # A "../" for each directory in $ac_dir_suffix.
26881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26883 ac_dir_suffix= ac_top_builddir=
26887 .) # No --srcdir option. We are building in place.
26889 if test -z "$ac_top_builddir"; then
26892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26894 [\\/]* | ?:[\\/]* ) # Absolute path.
26895 ac_srcdir=$srcdir$ac_dir_suffix;
26896 ac_top_srcdir=$srcdir ;;
26897 *) # Relative path.
26898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26902 # Do not use `cd foo && pwd` to compute absolute paths, because
26903 # the directories may not exist.
26905 .) ac_abs_builddir="$ac_dir";;
26908 .) ac_abs_builddir=`pwd`;;
26909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26913 case $ac_abs_builddir in
26914 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26916 case ${ac_top_builddir}. in
26917 .) ac_abs_top_builddir=$ac_abs_builddir;;
26918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26922 case $ac_abs_builddir in
26923 .) ac_abs_srcdir=$ac_srcdir;;
26926 .) ac_abs_srcdir=$ac_abs_builddir;;
26927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26931 case $ac_abs_builddir in
26932 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26934 case $ac_top_srcdir in
26935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26944 # Check for guested configure; otherwise get Cygnus style configure.
26945 if test -f $ac_srcdir/configure.gnu; then
26946 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26947 elif test -f $ac_srcdir/configure; then
26948 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26949 elif test -f $ac_srcdir/configure.in; then
26950 ac_sub_configure=$ac_configure
26952 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26957 # The recursion is here.
26958 if test -n "$ac_sub_configure"; then
26959 # Make the cache file name correct relative to the subdirectory.
26960 case $cache_file in
26961 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26962 *) # Relative path.
26963 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26966 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26967 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26968 # The eval makes quoting arguments work.
26969 eval $ac_sub_configure $ac_sub_configure_args \
26970 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26971 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26972 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26973 { (exit 1); exit 1; }; }