2 # From configure.in Revision: 1.198.2.15.2.8 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
290 echo_test_string=`eval $cmd` &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=${tagnames+${tagnames},}CXX
397 tagnames=${tagnames+${tagnames},}F77
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
429 ac_unique_file="src/main/radiusd.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subdirs_all="$ac_subdirs_all $LTDL_SUBDIRS $mysubdirs"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB abs_top_builddir GMAKE MAKE LTDL_SUBDIRS LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX 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 GETCONF LFS_CFLAGS LFS_LDFLAGS LFS_LIBS 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_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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 --enable-shared[=PKGS]
1024 build shared libraries [default=yes]
1025 --enable-static[=PKGS]
1026 build static libraries [default=yes]
1027 --enable-fast-install[=PKGS]
1028 optimize for fast installation [default=yes]
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-strict-dependencies Fail configure on lack of module dependancy.
1031 --enable-developer Enables features of interest to developers.
1034 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1035 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1036 --with-system-libtool try to use libtool installed in your system default=use our own
1037 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1038 --with-pic try to use only PIC/non-PIC objects [default=use
1041 include additional configurations [automatic]
1042 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1043 --with-radacctdir=PATH Directory for detail files LOGDIR/radacct
1044 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1045 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1046 --with-threads Use threads, if available. (default=yes)
1047 --with-snmp Compile in SNMP support. (default=yes)
1048 --with-large-files Compile in large (2G+) file support. (default=no)
1049 --with-static-modules=QUOTED-MODULE-LIST
1050 --with-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)
1057 --with-edir Enable Novell eDirectory integration. (default=no)
1059 Some influential environment variables:
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
1067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
1069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1079 if test "$ac_init_help" = "recursive"; then
1080 # If there are subdirs, report their specific --help.
1082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083 test -d $ac_dir || continue
1086 if test "$ac_dir" != .; then
1087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088 # A "../" for each directory in $ac_dir_suffix.
1089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 ac_dir_suffix= ac_top_builddir=
1095 .) # No --srcdir option. We are building in place.
1097 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 [\\/]* | ?:[\\/]* ) # Absolute path.
1103 ac_srcdir=$srcdir$ac_dir_suffix;
1104 ac_top_srcdir=$srcdir ;;
1106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1113 .) ac_abs_builddir="$ac_dir";;
1116 .) ac_abs_builddir=`pwd`;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 case ${ac_top_builddir}. in
1125 .) ac_abs_top_builddir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1134 .) ac_abs_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 case $ac_top_srcdir in
1143 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 # Check for guested configure; otherwise get Cygnus style configure.
1151 if test -f $ac_srcdir/configure.gnu; then
1153 $SHELL $ac_srcdir/configure.gnu --help=recursive
1154 elif test -f $ac_srcdir/configure; then
1156 $SHELL $ac_srcdir/configure --help=recursive
1157 elif test -f $ac_srcdir/configure.ac ||
1158 test -f $ac_srcdir/configure.in; then
1160 $ac_configure --help
1162 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1183 It was created by $as_me, which was
1184 generated by GNU Autoconf 2.59. Invocation command line was
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1204 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1205 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1208 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1209 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1210 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1218 test -z "$as_dir" && as_dir=.
1219 echo "PATH: $as_dir"
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1243 ac_must_keep_next=false
1249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1257 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1259 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260 if test $ac_must_keep_next = true; then
1261 ac_must_keep_next=false # Got value, back to normal.
1264 *=* | --config-cache | -C | -disable-* | --disable-* \
1265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267 | -with-* | --with-* | -without-* | --without-* | --x)
1268 case "$ac_configure_args0 " in
1269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1272 -* ) ac_must_keep_next=true ;;
1275 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276 # Get rid of the leading space.
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log. We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291 # Save into config.log some information that might help in debugging.
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1301 # The following way of writing the cache mishandles newlines in values,
1304 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1307 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1324 for ac_var in $ac_subst_vars
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1331 if test -n "$ac_subst_files"; then
1338 for ac_var in $ac_subst_files
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1346 if test -s confdefs.h; then
1353 sed "/^$/d" confdefs.h | sort
1356 test "$ac_signal" != 0 &&
1357 echo "$as_me: caught signal $ac_signal"
1358 echo "$as_me: exit $exit_status"
1360 rm -f core *.core &&
1361 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1364 for ac_signal in 1 2 13 15; do
1365 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1374 # Predefined preprocessor variables.
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404 if test "x$prefix" != xNONE; then
1405 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1407 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1410 for ac_site_file in $CONFIG_SITE; do
1411 if test -r "$ac_site_file"; then
1412 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414 sed 's/^/| /' "$ac_site_file" >&5
1419 if test -r "$cache_file"; then
1420 # Some versions of bash will fail to source /dev/null (special
1421 # files actually), so we avoid doing that.
1422 if test -f "$cache_file"; then
1423 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1426 [\\/]* | ?:[\\/]* ) . $cache_file;;
1427 *) . ./$cache_file;;
1431 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1436 # Check that the precious variables saved in the cache have kept the same
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442 eval ac_new_set=\$ac_env_${ac_var}_set
1443 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444 eval ac_new_val="\$ac_env_${ac_var}_value"
1445 case $ac_old_set,$ac_new_set in
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1456 if test "x$ac_old_val" != "x$ac_new_val"; then
1457 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1460 echo "$as_me: former value: $ac_old_val" >&2;}
1461 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1462 echo "$as_me: current value: $ac_new_val" >&2;}
1463 ac_cache_corrupted=:
1466 # Pass precious variables to config.status.
1467 if test "$ac_new_set" = set; then
1469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471 *) ac_arg=$ac_var=$ac_new_val ;;
1473 case " $ac_configure_args " in
1474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1475 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1479 if $ac_cache_corrupted; then
1480 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484 { (exit 1); exit 1; }; }
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1515 RADIUSD_MAJOR_VERSION=1
1516 RADIUSD_MINOR_VERSION=1.3
1517 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 if test -n "$ac_tool_prefix"; then
1526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 if test -n "$CC"; then
1554 echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1562 if test -z "$ac_cv_prog_CC"; then
1564 # Extract the first word of "gcc", so it can be a program name with args.
1565 set dummy gcc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 if test -n "$ac_ct_CC"; then
1572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_ac_ct_CC="gcc"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1604 if test -z "$CC"; then
1605 if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1642 if test -z "$ac_cv_prog_CC"; then
1644 # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="cc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1685 if test -z "$CC"; then
1686 # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1705 ac_prog_rejected=yes
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test $ac_prog_rejected = yes; then
1716 # We found a bogon in the path, so make sure we never use it.
1717 set dummy $ac_cv_prog_CC
1719 if test $# != 0; then
1720 # We chose a different compiler from the bogus one.
1721 # However, it has the same basename, so the bogon will be chosen
1722 # first if we set CC to just the basename; use the full file name.
1724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1730 if test -n "$CC"; then
1731 echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1739 if test -z "$CC"; then
1740 if test -n "$ac_tool_prefix"; then
1743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 if test -n "$CC"; then
1751 ac_cv_prog_CC="$CC" # Let the user override the test.
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 if test -n "$CC"; then
1771 echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1778 test -n "$CC" && break
1781 if test -z "$CC"; then
1785 # Extract the first word of "$ac_prog", so it can be a program name with args.
1786 set dummy $ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 if test -n "$ac_ct_CC"; then
1793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 test -z "$as_dir" && as_dir=.
1800 for ac_exec_ext in '' $ac_executable_extensions; do
1801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802 ac_cv_prog_ac_ct_CC="$ac_prog"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812 if test -n "$ac_ct_CC"; then
1813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814 echo "${ECHO_T}$ac_ct_CC" >&6
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1820 test -n "$ac_ct_CC" && break
1829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&2;}
1833 { (exit 1); exit 1; }; }
1835 # Provide some information about the compiler.
1836 echo "$as_me:$LINENO:" \
1837 "checking for C compiler version" >&5
1838 ac_compiler=`set X $ac_compile; echo $2`
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1840 (eval $ac_compiler --version </dev/null >&5) 2>&5
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1845 (eval $ac_compiler -v </dev/null >&5) 2>&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1850 (eval $ac_compiler -V </dev/null >&5) 2>&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }
1855 cat >conftest.$ac_ext <<_ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h. */
1870 ac_clean_files_save=$ac_clean_files
1871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1872 # Try to create an executable without -o first, disregard a.out.
1873 # It will help us diagnose broken compilers, and finding out an intuition
1875 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1876 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1879 (eval $ac_link_default) 2>&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # Find the output, starting from the most likely. This scheme is
1884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1887 # Be careful to initialize this variable, since it used to be cached.
1888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890 # b.out is created by i960 compilers.
1891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893 test -f "$ac_file" || continue
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1898 # This is the source file.
1901 # We found the default executable, but exeext='' is most
1905 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906 # FIXME: I believe we export ac_cv_exeext for Libtool,
1907 # but it would be cool to find out if it's true. Does anybody
1908 # maintain Libtool? --akim.
1916 echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: C compiler cannot create executables
1922 See \`config.log' for more details." >&2;}
1923 { (exit 77); exit 77; }; }
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1930 # Check the compiler produces executables we can run. If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937 if { ac_try='./$ac_file'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1945 if test "$cross_compiling" = maybe; then
1948 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'.
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1958 echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run. If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1973 (eval $ac_link) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; then
1977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1981 for ac_file in conftest.exe conftest conftest.*; do
1982 test -f "$ac_file" || continue
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1992 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1995 See \`config.log' for more details." >&2;}
1996 { (exit 1); exit 1; }; }
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h. */
2026 rm -f conftest.o conftest.obj
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; then
2032 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040 echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&2;}
2047 { (exit 1); exit 1; }; }
2050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2053 echo "${ECHO_T}$ac_cv_objext" >&6
2054 OBJEXT=$ac_cv_objext
2056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.$ac_ext <<_ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2079 rm -f conftest.$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081 (eval $ac_compile) 2>conftest.er1
2083 grep -v '^ *+' conftest.er1 >conftest.err
2085 cat conftest.err >&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); } &&
2088 { ac_try='test -z "$ac_c_werror_flag"
2089 || test ! -s conftest.err'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; } &&
2095 { ac_try='test -s conftest.$ac_objext'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; }; then
2103 echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2112 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2113 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2114 GCC=`test $ac_compiler_gnu = yes && echo yes`
2115 ac_test_CFLAGS=${CFLAGS+set}
2116 ac_save_CFLAGS=$CFLAGS
2118 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2119 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_g+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 cat >conftest.$ac_ext <<_ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>conftest.er1
2142 grep -v '^ *+' conftest.er1 >conftest.err
2144 cat conftest.err >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); } &&
2147 { ac_try='test -z "$ac_c_werror_flag"
2148 || test ! -s conftest.err'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2170 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2171 if test "$ac_test_CFLAGS" = set; then
2172 CFLAGS=$ac_save_CFLAGS
2173 elif test $ac_cv_prog_cc_g = yes; then
2174 if test "$GCC" = yes; then
2180 if test "$GCC" = yes; then
2186 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2187 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2188 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 ac_cv_prog_cc_stdc=no
2193 cat >conftest.$ac_ext <<_ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2201 #include <sys/types.h>
2202 #include <sys/stat.h>
2203 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2204 struct buf { int x; };
2205 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2206 static char *e (p, i)
2212 static char *f (char * (*g) (char **, int), char **p, ...)
2217 s = g (p, va_arg (v,int));
2222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2223 function prototypes and stuff, but not '\xHH' hex character constants.
2224 These don't provoke an error unfortunately, instead are silently treated
2225 as 'x'. The following induces an error, until -std1 is added to get
2226 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2227 array size at least. It's necessary to write '\x00'==0 to get something
2228 that's true only with -std1. */
2229 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2231 int test (int i, double x);
2232 struct s1 {int (*f) (int a);};
2233 struct s2 {int (*f) (double a);};
2234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2240 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2245 # Don't try gcc -ansi; that turns off useful extensions and
2246 # breaks some systems' header files.
2247 # AIX -qlanglvl=ansi
2248 # Ultrix and OSF/1 -std1
2249 # HP-UX 10.20 and later -Ae
2250 # HP-UX older versions -Aa -D_HPUX_SOURCE
2251 # SVR4 -Xc -D__EXTENSIONS__
2252 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2254 CC="$ac_save_CC $ac_arg"
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 ac_cv_prog_cc_stdc=$ac_arg
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.err conftest.$ac_objext
2286 rm -f conftest.$ac_ext conftest.$ac_objext
2291 case "x$ac_cv_prog_cc_stdc" in
2293 echo "$as_me:$LINENO: result: none needed" >&5
2294 echo "${ECHO_T}none needed" >&6 ;;
2296 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2298 CC="$CC $ac_cv_prog_cc_stdc" ;;
2301 # Some people use a C++ compiler to compile C. Since we use `exit',
2302 # in C++ we need to declare it. In case someone uses the same compiler
2303 # for both compiling C and C++ we need to have the C++ compiler decide
2304 # the declaration of exit, since it's the most demanding environment.
2305 cat >conftest.$ac_ext <<_ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2314 grep -v '^ *+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 for ac_declaration in \
2334 'extern "C" void std::exit (int) throw (); using std::exit;' \
2335 'extern "C" void std::exit (int); using std::exit;' \
2336 'extern "C" void exit (int) throw ();' \
2337 'extern "C" void exit (int);' \
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>conftest.er1
2360 grep -v '^ *+' conftest.er1 >conftest.err
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -z "$ac_c_werror_flag"
2366 || test ! -s conftest.err'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; } &&
2372 { ac_try='test -s conftest.$ac_objext'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; }; then
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2386 cat >conftest.$ac_ext <<_ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2405 grep -v '^ *+' conftest.er1 >conftest.err
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag"
2411 || test ! -s conftest.err'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2432 if test -n "$ac_declaration"; then
2433 echo '#ifdef __cplusplus' >>confdefs.h
2434 echo $ac_declaration >>confdefs.h
2435 echo '#endif' >>confdefs.h
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ac_cpp='$CPP $CPPFLAGS'
2446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2458 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2459 # On Suns, sometimes $CPP names a directory.
2460 if test -n "$CPP" && test -d "$CPP"; then
2463 if test -z "$CPP"; then
2464 if test "${ac_cv_prog_CPP+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 # Double quotes because CPP needs to be expanded
2468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2471 for ac_c_preproc_warn_flag in '' yes
2473 # Use a header file that comes with gcc, so configuring glibc
2474 # with a fresh cross-compiler works.
2475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2476 # <limits.h> exists even on freestanding compilers.
2477 # On the NeXT, cc -E runs the code through the compiler's parser,
2478 # not just through cpp. "Syntax error" is here to catch this case.
2479 cat >conftest.$ac_ext <<_ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2486 # include <limits.h>
2488 # include <assert.h>
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495 grep -v '^ *+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2509 if test -z "$ac_cpp_err"; then
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2515 # Broken: fails on valid input.
2518 rm -f conftest.err conftest.$ac_ext
2520 # OK, works on sane cases. Now check whether non-existent headers
2521 # can be detected and how.
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2528 #include <ac_nonexistent.h>
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2533 grep -v '^ *+' conftest.er1 >conftest.err
2535 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } >/dev/null; then
2538 if test -s conftest.err; then
2539 ac_cpp_err=$ac_c_preproc_warn_flag
2540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2547 if test -z "$ac_cpp_err"; then
2548 # Broken: success on invalid input.
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2554 # Passes both tests.
2558 rm -f conftest.err conftest.$ac_ext
2561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2562 rm -f conftest.err conftest.$ac_ext
2563 if $ac_preproc_ok; then
2575 echo "$as_me:$LINENO: result: $CPP" >&5
2576 echo "${ECHO_T}$CPP" >&6
2578 for ac_c_preproc_warn_flag in '' yes
2580 # Use a header file that comes with gcc, so configuring glibc
2581 # with a fresh cross-compiler works.
2582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2583 # <limits.h> exists even on freestanding compilers.
2584 # On the NeXT, cc -E runs the code through the compiler's parser,
2585 # not just through cpp. "Syntax error" is here to catch this case.
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2593 # include <limits.h>
2595 # include <assert.h>
2599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } >/dev/null; then
2607 if test -s conftest.err; then
2608 ac_cpp_err=$ac_c_preproc_warn_flag
2609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2616 if test -z "$ac_cpp_err"; then
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2622 # Broken: fails on valid input.
2625 rm -f conftest.err conftest.$ac_ext
2627 # OK, works on sane cases. Now check whether non-existent headers
2628 # can be detected and how.
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2635 #include <ac_nonexistent.h>
2637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2638 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
2645 if test -s conftest.err; then
2646 ac_cpp_err=$ac_c_preproc_warn_flag
2647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2654 if test -z "$ac_cpp_err"; then
2655 # Broken: success on invalid input.
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 # Passes both tests.
2665 rm -f conftest.err conftest.$ac_ext
2668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2669 rm -f conftest.err conftest.$ac_ext
2670 if $ac_preproc_ok; then
2673 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2674 See \`config.log' for more details." >&5
2675 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2676 See \`config.log' for more details." >&2;}
2677 { (exit 1); exit 1; }; }
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687 echo "$as_me:$LINENO: checking for egrep" >&5
2688 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2689 if test "${ac_cv_prog_egrep+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2693 then ac_cv_prog_egrep='grep -E'
2694 else ac_cv_prog_egrep='egrep'
2697 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2698 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2699 EGREP=$ac_cv_prog_egrep
2703 echo "$as_me:$LINENO: checking for AIX" >&5
2704 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2705 cat >conftest.$ac_ext <<_ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2717 $EGREP "yes" >/dev/null 2>&1; then
2718 echo "$as_me:$LINENO: result: yes" >&5
2719 echo "${ECHO_T}yes" >&6
2720 cat >>confdefs.h <<\_ACEOF
2721 #define _ALL_SOURCE 1
2725 echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2732 if test $ac_cv_c_compiler_gnu = yes; then
2733 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2734 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2735 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 ac_pattern="Autoconf.*'x'"
2739 cat >conftest.$ac_ext <<_ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2749 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2750 ac_cv_prog_gcc_traditional=yes
2752 ac_cv_prog_gcc_traditional=no
2757 if test $ac_cv_prog_gcc_traditional = no; then
2758 cat >conftest.$ac_ext <<_ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2768 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2769 ac_cv_prog_gcc_traditional=yes
2775 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2776 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2777 if test $ac_cv_prog_gcc_traditional = yes; then
2778 CC="$CC -traditional"
2782 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2783 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2784 if test "${ac_cv_prog_suncc+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 cat > conftest.c <<EOF
2792 if { ac_try='${CC-cc} -E conftest.c'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2798 ac_cv_prog_suncc=yes
2803 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2804 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2808 echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2810 if test "${ac_cv_prog_RANLIB+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 if test -n "$RANLIB"; then
2814 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 RANLIB=$ac_cv_prog_RANLIB
2833 if test -n "$RANLIB"; then
2834 echo "$as_me:$LINENO: result: $RANLIB" >&5
2835 echo "${ECHO_T}$RANLIB" >&6
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2842 if test -z "$ac_cv_prog_RANLIB"; then
2843 ac_ct_RANLIB=$RANLIB
2844 # Extract the first word of "ranlib", so it can be a program name with args.
2845 set dummy ranlib; ac_word=$2
2846 echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2848 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 if test -n "$ac_ct_RANLIB"; then
2852 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_ac_ct_RANLIB="ranlib"
2862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2871 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2872 if test -n "$ac_ct_RANLIB"; then
2873 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2874 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2876 echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2880 RANLIB=$ac_ct_RANLIB
2882 RANLIB="$ac_cv_prog_RANLIB"
2886 abs_top_builddir=`pwd`
2892 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2893 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2894 if test "${ac_cv_c_bigendian+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 # See if sys/param.h defines the BYTE_ORDER macro.
2898 cat >conftest.$ac_ext <<_ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2904 #include <sys/types.h>
2905 #include <sys/param.h>
2910 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1 >conftest.err
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 # It does; now see whether it defined to BIG_ENDIAN or not.
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <sys/types.h>
2948 #include <sys/param.h>
2953 #if BYTE_ORDER != BIG_ENDIAN
2961 rm -f conftest.$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963 (eval $ac_compile) 2>conftest.er1
2965 grep -v '^ *+' conftest.er1 >conftest.err
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -z "$ac_c_werror_flag"
2971 || test ! -s conftest.err'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try='test -s conftest.$ac_objext'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2983 ac_cv_c_bigendian=yes
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 ac_cv_c_bigendian=no
2990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 # It does not; compile a test program.
2996 if test "$cross_compiling" = yes; then
2997 # try to guess the endianness by grepping values into an object file
2998 ac_cv_c_bigendian=unknown
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3006 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3007 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3008 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3009 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3010 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3014 _ascii (); _ebcdic ();
3019 rm -f conftest.$ac_objext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021 (eval $ac_compile) 2>conftest.er1
3023 grep -v '^ *+' conftest.er1 >conftest.err
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -z "$ac_c_werror_flag"
3029 || test ! -s conftest.err'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3042 ac_cv_c_bigendian=yes
3044 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3045 if test "$ac_cv_c_bigendian" = unknown; then
3046 ac_cv_c_bigendian=no
3048 # finding both strings is unlikely to happen, but who knows?
3049 ac_cv_c_bigendian=unknown
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3068 /* Are we little or big endian? From Harbison&Steele. */
3072 char c[sizeof (long)];
3075 exit (u.c[sizeof (long) - 1] == 1);
3078 rm -f conftest$ac_exeext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3080 (eval $ac_link) 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 ac_cv_c_bigendian=no
3091 echo "$as_me: program exited with status $ac_status" >&5
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3096 ac_cv_c_bigendian=yes
3098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3104 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3105 case $ac_cv_c_bigendian in
3108 cat >>confdefs.h <<\_ACEOF
3109 #define WORDS_BIGENDIAN 1
3115 { { echo "$as_me:$LINENO: error: unknown endianness
3116 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3117 echo "$as_me: error: unknown endianness
3118 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3119 { (exit 1); exit 1; }; } ;;
3123 # Extract the first word of "gmake", so it can be a program name with args.
3124 set dummy gmake; ac_word=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_GMAKE+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if test -n "$GMAKE"; then
3131 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_GMAKE="yes"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3150 GMAKE=$ac_cv_prog_GMAKE
3151 if test -n "$GMAKE"; then
3152 echo "$as_me:$LINENO: result: $GMAKE" >&5
3153 echo "${ECHO_T}$GMAKE" >&6
3155 echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6
3159 if test $GMAKE = no; then
3160 # Extract the first word of "make", so it can be a program name with args.
3161 set dummy make; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_path_MAKE+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3190 MAKE=$ac_cv_path_MAKE
3192 if test -n "$MAKE"; then
3193 echo "$as_me:$LINENO: result: $MAKE" >&5
3194 echo "${ECHO_T}$MAKE" >&6
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3201 # Extract the first word of "gmake", so it can be a program name with args.
3202 set dummy gmake; ac_word=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_path_MAKE+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3231 MAKE=$ac_cv_path_MAKE
3233 if test -n "$MAKE"; then
3234 echo "$as_me:$LINENO: result: $MAKE" >&5
3235 echo "${ECHO_T}$MAKE" >&6
3237 echo "$as_me:$LINENO: result: no" >&5
3238 echo "${ECHO_T}no" >&6
3242 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3243 if test -z "$makever"; then
3244 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3245 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3246 echo "$as_me: error: GNU Make is not installed. Please download and install it
3247 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3248 { (exit 1); exit 1; }; }
3251 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3252 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3253 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 ac_check_lib_save_LIBS=$LIBS
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3265 /* Override any gcc2 internal prototype to avoid an error. */
3269 /* We use char because int might match the return type of a gcc2
3270 builtin and then its argument prototype would still apply. */
3280 rm -f conftest.$ac_objext conftest$ac_exeext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3282 (eval $ac_link) 2>conftest.er1
3284 grep -v '^ *+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try='test -z "$ac_c_werror_flag"
3290 || test ! -s conftest.err'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; } &&
3296 { ac_try='test -s conftest$ac_exeext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 ac_cv_lib_ltdl_lt_dlinit=yes
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 ac_cv_lib_ltdl_lt_dlinit=no
3309 rm -f conftest.err conftest.$ac_objext \
3310 conftest$ac_exeext conftest.$ac_ext
3311 LIBS=$ac_check_lib_save_LIBS
3313 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3314 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3315 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3316 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3318 if test x"$enable_ltdl_install" = xno; then
3319 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3320 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3322 enable_ltdl_install=yes
3327 if test x"$enable_ltdl_install" = x"yes"; then
3328 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3329 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3330 LTDLINCL='-I${top_srcdir}/''libltdl'
3332 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3336 # For backwards non-gettext consistent compatibility...
3340 if test x"$enable_ltdl_install" = x"yes"; then
3341 LTDL_SUBDIRS=libltdl
3345 # Check whether --enable-shared or --disable-shared was given.
3346 if test "${enable_shared+set}" = set; then
3347 enableval="$enable_shared"
3348 p=${PACKAGE-default}
3350 yes) enable_shared=yes ;;
3351 no) enable_shared=no ;;
3354 # Look at the argument we got. We use all the common list separators.
3355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3356 for pkg in $enableval; do
3358 if test "X$pkg" = "X$p"; then
3369 # Check whether --enable-static or --disable-static was given.
3370 if test "${enable_static+set}" = set; then
3371 enableval="$enable_static"
3372 p=${PACKAGE-default}
3374 yes) enable_static=yes ;;
3375 no) enable_static=no ;;
3378 # Look at the argument we got. We use all the common list separators.
3379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3380 for pkg in $enableval; do
3382 if test "X$pkg" = "X$p"; then
3393 # Check whether --enable-fast-install or --disable-fast-install was given.
3394 if test "${enable_fast_install+set}" = set; then
3395 enableval="$enable_fast_install"
3396 p=${PACKAGE-default}
3398 yes) enable_fast_install=yes ;;
3399 no) enable_fast_install=no ;;
3401 enable_fast_install=no
3402 # Look at the argument we got. We use all the common list separators.
3403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3404 for pkg in $enableval; do
3406 if test "X$pkg" = "X$p"; then
3407 enable_fast_install=yes
3414 enable_fast_install=yes
3418 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3419 if test -f $ac_dir/install-sh; then
3421 ac_install_sh="$ac_aux_dir/install-sh -c"
3423 elif test -f $ac_dir/install.sh; then
3425 ac_install_sh="$ac_aux_dir/install.sh -c"
3427 elif test -f $ac_dir/shtool; then
3429 ac_install_sh="$ac_aux_dir/shtool install -c"
3433 if test -z "$ac_aux_dir"; then
3434 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3435 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3436 { (exit 1); exit 1; }; }
3438 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3439 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3440 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3442 # Make sure we can run config.sub.
3443 $ac_config_sub sun4 >/dev/null 2>&1 ||
3444 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3445 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3446 { (exit 1); exit 1; }; }
3448 echo "$as_me:$LINENO: checking build system type" >&5
3449 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3450 if test "${ac_cv_build+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 ac_cv_build_alias=$build_alias
3454 test -z "$ac_cv_build_alias" &&
3455 ac_cv_build_alias=`$ac_config_guess`
3456 test -z "$ac_cv_build_alias" &&
3457 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3458 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3459 { (exit 1); exit 1; }; }
3460 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3461 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3462 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3463 { (exit 1); exit 1; }; }
3466 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3467 echo "${ECHO_T}$ac_cv_build" >&6
3469 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3470 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3471 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3474 echo "$as_me:$LINENO: checking host system type" >&5
3475 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3476 if test "${ac_cv_host+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 ac_cv_host_alias=$host_alias
3480 test -z "$ac_cv_host_alias" &&
3481 ac_cv_host_alias=$ac_cv_build_alias
3482 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3483 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3484 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3485 { (exit 1); exit 1; }; }
3488 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3489 echo "${ECHO_T}$ac_cv_host" >&6
3491 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3492 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3493 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3496 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3497 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3498 if test "${lt_cv_path_SED+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 # Loop through the user's path and test for sed and gsed.
3502 # Then use that list of sed's as ones to test for truncation.
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir=.
3508 for lt_ac_prog in sed gsed; do
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3511 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3518 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3519 # along with /bin/sed that truncates output.
3520 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3521 test ! -f $lt_ac_sed && continue
3522 cat /dev/null > conftest.in
3524 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3525 # Check for GNU sed and select it if it is found.
3526 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3527 lt_cv_path_SED=$lt_ac_sed
3531 cat conftest.in conftest.in >conftest.tmp
3532 mv conftest.tmp conftest.in
3533 cp conftest.in conftest.nl
3535 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3536 cmp -s conftest.out conftest.nl || break
3537 # 10000 chars as input seems more than enough
3538 test $lt_ac_count -gt 10 && break
3539 lt_ac_count=`expr $lt_ac_count + 1`
3540 if test $lt_ac_count -gt $lt_ac_max; then
3541 lt_ac_max=$lt_ac_count
3542 lt_cv_path_SED=$lt_ac_sed
3550 echo "$as_me:$LINENO: result: $SED" >&5
3551 echo "${ECHO_T}$SED" >&6
3554 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3555 if test "${with_gnu_ld+set}" = set; then
3556 withval="$with_gnu_ld"
3557 test "$withval" = no || with_gnu_ld=yes
3562 if test "$GCC" = yes; then
3563 # Check if gcc -print-prog-name=ld gives a path.
3564 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3565 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3568 # gcc leaves a trailing carriage return which upsets mingw
3569 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3571 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3574 # Accept absolute paths.
3576 re_direlt='/[^/][^/]*/\.\./'
3577 # Canonicalize the pathname of ld
3578 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3579 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3580 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3582 test -z "$LD" && LD="$ac_prog"
3585 # If it fails, then pretend we aren't using GCC.
3589 # If it is relative, then search for the first ld in PATH.
3593 elif test "$with_gnu_ld" = yes; then
3594 echo "$as_me:$LINENO: checking for GNU ld" >&5
3595 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3597 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3598 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3600 if test "${lt_cv_path_LD+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 if test -z "$LD"; then
3604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3605 for ac_dir in $PATH; do
3607 test -z "$ac_dir" && ac_dir=.
3608 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3609 lt_cv_path_LD="$ac_dir/$ac_prog"
3610 # Check to see if the program is GNU ld. I'd rather use --version,
3611 # but apparently some variants of GNU ld only accept -v.
3612 # Break only if it was the GNU/non-GNU ld that we prefer.
3613 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3614 *GNU* | *'with BFD'*)
3615 test "$with_gnu_ld" != no && break
3618 test "$with_gnu_ld" != yes && break
3625 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3630 if test -n "$LD"; then
3631 echo "$as_me:$LINENO: result: $LD" >&5
3632 echo "${ECHO_T}$LD" >&6
3634 echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3637 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3638 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3639 { (exit 1); exit 1; }; }
3640 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3641 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3642 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3646 case `$LD -v 2>&1 </dev/null` in
3647 *GNU* | *'with BFD'*)
3648 lt_cv_prog_gnu_ld=yes
3651 lt_cv_prog_gnu_ld=no
3655 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3656 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3657 with_gnu_ld=$lt_cv_prog_gnu_ld
3660 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3661 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3662 if test "${lt_cv_ld_reload_flag+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 lt_cv_ld_reload_flag='-r'
3667 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3668 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3669 reload_flag=$lt_cv_ld_reload_flag
3670 case $reload_flag in
3672 *) reload_flag=" $reload_flag" ;;
3674 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3677 if test "$GCC" = yes; then
3678 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3685 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3686 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3687 if test "${lt_cv_path_NM+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 if test -n "$NM"; then
3691 # Let the user override the test.
3694 lt_nm_to_check="${ac_tool_prefix}nm"
3695 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3696 lt_nm_to_check="$lt_nm_to_check nm"
3698 for lt_tmp_nm in $lt_nm_to_check; do
3699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3700 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3702 test -z "$ac_dir" && ac_dir=.
3703 tmp_nm="$ac_dir/$lt_tmp_nm"
3704 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3705 # Check to see if the nm accepts a BSD-compat flag.
3706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3707 # nm: unknown option "B" ignored
3708 # Tru64's nm complains that /dev/null is an invalid object file
3709 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3710 */dev/null* | *'Invalid file or object type'*)
3711 lt_cv_path_NM="$tmp_nm -B"
3715 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3717 lt_cv_path_NM="$tmp_nm -p"
3721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3722 continue # so that we can try to find one that supports BSD flags
3731 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3734 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3735 echo "${ECHO_T}$lt_cv_path_NM" >&6
3738 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3739 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3741 if test "$LN_S" = "ln -s"; then
3742 echo "$as_me:$LINENO: result: yes" >&5
3743 echo "${ECHO_T}yes" >&6
3745 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3746 echo "${ECHO_T}no, using $LN_S" >&6
3749 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3750 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3751 if test "${lt_cv_deplibs_check_method+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 lt_cv_file_magic_cmd='$MAGIC_CMD'
3755 lt_cv_file_magic_test_file=
3756 lt_cv_deplibs_check_method='unknown'
3757 # Need to set the preceding variable on all platforms that support
3758 # interlibrary dependencies.
3759 # 'none' -- dependencies not supported.
3760 # `unknown' -- same as none, but documents that we really don't know.
3761 # 'pass_all' -- all dependencies passed with no checks.
3762 # 'test_compile' -- check by making test program.
3763 # 'file_magic [[regex]]' -- check by looking for files in library path
3764 # which responds to the $file_magic_cmd with a given extended regex.
3765 # If you have `file' or equivalent on your system and you're not sure
3766 # whether `pass_all' will *always* work, you probably want this one.
3770 lt_cv_deplibs_check_method=pass_all
3774 lt_cv_deplibs_check_method=pass_all
3778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3779 lt_cv_file_magic_cmd='/usr/bin/file -L'
3780 lt_cv_file_magic_test_file=/shlib/libc.so
3784 # func_win32_libid is a shell function defined in ltmain.sh
3785 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3786 lt_cv_file_magic_cmd='func_win32_libid'
3790 # Base MSYS/MinGW do not provide the 'file' command needed by
3791 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3792 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3793 lt_cv_file_magic_cmd='$OBJDUMP -f'
3796 darwin* | rhapsody*)
3797 lt_cv_deplibs_check_method=pass_all
3800 freebsd* | kfreebsd*-gnu | dragonfly*)
3801 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3804 # Not sure whether the presence of OpenBSD here was a mistake.
3805 # Let's accept both of them until this is cleared up.
3806 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3807 lt_cv_file_magic_cmd=/usr/bin/file
3808 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3812 lt_cv_deplibs_check_method=pass_all
3817 lt_cv_deplibs_check_method=pass_all
3820 hpux10.20* | hpux11*)
3821 lt_cv_file_magic_cmd=/usr/bin/file
3824 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3825 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3828 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]'
3829 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3832 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3833 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3839 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3843 irix5* | irix6* | nonstopux*)
3845 *-32|*"-32 ") libmagic=32-bit;;
3846 *-n32|*"-n32 ") libmagic=N32;;
3847 *-64|*"-64 ") libmagic=64-bit;;
3848 *) libmagic=never-match;;
3850 lt_cv_deplibs_check_method=pass_all
3853 # This must be Linux ELF.
3855 lt_cv_deplibs_check_method=pass_all
3859 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3860 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3862 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3868 lt_cv_file_magic_cmd=/usr/bin/file
3869 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3873 lt_cv_deplibs_check_method=unknown
3877 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3884 osf3* | osf4* | osf5*)
3885 lt_cv_deplibs_check_method=pass_all
3889 lt_cv_deplibs_check_method=pass_all
3893 case $host_vendor in
3895 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]'
3896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3899 lt_cv_deplibs_check_method=pass_all
3902 lt_cv_file_magic_cmd='/bin/file'
3903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3906 lt_cv_file_magic_cmd='/bin/file'
3907 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3908 lt_cv_file_magic_test_file=/lib/libc.so
3911 lt_cv_deplibs_check_method=pass_all
3914 lt_cv_deplibs_check_method=pass_all
3919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3920 lt_cv_deplibs_check_method=pass_all
3925 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3926 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3927 file_magic_cmd=$lt_cv_file_magic_cmd
3928 deplibs_check_method=$lt_cv_deplibs_check_method
3929 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3934 # If no C compiler was specified, use CC.
3937 # If no C compiler flags were specified, use CFLAGS.
3938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3940 # Allow CC to be a program name with arguments.
3943 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3944 if test "${enable_libtool_lock+set}" = set; then
3945 enableval="$enable_libtool_lock"
3948 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3950 # Some flags need to be propagated to the compiler or linker for good
3954 # Find out which ABI we are using.
3955 echo 'int i;' > conftest.$ac_ext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; then
3961 case `/usr/bin/file conftest.$ac_objext` in
3973 # Find out which ABI we are using.
3974 echo '#line 3974 "configure"' > conftest.$ac_ext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; then
3980 if test "$lt_cv_prog_gnu_ld" = yes; then
3981 case `/usr/bin/file conftest.$ac_objext` in
3983 LD="${LD-ld} -melf32bsmip"
3986 LD="${LD-ld} -melf32bmipn32"
3989 LD="${LD-ld} -melf64bmip"
3993 case `/usr/bin/file conftest.$ac_objext` in
4009 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4010 # Find out which ABI we are using.
4011 echo 'int i;' > conftest.$ac_ext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; then
4017 case `/usr/bin/file conftest.o` in
4021 LD="${LD-ld} -m elf_i386"
4023 ppc64-*linux*|powerpc64-*linux*)
4024 LD="${LD-ld} -m elf32ppclinux"
4027 LD="${LD-ld} -m elf_s390"
4030 LD="${LD-ld} -m elf32_sparc"
4037 LD="${LD-ld} -m elf_x86_64"
4039 ppc*-*linux*|powerpc*-*linux*)
4040 LD="${LD-ld} -m elf64ppc"
4043 LD="${LD-ld} -m elf64_s390"
4046 LD="${LD-ld} -m elf64_sparc"
4056 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4057 SAVE_CFLAGS="$CFLAGS"
4058 CFLAGS="$CFLAGS -belf"
4059 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4060 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4061 if test "${lt_cv_cc_needs_belf+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 cat >conftest.$ac_ext <<_ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4085 rm -f conftest.$ac_objext conftest$ac_exeext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4087 (eval $ac_link) 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_c_werror_flag"
4095 || test ! -s conftest.err'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest$ac_exeext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 lt_cv_cc_needs_belf=yes
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 lt_cv_cc_needs_belf=no
4114 rm -f conftest.err conftest.$ac_objext \
4115 conftest$ac_exeext conftest.$ac_ext
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4124 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4125 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4126 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4127 CFLAGS="$SAVE_CFLAGS"
4131 # Find out which ABI we are using.
4132 echo 'int i;' > conftest.$ac_ext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; then
4138 case `/usr/bin/file conftest.o` in
4140 case $lt_cv_prog_gnu_ld in
4141 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4142 *) LD="${LD-ld} -64" ;;
4153 need_locks="$enable_libtool_lock"
4156 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4157 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4158 if test "${ac_cv_header_stdc+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>conftest.er1
4184 grep -v '^ *+' conftest.er1 >conftest.err
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -z "$ac_c_werror_flag"
4190 || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_cv_header_stdc=yes
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4207 ac_cv_header_stdc=no
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4211 if test $ac_cv_header_stdc = yes; then
4212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223 $EGREP "memchr" >/dev/null 2>&1; then
4226 ac_cv_header_stdc=no
4232 if test $ac_cv_header_stdc = yes; then
4233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4234 cat >conftest.$ac_ext <<_ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "free" >/dev/null 2>&1; then
4247 ac_cv_header_stdc=no
4253 if test $ac_cv_header_stdc = yes; then
4254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4255 if test "$cross_compiling" = yes; then
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4265 #if ((' ' & 0x0FF) == 0x020)
4266 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4267 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4269 # define ISLOWER(c) \
4270 (('a' <= (c) && (c) <= 'i') \
4271 || ('j' <= (c) && (c) <= 'r') \
4272 || ('s' <= (c) && (c) <= 'z'))
4273 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4276 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4281 for (i = 0; i < 256; i++)
4282 if (XOR (islower (i), ISLOWER (i))
4283 || toupper (i) != TOUPPER (i))
4288 rm -f conftest$ac_exeext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290 (eval $ac_link) 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4301 echo "$as_me: program exited with status $ac_status" >&5
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4306 ac_cv_header_stdc=no
4308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4312 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4313 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4314 if test $ac_cv_header_stdc = yes; then
4316 cat >>confdefs.h <<\_ACEOF
4317 #define STDC_HEADERS 1
4322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4332 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4333 inttypes.h stdint.h unistd.h
4335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4336 echo "$as_me:$LINENO: checking for $ac_header" >&5
4337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 $ac_includes_default
4349 #include <$ac_header>
4351 rm -f conftest.$ac_objext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353 (eval $ac_compile) 2>conftest.er1
4355 grep -v '^ *+' conftest.er1 >conftest.err
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try='test -z "$ac_c_werror_flag"
4361 || test ! -s conftest.err'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 eval "$as_ac_Header=yes"
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 eval "$as_ac_Header=no"
4380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4385 cat >>confdefs.h <<_ACEOF
4386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4395 for ac_header in dlfcn.h
4397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4399 echo "$as_me:$LINENO: checking for $ac_header" >&5
4400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4407 # Is the header compilable?
4408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4410 cat >conftest.$ac_ext <<_ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 $ac_includes_default
4417 #include <$ac_header>
4419 rm -f conftest.$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>conftest.er1
4423 grep -v '^ *+' conftest.er1 >conftest.err
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -z "$ac_c_werror_flag"
4429 || test ! -s conftest.err'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_header_compiler=yes
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_header_compiler=no
4448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4450 echo "${ECHO_T}$ac_header_compiler" >&6
4452 # Is the header present?
4453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #include <$ac_header>
4463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } >/dev/null; then
4471 if test -s conftest.err; then
4472 ac_cpp_err=$ac_c_preproc_warn_flag
4473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4480 if test -z "$ac_cpp_err"; then
4481 ac_header_preproc=yes
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_header_preproc=no
4488 rm -f conftest.err conftest.$ac_ext
4489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4490 echo "${ECHO_T}$ac_header_preproc" >&6
4492 # So? What about this header?
4493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4499 ac_header_preproc=yes
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4516 ## ------------------------------------------ ##
4517 ## Report this to the AC_PACKAGE_NAME lists. ##
4518 ## ------------------------------------------ ##
4521 sed "s/^/$as_me: WARNING: /" >&2
4524 echo "$as_me:$LINENO: checking for $ac_header" >&5
4525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 eval "$as_ac_Header=\$ac_header_preproc"
4531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4536 cat >>confdefs.h <<_ACEOF
4537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549 if test -n "$ac_tool_prefix"; then
4550 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4554 echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_prog_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if test -n "$CXX"; then
4560 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 if test -n "$CXX"; then
4580 echo "$as_me:$LINENO: result: $CXX" >&5
4581 echo "${ECHO_T}$CXX" >&6
4583 echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4587 test -n "$CXX" && break
4590 if test -z "$CXX"; then
4592 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4594 # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 set dummy $ac_prog; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if test -n "$ac_ct_CXX"; then
4602 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_ac_ct_CXX="$ac_prog"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621 if test -n "$ac_ct_CXX"; then
4622 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4623 echo "${ECHO_T}$ac_ct_CXX" >&6
4625 echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4629 test -n "$ac_ct_CXX" && break
4631 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4637 # Provide some information about the compiler.
4638 echo "$as_me:$LINENO:" \
4639 "checking for C++ compiler version" >&5
4640 ac_compiler=`set X $ac_compile; echo $2`
4641 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4642 (eval $ac_compiler --version </dev/null >&5) 2>&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }
4646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4647 (eval $ac_compiler -v </dev/null >&5) 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }
4651 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4652 (eval $ac_compiler -V </dev/null >&5) 2>&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }
4657 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4658 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4659 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 cat >conftest.$ac_ext <<_ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4680 rm -f conftest.$ac_objext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>conftest.er1
4684 grep -v '^ *+' conftest.er1 >conftest.err
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_cxx_werror_flag"
4690 || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4713 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4714 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4715 GXX=`test $ac_compiler_gnu = yes && echo yes`
4716 ac_test_CXXFLAGS=${CXXFLAGS+set}
4717 ac_save_CXXFLAGS=$CXXFLAGS
4719 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4720 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4721 if test "${ac_cv_prog_cxx_g+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>conftest.er1
4743 grep -v '^ *+' conftest.er1 >conftest.err
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -z "$ac_cxx_werror_flag"
4749 || test ! -s conftest.err'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; } &&
4755 { ac_try='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_cv_prog_cxx_g=yes
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4771 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4772 if test "$ac_test_CXXFLAGS" = set; then
4773 CXXFLAGS=$ac_save_CXXFLAGS
4774 elif test $ac_cv_prog_cxx_g = yes; then
4775 if test "$GXX" = yes; then
4781 if test "$GXX" = yes; then
4787 for ac_declaration in \
4789 'extern "C" void std::exit (int) throw (); using std::exit;' \
4790 'extern "C" void std::exit (int); using std::exit;' \
4791 'extern "C" void exit (int) throw ();' \
4792 'extern "C" void exit (int);' \
4795 cat >conftest.$ac_ext <<_ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_cxx_werror_flag"
4821 || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest.$ac_objext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 cat >conftest.$ac_ext <<_ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_cxx_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4887 if test -n "$ac_declaration"; then
4888 echo '#ifdef __cplusplus' >>confdefs.h
4889 echo $ac_declaration >>confdefs.h
4890 echo '#endif' >>confdefs.h
4894 ac_cpp='$CXXCPP $CPPFLAGS'
4895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4901 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4902 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4903 (test "X$CXX" != "Xg++"))) ; then
4905 ac_cpp='$CXXCPP $CPPFLAGS'
4906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4909 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4910 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4911 if test -z "$CXXCPP"; then
4912 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 # Double quotes because CXXCPP needs to be expanded
4916 for CXXCPP in "$CXX -E" "/lib/cpp"
4919 for ac_cxx_preproc_warn_flag in '' yes
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 # include <limits.h>
4936 # include <assert.h>
4940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4943 grep -v '^ *+' conftest.er1 >conftest.err
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null; then
4948 if test -s conftest.err; then
4949 ac_cpp_err=$ac_cxx_preproc_warn_flag
4950 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4957 if test -z "$ac_cpp_err"; then
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 # Broken: fails on valid input.
4966 rm -f conftest.err conftest.$ac_ext
4968 # OK, works on sane cases. Now check whether non-existent headers
4969 # can be detected and how.
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #include <ac_nonexistent.h>
4978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } >/dev/null; then
4986 if test -s conftest.err; then
4987 ac_cpp_err=$ac_cxx_preproc_warn_flag
4988 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4995 if test -z "$ac_cpp_err"; then
4996 # Broken: success on invalid input.
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 # Passes both tests.
5006 rm -f conftest.err conftest.$ac_ext
5009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010 rm -f conftest.err conftest.$ac_ext
5011 if $ac_preproc_ok; then
5016 ac_cv_prog_CXXCPP=$CXXCPP
5019 CXXCPP=$ac_cv_prog_CXXCPP
5021 ac_cv_prog_CXXCPP=$CXXCPP
5023 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5024 echo "${ECHO_T}$CXXCPP" >&6
5026 for ac_cxx_preproc_warn_flag in '' yes
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5041 # include <limits.h>
5043 # include <assert.h>
5047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null; then
5055 if test -s conftest.err; then
5056 ac_cpp_err=$ac_cxx_preproc_warn_flag
5057 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5064 if test -z "$ac_cpp_err"; then
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5070 # Broken: fails on valid input.
5073 rm -f conftest.err conftest.$ac_ext
5075 # OK, works on sane cases. Now check whether non-existent headers
5076 # can be detected and how.
5077 cat >conftest.$ac_ext <<_ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <ac_nonexistent.h>
5085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088 grep -v '^ *+' conftest.er1 >conftest.err
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } >/dev/null; then
5093 if test -s conftest.err; then
5094 ac_cpp_err=$ac_cxx_preproc_warn_flag
5095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5102 if test -z "$ac_cpp_err"; then
5103 # Broken: success on invalid input.
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 # Passes both tests.
5113 rm -f conftest.err conftest.$ac_ext
5116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117 rm -f conftest.err conftest.$ac_ext
5118 if $ac_preproc_ok; then
5121 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124 See \`config.log' for more details." >&2;}
5125 { (exit 1); exit 1; }; }
5129 ac_cpp='$CXXCPP $CPPFLAGS'
5130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5138 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5139 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5141 if test -n "$ac_tool_prefix"; then
5142 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_prog_F77+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 if test -n "$F77"; then
5152 ac_cv_prog_F77="$F77" # Let the user override the test.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 if test -n "$F77"; then
5172 echo "$as_me:$LINENO: result: $F77" >&5
5173 echo "${ECHO_T}$F77" >&6
5175 echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5179 test -n "$F77" && break
5182 if test -z "$F77"; then
5184 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5186 # Extract the first word of "$ac_prog", so it can be a program name with args.
5187 set dummy $ac_prog; ac_word=$2
5188 echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 if test -n "$ac_ct_F77"; then
5194 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_F77="$ac_prog"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5213 if test -n "$ac_ct_F77"; then
5214 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5215 echo "${ECHO_T}$ac_ct_F77" >&6
5217 echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5221 test -n "$ac_ct_F77" && break
5228 # Provide some information about the compiler.
5229 echo "$as_me:5229:" \
5230 "checking for Fortran 77 compiler version" >&5
5231 ac_compiler=`set X $ac_compile; echo $2`
5232 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5233 (eval $ac_compiler --version </dev/null >&5) 2>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }
5237 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5238 (eval $ac_compiler -v </dev/null >&5) 2>&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }
5242 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5243 (eval $ac_compiler -V </dev/null >&5) 2>&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }
5249 # If we don't use `.F' as extension, the preprocessor is not run on the
5250 # input file. (Note that this only needs to work for GNU compilers.)
5253 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5254 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5255 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 cat >conftest.$ac_ext <<_ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>conftest.er1
5270 grep -v '^ *+' conftest.er1 >conftest.err
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -z "$ac_f77_werror_flag"
5276 || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5299 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5300 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5302 ac_test_FFLAGS=${FFLAGS+set}
5303 ac_save_FFLAGS=$FFLAGS
5305 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5306 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5307 if test "${ac_cv_prog_f77_g+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 cat >conftest.$ac_ext <<_ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -z "$ac_f77_werror_flag"
5326 || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_cv_prog_f77_g=yes
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5349 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5350 if test "$ac_test_FFLAGS" = set; then
5351 FFLAGS=$ac_save_FFLAGS
5352 elif test $ac_cv_prog_f77_g = yes; then
5353 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5359 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5366 G77=`test $ac_compiler_gnu = yes && echo yes`
5368 ac_cpp='$CPP $CPPFLAGS'
5369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5377 # find the maximum length of command line arguments
5378 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5379 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5380 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 # On DJGPP, this test can blow up pretty badly due to problems in libc
5389 # (any single argument exceeding 2000 bytes causes a buffer overrun
5390 # during glob expansion). Even if it were fixed, the result of this
5391 # check would be larger than it should be.
5392 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5396 # Under GNU Hurd, this test is not required because there is
5397 # no limit to the length of command line arguments.
5398 # Libtool will interpret -1 as no limit whatsoever
5399 lt_cv_sys_max_cmd_len=-1;
5403 # On Win9x/ME, this test blows up -- it succeeds, but takes
5404 # about 5 minutes as the teststring grows exponentially.
5405 # Worse, since 9x/ME are not pre-emptively multitasking,
5406 # you end up with a "frozen" computer, even though with patience
5407 # the test eventually succeeds (with a max line length of 256k).
5408 # Instead, let's just punt: use the minimum linelength reported by
5409 # all of the supported platforms: 8192 (on NT/2K/XP).
5410 lt_cv_sys_max_cmd_len=8192;
5414 # On AmigaOS with pdksh, this test takes hours, literally.
5415 # So we just punt and use a minimum line length of 8192.
5416 lt_cv_sys_max_cmd_len=8192;
5419 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5420 # This has been around since 386BSD, at least. Likely further.
5421 if test -x /sbin/sysctl; then
5422 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5423 elif test -x /usr/sbin/sysctl; then
5424 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5426 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5428 # And add a safety zone
5429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5434 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5435 lt_cv_sys_max_cmd_len=196608
5439 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5440 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5441 # nice to cause kernel panics so lets avoid the loop below.
5442 # First set a reasonable default.
5443 lt_cv_sys_max_cmd_len=16384
5445 if test -x /sbin/sysconfig; then
5446 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5447 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5452 lt_cv_sys_max_cmd_len=102400
5454 sysv5* | sco5v6* | sysv4.2uw2*)
5455 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5456 if test -n "$kargmax"; then
5457 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5459 lt_cv_sys_max_cmd_len=32768
5463 # If test is not a shell built-in, we'll probably end up computing a
5464 # maximum length that is only half of the actual maximum length, but
5466 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5467 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5468 = "XX$teststring") >/dev/null 2>&1 &&
5469 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5470 lt_cv_sys_max_cmd_len=$new_result &&
5471 test $i != 17 # 1/2 MB should be enough
5474 teststring=$teststring$teststring
5477 # Add a significant safety factor because C++ compilers can tack on massive
5478 # amounts of additional arguments before passing them to the linker.
5479 # It appears as though 1/2 is a usable value.
5480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5486 if test -n $lt_cv_sys_max_cmd_len ; then
5487 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5488 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5490 echo "$as_me:$LINENO: result: none" >&5
5491 echo "${ECHO_T}none" >&6
5497 # Check for command to grab the raw symbol name followed by C symbol from nm.
5498 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5499 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5500 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 # These are sane defaults that work on at least a few old systems.
5505 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5507 # Character class describing NM global symbol codes.
5508 symcode='[BCDEGRST]'
5510 # Regexp to match symbols that can be accessed directly from C.
5511 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5513 # Transform an extracted symbol line into a proper C declaration
5514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5516 # Transform an extracted symbol line into symbol name and symbol address
5517 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'"
5519 # Define system-specific variables.
5524 cygwin* | mingw* | pw32*)
5525 symcode='[ABCDGISTW]'
5527 hpux*) # Its linker distinguishes data from code symbols
5528 if test "$host_cpu" = ia64; then
5529 symcode='[ABCDEGRST]'
5531 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5532 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'"
5535 if test "$host_cpu" = ia64; then
5536 symcode='[ABCDGIRSTW]'
5537 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5538 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'"
5542 symcode='[BCDEGRST]'
5545 symcode='[BCDEGQRST]'
5556 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5564 # Handle CRLF in mingw tool chain
5568 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5572 # If we're using GNU nm, then use its standard symbol codes.
5573 case `$NM -V 2>&1` in
5574 *GNU* | *'with BFD'*)
5575 symcode='[ABCDGIRSTW]' ;;
5578 # Try without a prefix undercore, then with it.
5579 for ac_symprfx in "" "_"; do
5581 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5582 symxfrm="\\1 $ac_symprfx\\2 \\2"
5584 # Write the raw and C identifiers.
5585 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5587 # Check to see that the pipe works correctly.
5591 cat > conftest.$ac_ext <<EOF
5596 void nm_test_func(){}
5600 int main(){nm_test_var='a';nm_test_func();return(0);}
5603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5604 (eval $ac_compile) 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; then
5608 # Now try to grab the symbols.
5610 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5611 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && test -s "$nlist"; then
5615 # Try sorting and uniquifying the output.
5616 if sort "$nlist" | uniq > "$nlist"T; then
5617 mv -f "$nlist"T "$nlist"
5622 # Make sure that we snagged all the symbols we need.
5623 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5624 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5625 cat <<EOF > conftest.$ac_ext
5631 # Now generate the symbol file.
5632 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5634 cat <<EOF >> conftest.$ac_ext
5635 #if defined (__STDC__) && __STDC__
5636 # define lt_ptr_t void *
5638 # define lt_ptr_t char *
5642 /* The mapping between symbol names and symbols. */
5647 lt_preloaded_symbols[] =
5650 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5651 cat <<\EOF >> conftest.$ac_ext
5659 # Now try linking the two files.
5660 mv conftest.$ac_objext conftstm.$ac_objext
5661 lt_save_LIBS="$LIBS"
5662 lt_save_CFLAGS="$CFLAGS"
5663 LIBS="conftstm.$ac_objext"
5664 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5672 LIBS="$lt_save_LIBS"
5673 CFLAGS="$lt_save_CFLAGS"
5675 echo "cannot find nm_test_func in $nlist" >&5
5678 echo "cannot find nm_test_var in $nlist" >&5
5681 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5684 echo "$progname: failed program was:" >&5
5685 cat conftest.$ac_ext >&5
5687 rm -f conftest* conftst*
5689 # Do not use the global_symbol_pipe unless it works.
5690 if test "$pipe_works" = yes; then
5693 lt_cv_sys_global_symbol_pipe=
5699 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5700 lt_cv_sys_global_symbol_to_cdecl=
5702 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5703 echo "$as_me:$LINENO: result: failed" >&5
5704 echo "${ECHO_T}failed" >&6
5706 echo "$as_me:$LINENO: result: ok" >&5
5707 echo "${ECHO_T}ok" >&6
5710 echo "$as_me:$LINENO: checking for objdir" >&5
5711 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5712 if test "${lt_cv_objdir+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 rm -f .libs 2>/dev/null
5716 mkdir .libs 2>/dev/null
5717 if test -d .libs; then
5720 # MS-DOS does not allow filenames that begin with a dot.
5723 rmdir .libs 2>/dev/null
5725 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5726 echo "${ECHO_T}$lt_cv_objdir" >&6
5727 objdir=$lt_cv_objdir
5735 # AIX sometimes has problems with the GCC collect2 program. For some
5736 # reason, if we set the COLLECT_NAMES environment variable, the problems
5737 # vanish in a puff of smoke.
5738 if test "X${COLLECT_NAMES+set}" != Xset; then
5740 export COLLECT_NAMES
5745 # Sed substitution that helps us do robust quoting. It backslashifies
5746 # metacharacters that are still active within double-quoted strings.
5747 Xsed='sed -e 1s/^X//'
5748 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5750 # Same as above, but do not quote variable references.
5751 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5753 # Sed substitution to delay expansion of an escaped shell variable in a
5754 # double_quote_subst'ed string.
5755 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5757 # Sed substitution to avoid accidental globbing in evaled expressions
5758 no_glob_subst='s/\*/\\\*/g'
5764 default_ofile=libtool
5765 can_build_shared=yes
5767 # All known linkers require a `.a' archive for static linking (except MSVC,
5768 # which needs '.lib').
5770 ltmain="$ac_aux_dir/ltmain.sh"
5771 ofile="$default_ofile"
5772 with_gnu_ld="$lt_cv_prog_gnu_ld"
5774 if test -n "$ac_tool_prefix"; then
5775 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5776 set dummy ${ac_tool_prefix}ar; ac_word=$2
5777 echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779 if test "${ac_cv_prog_AR+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 if test -n "$AR"; then
5783 ac_cv_prog_AR="$AR" # Let the user override the test.
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792 ac_cv_prog_AR="${ac_tool_prefix}ar"
5793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 if test -n "$AR"; then
5803 echo "$as_me:$LINENO: result: $AR" >&5
5804 echo "${ECHO_T}$AR" >&6
5806 echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5811 if test -z "$ac_cv_prog_AR"; then
5813 # Extract the first word of "ar", so it can be a program name with args.
5814 set dummy ar; ac_word=$2
5815 echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5817 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 if test -n "$ac_ct_AR"; then
5821 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_ac_ct_AR="ar"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5840 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5841 if test -n "$ac_ct_AR"; then
5842 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5843 echo "${ECHO_T}$ac_ct_AR" >&6
5845 echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6
5854 if test -n "$ac_tool_prefix"; then
5855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5857 echo "$as_me:$LINENO: checking for $ac_word" >&5
5858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5859 if test "${ac_cv_prog_RANLIB+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 if test -n "$RANLIB"; then
5863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 RANLIB=$ac_cv_prog_RANLIB
5882 if test -n "$RANLIB"; then
5883 echo "$as_me:$LINENO: result: $RANLIB" >&5
5884 echo "${ECHO_T}$RANLIB" >&6
5886 echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6
5891 if test -z "$ac_cv_prog_RANLIB"; then
5892 ac_ct_RANLIB=$RANLIB
5893 # Extract the first word of "ranlib", so it can be a program name with args.
5894 set dummy ranlib; ac_word=$2
5895 echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 if test -n "$ac_ct_RANLIB"; then
5901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_ac_ct_RANLIB="ranlib"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5921 if test -n "$ac_ct_RANLIB"; then
5922 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5923 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5925 echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6
5929 RANLIB=$ac_ct_RANLIB
5931 RANLIB="$ac_cv_prog_RANLIB"
5934 if test -n "$ac_tool_prefix"; then
5935 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5936 set dummy ${ac_tool_prefix}strip; ac_word=$2
5937 echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5939 if test "${ac_cv_prog_STRIP+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 if test -n "$STRIP"; then
5943 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 STRIP=$ac_cv_prog_STRIP
5962 if test -n "$STRIP"; then
5963 echo "$as_me:$LINENO: result: $STRIP" >&5
5964 echo "${ECHO_T}$STRIP" >&6
5966 echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5971 if test -z "$ac_cv_prog_STRIP"; then
5973 # Extract the first word of "strip", so it can be a program name with args.
5974 set dummy strip; ac_word=$2
5975 echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5977 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 if test -n "$ac_ct_STRIP"; then
5981 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990 ac_cv_prog_ac_ct_STRIP="strip"
5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6000 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6001 if test -n "$ac_ct_STRIP"; then
6002 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6003 echo "${ECHO_T}$ac_ct_STRIP" >&6
6005 echo "$as_me:$LINENO: result: no" >&5
6006 echo "${ECHO_T}no" >&6
6011 STRIP="$ac_cv_prog_STRIP"
6016 old_CFLAGS="$CFLAGS"
6018 # Set sane defaults for various variables
6019 test -z "$AR" && AR=ar
6020 test -z "$AR_FLAGS" && AR_FLAGS=cru
6021 test -z "$AS" && AS=as
6022 test -z "$CC" && CC=cc
6023 test -z "$LTCC" && LTCC=$CC
6024 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6025 test -z "$DLLTOOL" && DLLTOOL=dlltool
6026 test -z "$LD" && LD=ld
6027 test -z "$LN_S" && LN_S="ln -s"
6028 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6029 test -z "$NM" && NM=nm
6030 test -z "$SED" && SED=sed
6031 test -z "$OBJDUMP" && OBJDUMP=objdump
6032 test -z "$RANLIB" && RANLIB=:
6033 test -z "$STRIP" && STRIP=:
6034 test -z "$ac_objext" && ac_objext=o
6036 # Determine commands to create old-style static archives.
6037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6038 old_postinstall_cmds='chmod 644 $oldlib'
6039 old_postuninstall_cmds=
6041 if test -n "$RANLIB"; then
6044 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6050 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6053 for cc_temp in $compiler""; do
6055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6064 # Only perform the check for file, if the check method requires it
6065 case $deplibs_check_method in
6067 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6068 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6069 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6070 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6078 lt_save_MAGIC_CMD="$MAGIC_CMD"
6079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6080 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6081 for ac_dir in $ac_dummy; do
6083 test -z "$ac_dir" && ac_dir=.
6084 if test -f $ac_dir/${ac_tool_prefix}file; then
6085 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6086 if test -n "$file_magic_test_file"; then
6087 case $deplibs_check_method in
6089 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6091 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6092 $EGREP "$file_magic_regex" > /dev/null; then
6097 *** Warning: the command libtool uses to detect shared libraries,
6098 *** $file_magic_cmd, produces output that libtool cannot recognize.
6099 *** The result is that libtool may fail to recognize shared libraries
6100 *** as such. This will affect the creation of libtool libraries that
6101 *** depend on shared libraries, but programs linked with such libtool
6102 *** libraries will work regardless of this problem. Nevertheless, you
6103 *** may want to report the problem to your system manager and/or to
6104 *** bug-libtool@gnu.org
6114 MAGIC_CMD="$lt_save_MAGIC_CMD"
6119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6120 if test -n "$MAGIC_CMD"; then
6121 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6122 echo "${ECHO_T}$MAGIC_CMD" >&6
6124 echo "$as_me:$LINENO: result: no" >&5
6125 echo "${ECHO_T}no" >&6
6128 if test -z "$lt_cv_path_MAGIC_CMD"; then
6129 if test -n "$ac_tool_prefix"; then
6130 echo "$as_me:$LINENO: checking for file" >&5
6131 echo $ECHO_N "checking for file... $ECHO_C" >&6
6132 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6140 lt_save_MAGIC_CMD="$MAGIC_CMD"
6141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6142 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6143 for ac_dir in $ac_dummy; do
6145 test -z "$ac_dir" && ac_dir=.
6146 if test -f $ac_dir/file; then
6147 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6148 if test -n "$file_magic_test_file"; then
6149 case $deplibs_check_method in
6151 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6154 $EGREP "$file_magic_regex" > /dev/null; then
6159 *** Warning: the command libtool uses to detect shared libraries,
6160 *** $file_magic_cmd, produces output that libtool cannot recognize.
6161 *** The result is that libtool may fail to recognize shared libraries
6162 *** as such. This will affect the creation of libtool libraries that
6163 *** depend on shared libraries, but programs linked with such libtool
6164 *** libraries will work regardless of this problem. Nevertheless, you
6165 *** may want to report the problem to your system manager and/or to
6166 *** bug-libtool@gnu.org
6176 MAGIC_CMD="$lt_save_MAGIC_CMD"
6181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6182 if test -n "$MAGIC_CMD"; then
6183 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6184 echo "${ECHO_T}$MAGIC_CMD" >&6
6186 echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6
6202 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6203 if test "${enable_libtool_lock+set}" = set; then
6204 enableval="$enable_libtool_lock"
6207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6210 # Check whether --with-pic or --without-pic was given.
6211 if test "${with_pic+set}" = set; then
6217 test -z "$pic_mode" && pic_mode=default
6219 # Use C for the default configuration in the libtool script
6223 ac_cpp='$CPP $CPPFLAGS'
6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6229 # Source file extension for C test sources.
6232 # Object file extension for compiled C test sources.
6236 # Code to be used in simple compile tests
6237 lt_simple_compile_test_code="int some_variable = 0;\n"
6239 # Code to be used in simple link tests
6240 lt_simple_link_test_code='int main(){return(0);}\n'
6243 # If no C compiler was specified, use CC.
6246 # If no C compiler flags were specified, use CFLAGS.
6247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6249 # Allow CC to be a program name with arguments.
6253 # save warnings/boilerplate of simple test code
6254 ac_outfile=conftest.$ac_objext
6255 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6257 _lt_compiler_boilerplate=`cat conftest.err`
6260 ac_outfile=conftest.$ac_objext
6261 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6263 _lt_linker_boilerplate=`cat conftest.err`
6268 ## There is no encapsulation within the following macros, do not change
6269 ## the running order or otherwise move them around unless you know exactly
6270 ## what you are doing...
6272 lt_prog_compiler_no_builtin_flag=
6274 if test "$GCC" = yes; then
6275 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6278 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6279 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6280 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 lt_cv_prog_compiler_rtti_exceptions=no
6284 ac_outfile=conftest.$ac_objext
6285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6286 lt_compiler_flag="-fno-rtti -fno-exceptions"
6287 # Insert the option either (1) after the last *FLAGS variable, or
6288 # (2) before a word containing "conftest.", or (3) at the end.
6289 # Note that $ac_compile itself does not contain backslashes and begins
6290 # with a dollar sign (not a hyphen), so the echo should work correctly.
6291 # The option is referenced via a variable to avoid confusing sed.
6292 lt_compile=`echo "$ac_compile" | $SED \
6293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6295 -e 's:$: $lt_compiler_flag:'`
6296 (eval echo "\"\$as_me:6296: $lt_compile\"" >&5)
6297 (eval "$lt_compile" 2>conftest.err)
6299 cat conftest.err >&5
6300 echo "$as_me:6300: \$? = $ac_status" >&5
6301 if (exit $ac_status) && test -s "$ac_outfile"; then
6302 # The compiler can only warn and ignore the option if not recognized
6303 # So say no if there are warnings other than the usual output.
6304 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6306 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6307 lt_cv_prog_compiler_rtti_exceptions=yes
6313 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6314 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6316 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6317 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6324 lt_prog_compiler_wl=
6325 lt_prog_compiler_pic=
6326 lt_prog_compiler_static=
6328 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6329 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6331 if test "$GCC" = yes; then
6332 lt_prog_compiler_wl='-Wl,'
6333 lt_prog_compiler_static='-static'
6337 # All AIX code is PIC.
6338 if test "$host_cpu" = ia64; then
6339 # AIX 5 now supports IA64 processor
6340 lt_prog_compiler_static='-Bstatic'
6345 # FIXME: we need at least 68020 code to build shared libraries, but
6346 # adding the `-m68020' flag to GCC prevents building anything better,
6348 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6351 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6352 # PIC is the default for these OSes.
6355 mingw* | pw32* | os2*)
6356 # This hack is so that the source file can tell whether it is being
6357 # built for inclusion in a dll (and should export symbols for example).
6358 lt_prog_compiler_pic='-DDLL_EXPORT'
6361 darwin* | rhapsody*)
6362 # PIC is the default on this platform
6363 # Common symbols not allowed in MH_DYLIB files
6364 lt_prog_compiler_pic='-fno-common'
6368 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6369 # Instead, we relocate shared libraries at runtime.
6373 # Just because we use GCC doesn't mean we suddenly get shared libraries
6374 # on systems that don't support them.
6375 lt_prog_compiler_can_build_shared=no
6380 if test -d /usr/nec; then
6381 lt_prog_compiler_pic=-Kconform_pic
6386 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6393 lt_prog_compiler_pic='-fPIC'
6399 lt_prog_compiler_pic='-fPIC'
6403 # PORTME Check for flag to pass linker flags through the system compiler.
6406 lt_prog_compiler_wl='-Wl,'
6407 if test "$host_cpu" = ia64; then
6408 # AIX 5 now supports IA64 processor
6409 lt_prog_compiler_static='-Bstatic'
6411 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6415 # PIC is the default on this platform
6416 # Common symbols not allowed in MH_DYLIB files
6417 case $cc_basename in
6419 lt_prog_compiler_pic='-qnocommon'
6420 lt_prog_compiler_wl='-Wl,'
6425 mingw* | pw32* | os2*)
6426 # This hack is so that the source file can tell whether it is being
6427 # built for inclusion in a dll (and should export symbols for example).
6428 lt_prog_compiler_pic='-DDLL_EXPORT'
6431 hpux9* | hpux10* | hpux11*)
6432 lt_prog_compiler_wl='-Wl,'
6433 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6440 lt_prog_compiler_pic='+Z'
6443 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6444 lt_prog_compiler_static='${wl}-a ${wl}archive'
6447 irix5* | irix6* | nonstopux*)
6448 lt_prog_compiler_wl='-Wl,'
6449 # PIC (with -KPIC) is the default.
6450 lt_prog_compiler_static='-non_shared'
6454 lt_prog_compiler_pic='-KPIC'
6455 lt_prog_compiler_static='-Bstatic'
6459 case $cc_basename in
6461 lt_prog_compiler_wl='-Wl,'
6462 lt_prog_compiler_pic='-KPIC'
6463 lt_prog_compiler_static='-static'
6465 pgcc* | pgf77* | pgf90* | pgf95*)
6466 # Portland Group compilers (*not* the Pentium gcc compiler,
6467 # which looks to be a dead project)
6468 lt_prog_compiler_wl='-Wl,'
6469 lt_prog_compiler_pic='-fpic'
6470 lt_prog_compiler_static='-Bstatic'
6473 lt_prog_compiler_wl='-Wl,'
6474 # All Alpha code is PIC.
6475 lt_prog_compiler_static='-non_shared'
6480 osf3* | osf4* | osf5*)
6481 lt_prog_compiler_wl='-Wl,'
6482 # All OSF/1 code is PIC.
6483 lt_prog_compiler_static='-non_shared'
6487 lt_prog_compiler_pic='-KPIC'
6488 lt_prog_compiler_static='-Bstatic'
6489 case $cc_basename in
6491 lt_prog_compiler_wl='-Qoption ld ';;
6493 lt_prog_compiler_wl='-Wl,';;
6498 lt_prog_compiler_wl='-Qoption ld '
6499 lt_prog_compiler_pic='-PIC'
6500 lt_prog_compiler_static='-Bstatic'
6503 sysv4 | sysv4.2uw2* | sysv4.3*)
6504 lt_prog_compiler_wl='-Wl,'
6505 lt_prog_compiler_pic='-KPIC'
6506 lt_prog_compiler_static='-Bstatic'
6510 if test -d /usr/nec ;then
6511 lt_prog_compiler_pic='-Kconform_pic'
6512 lt_prog_compiler_static='-Bstatic'
6516 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6517 lt_prog_compiler_wl='-Wl,'
6518 lt_prog_compiler_pic='-KPIC'
6519 lt_prog_compiler_static='-Bstatic'
6523 lt_prog_compiler_wl='-Wl,'
6524 lt_prog_compiler_can_build_shared=no
6528 lt_prog_compiler_pic='-pic'
6529 lt_prog_compiler_static='-Bstatic'
6533 lt_prog_compiler_can_build_shared=no
6538 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6539 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6542 # Check to make sure the PIC flag actually works.
6544 if test -n "$lt_prog_compiler_pic"; then
6546 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6547 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6548 if test "${lt_prog_compiler_pic_works+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 lt_prog_compiler_pic_works=no
6552 ac_outfile=conftest.$ac_objext
6553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6554 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6555 # Insert the option either (1) after the last *FLAGS variable, or
6556 # (2) before a word containing "conftest.", or (3) at the end.
6557 # Note that $ac_compile itself does not contain backslashes and begins
6558 # with a dollar sign (not a hyphen), so the echo should work correctly.
6559 # The option is referenced via a variable to avoid confusing sed.
6560 lt_compile=`echo "$ac_compile" | $SED \
6561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6563 -e 's:$: $lt_compiler_flag:'`
6564 (eval echo "\"\$as_me:6564: $lt_compile\"" >&5)
6565 (eval "$lt_compile" 2>conftest.err)
6567 cat conftest.err >&5
6568 echo "$as_me:6568: \$? = $ac_status" >&5
6569 if (exit $ac_status) && test -s "$ac_outfile"; then
6570 # The compiler can only warn and ignore the option if not recognized
6571 # So say no if there are warnings other than the usual output.
6572 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6575 lt_prog_compiler_pic_works=yes
6581 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6582 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6584 if test x"$lt_prog_compiler_pic_works" = xyes; then
6585 case $lt_prog_compiler_pic in
6587 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6590 lt_prog_compiler_pic=
6591 lt_prog_compiler_can_build_shared=no
6596 # For platforms which do not support PIC, -DPIC is meaningless:
6598 lt_prog_compiler_pic=
6601 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6606 # Check to make sure the static flag actually works.
6608 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6609 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6610 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6611 if test "${lt_prog_compiler_static_works+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 lt_prog_compiler_static_works=no
6615 save_LDFLAGS="$LDFLAGS"
6616 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6617 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6618 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6619 # The linker can only warn and ignore the option if not recognized
6620 # So say no if there are warnings
6621 if test -s conftest.err; then
6622 # Append any errors to the config.log.
6623 cat conftest.err 1>&5
6624 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6626 if diff conftest.exp conftest.er2 >/dev/null; then
6627 lt_prog_compiler_static_works=yes
6630 lt_prog_compiler_static_works=yes
6634 LDFLAGS="$save_LDFLAGS"
6637 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6638 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6640 if test x"$lt_prog_compiler_static_works" = xyes; then
6643 lt_prog_compiler_static=
6647 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6648 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6649 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 lt_cv_prog_compiler_c_o=no
6653 $rm -r conftest 2>/dev/null
6657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6659 lt_compiler_flag="-o out/conftest2.$ac_objext"
6660 # Insert the option either (1) after the last *FLAGS variable, or
6661 # (2) before a word containing "conftest.", or (3) at the end.
6662 # Note that $ac_compile itself does not contain backslashes and begins
6663 # with a dollar sign (not a hyphen), so the echo should work correctly.
6664 lt_compile=`echo "$ac_compile" | $SED \
6665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6667 -e 's:$: $lt_compiler_flag:'`
6668 (eval echo "\"\$as_me:6668: $lt_compile\"" >&5)
6669 (eval "$lt_compile" 2>out/conftest.err)
6671 cat out/conftest.err >&5
6672 echo "$as_me:6672: \$? = $ac_status" >&5
6673 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6675 # The compiler can only warn and ignore the option if not recognized
6676 # So say no if there are warnings
6677 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6678 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6679 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6680 lt_cv_prog_compiler_c_o=yes
6685 # SGI C++ compiler will create directory out/ii_files/ for
6686 # template instantiation
6687 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6688 $rm out/* && rmdir out
6694 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6695 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6698 hard_links="nottested"
6699 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6700 # do not overwrite the value of need_locks provided by the user
6701 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6702 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6707 ln conftest.a conftest.b 2>&5 || hard_links=no
6708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6709 echo "$as_me:$LINENO: result: $hard_links" >&5
6710 echo "${ECHO_T}$hard_links" >&6
6711 if test "$hard_links" = no; then
6712 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6713 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6720 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6721 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6724 allow_undefined_flag=
6725 enable_shared_with_static_runtimes=no
6727 archive_expsym_cmds=
6728 old_archive_From_new_cmds=
6729 old_archive_from_expsyms_cmds=
6730 export_dynamic_flag_spec=
6731 whole_archive_flag_spec=
6732 thread_safe_flag_spec=
6733 hardcode_libdir_flag_spec=
6734 hardcode_libdir_flag_spec_ld=
6735 hardcode_libdir_separator=
6738 hardcode_shlibpath_var=unsupported
6739 link_all_deplibs=unknown
6740 hardcode_automatic=no
6743 always_export_symbols=no
6744 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6745 # include_expsyms should be a list of space-separated symbols to be *always*
6746 # included in the symbol list
6748 # exclude_expsyms can be an extended regexp of symbols to exclude
6749 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6750 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6751 # as well as any symbol that contains `d'.
6752 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6753 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6754 # platforms (ab)use it in PIC code, but their linkers get confused if
6755 # the symbol is explicitly referenced. Since portable code cannot
6756 # rely on this symbol name, it's probably fine to never include it in
6757 # preloaded symbol tables.
6758 extract_expsyms_cmds=
6759 # Just being paranoid about ensuring that cc_basename is set.
6760 for cc_temp in $compiler""; do
6762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6771 cygwin* | mingw* | pw32*)
6772 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6773 # When not using gcc, we currently assume that we are using
6774 # Microsoft Visual C++.
6775 if test "$GCC" != yes; then
6780 # we just hope/assume this is gcc and not c89 (= MSVC++)
6789 if test "$with_gnu_ld" = yes; then
6790 # If archive_cmds runs LD, not CC, wlarc should be empty
6793 # Set some defaults for GNU ld with shared library support. These
6794 # are reset later if shared libraries are not supported. Putting them
6795 # here allows them to be overridden if necessary.
6796 runpath_var=LD_RUN_PATH
6797 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6798 export_dynamic_flag_spec='${wl}--export-dynamic'
6799 # ancient GNU ld didn't support --whole-archive et. al.
6800 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6801 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6803 whole_archive_flag_spec=
6805 supports_anon_versioning=no
6806 case `$LD -v 2>/dev/null` in
6807 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6808 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6809 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6810 *\ 2.11.*) ;; # other 2.11 versions
6811 *) supports_anon_versioning=yes ;;
6814 # See if GNU ld supports shared libraries.
6816 aix3* | aix4* | aix5*)
6817 # On AIX/PPC, the GNU linker is very broken
6818 if test "$host_cpu" != ia64; then
6822 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6823 *** to be unable to reliably create shared libraries on AIX.
6824 *** Therefore, libtool is disabling shared libraries support. If you
6825 *** really care for shared libraries, you may want to modify your PATH
6826 *** so that a non-GNU linker is found, and then restart.
6833 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)'
6834 hardcode_libdir_flag_spec='-L$libdir'
6835 hardcode_minus_L=yes
6837 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6838 # that the semantics of dynamic libraries on AmigaOS, at least up
6839 # to version 4, is to share data among multiple programs linked
6840 # with the same dynamic library. Since this doesn't match the
6841 # behavior of shared libraries on other platforms, we can't use
6847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6848 allow_undefined_flag=unsupported
6849 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6850 # support --undefined. This deserves some investigation. FIXME
6851 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6857 cygwin* | mingw* | pw32*)
6858 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6859 # as there is no search path for DLLs.
6860 hardcode_libdir_flag_spec='-L$libdir'
6861 allow_undefined_flag=unsupported
6862 always_export_symbols=no
6863 enable_shared_with_static_runtimes=yes
6864 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6866 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6868 # If the export-symbols file already is a .def file (1st line
6869 # is EXPORTS), use it as is; otherwise, prepend...
6870 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6871 cp $export_symbols $output_objdir/$soname.def;
6873 echo EXPORTS > $output_objdir/$soname.def;
6874 cat $export_symbols >> $output_objdir/$soname.def;
6876 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6884 hardcode_shlibpath_var=no
6885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6886 export_dynamic_flag_spec='${wl}-E'
6887 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6888 # Instead, shared libraries are loaded at an image base (0x10000000 by
6889 # default) and relocated if they conflict, which is a slow very memory
6890 # consuming and fragmenting process. To avoid this, we pick a random,
6891 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6892 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6894 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6898 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6900 case $cc_basename,$host_cpu in
6901 pgcc*) # Portland Group C compiler
6902 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6903 tmp_addflag=' $pic_flag'
6905 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6906 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6907 tmp_addflag=' $pic_flag -Mnomain' ;;
6908 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6909 tmp_addflag=' -i_dynamic' ;;
6910 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6911 tmp_addflag=' -i_dynamic -nofor_main' ;;
6912 ifc* | ifort*) # Intel Fortran compiler
6913 tmp_addflag=' -nofor_main' ;;
6915 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6917 if test $supports_anon_versioning = yes; then
6918 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6920 $echo "local: *; };" >> $output_objdir/$libname.ver~
6921 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6930 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6939 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6943 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6944 *** create shared libraries on Solaris systems. Therefore, libtool
6945 *** is disabling shared libraries support. We urge you to upgrade GNU
6946 *** binutils to release 2.9.1 or newer. Another option is to modify
6947 *** your PATH or compiler configuration so that the native linker is
6948 *** used, and then restart.
6951 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6960 case `$LD -v 2>&1` in
6961 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6965 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6966 *** reliably create shared libraries on SCO systems. Therefore, libtool
6967 *** is disabling shared libraries support. We urge you to upgrade GNU
6968 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6969 *** your PATH or compiler configuration so that the native linker is
6970 *** used, and then restart.
6975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6976 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6987 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6990 hardcode_shlibpath_var=no
6994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6996 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7003 if test "$ld_shlibs" = no; then
7005 hardcode_libdir_flag_spec=
7006 export_dynamic_flag_spec=
7007 whole_archive_flag_spec=
7010 # PORTME fill in a description of your system's linker (not GNU ld)
7013 allow_undefined_flag=unsupported
7014 always_export_symbols=yes
7015 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'
7016 # Note: this linker hardcodes the directories in LIBPATH if there
7017 # are no directories specified by -L.
7018 hardcode_minus_L=yes
7019 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7020 # Neither direct hardcoding nor static linking is supported with a
7022 hardcode_direct=unsupported
7027 if test "$host_cpu" = ia64; then
7028 # On IA64, the linker does run time linking by default, so we don't
7029 # have to do anything special.
7030 aix_use_runtimelinking=no
7031 exp_sym_flag='-Bexport'
7034 # If we're using GNU nm, then we don't want the "-C" option.
7035 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7036 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7037 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'
7039 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'
7041 aix_use_runtimelinking=no
7043 # Test if we are trying to use run time linking or normal
7044 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7045 # need to do runtime linking.
7046 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7047 for ld_flag in $LDFLAGS; do
7048 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7049 aix_use_runtimelinking=yes
7056 exp_sym_flag='-bexport'
7057 no_entry_flag='-bnoentry'
7060 # When large executables or shared objects are built, AIX ld can
7061 # have problems creating the table of contents. If linking a library
7062 # or program results in "error TOC overflow" add -mminimal-toc to
7063 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7064 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7068 hardcode_libdir_separator=':'
7069 link_all_deplibs=yes
7071 if test "$GCC" = yes; then
7072 case $host_os in aix4.[012]|aix4.[012].*)
7073 # We only want to do this on AIX 4.2 and lower, the check
7074 # below for broken collect2 doesn't work under 4.3+
7075 collect2name=`${CC} -print-prog-name=collect2`
7076 if test -f "$collect2name" && \
7077 strings "$collect2name" | grep resolve_lib_name >/dev/null
7079 # We have reworked collect2
7082 # We have old collect2
7083 hardcode_direct=unsupported
7084 # It fails to find uninstalled libraries when the uninstalled
7085 # path is not listed in the libpath. Setting hardcode_minus_L
7086 # to unsupported forces relinking
7087 hardcode_minus_L=yes
7088 hardcode_libdir_flag_spec='-L$libdir'
7089 hardcode_libdir_separator=
7093 shared_flag='-shared'
7094 if test "$aix_use_runtimelinking" = yes; then
7095 shared_flag="$shared_flag "'${wl}-G'
7099 if test "$host_cpu" = ia64; then
7100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7101 # chokes on -Wl,-G. The following line is correct:
7104 if test "$aix_use_runtimelinking" = yes; then
7105 shared_flag='${wl}-G'
7107 shared_flag='${wl}-bM:SRE'
7112 # It seems that -bexpall does not export symbols beginning with
7113 # underscore (_), so it is better to generate a list of symbols to export.
7114 always_export_symbols=yes
7115 if test "$aix_use_runtimelinking" = yes; then
7116 # Warning - without using the other runtime loading flags (-brtl),
7117 # -berok will link without error, but may produce a broken library.
7118 allow_undefined_flag='-berok'
7119 # Determine the default libpath from the value encoded in an empty executable.
7120 cat >conftest.$ac_ext <<_ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7135 rm -f conftest.$ac_objext conftest$ac_exeext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137 (eval $ac_link) 2>conftest.er1
7139 grep -v '^ *+' conftest.er1 >conftest.err
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try='test -z "$ac_c_werror_flag"
7145 || test ! -s conftest.err'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; } &&
7151 { ac_try='test -s conftest$ac_exeext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7160 # Check for a 64-bit object if we didn't find anything.
7161 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; }
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7168 rm -f conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
7170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7172 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7173 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7175 if test "$host_cpu" = ia64; then
7176 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7177 allow_undefined_flag="-z nodefs"
7178 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7180 # Determine the default libpath from the value encoded in an empty executable.
7181 cat >conftest.$ac_ext <<_ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7196 rm -f conftest.$ac_objext conftest$ac_exeext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198 (eval $ac_link) 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try='test -s conftest$ac_exeext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7221 # Check for a 64-bit object if we didn't find anything.
7222 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; }
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7229 rm -f conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7234 # Warning - without using the other run time loading flags,
7235 # -berok will link without error, but may produce a broken library.
7236 no_undefined_flag=' ${wl}-bernotok'
7237 allow_undefined_flag=' ${wl}-berok'
7238 # Exported symbols can be pulled into shared objects from archives
7239 whole_archive_flag_spec='$convenience'
7240 archive_cmds_need_lc=yes
7241 # This is similar to how AIX traditionally builds its shared libraries.
7242 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7248 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)'
7249 hardcode_libdir_flag_spec='-L$libdir'
7250 hardcode_minus_L=yes
7251 # see comment about different semantics on the GNU ld section
7256 export_dynamic_flag_spec=-rdynamic
7259 cygwin* | mingw* | pw32*)
7260 # When not using gcc, we currently assume that we are using
7261 # Microsoft Visual C++.
7262 # hardcode_libdir_flag_spec is actually meaningless, as there is
7263 # no search path for DLLs.
7264 hardcode_libdir_flag_spec=' '
7265 allow_undefined_flag=unsupported
7266 # Tell ltmain to make .lib files, not .a files.
7268 # Tell ltmain to make .dll files, not .so files.
7270 # FIXME: Setting linknames here is a bad hack.
7271 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7272 # The linker will automatically build a .lib file if we build a DLL.
7273 old_archive_From_new_cmds='true'
7274 # FIXME: Should let the user specify the lib program.
7275 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7276 fix_srcfile_path='`cygpath -w "$srcfile"`'
7277 enable_shared_with_static_runtimes=yes
7280 darwin* | rhapsody*)
7282 rhapsody* | darwin1.[012])
7283 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7286 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7287 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7289 case ${MACOSX_DEPLOYMENT_TARGET} in
7291 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7294 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7300 archive_cmds_need_lc=no
7302 hardcode_automatic=yes
7303 hardcode_shlibpath_var=unsupported
7304 whole_archive_flag_spec=''
7305 link_all_deplibs=yes
7306 if test "$GCC" = yes ; then
7307 output_verbose_link_cmd='echo'
7308 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7309 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7310 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7311 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}'
7312 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}'
7314 case $cc_basename in
7316 output_verbose_link_cmd='echo'
7317 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7318 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7319 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7320 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7321 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}'
7331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7332 hardcode_libdir_flag_spec='-L$libdir'
7333 hardcode_shlibpath_var=no
7340 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7341 # support. Future versions do this automatically, but an explicit c++rt0.o
7342 # does not break anything, and helps significantly (at the cost of a little
7345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7346 hardcode_libdir_flag_spec='-R$libdir'
7348 hardcode_shlibpath_var=no
7351 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7355 hardcode_minus_L=yes
7356 hardcode_shlibpath_var=no
7359 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7360 freebsd* | kfreebsd*-gnu | dragonfly*)
7361 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7362 hardcode_libdir_flag_spec='-R$libdir'
7364 hardcode_shlibpath_var=no
7368 if test "$GCC" = yes; then
7369 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'
7371 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'
7373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7374 hardcode_libdir_separator=:
7377 # hardcode_minus_L: Not really in the search PATH,
7378 # but as the default location of the library.
7379 hardcode_minus_L=yes
7380 export_dynamic_flag_spec='${wl}-E'
7384 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7385 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7387 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7389 if test "$with_gnu_ld" = no; then
7390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7391 hardcode_libdir_separator=:
7394 export_dynamic_flag_spec='${wl}-E'
7396 # hardcode_minus_L: Not really in the search PATH,
7397 # but as the default location of the library.
7398 hardcode_minus_L=yes
7403 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7406 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7409 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7412 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7418 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7424 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7428 if test "$with_gnu_ld" = no; then
7429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7430 hardcode_libdir_separator=:
7434 hardcode_libdir_flag_spec_ld='+b $libdir'
7436 hardcode_shlibpath_var=no
7440 export_dynamic_flag_spec='${wl}-E'
7442 # hardcode_minus_L: Not really in the search PATH,
7443 # but as the default location of the library.
7444 hardcode_minus_L=yes
7450 irix5* | irix6* | nonstopux*)
7451 if test "$GCC" = yes; then
7452 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'
7454 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'
7455 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7458 hardcode_libdir_separator=:
7459 link_all_deplibs=yes
7463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7466 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7468 hardcode_libdir_flag_spec='-R$libdir'
7470 hardcode_shlibpath_var=no
7474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7477 hardcode_libdir_separator=:
7478 hardcode_shlibpath_var=no
7483 hardcode_shlibpath_var=no
7484 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7486 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7488 export_dynamic_flag_spec='${wl}-E'
7491 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7493 hardcode_libdir_flag_spec='-R$libdir'
7496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7497 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7504 hardcode_libdir_flag_spec='-L$libdir'
7505 hardcode_minus_L=yes
7506 allow_undefined_flag=unsupported
7507 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'
7508 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7512 if test "$GCC" = yes; then
7513 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7514 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'
7516 allow_undefined_flag=' -expect_unresolved \*'
7517 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'
7519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7520 hardcode_libdir_separator=:
7523 osf4* | osf5*) # as osf3* with the addition of -msym flag
7524 if test "$GCC" = yes; then
7525 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7526 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'
7527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7529 allow_undefined_flag=' -expect_unresolved \*'
7530 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'
7531 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7532 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7534 # Both c and cxx compiler support -rpath directly
7535 hardcode_libdir_flag_spec='-rpath $libdir'
7537 hardcode_libdir_separator=:
7541 no_undefined_flag=' -z text'
7542 if test "$GCC" = yes; then
7544 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7545 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7546 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7549 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7550 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7553 hardcode_libdir_flag_spec='-R$libdir'
7554 hardcode_shlibpath_var=no
7556 solaris2.[0-5] | solaris2.[0-5].*) ;;
7558 # The compiler driver will combine linker options so we
7559 # cannot just pass the convience library names through
7560 # without $wl, iff we do not link with $LD.
7561 # Luckily, gcc supports the same syntax we need for Sun Studio.
7562 # Supported since Solaris 2.6 (maybe 2.5.1?)
7565 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7567 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7570 link_all_deplibs=yes
7574 if test "x$host_vendor" = xsequent; then
7575 # Use $CC to link under sequent, because it throws in some extra .o
7576 # files that make .init and .fini sections work.
7577 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7579 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7581 hardcode_libdir_flag_spec='-L$libdir'
7583 hardcode_minus_L=yes
7584 hardcode_shlibpath_var=no
7588 case $host_vendor in
7590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7591 hardcode_direct=yes # is this really true???
7594 ## LD is ld it makes a PLAMLIB
7595 ## CC just makes a GrossModule.
7596 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7597 reload_cmds='$CC -r -o $output$reload_objs'
7601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7602 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7605 runpath_var='LD_RUN_PATH'
7606 hardcode_shlibpath_var=no
7610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7611 hardcode_shlibpath_var=no
7612 export_dynamic_flag_spec='-Bexport'
7616 if test -d /usr/nec; then
7617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7618 hardcode_shlibpath_var=no
7619 runpath_var=LD_RUN_PATH
7620 hardcode_runpath_var=yes
7625 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7626 no_undefined_flag='${wl}-z,text'
7627 archive_cmds_need_lc=no
7628 hardcode_shlibpath_var=no
7629 runpath_var='LD_RUN_PATH'
7631 if test "$GCC" = yes; then
7632 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7633 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7635 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7636 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7640 sysv5* | sco3.2v5* | sco5v6*)
7641 # Note: We can NOT use -z defs as we might desire, because we do not
7642 # link with -lc, and that would cause any symbols used from libc to
7643 # always be unresolved, which means just about no library would
7644 # ever link correctly. If we're not using GNU ld we use -z text
7645 # though, which does catch some bad symbols but isn't as heavy-handed
7647 no_undefined_flag='${wl}-z,text'
7648 allow_undefined_flag='${wl}-z,nodefs'
7649 archive_cmds_need_lc=no
7650 hardcode_shlibpath_var=no
7651 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7652 hardcode_libdir_separator=':'
7653 link_all_deplibs=yes
7654 export_dynamic_flag_spec='${wl}-Bexport'
7655 runpath_var='LD_RUN_PATH'
7657 if test "$GCC" = yes; then
7658 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7659 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7661 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7662 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7668 hardcode_libdir_flag_spec='-L$libdir'
7669 hardcode_shlibpath_var=no
7678 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7679 echo "${ECHO_T}$ld_shlibs" >&6
7680 test "$ld_shlibs" = no && can_build_shared=no
7683 # Do we need to explicitly link libc?
7685 case "x$archive_cmds_need_lc" in
7687 # Assume -lc should be added
7688 archive_cmds_need_lc=yes
7690 if test "$enable_shared" = yes && test "$GCC" = yes; then
7691 case $archive_cmds in
7693 # FIXME: we may have to deal with multi-command sequences.
7696 # Test whether the compiler implicitly links with -lc since on some
7697 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7698 # to ld, don't add -lc before -lgcc.
7699 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7700 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } 2>conftest.err; then
7711 libobjs=conftest.$ac_objext
7713 wl=$lt_prog_compiler_wl
7714 pic_flag=$lt_prog_compiler_pic
7720 lt_save_allow_undefined_flag=$allow_undefined_flag
7721 allow_undefined_flag=
7722 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7723 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }
7728 archive_cmds_need_lc=no
7730 archive_cmds_need_lc=yes
7732 allow_undefined_flag=$lt_save_allow_undefined_flag
7734 cat conftest.err 1>&5
7737 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7738 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7745 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7748 libname_spec='lib$name'
7756 shlibpath_overrides_runpath=unknown
7758 dynamic_linker="$host_os ld.so"
7759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7760 if test "$GCC" = yes; then
7761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7762 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7763 # if the path contains ";" then we assume it to be the separator
7764 # otherwise default to the standard path separator (i.e. ":") - it is
7765 # assumed that no part of a normal pathname contains ";" but that should
7766 # okay in the real world where ";" in dirpaths is itself problematic.
7767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7774 need_lib_prefix=unknown
7775 hardcode_into_libs=no
7777 # when you set need_version to no, make sure it does not cause -set_version
7778 # flags to be left without arguments
7779 need_version=unknown
7784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7785 shlibpath_var=LIBPATH
7787 # AIX 3 has no versioning support, so we append a major version to the name.
7788 soname_spec='${libname}${release}${shared_ext}$major'
7795 hardcode_into_libs=yes
7796 if test "$host_cpu" = ia64; then
7797 # AIX 5 supports IA64
7798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7799 shlibpath_var=LD_LIBRARY_PATH
7801 # With GCC up to 2.95.x, collect2 would create an import file
7802 # for dependence libraries. The import file would start with
7803 # the line `#! .'. This would cause the generated library to
7804 # depend on `.', always an invalid library. This was fixed in
7805 # development snapshots of GCC prior to 3.0.
7807 aix4 | aix4.[01] | aix4.[01].*)
7808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7810 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7818 # soname into executable. Probably we can add versioning support to
7819 # collect2, so additional links can be useful in future.
7820 if test "$aix_use_runtimelinking" = yes; then
7821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7822 # instead of lib<name>.a to let people know that these are not
7823 # typical AIX shared libraries.
7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7826 # We preserve .a as extension for shared libraries through AIX4.2
7827 # and later when we are not doing run time linking.
7828 library_names_spec='${libname}${release}.a $libname.a'
7829 soname_spec='${libname}${release}${shared_ext}$major'
7831 shlibpath_var=LIBPATH
7836 library_names_spec='$libname.ixlibrary $libname.a'
7837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7838 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'
7842 library_names_spec='${libname}${shared_ext}'
7843 dynamic_linker="$host_os ld.so"
7844 shlibpath_var=LIBRARY_PATH
7850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7851 soname_spec='${libname}${release}${shared_ext}$major'
7852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7853 shlibpath_var=LD_LIBRARY_PATH
7854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7856 # the default ld.so.conf also contains /usr/contrib/lib and
7857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7858 # libtool to hard-code these into programs
7861 cygwin* | mingw* | pw32*)
7862 version_type=windows
7867 case $GCC,$host_os in
7868 yes,cygwin* | yes,mingw* | yes,pw32*)
7869 library_names_spec='$libname.dll.a'
7870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7871 postinstall_cmds='base_file=`basename \${file}`~
7872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7873 dldir=$destdir/`dirname \$dlpath`~
7874 test -d \$dldir || mkdir -p \$dldir~
7875 $install_prog $dir/$dlname \$dldir/$dlname~
7876 chmod a+x \$dldir/$dlname'
7877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7878 dlpath=$dir/\$dldll~
7880 shlibpath_overrides_runpath=yes
7884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7889 # MinGW DLLs use traditional 'lib' prefix
7890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7892 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7893 # It is most probably a Windows format PATH printed by
7894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7895 # path with ; separators, and with drive letters. We can handle the
7896 # drive letters (cygwin fileutils understands them), so leave them,
7897 # especially as we might pass files found there to a mingw objdump,
7898 # which wouldn't understand a cygwinified path. Ahh.
7899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7905 # pw32 DLLs use 'pw' prefix rather than 'lib'
7906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7915 dynamic_linker='Win32 ld.exe'
7916 # FIXME: first we should search . and the directory the executable is in
7920 darwin* | rhapsody*)
7921 dynamic_linker="$host_os dyld"
7925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7926 soname_spec='${libname}${release}${major}$shared_ext'
7927 shlibpath_overrides_runpath=yes
7928 shlibpath_var=DYLD_LIBRARY_PATH
7929 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7931 if test "$GCC" = yes; then
7932 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"`
7934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7944 soname_spec='${libname}${release}${shared_ext}$major'
7945 shlibpath_var=LD_LIBRARY_PATH
7956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7957 soname_spec='${libname}${release}${shared_ext}$major'
7958 shlibpath_var=LD_LIBRARY_PATH
7959 shlibpath_overrides_runpath=no
7960 hardcode_into_libs=yes
7961 dynamic_linker='GNU ld.so'
7964 freebsd* | dragonfly*)
7965 # DragonFly does not have aout. When/if they implement a new
7966 # versioning mechanism, adjust this.
7967 if test -x /usr/bin/objformat; then
7968 objformat=`/usr/bin/objformat`
7971 freebsd[123]*) objformat=aout ;;
7975 version_type=freebsd-$objformat
7976 case $version_type in
7978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7987 shlibpath_var=LD_LIBRARY_PATH
7990 shlibpath_overrides_runpath=yes
7992 freebsd3.[01]* | freebsdelf3.[01]*)
7993 shlibpath_overrides_runpath=yes
7994 hardcode_into_libs=yes
7996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7998 shlibpath_overrides_runpath=no
7999 hardcode_into_libs=yes
8001 freebsd*) # from 4.6 on
8002 shlibpath_overrides_runpath=yes
8003 hardcode_into_libs=yes
8012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8013 soname_spec='${libname}${release}${shared_ext}$major'
8014 shlibpath_var=LD_LIBRARY_PATH
8015 hardcode_into_libs=yes
8018 hpux9* | hpux10* | hpux11*)
8019 # Give a soname corresponding to the major version so that dld.sl refuses to
8020 # link against other versions.
8027 hardcode_into_libs=yes
8028 dynamic_linker="$host_os dld.so"
8029 shlibpath_var=LD_LIBRARY_PATH
8030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032 soname_spec='${libname}${release}${shared_ext}$major'
8033 if test "X$HPUX_IA64_MODE" = X32; then
8034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8042 hardcode_into_libs=yes
8043 dynamic_linker="$host_os dld.sl"
8044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047 soname_spec='${libname}${release}${shared_ext}$major'
8048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8053 dynamic_linker="$host_os dld.sl"
8054 shlibpath_var=SHLIB_PATH
8055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057 soname_spec='${libname}${release}${shared_ext}$major'
8060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8061 postinstall_cmds='chmod 555 $lib'
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8069 soname_spec='${libname}${release}${shared_ext}$major'
8070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8071 shlibpath_var=LD_LIBRARY_PATH
8072 shlibpath_overrides_runpath=no
8073 hardcode_into_libs=yes
8076 irix5* | irix6* | nonstopux*)
8078 nonstopux*) version_type=nonstopux ;;
8080 if test "$lt_cv_prog_gnu_ld" = yes; then
8088 soname_spec='${libname}${release}${shared_ext}$major'
8089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8091 irix5* | nonstopux*)
8095 case $LD in # libtool.m4 will add one of these switches to LD
8096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8097 libsuff= shlibsuff= libmagic=32-bit;;
8098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8099 libsuff=32 shlibsuff=N32 libmagic=N32;;
8100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8101 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8102 *) libsuff= shlibsuff= libmagic=never-match;;
8106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8107 shlibpath_overrides_runpath=no
8108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8110 hardcode_into_libs=yes
8113 # No shared lib support for Linux oldld, aout, or coff.
8114 linux*oldld* | linux*aout* | linux*coff*)
8118 # This must be Linux ELF.
8123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8124 soname_spec='${libname}${release}${shared_ext}$major'
8125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8126 shlibpath_var=LD_LIBRARY_PATH
8127 shlibpath_overrides_runpath=no
8128 # This implies no fast_install, which is unacceptable.
8129 # Some rework will be needed to allow for fast_install
8130 # before this can be enabled.
8131 hardcode_into_libs=yes
8133 # Append ld.so.conf contents to the search path
8134 if test -f /etc/ld.so.conf; then
8135 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8136 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8139 # We used to test for /lib/ld.so.1 and disable shared libraries on
8140 # powerpc, because MkLinux only supported shared libraries with the
8141 # GNU dynamic linker. Since this was broken with cross compilers,
8142 # most powerpc-linux boxes support dynamic linking these days and
8143 # people can always --disable-shared, the test was removed, and we
8144 # assume the GNU/Linux dynamic linker is in use.
8145 dynamic_linker='GNU/Linux ld.so'
8152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8153 soname_spec='${libname}${release}${shared_ext}$major'
8154 shlibpath_var=LD_LIBRARY_PATH
8155 shlibpath_overrides_runpath=no
8156 hardcode_into_libs=yes
8157 dynamic_linker='GNU ld.so'
8164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8167 dynamic_linker='NetBSD (a.out) ld.so'
8169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8170 soname_spec='${libname}${release}${shared_ext}$major'
8171 dynamic_linker='NetBSD ld.elf_so'
8173 shlibpath_var=LD_LIBRARY_PATH
8174 shlibpath_overrides_runpath=yes
8175 hardcode_into_libs=yes
8180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8181 shlibpath_var=LD_LIBRARY_PATH
8182 shlibpath_overrides_runpath=yes
8189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8190 soname_spec='${libname}${release}${shared_ext}$major'
8191 shlibpath_var=LD_LIBRARY_PATH
8192 shlibpath_overrides_runpath=yes
8197 sys_lib_dlsearch_path_spec="/usr/lib"
8199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8201 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8202 *) need_version=no ;;
8204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8206 shlibpath_var=LD_LIBRARY_PATH
8207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8209 openbsd2.[89] | openbsd2.[89].*)
8210 shlibpath_overrides_runpath=no
8213 shlibpath_overrides_runpath=yes
8217 shlibpath_overrides_runpath=yes
8222 libname_spec='$name'
8225 library_names_spec='$libname${shared_ext} $libname.a'
8226 dynamic_linker='OS/2 ld.exe'
8227 shlibpath_var=LIBPATH
8230 osf3* | osf4* | osf5*)
8234 soname_spec='${libname}${release}${shared_ext}$major'
8235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8236 shlibpath_var=LD_LIBRARY_PATH
8237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8246 soname_spec='${libname}${release}${shared_ext}$major'
8247 shlibpath_var=LD_LIBRARY_PATH
8248 shlibpath_overrides_runpath=yes
8249 hardcode_into_libs=yes
8250 # ldd complains unless libraries are executable
8251 postinstall_cmds='chmod +x $lib'
8256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8258 shlibpath_var=LD_LIBRARY_PATH
8259 shlibpath_overrides_runpath=yes
8260 if test "$with_gnu_ld" = yes; then
8268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8269 soname_spec='${libname}${release}${shared_ext}$major'
8270 shlibpath_var=LD_LIBRARY_PATH
8271 case $host_vendor in
8273 shlibpath_overrides_runpath=no
8275 export_dynamic_flag_spec='${wl}-Blargedynsym'
8276 runpath_var=LD_RUN_PATH
8284 shlibpath_overrides_runpath=no
8285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8291 if test -d /usr/nec ;then
8293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8294 soname_spec='$libname${shared_ext}.$major'
8295 shlibpath_var=LD_LIBRARY_PATH
8299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8300 version_type=freebsd-elf
8303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8304 soname_spec='${libname}${release}${shared_ext}$major'
8305 shlibpath_var=LD_LIBRARY_PATH
8306 hardcode_into_libs=yes
8307 if test "$with_gnu_ld" = yes; then
8308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8309 shlibpath_overrides_runpath=no
8311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8312 shlibpath_overrides_runpath=yes
8315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8319 sys_lib_dlsearch_path_spec='/usr/lib'
8324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8325 soname_spec='${libname}${release}${shared_ext}$major'
8326 shlibpath_var=LD_LIBRARY_PATH
8333 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8334 echo "${ECHO_T}$dynamic_linker" >&6
8335 test "$dynamic_linker" = no && can_build_shared=no
8337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8338 if test "$GCC" = yes; then
8339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8342 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8343 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8345 if test -n "$hardcode_libdir_flag_spec" || \
8346 test -n "$runpath_var" || \
8347 test "X$hardcode_automatic" = "Xyes" ; then
8349 # We can hardcode non-existant directories.
8350 if test "$hardcode_direct" != no &&
8351 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8352 # have to relink, otherwise we might link with an installed library
8353 # when we should be linking with a yet-to-be-installed one
8354 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8355 test "$hardcode_minus_L" != no; then
8356 # Linking always hardcodes the temporary library directory.
8357 hardcode_action=relink
8359 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8360 hardcode_action=immediate
8363 # We cannot hardcode anything, or else we can only hardcode existing
8365 hardcode_action=unsupported
8367 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8368 echo "${ECHO_T}$hardcode_action" >&6
8370 if test "$hardcode_action" = relink; then
8371 # Fast installation is not supported
8372 enable_fast_install=no
8373 elif test "$shlibpath_overrides_runpath" = yes ||
8374 test "$enable_shared" = no; then
8375 # Fast installation is not necessary
8376 enable_fast_install=needless
8381 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8382 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8383 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8384 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8385 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8386 echo "$as_me:$LINENO: result: yes" >&5
8387 echo "${ECHO_T}yes" >&6
8389 # FIXME - insert some real tests, host_os isn't really good enough
8392 if test -n "$STRIP" ; then
8393 striplib="$STRIP -x"
8394 echo "$as_me:$LINENO: result: yes" >&5
8395 echo "${ECHO_T}yes" >&6
8397 echo "$as_me:$LINENO: result: no" >&5
8398 echo "${ECHO_T}no" >&6
8402 echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6
8408 if test "x$enable_dlopen" != xyes; then
8409 enable_dlopen=unknown
8410 enable_dlopen_self=unknown
8411 enable_dlopen_self_static=unknown
8418 lt_cv_dlopen="load_add_on"
8420 lt_cv_dlopen_self=yes
8424 lt_cv_dlopen="LoadLibrary"
8429 lt_cv_dlopen="dlopen"
8434 # if libdl is installed we need to link against it
8435 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8436 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8437 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 ac_check_lib_save_LIBS=$LIBS
8442 cat >conftest.$ac_ext <<_ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8449 /* Override any gcc2 internal prototype to avoid an error. */
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8464 rm -f conftest.$ac_objext conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>conftest.er1
8468 grep -v '^ *+' conftest.er1 >conftest.err
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_lib_dl_dlopen=yes
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_cv_lib_dl_dlopen=no
8493 rm -f conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8495 LIBS=$ac_check_lib_save_LIBS
8497 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8498 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8499 if test $ac_cv_lib_dl_dlopen = yes; then
8500 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8505 lt_cv_dlopen_self=yes
8512 echo "$as_me:$LINENO: checking for shl_load" >&5
8513 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8514 if test "${ac_cv_func_shl_load+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8525 #define shl_load innocuous_shl_load
8527 /* System header to define __stub macros and hopefully few prototypes,
8528 which can conflict with char shl_load (); below.
8529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8530 <limits.h> exists even on freestanding compilers. */
8533 # include <limits.h>
8535 # include <assert.h>
8540 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8548 /* The GNU C library defines this for functions which it implements
8549 to always fail with ENOSYS. Some functions are actually named
8550 something starting with __ and the normal name is an alias. */
8551 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8554 char (*f) () = shl_load;
8563 return f != shl_load;
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try='test -z "$ac_c_werror_flag"
8578 || test ! -s conftest.err'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest$ac_exeext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_func_shl_load=yes
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 ac_cv_func_shl_load=no
8597 rm -f conftest.err conftest.$ac_objext \
8598 conftest$ac_exeext conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8601 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8602 if test $ac_cv_func_shl_load = yes; then
8603 lt_cv_dlopen="shl_load"
8605 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8606 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8607 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 ac_check_lib_save_LIBS=$LIBS
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8619 /* Override any gcc2 internal prototype to avoid an error. */
8623 /* We use char because int might match the return type of a gcc2
8624 builtin and then its argument prototype would still apply. */
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>conftest.er1
8638 grep -v '^ *+' conftest.er1 >conftest.err
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag"
8644 || test ! -s conftest.err'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; } &&
8650 { ac_try='test -s conftest$ac_exeext'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 ac_cv_lib_dld_shl_load=yes
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 ac_cv_lib_dld_shl_load=no
8663 rm -f conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8665 LIBS=$ac_check_lib_save_LIBS
8667 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8668 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8669 if test $ac_cv_lib_dld_shl_load = yes; then
8670 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8672 echo "$as_me:$LINENO: checking for dlopen" >&5
8673 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8674 if test "${ac_cv_func_dlopen+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 cat >conftest.$ac_ext <<_ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8685 #define dlopen innocuous_dlopen
8687 /* System header to define __stub macros and hopefully few prototypes,
8688 which can conflict with char dlopen (); below.
8689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8690 <limits.h> exists even on freestanding compilers. */
8693 # include <limits.h>
8695 # include <assert.h>
8700 /* Override any gcc2 internal prototype to avoid an error. */
8705 /* We use char because int might match the return type of a gcc2
8706 builtin and then its argument prototype would still apply. */
8708 /* The GNU C library defines this for functions which it implements
8709 to always fail with ENOSYS. Some functions are actually named
8710 something starting with __ and the normal name is an alias. */
8711 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8714 char (*f) () = dlopen;
8728 rm -f conftest.$ac_objext conftest$ac_exeext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730 (eval $ac_link) 2>conftest.er1
8732 grep -v '^ *+' conftest.er1 >conftest.err
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } &&
8737 { ac_try='test -z "$ac_c_werror_flag"
8738 || test ! -s conftest.err'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest$ac_exeext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 ac_cv_func_dlopen=yes
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 ac_cv_func_dlopen=no
8757 rm -f conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8760 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8761 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8762 if test $ac_cv_func_dlopen = yes; then
8763 lt_cv_dlopen="dlopen"
8765 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 ac_check_lib_save_LIBS=$LIBS
8772 cat >conftest.$ac_ext <<_ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8779 /* Override any gcc2 internal prototype to avoid an error. */
8783 /* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8796 (eval $ac_link) 2>conftest.er1
8798 grep -v '^ *+' conftest.er1 >conftest.err
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
8803 { ac_try='test -z "$ac_c_werror_flag"
8804 || test ! -s conftest.err'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; } &&
8810 { ac_try='test -s conftest$ac_exeext'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 ac_cv_lib_dl_dlopen=yes
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_cv_lib_dl_dlopen=no
8823 rm -f conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 LIBS=$ac_check_lib_save_LIBS
8827 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8829 if test $ac_cv_lib_dl_dlopen = yes; then
8830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8832 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8833 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8834 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 ac_check_lib_save_LIBS=$LIBS
8839 cat >conftest.$ac_ext <<_ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8846 /* Override any gcc2 internal prototype to avoid an error. */
8850 /* We use char because int might match the return type of a gcc2
8851 builtin and then its argument prototype would still apply. */
8861 rm -f conftest.$ac_objext conftest$ac_exeext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863 (eval $ac_link) 2>conftest.er1
8865 grep -v '^ *+' conftest.er1 >conftest.err
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag"
8871 || test ! -s conftest.err'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; } &&
8877 { ac_try='test -s conftest$ac_exeext'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8883 ac_cv_lib_svld_dlopen=yes
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8888 ac_cv_lib_svld_dlopen=no
8890 rm -f conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 LIBS=$ac_check_lib_save_LIBS
8894 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8895 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8896 if test $ac_cv_lib_svld_dlopen = yes; then
8897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8899 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8900 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8901 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 ac_check_lib_save_LIBS=$LIBS
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 /* Override any gcc2 internal prototype to avoid an error. */
8917 /* We use char because int might match the return type of a gcc2
8918 builtin and then its argument prototype would still apply. */
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930 (eval $ac_link) 2>conftest.er1
8932 grep -v '^ *+' conftest.er1 >conftest.err
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag"
8938 || test ! -s conftest.err'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; } &&
8944 { ac_try='test -s conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_lib_dld_dld_link=yes
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8955 ac_cv_lib_dld_dld_link=no
8957 rm -f conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 LIBS=$ac_check_lib_save_LIBS
8961 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8962 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8963 if test $ac_cv_lib_dld_dld_link = yes; then
8964 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8985 if test "x$lt_cv_dlopen" != xno; then
8991 case $lt_cv_dlopen in
8993 save_CPPFLAGS="$CPPFLAGS"
8994 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8996 save_LDFLAGS="$LDFLAGS"
8997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9000 LIBS="$lt_cv_dlopen_libs $LIBS"
9002 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9003 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9004 if test "${lt_cv_dlopen_self+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 if test "$cross_compiling" = yes; then :
9008 lt_cv_dlopen_self=cross
9010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9011 lt_status=$lt_dlunknown
9012 cat > conftest.$ac_ext <<EOF
9013 #line 9013 "configure"
9014 #include "confdefs.h"
9023 # define LT_DLGLOBAL RTLD_GLOBAL
9026 # define LT_DLGLOBAL DL_GLOBAL
9028 # define LT_DLGLOBAL 0
9032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9033 find out it does not work in some platform. */
9034 #ifndef LT_DLLAZY_OR_NOW
9036 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9039 # define LT_DLLAZY_OR_NOW DL_LAZY
9042 # define LT_DLLAZY_OR_NOW RTLD_NOW
9045 # define LT_DLLAZY_OR_NOW DL_NOW
9047 # define LT_DLLAZY_OR_NOW 0
9055 extern "C" void exit (int);
9058 void fnord() { int i=42;}
9061 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9062 int status = $lt_dlunknown;
9066 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9067 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9068 /* dlclose (self); */
9076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9077 (eval $ac_link) 2>&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9081 (./conftest; exit; ) >&5 2>/dev/null
9084 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9085 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9086 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9089 # compilation failed
9090 lt_cv_dlopen_self=no
9097 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9098 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9100 if test "x$lt_cv_dlopen_self" = xyes; then
9101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9102 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9103 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9104 if test "${lt_cv_dlopen_self_static+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 if test "$cross_compiling" = yes; then :
9108 lt_cv_dlopen_self_static=cross
9110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9111 lt_status=$lt_dlunknown
9112 cat > conftest.$ac_ext <<EOF
9113 #line 9113 "configure"
9114 #include "confdefs.h"
9123 # define LT_DLGLOBAL RTLD_GLOBAL
9126 # define LT_DLGLOBAL DL_GLOBAL
9128 # define LT_DLGLOBAL 0
9132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9133 find out it does not work in some platform. */
9134 #ifndef LT_DLLAZY_OR_NOW
9136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9139 # define LT_DLLAZY_OR_NOW DL_LAZY
9142 # define LT_DLLAZY_OR_NOW RTLD_NOW
9145 # define LT_DLLAZY_OR_NOW DL_NOW
9147 # define LT_DLLAZY_OR_NOW 0
9155 extern "C" void exit (int);
9158 void fnord() { int i=42;}
9161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9162 int status = $lt_dlunknown;
9166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9168 /* dlclose (self); */
9176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9177 (eval $ac_link) 2>&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9181 (./conftest; exit; ) >&5 2>/dev/null
9184 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9185 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9186 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9189 # compilation failed
9190 lt_cv_dlopen_self_static=no
9197 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9198 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9201 CPPFLAGS="$save_CPPFLAGS"
9202 LDFLAGS="$save_LDFLAGS"
9207 case $lt_cv_dlopen_self in
9208 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9209 *) enable_dlopen_self=unknown ;;
9212 case $lt_cv_dlopen_self_static in
9213 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9214 *) enable_dlopen_self_static=unknown ;;
9219 # Report which library types will actually be built
9220 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9221 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9222 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9223 echo "${ECHO_T}$can_build_shared" >&6
9225 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9226 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9227 test "$can_build_shared" = "no" && enable_shared=no
9229 # On AIX, shared libraries and static libraries use the same namespace, and
9230 # are all built from PIC.
9233 test "$enable_shared" = yes && enable_static=no
9234 if test -n "$RANLIB"; then
9235 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9236 postinstall_cmds='$RANLIB $lib'
9241 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9242 test "$enable_shared" = yes && enable_static=no
9246 echo "$as_me:$LINENO: result: $enable_shared" >&5
9247 echo "${ECHO_T}$enable_shared" >&6
9249 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9250 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9251 # Make sure either enable_shared or enable_static is yes.
9252 test "$enable_shared" = yes || enable_static=yes
9253 echo "$as_me:$LINENO: result: $enable_static" >&5
9254 echo "${ECHO_T}$enable_static" >&6
9256 # The else clause should only fire when bootstrapping the
9257 # libtool distribution, otherwise you forgot to ship ltmain.sh
9258 # with your package, and you will get complaints that there are
9259 # no rules to generate ltmain.sh.
9260 if test -f "$ltmain"; then
9261 # See if we are running on zsh, and set the options which allow our commands through
9262 # without removal of \ escapes.
9263 if test -n "${ZSH_VERSION+set}" ; then
9264 setopt NO_GLOB_SUBST
9266 # Now quote all the things that may contain metacharacters while being
9267 # careful not to overquote the AC_SUBSTed values. We take copies of the
9268 # variables and quote the copies for generation of the libtool script.
9269 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9271 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9272 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9273 deplibs_check_method reload_flag reload_cmds need_locks \
9274 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9275 lt_cv_sys_global_symbol_to_c_name_address \
9276 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9277 old_postinstall_cmds old_postuninstall_cmds \
9281 lt_prog_compiler_wl \
9282 lt_prog_compiler_pic \
9283 lt_prog_compiler_static \
9284 lt_prog_compiler_no_builtin_flag \
9285 export_dynamic_flag_spec \
9286 thread_safe_flag_spec \
9287 whole_archive_flag_spec \
9288 enable_shared_with_static_runtimes \
9290 old_archive_from_new_cmds \
9295 compiler_lib_search_path \
9297 archive_expsym_cmds \
9299 postuninstall_cmds \
9300 old_archive_from_expsyms_cmds \
9301 allow_undefined_flag \
9303 export_symbols_cmds \
9304 hardcode_libdir_flag_spec \
9305 hardcode_libdir_flag_spec_ld \
9306 hardcode_libdir_separator \
9307 hardcode_automatic \
9309 module_expsym_cmds \
9310 lt_cv_prog_compiler_c_o \
9315 old_archive_cmds | \
9316 old_archive_from_new_cmds | \
9318 archive_expsym_cmds | \
9320 module_expsym_cmds | \
9321 old_archive_from_expsyms_cmds | \
9322 export_symbols_cmds | \
9323 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9324 postinstall_cmds | postuninstall_cmds | \
9325 old_postinstall_cmds | old_postuninstall_cmds | \
9326 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9327 # Double-quote double-evaled strings.
9328 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9337 *'\$0 --fallback-echo"')
9338 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9343 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9345 { echo "$as_me:$LINENO: creating $ofile" >&5
9346 echo "$as_me: creating $ofile" >&6;}
9348 cat <<__EOF__ >> "$cfgfile"
9351 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9352 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9355 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9356 # Free Software Foundation, Inc.
9358 # This file is part of GNU Libtool:
9359 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9361 # This program is free software; you can redistribute it and/or modify
9362 # it under the terms of the GNU General Public License as published by
9363 # the Free Software Foundation; either version 2 of the License, or
9364 # (at your option) any later version.
9366 # This program is distributed in the hope that it will be useful, but
9367 # WITHOUT ANY WARRANTY; without even the implied warranty of
9368 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9369 # General Public License for more details.
9371 # You should have received a copy of the GNU General Public License
9372 # along with this program; if not, write to the Free Software
9373 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9375 # As a special exception to the GNU General Public License, if you
9376 # distribute this file as part of a program that contains a
9377 # configuration script generated by Autoconf, you may include it under
9378 # the same distribution terms that you use for the rest of that program.
9380 # A sed program that does not truncate output.
9383 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9384 Xsed="$SED -e 1s/^X//"
9386 # The HP-UX ksh and POSIX shell print the target directory to stdout
9388 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9390 # The names of the tagged configurations supported by this script.
9393 # ### BEGIN LIBTOOL CONFIG
9395 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9397 # Shell to use when invoking shell scripts.
9400 # Whether or not to build shared libraries.
9401 build_libtool_libs=$enable_shared
9403 # Whether or not to build static libraries.
9404 build_old_libs=$enable_static
9406 # Whether or not to add -lc for building shared libraries.
9407 build_libtool_need_lc=$archive_cmds_need_lc
9409 # Whether or not to disallow shared libs when runtime libs are static
9410 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9412 # Whether or not to optimize for fast installation.
9413 fast_install=$enable_fast_install
9416 host_alias=$host_alias
9421 build_alias=$build_alias
9425 # An echo program that does not interpret backslashes.
9430 AR_FLAGS=$lt_AR_FLAGS
9435 # LTCC compiler flags.
9436 LTCFLAGS=$lt_LTCFLAGS
9438 # A language-specific compiler.
9441 # Is the compiler the GNU C compiler?
9447 # The linker used to build libraries.
9450 # Whether we need hard or soft links.
9453 # A BSD-compatible nm program.
9456 # A symbol stripping program
9459 # Used to examine libraries when file_magic_cmd begins "file"
9460 MAGIC_CMD=$MAGIC_CMD
9462 # Used on cygwin: DLL creation program.
9465 # Used on cygwin: object dumper.
9468 # Used on cygwin: assembler.
9471 # The name of the directory that contains temporary libtool files.
9474 # How to create reloadable object files.
9475 reload_flag=$lt_reload_flag
9476 reload_cmds=$lt_reload_cmds
9478 # How to pass a linker flag through the compiler.
9479 wl=$lt_lt_prog_compiler_wl
9481 # Object file suffix (normally "o").
9484 # Old archive suffix (normally "a").
9487 # Shared library suffix (normally ".so").
9488 shrext_cmds='$shrext_cmds'
9490 # Executable file suffix (normally "").
9493 # Additional compiler flags for building library objects.
9494 pic_flag=$lt_lt_prog_compiler_pic
9497 # What is the maximum length of a command?
9498 max_cmd_len=$lt_cv_sys_max_cmd_len
9500 # Does compiler simultaneously support -c and -o options?
9501 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9503 # Must we lock files when doing compilation?
9504 need_locks=$lt_need_locks
9506 # Do we need the lib prefix for modules?
9507 need_lib_prefix=$need_lib_prefix
9509 # Do we need a version for libraries?
9510 need_version=$need_version
9512 # Whether dlopen is supported.
9513 dlopen_support=$enable_dlopen
9515 # Whether dlopen of programs is supported.
9516 dlopen_self=$enable_dlopen_self
9518 # Whether dlopen of statically linked programs is supported.
9519 dlopen_self_static=$enable_dlopen_self_static
9521 # Compiler flag to prevent dynamic linking.
9522 link_static_flag=$lt_lt_prog_compiler_static
9524 # Compiler flag to turn off builtin functions.
9525 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9527 # Compiler flag to allow reflexive dlopens.
9528 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9530 # Compiler flag to generate shared objects directly from archives.
9531 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9533 # Compiler flag to generate thread-safe objects.
9534 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9536 # Library versioning type.
9537 version_type=$version_type
9539 # Format of library name prefix.
9540 libname_spec=$lt_libname_spec
9542 # List of archive names. First name is the real one, the rest are links.
9543 # The last name is the one that the linker finds with -lNAME.
9544 library_names_spec=$lt_library_names_spec
9546 # The coded name of the library, if different from the real name.
9547 soname_spec=$lt_soname_spec
9549 # Commands used to build and install an old-style archive.
9551 old_archive_cmds=$lt_old_archive_cmds
9552 old_postinstall_cmds=$lt_old_postinstall_cmds
9553 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9555 # Create an old-style archive from a shared archive.
9556 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9558 # Create a temporary old-style archive to link instead of a shared archive.
9559 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9561 # Commands used to build and install a shared archive.
9562 archive_cmds=$lt_archive_cmds
9563 archive_expsym_cmds=$lt_archive_expsym_cmds
9564 postinstall_cmds=$lt_postinstall_cmds
9565 postuninstall_cmds=$lt_postuninstall_cmds
9567 # Commands used to build a loadable module (assumed same as above if empty)
9568 module_cmds=$lt_module_cmds
9569 module_expsym_cmds=$lt_module_expsym_cmds
9571 # Commands to strip libraries.
9572 old_striplib=$lt_old_striplib
9573 striplib=$lt_striplib
9575 # Dependencies to place before the objects being linked to create a
9577 predep_objects=$lt_predep_objects
9579 # Dependencies to place after the objects being linked to create a
9581 postdep_objects=$lt_postdep_objects
9583 # Dependencies to place before the objects being linked to create a
9587 # Dependencies to place after the objects being linked to create a
9589 postdeps=$lt_postdeps
9591 # The library search path used internally by the compiler when linking
9593 compiler_lib_search_path=$lt_compiler_lib_search_path
9595 # Method to check whether dependent libraries are shared objects.
9596 deplibs_check_method=$lt_deplibs_check_method
9598 # Command to use when deplibs_check_method == file_magic.
9599 file_magic_cmd=$lt_file_magic_cmd
9601 # Flag that allows shared libraries with undefined symbols to be built.
9602 allow_undefined_flag=$lt_allow_undefined_flag
9604 # Flag that forces no undefined symbols.
9605 no_undefined_flag=$lt_no_undefined_flag
9607 # Commands used to finish a libtool library installation in a directory.
9608 finish_cmds=$lt_finish_cmds
9610 # Same as above, but a single script fragment to be evaled but not shown.
9611 finish_eval=$lt_finish_eval
9613 # Take the output of nm and produce a listing of raw symbols and C names.
9614 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9616 # Transform the output of nm in a proper C declaration
9617 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9619 # Transform the output of nm in a C name address pair
9620 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9622 # This is the shared library runtime path variable.
9623 runpath_var=$runpath_var
9625 # This is the shared library path variable.
9626 shlibpath_var=$shlibpath_var
9628 # Is shlibpath searched before the hard-coded library search path?
9629 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9631 # How to hardcode a shared library path into an executable.
9632 hardcode_action=$hardcode_action
9634 # Whether we should hardcode library paths into libraries.
9635 hardcode_into_libs=$hardcode_into_libs
9637 # Flag to hardcode \$libdir into a binary during linking.
9638 # This must work even if \$libdir does not exist.
9639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9641 # If ld is used when linking, flag to hardcode \$libdir into
9642 # a binary during linking. This must work even if \$libdir does
9644 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9646 # Whether we need a single -rpath flag with a separated argument.
9647 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9649 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9651 hardcode_direct=$hardcode_direct
9653 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9655 hardcode_minus_L=$hardcode_minus_L
9657 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9658 # the resulting binary.
9659 hardcode_shlibpath_var=$hardcode_shlibpath_var
9661 # Set to yes if building a shared library automatically hardcodes DIR into the library
9662 # and all subsequent libraries and executables linked against it.
9663 hardcode_automatic=$hardcode_automatic
9665 # Variables whose values should be saved in libtool wrapper scripts and
9666 # restored at relink time.
9667 variables_saved_for_relink="$variables_saved_for_relink"
9669 # Whether libtool must link a program against all its dependency libraries.
9670 link_all_deplibs=$link_all_deplibs
9672 # Compile-time system search path for libraries
9673 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9675 # Run-time system search path for libraries
9676 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9678 # Fix the shell variable \$srcfile for the compiler.
9679 fix_srcfile_path="$fix_srcfile_path"
9681 # Set to yes if exported symbols are required.
9682 always_export_symbols=$always_export_symbols
9684 # The commands to list exported symbols.
9685 export_symbols_cmds=$lt_export_symbols_cmds
9687 # The commands to extract the exported symbol list from a shared archive.
9688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9690 # Symbols that should not be listed in the preloaded symbols.
9691 exclude_expsyms=$lt_exclude_expsyms
9693 # Symbols that must always be exported.
9694 include_expsyms=$lt_include_expsyms
9696 # ### END LIBTOOL CONFIG
9703 cat <<\EOF >> "$cfgfile"
9705 # AIX sometimes has problems with the GCC collect2 program. For some
9706 # reason, if we set the COLLECT_NAMES environment variable, the problems
9707 # vanish in a puff of smoke.
9708 if test "X${COLLECT_NAMES+set}" != Xset; then
9710 export COLLECT_NAMES
9716 # We use sed instead of cat because bash on DJGPP gets confused if
9717 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9718 # text mode, it properly converts lines to CR/LF. This bash problem
9719 # is reportedly fixed, but why not run on old versions too?
9720 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9722 mv -f "$cfgfile" "$ofile" || \
9723 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9727 # If there is no Makefile yet, we rely on a make rule to execute
9728 # `config.status --recheck' to rerun these tests and create the
9729 # libtool script then.
9730 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9731 if test -f "$ltmain_in"; then
9732 test -f Makefile && make "$ltmain"
9738 ac_cpp='$CPP $CPPFLAGS'
9739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9746 # Check whether --with-tags or --without-tags was given.
9747 if test "${with_tags+set}" = set; then
9748 withval="$with_tags"
9752 if test -f "$ltmain" && test -n "$tagnames"; then
9753 if test ! -f "${ofile}"; then
9754 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9755 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9758 if test -z "$LTCC"; then
9759 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9760 if test -z "$LTCC"; then
9761 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9762 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9765 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9768 if test -z "$LTCFLAGS"; then
9769 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9772 # Extract list of available tagged configurations in $ofile.
9773 # Note that this assumes the entire list is on one line.
9774 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9776 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9777 for tagname in $tagnames; do
9779 # Check whether tagname contains only valid characters
9780 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9782 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9783 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9784 { (exit 1); exit 1; }; }
9788 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9790 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9791 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9792 { (exit 1); exit 1; }; }
9795 # Update the list of available tags.
9796 if test -n "$tagname"; then
9797 echo appending configuration tag \"$tagname\" to $ofile
9801 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9802 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9803 (test "X$CXX" != "Xg++"))) ; then
9805 ac_cpp='$CXXCPP $CPPFLAGS'
9806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9813 archive_cmds_need_lc_CXX=no
9814 allow_undefined_flag_CXX=
9815 always_export_symbols_CXX=no
9816 archive_expsym_cmds_CXX=
9817 export_dynamic_flag_spec_CXX=
9818 hardcode_direct_CXX=no
9819 hardcode_libdir_flag_spec_CXX=
9820 hardcode_libdir_flag_spec_ld_CXX=
9821 hardcode_libdir_separator_CXX=
9822 hardcode_minus_L_CXX=no
9823 hardcode_shlibpath_var_CXX=unsupported
9824 hardcode_automatic_CXX=no
9826 module_expsym_cmds_CXX=
9827 link_all_deplibs_CXX=unknown
9828 old_archive_cmds_CXX=$old_archive_cmds
9829 no_undefined_flag_CXX=
9830 whole_archive_flag_spec_CXX=
9831 enable_shared_with_static_runtimes_CXX=no
9833 # Dependencies to place before and after the object being linked:
9835 postdep_objects_CXX=
9838 compiler_lib_search_path_CXX=
9840 # Source file extension for C++ test sources.
9843 # Object file extension for compiled C++ test sources.
9847 # Code to be used in simple compile tests
9848 lt_simple_compile_test_code="int some_variable = 0;\n"
9850 # Code to be used in simple link tests
9851 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9853 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9855 # If no C compiler was specified, use CC.
9858 # If no C compiler flags were specified, use CFLAGS.
9859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9861 # Allow CC to be a program name with arguments.
9865 # save warnings/boilerplate of simple test code
9866 ac_outfile=conftest.$ac_objext
9867 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9868 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9869 _lt_compiler_boilerplate=`cat conftest.err`
9872 ac_outfile=conftest.$ac_objext
9873 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9874 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9875 _lt_linker_boilerplate=`cat conftest.err`
9879 # Allow CC to be a program name with arguments.
9884 lt_save_with_gnu_ld=$with_gnu_ld
9885 lt_save_path_LD=$lt_cv_path_LD
9886 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9887 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9889 $as_unset lt_cv_prog_gnu_ld
9891 if test -n "${lt_cv_path_LDCXX+set}"; then
9892 lt_cv_path_LD=$lt_cv_path_LDCXX
9894 $as_unset lt_cv_path_LD
9896 test -z "${LDCXX+set}" || LD=$LDCXX
9900 for cc_temp in $compiler""; do
9902 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9903 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9908 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9911 # We don't want -fno-exception wen compiling C++ code, so set the
9912 # no_builtin_flag separately
9913 if test "$GXX" = yes; then
9914 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9916 lt_prog_compiler_no_builtin_flag_CXX=
9919 if test "$GXX" = yes; then
9920 # Set up default GNU C++ configuration
9923 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9924 if test "${with_gnu_ld+set}" = set; then
9925 withval="$with_gnu_ld"
9926 test "$withval" = no || with_gnu_ld=yes
9931 if test "$GCC" = yes; then
9932 # Check if gcc -print-prog-name=ld gives a path.
9933 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9934 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9937 # gcc leaves a trailing carriage return which upsets mingw
9938 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9940 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9943 # Accept absolute paths.
9945 re_direlt='/[^/][^/]*/\.\./'
9946 # Canonicalize the pathname of ld
9947 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9948 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9949 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9951 test -z "$LD" && LD="$ac_prog"
9954 # If it fails, then pretend we aren't using GCC.
9958 # If it is relative, then search for the first ld in PATH.
9962 elif test "$with_gnu_ld" = yes; then
9963 echo "$as_me:$LINENO: checking for GNU ld" >&5
9964 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9966 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9967 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9969 if test "${lt_cv_path_LD+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 if test -z "$LD"; then
9973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9974 for ac_dir in $PATH; do
9976 test -z "$ac_dir" && ac_dir=.
9977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9978 lt_cv_path_LD="$ac_dir/$ac_prog"
9979 # Check to see if the program is GNU ld. I'd rather use --version,
9980 # but apparently some variants of GNU ld only accept -v.
9981 # Break only if it was the GNU/non-GNU ld that we prefer.
9982 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9983 *GNU* | *'with BFD'*)
9984 test "$with_gnu_ld" != no && break
9987 test "$with_gnu_ld" != yes && break
9994 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9999 if test -n "$LD"; then
10000 echo "$as_me:$LINENO: result: $LD" >&5
10001 echo "${ECHO_T}$LD" >&6
10003 echo "$as_me:$LINENO: result: no" >&5
10004 echo "${ECHO_T}no" >&6
10006 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10007 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10008 { (exit 1); exit 1; }; }
10009 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10010 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10011 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10015 case `$LD -v 2>&1 </dev/null` in
10016 *GNU* | *'with BFD'*)
10017 lt_cv_prog_gnu_ld=yes
10020 lt_cv_prog_gnu_ld=no
10024 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10025 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10026 with_gnu_ld=$lt_cv_prog_gnu_ld
10030 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10031 # archiving commands below assume that GNU ld is being used.
10032 if test "$with_gnu_ld" = yes; then
10033 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10034 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'
10036 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10039 # If archive_cmds runs LD, not CC, wlarc should be empty
10040 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10041 # investigate it a little bit more. (MM)
10044 # ancient GNU ld didn't support --whole-archive et. al.
10045 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10046 grep 'no-whole-archive' > /dev/null; then
10047 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10049 whole_archive_flag_spec_CXX=
10055 # A generic and very simple default shared library creation
10056 # command for GNU C++ for the case where it uses the native
10057 # linker, instead of GNU ld. If possible, this setting should
10058 # overridden to take advantage of the native linker features on
10059 # the platform it is being used on.
10060 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10063 # Commands to make compiler produce verbose output that lists
10064 # what "hidden" libraries, object files and flags are used when
10065 # linking a shared library.
10066 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10074 # PORTME: fill in a description of your system's C++ link characteristics
10075 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10076 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10080 # FIXME: insert proper C++ library support
10084 if test "$host_cpu" = ia64; then
10085 # On IA64, the linker does run time linking by default, so we don't
10086 # have to do anything special.
10087 aix_use_runtimelinking=no
10088 exp_sym_flag='-Bexport'
10091 aix_use_runtimelinking=no
10093 # Test if we are trying to use run time linking or normal
10094 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10095 # need to do runtime linking.
10096 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10097 for ld_flag in $LDFLAGS; do
10100 aix_use_runtimelinking=yes
10108 exp_sym_flag='-bexport'
10109 no_entry_flag='-bnoentry'
10112 # When large executables or shared objects are built, AIX ld can
10113 # have problems creating the table of contents. If linking a library
10114 # or program results in "error TOC overflow" add -mminimal-toc to
10115 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10116 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10118 archive_cmds_CXX=''
10119 hardcode_direct_CXX=yes
10120 hardcode_libdir_separator_CXX=':'
10121 link_all_deplibs_CXX=yes
10123 if test "$GXX" = yes; then
10124 case $host_os in aix4.[012]|aix4.[012].*)
10125 # We only want to do this on AIX 4.2 and lower, the check
10126 # below for broken collect2 doesn't work under 4.3+
10127 collect2name=`${CC} -print-prog-name=collect2`
10128 if test -f "$collect2name" && \
10129 strings "$collect2name" | grep resolve_lib_name >/dev/null
10131 # We have reworked collect2
10132 hardcode_direct_CXX=yes
10134 # We have old collect2
10135 hardcode_direct_CXX=unsupported
10136 # It fails to find uninstalled libraries when the uninstalled
10137 # path is not listed in the libpath. Setting hardcode_minus_L
10138 # to unsupported forces relinking
10139 hardcode_minus_L_CXX=yes
10140 hardcode_libdir_flag_spec_CXX='-L$libdir'
10141 hardcode_libdir_separator_CXX=
10145 shared_flag='-shared'
10146 if test "$aix_use_runtimelinking" = yes; then
10147 shared_flag="$shared_flag "'${wl}-G'
10151 if test "$host_cpu" = ia64; then
10152 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10153 # chokes on -Wl,-G. The following line is correct:
10156 if test "$aix_use_runtimelinking" = yes; then
10157 shared_flag='${wl}-G'
10159 shared_flag='${wl}-bM:SRE'
10164 # It seems that -bexpall does not export symbols beginning with
10165 # underscore (_), so it is better to generate a list of symbols to export.
10166 always_export_symbols_CXX=yes
10167 if test "$aix_use_runtimelinking" = yes; then
10168 # Warning - without using the other runtime loading flags (-brtl),
10169 # -berok will link without error, but may produce a broken library.
10170 allow_undefined_flag_CXX='-berok'
10171 # Determine the default libpath from the value encoded in an empty executable.
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189 (eval $ac_link) 2>conftest.er1
10191 grep -v '^ *+' conftest.er1 >conftest.err
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_cxx_werror_flag"
10197 || test ! -s conftest.err'
10198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; }; then
10210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10212 # Check for a 64-bit object if we didn't find anything.
10213 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10220 rm -f conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10224 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10226 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10228 if test "$host_cpu" = ia64; then
10229 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10230 allow_undefined_flag_CXX="-z nodefs"
10231 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10233 # Determine the default libpath from the value encoded in an empty executable.
10234 cat >conftest.$ac_ext <<_ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>conftest.er1
10253 grep -v '^ *+' conftest.er1 >conftest.err
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try='test -z "$ac_cxx_werror_flag"
10259 || test ! -s conftest.err'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; } &&
10265 { ac_try='test -s conftest$ac_exeext'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10274 # Check for a 64-bit object if we didn't find anything.
10275 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; }
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10282 rm -f conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10286 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10287 # Warning - without using the other run time loading flags,
10288 # -berok will link without error, but may produce a broken library.
10289 no_undefined_flag_CXX=' ${wl}-bernotok'
10290 allow_undefined_flag_CXX=' ${wl}-berok'
10291 # Exported symbols can be pulled into shared objects from archives
10292 whole_archive_flag_spec_CXX='$convenience'
10293 archive_cmds_need_lc_CXX=yes
10294 # This is similar to how AIX traditionally builds its shared libraries.
10295 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10302 allow_undefined_flag_CXX=unsupported
10303 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10304 # support --undefined. This deserves some investigation. FIXME
10305 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10312 case $cc_basename in
10314 # FIXME: insert proper C++ library support
10320 cygwin* | mingw* | pw32*)
10321 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10322 # as there is no search path for DLLs.
10323 hardcode_libdir_flag_spec_CXX='-L$libdir'
10324 allow_undefined_flag_CXX=unsupported
10325 always_export_symbols_CXX=no
10326 enable_shared_with_static_runtimes_CXX=yes
10328 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10329 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10330 # If the export-symbols file already is a .def file (1st line
10331 # is EXPORTS), use it as is; otherwise, prepend...
10332 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10333 cp $export_symbols $output_objdir/$soname.def;
10335 echo EXPORTS > $output_objdir/$soname.def;
10336 cat $export_symbols >> $output_objdir/$soname.def;
10338 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10343 darwin* | rhapsody*)
10345 rhapsody* | darwin1.[012])
10346 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10349 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10350 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10352 case ${MACOSX_DEPLOYMENT_TARGET} in
10354 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10357 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10363 archive_cmds_need_lc_CXX=no
10364 hardcode_direct_CXX=no
10365 hardcode_automatic_CXX=yes
10366 hardcode_shlibpath_var_CXX=unsupported
10367 whole_archive_flag_spec_CXX=''
10368 link_all_deplibs_CXX=yes
10370 if test "$GXX" = yes ; then
10371 lt_int_apple_cc_single_mod=no
10372 output_verbose_link_cmd='echo'
10373 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10374 lt_int_apple_cc_single_mod=yes
10376 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10377 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10379 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10381 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10382 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10383 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10384 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}'
10386 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10388 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}'
10390 case $cc_basename in
10392 output_verbose_link_cmd='echo'
10393 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10394 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10395 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10396 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10397 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}'
10407 case $cc_basename in
10409 # FIXME: insert proper C++ library support
10413 # Green Hills C++ Compiler
10414 # FIXME: insert proper C++ library support
10418 # FIXME: insert proper C++ library support
10424 # C++ shared libraries reported to be fairly broken before switch to ELF
10428 archive_cmds_need_lc_CXX=no
10430 freebsd* | kfreebsd*-gnu | dragonfly*)
10431 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10438 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10439 hardcode_libdir_separator_CXX=:
10440 export_dynamic_flag_spec_CXX='${wl}-E'
10441 hardcode_direct_CXX=yes
10442 hardcode_minus_L_CXX=yes # Not in the search PATH,
10443 # but as the default
10444 # location of the library.
10446 case $cc_basename in
10448 # FIXME: insert proper C++ library support
10452 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'
10453 # Commands to make compiler produce verbose output that lists
10454 # what "hidden" libraries, object files and flags are used when
10455 # linking a shared library.
10457 # There doesn't appear to be a way to prevent this compiler from
10458 # explicitly linking system object files so we need to strip them
10459 # from the output so that they don't get included in the library
10461 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'
10464 if test "$GXX" = yes; then
10465 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'
10467 # FIXME: insert proper C++ library support
10474 if test $with_gnu_ld = no; then
10475 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10476 hardcode_libdir_separator_CXX=:
10480 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10483 export_dynamic_flag_spec_CXX='${wl}-E'
10489 hardcode_direct_CXX=no
10490 hardcode_shlibpath_var_CXX=no
10493 hardcode_direct_CXX=yes
10494 hardcode_minus_L_CXX=yes # Not in the search PATH,
10495 # but as the default
10496 # location of the library.
10500 case $cc_basename in
10502 # FIXME: insert proper C++ library support
10508 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10511 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10517 # Commands to make compiler produce verbose output that lists
10518 # what "hidden" libraries, object files and flags are used when
10519 # linking a shared library.
10521 # There doesn't appear to be a way to prevent this compiler from
10522 # explicitly linking system object files so we need to strip them
10523 # from the output so that they don't get included in the library
10525 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'
10528 if test "$GXX" = yes; then
10529 if test $with_gnu_ld = no; then
10532 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10535 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10538 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'
10543 # FIXME: insert proper C++ library support
10550 hardcode_direct_CXX=no
10551 hardcode_shlibpath_var_CXX=no
10552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10553 export_dynamic_flag_spec_CXX='${wl}-E'
10554 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10555 # Instead, shared libraries are loaded at an image base (0x10000000 by
10556 # default) and relocated if they conflict, which is a slow very memory
10557 # consuming and fragmenting process. To avoid this, we pick a random,
10558 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10559 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10560 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10561 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10564 case $cc_basename in
10567 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10569 # Archives containing C++ object files must be created using
10570 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10571 # necessary to make sure instantiated templates are included
10573 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10576 if test "$GXX" = yes; then
10577 if test "$with_gnu_ld" = no; then
10578 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10580 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'
10583 link_all_deplibs_CXX=yes
10586 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10587 hardcode_libdir_separator_CXX=:
10590 case $cc_basename in
10592 # Kuck and Associates, Inc. (KAI) C++ Compiler
10594 # KCC will only create a shared library if the output file
10595 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10596 # to its proper name (with version) after linking.
10597 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'
10598 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'
10599 # Commands to make compiler produce verbose output that lists
10600 # what "hidden" libraries, object files and flags are used when
10601 # linking a shared library.
10603 # There doesn't appear to be a way to prevent this compiler from
10604 # explicitly linking system object files so we need to strip them
10605 # from the output so that they don't get included in the library
10607 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'
10609 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10610 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10612 # Archives containing C++ object files must be created using
10613 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10614 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10619 # version 8.0 and above of icpc choke on multiply defined symbols
10620 # if we add $predep_objects and $postdep_objects, however 7.1 and
10621 # earlier do not add the objects themselves.
10622 case `$CC -V 2>&1` in
10624 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10625 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'
10627 *) # Version 8.0 or newer
10630 ia64*) tmp_idyn=' -i_dynamic';;
10632 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10633 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10636 archive_cmds_need_lc_CXX=no
10637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10638 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10639 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10642 # Portland Group C++ compiler
10643 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10644 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10646 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10647 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10648 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10652 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10653 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'
10655 runpath_var=LD_RUN_PATH
10656 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10657 hardcode_libdir_separator_CXX=:
10659 # Commands to make compiler produce verbose output that lists
10660 # what "hidden" libraries, object files and flags are used when
10661 # linking a shared library.
10663 # There doesn't appear to be a way to prevent this compiler from
10664 # explicitly linking system object files so we need to strip them
10665 # from the output so that they don't get included in the library
10667 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'
10672 # FIXME: insert proper C++ library support
10676 # FIXME: insert proper C++ library support
10680 case $cc_basename in
10682 # FIXME: insert proper C++ library support
10686 # FIXME: insert proper C++ library support
10692 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10693 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10695 hardcode_libdir_flag_spec_CXX='-R$libdir'
10696 hardcode_direct_CXX=yes
10697 hardcode_shlibpath_var_CXX=no
10699 # Workaround some broken pre-1.5 toolchains
10700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10703 # C++ shared libraries are fairly broken
10707 hardcode_direct_CXX=yes
10708 hardcode_shlibpath_var_CXX=no
10709 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10712 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10713 export_dynamic_flag_spec_CXX='${wl}-E'
10714 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10716 output_verbose_link_cmd='echo'
10719 case $cc_basename in
10721 # Kuck and Associates, Inc. (KAI) C++ Compiler
10723 # KCC will only create a shared library if the output file
10724 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10725 # to its proper name (with version) after linking.
10726 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'
10728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10729 hardcode_libdir_separator_CXX=:
10731 # Archives containing C++ object files must be created using
10732 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10733 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10737 # Rational C++ 2.4.1
10738 # FIXME: insert proper C++ library support
10742 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10743 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10745 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10746 hardcode_libdir_separator_CXX=:
10748 # Commands to make compiler produce verbose output that lists
10749 # what "hidden" libraries, object files and flags are used when
10750 # linking a shared library.
10752 # There doesn't appear to be a way to prevent this compiler from
10753 # explicitly linking system object files so we need to strip them
10754 # from the output so that they don't get included in the library
10756 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'
10759 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10760 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10761 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10764 hardcode_libdir_separator_CXX=:
10766 # Commands to make compiler produce verbose output that lists
10767 # what "hidden" libraries, object files and flags are used when
10768 # linking a shared library.
10769 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10772 # FIXME: insert proper C++ library support
10779 case $cc_basename in
10781 # Kuck and Associates, Inc. (KAI) C++ Compiler
10783 # KCC will only create a shared library if the output file
10784 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10785 # to its proper name (with version) after linking.
10786 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'
10788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10789 hardcode_libdir_separator_CXX=:
10791 # Archives containing C++ object files must be created using
10792 # the KAI C++ compiler.
10793 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10796 # Rational C++ 2.4.1
10797 # FIXME: insert proper C++ library support
10801 allow_undefined_flag_CXX=' -expect_unresolved \*'
10802 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10803 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10804 echo "-hidden">> $lib.exp~
10805 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10808 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10809 hardcode_libdir_separator_CXX=:
10811 # Commands to make compiler produce verbose output that lists
10812 # what "hidden" libraries, object files and flags are used when
10813 # linking a shared library.
10815 # There doesn't appear to be a way to prevent this compiler from
10816 # explicitly linking system object files so we need to strip them
10817 # from the output so that they don't get included in the library
10819 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'
10822 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10823 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10824 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10826 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10827 hardcode_libdir_separator_CXX=:
10829 # Commands to make compiler produce verbose output that lists
10830 # what "hidden" libraries, object files and flags are used when
10831 # linking a shared library.
10832 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10835 # FIXME: insert proper C++ library support
10842 # FIXME: insert proper C++ library support
10846 case $cc_basename in
10849 # FIXME: insert proper C++ library support
10854 # FIXME: insert proper C++ library support
10858 # FIXME: insert proper C++ library support
10864 case $cc_basename in
10866 # Sun C++ 4.2, 5.x and Centerline C++
10867 archive_cmds_need_lc_CXX=yes
10868 no_undefined_flag_CXX=' -zdefs'
10869 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10870 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10871 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10873 hardcode_libdir_flag_spec_CXX='-R$libdir'
10874 hardcode_shlibpath_var_CXX=no
10876 solaris2.[0-5] | solaris2.[0-5].*) ;;
10878 # The C++ compiler is used as linker so we must use $wl
10879 # flag to pass the commands to the underlying system
10880 # linker. We must also pass each convience library through
10881 # to the system linker between allextract/defaultextract.
10882 # The C++ compiler will combine linker options so we
10883 # cannot just pass the convience library names through
10885 # Supported since Solaris 2.6 (maybe 2.5.1?)
10886 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10889 link_all_deplibs_CXX=yes
10891 output_verbose_link_cmd='echo'
10893 # Archives containing C++ object files must be created using
10894 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10895 # necessary to make sure instantiated templates are included
10897 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10900 # Green Hills C++ Compiler
10901 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10903 # The C++ compiler must be used to create the archive.
10904 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10907 # GNU C++ compiler with Solaris linker
10908 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10909 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10910 if $CC --version | grep -v '^2\.7' > /dev/null; then
10911 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10912 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10913 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10915 # Commands to make compiler produce verbose output that lists
10916 # what "hidden" libraries, object files and flags are used when
10917 # linking a shared library.
10918 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10920 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10922 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10923 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10924 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10926 # Commands to make compiler produce verbose output that lists
10927 # what "hidden" libraries, object files and flags are used when
10928 # linking a shared library.
10929 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10932 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10937 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10938 no_undefined_flag_CXX='${wl}-z,text'
10939 archive_cmds_need_lc_CXX=no
10940 hardcode_shlibpath_var_CXX=no
10941 runpath_var='LD_RUN_PATH'
10943 case $cc_basename in
10945 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 sysv5* | sco3.2v5* | sco5v6*)
10955 # Note: We can NOT use -z defs as we might desire, because we do not
10956 # link with -lc, and that would cause any symbols used from libc to
10957 # always be unresolved, which means just about no library would
10958 # ever link correctly. If we're not using GNU ld we use -z text
10959 # though, which does catch some bad symbols but isn't as heavy-handed
10961 # For security reasons, it is highly recommended that you always
10962 # use absolute paths for naming shared libraries, and exclude the
10963 # DT_RUNPATH tag from executables and libraries. But doing so
10964 # requires that you compile everything twice, which is a pain.
10965 # So that behaviour is only enabled if SCOABSPATH is set to a
10966 # non-empty value in the environment. Most likely only useful for
10967 # creating official distributions of packages.
10968 # This is a hack until libtool officially supports absolute path
10969 # names for shared libraries.
10970 no_undefined_flag_CXX='${wl}-z,text'
10971 allow_undefined_flag_CXX='${wl}-z,nodefs'
10972 archive_cmds_need_lc_CXX=no
10973 hardcode_shlibpath_var_CXX=no
10974 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10975 hardcode_libdir_separator_CXX=':'
10976 link_all_deplibs_CXX=yes
10977 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10978 runpath_var='LD_RUN_PATH'
10980 case $cc_basename in
10982 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10983 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10986 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10987 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10992 case $cc_basename in
10994 # NonStop-UX NCC 3.20
10995 # FIXME: insert proper C++ library support
10999 # FIXME: insert proper C++ library support
11005 # FIXME: insert proper C++ library support
11009 # FIXME: insert proper C++ library support
11013 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11014 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11015 test "$ld_shlibs_CXX" = no && can_build_shared=no
11021 ## There is no encapsulation within the following macros, do not change
11022 ## the running order or otherwise move them around unless you know exactly
11023 ## what you are doing...
11025 cat > conftest.$ac_ext <<EOF
11029 Foo (void) { a = 0; }
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036 (eval $ac_compile) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; then
11040 # Parse the compiler output and extract the necessary
11041 # objects, libraries and library flags.
11043 # Sentinel used to keep track of whether or not we are before
11044 # the conftest object file.
11045 pre_test_object_deps_done=no
11047 # The `*' in the case matches for architectures that use `case' in
11048 # $output_verbose_cmd can trigger glob expansion during the loop
11049 # eval without this substitution.
11050 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11052 for p in `eval $output_verbose_link_cmd`; do
11056 # Some compilers place space between "-{L,R}" and the path.
11057 # Remove the space.
11058 if test $p = "-L" \
11059 || test $p = "-R"; then
11066 if test "$pre_test_object_deps_done" = no; then
11069 # Internal compiler library paths should come after those
11070 # provided the user. The postdeps already come after the
11071 # user supplied libs so there is no need to process them.
11072 if test -z "$compiler_lib_search_path_CXX"; then
11073 compiler_lib_search_path_CXX="${prev}${p}"
11075 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11078 # The "-l" case would never come before the object being
11079 # linked, so don't bother handling this case.
11082 if test -z "$postdeps_CXX"; then
11083 postdeps_CXX="${prev}${p}"
11085 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11091 # This assumes that the test object file only shows up
11092 # once in the compiler output.
11093 if test "$p" = "conftest.$objext"; then
11094 pre_test_object_deps_done=yes
11098 if test "$pre_test_object_deps_done" = no; then
11099 if test -z "$predep_objects_CXX"; then
11100 predep_objects_CXX="$p"
11102 predep_objects_CXX="$predep_objects_CXX $p"
11105 if test -z "$postdep_objects_CXX"; then
11106 postdep_objects_CXX="$p"
11108 postdep_objects_CXX="$postdep_objects_CXX $p"
11113 *) ;; # Ignore the rest.
11121 echo "libtool.m4: error: problem compiling CXX test program"
11124 $rm -f confest.$objext
11126 # PORTME: override above test on systems where it is broken
11129 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11130 # hack all around it, let's just trust "g++" to DTRT.
11131 predep_objects_CXX=
11132 postdep_objects_CXX=
11137 case $cc_basename in
11139 # Adding this requires a known-good setup of shared libraries for
11140 # Sun compiler versions before 5.6, else PIC objects from an old
11141 # archive will be linked into the output, leading to subtle bugs.
11142 postdeps_CXX='-lCstd -lCrun'
11149 case " $postdeps_CXX " in
11150 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11153 lt_prog_compiler_wl_CXX=
11154 lt_prog_compiler_pic_CXX=
11155 lt_prog_compiler_static_CXX=
11157 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11160 # C++ specific cases for pic, static, wl, etc.
11161 if test "$GXX" = yes; then
11162 lt_prog_compiler_wl_CXX='-Wl,'
11163 lt_prog_compiler_static_CXX='-static'
11167 # All AIX code is PIC.
11168 if test "$host_cpu" = ia64; then
11169 # AIX 5 now supports IA64 processor
11170 lt_prog_compiler_static_CXX='-Bstatic'
11174 # FIXME: we need at least 68020 code to build shared libraries, but
11175 # adding the `-m68020' flag to GCC prevents building anything better,
11177 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11179 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11180 # PIC is the default for these OSes.
11182 mingw* | os2* | pw32*)
11183 # This hack is so that the source file can tell whether it is being
11184 # built for inclusion in a dll (and should export symbols for example).
11185 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11187 darwin* | rhapsody*)
11188 # PIC is the default on this platform
11189 # Common symbols not allowed in MH_DYLIB files
11190 lt_prog_compiler_pic_CXX='-fno-common'
11193 # DJGPP does not support shared libraries at all
11194 lt_prog_compiler_pic_CXX=
11197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11198 # Instead, we relocate shared libraries at runtime.
11201 if test -d /usr/nec; then
11202 lt_prog_compiler_pic_CXX=-Kconform_pic
11206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11207 # not for PA HP-UX.
11212 lt_prog_compiler_pic_CXX='-fPIC'
11217 lt_prog_compiler_pic_CXX='-fPIC'
11223 # All AIX code is PIC.
11224 if test "$host_cpu" = ia64; then
11225 # AIX 5 now supports IA64 processor
11226 lt_prog_compiler_static_CXX='-Bstatic'
11228 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11232 case $cc_basename in
11234 # Green Hills C++ Compiler
11235 # _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"
11240 # PIC is the default on this platform
11241 # Common symbols not allowed in MH_DYLIB files
11242 case $cc_basename in
11244 lt_prog_compiler_pic_CXX='-qnocommon'
11245 lt_prog_compiler_wl_CXX='-Wl,'
11250 case $cc_basename in
11252 lt_prog_compiler_pic_CXX='-KPIC'
11255 # Green Hills C++ Compiler
11256 lt_prog_compiler_pic_CXX='-pic'
11262 freebsd* | kfreebsd*-gnu | dragonfly*)
11263 # FreeBSD uses GNU C++
11265 hpux9* | hpux10* | hpux11*)
11266 case $cc_basename in
11268 lt_prog_compiler_wl_CXX='-Wl,'
11269 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11270 if test "$host_cpu" != ia64; then
11271 lt_prog_compiler_pic_CXX='+Z'
11275 lt_prog_compiler_wl_CXX='-Wl,'
11276 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11282 lt_prog_compiler_pic_CXX='+Z'
11291 # This is c89, which is MS Visual C++ (no shared libs)
11292 # Anyone wants to do a port?
11294 irix5* | irix6* | nonstopux*)
11295 case $cc_basename in
11297 lt_prog_compiler_wl_CXX='-Wl,'
11298 lt_prog_compiler_static_CXX='-non_shared'
11299 # CC pic flag -KPIC is the default.
11306 case $cc_basename in
11309 lt_prog_compiler_wl_CXX='--backend -Wl,'
11310 lt_prog_compiler_pic_CXX='-fPIC'
11314 lt_prog_compiler_wl_CXX='-Wl,'
11315 lt_prog_compiler_pic_CXX='-KPIC'
11316 lt_prog_compiler_static_CXX='-static'
11319 # Portland Group C++ compiler.
11320 lt_prog_compiler_wl_CXX='-Wl,'
11321 lt_prog_compiler_pic_CXX='-fpic'
11322 lt_prog_compiler_static_CXX='-Bstatic'
11326 # Make sure the PIC flag is empty. It appears that all Alpha
11327 # Linux and Compaq Tru64 Unix objects are PIC.
11328 lt_prog_compiler_pic_CXX=
11329 lt_prog_compiler_static_CXX='-non_shared'
11340 case $cc_basename in
11342 lt_prog_compiler_pic_CXX='-W c,exportall'
11350 osf3* | osf4* | osf5*)
11351 case $cc_basename in
11353 lt_prog_compiler_wl_CXX='--backend -Wl,'
11356 # Rational C++ 2.4.1
11357 lt_prog_compiler_pic_CXX='-pic'
11360 # Digital/Compaq C++
11361 lt_prog_compiler_wl_CXX='-Wl,'
11362 # Make sure the PIC flag is empty. It appears that all Alpha
11363 # Linux and Compaq Tru64 Unix objects are PIC.
11364 lt_prog_compiler_pic_CXX=
11365 lt_prog_compiler_static_CXX='-non_shared'
11374 case $cc_basename in
11376 # Sun C++ 4.2, 5.x and Centerline C++
11377 lt_prog_compiler_pic_CXX='-KPIC'
11378 lt_prog_compiler_static_CXX='-Bstatic'
11379 lt_prog_compiler_wl_CXX='-Qoption ld '
11382 # Green Hills C++ Compiler
11383 lt_prog_compiler_pic_CXX='-PIC'
11390 case $cc_basename in
11393 lt_prog_compiler_pic_CXX='-pic'
11394 lt_prog_compiler_static_CXX='-Bstatic'
11398 lt_prog_compiler_pic_CXX='-pic'
11405 case $cc_basename in
11407 # NonStop-UX NCC 3.20
11408 lt_prog_compiler_pic_CXX='-KPIC'
11414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11415 case $cc_basename in
11417 lt_prog_compiler_wl_CXX='-Wl,'
11418 lt_prog_compiler_pic_CXX='-KPIC'
11419 lt_prog_compiler_static_CXX='-Bstatic'
11426 lt_prog_compiler_can_build_shared_CXX=no
11431 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11432 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11435 # Check to make sure the PIC flag actually works.
11437 if test -n "$lt_prog_compiler_pic_CXX"; then
11439 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11440 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11441 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 lt_prog_compiler_pic_works_CXX=no
11445 ac_outfile=conftest.$ac_objext
11446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11447 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11448 # Insert the option either (1) after the last *FLAGS variable, or
11449 # (2) before a word containing "conftest.", or (3) at the end.
11450 # Note that $ac_compile itself does not contain backslashes and begins
11451 # with a dollar sign (not a hyphen), so the echo should work correctly.
11452 # The option is referenced via a variable to avoid confusing sed.
11453 lt_compile=`echo "$ac_compile" | $SED \
11454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11456 -e 's:$: $lt_compiler_flag:'`
11457 (eval echo "\"\$as_me:11457: $lt_compile\"" >&5)
11458 (eval "$lt_compile" 2>conftest.err)
11460 cat conftest.err >&5
11461 echo "$as_me:11461: \$? = $ac_status" >&5
11462 if (exit $ac_status) && test -s "$ac_outfile"; then
11463 # The compiler can only warn and ignore the option if not recognized
11464 # So say no if there are warnings other than the usual output.
11465 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11468 lt_prog_compiler_pic_works_CXX=yes
11474 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11475 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11477 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11478 case $lt_prog_compiler_pic_CXX in
11480 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11483 lt_prog_compiler_pic_CXX=
11484 lt_prog_compiler_can_build_shared_CXX=no
11489 # For platforms which do not support PIC, -DPIC is meaningless:
11491 lt_prog_compiler_pic_CXX=
11494 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11499 # Check to make sure the static flag actually works.
11501 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11502 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11503 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11504 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 lt_prog_compiler_static_works_CXX=no
11508 save_LDFLAGS="$LDFLAGS"
11509 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11510 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11512 # The linker can only warn and ignore the option if not recognized
11513 # So say no if there are warnings
11514 if test -s conftest.err; then
11515 # Append any errors to the config.log.
11516 cat conftest.err 1>&5
11517 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11519 if diff conftest.exp conftest.er2 >/dev/null; then
11520 lt_prog_compiler_static_works_CXX=yes
11523 lt_prog_compiler_static_works_CXX=yes
11527 LDFLAGS="$save_LDFLAGS"
11530 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11531 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11533 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11536 lt_prog_compiler_static_CXX=
11540 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11541 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11542 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 lt_cv_prog_compiler_c_o_CXX=no
11546 $rm -r conftest 2>/dev/null
11550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11552 lt_compiler_flag="-o out/conftest2.$ac_objext"
11553 # Insert the option either (1) after the last *FLAGS variable, or
11554 # (2) before a word containing "conftest.", or (3) at the end.
11555 # Note that $ac_compile itself does not contain backslashes and begins
11556 # with a dollar sign (not a hyphen), so the echo should work correctly.
11557 lt_compile=`echo "$ac_compile" | $SED \
11558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11560 -e 's:$: $lt_compiler_flag:'`
11561 (eval echo "\"\$as_me:11561: $lt_compile\"" >&5)
11562 (eval "$lt_compile" 2>out/conftest.err)
11564 cat out/conftest.err >&5
11565 echo "$as_me:11565: \$? = $ac_status" >&5
11566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11568 # The compiler can only warn and ignore the option if not recognized
11569 # So say no if there are warnings
11570 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11573 lt_cv_prog_compiler_c_o_CXX=yes
11578 # SGI C++ compiler will create directory out/ii_files/ for
11579 # template instantiation
11580 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11581 $rm out/* && rmdir out
11587 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11591 hard_links="nottested"
11592 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11593 # do not overwrite the value of need_locks provided by the user
11594 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11595 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11600 ln conftest.a conftest.b 2>&5 || hard_links=no
11601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11602 echo "$as_me:$LINENO: result: $hard_links" >&5
11603 echo "${ECHO_T}$hard_links" >&6
11604 if test "$hard_links" = no; then
11605 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11606 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11613 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11616 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11619 # If we're using GNU nm, then we don't want the "-C" option.
11620 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11621 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11622 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'
11624 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'
11628 export_symbols_cmds_CXX="$ltdll_cmds"
11631 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11634 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11638 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11639 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11640 test "$ld_shlibs_CXX" = no && can_build_shared=no
11643 # Do we need to explicitly link libc?
11645 case "x$archive_cmds_need_lc_CXX" in
11647 # Assume -lc should be added
11648 archive_cmds_need_lc_CXX=yes
11650 if test "$enable_shared" = yes && test "$GCC" = yes; then
11651 case $archive_cmds_CXX in
11653 # FIXME: we may have to deal with multi-command sequences.
11656 # Test whether the compiler implicitly links with -lc since on some
11657 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11658 # to ld, don't add -lc before -lgcc.
11659 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11660 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11662 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11665 (eval $ac_compile) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } 2>conftest.err; then
11671 libobjs=conftest.$ac_objext
11673 wl=$lt_prog_compiler_wl_CXX
11674 pic_flag=$lt_prog_compiler_pic_CXX
11680 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11681 allow_undefined_flag_CXX=
11682 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11683 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }
11688 archive_cmds_need_lc_CXX=no
11690 archive_cmds_need_lc_CXX=yes
11692 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11694 cat conftest.err 1>&5
11697 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11698 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11705 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11706 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11707 library_names_spec=
11708 libname_spec='lib$name'
11712 postuninstall_cmds=
11716 shlibpath_overrides_runpath=unknown
11718 dynamic_linker="$host_os ld.so"
11719 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11720 if test "$GCC" = yes; then
11721 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11722 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11723 # if the path contains ";" then we assume it to be the separator
11724 # otherwise default to the standard path separator (i.e. ":") - it is
11725 # assumed that no part of a normal pathname contains ";" but that should
11726 # okay in the real world where ";" in dirpaths is itself problematic.
11727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11734 need_lib_prefix=unknown
11735 hardcode_into_libs=no
11737 # when you set need_version to no, make sure it does not cause -set_version
11738 # flags to be left without arguments
11739 need_version=unknown
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11745 shlibpath_var=LIBPATH
11747 # AIX 3 has no versioning support, so we append a major version to the name.
11748 soname_spec='${libname}${release}${shared_ext}$major'
11755 hardcode_into_libs=yes
11756 if test "$host_cpu" = ia64; then
11757 # AIX 5 supports IA64
11758 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11759 shlibpath_var=LD_LIBRARY_PATH
11761 # With GCC up to 2.95.x, collect2 would create an import file
11762 # for dependence libraries. The import file would start with
11763 # the line `#! .'. This would cause the generated library to
11764 # depend on `.', always an invalid library. This was fixed in
11765 # development snapshots of GCC prior to 3.0.
11767 aix4 | aix4.[01] | aix4.[01].*)
11768 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11770 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11773 can_build_shared=no
11777 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11778 # soname into executable. Probably we can add versioning support to
11779 # collect2, so additional links can be useful in future.
11780 if test "$aix_use_runtimelinking" = yes; then
11781 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11782 # instead of lib<name>.a to let people know that these are not
11783 # typical AIX shared libraries.
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786 # We preserve .a as extension for shared libraries through AIX4.2
11787 # and later when we are not doing run time linking.
11788 library_names_spec='${libname}${release}.a $libname.a'
11789 soname_spec='${libname}${release}${shared_ext}$major'
11791 shlibpath_var=LIBPATH
11796 library_names_spec='$libname.ixlibrary $libname.a'
11797 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11798 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'
11802 library_names_spec='${libname}${shared_ext}'
11803 dynamic_linker="$host_os ld.so"
11804 shlibpath_var=LIBRARY_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'
11812 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11815 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11816 # the default ld.so.conf also contains /usr/contrib/lib and
11817 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11818 # libtool to hard-code these into programs
11821 cygwin* | mingw* | pw32*)
11822 version_type=windows
11827 case $GCC,$host_os in
11828 yes,cygwin* | yes,mingw* | yes,pw32*)
11829 library_names_spec='$libname.dll.a'
11830 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11831 postinstall_cmds='base_file=`basename \${file}`~
11832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11833 dldir=$destdir/`dirname \$dlpath`~
11834 test -d \$dldir || mkdir -p \$dldir~
11835 $install_prog $dir/$dlname \$dldir/$dlname~
11836 chmod a+x \$dldir/$dlname'
11837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11838 dlpath=$dir/\$dldll~
11840 shlibpath_overrides_runpath=yes
11844 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11846 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11849 # MinGW DLLs use traditional 'lib' prefix
11850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11852 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11853 # It is most probably a Windows format PATH printed by
11854 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11855 # path with ; separators, and with drive letters. We can handle the
11856 # drive letters (cygwin fileutils understands them), so leave them,
11857 # especially as we might pass files found there to a mingw objdump,
11858 # which wouldn't understand a cygwinified path. Ahh.
11859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11865 # pw32 DLLs use 'pw' prefix rather than 'lib'
11866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11875 dynamic_linker='Win32 ld.exe'
11876 # FIXME: first we should search . and the directory the executable is in
11880 darwin* | rhapsody*)
11881 dynamic_linker="$host_os dyld"
11882 version_type=darwin
11885 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11886 soname_spec='${libname}${release}${major}$shared_ext'
11887 shlibpath_overrides_runpath=yes
11888 shlibpath_var=DYLD_LIBRARY_PATH
11889 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11890 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11891 if test "$GCC" = yes; then
11892 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"`
11894 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11896 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11904 soname_spec='${libname}${release}${shared_ext}$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11917 soname_spec='${libname}${release}${shared_ext}$major'
11918 shlibpath_var=LD_LIBRARY_PATH
11919 shlibpath_overrides_runpath=no
11920 hardcode_into_libs=yes
11921 dynamic_linker='GNU ld.so'
11924 freebsd* | dragonfly*)
11925 # DragonFly does not have aout. When/if they implement a new
11926 # versioning mechanism, adjust this.
11927 if test -x /usr/bin/objformat; then
11928 objformat=`/usr/bin/objformat`
11931 freebsd[123]*) objformat=aout ;;
11932 *) objformat=elf ;;
11935 version_type=freebsd-$objformat
11936 case $version_type in
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11947 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=yes
11952 freebsd3.[01]* | freebsdelf3.[01]*)
11953 shlibpath_overrides_runpath=yes
11954 hardcode_into_libs=yes
11956 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11957 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11958 shlibpath_overrides_runpath=no
11959 hardcode_into_libs=yes
11961 freebsd*) # from 4.6 on
11962 shlibpath_overrides_runpath=yes
11963 hardcode_into_libs=yes
11972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11973 soname_spec='${libname}${release}${shared_ext}$major'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 hardcode_into_libs=yes
11978 hpux9* | hpux10* | hpux11*)
11979 # Give a soname corresponding to the major version so that dld.sl refuses to
11980 # link against other versions.
11987 hardcode_into_libs=yes
11988 dynamic_linker="$host_os dld.so"
11989 shlibpath_var=LD_LIBRARY_PATH
11990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 if test "X$HPUX_IA64_MODE" = X32; then
11994 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11996 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12002 hardcode_into_libs=yes
12003 dynamic_linker="$host_os dld.sl"
12004 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007 soname_spec='${libname}${release}${shared_ext}$major'
12008 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12013 dynamic_linker="$host_os dld.sl"
12014 shlibpath_var=SHLIB_PATH
12015 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12017 soname_spec='${libname}${release}${shared_ext}$major'
12020 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12021 postinstall_cmds='chmod 555 $lib'
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12029 soname_spec='${libname}${release}${shared_ext}$major'
12030 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12031 shlibpath_var=LD_LIBRARY_PATH
12032 shlibpath_overrides_runpath=no
12033 hardcode_into_libs=yes
12036 irix5* | irix6* | nonstopux*)
12038 nonstopux*) version_type=nonstopux ;;
12040 if test "$lt_cv_prog_gnu_ld" = yes; then
12048 soname_spec='${libname}${release}${shared_ext}$major'
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12051 irix5* | nonstopux*)
12052 libsuff= shlibsuff=
12055 case $LD in # libtool.m4 will add one of these switches to LD
12056 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12057 libsuff= shlibsuff= libmagic=32-bit;;
12058 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12059 libsuff=32 shlibsuff=N32 libmagic=N32;;
12060 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12061 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12062 *) libsuff= shlibsuff= libmagic=never-match;;
12066 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12067 shlibpath_overrides_runpath=no
12068 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12069 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12070 hardcode_into_libs=yes
12073 # No shared lib support for Linux oldld, aout, or coff.
12074 linux*oldld* | linux*aout* | linux*coff*)
12078 # This must be Linux ELF.
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12084 soname_spec='${libname}${release}${shared_ext}$major'
12085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 shlibpath_overrides_runpath=no
12088 # This implies no fast_install, which is unacceptable.
12089 # Some rework will be needed to allow for fast_install
12090 # before this can be enabled.
12091 hardcode_into_libs=yes
12093 # Append ld.so.conf contents to the search path
12094 if test -f /etc/ld.so.conf; then
12095 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12096 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12099 # We used to test for /lib/ld.so.1 and disable shared libraries on
12100 # powerpc, because MkLinux only supported shared libraries with the
12101 # GNU dynamic linker. Since this was broken with cross compilers,
12102 # most powerpc-linux boxes support dynamic linking these days and
12103 # people can always --disable-shared, the test was removed, and we
12104 # assume the GNU/Linux dynamic linker is in use.
12105 dynamic_linker='GNU/Linux ld.so'
12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12113 soname_spec='${libname}${release}${shared_ext}$major'
12114 shlibpath_var=LD_LIBRARY_PATH
12115 shlibpath_overrides_runpath=no
12116 hardcode_into_libs=yes
12117 dynamic_linker='GNU ld.so'
12124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12127 dynamic_linker='NetBSD (a.out) ld.so'
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12130 soname_spec='${libname}${release}${shared_ext}$major'
12131 dynamic_linker='NetBSD ld.elf_so'
12133 shlibpath_var=LD_LIBRARY_PATH
12134 shlibpath_overrides_runpath=yes
12135 hardcode_into_libs=yes
12140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 shlibpath_overrides_runpath=yes
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 shlibpath_overrides_runpath=yes
12157 sys_lib_dlsearch_path_spec="/usr/lib"
12159 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12161 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12162 *) need_version=no ;;
12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12166 shlibpath_var=LD_LIBRARY_PATH
12167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12169 openbsd2.[89] | openbsd2.[89].*)
12170 shlibpath_overrides_runpath=no
12173 shlibpath_overrides_runpath=yes
12177 shlibpath_overrides_runpath=yes
12182 libname_spec='$name'
12185 library_names_spec='$libname${shared_ext} $libname.a'
12186 dynamic_linker='OS/2 ld.exe'
12187 shlibpath_var=LIBPATH
12190 osf3* | osf4* | osf5*)
12194 soname_spec='${libname}${release}${shared_ext}$major'
12195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12196 shlibpath_var=LD_LIBRARY_PATH
12197 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12198 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12206 soname_spec='${libname}${release}${shared_ext}$major'
12207 shlibpath_var=LD_LIBRARY_PATH
12208 shlibpath_overrides_runpath=yes
12209 hardcode_into_libs=yes
12210 # ldd complains unless libraries are executable
12211 postinstall_cmds='chmod +x $lib'
12216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12217 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12218 shlibpath_var=LD_LIBRARY_PATH
12219 shlibpath_overrides_runpath=yes
12220 if test "$with_gnu_ld" = yes; then
12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12229 soname_spec='${libname}${release}${shared_ext}$major'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 case $host_vendor in
12233 shlibpath_overrides_runpath=no
12235 export_dynamic_flag_spec='${wl}-Blargedynsym'
12236 runpath_var=LD_RUN_PATH
12244 shlibpath_overrides_runpath=no
12245 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12251 if test -d /usr/nec ;then
12253 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12254 soname_spec='$libname${shared_ext}.$major'
12255 shlibpath_var=LD_LIBRARY_PATH
12259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12260 version_type=freebsd-elf
12263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12264 soname_spec='${libname}${release}${shared_ext}$major'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 hardcode_into_libs=yes
12267 if test "$with_gnu_ld" = yes; then
12268 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12269 shlibpath_overrides_runpath=no
12271 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12272 shlibpath_overrides_runpath=yes
12275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12279 sys_lib_dlsearch_path_spec='/usr/lib'
12284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12285 soname_spec='${libname}${release}${shared_ext}$major'
12286 shlibpath_var=LD_LIBRARY_PATH
12293 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12294 echo "${ECHO_T}$dynamic_linker" >&6
12295 test "$dynamic_linker" = no && can_build_shared=no
12297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12298 if test "$GCC" = yes; then
12299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12302 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12303 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12304 hardcode_action_CXX=
12305 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12306 test -n "$runpath_var_CXX" || \
12307 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12309 # We can hardcode non-existant directories.
12310 if test "$hardcode_direct_CXX" != no &&
12311 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12312 # have to relink, otherwise we might link with an installed library
12313 # when we should be linking with a yet-to-be-installed one
12314 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12315 test "$hardcode_minus_L_CXX" != no; then
12316 # Linking always hardcodes the temporary library directory.
12317 hardcode_action_CXX=relink
12319 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12320 hardcode_action_CXX=immediate
12323 # We cannot hardcode anything, or else we can only hardcode existing
12325 hardcode_action_CXX=unsupported
12327 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12328 echo "${ECHO_T}$hardcode_action_CXX" >&6
12330 if test "$hardcode_action_CXX" = relink; then
12331 # Fast installation is not supported
12332 enable_fast_install=no
12333 elif test "$shlibpath_overrides_runpath" = yes ||
12334 test "$enable_shared" = no; then
12335 # Fast installation is not necessary
12336 enable_fast_install=needless
12340 # The else clause should only fire when bootstrapping the
12341 # libtool distribution, otherwise you forgot to ship ltmain.sh
12342 # with your package, and you will get complaints that there are
12343 # no rules to generate ltmain.sh.
12344 if test -f "$ltmain"; then
12345 # See if we are running on zsh, and set the options which allow our commands through
12346 # without removal of \ escapes.
12347 if test -n "${ZSH_VERSION+set}" ; then
12348 setopt NO_GLOB_SUBST
12350 # Now quote all the things that may contain metacharacters while being
12351 # careful not to overquote the AC_SUBSTed values. We take copies of the
12352 # variables and quote the copies for generation of the libtool script.
12353 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12355 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12356 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12357 deplibs_check_method reload_flag reload_cmds need_locks \
12358 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12359 lt_cv_sys_global_symbol_to_c_name_address \
12360 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12361 old_postinstall_cmds old_postuninstall_cmds \
12365 lt_prog_compiler_wl_CXX \
12366 lt_prog_compiler_pic_CXX \
12367 lt_prog_compiler_static_CXX \
12368 lt_prog_compiler_no_builtin_flag_CXX \
12369 export_dynamic_flag_spec_CXX \
12370 thread_safe_flag_spec_CXX \
12371 whole_archive_flag_spec_CXX \
12372 enable_shared_with_static_runtimes_CXX \
12373 old_archive_cmds_CXX \
12374 old_archive_from_new_cmds_CXX \
12375 predep_objects_CXX \
12376 postdep_objects_CXX \
12379 compiler_lib_search_path_CXX \
12381 archive_expsym_cmds_CXX \
12382 postinstall_cmds_CXX \
12383 postuninstall_cmds_CXX \
12384 old_archive_from_expsyms_cmds_CXX \
12385 allow_undefined_flag_CXX \
12386 no_undefined_flag_CXX \
12387 export_symbols_cmds_CXX \
12388 hardcode_libdir_flag_spec_CXX \
12389 hardcode_libdir_flag_spec_ld_CXX \
12390 hardcode_libdir_separator_CXX \
12391 hardcode_automatic_CXX \
12393 module_expsym_cmds_CXX \
12394 lt_cv_prog_compiler_c_o_CXX \
12395 exclude_expsyms_CXX \
12396 include_expsyms_CXX; do
12399 old_archive_cmds_CXX | \
12400 old_archive_from_new_cmds_CXX | \
12401 archive_cmds_CXX | \
12402 archive_expsym_cmds_CXX | \
12403 module_cmds_CXX | \
12404 module_expsym_cmds_CXX | \
12405 old_archive_from_expsyms_cmds_CXX | \
12406 export_symbols_cmds_CXX | \
12407 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12408 postinstall_cmds | postuninstall_cmds | \
12409 old_postinstall_cmds | old_postuninstall_cmds | \
12410 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12411 # Double-quote double-evaled strings.
12412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12421 *'\$0 --fallback-echo"')
12422 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12428 cat <<__EOF__ >> "$cfgfile"
12429 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12433 # Shell to use when invoking shell scripts.
12436 # Whether or not to build shared libraries.
12437 build_libtool_libs=$enable_shared
12439 # Whether or not to build static libraries.
12440 build_old_libs=$enable_static
12442 # Whether or not to add -lc for building shared libraries.
12443 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12445 # Whether or not to disallow shared libs when runtime libs are static
12446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12448 # Whether or not to optimize for fast installation.
12449 fast_install=$enable_fast_install
12452 host_alias=$host_alias
12456 # The build system.
12457 build_alias=$build_alias
12461 # An echo program that does not interpret backslashes.
12466 AR_FLAGS=$lt_AR_FLAGS
12471 # LTCC compiler flags.
12472 LTCFLAGS=$lt_LTCFLAGS
12474 # A language-specific compiler.
12475 CC=$lt_compiler_CXX
12477 # Is the compiler the GNU C compiler?
12483 # The linker used to build libraries.
12486 # Whether we need hard or soft links.
12489 # A BSD-compatible nm program.
12492 # A symbol stripping program
12495 # Used to examine libraries when file_magic_cmd begins "file"
12496 MAGIC_CMD=$MAGIC_CMD
12498 # Used on cygwin: DLL creation program.
12501 # Used on cygwin: object dumper.
12504 # Used on cygwin: assembler.
12507 # The name of the directory that contains temporary libtool files.
12510 # How to create reloadable object files.
12511 reload_flag=$lt_reload_flag
12512 reload_cmds=$lt_reload_cmds
12514 # How to pass a linker flag through the compiler.
12515 wl=$lt_lt_prog_compiler_wl_CXX
12517 # Object file suffix (normally "o").
12518 objext="$ac_objext"
12520 # Old archive suffix (normally "a").
12523 # Shared library suffix (normally ".so").
12524 shrext_cmds='$shrext_cmds'
12526 # Executable file suffix (normally "").
12529 # Additional compiler flags for building library objects.
12530 pic_flag=$lt_lt_prog_compiler_pic_CXX
12533 # What is the maximum length of a command?
12534 max_cmd_len=$lt_cv_sys_max_cmd_len
12536 # Does compiler simultaneously support -c and -o options?
12537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12539 # Must we lock files when doing compilation?
12540 need_locks=$lt_need_locks
12542 # Do we need the lib prefix for modules?
12543 need_lib_prefix=$need_lib_prefix
12545 # Do we need a version for libraries?
12546 need_version=$need_version
12548 # Whether dlopen is supported.
12549 dlopen_support=$enable_dlopen
12551 # Whether dlopen of programs is supported.
12552 dlopen_self=$enable_dlopen_self
12554 # Whether dlopen of statically linked programs is supported.
12555 dlopen_self_static=$enable_dlopen_self_static
12557 # Compiler flag to prevent dynamic linking.
12558 link_static_flag=$lt_lt_prog_compiler_static_CXX
12560 # Compiler flag to turn off builtin functions.
12561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12563 # Compiler flag to allow reflexive dlopens.
12564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12566 # Compiler flag to generate shared objects directly from archives.
12567 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12569 # Compiler flag to generate thread-safe objects.
12570 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12572 # Library versioning type.
12573 version_type=$version_type
12575 # Format of library name prefix.
12576 libname_spec=$lt_libname_spec
12578 # List of archive names. First name is the real one, the rest are links.
12579 # The last name is the one that the linker finds with -lNAME.
12580 library_names_spec=$lt_library_names_spec
12582 # The coded name of the library, if different from the real name.
12583 soname_spec=$lt_soname_spec
12585 # Commands used to build and install an old-style archive.
12587 old_archive_cmds=$lt_old_archive_cmds_CXX
12588 old_postinstall_cmds=$lt_old_postinstall_cmds
12589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12591 # Create an old-style archive from a shared archive.
12592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12594 # Create a temporary old-style archive to link instead of a shared archive.
12595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12597 # Commands used to build and install a shared archive.
12598 archive_cmds=$lt_archive_cmds_CXX
12599 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12600 postinstall_cmds=$lt_postinstall_cmds
12601 postuninstall_cmds=$lt_postuninstall_cmds
12603 # Commands used to build a loadable module (assumed same as above if empty)
12604 module_cmds=$lt_module_cmds_CXX
12605 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12607 # Commands to strip libraries.
12608 old_striplib=$lt_old_striplib
12609 striplib=$lt_striplib
12611 # Dependencies to place before the objects being linked to create a
12613 predep_objects=$lt_predep_objects_CXX
12615 # Dependencies to place after the objects being linked to create a
12617 postdep_objects=$lt_postdep_objects_CXX
12619 # Dependencies to place before the objects being linked to create a
12621 predeps=$lt_predeps_CXX
12623 # Dependencies to place after the objects being linked to create a
12625 postdeps=$lt_postdeps_CXX
12627 # The library search path used internally by the compiler when linking
12628 # a shared library.
12629 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12631 # Method to check whether dependent libraries are shared objects.
12632 deplibs_check_method=$lt_deplibs_check_method
12634 # Command to use when deplibs_check_method == file_magic.
12635 file_magic_cmd=$lt_file_magic_cmd
12637 # Flag that allows shared libraries with undefined symbols to be built.
12638 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12640 # Flag that forces no undefined symbols.
12641 no_undefined_flag=$lt_no_undefined_flag_CXX
12643 # Commands used to finish a libtool library installation in a directory.
12644 finish_cmds=$lt_finish_cmds
12646 # Same as above, but a single script fragment to be evaled but not shown.
12647 finish_eval=$lt_finish_eval
12649 # Take the output of nm and produce a listing of raw symbols and C names.
12650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12652 # Transform the output of nm in a proper C declaration
12653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12655 # Transform the output of nm in a C name address pair
12656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12658 # This is the shared library runtime path variable.
12659 runpath_var=$runpath_var
12661 # This is the shared library path variable.
12662 shlibpath_var=$shlibpath_var
12664 # Is shlibpath searched before the hard-coded library search path?
12665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12667 # How to hardcode a shared library path into an executable.
12668 hardcode_action=$hardcode_action_CXX
12670 # Whether we should hardcode library paths into libraries.
12671 hardcode_into_libs=$hardcode_into_libs
12673 # Flag to hardcode \$libdir into a binary during linking.
12674 # This must work even if \$libdir does not exist.
12675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12677 # If ld is used when linking, flag to hardcode \$libdir into
12678 # a binary during linking. This must work even if \$libdir does
12680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12682 # Whether we need a single -rpath flag with a separated argument.
12683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12686 # resulting binary.
12687 hardcode_direct=$hardcode_direct_CXX
12689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12690 # resulting binary.
12691 hardcode_minus_L=$hardcode_minus_L_CXX
12693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12694 # the resulting binary.
12695 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12697 # Set to yes if building a shared library automatically hardcodes DIR into the library
12698 # and all subsequent libraries and executables linked against it.
12699 hardcode_automatic=$hardcode_automatic_CXX
12701 # Variables whose values should be saved in libtool wrapper scripts and
12702 # restored at relink time.
12703 variables_saved_for_relink="$variables_saved_for_relink"
12705 # Whether libtool must link a program against all its dependency libraries.
12706 link_all_deplibs=$link_all_deplibs_CXX
12708 # Compile-time system search path for libraries
12709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12711 # Run-time system search path for libraries
12712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12714 # Fix the shell variable \$srcfile for the compiler.
12715 fix_srcfile_path="$fix_srcfile_path_CXX"
12717 # Set to yes if exported symbols are required.
12718 always_export_symbols=$always_export_symbols_CXX
12720 # The commands to list exported symbols.
12721 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12723 # The commands to extract the exported symbol list from a shared archive.
12724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12726 # Symbols that should not be listed in the preloaded symbols.
12727 exclude_expsyms=$lt_exclude_expsyms_CXX
12729 # Symbols that must always be exported.
12730 include_expsyms=$lt_include_expsyms_CXX
12732 # ### END LIBTOOL TAG CONFIG: $tagname
12738 # If there is no Makefile yet, we rely on a make rule to execute
12739 # `config.status --recheck' to rerun these tests and create the
12740 # libtool script then.
12741 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12742 if test -f "$ltmain_in"; then
12743 test -f Makefile && make "$ltmain"
12749 ac_cpp='$CPP $CPPFLAGS'
12750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12758 with_gnu_ldcxx=$with_gnu_ld
12759 with_gnu_ld=$lt_save_with_gnu_ld
12760 lt_cv_path_LDCXX=$lt_cv_path_LD
12761 lt_cv_path_LD=$lt_save_path_LD
12762 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12763 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12771 if test -n "$F77" && test "X$F77" != "Xno"; then
12774 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12775 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12776 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12779 archive_cmds_need_lc_F77=no
12780 allow_undefined_flag_F77=
12781 always_export_symbols_F77=no
12782 archive_expsym_cmds_F77=
12783 export_dynamic_flag_spec_F77=
12784 hardcode_direct_F77=no
12785 hardcode_libdir_flag_spec_F77=
12786 hardcode_libdir_flag_spec_ld_F77=
12787 hardcode_libdir_separator_F77=
12788 hardcode_minus_L_F77=no
12789 hardcode_automatic_F77=no
12791 module_expsym_cmds_F77=
12792 link_all_deplibs_F77=unknown
12793 old_archive_cmds_F77=$old_archive_cmds
12794 no_undefined_flag_F77=
12795 whole_archive_flag_spec_F77=
12796 enable_shared_with_static_runtimes_F77=no
12798 # Source file extension for f77 test sources.
12801 # Object file extension for compiled f77 test sources.
12805 # Code to be used in simple compile tests
12806 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12808 # Code to be used in simple link tests
12809 lt_simple_link_test_code=" program t\n end\n"
12811 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12813 # If no C compiler was specified, use CC.
12816 # If no C compiler flags were specified, use CFLAGS.
12817 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12819 # Allow CC to be a program name with arguments.
12823 # save warnings/boilerplate of simple test code
12824 ac_outfile=conftest.$ac_objext
12825 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12826 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12827 _lt_compiler_boilerplate=`cat conftest.err`
12830 ac_outfile=conftest.$ac_objext
12831 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12832 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12833 _lt_linker_boilerplate=`cat conftest.err`
12837 # Allow CC to be a program name with arguments.
12842 for cc_temp in $compiler""; do
12844 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12845 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12850 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12853 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12854 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12855 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12856 echo "${ECHO_T}$can_build_shared" >&6
12858 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12859 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12860 test "$can_build_shared" = "no" && enable_shared=no
12862 # On AIX, shared libraries and static libraries use the same namespace, and
12863 # are all built from PIC.
12866 test "$enable_shared" = yes && enable_static=no
12867 if test -n "$RANLIB"; then
12868 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12869 postinstall_cmds='$RANLIB $lib'
12873 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12874 test "$enable_shared" = yes && enable_static=no
12878 echo "$as_me:$LINENO: result: $enable_shared" >&5
12879 echo "${ECHO_T}$enable_shared" >&6
12881 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12882 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12883 # Make sure either enable_shared or enable_static is yes.
12884 test "$enable_shared" = yes || enable_static=yes
12885 echo "$as_me:$LINENO: result: $enable_static" >&5
12886 echo "${ECHO_T}$enable_static" >&6
12891 lt_prog_compiler_wl_F77=
12892 lt_prog_compiler_pic_F77=
12893 lt_prog_compiler_static_F77=
12895 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12896 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12898 if test "$GCC" = yes; then
12899 lt_prog_compiler_wl_F77='-Wl,'
12900 lt_prog_compiler_static_F77='-static'
12904 # All AIX code is PIC.
12905 if test "$host_cpu" = ia64; then
12906 # AIX 5 now supports IA64 processor
12907 lt_prog_compiler_static_F77='-Bstatic'
12912 # FIXME: we need at least 68020 code to build shared libraries, but
12913 # adding the `-m68020' flag to GCC prevents building anything better,
12915 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12918 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12919 # PIC is the default for these OSes.
12922 mingw* | pw32* | os2*)
12923 # This hack is so that the source file can tell whether it is being
12924 # built for inclusion in a dll (and should export symbols for example).
12925 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12928 darwin* | rhapsody*)
12929 # PIC is the default on this platform
12930 # Common symbols not allowed in MH_DYLIB files
12931 lt_prog_compiler_pic_F77='-fno-common'
12935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12936 # Instead, we relocate shared libraries at runtime.
12940 # Just because we use GCC doesn't mean we suddenly get shared libraries
12941 # on systems that don't support them.
12942 lt_prog_compiler_can_build_shared_F77=no
12947 if test -d /usr/nec; then
12948 lt_prog_compiler_pic_F77=-Kconform_pic
12953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12954 # not for PA HP-UX.
12960 lt_prog_compiler_pic_F77='-fPIC'
12966 lt_prog_compiler_pic_F77='-fPIC'
12970 # PORTME Check for flag to pass linker flags through the system compiler.
12973 lt_prog_compiler_wl_F77='-Wl,'
12974 if test "$host_cpu" = ia64; then
12975 # AIX 5 now supports IA64 processor
12976 lt_prog_compiler_static_F77='-Bstatic'
12978 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12982 # PIC is the default on this platform
12983 # Common symbols not allowed in MH_DYLIB files
12984 case $cc_basename in
12986 lt_prog_compiler_pic_F77='-qnocommon'
12987 lt_prog_compiler_wl_F77='-Wl,'
12992 mingw* | pw32* | os2*)
12993 # This hack is so that the source file can tell whether it is being
12994 # built for inclusion in a dll (and should export symbols for example).
12995 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12998 hpux9* | hpux10* | hpux11*)
12999 lt_prog_compiler_wl_F77='-Wl,'
13000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13001 # not for PA HP-UX.
13007 lt_prog_compiler_pic_F77='+Z'
13010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13011 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13014 irix5* | irix6* | nonstopux*)
13015 lt_prog_compiler_wl_F77='-Wl,'
13016 # PIC (with -KPIC) is the default.
13017 lt_prog_compiler_static_F77='-non_shared'
13021 lt_prog_compiler_pic_F77='-KPIC'
13022 lt_prog_compiler_static_F77='-Bstatic'
13026 case $cc_basename in
13028 lt_prog_compiler_wl_F77='-Wl,'
13029 lt_prog_compiler_pic_F77='-KPIC'
13030 lt_prog_compiler_static_F77='-static'
13032 pgcc* | pgf77* | pgf90* | pgf95*)
13033 # Portland Group compilers (*not* the Pentium gcc compiler,
13034 # which looks to be a dead project)
13035 lt_prog_compiler_wl_F77='-Wl,'
13036 lt_prog_compiler_pic_F77='-fpic'
13037 lt_prog_compiler_static_F77='-Bstatic'
13040 lt_prog_compiler_wl_F77='-Wl,'
13041 # All Alpha code is PIC.
13042 lt_prog_compiler_static_F77='-non_shared'
13047 osf3* | osf4* | osf5*)
13048 lt_prog_compiler_wl_F77='-Wl,'
13049 # All OSF/1 code is PIC.
13050 lt_prog_compiler_static_F77='-non_shared'
13054 lt_prog_compiler_pic_F77='-KPIC'
13055 lt_prog_compiler_static_F77='-Bstatic'
13056 case $cc_basename in
13057 f77* | f90* | f95*)
13058 lt_prog_compiler_wl_F77='-Qoption ld ';;
13060 lt_prog_compiler_wl_F77='-Wl,';;
13065 lt_prog_compiler_wl_F77='-Qoption ld '
13066 lt_prog_compiler_pic_F77='-PIC'
13067 lt_prog_compiler_static_F77='-Bstatic'
13070 sysv4 | sysv4.2uw2* | sysv4.3*)
13071 lt_prog_compiler_wl_F77='-Wl,'
13072 lt_prog_compiler_pic_F77='-KPIC'
13073 lt_prog_compiler_static_F77='-Bstatic'
13077 if test -d /usr/nec ;then
13078 lt_prog_compiler_pic_F77='-Kconform_pic'
13079 lt_prog_compiler_static_F77='-Bstatic'
13083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13084 lt_prog_compiler_wl_F77='-Wl,'
13085 lt_prog_compiler_pic_F77='-KPIC'
13086 lt_prog_compiler_static_F77='-Bstatic'
13090 lt_prog_compiler_wl_F77='-Wl,'
13091 lt_prog_compiler_can_build_shared_F77=no
13095 lt_prog_compiler_pic_F77='-pic'
13096 lt_prog_compiler_static_F77='-Bstatic'
13100 lt_prog_compiler_can_build_shared_F77=no
13105 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13106 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13109 # Check to make sure the PIC flag actually works.
13111 if test -n "$lt_prog_compiler_pic_F77"; then
13113 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13114 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13115 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 lt_prog_compiler_pic_works_F77=no
13119 ac_outfile=conftest.$ac_objext
13120 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13121 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13122 # Insert the option either (1) after the last *FLAGS variable, or
13123 # (2) before a word containing "conftest.", or (3) at the end.
13124 # Note that $ac_compile itself does not contain backslashes and begins
13125 # with a dollar sign (not a hyphen), so the echo should work correctly.
13126 # The option is referenced via a variable to avoid confusing sed.
13127 lt_compile=`echo "$ac_compile" | $SED \
13128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13130 -e 's:$: $lt_compiler_flag:'`
13131 (eval echo "\"\$as_me:13131: $lt_compile\"" >&5)
13132 (eval "$lt_compile" 2>conftest.err)
13134 cat conftest.err >&5
13135 echo "$as_me:13135: \$? = $ac_status" >&5
13136 if (exit $ac_status) && test -s "$ac_outfile"; then
13137 # The compiler can only warn and ignore the option if not recognized
13138 # So say no if there are warnings other than the usual output.
13139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13142 lt_prog_compiler_pic_works_F77=yes
13148 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13149 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13151 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13152 case $lt_prog_compiler_pic_F77 in
13154 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13157 lt_prog_compiler_pic_F77=
13158 lt_prog_compiler_can_build_shared_F77=no
13163 # For platforms which do not support PIC, -DPIC is meaningless:
13165 lt_prog_compiler_pic_F77=
13168 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13173 # Check to make sure the static flag actually works.
13175 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13176 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13177 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13178 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 lt_prog_compiler_static_works_F77=no
13182 save_LDFLAGS="$LDFLAGS"
13183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13184 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13186 # The linker can only warn and ignore the option if not recognized
13187 # So say no if there are warnings
13188 if test -s conftest.err; then
13189 # Append any errors to the config.log.
13190 cat conftest.err 1>&5
13191 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13193 if diff conftest.exp conftest.er2 >/dev/null; then
13194 lt_prog_compiler_static_works_F77=yes
13197 lt_prog_compiler_static_works_F77=yes
13201 LDFLAGS="$save_LDFLAGS"
13204 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13205 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13207 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13210 lt_prog_compiler_static_F77=
13214 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13216 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 lt_cv_prog_compiler_c_o_F77=no
13220 $rm -r conftest 2>/dev/null
13224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13226 lt_compiler_flag="-o out/conftest2.$ac_objext"
13227 # Insert the option either (1) after the last *FLAGS variable, or
13228 # (2) before a word containing "conftest.", or (3) at the end.
13229 # Note that $ac_compile itself does not contain backslashes and begins
13230 # with a dollar sign (not a hyphen), so the echo should work correctly.
13231 lt_compile=`echo "$ac_compile" | $SED \
13232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13234 -e 's:$: $lt_compiler_flag:'`
13235 (eval echo "\"\$as_me:13235: $lt_compile\"" >&5)
13236 (eval "$lt_compile" 2>out/conftest.err)
13238 cat out/conftest.err >&5
13239 echo "$as_me:13239: \$? = $ac_status" >&5
13240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13242 # The compiler can only warn and ignore the option if not recognized
13243 # So say no if there are warnings
13244 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13247 lt_cv_prog_compiler_c_o_F77=yes
13252 # SGI C++ compiler will create directory out/ii_files/ for
13253 # template instantiation
13254 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13255 $rm out/* && rmdir out
13261 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13262 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13265 hard_links="nottested"
13266 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13267 # do not overwrite the value of need_locks provided by the user
13268 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13269 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13274 ln conftest.a conftest.b 2>&5 || hard_links=no
13275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13276 echo "$as_me:$LINENO: result: $hard_links" >&5
13277 echo "${ECHO_T}$hard_links" >&6
13278 if test "$hard_links" = no; then
13279 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13280 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13287 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13288 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13291 allow_undefined_flag_F77=
13292 enable_shared_with_static_runtimes_F77=no
13294 archive_expsym_cmds_F77=
13295 old_archive_From_new_cmds_F77=
13296 old_archive_from_expsyms_cmds_F77=
13297 export_dynamic_flag_spec_F77=
13298 whole_archive_flag_spec_F77=
13299 thread_safe_flag_spec_F77=
13300 hardcode_libdir_flag_spec_F77=
13301 hardcode_libdir_flag_spec_ld_F77=
13302 hardcode_libdir_separator_F77=
13303 hardcode_direct_F77=no
13304 hardcode_minus_L_F77=no
13305 hardcode_shlibpath_var_F77=unsupported
13306 link_all_deplibs_F77=unknown
13307 hardcode_automatic_F77=no
13309 module_expsym_cmds_F77=
13310 always_export_symbols_F77=no
13311 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13312 # include_expsyms should be a list of space-separated symbols to be *always*
13313 # included in the symbol list
13314 include_expsyms_F77=
13315 # exclude_expsyms can be an extended regexp of symbols to exclude
13316 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13317 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13318 # as well as any symbol that contains `d'.
13319 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13321 # platforms (ab)use it in PIC code, but their linkers get confused if
13322 # the symbol is explicitly referenced. Since portable code cannot
13323 # rely on this symbol name, it's probably fine to never include it in
13324 # preloaded symbol tables.
13325 extract_expsyms_cmds=
13326 # Just being paranoid about ensuring that cc_basename is set.
13327 for cc_temp in $compiler""; do
13329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13338 cygwin* | mingw* | pw32*)
13339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13340 # When not using gcc, we currently assume that we are using
13341 # Microsoft Visual C++.
13342 if test "$GCC" != yes; then
13347 # we just hope/assume this is gcc and not c89 (= MSVC++)
13356 if test "$with_gnu_ld" = yes; then
13357 # If archive_cmds runs LD, not CC, wlarc should be empty
13360 # Set some defaults for GNU ld with shared library support. These
13361 # are reset later if shared libraries are not supported. Putting them
13362 # here allows them to be overridden if necessary.
13363 runpath_var=LD_RUN_PATH
13364 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13365 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13366 # ancient GNU ld didn't support --whole-archive et. al.
13367 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13368 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13370 whole_archive_flag_spec_F77=
13372 supports_anon_versioning=no
13373 case `$LD -v 2>/dev/null` in
13374 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13375 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13376 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13377 *\ 2.11.*) ;; # other 2.11 versions
13378 *) supports_anon_versioning=yes ;;
13381 # See if GNU ld supports shared libraries.
13383 aix3* | aix4* | aix5*)
13384 # On AIX/PPC, the GNU linker is very broken
13385 if test "$host_cpu" != ia64; then
13389 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13390 *** to be unable to reliably create shared libraries on AIX.
13391 *** Therefore, libtool is disabling shared libraries support. If you
13392 *** really care for shared libraries, you may want to modify your PATH
13393 *** so that a non-GNU linker is found, and then restart.
13400 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)'
13401 hardcode_libdir_flag_spec_F77='-L$libdir'
13402 hardcode_minus_L_F77=yes
13404 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13405 # that the semantics of dynamic libraries on AmigaOS, at least up
13406 # to version 4, is to share data among multiple programs linked
13407 # with the same dynamic library. Since this doesn't match the
13408 # behavior of shared libraries on other platforms, we can't use
13414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13415 allow_undefined_flag_F77=unsupported
13416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13417 # support --undefined. This deserves some investigation. FIXME
13418 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13424 cygwin* | mingw* | pw32*)
13425 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13426 # as there is no search path for DLLs.
13427 hardcode_libdir_flag_spec_F77='-L$libdir'
13428 allow_undefined_flag_F77=unsupported
13429 always_export_symbols_F77=no
13430 enable_shared_with_static_runtimes_F77=yes
13431 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13433 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13434 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13435 # If the export-symbols file already is a .def file (1st line
13436 # is EXPORTS), use it as is; otherwise, prepend...
13437 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13438 cp $export_symbols $output_objdir/$soname.def;
13440 echo EXPORTS > $output_objdir/$soname.def;
13441 cat $export_symbols >> $output_objdir/$soname.def;
13443 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13450 hardcode_direct_F77=no
13451 hardcode_shlibpath_var_F77=no
13452 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13453 export_dynamic_flag_spec_F77='${wl}-E'
13454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13455 # Instead, shared libraries are loaded at an image base (0x10000000 by
13456 # default) and relocated if they conflict, which is a slow very memory
13457 # consuming and fragmenting process. To avoid this, we pick a random,
13458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13459 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13460 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13461 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13467 case $cc_basename,$host_cpu in
13468 pgcc*) # Portland Group C compiler
13469 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13470 tmp_addflag=' $pic_flag'
13472 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13473 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13474 tmp_addflag=' $pic_flag -Mnomain' ;;
13475 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13476 tmp_addflag=' -i_dynamic' ;;
13477 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13478 tmp_addflag=' -i_dynamic -nofor_main' ;;
13479 ifc* | ifort*) # Intel Fortran compiler
13480 tmp_addflag=' -nofor_main' ;;
13482 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13484 if test $supports_anon_versioning = yes; then
13485 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13487 $echo "local: *; };" >> $output_objdir/$libname.ver~
13488 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13497 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13500 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13501 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13506 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13510 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13511 *** create shared libraries on Solaris systems. Therefore, libtool
13512 *** is disabling shared libraries support. We urge you to upgrade GNU
13513 *** binutils to release 2.9.1 or newer. Another option is to modify
13514 *** your PATH or compiler configuration so that the native linker is
13515 *** used, and then restart.
13518 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13519 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13527 case `$LD -v 2>&1` in
13528 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13532 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13533 *** reliably create shared libraries on SCO systems. Therefore, libtool
13534 *** is disabling shared libraries support. We urge you to upgrade GNU
13535 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13536 *** your PATH or compiler configuration so that the native linker is
13537 *** used, and then restart.
13542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13543 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13544 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13545 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13554 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13556 hardcode_direct_F77=yes
13557 hardcode_shlibpath_var_F77=no
13561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13562 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13563 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13570 if test "$ld_shlibs_F77" = no; then
13572 hardcode_libdir_flag_spec_F77=
13573 export_dynamic_flag_spec_F77=
13574 whole_archive_flag_spec_F77=
13577 # PORTME fill in a description of your system's linker (not GNU ld)
13580 allow_undefined_flag_F77=unsupported
13581 always_export_symbols_F77=yes
13582 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'
13583 # Note: this linker hardcodes the directories in LIBPATH if there
13584 # are no directories specified by -L.
13585 hardcode_minus_L_F77=yes
13586 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13587 # Neither direct hardcoding nor static linking is supported with a
13589 hardcode_direct_F77=unsupported
13594 if test "$host_cpu" = ia64; then
13595 # On IA64, the linker does run time linking by default, so we don't
13596 # have to do anything special.
13597 aix_use_runtimelinking=no
13598 exp_sym_flag='-Bexport'
13601 # If we're using GNU nm, then we don't want the "-C" option.
13602 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13603 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13604 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'
13606 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'
13608 aix_use_runtimelinking=no
13610 # Test if we are trying to use run time linking or normal
13611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13612 # need to do runtime linking.
13613 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13614 for ld_flag in $LDFLAGS; do
13615 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13616 aix_use_runtimelinking=yes
13623 exp_sym_flag='-bexport'
13624 no_entry_flag='-bnoentry'
13627 # When large executables or shared objects are built, AIX ld can
13628 # have problems creating the table of contents. If linking a library
13629 # or program results in "error TOC overflow" add -mminimal-toc to
13630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13633 archive_cmds_F77=''
13634 hardcode_direct_F77=yes
13635 hardcode_libdir_separator_F77=':'
13636 link_all_deplibs_F77=yes
13638 if test "$GCC" = yes; then
13639 case $host_os in aix4.[012]|aix4.[012].*)
13640 # We only want to do this on AIX 4.2 and lower, the check
13641 # below for broken collect2 doesn't work under 4.3+
13642 collect2name=`${CC} -print-prog-name=collect2`
13643 if test -f "$collect2name" && \
13644 strings "$collect2name" | grep resolve_lib_name >/dev/null
13646 # We have reworked collect2
13647 hardcode_direct_F77=yes
13649 # We have old collect2
13650 hardcode_direct_F77=unsupported
13651 # It fails to find uninstalled libraries when the uninstalled
13652 # path is not listed in the libpath. Setting hardcode_minus_L
13653 # to unsupported forces relinking
13654 hardcode_minus_L_F77=yes
13655 hardcode_libdir_flag_spec_F77='-L$libdir'
13656 hardcode_libdir_separator_F77=
13660 shared_flag='-shared'
13661 if test "$aix_use_runtimelinking" = yes; then
13662 shared_flag="$shared_flag "'${wl}-G'
13666 if test "$host_cpu" = ia64; then
13667 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13668 # chokes on -Wl,-G. The following line is correct:
13671 if test "$aix_use_runtimelinking" = yes; then
13672 shared_flag='${wl}-G'
13674 shared_flag='${wl}-bM:SRE'
13679 # It seems that -bexpall does not export symbols beginning with
13680 # underscore (_), so it is better to generate a list of symbols to export.
13681 always_export_symbols_F77=yes
13682 if test "$aix_use_runtimelinking" = yes; then
13683 # Warning - without using the other runtime loading flags (-brtl),
13684 # -berok will link without error, but may produce a broken library.
13685 allow_undefined_flag_F77='-berok'
13686 # Determine the default libpath from the value encoded in an empty executable.
13687 cat >conftest.$ac_ext <<_ACEOF
13692 rm -f conftest.$ac_objext conftest$ac_exeext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694 (eval $ac_link) 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_f77_werror_flag"
13702 || test ! -s conftest.err'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13717 # Check for a 64-bit object if we didn't find anything.
13718 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; }
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13725 rm -f conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13729 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13730 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13732 if test "$host_cpu" = ia64; then
13733 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13734 allow_undefined_flag_F77="-z nodefs"
13735 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13737 # Determine the default libpath from the value encoded in an empty executable.
13738 cat >conftest.$ac_ext <<_ACEOF
13743 rm -f conftest.$ac_objext conftest$ac_exeext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745 (eval $ac_link) 2>conftest.er1
13747 grep -v '^ *+' conftest.er1 >conftest.err
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -z "$ac_f77_werror_flag"
13753 || test ! -s conftest.err'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest$ac_exeext'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13766 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13768 # Check for a 64-bit object if we didn't find anything.
13769 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; }
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13776 rm -f conftest.err conftest.$ac_objext \
13777 conftest$ac_exeext conftest.$ac_ext
13778 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13780 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13781 # Warning - without using the other run time loading flags,
13782 # -berok will link without error, but may produce a broken library.
13783 no_undefined_flag_F77=' ${wl}-bernotok'
13784 allow_undefined_flag_F77=' ${wl}-berok'
13785 # Exported symbols can be pulled into shared objects from archives
13786 whole_archive_flag_spec_F77='$convenience'
13787 archive_cmds_need_lc_F77=yes
13788 # This is similar to how AIX traditionally builds its shared libraries.
13789 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13795 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)'
13796 hardcode_libdir_flag_spec_F77='-L$libdir'
13797 hardcode_minus_L_F77=yes
13798 # see comment about different semantics on the GNU ld section
13803 export_dynamic_flag_spec_F77=-rdynamic
13806 cygwin* | mingw* | pw32*)
13807 # When not using gcc, we currently assume that we are using
13808 # Microsoft Visual C++.
13809 # hardcode_libdir_flag_spec is actually meaningless, as there is
13810 # no search path for DLLs.
13811 hardcode_libdir_flag_spec_F77=' '
13812 allow_undefined_flag_F77=unsupported
13813 # Tell ltmain to make .lib files, not .a files.
13815 # Tell ltmain to make .dll files, not .so files.
13817 # FIXME: Setting linknames here is a bad hack.
13818 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13819 # The linker will automatically build a .lib file if we build a DLL.
13820 old_archive_From_new_cmds_F77='true'
13821 # FIXME: Should let the user specify the lib program.
13822 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13823 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13824 enable_shared_with_static_runtimes_F77=yes
13827 darwin* | rhapsody*)
13829 rhapsody* | darwin1.[012])
13830 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13833 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13834 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13836 case ${MACOSX_DEPLOYMENT_TARGET} in
13838 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13841 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13847 archive_cmds_need_lc_F77=no
13848 hardcode_direct_F77=no
13849 hardcode_automatic_F77=yes
13850 hardcode_shlibpath_var_F77=unsupported
13851 whole_archive_flag_spec_F77=''
13852 link_all_deplibs_F77=yes
13853 if test "$GCC" = yes ; then
13854 output_verbose_link_cmd='echo'
13855 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13856 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13857 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13858 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13859 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}'
13861 case $cc_basename in
13863 output_verbose_link_cmd='echo'
13864 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13865 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13866 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13867 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13868 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}'
13878 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13879 hardcode_libdir_flag_spec_F77='-L$libdir'
13880 hardcode_shlibpath_var_F77=no
13887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13888 # support. Future versions do this automatically, but an explicit c++rt0.o
13889 # does not break anything, and helps significantly (at the cost of a little
13892 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13893 hardcode_libdir_flag_spec_F77='-R$libdir'
13894 hardcode_direct_F77=yes
13895 hardcode_shlibpath_var_F77=no
13898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13900 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13901 hardcode_direct_F77=yes
13902 hardcode_minus_L_F77=yes
13903 hardcode_shlibpath_var_F77=no
13906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13907 freebsd* | kfreebsd*-gnu | dragonfly*)
13908 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13909 hardcode_libdir_flag_spec_F77='-R$libdir'
13910 hardcode_direct_F77=yes
13911 hardcode_shlibpath_var_F77=no
13915 if test "$GCC" = yes; then
13916 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'
13918 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'
13920 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13921 hardcode_libdir_separator_F77=:
13922 hardcode_direct_F77=yes
13924 # hardcode_minus_L: Not really in the search PATH,
13925 # but as the default location of the library.
13926 hardcode_minus_L_F77=yes
13927 export_dynamic_flag_spec_F77='${wl}-E'
13931 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13932 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13934 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13936 if test "$with_gnu_ld" = no; then
13937 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13938 hardcode_libdir_separator_F77=:
13940 hardcode_direct_F77=yes
13941 export_dynamic_flag_spec_F77='${wl}-E'
13943 # hardcode_minus_L: Not really in the search PATH,
13944 # but as the default location of the library.
13945 hardcode_minus_L_F77=yes
13950 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13953 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13959 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13965 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13968 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13971 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13975 if test "$with_gnu_ld" = no; then
13976 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13977 hardcode_libdir_separator_F77=:
13981 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13982 hardcode_direct_F77=no
13983 hardcode_shlibpath_var_F77=no
13986 hardcode_direct_F77=yes
13987 export_dynamic_flag_spec_F77='${wl}-E'
13989 # hardcode_minus_L: Not really in the search PATH,
13990 # but as the default location of the library.
13991 hardcode_minus_L_F77=yes
13997 irix5* | irix6* | nonstopux*)
13998 if test "$GCC" = yes; then
13999 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'
14001 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'
14002 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14004 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14005 hardcode_libdir_separator_F77=:
14006 link_all_deplibs_F77=yes
14010 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14011 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14013 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14015 hardcode_libdir_flag_spec_F77='-R$libdir'
14016 hardcode_direct_F77=yes
14017 hardcode_shlibpath_var_F77=no
14021 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14022 hardcode_direct_F77=yes
14023 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14024 hardcode_libdir_separator_F77=:
14025 hardcode_shlibpath_var_F77=no
14029 hardcode_direct_F77=yes
14030 hardcode_shlibpath_var_F77=no
14031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14032 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14033 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14034 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14035 export_dynamic_flag_spec_F77='${wl}-E'
14038 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14039 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14040 hardcode_libdir_flag_spec_F77='-R$libdir'
14043 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14044 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14051 hardcode_libdir_flag_spec_F77='-L$libdir'
14052 hardcode_minus_L_F77=yes
14053 allow_undefined_flag_F77=unsupported
14054 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'
14055 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14059 if test "$GCC" = yes; then
14060 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14061 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'
14063 allow_undefined_flag_F77=' -expect_unresolved \*'
14064 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'
14066 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14067 hardcode_libdir_separator_F77=:
14070 osf4* | osf5*) # as osf3* with the addition of -msym flag
14071 if test "$GCC" = yes; then
14072 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14073 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'
14074 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14076 allow_undefined_flag_F77=' -expect_unresolved \*'
14077 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'
14078 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~
14079 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14081 # Both c and cxx compiler support -rpath directly
14082 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14084 hardcode_libdir_separator_F77=:
14088 no_undefined_flag_F77=' -z text'
14089 if test "$GCC" = yes; then
14091 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14092 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14093 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14096 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14097 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14098 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14100 hardcode_libdir_flag_spec_F77='-R$libdir'
14101 hardcode_shlibpath_var_F77=no
14103 solaris2.[0-5] | solaris2.[0-5].*) ;;
14105 # The compiler driver will combine linker options so we
14106 # cannot just pass the convience library names through
14107 # without $wl, iff we do not link with $LD.
14108 # Luckily, gcc supports the same syntax we need for Sun Studio.
14109 # Supported since Solaris 2.6 (maybe 2.5.1?)
14112 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14114 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14117 link_all_deplibs_F77=yes
14121 if test "x$host_vendor" = xsequent; then
14122 # Use $CC to link under sequent, because it throws in some extra .o
14123 # files that make .init and .fini sections work.
14124 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14126 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14128 hardcode_libdir_flag_spec_F77='-L$libdir'
14129 hardcode_direct_F77=yes
14130 hardcode_minus_L_F77=yes
14131 hardcode_shlibpath_var_F77=no
14135 case $host_vendor in
14137 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14138 hardcode_direct_F77=yes # is this really true???
14141 ## LD is ld it makes a PLAMLIB
14142 ## CC just makes a GrossModule.
14143 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14144 reload_cmds_F77='$CC -r -o $output$reload_objs'
14145 hardcode_direct_F77=no
14148 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14149 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14152 runpath_var='LD_RUN_PATH'
14153 hardcode_shlibpath_var_F77=no
14157 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14158 hardcode_shlibpath_var_F77=no
14159 export_dynamic_flag_spec_F77='-Bexport'
14163 if test -d /usr/nec; then
14164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14165 hardcode_shlibpath_var_F77=no
14166 runpath_var=LD_RUN_PATH
14167 hardcode_runpath_var=yes
14172 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14173 no_undefined_flag_F77='${wl}-z,text'
14174 archive_cmds_need_lc_F77=no
14175 hardcode_shlibpath_var_F77=no
14176 runpath_var='LD_RUN_PATH'
14178 if test "$GCC" = yes; then
14179 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14182 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14187 sysv5* | sco3.2v5* | sco5v6*)
14188 # Note: We can NOT use -z defs as we might desire, because we do not
14189 # link with -lc, and that would cause any symbols used from libc to
14190 # always be unresolved, which means just about no library would
14191 # ever link correctly. If we're not using GNU ld we use -z text
14192 # though, which does catch some bad symbols but isn't as heavy-handed
14194 no_undefined_flag_F77='${wl}-z,text'
14195 allow_undefined_flag_F77='${wl}-z,nodefs'
14196 archive_cmds_need_lc_F77=no
14197 hardcode_shlibpath_var_F77=no
14198 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14199 hardcode_libdir_separator_F77=':'
14200 link_all_deplibs_F77=yes
14201 export_dynamic_flag_spec_F77='${wl}-Bexport'
14202 runpath_var='LD_RUN_PATH'
14204 if test "$GCC" = yes; then
14205 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14206 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14208 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14209 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14214 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14215 hardcode_libdir_flag_spec_F77='-L$libdir'
14216 hardcode_shlibpath_var_F77=no
14225 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14226 echo "${ECHO_T}$ld_shlibs_F77" >&6
14227 test "$ld_shlibs_F77" = no && can_build_shared=no
14230 # Do we need to explicitly link libc?
14232 case "x$archive_cmds_need_lc_F77" in
14234 # Assume -lc should be added
14235 archive_cmds_need_lc_F77=yes
14237 if test "$enable_shared" = yes && test "$GCC" = yes; then
14238 case $archive_cmds_F77 in
14240 # FIXME: we may have to deal with multi-command sequences.
14243 # Test whether the compiler implicitly links with -lc since on some
14244 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14245 # to ld, don't add -lc before -lgcc.
14246 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14247 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14249 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } 2>conftest.err; then
14258 libobjs=conftest.$ac_objext
14260 wl=$lt_prog_compiler_wl_F77
14261 pic_flag=$lt_prog_compiler_pic_F77
14267 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14268 allow_undefined_flag_F77=
14269 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14270 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }
14275 archive_cmds_need_lc_F77=no
14277 archive_cmds_need_lc_F77=yes
14279 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14281 cat conftest.err 1>&5
14284 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14285 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14292 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14293 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14294 library_names_spec=
14295 libname_spec='lib$name'
14299 postuninstall_cmds=
14303 shlibpath_overrides_runpath=unknown
14305 dynamic_linker="$host_os ld.so"
14306 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14307 if test "$GCC" = yes; then
14308 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14309 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14310 # if the path contains ";" then we assume it to be the separator
14311 # otherwise default to the standard path separator (i.e. ":") - it is
14312 # assumed that no part of a normal pathname contains ";" but that should
14313 # okay in the real world where ";" in dirpaths is itself problematic.
14314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14316 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14319 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14321 need_lib_prefix=unknown
14322 hardcode_into_libs=no
14324 # when you set need_version to no, make sure it does not cause -set_version
14325 # flags to be left without arguments
14326 need_version=unknown
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14332 shlibpath_var=LIBPATH
14334 # AIX 3 has no versioning support, so we append a major version to the name.
14335 soname_spec='${libname}${release}${shared_ext}$major'
14342 hardcode_into_libs=yes
14343 if test "$host_cpu" = ia64; then
14344 # AIX 5 supports IA64
14345 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14346 shlibpath_var=LD_LIBRARY_PATH
14348 # With GCC up to 2.95.x, collect2 would create an import file
14349 # for dependence libraries. The import file would start with
14350 # the line `#! .'. This would cause the generated library to
14351 # depend on `.', always an invalid library. This was fixed in
14352 # development snapshots of GCC prior to 3.0.
14354 aix4 | aix4.[01] | aix4.[01].*)
14355 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14357 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14360 can_build_shared=no
14364 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14365 # soname into executable. Probably we can add versioning support to
14366 # collect2, so additional links can be useful in future.
14367 if test "$aix_use_runtimelinking" = yes; then
14368 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14369 # instead of lib<name>.a to let people know that these are not
14370 # typical AIX shared libraries.
14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373 # We preserve .a as extension for shared libraries through AIX4.2
14374 # and later when we are not doing run time linking.
14375 library_names_spec='${libname}${release}.a $libname.a'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14378 shlibpath_var=LIBPATH
14383 library_names_spec='$libname.ixlibrary $libname.a'
14384 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14385 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'
14389 library_names_spec='${libname}${shared_ext}'
14390 dynamic_linker="$host_os ld.so"
14391 shlibpath_var=LIBRARY_PATH
14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398 soname_spec='${libname}${release}${shared_ext}$major'
14399 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14400 shlibpath_var=LD_LIBRARY_PATH
14401 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14402 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14403 # the default ld.so.conf also contains /usr/contrib/lib and
14404 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14405 # libtool to hard-code these into programs
14408 cygwin* | mingw* | pw32*)
14409 version_type=windows
14414 case $GCC,$host_os in
14415 yes,cygwin* | yes,mingw* | yes,pw32*)
14416 library_names_spec='$libname.dll.a'
14417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14418 postinstall_cmds='base_file=`basename \${file}`~
14419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14420 dldir=$destdir/`dirname \$dlpath`~
14421 test -d \$dldir || mkdir -p \$dldir~
14422 $install_prog $dir/$dlname \$dldir/$dlname~
14423 chmod a+x \$dldir/$dlname'
14424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14425 dlpath=$dir/\$dldll~
14427 shlibpath_overrides_runpath=yes
14431 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14432 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14433 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14436 # MinGW DLLs use traditional 'lib' prefix
14437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14438 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14439 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14440 # It is most probably a Windows format PATH printed by
14441 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14442 # path with ; separators, and with drive letters. We can handle the
14443 # drive letters (cygwin fileutils understands them), so leave them,
14444 # especially as we might pass files found there to a mingw objdump,
14445 # which wouldn't understand a cygwinified path. Ahh.
14446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14452 # pw32 DLLs use 'pw' prefix rather than 'lib'
14453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14459 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14462 dynamic_linker='Win32 ld.exe'
14463 # FIXME: first we should search . and the directory the executable is in
14467 darwin* | rhapsody*)
14468 dynamic_linker="$host_os dyld"
14469 version_type=darwin
14472 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14473 soname_spec='${libname}${release}${major}$shared_ext'
14474 shlibpath_overrides_runpath=yes
14475 shlibpath_var=DYLD_LIBRARY_PATH
14476 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14477 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14478 if test "$GCC" = yes; then
14479 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"`
14481 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14483 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 shlibpath_var=LD_LIBRARY_PATH
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 shlibpath_overrides_runpath=no
14507 hardcode_into_libs=yes
14508 dynamic_linker='GNU ld.so'
14511 freebsd* | dragonfly*)
14512 # DragonFly does not have aout. When/if they implement a new
14513 # versioning mechanism, adjust this.
14514 if test -x /usr/bin/objformat; then
14515 objformat=`/usr/bin/objformat`
14518 freebsd[123]*) objformat=aout ;;
14519 *) objformat=elf ;;
14522 version_type=freebsd-$objformat
14523 case $version_type in
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14534 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=yes
14539 freebsd3.[01]* | freebsdelf3.[01]*)
14540 shlibpath_overrides_runpath=yes
14541 hardcode_into_libs=yes
14543 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14544 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14545 shlibpath_overrides_runpath=no
14546 hardcode_into_libs=yes
14548 freebsd*) # from 4.6 on
14549 shlibpath_overrides_runpath=yes
14550 hardcode_into_libs=yes
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14560 soname_spec='${libname}${release}${shared_ext}$major'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 hardcode_into_libs=yes
14565 hpux9* | hpux10* | hpux11*)
14566 # Give a soname corresponding to the major version so that dld.sl refuses to
14567 # link against other versions.
14574 hardcode_into_libs=yes
14575 dynamic_linker="$host_os dld.so"
14576 shlibpath_var=LD_LIBRARY_PATH
14577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 if test "X$HPUX_IA64_MODE" = X32; then
14581 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14583 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14589 hardcode_into_libs=yes
14590 dynamic_linker="$host_os dld.sl"
14591 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14600 dynamic_linker="$host_os dld.sl"
14601 shlibpath_var=SHLIB_PATH
14602 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14604 soname_spec='${libname}${release}${shared_ext}$major'
14607 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14608 postinstall_cmds='chmod 555 $lib'
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 shlibpath_overrides_runpath=no
14620 hardcode_into_libs=yes
14623 irix5* | irix6* | nonstopux*)
14625 nonstopux*) version_type=nonstopux ;;
14627 if test "$lt_cv_prog_gnu_ld" = yes; then
14635 soname_spec='${libname}${release}${shared_ext}$major'
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14638 irix5* | nonstopux*)
14639 libsuff= shlibsuff=
14642 case $LD in # libtool.m4 will add one of these switches to LD
14643 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14644 libsuff= shlibsuff= libmagic=32-bit;;
14645 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14646 libsuff=32 shlibsuff=N32 libmagic=N32;;
14647 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14648 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14649 *) libsuff= shlibsuff= libmagic=never-match;;
14653 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14654 shlibpath_overrides_runpath=no
14655 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14656 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14657 hardcode_into_libs=yes
14660 # No shared lib support for Linux oldld, aout, or coff.
14661 linux*oldld* | linux*aout* | linux*coff*)
14665 # This must be Linux ELF.
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14673 shlibpath_var=LD_LIBRARY_PATH
14674 shlibpath_overrides_runpath=no
14675 # This implies no fast_install, which is unacceptable.
14676 # Some rework will be needed to allow for fast_install
14677 # before this can be enabled.
14678 hardcode_into_libs=yes
14680 # Append ld.so.conf contents to the search path
14681 if test -f /etc/ld.so.conf; then
14682 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14683 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14686 # We used to test for /lib/ld.so.1 and disable shared libraries on
14687 # powerpc, because MkLinux only supported shared libraries with the
14688 # GNU dynamic linker. Since this was broken with cross compilers,
14689 # most powerpc-linux boxes support dynamic linking these days and
14690 # people can always --disable-shared, the test was removed, and we
14691 # assume the GNU/Linux dynamic linker is in use.
14692 dynamic_linker='GNU/Linux ld.so'
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 shlibpath_overrides_runpath=no
14703 hardcode_into_libs=yes
14704 dynamic_linker='GNU ld.so'
14711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14714 dynamic_linker='NetBSD (a.out) ld.so'
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 dynamic_linker='NetBSD ld.elf_so'
14720 shlibpath_var=LD_LIBRARY_PATH
14721 shlibpath_overrides_runpath=yes
14722 hardcode_into_libs=yes
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 shlibpath_overrides_runpath=yes
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 shlibpath_overrides_runpath=yes
14744 sys_lib_dlsearch_path_spec="/usr/lib"
14746 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14748 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14749 *) need_version=no ;;
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14753 shlibpath_var=LD_LIBRARY_PATH
14754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14756 openbsd2.[89] | openbsd2.[89].*)
14757 shlibpath_overrides_runpath=no
14760 shlibpath_overrides_runpath=yes
14764 shlibpath_overrides_runpath=yes
14769 libname_spec='$name'
14772 library_names_spec='$libname${shared_ext} $libname.a'
14773 dynamic_linker='OS/2 ld.exe'
14774 shlibpath_var=LIBPATH
14777 osf3* | osf4* | osf5*)
14781 soname_spec='${libname}${release}${shared_ext}$major'
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14785 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793 soname_spec='${libname}${release}${shared_ext}$major'
14794 shlibpath_var=LD_LIBRARY_PATH
14795 shlibpath_overrides_runpath=yes
14796 hardcode_into_libs=yes
14797 # ldd complains unless libraries are executable
14798 postinstall_cmds='chmod +x $lib'
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14804 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14805 shlibpath_var=LD_LIBRARY_PATH
14806 shlibpath_overrides_runpath=yes
14807 if test "$with_gnu_ld" = yes; then
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816 soname_spec='${libname}${release}${shared_ext}$major'
14817 shlibpath_var=LD_LIBRARY_PATH
14818 case $host_vendor in
14820 shlibpath_overrides_runpath=no
14822 export_dynamic_flag_spec='${wl}-Blargedynsym'
14823 runpath_var=LD_RUN_PATH
14831 shlibpath_overrides_runpath=no
14832 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14838 if test -d /usr/nec ;then
14840 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14841 soname_spec='$libname${shared_ext}.$major'
14842 shlibpath_var=LD_LIBRARY_PATH
14846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14847 version_type=freebsd-elf
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 shlibpath_var=LD_LIBRARY_PATH
14853 hardcode_into_libs=yes
14854 if test "$with_gnu_ld" = yes; then
14855 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14856 shlibpath_overrides_runpath=no
14858 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14859 shlibpath_overrides_runpath=yes
14862 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14866 sys_lib_dlsearch_path_spec='/usr/lib'
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 shlibpath_var=LD_LIBRARY_PATH
14880 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14881 echo "${ECHO_T}$dynamic_linker" >&6
14882 test "$dynamic_linker" = no && can_build_shared=no
14884 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14885 if test "$GCC" = yes; then
14886 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14889 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14890 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14891 hardcode_action_F77=
14892 if test -n "$hardcode_libdir_flag_spec_F77" || \
14893 test -n "$runpath_var_F77" || \
14894 test "X$hardcode_automatic_F77" = "Xyes" ; then
14896 # We can hardcode non-existant directories.
14897 if test "$hardcode_direct_F77" != no &&
14898 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14899 # have to relink, otherwise we might link with an installed library
14900 # when we should be linking with a yet-to-be-installed one
14901 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14902 test "$hardcode_minus_L_F77" != no; then
14903 # Linking always hardcodes the temporary library directory.
14904 hardcode_action_F77=relink
14906 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14907 hardcode_action_F77=immediate
14910 # We cannot hardcode anything, or else we can only hardcode existing
14912 hardcode_action_F77=unsupported
14914 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14915 echo "${ECHO_T}$hardcode_action_F77" >&6
14917 if test "$hardcode_action_F77" = relink; then
14918 # Fast installation is not supported
14919 enable_fast_install=no
14920 elif test "$shlibpath_overrides_runpath" = yes ||
14921 test "$enable_shared" = no; then
14922 # Fast installation is not necessary
14923 enable_fast_install=needless
14927 # The else clause should only fire when bootstrapping the
14928 # libtool distribution, otherwise you forgot to ship ltmain.sh
14929 # with your package, and you will get complaints that there are
14930 # no rules to generate ltmain.sh.
14931 if test -f "$ltmain"; then
14932 # See if we are running on zsh, and set the options which allow our commands through
14933 # without removal of \ escapes.
14934 if test -n "${ZSH_VERSION+set}" ; then
14935 setopt NO_GLOB_SUBST
14937 # Now quote all the things that may contain metacharacters while being
14938 # careful not to overquote the AC_SUBSTed values. We take copies of the
14939 # variables and quote the copies for generation of the libtool script.
14940 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14942 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14943 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14944 deplibs_check_method reload_flag reload_cmds need_locks \
14945 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14946 lt_cv_sys_global_symbol_to_c_name_address \
14947 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14948 old_postinstall_cmds old_postuninstall_cmds \
14952 lt_prog_compiler_wl_F77 \
14953 lt_prog_compiler_pic_F77 \
14954 lt_prog_compiler_static_F77 \
14955 lt_prog_compiler_no_builtin_flag_F77 \
14956 export_dynamic_flag_spec_F77 \
14957 thread_safe_flag_spec_F77 \
14958 whole_archive_flag_spec_F77 \
14959 enable_shared_with_static_runtimes_F77 \
14960 old_archive_cmds_F77 \
14961 old_archive_from_new_cmds_F77 \
14962 predep_objects_F77 \
14963 postdep_objects_F77 \
14966 compiler_lib_search_path_F77 \
14968 archive_expsym_cmds_F77 \
14969 postinstall_cmds_F77 \
14970 postuninstall_cmds_F77 \
14971 old_archive_from_expsyms_cmds_F77 \
14972 allow_undefined_flag_F77 \
14973 no_undefined_flag_F77 \
14974 export_symbols_cmds_F77 \
14975 hardcode_libdir_flag_spec_F77 \
14976 hardcode_libdir_flag_spec_ld_F77 \
14977 hardcode_libdir_separator_F77 \
14978 hardcode_automatic_F77 \
14980 module_expsym_cmds_F77 \
14981 lt_cv_prog_compiler_c_o_F77 \
14982 exclude_expsyms_F77 \
14983 include_expsyms_F77; do
14986 old_archive_cmds_F77 | \
14987 old_archive_from_new_cmds_F77 | \
14988 archive_cmds_F77 | \
14989 archive_expsym_cmds_F77 | \
14990 module_cmds_F77 | \
14991 module_expsym_cmds_F77 | \
14992 old_archive_from_expsyms_cmds_F77 | \
14993 export_symbols_cmds_F77 | \
14994 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14995 postinstall_cmds | postuninstall_cmds | \
14996 old_postinstall_cmds | old_postuninstall_cmds | \
14997 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14998 # Double-quote double-evaled strings.
14999 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15008 *'\$0 --fallback-echo"')
15009 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15015 cat <<__EOF__ >> "$cfgfile"
15016 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15020 # Shell to use when invoking shell scripts.
15023 # Whether or not to build shared libraries.
15024 build_libtool_libs=$enable_shared
15026 # Whether or not to build static libraries.
15027 build_old_libs=$enable_static
15029 # Whether or not to add -lc for building shared libraries.
15030 build_libtool_need_lc=$archive_cmds_need_lc_F77
15032 # Whether or not to disallow shared libs when runtime libs are static
15033 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15035 # Whether or not to optimize for fast installation.
15036 fast_install=$enable_fast_install
15039 host_alias=$host_alias
15043 # The build system.
15044 build_alias=$build_alias
15048 # An echo program that does not interpret backslashes.
15053 AR_FLAGS=$lt_AR_FLAGS
15058 # LTCC compiler flags.
15059 LTCFLAGS=$lt_LTCFLAGS
15061 # A language-specific compiler.
15062 CC=$lt_compiler_F77
15064 # Is the compiler the GNU C compiler?
15070 # The linker used to build libraries.
15073 # Whether we need hard or soft links.
15076 # A BSD-compatible nm program.
15079 # A symbol stripping program
15082 # Used to examine libraries when file_magic_cmd begins "file"
15083 MAGIC_CMD=$MAGIC_CMD
15085 # Used on cygwin: DLL creation program.
15088 # Used on cygwin: object dumper.
15091 # Used on cygwin: assembler.
15094 # The name of the directory that contains temporary libtool files.
15097 # How to create reloadable object files.
15098 reload_flag=$lt_reload_flag
15099 reload_cmds=$lt_reload_cmds
15101 # How to pass a linker flag through the compiler.
15102 wl=$lt_lt_prog_compiler_wl_F77
15104 # Object file suffix (normally "o").
15105 objext="$ac_objext"
15107 # Old archive suffix (normally "a").
15110 # Shared library suffix (normally ".so").
15111 shrext_cmds='$shrext_cmds'
15113 # Executable file suffix (normally "").
15116 # Additional compiler flags for building library objects.
15117 pic_flag=$lt_lt_prog_compiler_pic_F77
15120 # What is the maximum length of a command?
15121 max_cmd_len=$lt_cv_sys_max_cmd_len
15123 # Does compiler simultaneously support -c and -o options?
15124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15126 # Must we lock files when doing compilation?
15127 need_locks=$lt_need_locks
15129 # Do we need the lib prefix for modules?
15130 need_lib_prefix=$need_lib_prefix
15132 # Do we need a version for libraries?
15133 need_version=$need_version
15135 # Whether dlopen is supported.
15136 dlopen_support=$enable_dlopen
15138 # Whether dlopen of programs is supported.
15139 dlopen_self=$enable_dlopen_self
15141 # Whether dlopen of statically linked programs is supported.
15142 dlopen_self_static=$enable_dlopen_self_static
15144 # Compiler flag to prevent dynamic linking.
15145 link_static_flag=$lt_lt_prog_compiler_static_F77
15147 # Compiler flag to turn off builtin functions.
15148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15150 # Compiler flag to allow reflexive dlopens.
15151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15153 # Compiler flag to generate shared objects directly from archives.
15154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15156 # Compiler flag to generate thread-safe objects.
15157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15159 # Library versioning type.
15160 version_type=$version_type
15162 # Format of library name prefix.
15163 libname_spec=$lt_libname_spec
15165 # List of archive names. First name is the real one, the rest are links.
15166 # The last name is the one that the linker finds with -lNAME.
15167 library_names_spec=$lt_library_names_spec
15169 # The coded name of the library, if different from the real name.
15170 soname_spec=$lt_soname_spec
15172 # Commands used to build and install an old-style archive.
15174 old_archive_cmds=$lt_old_archive_cmds_F77
15175 old_postinstall_cmds=$lt_old_postinstall_cmds
15176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15178 # Create an old-style archive from a shared archive.
15179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15181 # Create a temporary old-style archive to link instead of a shared archive.
15182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15184 # Commands used to build and install a shared archive.
15185 archive_cmds=$lt_archive_cmds_F77
15186 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15187 postinstall_cmds=$lt_postinstall_cmds
15188 postuninstall_cmds=$lt_postuninstall_cmds
15190 # Commands used to build a loadable module (assumed same as above if empty)
15191 module_cmds=$lt_module_cmds_F77
15192 module_expsym_cmds=$lt_module_expsym_cmds_F77
15194 # Commands to strip libraries.
15195 old_striplib=$lt_old_striplib
15196 striplib=$lt_striplib
15198 # Dependencies to place before the objects being linked to create a
15200 predep_objects=$lt_predep_objects_F77
15202 # Dependencies to place after the objects being linked to create a
15204 postdep_objects=$lt_postdep_objects_F77
15206 # Dependencies to place before the objects being linked to create a
15208 predeps=$lt_predeps_F77
15210 # Dependencies to place after the objects being linked to create a
15212 postdeps=$lt_postdeps_F77
15214 # The library search path used internally by the compiler when linking
15215 # a shared library.
15216 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15218 # Method to check whether dependent libraries are shared objects.
15219 deplibs_check_method=$lt_deplibs_check_method
15221 # Command to use when deplibs_check_method == file_magic.
15222 file_magic_cmd=$lt_file_magic_cmd
15224 # Flag that allows shared libraries with undefined symbols to be built.
15225 allow_undefined_flag=$lt_allow_undefined_flag_F77
15227 # Flag that forces no undefined symbols.
15228 no_undefined_flag=$lt_no_undefined_flag_F77
15230 # Commands used to finish a libtool library installation in a directory.
15231 finish_cmds=$lt_finish_cmds
15233 # Same as above, but a single script fragment to be evaled but not shown.
15234 finish_eval=$lt_finish_eval
15236 # Take the output of nm and produce a listing of raw symbols and C names.
15237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15239 # Transform the output of nm in a proper C declaration
15240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15242 # Transform the output of nm in a C name address pair
15243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15245 # This is the shared library runtime path variable.
15246 runpath_var=$runpath_var
15248 # This is the shared library path variable.
15249 shlibpath_var=$shlibpath_var
15251 # Is shlibpath searched before the hard-coded library search path?
15252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15254 # How to hardcode a shared library path into an executable.
15255 hardcode_action=$hardcode_action_F77
15257 # Whether we should hardcode library paths into libraries.
15258 hardcode_into_libs=$hardcode_into_libs
15260 # Flag to hardcode \$libdir into a binary during linking.
15261 # This must work even if \$libdir does not exist.
15262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15264 # If ld is used when linking, flag to hardcode \$libdir into
15265 # a binary during linking. This must work even if \$libdir does
15267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15269 # Whether we need a single -rpath flag with a separated argument.
15270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15273 # resulting binary.
15274 hardcode_direct=$hardcode_direct_F77
15276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15277 # resulting binary.
15278 hardcode_minus_L=$hardcode_minus_L_F77
15280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15281 # the resulting binary.
15282 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15284 # Set to yes if building a shared library automatically hardcodes DIR into the library
15285 # and all subsequent libraries and executables linked against it.
15286 hardcode_automatic=$hardcode_automatic_F77
15288 # Variables whose values should be saved in libtool wrapper scripts and
15289 # restored at relink time.
15290 variables_saved_for_relink="$variables_saved_for_relink"
15292 # Whether libtool must link a program against all its dependency libraries.
15293 link_all_deplibs=$link_all_deplibs_F77
15295 # Compile-time system search path for libraries
15296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15298 # Run-time system search path for libraries
15299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15301 # Fix the shell variable \$srcfile for the compiler.
15302 fix_srcfile_path="$fix_srcfile_path_F77"
15304 # Set to yes if exported symbols are required.
15305 always_export_symbols=$always_export_symbols_F77
15307 # The commands to list exported symbols.
15308 export_symbols_cmds=$lt_export_symbols_cmds_F77
15310 # The commands to extract the exported symbol list from a shared archive.
15311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15313 # Symbols that should not be listed in the preloaded symbols.
15314 exclude_expsyms=$lt_exclude_expsyms_F77
15316 # Symbols that must always be exported.
15317 include_expsyms=$lt_include_expsyms_F77
15319 # ### END LIBTOOL TAG CONFIG: $tagname
15325 # If there is no Makefile yet, we rely on a make rule to execute
15326 # `config.status --recheck' to rerun these tests and create the
15327 # libtool script then.
15328 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15329 if test -f "$ltmain_in"; then
15330 test -f Makefile && make "$ltmain"
15336 ac_cpp='$CPP $CPPFLAGS'
15337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15349 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15353 # Source file extension for Java test sources.
15356 # Object file extension for compiled Java test sources.
15360 # Code to be used in simple compile tests
15361 lt_simple_compile_test_code="class foo {}\n"
15363 # Code to be used in simple link tests
15364 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15366 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15368 # If no C compiler was specified, use CC.
15371 # If no C compiler flags were specified, use CFLAGS.
15372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15374 # Allow CC to be a program name with arguments.
15378 # save warnings/boilerplate of simple test code
15379 ac_outfile=conftest.$ac_objext
15380 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15381 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15382 _lt_compiler_boilerplate=`cat conftest.err`
15385 ac_outfile=conftest.$ac_objext
15386 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15387 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15388 _lt_linker_boilerplate=`cat conftest.err`
15392 # Allow CC to be a program name with arguments.
15397 for cc_temp in $compiler""; do
15399 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15400 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15405 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15408 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15409 archive_cmds_need_lc_GCJ=no
15411 old_archive_cmds_GCJ=$old_archive_cmds
15414 ## There is no encapsulation within the following macros, do not change
15415 ## the running order or otherwise move them around unless you know exactly
15416 ## what you are doing...
15418 lt_prog_compiler_no_builtin_flag_GCJ=
15420 if test "$GCC" = yes; then
15421 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15424 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15425 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15426 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 lt_cv_prog_compiler_rtti_exceptions=no
15430 ac_outfile=conftest.$ac_objext
15431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15432 lt_compiler_flag="-fno-rtti -fno-exceptions"
15433 # Insert the option either (1) after the last *FLAGS variable, or
15434 # (2) before a word containing "conftest.", or (3) at the end.
15435 # Note that $ac_compile itself does not contain backslashes and begins
15436 # with a dollar sign (not a hyphen), so the echo should work correctly.
15437 # The option is referenced via a variable to avoid confusing sed.
15438 lt_compile=`echo "$ac_compile" | $SED \
15439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15441 -e 's:$: $lt_compiler_flag:'`
15442 (eval echo "\"\$as_me:15442: $lt_compile\"" >&5)
15443 (eval "$lt_compile" 2>conftest.err)
15445 cat conftest.err >&5
15446 echo "$as_me:15446: \$? = $ac_status" >&5
15447 if (exit $ac_status) && test -s "$ac_outfile"; then
15448 # The compiler can only warn and ignore the option if not recognized
15449 # So say no if there are warnings other than the usual output.
15450 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15453 lt_cv_prog_compiler_rtti_exceptions=yes
15459 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15460 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15462 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15463 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15470 lt_prog_compiler_wl_GCJ=
15471 lt_prog_compiler_pic_GCJ=
15472 lt_prog_compiler_static_GCJ=
15474 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15477 if test "$GCC" = yes; then
15478 lt_prog_compiler_wl_GCJ='-Wl,'
15479 lt_prog_compiler_static_GCJ='-static'
15483 # All AIX code is PIC.
15484 if test "$host_cpu" = ia64; then
15485 # AIX 5 now supports IA64 processor
15486 lt_prog_compiler_static_GCJ='-Bstatic'
15491 # FIXME: we need at least 68020 code to build shared libraries, but
15492 # adding the `-m68020' flag to GCC prevents building anything better,
15494 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15497 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15498 # PIC is the default for these OSes.
15501 mingw* | pw32* | os2*)
15502 # This hack is so that the source file can tell whether it is being
15503 # built for inclusion in a dll (and should export symbols for example).
15504 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15507 darwin* | rhapsody*)
15508 # PIC is the default on this platform
15509 # Common symbols not allowed in MH_DYLIB files
15510 lt_prog_compiler_pic_GCJ='-fno-common'
15514 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15515 # Instead, we relocate shared libraries at runtime.
15519 # Just because we use GCC doesn't mean we suddenly get shared libraries
15520 # on systems that don't support them.
15521 lt_prog_compiler_can_build_shared_GCJ=no
15526 if test -d /usr/nec; then
15527 lt_prog_compiler_pic_GCJ=-Kconform_pic
15532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15533 # not for PA HP-UX.
15539 lt_prog_compiler_pic_GCJ='-fPIC'
15545 lt_prog_compiler_pic_GCJ='-fPIC'
15549 # PORTME Check for flag to pass linker flags through the system compiler.
15552 lt_prog_compiler_wl_GCJ='-Wl,'
15553 if test "$host_cpu" = ia64; then
15554 # AIX 5 now supports IA64 processor
15555 lt_prog_compiler_static_GCJ='-Bstatic'
15557 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15561 # PIC is the default on this platform
15562 # Common symbols not allowed in MH_DYLIB files
15563 case $cc_basename in
15565 lt_prog_compiler_pic_GCJ='-qnocommon'
15566 lt_prog_compiler_wl_GCJ='-Wl,'
15571 mingw* | pw32* | os2*)
15572 # This hack is so that the source file can tell whether it is being
15573 # built for inclusion in a dll (and should export symbols for example).
15574 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15577 hpux9* | hpux10* | hpux11*)
15578 lt_prog_compiler_wl_GCJ='-Wl,'
15579 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15580 # not for PA HP-UX.
15586 lt_prog_compiler_pic_GCJ='+Z'
15589 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15590 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15593 irix5* | irix6* | nonstopux*)
15594 lt_prog_compiler_wl_GCJ='-Wl,'
15595 # PIC (with -KPIC) is the default.
15596 lt_prog_compiler_static_GCJ='-non_shared'
15600 lt_prog_compiler_pic_GCJ='-KPIC'
15601 lt_prog_compiler_static_GCJ='-Bstatic'
15605 case $cc_basename in
15607 lt_prog_compiler_wl_GCJ='-Wl,'
15608 lt_prog_compiler_pic_GCJ='-KPIC'
15609 lt_prog_compiler_static_GCJ='-static'
15611 pgcc* | pgf77* | pgf90* | pgf95*)
15612 # Portland Group compilers (*not* the Pentium gcc compiler,
15613 # which looks to be a dead project)
15614 lt_prog_compiler_wl_GCJ='-Wl,'
15615 lt_prog_compiler_pic_GCJ='-fpic'
15616 lt_prog_compiler_static_GCJ='-Bstatic'
15619 lt_prog_compiler_wl_GCJ='-Wl,'
15620 # All Alpha code is PIC.
15621 lt_prog_compiler_static_GCJ='-non_shared'
15626 osf3* | osf4* | osf5*)
15627 lt_prog_compiler_wl_GCJ='-Wl,'
15628 # All OSF/1 code is PIC.
15629 lt_prog_compiler_static_GCJ='-non_shared'
15633 lt_prog_compiler_pic_GCJ='-KPIC'
15634 lt_prog_compiler_static_GCJ='-Bstatic'
15635 case $cc_basename in
15636 f77* | f90* | f95*)
15637 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15639 lt_prog_compiler_wl_GCJ='-Wl,';;
15644 lt_prog_compiler_wl_GCJ='-Qoption ld '
15645 lt_prog_compiler_pic_GCJ='-PIC'
15646 lt_prog_compiler_static_GCJ='-Bstatic'
15649 sysv4 | sysv4.2uw2* | sysv4.3*)
15650 lt_prog_compiler_wl_GCJ='-Wl,'
15651 lt_prog_compiler_pic_GCJ='-KPIC'
15652 lt_prog_compiler_static_GCJ='-Bstatic'
15656 if test -d /usr/nec ;then
15657 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15658 lt_prog_compiler_static_GCJ='-Bstatic'
15662 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15663 lt_prog_compiler_wl_GCJ='-Wl,'
15664 lt_prog_compiler_pic_GCJ='-KPIC'
15665 lt_prog_compiler_static_GCJ='-Bstatic'
15669 lt_prog_compiler_wl_GCJ='-Wl,'
15670 lt_prog_compiler_can_build_shared_GCJ=no
15674 lt_prog_compiler_pic_GCJ='-pic'
15675 lt_prog_compiler_static_GCJ='-Bstatic'
15679 lt_prog_compiler_can_build_shared_GCJ=no
15684 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15685 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15688 # Check to make sure the PIC flag actually works.
15690 if test -n "$lt_prog_compiler_pic_GCJ"; then
15692 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15693 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15694 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 lt_prog_compiler_pic_works_GCJ=no
15698 ac_outfile=conftest.$ac_objext
15699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15700 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15701 # Insert the option either (1) after the last *FLAGS variable, or
15702 # (2) before a word containing "conftest.", or (3) at the end.
15703 # Note that $ac_compile itself does not contain backslashes and begins
15704 # with a dollar sign (not a hyphen), so the echo should work correctly.
15705 # The option is referenced via a variable to avoid confusing sed.
15706 lt_compile=`echo "$ac_compile" | $SED \
15707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15709 -e 's:$: $lt_compiler_flag:'`
15710 (eval echo "\"\$as_me:15710: $lt_compile\"" >&5)
15711 (eval "$lt_compile" 2>conftest.err)
15713 cat conftest.err >&5
15714 echo "$as_me:15714: \$? = $ac_status" >&5
15715 if (exit $ac_status) && test -s "$ac_outfile"; then
15716 # The compiler can only warn and ignore the option if not recognized
15717 # So say no if there are warnings other than the usual output.
15718 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15721 lt_prog_compiler_pic_works_GCJ=yes
15727 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15728 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15730 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15731 case $lt_prog_compiler_pic_GCJ in
15733 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15736 lt_prog_compiler_pic_GCJ=
15737 lt_prog_compiler_can_build_shared_GCJ=no
15742 # For platforms which do not support PIC, -DPIC is meaningless:
15744 lt_prog_compiler_pic_GCJ=
15747 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15752 # Check to make sure the static flag actually works.
15754 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15755 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15756 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15757 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 lt_prog_compiler_static_works_GCJ=no
15761 save_LDFLAGS="$LDFLAGS"
15762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15763 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15765 # The linker can only warn and ignore the option if not recognized
15766 # So say no if there are warnings
15767 if test -s conftest.err; then
15768 # Append any errors to the config.log.
15769 cat conftest.err 1>&5
15770 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15772 if diff conftest.exp conftest.er2 >/dev/null; then
15773 lt_prog_compiler_static_works_GCJ=yes
15776 lt_prog_compiler_static_works_GCJ=yes
15780 LDFLAGS="$save_LDFLAGS"
15783 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15784 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15786 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15789 lt_prog_compiler_static_GCJ=
15793 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15794 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15795 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 lt_cv_prog_compiler_c_o_GCJ=no
15799 $rm -r conftest 2>/dev/null
15803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15805 lt_compiler_flag="-o out/conftest2.$ac_objext"
15806 # Insert the option either (1) after the last *FLAGS variable, or
15807 # (2) before a word containing "conftest.", or (3) at the end.
15808 # Note that $ac_compile itself does not contain backslashes and begins
15809 # with a dollar sign (not a hyphen), so the echo should work correctly.
15810 lt_compile=`echo "$ac_compile" | $SED \
15811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15813 -e 's:$: $lt_compiler_flag:'`
15814 (eval echo "\"\$as_me:15814: $lt_compile\"" >&5)
15815 (eval "$lt_compile" 2>out/conftest.err)
15817 cat out/conftest.err >&5
15818 echo "$as_me:15818: \$? = $ac_status" >&5
15819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15821 # The compiler can only warn and ignore the option if not recognized
15822 # So say no if there are warnings
15823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15826 lt_cv_prog_compiler_c_o_GCJ=yes
15831 # SGI C++ compiler will create directory out/ii_files/ for
15832 # template instantiation
15833 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15834 $rm out/* && rmdir out
15840 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15841 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15844 hard_links="nottested"
15845 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15846 # do not overwrite the value of need_locks provided by the user
15847 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15848 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15853 ln conftest.a conftest.b 2>&5 || hard_links=no
15854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15855 echo "$as_me:$LINENO: result: $hard_links" >&5
15856 echo "${ECHO_T}$hard_links" >&6
15857 if test "$hard_links" = no; then
15858 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15859 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15866 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15867 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15870 allow_undefined_flag_GCJ=
15871 enable_shared_with_static_runtimes_GCJ=no
15873 archive_expsym_cmds_GCJ=
15874 old_archive_From_new_cmds_GCJ=
15875 old_archive_from_expsyms_cmds_GCJ=
15876 export_dynamic_flag_spec_GCJ=
15877 whole_archive_flag_spec_GCJ=
15878 thread_safe_flag_spec_GCJ=
15879 hardcode_libdir_flag_spec_GCJ=
15880 hardcode_libdir_flag_spec_ld_GCJ=
15881 hardcode_libdir_separator_GCJ=
15882 hardcode_direct_GCJ=no
15883 hardcode_minus_L_GCJ=no
15884 hardcode_shlibpath_var_GCJ=unsupported
15885 link_all_deplibs_GCJ=unknown
15886 hardcode_automatic_GCJ=no
15888 module_expsym_cmds_GCJ=
15889 always_export_symbols_GCJ=no
15890 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15891 # include_expsyms should be a list of space-separated symbols to be *always*
15892 # included in the symbol list
15893 include_expsyms_GCJ=
15894 # exclude_expsyms can be an extended regexp of symbols to exclude
15895 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15896 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15897 # as well as any symbol that contains `d'.
15898 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15899 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15900 # platforms (ab)use it in PIC code, but their linkers get confused if
15901 # the symbol is explicitly referenced. Since portable code cannot
15902 # rely on this symbol name, it's probably fine to never include it in
15903 # preloaded symbol tables.
15904 extract_expsyms_cmds=
15905 # Just being paranoid about ensuring that cc_basename is set.
15906 for cc_temp in $compiler""; do
15908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15917 cygwin* | mingw* | pw32*)
15918 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15919 # When not using gcc, we currently assume that we are using
15920 # Microsoft Visual C++.
15921 if test "$GCC" != yes; then
15926 # we just hope/assume this is gcc and not c89 (= MSVC++)
15935 if test "$with_gnu_ld" = yes; then
15936 # If archive_cmds runs LD, not CC, wlarc should be empty
15939 # Set some defaults for GNU ld with shared library support. These
15940 # are reset later if shared libraries are not supported. Putting them
15941 # here allows them to be overridden if necessary.
15942 runpath_var=LD_RUN_PATH
15943 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15944 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15945 # ancient GNU ld didn't support --whole-archive et. al.
15946 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15947 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15949 whole_archive_flag_spec_GCJ=
15951 supports_anon_versioning=no
15952 case `$LD -v 2>/dev/null` in
15953 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15954 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15955 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15956 *\ 2.11.*) ;; # other 2.11 versions
15957 *) supports_anon_versioning=yes ;;
15960 # See if GNU ld supports shared libraries.
15962 aix3* | aix4* | aix5*)
15963 # On AIX/PPC, the GNU linker is very broken
15964 if test "$host_cpu" != ia64; then
15968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15969 *** to be unable to reliably create shared libraries on AIX.
15970 *** Therefore, libtool is disabling shared libraries support. If you
15971 *** really care for shared libraries, you may want to modify your PATH
15972 *** so that a non-GNU linker is found, and then restart.
15979 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)'
15980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15981 hardcode_minus_L_GCJ=yes
15983 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15984 # that the semantics of dynamic libraries on AmigaOS, at least up
15985 # to version 4, is to share data among multiple programs linked
15986 # with the same dynamic library. Since this doesn't match the
15987 # behavior of shared libraries on other platforms, we can't use
15993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15994 allow_undefined_flag_GCJ=unsupported
15995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15996 # support --undefined. This deserves some investigation. FIXME
15997 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16003 cygwin* | mingw* | pw32*)
16004 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16005 # as there is no search path for DLLs.
16006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16007 allow_undefined_flag_GCJ=unsupported
16008 always_export_symbols_GCJ=no
16009 enable_shared_with_static_runtimes_GCJ=yes
16010 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16012 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16013 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16014 # If the export-symbols file already is a .def file (1st line
16015 # is EXPORTS), use it as is; otherwise, prepend...
16016 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16017 cp $export_symbols $output_objdir/$soname.def;
16019 echo EXPORTS > $output_objdir/$soname.def;
16020 cat $export_symbols >> $output_objdir/$soname.def;
16022 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16029 hardcode_direct_GCJ=no
16030 hardcode_shlibpath_var_GCJ=no
16031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16032 export_dynamic_flag_spec_GCJ='${wl}-E'
16033 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16034 # Instead, shared libraries are loaded at an image base (0x10000000 by
16035 # default) and relocated if they conflict, which is a slow very memory
16036 # consuming and fragmenting process. To avoid this, we pick a random,
16037 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16038 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16039 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16040 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16046 case $cc_basename,$host_cpu in
16047 pgcc*) # Portland Group C compiler
16048 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16049 tmp_addflag=' $pic_flag'
16051 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16052 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16053 tmp_addflag=' $pic_flag -Mnomain' ;;
16054 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16055 tmp_addflag=' -i_dynamic' ;;
16056 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16057 tmp_addflag=' -i_dynamic -nofor_main' ;;
16058 ifc* | ifort*) # Intel Fortran compiler
16059 tmp_addflag=' -nofor_main' ;;
16061 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16063 if test $supports_anon_versioning = yes; then
16064 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16065 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16066 $echo "local: *; };" >> $output_objdir/$libname.ver~
16067 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16076 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16079 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16080 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16085 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16089 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16090 *** create shared libraries on Solaris systems. Therefore, libtool
16091 *** is disabling shared libraries support. We urge you to upgrade GNU
16092 *** binutils to release 2.9.1 or newer. Another option is to modify
16093 *** your PATH or compiler configuration so that the native linker is
16094 *** used, and then restart.
16097 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16098 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16099 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16106 case `$LD -v 2>&1` in
16107 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16111 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16112 *** reliably create shared libraries on SCO systems. Therefore, libtool
16113 *** is disabling shared libraries support. We urge you to upgrade GNU
16114 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16115 *** your PATH or compiler configuration so that the native linker is
16116 *** used, and then restart.
16121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16122 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16123 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16124 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16133 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_direct_GCJ=yes
16136 hardcode_shlibpath_var_GCJ=no
16140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16141 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16142 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16149 if test "$ld_shlibs_GCJ" = no; then
16151 hardcode_libdir_flag_spec_GCJ=
16152 export_dynamic_flag_spec_GCJ=
16153 whole_archive_flag_spec_GCJ=
16156 # PORTME fill in a description of your system's linker (not GNU ld)
16159 allow_undefined_flag_GCJ=unsupported
16160 always_export_symbols_GCJ=yes
16161 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'
16162 # Note: this linker hardcodes the directories in LIBPATH if there
16163 # are no directories specified by -L.
16164 hardcode_minus_L_GCJ=yes
16165 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16166 # Neither direct hardcoding nor static linking is supported with a
16168 hardcode_direct_GCJ=unsupported
16173 if test "$host_cpu" = ia64; then
16174 # On IA64, the linker does run time linking by default, so we don't
16175 # have to do anything special.
16176 aix_use_runtimelinking=no
16177 exp_sym_flag='-Bexport'
16180 # If we're using GNU nm, then we don't want the "-C" option.
16181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16183 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'
16185 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'
16187 aix_use_runtimelinking=no
16189 # Test if we are trying to use run time linking or normal
16190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16191 # need to do runtime linking.
16192 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16193 for ld_flag in $LDFLAGS; do
16194 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16195 aix_use_runtimelinking=yes
16202 exp_sym_flag='-bexport'
16203 no_entry_flag='-bnoentry'
16206 # When large executables or shared objects are built, AIX ld can
16207 # have problems creating the table of contents. If linking a library
16208 # or program results in "error TOC overflow" add -mminimal-toc to
16209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16212 archive_cmds_GCJ=''
16213 hardcode_direct_GCJ=yes
16214 hardcode_libdir_separator_GCJ=':'
16215 link_all_deplibs_GCJ=yes
16217 if test "$GCC" = yes; then
16218 case $host_os in aix4.[012]|aix4.[012].*)
16219 # We only want to do this on AIX 4.2 and lower, the check
16220 # below for broken collect2 doesn't work under 4.3+
16221 collect2name=`${CC} -print-prog-name=collect2`
16222 if test -f "$collect2name" && \
16223 strings "$collect2name" | grep resolve_lib_name >/dev/null
16225 # We have reworked collect2
16226 hardcode_direct_GCJ=yes
16228 # We have old collect2
16229 hardcode_direct_GCJ=unsupported
16230 # It fails to find uninstalled libraries when the uninstalled
16231 # path is not listed in the libpath. Setting hardcode_minus_L
16232 # to unsupported forces relinking
16233 hardcode_minus_L_GCJ=yes
16234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16235 hardcode_libdir_separator_GCJ=
16239 shared_flag='-shared'
16240 if test "$aix_use_runtimelinking" = yes; then
16241 shared_flag="$shared_flag "'${wl}-G'
16245 if test "$host_cpu" = ia64; then
16246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16247 # chokes on -Wl,-G. The following line is correct:
16250 if test "$aix_use_runtimelinking" = yes; then
16251 shared_flag='${wl}-G'
16253 shared_flag='${wl}-bM:SRE'
16258 # It seems that -bexpall does not export symbols beginning with
16259 # underscore (_), so it is better to generate a list of symbols to export.
16260 always_export_symbols_GCJ=yes
16261 if test "$aix_use_runtimelinking" = yes; then
16262 # Warning - without using the other runtime loading flags (-brtl),
16263 # -berok will link without error, but may produce a broken library.
16264 allow_undefined_flag_GCJ='-berok'
16265 # Determine the default libpath from the value encoded in an empty executable.
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16281 rm -f conftest.$ac_objext conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283 (eval $ac_link) 2>conftest.er1
16285 grep -v '^ *+' conftest.er1 >conftest.err
16287 cat conftest.err >&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } &&
16290 { ac_try='test -z "$ac_c_werror_flag"
16291 || test ! -s conftest.err'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; } &&
16297 { ac_try='test -s conftest$ac_exeext'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16306 # Check for a 64-bit object if we didn't find anything.
16307 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; }
16310 echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16314 rm -f conftest.err conftest.$ac_objext \
16315 conftest$ac_exeext conftest.$ac_ext
16316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16318 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16319 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16321 if test "$host_cpu" = ia64; then
16322 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16323 allow_undefined_flag_GCJ="-z nodefs"
16324 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16326 # Determine the default libpath from the value encoded in an empty executable.
16327 cat >conftest.$ac_ext <<_ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16342 rm -f conftest.$ac_objext conftest$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>conftest.er1
16346 grep -v '^ *+' conftest.er1 >conftest.err
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest$ac_exeext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16365 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16367 # Check for a 64-bit object if we didn't find anything.
16368 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; }
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16375 rm -f conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16379 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16380 # Warning - without using the other run time loading flags,
16381 # -berok will link without error, but may produce a broken library.
16382 no_undefined_flag_GCJ=' ${wl}-bernotok'
16383 allow_undefined_flag_GCJ=' ${wl}-berok'
16384 # Exported symbols can be pulled into shared objects from archives
16385 whole_archive_flag_spec_GCJ='$convenience'
16386 archive_cmds_need_lc_GCJ=yes
16387 # This is similar to how AIX traditionally builds its shared libraries.
16388 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16394 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)'
16395 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16396 hardcode_minus_L_GCJ=yes
16397 # see comment about different semantics on the GNU ld section
16402 export_dynamic_flag_spec_GCJ=-rdynamic
16405 cygwin* | mingw* | pw32*)
16406 # When not using gcc, we currently assume that we are using
16407 # Microsoft Visual C++.
16408 # hardcode_libdir_flag_spec is actually meaningless, as there is
16409 # no search path for DLLs.
16410 hardcode_libdir_flag_spec_GCJ=' '
16411 allow_undefined_flag_GCJ=unsupported
16412 # Tell ltmain to make .lib files, not .a files.
16414 # Tell ltmain to make .dll files, not .so files.
16416 # FIXME: Setting linknames here is a bad hack.
16417 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16418 # The linker will automatically build a .lib file if we build a DLL.
16419 old_archive_From_new_cmds_GCJ='true'
16420 # FIXME: Should let the user specify the lib program.
16421 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16422 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16423 enable_shared_with_static_runtimes_GCJ=yes
16426 darwin* | rhapsody*)
16428 rhapsody* | darwin1.[012])
16429 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16432 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16433 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16435 case ${MACOSX_DEPLOYMENT_TARGET} in
16437 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16440 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16446 archive_cmds_need_lc_GCJ=no
16447 hardcode_direct_GCJ=no
16448 hardcode_automatic_GCJ=yes
16449 hardcode_shlibpath_var_GCJ=unsupported
16450 whole_archive_flag_spec_GCJ=''
16451 link_all_deplibs_GCJ=yes
16452 if test "$GCC" = yes ; then
16453 output_verbose_link_cmd='echo'
16454 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16455 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16456 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16457 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16458 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}'
16460 case $cc_basename in
16462 output_verbose_link_cmd='echo'
16463 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16464 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16465 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16466 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16467 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}'
16477 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16479 hardcode_shlibpath_var_GCJ=no
16486 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16487 # support. Future versions do this automatically, but an explicit c++rt0.o
16488 # does not break anything, and helps significantly (at the cost of a little
16491 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16492 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16493 hardcode_direct_GCJ=yes
16494 hardcode_shlibpath_var_GCJ=no
16497 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16499 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16500 hardcode_direct_GCJ=yes
16501 hardcode_minus_L_GCJ=yes
16502 hardcode_shlibpath_var_GCJ=no
16505 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16506 freebsd* | kfreebsd*-gnu | dragonfly*)
16507 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16508 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16509 hardcode_direct_GCJ=yes
16510 hardcode_shlibpath_var_GCJ=no
16514 if test "$GCC" = yes; then
16515 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'
16517 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'
16519 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16520 hardcode_libdir_separator_GCJ=:
16521 hardcode_direct_GCJ=yes
16523 # hardcode_minus_L: Not really in the search PATH,
16524 # but as the default location of the library.
16525 hardcode_minus_L_GCJ=yes
16526 export_dynamic_flag_spec_GCJ='${wl}-E'
16530 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16531 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16533 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16535 if test "$with_gnu_ld" = no; then
16536 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16537 hardcode_libdir_separator_GCJ=:
16539 hardcode_direct_GCJ=yes
16540 export_dynamic_flag_spec_GCJ='${wl}-E'
16542 # hardcode_minus_L: Not really in the search PATH,
16543 # but as the default location of the library.
16544 hardcode_minus_L_GCJ=yes
16549 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16552 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16555 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16558 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16564 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16570 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16574 if test "$with_gnu_ld" = no; then
16575 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16576 hardcode_libdir_separator_GCJ=:
16580 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16581 hardcode_direct_GCJ=no
16582 hardcode_shlibpath_var_GCJ=no
16585 hardcode_direct_GCJ=yes
16586 export_dynamic_flag_spec_GCJ='${wl}-E'
16588 # hardcode_minus_L: Not really in the search PATH,
16589 # but as the default location of the library.
16590 hardcode_minus_L_GCJ=yes
16596 irix5* | irix6* | nonstopux*)
16597 if test "$GCC" = yes; then
16598 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'
16600 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'
16601 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16604 hardcode_libdir_separator_GCJ=:
16605 link_all_deplibs_GCJ=yes
16609 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16610 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16612 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16614 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16615 hardcode_direct_GCJ=yes
16616 hardcode_shlibpath_var_GCJ=no
16620 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16621 hardcode_direct_GCJ=yes
16622 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16623 hardcode_libdir_separator_GCJ=:
16624 hardcode_shlibpath_var_GCJ=no
16628 hardcode_direct_GCJ=yes
16629 hardcode_shlibpath_var_GCJ=no
16630 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16631 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16632 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16634 export_dynamic_flag_spec_GCJ='${wl}-E'
16637 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16638 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16639 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16642 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16650 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16651 hardcode_minus_L_GCJ=yes
16652 allow_undefined_flag_GCJ=unsupported
16653 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'
16654 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16658 if test "$GCC" = yes; then
16659 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16660 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'
16662 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16663 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'
16665 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16666 hardcode_libdir_separator_GCJ=:
16669 osf4* | osf5*) # as osf3* with the addition of -msym flag
16670 if test "$GCC" = yes; then
16671 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16672 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'
16673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16675 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16676 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'
16677 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~
16678 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16680 # Both c and cxx compiler support -rpath directly
16681 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16683 hardcode_libdir_separator_GCJ=:
16687 no_undefined_flag_GCJ=' -z text'
16688 if test "$GCC" = yes; then
16690 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16691 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16692 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16695 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16697 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16699 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16700 hardcode_shlibpath_var_GCJ=no
16702 solaris2.[0-5] | solaris2.[0-5].*) ;;
16704 # The compiler driver will combine linker options so we
16705 # cannot just pass the convience library names through
16706 # without $wl, iff we do not link with $LD.
16707 # Luckily, gcc supports the same syntax we need for Sun Studio.
16708 # Supported since Solaris 2.6 (maybe 2.5.1?)
16711 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16713 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16716 link_all_deplibs_GCJ=yes
16720 if test "x$host_vendor" = xsequent; then
16721 # Use $CC to link under sequent, because it throws in some extra .o
16722 # files that make .init and .fini sections work.
16723 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16725 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16727 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16728 hardcode_direct_GCJ=yes
16729 hardcode_minus_L_GCJ=yes
16730 hardcode_shlibpath_var_GCJ=no
16734 case $host_vendor in
16736 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737 hardcode_direct_GCJ=yes # is this really true???
16740 ## LD is ld it makes a PLAMLIB
16741 ## CC just makes a GrossModule.
16742 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16743 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16744 hardcode_direct_GCJ=no
16747 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16751 runpath_var='LD_RUN_PATH'
16752 hardcode_shlibpath_var_GCJ=no
16756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16757 hardcode_shlibpath_var_GCJ=no
16758 export_dynamic_flag_spec_GCJ='-Bexport'
16762 if test -d /usr/nec; then
16763 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16764 hardcode_shlibpath_var_GCJ=no
16765 runpath_var=LD_RUN_PATH
16766 hardcode_runpath_var=yes
16771 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16772 no_undefined_flag_GCJ='${wl}-z,text'
16773 archive_cmds_need_lc_GCJ=no
16774 hardcode_shlibpath_var_GCJ=no
16775 runpath_var='LD_RUN_PATH'
16777 if test "$GCC" = yes; then
16778 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16779 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16781 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16782 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16786 sysv5* | sco3.2v5* | sco5v6*)
16787 # Note: We can NOT use -z defs as we might desire, because we do not
16788 # link with -lc, and that would cause any symbols used from libc to
16789 # always be unresolved, which means just about no library would
16790 # ever link correctly. If we're not using GNU ld we use -z text
16791 # though, which does catch some bad symbols but isn't as heavy-handed
16793 no_undefined_flag_GCJ='${wl}-z,text'
16794 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16795 archive_cmds_need_lc_GCJ=no
16796 hardcode_shlibpath_var_GCJ=no
16797 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16798 hardcode_libdir_separator_GCJ=':'
16799 link_all_deplibs_GCJ=yes
16800 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16801 runpath_var='LD_RUN_PATH'
16803 if test "$GCC" = yes; then
16804 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16805 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16807 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16808 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16813 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16815 hardcode_shlibpath_var_GCJ=no
16824 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16825 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16826 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16829 # Do we need to explicitly link libc?
16831 case "x$archive_cmds_need_lc_GCJ" in
16833 # Assume -lc should be added
16834 archive_cmds_need_lc_GCJ=yes
16836 if test "$enable_shared" = yes && test "$GCC" = yes; then
16837 case $archive_cmds_GCJ in
16839 # FIXME: we may have to deal with multi-command sequences.
16842 # Test whether the compiler implicitly links with -lc since on some
16843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16844 # to ld, don't add -lc before -lgcc.
16845 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16846 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16851 (eval $ac_compile) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } 2>conftest.err; then
16857 libobjs=conftest.$ac_objext
16859 wl=$lt_prog_compiler_wl_GCJ
16860 pic_flag=$lt_prog_compiler_pic_GCJ
16866 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16867 allow_undefined_flag_GCJ=
16868 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16869 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }
16874 archive_cmds_need_lc_GCJ=no
16876 archive_cmds_need_lc_GCJ=yes
16878 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16880 cat conftest.err 1>&5
16883 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16884 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16891 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16892 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16893 library_names_spec=
16894 libname_spec='lib$name'
16898 postuninstall_cmds=
16902 shlibpath_overrides_runpath=unknown
16904 dynamic_linker="$host_os ld.so"
16905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16906 if test "$GCC" = yes; then
16907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16908 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16909 # if the path contains ";" then we assume it to be the separator
16910 # otherwise default to the standard path separator (i.e. ":") - it is
16911 # assumed that no part of a normal pathname contains ";" but that should
16912 # okay in the real world where ";" in dirpaths is itself problematic.
16913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16920 need_lib_prefix=unknown
16921 hardcode_into_libs=no
16923 # when you set need_version to no, make sure it does not cause -set_version
16924 # flags to be left without arguments
16925 need_version=unknown
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16931 shlibpath_var=LIBPATH
16933 # AIX 3 has no versioning support, so we append a major version to the name.
16934 soname_spec='${libname}${release}${shared_ext}$major'
16941 hardcode_into_libs=yes
16942 if test "$host_cpu" = ia64; then
16943 # AIX 5 supports IA64
16944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16945 shlibpath_var=LD_LIBRARY_PATH
16947 # With GCC up to 2.95.x, collect2 would create an import file
16948 # for dependence libraries. The import file would start with
16949 # the line `#! .'. This would cause the generated library to
16950 # depend on `.', always an invalid library. This was fixed in
16951 # development snapshots of GCC prior to 3.0.
16953 aix4 | aix4.[01] | aix4.[01].*)
16954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16956 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16959 can_build_shared=no
16963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16964 # soname into executable. Probably we can add versioning support to
16965 # collect2, so additional links can be useful in future.
16966 if test "$aix_use_runtimelinking" = yes; then
16967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16968 # instead of lib<name>.a to let people know that these are not
16969 # typical AIX shared libraries.
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16972 # We preserve .a as extension for shared libraries through AIX4.2
16973 # and later when we are not doing run time linking.
16974 library_names_spec='${libname}${release}.a $libname.a'
16975 soname_spec='${libname}${release}${shared_ext}$major'
16977 shlibpath_var=LIBPATH
16982 library_names_spec='$libname.ixlibrary $libname.a'
16983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16984 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'
16988 library_names_spec='${libname}${shared_ext}'
16989 dynamic_linker="$host_os ld.so"
16990 shlibpath_var=LIBRARY_PATH
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997 soname_spec='${libname}${release}${shared_ext}$major'
16998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16999 shlibpath_var=LD_LIBRARY_PATH
17000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17002 # the default ld.so.conf also contains /usr/contrib/lib and
17003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17004 # libtool to hard-code these into programs
17007 cygwin* | mingw* | pw32*)
17008 version_type=windows
17013 case $GCC,$host_os in
17014 yes,cygwin* | yes,mingw* | yes,pw32*)
17015 library_names_spec='$libname.dll.a'
17016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17017 postinstall_cmds='base_file=`basename \${file}`~
17018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17019 dldir=$destdir/`dirname \$dlpath`~
17020 test -d \$dldir || mkdir -p \$dldir~
17021 $install_prog $dir/$dlname \$dldir/$dlname~
17022 chmod a+x \$dldir/$dlname'
17023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17024 dlpath=$dir/\$dldll~
17026 shlibpath_overrides_runpath=yes
17030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17035 # MinGW DLLs use traditional 'lib' prefix
17036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17039 # It is most probably a Windows format PATH printed by
17040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17041 # path with ; separators, and with drive letters. We can handle the
17042 # drive letters (cygwin fileutils understands them), so leave them,
17043 # especially as we might pass files found there to a mingw objdump,
17044 # which wouldn't understand a cygwinified path. Ahh.
17045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17051 # pw32 DLLs use 'pw' prefix rather than 'lib'
17052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17061 dynamic_linker='Win32 ld.exe'
17062 # FIXME: first we should search . and the directory the executable is in
17066 darwin* | rhapsody*)
17067 dynamic_linker="$host_os dyld"
17068 version_type=darwin
17071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17072 soname_spec='${libname}${release}${major}$shared_ext'
17073 shlibpath_overrides_runpath=yes
17074 shlibpath_var=DYLD_LIBRARY_PATH
17075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17076 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17077 if test "$GCC" = yes; then
17078 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"`
17080 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 shlibpath_var=LD_LIBRARY_PATH
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17103 soname_spec='${libname}${release}${shared_ext}$major'
17104 shlibpath_var=LD_LIBRARY_PATH
17105 shlibpath_overrides_runpath=no
17106 hardcode_into_libs=yes
17107 dynamic_linker='GNU ld.so'
17110 freebsd* | dragonfly*)
17111 # DragonFly does not have aout. When/if they implement a new
17112 # versioning mechanism, adjust this.
17113 if test -x /usr/bin/objformat; then
17114 objformat=`/usr/bin/objformat`
17117 freebsd[123]*) objformat=aout ;;
17118 *) objformat=elf ;;
17121 version_type=freebsd-$objformat
17122 case $version_type in
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17133 shlibpath_var=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath=yes
17138 freebsd3.[01]* | freebsdelf3.[01]*)
17139 shlibpath_overrides_runpath=yes
17140 hardcode_into_libs=yes
17142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17144 shlibpath_overrides_runpath=no
17145 hardcode_into_libs=yes
17147 freebsd*) # from 4.6 on
17148 shlibpath_overrides_runpath=yes
17149 hardcode_into_libs=yes
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17159 soname_spec='${libname}${release}${shared_ext}$major'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 hardcode_into_libs=yes
17164 hpux9* | hpux10* | hpux11*)
17165 # Give a soname corresponding to the major version so that dld.sl refuses to
17166 # link against other versions.
17173 hardcode_into_libs=yes
17174 dynamic_linker="$host_os dld.so"
17175 shlibpath_var=LD_LIBRARY_PATH
17176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 if test "X$HPUX_IA64_MODE" = X32; then
17180 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17188 hardcode_into_libs=yes
17189 dynamic_linker="$host_os dld.sl"
17190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193 soname_spec='${libname}${release}${shared_ext}$major'
17194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17199 dynamic_linker="$host_os dld.sl"
17200 shlibpath_var=SHLIB_PATH
17201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17203 soname_spec='${libname}${release}${shared_ext}$major'
17206 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17207 postinstall_cmds='chmod 555 $lib'
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17217 shlibpath_var=LD_LIBRARY_PATH
17218 shlibpath_overrides_runpath=no
17219 hardcode_into_libs=yes
17222 irix5* | irix6* | nonstopux*)
17224 nonstopux*) version_type=nonstopux ;;
17226 if test "$lt_cv_prog_gnu_ld" = yes; then
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17237 irix5* | nonstopux*)
17238 libsuff= shlibsuff=
17241 case $LD in # libtool.m4 will add one of these switches to LD
17242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17243 libsuff= shlibsuff= libmagic=32-bit;;
17244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17245 libsuff=32 shlibsuff=N32 libmagic=N32;;
17246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17248 *) libsuff= shlibsuff= libmagic=never-match;;
17252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17253 shlibpath_overrides_runpath=no
17254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17256 hardcode_into_libs=yes
17259 # No shared lib support for Linux oldld, aout, or coff.
17260 linux*oldld* | linux*aout* | linux*coff*)
17264 # This must be Linux ELF.
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17272 shlibpath_var=LD_LIBRARY_PATH
17273 shlibpath_overrides_runpath=no
17274 # This implies no fast_install, which is unacceptable.
17275 # Some rework will be needed to allow for fast_install
17276 # before this can be enabled.
17277 hardcode_into_libs=yes
17279 # Append ld.so.conf contents to the search path
17280 if test -f /etc/ld.so.conf; then
17281 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17285 # We used to test for /lib/ld.so.1 and disable shared libraries on
17286 # powerpc, because MkLinux only supported shared libraries with the
17287 # GNU dynamic linker. Since this was broken with cross compilers,
17288 # most powerpc-linux boxes support dynamic linking these days and
17289 # people can always --disable-shared, the test was removed, and we
17290 # assume the GNU/Linux dynamic linker is in use.
17291 dynamic_linker='GNU/Linux ld.so'
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17299 soname_spec='${libname}${release}${shared_ext}$major'
17300 shlibpath_var=LD_LIBRARY_PATH
17301 shlibpath_overrides_runpath=no
17302 hardcode_into_libs=yes
17303 dynamic_linker='GNU ld.so'
17310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17313 dynamic_linker='NetBSD (a.out) ld.so'
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17316 soname_spec='${libname}${release}${shared_ext}$major'
17317 dynamic_linker='NetBSD ld.elf_so'
17319 shlibpath_var=LD_LIBRARY_PATH
17320 shlibpath_overrides_runpath=yes
17321 hardcode_into_libs=yes
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 shlibpath_overrides_runpath=yes
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 shlibpath_var=LD_LIBRARY_PATH
17338 shlibpath_overrides_runpath=yes
17343 sys_lib_dlsearch_path_spec="/usr/lib"
17345 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17347 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17348 *) need_version=no ;;
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17352 shlibpath_var=LD_LIBRARY_PATH
17353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17355 openbsd2.[89] | openbsd2.[89].*)
17356 shlibpath_overrides_runpath=no
17359 shlibpath_overrides_runpath=yes
17363 shlibpath_overrides_runpath=yes
17368 libname_spec='$name'
17371 library_names_spec='$libname${shared_ext} $libname.a'
17372 dynamic_linker='OS/2 ld.exe'
17373 shlibpath_var=LIBPATH
17376 osf3* | osf4* | osf5*)
17380 soname_spec='${libname}${release}${shared_ext}$major'
17381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392 soname_spec='${libname}${release}${shared_ext}$major'
17393 shlibpath_var=LD_LIBRARY_PATH
17394 shlibpath_overrides_runpath=yes
17395 hardcode_into_libs=yes
17396 # ldd complains unless libraries are executable
17397 postinstall_cmds='chmod +x $lib'
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 shlibpath_overrides_runpath=yes
17406 if test "$with_gnu_ld" = yes; then
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17415 soname_spec='${libname}${release}${shared_ext}$major'
17416 shlibpath_var=LD_LIBRARY_PATH
17417 case $host_vendor in
17419 shlibpath_overrides_runpath=no
17421 export_dynamic_flag_spec='${wl}-Blargedynsym'
17422 runpath_var=LD_RUN_PATH
17430 shlibpath_overrides_runpath=no
17431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17437 if test -d /usr/nec ;then
17439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17440 soname_spec='$libname${shared_ext}.$major'
17441 shlibpath_var=LD_LIBRARY_PATH
17445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17446 version_type=freebsd-elf
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 hardcode_into_libs=yes
17453 if test "$with_gnu_ld" = yes; then
17454 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17455 shlibpath_overrides_runpath=no
17457 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17458 shlibpath_overrides_runpath=yes
17461 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17465 sys_lib_dlsearch_path_spec='/usr/lib'
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 soname_spec='${libname}${release}${shared_ext}$major'
17472 shlibpath_var=LD_LIBRARY_PATH
17479 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17480 echo "${ECHO_T}$dynamic_linker" >&6
17481 test "$dynamic_linker" = no && can_build_shared=no
17483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17484 if test "$GCC" = yes; then
17485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17488 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17489 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17490 hardcode_action_GCJ=
17491 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17492 test -n "$runpath_var_GCJ" || \
17493 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17495 # We can hardcode non-existant directories.
17496 if test "$hardcode_direct_GCJ" != no &&
17497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17498 # have to relink, otherwise we might link with an installed library
17499 # when we should be linking with a yet-to-be-installed one
17500 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17501 test "$hardcode_minus_L_GCJ" != no; then
17502 # Linking always hardcodes the temporary library directory.
17503 hardcode_action_GCJ=relink
17505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17506 hardcode_action_GCJ=immediate
17509 # We cannot hardcode anything, or else we can only hardcode existing
17511 hardcode_action_GCJ=unsupported
17513 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17514 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17516 if test "$hardcode_action_GCJ" = relink; then
17517 # Fast installation is not supported
17518 enable_fast_install=no
17519 elif test "$shlibpath_overrides_runpath" = yes ||
17520 test "$enable_shared" = no; then
17521 # Fast installation is not necessary
17522 enable_fast_install=needless
17526 # The else clause should only fire when bootstrapping the
17527 # libtool distribution, otherwise you forgot to ship ltmain.sh
17528 # with your package, and you will get complaints that there are
17529 # no rules to generate ltmain.sh.
17530 if test -f "$ltmain"; then
17531 # See if we are running on zsh, and set the options which allow our commands through
17532 # without removal of \ escapes.
17533 if test -n "${ZSH_VERSION+set}" ; then
17534 setopt NO_GLOB_SUBST
17536 # Now quote all the things that may contain metacharacters while being
17537 # careful not to overquote the AC_SUBSTed values. We take copies of the
17538 # variables and quote the copies for generation of the libtool script.
17539 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17541 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17542 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17543 deplibs_check_method reload_flag reload_cmds need_locks \
17544 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17545 lt_cv_sys_global_symbol_to_c_name_address \
17546 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17547 old_postinstall_cmds old_postuninstall_cmds \
17551 lt_prog_compiler_wl_GCJ \
17552 lt_prog_compiler_pic_GCJ \
17553 lt_prog_compiler_static_GCJ \
17554 lt_prog_compiler_no_builtin_flag_GCJ \
17555 export_dynamic_flag_spec_GCJ \
17556 thread_safe_flag_spec_GCJ \
17557 whole_archive_flag_spec_GCJ \
17558 enable_shared_with_static_runtimes_GCJ \
17559 old_archive_cmds_GCJ \
17560 old_archive_from_new_cmds_GCJ \
17561 predep_objects_GCJ \
17562 postdep_objects_GCJ \
17565 compiler_lib_search_path_GCJ \
17567 archive_expsym_cmds_GCJ \
17568 postinstall_cmds_GCJ \
17569 postuninstall_cmds_GCJ \
17570 old_archive_from_expsyms_cmds_GCJ \
17571 allow_undefined_flag_GCJ \
17572 no_undefined_flag_GCJ \
17573 export_symbols_cmds_GCJ \
17574 hardcode_libdir_flag_spec_GCJ \
17575 hardcode_libdir_flag_spec_ld_GCJ \
17576 hardcode_libdir_separator_GCJ \
17577 hardcode_automatic_GCJ \
17579 module_expsym_cmds_GCJ \
17580 lt_cv_prog_compiler_c_o_GCJ \
17581 exclude_expsyms_GCJ \
17582 include_expsyms_GCJ; do
17585 old_archive_cmds_GCJ | \
17586 old_archive_from_new_cmds_GCJ | \
17587 archive_cmds_GCJ | \
17588 archive_expsym_cmds_GCJ | \
17589 module_cmds_GCJ | \
17590 module_expsym_cmds_GCJ | \
17591 old_archive_from_expsyms_cmds_GCJ | \
17592 export_symbols_cmds_GCJ | \
17593 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17594 postinstall_cmds | postuninstall_cmds | \
17595 old_postinstall_cmds | old_postuninstall_cmds | \
17596 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17597 # Double-quote double-evaled strings.
17598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17601 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17607 *'\$0 --fallback-echo"')
17608 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17614 cat <<__EOF__ >> "$cfgfile"
17615 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17619 # Shell to use when invoking shell scripts.
17622 # Whether or not to build shared libraries.
17623 build_libtool_libs=$enable_shared
17625 # Whether or not to build static libraries.
17626 build_old_libs=$enable_static
17628 # Whether or not to add -lc for building shared libraries.
17629 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17631 # Whether or not to disallow shared libs when runtime libs are static
17632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17634 # Whether or not to optimize for fast installation.
17635 fast_install=$enable_fast_install
17638 host_alias=$host_alias
17642 # The build system.
17643 build_alias=$build_alias
17647 # An echo program that does not interpret backslashes.
17652 AR_FLAGS=$lt_AR_FLAGS
17657 # LTCC compiler flags.
17658 LTCFLAGS=$lt_LTCFLAGS
17660 # A language-specific compiler.
17661 CC=$lt_compiler_GCJ
17663 # Is the compiler the GNU C compiler?
17669 # The linker used to build libraries.
17672 # Whether we need hard or soft links.
17675 # A BSD-compatible nm program.
17678 # A symbol stripping program
17681 # Used to examine libraries when file_magic_cmd begins "file"
17682 MAGIC_CMD=$MAGIC_CMD
17684 # Used on cygwin: DLL creation program.
17687 # Used on cygwin: object dumper.
17690 # Used on cygwin: assembler.
17693 # The name of the directory that contains temporary libtool files.
17696 # How to create reloadable object files.
17697 reload_flag=$lt_reload_flag
17698 reload_cmds=$lt_reload_cmds
17700 # How to pass a linker flag through the compiler.
17701 wl=$lt_lt_prog_compiler_wl_GCJ
17703 # Object file suffix (normally "o").
17704 objext="$ac_objext"
17706 # Old archive suffix (normally "a").
17709 # Shared library suffix (normally ".so").
17710 shrext_cmds='$shrext_cmds'
17712 # Executable file suffix (normally "").
17715 # Additional compiler flags for building library objects.
17716 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17719 # What is the maximum length of a command?
17720 max_cmd_len=$lt_cv_sys_max_cmd_len
17722 # Does compiler simultaneously support -c and -o options?
17723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17725 # Must we lock files when doing compilation?
17726 need_locks=$lt_need_locks
17728 # Do we need the lib prefix for modules?
17729 need_lib_prefix=$need_lib_prefix
17731 # Do we need a version for libraries?
17732 need_version=$need_version
17734 # Whether dlopen is supported.
17735 dlopen_support=$enable_dlopen
17737 # Whether dlopen of programs is supported.
17738 dlopen_self=$enable_dlopen_self
17740 # Whether dlopen of statically linked programs is supported.
17741 dlopen_self_static=$enable_dlopen_self_static
17743 # Compiler flag to prevent dynamic linking.
17744 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17746 # Compiler flag to turn off builtin functions.
17747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17749 # Compiler flag to allow reflexive dlopens.
17750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17752 # Compiler flag to generate shared objects directly from archives.
17753 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17755 # Compiler flag to generate thread-safe objects.
17756 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17758 # Library versioning type.
17759 version_type=$version_type
17761 # Format of library name prefix.
17762 libname_spec=$lt_libname_spec
17764 # List of archive names. First name is the real one, the rest are links.
17765 # The last name is the one that the linker finds with -lNAME.
17766 library_names_spec=$lt_library_names_spec
17768 # The coded name of the library, if different from the real name.
17769 soname_spec=$lt_soname_spec
17771 # Commands used to build and install an old-style archive.
17773 old_archive_cmds=$lt_old_archive_cmds_GCJ
17774 old_postinstall_cmds=$lt_old_postinstall_cmds
17775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17777 # Create an old-style archive from a shared archive.
17778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17780 # Create a temporary old-style archive to link instead of a shared archive.
17781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17783 # Commands used to build and install a shared archive.
17784 archive_cmds=$lt_archive_cmds_GCJ
17785 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17786 postinstall_cmds=$lt_postinstall_cmds
17787 postuninstall_cmds=$lt_postuninstall_cmds
17789 # Commands used to build a loadable module (assumed same as above if empty)
17790 module_cmds=$lt_module_cmds_GCJ
17791 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17793 # Commands to strip libraries.
17794 old_striplib=$lt_old_striplib
17795 striplib=$lt_striplib
17797 # Dependencies to place before the objects being linked to create a
17799 predep_objects=$lt_predep_objects_GCJ
17801 # Dependencies to place after the objects being linked to create a
17803 postdep_objects=$lt_postdep_objects_GCJ
17805 # Dependencies to place before the objects being linked to create a
17807 predeps=$lt_predeps_GCJ
17809 # Dependencies to place after the objects being linked to create a
17811 postdeps=$lt_postdeps_GCJ
17813 # The library search path used internally by the compiler when linking
17814 # a shared library.
17815 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17817 # Method to check whether dependent libraries are shared objects.
17818 deplibs_check_method=$lt_deplibs_check_method
17820 # Command to use when deplibs_check_method == file_magic.
17821 file_magic_cmd=$lt_file_magic_cmd
17823 # Flag that allows shared libraries with undefined symbols to be built.
17824 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17826 # Flag that forces no undefined symbols.
17827 no_undefined_flag=$lt_no_undefined_flag_GCJ
17829 # Commands used to finish a libtool library installation in a directory.
17830 finish_cmds=$lt_finish_cmds
17832 # Same as above, but a single script fragment to be evaled but not shown.
17833 finish_eval=$lt_finish_eval
17835 # Take the output of nm and produce a listing of raw symbols and C names.
17836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17838 # Transform the output of nm in a proper C declaration
17839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17841 # Transform the output of nm in a C name address pair
17842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17844 # This is the shared library runtime path variable.
17845 runpath_var=$runpath_var
17847 # This is the shared library path variable.
17848 shlibpath_var=$shlibpath_var
17850 # Is shlibpath searched before the hard-coded library search path?
17851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17853 # How to hardcode a shared library path into an executable.
17854 hardcode_action=$hardcode_action_GCJ
17856 # Whether we should hardcode library paths into libraries.
17857 hardcode_into_libs=$hardcode_into_libs
17859 # Flag to hardcode \$libdir into a binary during linking.
17860 # This must work even if \$libdir does not exist.
17861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17863 # If ld is used when linking, flag to hardcode \$libdir into
17864 # a binary during linking. This must work even if \$libdir does
17866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17868 # Whether we need a single -rpath flag with a separated argument.
17869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17872 # resulting binary.
17873 hardcode_direct=$hardcode_direct_GCJ
17875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17876 # resulting binary.
17877 hardcode_minus_L=$hardcode_minus_L_GCJ
17879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17880 # the resulting binary.
17881 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17883 # Set to yes if building a shared library automatically hardcodes DIR into the library
17884 # and all subsequent libraries and executables linked against it.
17885 hardcode_automatic=$hardcode_automatic_GCJ
17887 # Variables whose values should be saved in libtool wrapper scripts and
17888 # restored at relink time.
17889 variables_saved_for_relink="$variables_saved_for_relink"
17891 # Whether libtool must link a program against all its dependency libraries.
17892 link_all_deplibs=$link_all_deplibs_GCJ
17894 # Compile-time system search path for libraries
17895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17897 # Run-time system search path for libraries
17898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17900 # Fix the shell variable \$srcfile for the compiler.
17901 fix_srcfile_path="$fix_srcfile_path_GCJ"
17903 # Set to yes if exported symbols are required.
17904 always_export_symbols=$always_export_symbols_GCJ
17906 # The commands to list exported symbols.
17907 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17909 # The commands to extract the exported symbol list from a shared archive.
17910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17912 # Symbols that should not be listed in the preloaded symbols.
17913 exclude_expsyms=$lt_exclude_expsyms_GCJ
17915 # Symbols that must always be exported.
17916 include_expsyms=$lt_include_expsyms_GCJ
17918 # ### END LIBTOOL TAG CONFIG: $tagname
17924 # If there is no Makefile yet, we rely on a make rule to execute
17925 # `config.status --recheck' to rerun these tests and create the
17926 # libtool script then.
17927 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17928 if test -f "$ltmain_in"; then
17929 test -f Makefile && make "$ltmain"
17935 ac_cpp='$CPP $CPPFLAGS'
17936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17951 # Source file extension for RC test sources.
17954 # Object file extension for compiled RC test sources.
17958 # Code to be used in simple compile tests
17959 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17961 # Code to be used in simple link tests
17962 lt_simple_link_test_code="$lt_simple_compile_test_code"
17964 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17966 # If no C compiler was specified, use CC.
17969 # If no C compiler flags were specified, use CFLAGS.
17970 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17972 # Allow CC to be a program name with arguments.
17976 # save warnings/boilerplate of simple test code
17977 ac_outfile=conftest.$ac_objext
17978 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17980 _lt_compiler_boilerplate=`cat conftest.err`
17983 ac_outfile=conftest.$ac_objext
17984 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17986 _lt_linker_boilerplate=`cat conftest.err`
17990 # Allow CC to be a program name with arguments.
17995 for cc_temp in $compiler""; do
17997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18005 lt_cv_prog_compiler_c_o_RC=yes
18007 # The else clause should only fire when bootstrapping the
18008 # libtool distribution, otherwise you forgot to ship ltmain.sh
18009 # with your package, and you will get complaints that there are
18010 # no rules to generate ltmain.sh.
18011 if test -f "$ltmain"; then
18012 # See if we are running on zsh, and set the options which allow our commands through
18013 # without removal of \ escapes.
18014 if test -n "${ZSH_VERSION+set}" ; then
18015 setopt NO_GLOB_SUBST
18017 # Now quote all the things that may contain metacharacters while being
18018 # careful not to overquote the AC_SUBSTed values. We take copies of the
18019 # variables and quote the copies for generation of the libtool script.
18020 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18022 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18023 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18024 deplibs_check_method reload_flag reload_cmds need_locks \
18025 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18026 lt_cv_sys_global_symbol_to_c_name_address \
18027 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18028 old_postinstall_cmds old_postuninstall_cmds \
18032 lt_prog_compiler_wl_RC \
18033 lt_prog_compiler_pic_RC \
18034 lt_prog_compiler_static_RC \
18035 lt_prog_compiler_no_builtin_flag_RC \
18036 export_dynamic_flag_spec_RC \
18037 thread_safe_flag_spec_RC \
18038 whole_archive_flag_spec_RC \
18039 enable_shared_with_static_runtimes_RC \
18040 old_archive_cmds_RC \
18041 old_archive_from_new_cmds_RC \
18042 predep_objects_RC \
18043 postdep_objects_RC \
18046 compiler_lib_search_path_RC \
18048 archive_expsym_cmds_RC \
18049 postinstall_cmds_RC \
18050 postuninstall_cmds_RC \
18051 old_archive_from_expsyms_cmds_RC \
18052 allow_undefined_flag_RC \
18053 no_undefined_flag_RC \
18054 export_symbols_cmds_RC \
18055 hardcode_libdir_flag_spec_RC \
18056 hardcode_libdir_flag_spec_ld_RC \
18057 hardcode_libdir_separator_RC \
18058 hardcode_automatic_RC \
18060 module_expsym_cmds_RC \
18061 lt_cv_prog_compiler_c_o_RC \
18062 exclude_expsyms_RC \
18063 include_expsyms_RC; do
18066 old_archive_cmds_RC | \
18067 old_archive_from_new_cmds_RC | \
18068 archive_cmds_RC | \
18069 archive_expsym_cmds_RC | \
18071 module_expsym_cmds_RC | \
18072 old_archive_from_expsyms_cmds_RC | \
18073 export_symbols_cmds_RC | \
18074 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18075 postinstall_cmds | postuninstall_cmds | \
18076 old_postinstall_cmds | old_postuninstall_cmds | \
18077 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18078 # Double-quote double-evaled strings.
18079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18088 *'\$0 --fallback-echo"')
18089 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18095 cat <<__EOF__ >> "$cfgfile"
18096 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18100 # Shell to use when invoking shell scripts.
18103 # Whether or not to build shared libraries.
18104 build_libtool_libs=$enable_shared
18106 # Whether or not to build static libraries.
18107 build_old_libs=$enable_static
18109 # Whether or not to add -lc for building shared libraries.
18110 build_libtool_need_lc=$archive_cmds_need_lc_RC
18112 # Whether or not to disallow shared libs when runtime libs are static
18113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18115 # Whether or not to optimize for fast installation.
18116 fast_install=$enable_fast_install
18119 host_alias=$host_alias
18123 # The build system.
18124 build_alias=$build_alias
18128 # An echo program that does not interpret backslashes.
18133 AR_FLAGS=$lt_AR_FLAGS
18138 # LTCC compiler flags.
18139 LTCFLAGS=$lt_LTCFLAGS
18141 # A language-specific compiler.
18144 # Is the compiler the GNU C compiler?
18150 # The linker used to build libraries.
18153 # Whether we need hard or soft links.
18156 # A BSD-compatible nm program.
18159 # A symbol stripping program
18162 # Used to examine libraries when file_magic_cmd begins "file"
18163 MAGIC_CMD=$MAGIC_CMD
18165 # Used on cygwin: DLL creation program.
18168 # Used on cygwin: object dumper.
18171 # Used on cygwin: assembler.
18174 # The name of the directory that contains temporary libtool files.
18177 # How to create reloadable object files.
18178 reload_flag=$lt_reload_flag
18179 reload_cmds=$lt_reload_cmds
18181 # How to pass a linker flag through the compiler.
18182 wl=$lt_lt_prog_compiler_wl_RC
18184 # Object file suffix (normally "o").
18185 objext="$ac_objext"
18187 # Old archive suffix (normally "a").
18190 # Shared library suffix (normally ".so").
18191 shrext_cmds='$shrext_cmds'
18193 # Executable file suffix (normally "").
18196 # Additional compiler flags for building library objects.
18197 pic_flag=$lt_lt_prog_compiler_pic_RC
18200 # What is the maximum length of a command?
18201 max_cmd_len=$lt_cv_sys_max_cmd_len
18203 # Does compiler simultaneously support -c and -o options?
18204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18206 # Must we lock files when doing compilation?
18207 need_locks=$lt_need_locks
18209 # Do we need the lib prefix for modules?
18210 need_lib_prefix=$need_lib_prefix
18212 # Do we need a version for libraries?
18213 need_version=$need_version
18215 # Whether dlopen is supported.
18216 dlopen_support=$enable_dlopen
18218 # Whether dlopen of programs is supported.
18219 dlopen_self=$enable_dlopen_self
18221 # Whether dlopen of statically linked programs is supported.
18222 dlopen_self_static=$enable_dlopen_self_static
18224 # Compiler flag to prevent dynamic linking.
18225 link_static_flag=$lt_lt_prog_compiler_static_RC
18227 # Compiler flag to turn off builtin functions.
18228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18230 # Compiler flag to allow reflexive dlopens.
18231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18233 # Compiler flag to generate shared objects directly from archives.
18234 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18236 # Compiler flag to generate thread-safe objects.
18237 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18239 # Library versioning type.
18240 version_type=$version_type
18242 # Format of library name prefix.
18243 libname_spec=$lt_libname_spec
18245 # List of archive names. First name is the real one, the rest are links.
18246 # The last name is the one that the linker finds with -lNAME.
18247 library_names_spec=$lt_library_names_spec
18249 # The coded name of the library, if different from the real name.
18250 soname_spec=$lt_soname_spec
18252 # Commands used to build and install an old-style archive.
18254 old_archive_cmds=$lt_old_archive_cmds_RC
18255 old_postinstall_cmds=$lt_old_postinstall_cmds
18256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18258 # Create an old-style archive from a shared archive.
18259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18261 # Create a temporary old-style archive to link instead of a shared archive.
18262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18264 # Commands used to build and install a shared archive.
18265 archive_cmds=$lt_archive_cmds_RC
18266 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18267 postinstall_cmds=$lt_postinstall_cmds
18268 postuninstall_cmds=$lt_postuninstall_cmds
18270 # Commands used to build a loadable module (assumed same as above if empty)
18271 module_cmds=$lt_module_cmds_RC
18272 module_expsym_cmds=$lt_module_expsym_cmds_RC
18274 # Commands to strip libraries.
18275 old_striplib=$lt_old_striplib
18276 striplib=$lt_striplib
18278 # Dependencies to place before the objects being linked to create a
18280 predep_objects=$lt_predep_objects_RC
18282 # Dependencies to place after the objects being linked to create a
18284 postdep_objects=$lt_postdep_objects_RC
18286 # Dependencies to place before the objects being linked to create a
18288 predeps=$lt_predeps_RC
18290 # Dependencies to place after the objects being linked to create a
18292 postdeps=$lt_postdeps_RC
18294 # The library search path used internally by the compiler when linking
18295 # a shared library.
18296 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18298 # Method to check whether dependent libraries are shared objects.
18299 deplibs_check_method=$lt_deplibs_check_method
18301 # Command to use when deplibs_check_method == file_magic.
18302 file_magic_cmd=$lt_file_magic_cmd
18304 # Flag that allows shared libraries with undefined symbols to be built.
18305 allow_undefined_flag=$lt_allow_undefined_flag_RC
18307 # Flag that forces no undefined symbols.
18308 no_undefined_flag=$lt_no_undefined_flag_RC
18310 # Commands used to finish a libtool library installation in a directory.
18311 finish_cmds=$lt_finish_cmds
18313 # Same as above, but a single script fragment to be evaled but not shown.
18314 finish_eval=$lt_finish_eval
18316 # Take the output of nm and produce a listing of raw symbols and C names.
18317 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18319 # Transform the output of nm in a proper C declaration
18320 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18322 # Transform the output of nm in a C name address pair
18323 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18325 # This is the shared library runtime path variable.
18326 runpath_var=$runpath_var
18328 # This is the shared library path variable.
18329 shlibpath_var=$shlibpath_var
18331 # Is shlibpath searched before the hard-coded library search path?
18332 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18334 # How to hardcode a shared library path into an executable.
18335 hardcode_action=$hardcode_action_RC
18337 # Whether we should hardcode library paths into libraries.
18338 hardcode_into_libs=$hardcode_into_libs
18340 # Flag to hardcode \$libdir into a binary during linking.
18341 # This must work even if \$libdir does not exist.
18342 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18344 # If ld is used when linking, flag to hardcode \$libdir into
18345 # a binary during linking. This must work even if \$libdir does
18347 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18349 # Whether we need a single -rpath flag with a separated argument.
18350 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18352 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18353 # resulting binary.
18354 hardcode_direct=$hardcode_direct_RC
18356 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18357 # resulting binary.
18358 hardcode_minus_L=$hardcode_minus_L_RC
18360 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18361 # the resulting binary.
18362 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18364 # Set to yes if building a shared library automatically hardcodes DIR into the library
18365 # and all subsequent libraries and executables linked against it.
18366 hardcode_automatic=$hardcode_automatic_RC
18368 # Variables whose values should be saved in libtool wrapper scripts and
18369 # restored at relink time.
18370 variables_saved_for_relink="$variables_saved_for_relink"
18372 # Whether libtool must link a program against all its dependency libraries.
18373 link_all_deplibs=$link_all_deplibs_RC
18375 # Compile-time system search path for libraries
18376 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18378 # Run-time system search path for libraries
18379 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18381 # Fix the shell variable \$srcfile for the compiler.
18382 fix_srcfile_path="$fix_srcfile_path_RC"
18384 # Set to yes if exported symbols are required.
18385 always_export_symbols=$always_export_symbols_RC
18387 # The commands to list exported symbols.
18388 export_symbols_cmds=$lt_export_symbols_cmds_RC
18390 # The commands to extract the exported symbol list from a shared archive.
18391 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18393 # Symbols that should not be listed in the preloaded symbols.
18394 exclude_expsyms=$lt_exclude_expsyms_RC
18396 # Symbols that must always be exported.
18397 include_expsyms=$lt_include_expsyms_RC
18399 # ### END LIBTOOL TAG CONFIG: $tagname
18405 # If there is no Makefile yet, we rely on a make rule to execute
18406 # `config.status --recheck' to rerun these tests and create the
18407 # libtool script then.
18408 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18409 if test -f "$ltmain_in"; then
18410 test -f Makefile && make "$ltmain"
18416 ac_cpp='$CPP $CPPFLAGS'
18417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18426 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18427 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18428 { (exit 1); exit 1; }; }
18432 # Append the new tag name to the list of available tags.
18433 if test -n "$tagname" ; then
18434 available_tags="$available_tags $tagname"
18440 # Now substitute the updated list of available tags.
18441 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18442 mv "${ofile}T" "$ofile"
18446 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18447 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18448 { (exit 1); exit 1; }; }
18454 # This can be used to rebuild libtool when needed
18455 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18457 # Always use our own libtool.
18458 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18460 # Prevent multiple expansion
18473 # Check whether --with-system-libtool or --without-system-libtool was given.
18474 if test "${with_system_libtool+set}" = set; then
18475 withval="$with_system_libtool"
18476 # Extract the first word of "libtool", so it can be a program name with args.
18477 set dummy libtool; ac_word=$2
18478 echo "$as_me:$LINENO: checking for $ac_word" >&5
18479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18480 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 as_dummy="$PATH:/usr/local/bin"
18490 for as_dir in $as_dummy
18493 test -z "$as_dir" && as_dir=.
18494 for ac_exec_ext in '' $ac_executable_extensions; do
18495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18496 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18506 LIBTOOL=$ac_cv_path_LIBTOOL
18508 if test -n "$LIBTOOL"; then
18509 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18510 echo "${ECHO_T}$LIBTOOL" >&6
18512 echo "$as_me:$LINENO: result: no" >&5
18513 echo "${ECHO_T}no" >&6
18518 LIBTOOL="`pwd`/libtool"
18537 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18538 if test "${enable_strict_dependencies+set}" = set; then
18539 enableval="$enable_strict_dependencies"
18543 logdir='${localstatedir}/log/radius'
18544 echo "$as_me:$LINENO: checking logdir" >&5
18545 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18547 # Check whether --with-logdir or --without-logdir was given.
18548 if test "${with_logdir+set}" = set; then
18549 withval="$with_logdir"
18552 { { echo "$as_me:$LINENO: error: Need logdir" >&5
18553 echo "$as_me: error: Need logdir" >&2;}
18554 { (exit 1); exit 1; }; }
18565 echo "$as_me:$LINENO: result: $logdir" >&5
18566 echo "${ECHO_T}$logdir" >&6
18568 radacctdir='${logdir}/radacct'
18569 echo "$as_me:$LINENO: checking radacctdir" >&5
18570 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18572 # Check whether --with-radacctdir or --without-radacctdir was given.
18573 if test "${with_radacctdir+set}" = set; then
18574 withval="$with_radacctdir"
18577 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18578 echo "$as_me: error: Need radacctdir" >&2;}
18579 { (exit 1); exit 1; }; }
18584 radacctdir="$withval"
18590 echo "$as_me:$LINENO: result: $radacctdir" >&5
18591 echo "${ECHO_T}$radacctdir" >&6
18593 raddbdir='${sysconfdir}/raddb'
18594 echo "$as_me:$LINENO: checking raddbdir" >&5
18595 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18597 # Check whether --with-raddbdir or --without-raddbdir was given.
18598 if test "${with_raddbdir+set}" = set; then
18599 withval="$with_raddbdir"
18602 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18603 echo "$as_me: error: Need raddbdir" >&2;}
18604 { (exit 1); exit 1; }; }
18609 raddbdir="$withval"
18615 echo "$as_me:$LINENO: result: $raddbdir" >&5
18616 echo "${ECHO_T}$raddbdir" >&6
18620 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18621 if test "${with_ascend_binary+set}" = set; then
18622 withval="$with_ascend_binary"
18631 if test "X$ASCEND_BINARY" = "Xyes"; then
18632 cat >>confdefs.h <<\_ACEOF
18633 #define ASCEND_BINARY 1
18640 # Check whether --with-threads or --without-threads was given.
18641 if test "${with_threads+set}" = set; then
18642 withval="$with_threads"
18654 # Check whether --with-snmp or --without-snmp was given.
18655 if test "${with_snmp+set}" = set; then
18656 withval="$with_snmp"
18666 rad_enable_largefiles=no
18668 # Check whether --with-large-files or --without-large-files was given.
18669 if test "${with_large_files+set}" = set; then
18670 withval="$with_large_files"
18673 rad_enable_largefiles=yes
18684 # Check whether --with-static_modules or --without-static_modules was given.
18685 if test "${with_static_modules+set}" = set; then
18686 withval="$with_static_modules"
18688 for i in $withval; do
18689 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
18696 # Check whether --with-modules or --without-modules was given.
18697 if test "${with_modules+set}" = set; then
18698 withval="$with_modules"
18700 for i in $withval; do
18701 MODULES="$MODULES $i"
18706 # Check whether --enable-developer or --disable-developer was given.
18707 if test "${enable_developer+set}" = set; then
18708 enableval="$enable_developer"
18709 case "$enableval" in
18719 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
18725 # Check whether --with-experimental-modules or --without-experimental-modules was given.
18726 if test "${with_experimental_modules+set}" = set; then
18727 withval="$with_experimental_modules"
18737 OPENSSL_INCLUDE_DIR=
18739 # Check whether --with-openssl-includes or --without-openssl-includes was given.
18740 if test "${with_openssl_includes+set}" = set; then
18741 withval="$with_openssl_includes"
18743 *) OPENSSL_INCLUDE_DIR="$withval"
18751 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
18752 if test "${with_openssl_libraries+set}" = set; then
18753 withval="$with_openssl_libraries"
18755 *) OPENSSL_LIB_DIR="$withval"
18763 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
18764 if test "${with_rlm_FOO_lib_dir+set}" = set; then
18765 withval="$with_rlm_FOO_lib_dir"
18774 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
18775 if test "${with_rlm_FOO_include_dir+set}" = set; then
18776 withval="$with_rlm_FOO_include_dir"
18787 # Check whether --with-udpfromto or --without-udpfromto was given.
18788 if test "${with_udpfromto+set}" = set; then
18789 withval="$with_udpfromto"
18800 if test "x$WITH_UDPFROMTO" = "xyes"; then
18801 cat >>confdefs.h <<\_ACEOF
18802 #define WITH_UDPFROMTO 1
18808 # Check whether --with-edir or --without-edir was given.
18809 if test "${with_edir+set}" = set; then
18810 withval="$with_edir"
18815 CHECKRAD=checkrad.pl
18816 # Extract the first word of "perl", so it can be a program name with args.
18817 set dummy perl; ac_word=$2
18818 echo "$as_me:$LINENO: checking for $ac_word" >&5
18819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18820 if test "${ac_cv_path_PERL+set}" = set; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18829 for as_dir in $PATH
18832 test -z "$as_dir" && as_dir=.
18833 for ac_exec_ext in '' $ac_executable_extensions; do
18834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18835 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18842 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
18846 PERL=$ac_cv_path_PERL
18848 if test -n "$PERL"; then
18849 echo "$as_me:$LINENO: result: $PERL" >&5
18850 echo "${ECHO_T}$PERL" >&6
18852 echo "$as_me:$LINENO: result: no" >&5
18853 echo "${ECHO_T}no" >&6
18856 if test "x$ac_cv_path_PERL" = "x"; then
18857 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
18858 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18860 # Extract the first word of "snmpget", so it can be a program name with args.
18861 set dummy snmpget; ac_word=$2
18862 echo "$as_me:$LINENO: checking for $ac_word" >&5
18863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18864 if test "${ac_cv_path_SNMPGET+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
18872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18873 for as_dir in $PATH
18876 test -z "$as_dir" && as_dir=.
18877 for ac_exec_ext in '' $ac_executable_extensions; do
18878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18879 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
18880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18889 SNMPGET=$ac_cv_path_SNMPGET
18891 if test -n "$SNMPGET"; then
18892 echo "$as_me:$LINENO: result: $SNMPGET" >&5
18893 echo "${ECHO_T}$SNMPGET" >&6
18895 echo "$as_me:$LINENO: result: no" >&5
18896 echo "${ECHO_T}no" >&6
18899 if test "x$ac_cv_path_SNMPGET" = "x"; then
18900 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
18901 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18904 # Extract the first word of "snmpwalk", so it can be a program name with args.
18905 set dummy snmpwalk; ac_word=$2
18906 echo "$as_me:$LINENO: checking for $ac_word" >&5
18907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18908 if test "${ac_cv_path_SNMPWALK+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18913 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
18916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18917 for as_dir in $PATH
18920 test -z "$as_dir" && as_dir=.
18921 for ac_exec_ext in '' $ac_executable_extensions; do
18922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18923 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
18924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18933 SNMPWALK=$ac_cv_path_SNMPWALK
18935 if test -n "$SNMPWALK"; then
18936 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
18937 echo "${ECHO_T}$SNMPWALK" >&6
18939 echo "$as_me:$LINENO: result: no" >&5
18940 echo "${ECHO_T}no" >&6
18943 if test "x$ac_cv_path_SNMPWALK" = "x"; then
18944 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
18945 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18948 # Extract the first word of "rusers", so it can be a program name with args.
18949 set dummy rusers; ac_word=$2
18950 echo "$as_me:$LINENO: checking for $ac_word" >&5
18951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18952 if test "${ac_cv_path_RUSERS+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
18960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18961 for as_dir in $PATH
18964 test -z "$as_dir" && as_dir=.
18965 for ac_exec_ext in '' $ac_executable_extensions; do
18966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18967 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
18968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18974 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
18978 RUSERS=$ac_cv_path_RUSERS
18980 if test -n "$RUSERS"; then
18981 echo "$as_me:$LINENO: result: $RUSERS" >&5
18982 echo "${ECHO_T}$RUSERS" >&6
18984 echo "$as_me:$LINENO: result: no" >&5
18985 echo "${ECHO_T}no" >&6
18989 missing_dir=`cd $ac_aux_dir && pwd`
18990 echo "$as_me:$LINENO: checking for working aclocal" >&5
18991 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
18992 # Run test in a subshell; some versions of sh will print an error if
18993 # an executable is not found, even if stderr is redirected.
18994 # Redirect stdin to placate older versions of autoconf. Sigh.
18995 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
18997 echo "$as_me:$LINENO: result: found" >&5
18998 echo "${ECHO_T}found" >&6
19000 ACLOCAL="$missing_dir/missing aclocal"
19001 echo "$as_me:$LINENO: result: missing" >&5
19002 echo "${ECHO_T}missing" >&6
19005 echo "$as_me:$LINENO: checking for working autoconf" >&5
19006 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19007 # Run test in a subshell; some versions of sh will print an error if
19008 # an executable is not found, even if stderr is redirected.
19009 # Redirect stdin to placate older versions of autoconf. Sigh.
19010 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19012 echo "$as_me:$LINENO: result: found" >&5
19013 echo "${ECHO_T}found" >&6
19015 AUTOCONF="$missing_dir/missing autoconf"
19016 echo "$as_me:$LINENO: result: missing" >&5
19017 echo "${ECHO_T}missing" >&6
19020 echo "$as_me:$LINENO: checking for working autoheader" >&5
19021 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19022 # Run test in a subshell; some versions of sh will print an error if
19023 # an executable is not found, even if stderr is redirected.
19024 # Redirect stdin to placate older versions of autoconf. Sigh.
19025 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19026 AUTOHEADER=autoheader
19027 echo "$as_me:$LINENO: result: found" >&5
19028 echo "${ECHO_T}found" >&6
19030 AUTOHEADER="$missing_dir/missing autoheader"
19031 echo "$as_me:$LINENO: result: missing" >&5
19032 echo "${ECHO_T}missing" >&6
19036 # Extract the first word of "locate", so it can be a program name with args.
19037 set dummy locate; ac_word=$2
19038 echo "$as_me:$LINENO: checking for $ac_word" >&5
19039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19040 if test "${ac_cv_path_LOCATE+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19049 for as_dir in $PATH
19052 test -z "$as_dir" && as_dir=.
19053 for ac_exec_ext in '' $ac_executable_extensions; do
19054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19055 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19065 LOCATE=$ac_cv_path_LOCATE
19067 if test -n "$LOCATE"; then
19068 echo "$as_me:$LINENO: result: $LOCATE" >&5
19069 echo "${ECHO_T}$LOCATE" >&6
19071 echo "$as_me:$LINENO: result: no" >&5
19072 echo "${ECHO_T}no" >&6
19075 # Extract the first word of "dirname", so it can be a program name with args.
19076 set dummy dirname; ac_word=$2
19077 echo "$as_me:$LINENO: checking for $ac_word" >&5
19078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19079 if test "${ac_cv_path_DIRNAME+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19088 for as_dir in $PATH
19091 test -z "$as_dir" && as_dir=.
19092 for ac_exec_ext in '' $ac_executable_extensions; do
19093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19094 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19104 DIRNAME=$ac_cv_path_DIRNAME
19106 if test -n "$DIRNAME"; then
19107 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19108 echo "${ECHO_T}$DIRNAME" >&6
19110 echo "$as_me:$LINENO: result: no" >&5
19111 echo "${ECHO_T}no" >&6
19114 # Extract the first word of "grep", so it can be a program name with args.
19115 set dummy grep; ac_word=$2
19116 echo "$as_me:$LINENO: checking for $ac_word" >&5
19117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19118 if test "${ac_cv_path_GREP+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19127 for as_dir in $PATH
19130 test -z "$as_dir" && as_dir=.
19131 for ac_exec_ext in '' $ac_executable_extensions; do
19132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19133 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19143 GREP=$ac_cv_path_GREP
19145 if test -n "$GREP"; then
19146 echo "$as_me:$LINENO: result: $GREP" >&5
19147 echo "${ECHO_T}$GREP" >&6
19149 echo "$as_me:$LINENO: result: no" >&5
19150 echo "${ECHO_T}no" >&6
19156 if test "x$WITH_THREADS" = "xyes"; then
19157 if test $ac_cv_prog_suncc = "yes"; then
19158 CFLAGS="$CFLAGS -mt"
19162 for ac_header in pthread.h
19164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19166 echo "$as_me:$LINENO: checking for $ac_header" >&5
19167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19169 echo $ECHO_N "(cached) $ECHO_C" >&6
19171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19174 # Is the header compilable?
19175 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19177 cat >conftest.$ac_ext <<_ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 $ac_includes_default
19184 #include <$ac_header>
19186 rm -f conftest.$ac_objext
19187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19188 (eval $ac_compile) 2>conftest.er1
19190 grep -v '^ *+' conftest.er1 >conftest.err
19192 cat conftest.err >&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } &&
19195 { ac_try='test -z "$ac_c_werror_flag"
19196 || test ! -s conftest.err'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } &&
19202 { ac_try='test -s conftest.$ac_objext'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_header_compiler=yes
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 ac_header_compiler=no
19215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19217 echo "${ECHO_T}$ac_header_compiler" >&6
19219 # Is the header present?
19220 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19222 cat >conftest.$ac_ext <<_ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h. */
19228 #include <$ac_header>
19230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19233 grep -v '^ *+' conftest.er1 >conftest.err
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } >/dev/null; then
19238 if test -s conftest.err; then
19239 ac_cpp_err=$ac_c_preproc_warn_flag
19240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19247 if test -z "$ac_cpp_err"; then
19248 ac_header_preproc=yes
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19253 ac_header_preproc=no
19255 rm -f conftest.err conftest.$ac_ext
19256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19257 echo "${ECHO_T}$ac_header_preproc" >&6
19259 # So? What about this header?
19260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19266 ac_header_preproc=yes
19269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19272 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19276 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19283 ## ------------------------------------------ ##
19284 ## Report this to the AC_PACKAGE_NAME lists. ##
19285 ## ------------------------------------------ ##
19288 sed "s/^/$as_me: WARNING: /" >&2
19291 echo "$as_me:$LINENO: checking for $ac_header" >&5
19292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 eval "$as_ac_Header=\$ac_header_preproc"
19298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19303 cat >>confdefs.h <<_ACEOF
19304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19314 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19315 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19316 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 ac_check_lib_save_LIBS=$LIBS
19320 LIBS="-lpthread $LIBS"
19321 cat >conftest.$ac_ext <<_ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19328 /* Override any gcc2 internal prototype to avoid an error. */
19332 /* We use char because int might match the return type of a gcc2
19333 builtin and then its argument prototype would still apply. */
19334 char pthread_create ();
19343 rm -f conftest.$ac_objext conftest$ac_exeext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345 (eval $ac_link) 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_c_werror_flag"
19353 || test ! -s conftest.err'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest$ac_exeext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 ac_cv_lib_pthread_pthread_create=yes
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 ac_cv_lib_pthread_pthread_create=no
19372 rm -f conftest.err conftest.$ac_objext \
19373 conftest$ac_exeext conftest.$ac_ext
19374 LIBS=$ac_check_lib_save_LIBS
19376 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19377 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19378 if test $ac_cv_lib_pthread_pthread_create = yes; then
19379 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19380 LIBS="$LIBS -lpthread"
19382 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19383 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19384 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 ac_check_lib_save_LIBS=$LIBS
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19396 /* Override any gcc2 internal prototype to avoid an error. */
19400 /* We use char because int might match the return type of a gcc2
19401 builtin and then its argument prototype would still apply. */
19402 char pthread_create ();
19411 rm -f conftest.$ac_objext conftest$ac_exeext
19412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19413 (eval $ac_link) 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
19420 { ac_try='test -z "$ac_c_werror_flag"
19421 || test ! -s conftest.err'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; } &&
19427 { ac_try='test -s conftest$ac_exeext'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 ac_cv_lib_c_r_pthread_create=yes
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ac_cv_lib_c_r_pthread_create=no
19440 rm -f conftest.err conftest.$ac_objext \
19441 conftest$ac_exeext conftest.$ac_ext
19442 LIBS=$ac_check_lib_save_LIBS
19444 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19445 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19446 if test $ac_cv_lib_c_r_pthread_create = yes; then
19447 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19458 if test "x$WITH_THREADS" != "xyes"; then
19460 ac_cv_header_pthread_h="no"
19464 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19465 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19466 if test "${ac_cv_search_sem_init+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 ac_func_search_save_LIBS=$LIBS
19470 ac_cv_search_sem_init=no
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 /* Override any gcc2 internal prototype to avoid an error. */
19482 /* We use char because int might match the return type of a gcc2
19483 builtin and then its argument prototype would still apply. */
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19495 (eval $ac_link) 2>conftest.er1
19497 grep -v '^ *+' conftest.er1 >conftest.err
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try='test -z "$ac_c_werror_flag"
19503 || test ! -s conftest.err'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest$ac_exeext'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 ac_cv_search_sem_init="none required"
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19521 rm -f conftest.err conftest.$ac_objext \
19522 conftest$ac_exeext conftest.$ac_ext
19523 if test "$ac_cv_search_sem_init" = no; then
19524 for ac_lib in pthread sem posix4 rt; do
19525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19526 cat >conftest.$ac_ext <<_ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 /* Override any gcc2 internal prototype to avoid an error. */
19537 /* We use char because int might match the return type of a gcc2
19538 builtin and then its argument prototype would still apply. */
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550 (eval $ac_link) 2>conftest.er1
19552 grep -v '^ *+' conftest.er1 >conftest.err
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest$ac_exeext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_search_sem_init="-l$ac_lib"
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19577 rm -f conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19581 LIBS=$ac_func_search_save_LIBS
19583 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19584 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19585 if test "$ac_cv_search_sem_init" != no; then
19586 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19589 { { 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
19590 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;}
19591 { (exit 1); exit 1; }; }
19598 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19599 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19600 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 ac_check_lib_save_LIBS=$LIBS
19604 LIBS="-lsocket $LIBS"
19605 cat >conftest.$ac_ext <<_ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19612 /* Override any gcc2 internal prototype to avoid an error. */
19616 /* We use char because int might match the return type of a gcc2
19617 builtin and then its argument prototype would still apply. */
19618 char getsockname ();
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19629 (eval $ac_link) 2>conftest.er1
19631 grep -v '^ *+' conftest.er1 >conftest.err
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_c_werror_flag"
19637 || test ! -s conftest.err'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest$ac_exeext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 ac_cv_lib_socket_getsockname=yes
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 ac_cv_lib_socket_getsockname=no
19656 rm -f conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
19658 LIBS=$ac_check_lib_save_LIBS
19660 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19661 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19662 if test $ac_cv_lib_socket_getsockname = yes; then
19663 cat >>confdefs.h <<_ACEOF
19664 #define HAVE_LIBSOCKET 1
19667 LIBS="-lsocket $LIBS"
19673 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19674 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19675 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 ac_check_lib_save_LIBS=$LIBS
19679 LIBS="-lresolv $LIBS"
19680 cat >conftest.$ac_ext <<_ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19687 /* Override any gcc2 internal prototype to avoid an error. */
19691 /* We use char because int might match the return type of a gcc2
19692 builtin and then its argument prototype would still apply. */
19702 rm -f conftest.$ac_objext conftest$ac_exeext
19703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19704 (eval $ac_link) 2>conftest.er1
19706 grep -v '^ *+' conftest.er1 >conftest.err
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
19711 { ac_try='test -z "$ac_c_werror_flag"
19712 || test ! -s conftest.err'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest$ac_exeext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 ac_cv_lib_resolv_inet_aton=yes
19726 echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19729 ac_cv_lib_resolv_inet_aton=no
19731 rm -f conftest.err conftest.$ac_objext \
19732 conftest$ac_exeext conftest.$ac_ext
19733 LIBS=$ac_check_lib_save_LIBS
19735 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19736 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19737 if test $ac_cv_lib_resolv_inet_aton = yes; then
19738 cat >>confdefs.h <<_ACEOF
19739 #define HAVE_LIBRESOLV 1
19742 LIBS="-lresolv $LIBS"
19748 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19749 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19750 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 ac_check_lib_save_LIBS=$LIBS
19755 cat >conftest.$ac_ext <<_ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19762 /* Override any gcc2 internal prototype to avoid an error. */
19766 /* We use char because int might match the return type of a gcc2
19767 builtin and then its argument prototype would still apply. */
19777 rm -f conftest.$ac_objext conftest$ac_exeext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19779 (eval $ac_link) 2>conftest.er1
19781 grep -v '^ *+' conftest.er1 >conftest.err
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try='test -z "$ac_c_werror_flag"
19787 || test ! -s conftest.err'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest$ac_exeext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_cv_lib_nsl_inet_ntoa=yes
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ac_cv_lib_nsl_inet_ntoa=no
19806 rm -f conftest.err conftest.$ac_objext \
19807 conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19810 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
19811 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
19812 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
19813 cat >>confdefs.h <<_ACEOF
19814 #define HAVE_LIBNSL 1
19824 if test "x$OPENSSL_LIB_DIR" != "x"; then
19825 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
19827 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
19828 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
19829 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lcrypto $LIBS"
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19841 /* Override any gcc2 internal prototype to avoid an error. */
19845 /* We use char because int might match the return type of a gcc2
19846 builtin and then its argument prototype would still apply. */
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19858 (eval $ac_link) 2>conftest.er1
19860 grep -v '^ *+' conftest.er1 >conftest.err
19862 cat conftest.err >&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } &&
19865 { ac_try='test -z "$ac_c_werror_flag"
19866 || test ! -s conftest.err'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; } &&
19872 { ac_try='test -s conftest$ac_exeext'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 ac_cv_lib_crypto_DH_new=yes
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ac_cv_lib_crypto_DH_new=no
19885 rm -f conftest.err conftest.$ac_objext \
19886 conftest$ac_exeext conftest.$ac_ext
19887 LIBS=$ac_check_lib_save_LIBS
19889 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
19890 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
19891 if test $ac_cv_lib_crypto_DH_new = yes; then
19894 cat >>confdefs.h <<\_ACEOF
19895 #define HAVE_LIBCRYPTO 1
19898 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
19899 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
19900 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 ac_check_lib_save_LIBS=$LIBS
19905 cat >conftest.$ac_ext <<_ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19912 /* Override any gcc2 internal prototype to avoid an error. */
19916 /* We use char because int might match the return type of a gcc2
19917 builtin and then its argument prototype would still apply. */
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>conftest.er1
19931 grep -v '^ *+' conftest.er1 >conftest.err
19933 cat conftest.err >&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); } &&
19936 { ac_try='test -z "$ac_c_werror_flag"
19937 || test ! -s conftest.err'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest$ac_exeext'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 ac_cv_lib_ssl_SSL_new=yes
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19954 ac_cv_lib_ssl_SSL_new=no
19956 rm -f conftest.err conftest.$ac_objext \
19957 conftest$ac_exeext conftest.$ac_ext
19958 LIBS=$ac_check_lib_save_LIBS
19960 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
19961 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
19962 if test $ac_cv_lib_ssl_SSL_new = yes; then
19965 cat >>confdefs.h <<\_ACEOF
19966 #define HAVE_LIBSSL 1
19969 if test "x$OPENSSL_LIB_DIR" != "x"; then
19970 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
19972 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
19984 CFLAGS="$CFLAGS -D_ALL_SOURCE"
19987 CFLAGS="$CFLAGS -DDARWIN"
19996 ac_header_dirent=no
19997 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19998 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19999 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20000 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 #include <sys/types.h>
20022 rm -f conftest.$ac_objext
20023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20024 (eval $ac_compile) 2>conftest.er1
20026 grep -v '^ *+' conftest.er1 >conftest.err
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } &&
20031 { ac_try='test -z "$ac_c_werror_flag"
20032 || test ! -s conftest.err'
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; } &&
20038 { ac_try='test -s conftest.$ac_objext'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
20044 eval "$as_ac_Header=yes"
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20049 eval "$as_ac_Header=no"
20051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20056 cat >>confdefs.h <<_ACEOF
20057 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20060 ac_header_dirent=$ac_hdr; break
20064 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20065 if test $ac_header_dirent = dirent.h; then
20066 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20067 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20068 if test "${ac_cv_search_opendir+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20071 ac_func_search_save_LIBS=$LIBS
20072 ac_cv_search_opendir=no
20073 cat >conftest.$ac_ext <<_ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20080 /* Override any gcc2 internal prototype to avoid an error. */
20084 /* We use char because int might match the return type of a gcc2
20085 builtin and then its argument prototype would still apply. */
20095 rm -f conftest.$ac_objext conftest$ac_exeext
20096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20097 (eval $ac_link) 2>conftest.er1
20099 grep -v '^ *+' conftest.er1 >conftest.err
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
20104 { ac_try='test -z "$ac_c_werror_flag"
20105 || test ! -s conftest.err'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest$ac_exeext'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20117 ac_cv_search_opendir="none required"
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20123 rm -f conftest.err conftest.$ac_objext \
20124 conftest$ac_exeext conftest.$ac_ext
20125 if test "$ac_cv_search_opendir" = no; then
20126 for ac_lib in dir; do
20127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20135 /* Override any gcc2 internal prototype to avoid an error. */
20139 /* We use char because int might match the return type of a gcc2
20140 builtin and then its argument prototype would still apply. */
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20152 (eval $ac_link) 2>conftest.er1
20154 grep -v '^ *+' conftest.er1 >conftest.err
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } &&
20159 { ac_try='test -z "$ac_c_werror_flag"
20160 || test ! -s conftest.err'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest$ac_exeext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 ac_cv_search_opendir="-l$ac_lib"
20175 echo "$as_me: failed program was:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20179 rm -f conftest.err conftest.$ac_objext \
20180 conftest$ac_exeext conftest.$ac_ext
20183 LIBS=$ac_func_search_save_LIBS
20185 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20186 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20187 if test "$ac_cv_search_opendir" != no; then
20188 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20193 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20194 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20195 if test "${ac_cv_search_opendir+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 ac_func_search_save_LIBS=$LIBS
20199 ac_cv_search_opendir=no
20200 cat >conftest.$ac_ext <<_ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20207 /* Override any gcc2 internal prototype to avoid an error. */
20211 /* We use char because int might match the return type of a gcc2
20212 builtin and then its argument prototype would still apply. */
20222 rm -f conftest.$ac_objext conftest$ac_exeext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20224 (eval $ac_link) 2>conftest.er1
20226 grep -v '^ *+' conftest.er1 >conftest.err
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -z "$ac_c_werror_flag"
20232 || test ! -s conftest.err'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest$ac_exeext'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 ac_cv_search_opendir="none required"
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20250 rm -f conftest.err conftest.$ac_objext \
20251 conftest$ac_exeext conftest.$ac_ext
20252 if test "$ac_cv_search_opendir" = no; then
20253 for ac_lib in x; do
20254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20255 cat >conftest.$ac_ext <<_ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20262 /* Override any gcc2 internal prototype to avoid an error. */
20266 /* We use char because int might match the return type of a gcc2
20267 builtin and then its argument prototype would still apply. */
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20279 (eval $ac_link) 2>conftest.er1
20281 grep -v '^ *+' conftest.er1 >conftest.err
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } &&
20286 { ac_try='test -z "$ac_c_werror_flag"
20287 || test ! -s conftest.err'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest$ac_exeext'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_cv_search_opendir="-l$ac_lib"
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20306 rm -f conftest.err conftest.$ac_objext \
20307 conftest$ac_exeext conftest.$ac_ext
20310 LIBS=$ac_func_search_save_LIBS
20312 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20313 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20314 if test "$ac_cv_search_opendir" != no; then
20315 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20321 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20322 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20323 if test "${ac_cv_header_stdc+set}" = set; then
20324 echo $ECHO_N "(cached) $ECHO_C" >&6
20326 cat >conftest.$ac_ext <<_ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332 #include <stdlib.h>
20333 #include <stdarg.h>
20334 #include <string.h>
20345 rm -f conftest.$ac_objext
20346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20347 (eval $ac_compile) 2>conftest.er1
20349 grep -v '^ *+' conftest.er1 >conftest.err
20351 cat conftest.err >&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
20354 { ac_try='test -z "$ac_c_werror_flag"
20355 || test ! -s conftest.err'
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; } &&
20361 { ac_try='test -s conftest.$ac_objext'
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; }; then
20367 ac_cv_header_stdc=yes
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20372 ac_cv_header_stdc=no
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20376 if test $ac_cv_header_stdc = yes; then
20377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20378 cat >conftest.$ac_ext <<_ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 #include <string.h>
20387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20388 $EGREP "memchr" >/dev/null 2>&1; then
20391 ac_cv_header_stdc=no
20397 if test $ac_cv_header_stdc = yes; then
20398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 #include <stdlib.h>
20408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20409 $EGREP "free" >/dev/null 2>&1; then
20412 ac_cv_header_stdc=no
20418 if test $ac_cv_header_stdc = yes; then
20419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20420 if test "$cross_compiling" = yes; then
20423 cat >conftest.$ac_ext <<_ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20430 #if ((' ' & 0x0FF) == 0x020)
20431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20434 # define ISLOWER(c) \
20435 (('a' <= (c) && (c) <= 'i') \
20436 || ('j' <= (c) && (c) <= 'r') \
20437 || ('s' <= (c) && (c) <= 'z'))
20438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20446 for (i = 0; i < 256; i++)
20447 if (XOR (islower (i), ISLOWER (i))
20448 || toupper (i) != TOUPPER (i))
20453 rm -f conftest$ac_exeext
20454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20455 (eval $ac_link) 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20466 echo "$as_me: program exited with status $ac_status" >&5
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ( exit $ac_status )
20471 ac_cv_header_stdc=no
20473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20477 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20478 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20479 if test $ac_cv_header_stdc = yes; then
20481 cat >>confdefs.h <<\_ACEOF
20482 #define STDC_HEADERS 1
20487 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20488 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20489 if test "${ac_cv_header_time+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 #include <sys/types.h>
20499 #include <sys/time.h>
20505 if ((struct tm *) 0)
20511 rm -f conftest.$ac_objext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20513 (eval $ac_compile) 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } &&
20520 { ac_try='test -z "$ac_c_werror_flag"
20521 || test ! -s conftest.err'
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; } &&
20527 { ac_try='test -s conftest.$ac_objext'
20528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529 (eval $ac_try) 2>&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; }; then
20533 ac_cv_header_time=yes
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20538 ac_cv_header_time=no
20540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20542 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20543 echo "${ECHO_T}$ac_cv_header_time" >&6
20544 if test $ac_cv_header_time = yes; then
20546 cat >>confdefs.h <<\_ACEOF
20547 #define TIME_WITH_SYS_TIME 1
20552 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20553 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20554 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 cat >conftest.$ac_ext <<_ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20563 #include <sys/types.h>
20564 #include <sys/wait.h>
20565 #ifndef WEXITSTATUS
20566 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20569 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20577 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20582 rm -f conftest.$ac_objext
20583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20584 (eval $ac_compile) 2>conftest.er1
20586 grep -v '^ *+' conftest.er1 >conftest.err
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } &&
20591 { ac_try='test -z "$ac_c_werror_flag"
20592 || test ! -s conftest.err'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; } &&
20598 { ac_try='test -s conftest.$ac_objext'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 ac_cv_header_sys_wait_h=yes
20606 echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20609 ac_cv_header_sys_wait_h=no
20611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20613 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20614 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20615 if test $ac_cv_header_sys_wait_h = yes; then
20617 cat >>confdefs.h <<\_ACEOF
20618 #define HAVE_SYS_WAIT_H 1
20687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20689 echo "$as_me:$LINENO: checking for $ac_header" >&5
20690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20697 # Is the header compilable?
20698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 $ac_includes_default
20707 #include <$ac_header>
20709 rm -f conftest.$ac_objext
20710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20711 (eval $ac_compile) 2>conftest.er1
20713 grep -v '^ *+' conftest.er1 >conftest.err
20715 cat conftest.err >&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } &&
20718 { ac_try='test -z "$ac_c_werror_flag"
20719 || test ! -s conftest.err'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; } &&
20725 { ac_try='test -s conftest.$ac_objext'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20731 ac_header_compiler=yes
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20736 ac_header_compiler=no
20738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20740 echo "${ECHO_T}$ac_header_compiler" >&6
20742 # Is the header present?
20743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20745 cat >conftest.$ac_ext <<_ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 #include <$ac_header>
20753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20756 grep -v '^ *+' conftest.er1 >conftest.err
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } >/dev/null; then
20761 if test -s conftest.err; then
20762 ac_cpp_err=$ac_c_preproc_warn_flag
20763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20770 if test -z "$ac_cpp_err"; then
20771 ac_header_preproc=yes
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ac_header_preproc=no
20778 rm -f conftest.err conftest.$ac_ext
20779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20780 echo "${ECHO_T}$ac_header_preproc" >&6
20782 # So? What about this header?
20783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20789 ac_header_preproc=yes
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20806 ## ------------------------------------------ ##
20807 ## Report this to the AC_PACKAGE_NAME lists. ##
20808 ## ------------------------------------------ ##
20811 sed "s/^/$as_me: WARNING: /" >&2
20814 echo "$as_me:$LINENO: checking for $ac_header" >&5
20815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 eval "$as_ac_Header=\$ac_header_preproc"
20821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20826 cat >>confdefs.h <<_ACEOF
20827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20836 if test "${ac_cv_header_regex_h+set}" = set; then
20837 echo "$as_me:$LINENO: checking for regex.h" >&5
20838 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20839 if test "${ac_cv_header_regex_h+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20843 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20845 # Is the header compilable?
20846 echo "$as_me:$LINENO: checking regex.h usability" >&5
20847 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 $ac_includes_default
20857 rm -f conftest.$ac_objext
20858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20859 (eval $ac_compile) 2>conftest.er1
20861 grep -v '^ *+' conftest.er1 >conftest.err
20863 cat conftest.err >&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } &&
20866 { ac_try='test -z "$ac_c_werror_flag"
20867 || test ! -s conftest.err'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; } &&
20873 { ac_try='test -s conftest.$ac_objext'
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
20879 ac_header_compiler=yes
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 ac_header_compiler=no
20886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20888 echo "${ECHO_T}$ac_header_compiler" >&6
20890 # Is the header present?
20891 echo "$as_me:$LINENO: checking regex.h presence" >&5
20892 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20904 grep -v '^ *+' conftest.er1 >conftest.err
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } >/dev/null; then
20909 if test -s conftest.err; then
20910 ac_cpp_err=$ac_c_preproc_warn_flag
20911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20918 if test -z "$ac_cpp_err"; then
20919 ac_header_preproc=yes
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ac_header_preproc=no
20926 rm -f conftest.err conftest.$ac_ext
20927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20928 echo "${ECHO_T}$ac_header_preproc" >&6
20930 # So? What about this header?
20931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20933 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20934 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20935 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20936 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20937 ac_header_preproc=yes
20940 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20941 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20942 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20943 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20945 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20947 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
20948 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20949 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20950 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20951 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20954 ## ------------------------------------------ ##
20955 ## Report this to the AC_PACKAGE_NAME lists. ##
20956 ## ------------------------------------------ ##
20959 sed "s/^/$as_me: WARNING: /" >&2
20962 echo "$as_me:$LINENO: checking for regex.h" >&5
20963 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20964 if test "${ac_cv_header_regex_h+set}" = set; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 ac_cv_header_regex_h=$ac_header_preproc
20969 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20970 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20973 if test $ac_cv_header_regex_h = yes; then
20974 cat >>confdefs.h <<\_ACEOF
20975 #define HAVE_REGEX_H 1
20981 if test "x$ac_cv_header_regex_h" = "xyes"; then
20984 cat >conftest.$ac_ext <<_ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h. */
20991 #ifdef REG_EXTENDED
20996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20997 $EGREP "yes" >/dev/null 2>&1; then
20998 cat >>confdefs.h <<\_ACEOF
20999 #define HAVE_REG_EXTENDED 1
21009 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21011 cat >>confdefs.h <<\_ACEOF
21017 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21019 cat >>confdefs.h <<\_ACEOF
21025 OPENSSL_INCLUDE="-DNO_OPENSSL"
21026 if test "x$OPENSSL_LIBS" = "x"; then
21027 { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21028 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21030 old_CPPFLAGS=$CPPFLAGS
21031 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21032 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21034 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21047 echo "$as_me:$LINENO: checking for $ac_header" >&5
21048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21055 # Is the header compilable?
21056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21058 cat >conftest.$ac_ext <<_ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21064 $ac_includes_default
21065 #include <$ac_header>
21067 rm -f conftest.$ac_objext
21068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21069 (eval $ac_compile) 2>conftest.er1
21071 grep -v '^ *+' conftest.er1 >conftest.err
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
21076 { ac_try='test -z "$ac_c_werror_flag"
21077 || test ! -s conftest.err'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest.$ac_objext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 ac_header_compiler=yes
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ac_header_compiler=no
21096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21098 echo "${ECHO_T}$ac_header_compiler" >&6
21100 # Is the header present?
21101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21103 cat >conftest.$ac_ext <<_ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21109 #include <$ac_header>
21111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21114 grep -v '^ *+' conftest.er1 >conftest.err
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } >/dev/null; then
21119 if test -s conftest.err; then
21120 ac_cpp_err=$ac_c_preproc_warn_flag
21121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21128 if test -z "$ac_cpp_err"; then
21129 ac_header_preproc=yes
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21134 ac_header_preproc=no
21136 rm -f conftest.err conftest.$ac_ext
21137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21138 echo "${ECHO_T}$ac_header_preproc" >&6
21140 # So? What about this header?
21141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21147 ac_header_preproc=yes
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21164 ## ------------------------------------------ ##
21165 ## Report this to the AC_PACKAGE_NAME lists. ##
21166 ## ------------------------------------------ ##
21169 sed "s/^/$as_me: WARNING: /" >&2
21172 echo "$as_me:$LINENO: checking for $ac_header" >&5
21173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 eval "$as_ac_Header=\$ac_header_preproc"
21179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21184 cat >>confdefs.h <<_ACEOF
21185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21195 if test "x$OPENSSL_LIBS" != "x"; then
21196 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21197 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21198 cat >conftest.$ac_ext <<_ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 #include <openssl/crypto.h>
21205 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21211 $EGREP "yes" >/dev/null 2>&1; then
21216 if test "x$goodssl" != "xyes"; then
21217 echo "$as_me:$LINENO: result: no" >&5
21218 echo "${ECHO_T}no" >&6
21221 echo "$as_me:$LINENO: result: yes" >&5
21222 echo "${ECHO_T}yes" >&6
21223 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21224 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21226 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21230 CPPFLAGS=$old_CPPFLAGS
21234 export OPENSSL_LIBS
21237 echo "$as_me:$LINENO: checking for off_t" >&5
21238 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21239 if test "${ac_cv_type_off_t+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
21242 cat >conftest.$ac_ext <<_ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21248 $ac_includes_default
21254 if (sizeof (off_t))
21260 rm -f conftest.$ac_objext
21261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21262 (eval $ac_compile) 2>conftest.er1
21264 grep -v '^ *+' conftest.er1 >conftest.err
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
21269 { ac_try='test -z "$ac_c_werror_flag"
21270 || test ! -s conftest.err'
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; } &&
21276 { ac_try='test -s conftest.$ac_objext'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ac_cv_type_off_t=yes
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ac_cv_type_off_t=no
21289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21291 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21292 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21293 if test $ac_cv_type_off_t = yes; then
21297 cat >>confdefs.h <<_ACEOF
21303 echo "$as_me:$LINENO: checking for pid_t" >&5
21304 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21305 if test "${ac_cv_type_pid_t+set}" = set; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 cat >conftest.$ac_ext <<_ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 $ac_includes_default
21320 if (sizeof (pid_t))
21326 rm -f conftest.$ac_objext
21327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21328 (eval $ac_compile) 2>conftest.er1
21330 grep -v '^ *+' conftest.er1 >conftest.err
21332 cat conftest.err >&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
21335 { ac_try='test -z "$ac_c_werror_flag"
21336 || test ! -s conftest.err'
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; } &&
21342 { ac_try='test -s conftest.$ac_objext'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 ac_cv_type_pid_t=yes
21350 echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 ac_cv_type_pid_t=no
21355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21357 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21358 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21359 if test $ac_cv_type_pid_t = yes; then
21363 cat >>confdefs.h <<_ACEOF
21369 echo "$as_me:$LINENO: checking for size_t" >&5
21370 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21371 if test "${ac_cv_type_size_t+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 $ac_includes_default
21386 if (sizeof (size_t))
21392 rm -f conftest.$ac_objext
21393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21394 (eval $ac_compile) 2>conftest.er1
21396 grep -v '^ *+' conftest.er1 >conftest.err
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } &&
21401 { ac_try='test -z "$ac_c_werror_flag"
21402 || test ! -s conftest.err'
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; } &&
21408 { ac_try='test -s conftest.$ac_objext'
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
21414 ac_cv_type_size_t=yes
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 ac_cv_type_size_t=no
21421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21423 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21424 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21425 if test $ac_cv_type_size_t = yes; then
21429 cat >>confdefs.h <<_ACEOF
21430 #define size_t unsigned
21435 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21436 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21437 if test "${ac_cv_type_uid_t+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 cat >conftest.$ac_ext <<_ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 #include <sys/types.h>
21449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21450 $EGREP "uid_t" >/dev/null 2>&1; then
21451 ac_cv_type_uid_t=yes
21453 ac_cv_type_uid_t=no
21458 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21459 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21460 if test $ac_cv_type_uid_t = no; then
21462 cat >>confdefs.h <<\_ACEOF
21467 cat >>confdefs.h <<\_ACEOF
21475 echo "$as_me:$LINENO: checking for socklen_t" >&5
21476 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21477 if test "${ac_cv_type_socklen_t+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 ac_cv_type_socklen_t=no
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 #ifdef HAVE_SYS_TYPES_H
21488 #include <sys/types.h>
21490 #ifdef HAVE_SYS_SOCKET_H
21491 #include <sys/socket.h>
21502 rm -f conftest.$ac_objext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504 (eval $ac_compile) 2>conftest.er1
21506 grep -v '^ *+' conftest.er1 >conftest.err
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
21511 { ac_try='test -z "$ac_c_werror_flag"
21512 || test ! -s conftest.err'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; } &&
21518 { ac_try='test -s conftest.$ac_objext'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; }; then
21524 ac_cv_type_socklen_t=yes
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21534 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21535 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21537 if test "$ac_cv_type_socklen_t" != "yes"; then
21538 cat >>confdefs.h <<\_ACEOF
21539 #define socklen_t int
21546 echo "$as_me:$LINENO: checking for uint8_t" >&5
21547 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21548 if test "${ac_cv_type_uint8_t+set}" = set; then
21549 echo $ECHO_N "(cached) $ECHO_C" >&6
21551 ac_cv_type_uint8_t=no
21552 cat >conftest.$ac_ext <<_ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 #ifdef HAVE_INTTYPES_H
21559 #include <inttypes.h>
21561 #ifdef HAVE_STDINT_H
21562 #include <stdint.h>
21573 rm -f conftest.$ac_objext
21574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21575 (eval $ac_compile) 2>conftest.er1
21577 grep -v '^ *+' conftest.er1 >conftest.err
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } &&
21582 { ac_try='test -z "$ac_c_werror_flag"
21583 || test ! -s conftest.err'
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; } &&
21589 { ac_try='test -s conftest.$ac_objext'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 ac_cv_type_uint8_t=yes
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21605 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21606 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21608 if test "$ac_cv_type_uint8_t" != "yes"; then
21609 cat >>confdefs.h <<\_ACEOF
21610 #define uint8_t unsigned char
21617 echo "$as_me:$LINENO: checking for uint16_t" >&5
21618 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21619 if test "${ac_cv_type_uint16_t+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21622 ac_cv_type_uint16_t=no
21623 cat >conftest.$ac_ext <<_ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21629 #ifdef HAVE_INTTYPES_H
21630 #include <inttypes.h>
21632 #ifdef HAVE_STDINT_H
21633 #include <stdint.h>
21644 rm -f conftest.$ac_objext
21645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21646 (eval $ac_compile) 2>conftest.er1
21648 grep -v '^ *+' conftest.er1 >conftest.err
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
21653 { ac_try='test -z "$ac_c_werror_flag"
21654 || test ! -s conftest.err'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; } &&
21660 { ac_try='test -s conftest.$ac_objext'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 ac_cv_type_uint16_t=yes
21668 echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21676 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21677 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21679 if test "$ac_cv_type_uint16_t" != "yes"; then
21680 cat >>confdefs.h <<\_ACEOF
21681 #define uint16_t unsigned short
21688 echo "$as_me:$LINENO: checking for uint32_t" >&5
21689 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21690 if test "${ac_cv_type_uint32_t+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 ac_cv_type_uint32_t=no
21694 cat >conftest.$ac_ext <<_ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 #ifdef HAVE_INTTYPES_H
21701 #include <inttypes.h>
21703 #ifdef HAVE_STDINT_H
21704 #include <stdint.h>
21715 rm -f conftest.$ac_objext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717 (eval $ac_compile) 2>conftest.er1
21719 grep -v '^ *+' conftest.er1 >conftest.err
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } &&
21724 { ac_try='test -z "$ac_c_werror_flag"
21725 || 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 ac_cv_type_uint32_t=yes
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21747 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21748 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21750 if test "$ac_cv_type_uint32_t" != "yes"; then
21751 cat >>confdefs.h <<\_ACEOF
21752 #define uint32_t unsigned int
21809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21810 echo "$as_me:$LINENO: checking for $ac_func" >&5
21811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21812 if eval "test \"\${$as_ac_var+set}\" = set"; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21823 #define $ac_func innocuous_$ac_func
21825 /* System header to define __stub macros and hopefully few prototypes,
21826 which can conflict with char $ac_func (); below.
21827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21828 <limits.h> exists even on freestanding compilers. */
21831 # include <limits.h>
21833 # include <assert.h>
21838 /* Override any gcc2 internal prototype to avoid an error. */
21843 /* We use char because int might match the return type of a gcc2
21844 builtin and then its argument prototype would still apply. */
21846 /* The GNU C library defines this for functions which it implements
21847 to always fail with ENOSYS. Some functions are actually named
21848 something starting with __ and the normal name is an alias. */
21849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21852 char (*f) () = $ac_func;
21861 return f != $ac_func;
21866 rm -f conftest.$ac_objext conftest$ac_exeext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21868 (eval $ac_link) 2>conftest.er1
21870 grep -v '^ *+' conftest.er1 >conftest.err
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } &&
21875 { ac_try='test -z "$ac_c_werror_flag"
21876 || test ! -s conftest.err'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; } &&
21882 { ac_try='test -s conftest$ac_exeext'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; }; then
21888 eval "$as_ac_var=yes"
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 eval "$as_ac_var=no"
21895 rm -f conftest.err conftest.$ac_objext \
21896 conftest$ac_exeext conftest.$ac_ext
21898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21900 if test `eval echo '${'$as_ac_var'}'` = yes; then
21901 cat >>confdefs.h <<_ACEOF
21902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21919 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
21920 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
21921 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21924 cat >conftest.$ac_ext <<_ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21932 #include <string.h>
21933 #ifdef HAVE_UNISTD_H
21934 #include <unistd.h>
21936 #ifdef HAVE_CRYPT_H
21939 #ifdef HAVE_ERRNO_H
21942 #ifdef HAVE_RESOURCE_H
21943 #include <resource.h>
21945 #ifdef HAVE_GETOPT_H
21946 #include <getopt.h>
21948 #ifdef HAVE_MALLOC_H
21949 #include <malloc.h>
21954 #ifdef HAVE_UTMPX_H
21957 #ifdef HAVE_SYS_SELECT_H
21958 #include <sys/select.h>
21960 #ifdef HAVE_DLFCN_H
21963 #ifdef HAVE_REGEX_H
21966 #ifdef HAVE_SYSLOG_H
21967 #include <syslog.h>
21969 #ifdef HAVE_INTTYPES_H
21970 #include <inttypes.h>
21972 #ifdef HAVE_STDINT_H
21973 #include <stdint.h>
21975 #ifdef HAVE_ARPA_INET_H
21976 #include <arpa/inet.h>
21982 char *(*pfn) = (char *(*)) $ac_func
21987 rm -f conftest.$ac_objext
21988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21989 (eval $ac_compile) 2>conftest.er1
21991 grep -v '^ *+' conftest.er1 >conftest.err
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } &&
21996 { ac_try='test -z "$ac_c_werror_flag"
21997 || test ! -s conftest.err'
21998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999 (eval $ac_try) 2>&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; } &&
22003 { ac_try='test -s conftest.$ac_objext'
22004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005 (eval $ac_try) 2>&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); }; }; then
22009 eval "radius_cv_decl_needed_$ac_func=no"
22011 echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22014 eval "radius_cv_decl_needed_$ac_func=yes"
22016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22019 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22020 echo "$as_me:$LINENO: result: yes" >&5
22021 echo "${ECHO_T}yes" >&6
22022 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22023 cat >>confdefs.h <<_ACEOF
22024 #define $radius_tr_decl 1
22028 echo "$as_me:$LINENO: result: no" >&5
22029 echo "${ECHO_T}no" >&6
22035 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22036 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22037 if test "${ac_cv_type_signal+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 cat >conftest.$ac_ext <<_ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 #include <sys/types.h>
22047 #include <signal.h>
22052 extern "C" void (*signal (int, void (*)(int)))(int);
22054 void (*signal ()) ();
22065 rm -f conftest.$ac_objext
22066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22067 (eval $ac_compile) 2>conftest.er1
22069 grep -v '^ *+' conftest.er1 >conftest.err
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } &&
22074 { ac_try='test -z "$ac_c_werror_flag"
22075 || test ! -s conftest.err'
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; } &&
22081 { ac_try='test -s conftest.$ac_objext'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; }; then
22087 ac_cv_type_signal=void
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22092 ac_cv_type_signal=int
22094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22096 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22097 echo "${ECHO_T}$ac_cv_type_signal" >&6
22099 cat >>confdefs.h <<_ACEOF
22100 #define RETSIGTYPE $ac_cv_type_signal
22105 if test "x$ac_cv_header_utmpx_h" = "xyes"
22108 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22109 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22121 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22127 int foo = offsetof(struct utmpx, ut_xtime)
22132 rm -f conftest.$ac_objext
22133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22134 (eval $ac_compile) 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
22141 { ac_try='test -z "$ac_c_werror_flag"
22142 || test ! -s conftest.err'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; } &&
22148 { ac_try='test -s conftest.$ac_objext'
22149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150 (eval $ac_try) 2>&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); }; }; then
22156 echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22163 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22164 if test "x$has_element" != "x"; then
22165 echo "$as_me:$LINENO: result: yes" >&5
22166 echo "${ECHO_T}yes" >&6
22167 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22169 echo "$as_me:$LINENO: result: no" >&5
22170 echo "${ECHO_T}no" >&6
22171 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22174 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22176 cat >>confdefs.h <<\_ACEOF
22177 #define ut_xtime ut_tv.tv_sec
22184 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22185 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22195 #include <netinet/in.h>
22197 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22203 int foo = offsetof(struct in_pktinfo, ipi_addr)
22208 rm -f conftest.$ac_objext
22209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22210 (eval $ac_compile) 2>conftest.er1
22212 grep -v '^ *+' conftest.er1 >conftest.err
22214 cat conftest.err >&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } &&
22217 { ac_try='test -z "$ac_c_werror_flag"
22218 || test ! -s conftest.err'
22219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220 (eval $ac_try) 2>&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; } &&
22224 { ac_try='test -s conftest.$ac_objext'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; }; then
22232 echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22239 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22240 if test "x$has_element" != "x"; then
22241 echo "$as_me:$LINENO: result: yes" >&5
22242 echo "${ECHO_T}yes" >&6
22243 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22245 echo "$as_me:$LINENO: result: no" >&5
22246 echo "${ECHO_T}no" >&6
22247 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22250 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22252 cat >>confdefs.h <<\_ACEOF
22253 #define HAVE_IP_PKTINFO 1
22259 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22260 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22261 if test "${ac_cv_c_const+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 cat >conftest.$ac_ext <<_ACEOF
22267 cat confdefs.h >>conftest.$ac_ext
22268 cat >>conftest.$ac_ext <<_ACEOF
22269 /* end confdefs.h. */
22274 /* FIXME: Include the comments suggested by Paul. */
22275 #ifndef __cplusplus
22276 /* Ultrix mips cc rejects this. */
22277 typedef int charset[2];
22279 /* SunOS 4.1.1 cc rejects this. */
22280 char const *const *ccp;
22282 /* NEC SVR4.0.2 mips cc rejects this. */
22283 struct point {int x, y;};
22284 static struct point const zero = {0,0};
22285 /* AIX XL C 1.02.0.0 rejects this.
22286 It does not let you subtract one const X* pointer from another in
22287 an arm of an if-expression whose if-part is not a constant
22289 const char *g = "string";
22290 ccp = &g + (g ? g-g : 0);
22291 /* HPUX 7.0 cc rejects these. */
22294 ccp = (char const *const *) p;
22295 { /* SCO 3.2v4 cc rejects this. */
22297 char const *s = 0 ? (char *) 0 : (char const *) 0;
22301 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22302 int x[] = {25, 17};
22303 const int *foo = &x[0];
22306 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22307 typedef const int *iptr;
22311 { /* AIX XL C 1.02.0.0 rejects this saying
22312 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22313 struct s { int j; const int *ap[3]; };
22314 struct s *b; b->j = 5;
22316 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22317 const int foo = 10;
22325 rm -f conftest.$ac_objext
22326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22327 (eval $ac_compile) 2>conftest.er1
22329 grep -v '^ *+' conftest.er1 >conftest.err
22331 cat conftest.err >&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); } &&
22334 { ac_try='test -z "$ac_c_werror_flag"
22335 || test ! -s conftest.err'
22336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337 (eval $ac_try) 2>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }; } &&
22341 { ac_try='test -s conftest.$ac_objext'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; }; then
22349 echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22356 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22357 echo "${ECHO_T}$ac_cv_c_const" >&6
22358 if test $ac_cv_c_const = no; then
22360 cat >>confdefs.h <<\_ACEOF
22367 echo "$as_me:$LINENO: checking type of OS" >&5
22368 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22370 echo "$as_me:$LINENO: result: $OS" >&5
22371 echo "${ECHO_T}$OS" >&6
22372 if test "$OS" = "OS/2"; then
22379 if test "x$GCC" = "xyes"; then
22380 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22383 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22384 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22385 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22386 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22387 CFLAGS="$CFLAGS $devflags"
22389 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22390 echo "${ECHO_T}yes. Using $devflags" >&6
22393 CFLAGS="$CFLAGS -DNDEBUG"
22395 echo "$as_me:$LINENO: result: no." >&5
22396 echo "${ECHO_T}no." >&6
22400 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22401 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22402 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22405 ac_check_lib_save_LIBS=$LIBS
22406 LIBS="-lcrypt $LIBS"
22407 cat >conftest.$ac_ext <<_ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h. */
22414 /* Override any gcc2 internal prototype to avoid an error. */
22418 /* We use char because int might match the return type of a gcc2
22419 builtin and then its argument prototype would still apply. */
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22431 (eval $ac_link) 2>conftest.er1
22433 grep -v '^ *+' conftest.er1 >conftest.err
22435 cat conftest.err >&5
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); } &&
22438 { ac_try='test -z "$ac_c_werror_flag"
22439 || test ! -s conftest.err'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; } &&
22445 { ac_try='test -s conftest$ac_exeext'
22446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22447 (eval $ac_try) 2>&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); }; }; then
22451 ac_cv_lib_crypt_crypt=yes
22453 echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22456 ac_cv_lib_crypt_crypt=no
22458 rm -f conftest.err conftest.$ac_objext \
22459 conftest$ac_exeext conftest.$ac_ext
22460 LIBS=$ac_check_lib_save_LIBS
22462 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22463 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22464 if test $ac_cv_lib_crypt_crypt = yes; then
22469 if test "$CRYPTLIB" != ""; then
22470 cat >>confdefs.h <<\_ACEOF
22471 #define HAVE_CRYPT 1
22475 echo "$as_me:$LINENO: checking for crypt" >&5
22476 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22477 if test "${ac_cv_func_crypt+set}" = set; then
22478 echo $ECHO_N "(cached) $ECHO_C" >&6
22480 cat >conftest.$ac_ext <<_ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h. */
22486 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22488 #define crypt innocuous_crypt
22490 /* System header to define __stub macros and hopefully few prototypes,
22491 which can conflict with char crypt (); below.
22492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22493 <limits.h> exists even on freestanding compilers. */
22496 # include <limits.h>
22498 # include <assert.h>
22503 /* Override any gcc2 internal prototype to avoid an error. */
22508 /* We use char because int might match the return type of a gcc2
22509 builtin and then its argument prototype would still apply. */
22511 /* The GNU C library defines this for functions which it implements
22512 to always fail with ENOSYS. Some functions are actually named
22513 something starting with __ and the normal name is an alias. */
22514 #if defined (__stub_crypt) || defined (__stub___crypt)
22517 char (*f) () = crypt;
22531 rm -f conftest.$ac_objext conftest$ac_exeext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22533 (eval $ac_link) 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } &&
22540 { ac_try='test -z "$ac_c_werror_flag"
22541 || test ! -s conftest.err'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; } &&
22547 { ac_try='test -s conftest$ac_exeext'
22548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549 (eval $ac_try) 2>&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); }; }; then
22553 ac_cv_func_crypt=yes
22555 echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22558 ac_cv_func_crypt=no
22560 rm -f conftest.err conftest.$ac_objext \
22561 conftest$ac_exeext conftest.$ac_ext
22563 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22564 echo "${ECHO_T}$ac_cv_func_crypt" >&6
22565 if test $ac_cv_func_crypt = yes; then
22566 cat >>confdefs.h <<\_ACEOF
22567 #define HAVE_CRYPT 1
22574 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22575 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
22576 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22579 ac_check_lib_save_LIBS=$LIBS
22580 LIBS="-lcipher $LIBS"
22581 cat >conftest.$ac_ext <<_ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h. */
22588 /* Override any gcc2 internal prototype to avoid an error. */
22592 /* We use char because int might match the return type of a gcc2
22593 builtin and then its argument prototype would still apply. */
22603 rm -f conftest.$ac_objext conftest$ac_exeext
22604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22605 (eval $ac_link) 2>conftest.er1
22607 grep -v '^ *+' conftest.er1 >conftest.err
22609 cat conftest.err >&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } &&
22612 { ac_try='test -z "$ac_c_werror_flag"
22613 || test ! -s conftest.err'
22614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615 (eval $ac_try) 2>&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; } &&
22619 { ac_try='test -s conftest$ac_exeext'
22620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22621 (eval $ac_try) 2>&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); }; }; then
22625 ac_cv_lib_cipher_setkey=yes
22627 echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22630 ac_cv_lib_cipher_setkey=no
22632 rm -f conftest.err conftest.$ac_objext \
22633 conftest$ac_exeext conftest.$ac_ext
22634 LIBS=$ac_check_lib_save_LIBS
22636 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22637 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
22638 if test $ac_cv_lib_cipher_setkey = yes; then
22639 CRYPTLIB="${CRYPTLIB} -lcipher"
22645 if test "x$WITH_SNMP" = "xyes"; then
22650 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
22651 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
22653 cat >conftest.$ac_ext <<_ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22660 #ifdef HAVE_SYS_TYPES_H
22661 #include <sys/types.h>
22663 #ifdef HAVE_STDINT_H
22664 #include <stdint.h>
22666 #ifdef HAVE_STDIO_H
22669 #ifdef HAVE_NETDB_H
22672 #ifdef HAVE_UNISTD_H
22673 #include <unistd.h>
22675 #include <ucd-snmp/ucd-snmp-config.h>
22676 #include <ucd-snmp/asn1.h>
22677 #include <ucd-snmp/snmp.h>
22678 #include <ucd-snmp/snmp_impl.h>
22687 rm -f conftest.$ac_objext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22689 (eval $ac_compile) 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } &&
22696 { ac_try='test -z "$ac_c_werror_flag"
22697 || test ! -s conftest.err'
22698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699 (eval $ac_try) 2>&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); }; } &&
22703 { ac_try='test -s conftest.$ac_objext'
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; }; then
22709 SNMP_INCLUDE="";ucdsnmp=yes
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22718 if test "x$ucdsnmp" = "x"; then
22719 old_CFLAGS="$CFLAGS"
22720 for try in /usr/include /usr/local/include $with_snmp_include_dir; do
22721 CFLAGS="$old_CFLAGS -I$try"
22722 cat >conftest.$ac_ext <<_ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22729 #ifdef HAVE_SYS_TYPES_H
22730 #include <sys/types.h>
22732 #ifdef HAVE_STDINT_H
22733 #include <stdint.h>
22735 #ifdef HAVE_STDIO_H
22738 #ifdef HAVE_NETDB_H
22741 #ifdef HAVE_UNISTD_H
22742 #include <unistd.h>
22744 #include <ucd-snmp/ucd-snmp-config.h>
22745 #include <ucd-snmp/asn1.h>
22746 #include <ucd-snmp/snmp.h>
22747 #include <ucd-snmp/snmp_impl.h>
22756 rm -f conftest.$ac_objext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22758 (eval $ac_compile) 2>conftest.er1
22760 grep -v '^ *+' conftest.er1 >conftest.err
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } &&
22765 { ac_try='test -z "$ac_c_werror_flag"
22766 || test ! -s conftest.err'
22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768 (eval $ac_try) 2>&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; } &&
22772 { ac_try='test -s conftest.$ac_objext'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }; then
22778 SNMP_INCLUDE="-I$try";ucdsnmp=yes
22780 echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22786 if test "x$ucdsnmp" != "x"; then
22790 CFLAGS="$old_CFLAGS"
22793 if test "x$ucdsnmp" = "x"; then
22794 old_CFLAGS="$CFLAGS"
22795 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22796 CFLAGS="$old_CFLAGS -I$try"
22797 cat >conftest.$ac_ext <<_ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22804 #ifdef HAVE_SYS_TYPES_H
22805 #include <sys/types.h>
22807 #ifdef HAVE_STDINT_H
22808 #include <stdint.h>
22810 #ifdef HAVE_STDIO_H
22813 #ifdef HAVE_NETDB_H
22816 #ifdef HAVE_UNISTD_H
22817 #include <unistd.h>
22821 #include <snmp_impl.h>
22830 rm -f conftest.$ac_objext
22831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22832 (eval $ac_compile) 2>conftest.er1
22834 grep -v '^ *+' conftest.er1 >conftest.err
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } &&
22839 { ac_try='test -z "$ac_c_werror_flag"
22840 || test ! -s conftest.err'
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; } &&
22846 { ac_try='test -s conftest.$ac_objext'
22847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848 (eval $ac_try) 2>&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); }; }; then
22852 SNMP_INCLUDE="";ucdsnmp=no
22854 echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22860 if test "x$ucdsnmp" != "x"; then
22864 CFLAGS="$old_CFLAGS"
22867 if test "x$ucdsnmp" = "x"; then
22868 old_CFLAGS="$CFLAGS"
22869 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22870 CFLAGS="$old_CFLAGS -I$try"
22871 cat >conftest.$ac_ext <<_ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22878 #ifdef HAVE_SYS_TYPES_H
22879 #include <sys/types.h>
22881 #ifdef HAVE_STDINT_H
22882 #include <stdint.h>
22884 #ifdef HAVE_STDIO_H
22887 #ifdef HAVE_NETDB_H
22890 #ifdef HAVE_UNISTD_H
22891 #include <unistd.h>
22895 #include <snmp_impl.h>
22904 rm -f conftest.$ac_objext
22905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22906 (eval $ac_compile) 2>conftest.er1
22908 grep -v '^ *+' conftest.er1 >conftest.err
22910 cat conftest.err >&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } &&
22913 { ac_try='test -z "$ac_c_werror_flag"
22914 || test ! -s conftest.err'
22915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); }; } &&
22920 { ac_try='test -s conftest.$ac_objext'
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; }; then
22926 SNMP_INCLUDE="-I$try";ucdsnmp=no
22928 echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22934 if test "x$ucdsnmp" != "x"; then
22938 CFLAGS="$old_CFLAGS"
22941 if test "x$ucdsnmp" = "x"; then
22942 echo "$as_me:$LINENO: result: no" >&5
22943 echo "${ECHO_T}no" >&6
22945 if test "x$ucdsnmp" = "xyes"; then
22946 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
22947 echo "${ECHO_T}(ucd-snmp)yes" >&6
22948 cat >>confdefs.h <<\_ACEOF
22949 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
22953 echo "$as_me:$LINENO: result: yes" >&5
22954 echo "${ECHO_T}yes" >&6
22955 cat >>confdefs.h <<\_ACEOF
22956 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
22960 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
22961 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
22964 LIBS="$old_LIBS -lsnmp"
22965 cat >conftest.$ac_ext <<_ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22971 extern char snmp_build_var_op();
22975 snmp_build_var_op()
22980 rm -f conftest.$ac_objext conftest$ac_exeext
22981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22982 (eval $ac_link) 2>conftest.er1
22984 grep -v '^ *+' conftest.er1 >conftest.err
22986 cat conftest.err >&5
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); } &&
22989 { ac_try='test -z "$ac_c_werror_flag"
22990 || test ! -s conftest.err'
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; } &&
22996 { ac_try='test -s conftest$ac_exeext'
22997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22998 (eval $ac_try) 2>&5
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); }; }; then
23004 echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23009 rm -f conftest.err conftest.$ac_objext \
23010 conftest$ac_exeext conftest.$ac_ext
23012 if test "x$SNMP_LIBS" = "x"; then
23013 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23014 LIBS="$old_LIBS -L$try -lsnmp"
23015 cat >conftest.$ac_ext <<_ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 extern char snmp_build_var_op();
23025 snmp_build_var_op()
23030 rm -f conftest.$ac_objext conftest$ac_exeext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23032 (eval $ac_link) 2>conftest.er1
23034 grep -v '^ *+' conftest.er1 >conftest.err
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } &&
23039 { ac_try='test -z "$ac_c_werror_flag"
23040 || test ! -s conftest.err'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest$ac_exeext'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 SNMP_LIBS="-L$try -lsnmp"
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23059 rm -f conftest.err conftest.$ac_objext \
23060 conftest$ac_exeext conftest.$ac_ext
23061 if test "x$SNMP_LIBS" != "x"; then
23064 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23065 cat >conftest.$ac_ext <<_ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 extern char snmp_build_var_op();
23075 snmp_build_var_op()
23080 rm -f conftest.$ac_objext conftest$ac_exeext
23081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23082 (eval $ac_link) 2>conftest.er1
23084 grep -v '^ *+' conftest.er1 >conftest.err
23086 cat conftest.err >&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); } &&
23089 { ac_try='test -z "$ac_c_werror_flag"
23090 || test ! -s conftest.err'
23091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); }; } &&
23096 { ac_try='test -s conftest$ac_exeext'
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; }; then
23102 SNMP_LIBS="-L$try -lsnmp -lcrypto"
23104 echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23109 rm -f conftest.err conftest.$ac_objext \
23110 conftest$ac_exeext conftest.$ac_ext
23111 if test "x$SNMP_LIBS" != "x"; then
23114 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23115 cat >conftest.$ac_ext <<_ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23121 extern char snmp_build_var_op();
23125 snmp_build_var_op()
23130 rm -f conftest.$ac_objext conftest$ac_exeext
23131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23132 (eval $ac_link) 2>conftest.er1
23134 grep -v '^ *+' conftest.er1 >conftest.err
23136 cat conftest.err >&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } &&
23139 { ac_try='test -z "$ac_c_werror_flag"
23140 || test ! -s conftest.err'
23141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142 (eval $ac_try) 2>&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; } &&
23146 { ac_try='test -s conftest$ac_exeext'
23147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148 (eval $ac_try) 2>&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; }; then
23152 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23154 echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23159 rm -f conftest.err conftest.$ac_objext \
23160 conftest$ac_exeext conftest.$ac_ext
23161 if test "x$SNMP_LIBS" != "x"; then
23168 CFLAGS="$old_CFLAGS"
23169 if test "x$SNMP_LIBS" = "x"; then
23170 echo "$as_me:$LINENO: result: no" >&5
23171 echo "${ECHO_T}no" >&6
23174 echo "$as_me:$LINENO: result: yes" >&5
23175 echo "${ECHO_T}yes" >&6
23176 cat >>confdefs.h <<\_ACEOF
23177 #define WITH_SNMP 1
23180 cat >>confdefs.h <<\_ACEOF
23181 #define HAVE_LIBSNMP 1
23189 gethostbyaddrrstyle=""
23190 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23191 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23194 cat >>confdefs.h <<\_ACEOF
23195 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23198 gethostbyaddrrstyle=BSD
23199 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23200 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23203 if test "x$gethostbyaddrrstyle" = "x"; then
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23217 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23222 rm -f conftest.$ac_objext conftest$ac_exeext
23223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23224 (eval $ac_link) 2>conftest.er1
23226 grep -v '^ *+' conftest.er1 >conftest.err
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } &&
23231 { ac_try='test -z "$ac_c_werror_flag"
23232 || test ! -s conftest.err'
23233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234 (eval $ac_try) 2>&5
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); }; } &&
23238 { ac_try='test -s conftest$ac_exeext'
23239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240 (eval $ac_try) 2>&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; }; then
23245 cat >>confdefs.h <<\_ACEOF
23246 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23249 gethostbyaddrrstyle=GNU
23252 echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23256 rm -f conftest.err conftest.$ac_objext \
23257 conftest$ac_exeext conftest.$ac_ext
23259 if test "x$gethostbyaddrrstyle" = "x"; then
23260 cat >conftest.$ac_ext <<_ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23273 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23278 rm -f conftest.$ac_objext conftest$ac_exeext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23280 (eval $ac_link) 2>conftest.er1
23282 grep -v '^ *+' conftest.er1 >conftest.err
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } &&
23287 { ac_try='test -z "$ac_c_werror_flag"
23288 || test ! -s conftest.err'
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; } &&
23294 { ac_try='test -s conftest$ac_exeext'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23301 cat >>confdefs.h <<\_ACEOF
23302 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23305 gethostbyaddrrstyle=SYSV
23308 echo "$as_me: failed program was:" >&5
23309 sed 's/^/| /' conftest.$ac_ext >&5
23312 rm -f conftest.err conftest.$ac_objext \
23313 conftest$ac_exeext conftest.$ac_ext
23315 if test "x$gethostbyaddrrstyle" = "x"; then
23316 cat >conftest.$ac_ext <<_ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23329 gethostbyaddr(NULL, 0, 0)
23334 rm -f conftest.$ac_objext conftest$ac_exeext
23335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23336 (eval $ac_link) 2>conftest.er1
23338 grep -v '^ *+' conftest.er1 >conftest.err
23340 cat conftest.err >&5
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } &&
23343 { ac_try='test -z "$ac_c_werror_flag"
23344 || test ! -s conftest.err'
23345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346 (eval $ac_try) 2>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; } &&
23350 { ac_try='test -s conftest$ac_exeext'
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; }; then
23357 cat >>confdefs.h <<\_ACEOF
23358 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23361 gethostbyaddrrstyle=BSD
23364 echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23368 rm -f conftest.err conftest.$ac_objext \
23369 conftest$ac_exeext conftest.$ac_ext
23372 if test "x$gethostbyaddrrstyle" = "x"; then
23373 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23374 echo "${ECHO_T}none! It must not exist, here." >&6
23376 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23377 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23380 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23381 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23382 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23385 gethostbynamerstyle=""
23386 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23387 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23388 cat >conftest.$ac_ext <<_ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23401 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408 (eval $ac_link) 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } &&
23415 { ac_try='test -z "$ac_c_werror_flag"
23416 || test ! -s conftest.err'
23417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; } &&
23422 { ac_try='test -s conftest$ac_exeext'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; }; then
23429 cat >>confdefs.h <<\_ACEOF
23430 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23433 gethostbynamerstyle=GNU
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23440 rm -f conftest.err conftest.$ac_objext \
23441 conftest$ac_exeext conftest.$ac_ext
23442 if test "x$gethostbynamerstyle" = "x"; then
23443 cat >conftest.$ac_ext <<_ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23456 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23461 rm -f conftest.$ac_objext conftest$ac_exeext
23462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23463 (eval $ac_link) 2>conftest.er1
23465 grep -v '^ *+' conftest.er1 >conftest.err
23467 cat conftest.err >&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } &&
23470 { ac_try='test -z "$ac_c_werror_flag"
23471 || test ! -s conftest.err'
23472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473 (eval $ac_try) 2>&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); }; } &&
23477 { ac_try='test -s conftest$ac_exeext'
23478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479 (eval $ac_try) 2>&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); }; }; then
23484 cat >>confdefs.h <<\_ACEOF
23485 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23488 gethostbynamerstyle=SYSV
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23495 rm -f conftest.err conftest.$ac_objext \
23496 conftest$ac_exeext conftest.$ac_ext
23498 if test "x$gethostbynamerstyle" = "x"; then
23499 cat >conftest.$ac_ext <<_ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23512 gethostbyname(NULL)
23517 rm -f conftest.$ac_objext conftest$ac_exeext
23518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23519 (eval $ac_link) 2>conftest.er1
23521 grep -v '^ *+' conftest.er1 >conftest.err
23523 cat conftest.err >&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } &&
23526 { ac_try='test -z "$ac_c_werror_flag"
23527 || test ! -s conftest.err'
23528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23529 (eval $ac_try) 2>&5
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); }; } &&
23533 { ac_try='test -s conftest$ac_exeext'
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23540 cat >>confdefs.h <<\_ACEOF
23541 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23544 gethostbynamerstyle=BSD
23547 echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23551 rm -f conftest.err conftest.$ac_objext \
23552 conftest$ac_exeext conftest.$ac_ext
23555 if test "x$gethostbynamerstyle" = "x"; then
23556 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23557 echo "${ECHO_T}none! It must not exist, here." >&6
23559 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23560 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23563 if test "x$gethostbynamerstyle" = "xBSD"; then
23564 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23565 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23569 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23570 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
23571 cat >conftest.$ac_ext <<_ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h. */
23583 ctime_r(NULL, NULL, 0)
23588 rm -f conftest.$ac_objext conftest$ac_exeext
23589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23590 (eval $ac_link) 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } &&
23597 { ac_try='test -z "$ac_c_werror_flag"
23598 || test ! -s conftest.err'
23599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600 (eval $ac_try) 2>&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); }; } &&
23604 { ac_try='test -s conftest$ac_exeext'
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; }; then
23611 cat >>confdefs.h <<\_ACEOF
23612 #define CTIMERSTYLE SOLARISSTYLE
23615 ctimerstyle="SOLARIS"
23618 echo "$as_me: failed program was:" >&5
23619 sed 's/^/| /' conftest.$ac_ext >&5
23622 rm -f conftest.err conftest.$ac_objext \
23623 conftest$ac_exeext conftest.$ac_ext
23624 if test "x$ctimerstyle" = "x"; then
23625 cat >conftest.$ac_ext <<_ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23637 ctime_r(NULL, NULL)
23642 rm -f conftest.$ac_objext conftest$ac_exeext
23643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644 (eval $ac_link) 2>conftest.er1
23646 grep -v '^ *+' conftest.er1 >conftest.err
23648 cat conftest.err >&5
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } &&
23651 { ac_try='test -z "$ac_c_werror_flag"
23652 || test ! -s conftest.err'
23653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654 (eval $ac_try) 2>&5
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; } &&
23658 { ac_try='test -s conftest$ac_exeext'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; }; then
23665 cat >>confdefs.h <<\_ACEOF
23666 #define CTIMERSTYLE POSIXSTYLE
23669 ctimerstyle="POSIX"
23672 echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23676 rm -f conftest.err conftest.$ac_objext \
23677 conftest$ac_exeext conftest.$ac_ext
23680 if test "x$ctimerstyle" = "x"; then
23681 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23682 echo "${ECHO_T}none! It must not exist, here." >&6
23684 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
23685 echo "${ECHO_T}${ctimerstyle}-style" >&6
23689 if test x"$rad_enable_largefiles" = xyes ; then
23690 echo "$as_me:$LINENO: checking for largefile linkage" >&5
23691 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6
23694 echo "$as_me:$LINENO: result: no" >&5
23695 echo "${ECHO_T}no" >&6
23696 { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
23697 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
23698 { (exit 1); exit 1; }; }
23701 echo "$as_me:$LINENO: result: ok" >&5
23702 echo "${ECHO_T}ok" >&6
23703 LFS_CFLAGS="-D_LARGE_FILES"
23708 echo "$as_me:$LINENO: result: ok" >&5
23709 echo "${ECHO_T}ok" >&6
23710 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23715 echo "$as_me:$LINENO: result: no" >&5
23716 echo "${ECHO_T}no" >&6
23717 { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
23718 echo "$as_me: error: Large files not supported on this platform" >&2;}
23719 { (exit 1); exit 1; }; }
23722 echo "$as_me:$LINENO: result: maybe" >&5
23723 echo "${ECHO_T}maybe" >&6
23724 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23728 cat >>confdefs.h <<\_ACEOF
23729 #define _GNU_SOURCE 1
23734 echo "$as_me:$LINENO: result: ok" >&5
23735 echo "${ECHO_T}ok" >&6
23736 # Extract the first word of "getconf", so it can be a program name with args.
23737 set dummy getconf; ac_word=$2
23738 echo "$as_me:$LINENO: checking for $ac_word" >&5
23739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23740 if test "${ac_cv_path_GETCONF+set}" = set; then
23741 echo $ECHO_N "(cached) $ECHO_C" >&6
23745 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
23748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23749 for as_dir in $PATH
23752 test -z "$as_dir" && as_dir=.
23753 for ac_exec_ext in '' $ac_executable_extensions; do
23754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23755 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
23756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23765 GETCONF=$ac_cv_path_GETCONF
23767 if test -n "$GETCONF"; then
23768 echo "$as_me:$LINENO: result: $GETCONF" >&5
23769 echo "${ECHO_T}$GETCONF" >&6
23771 echo "$as_me:$LINENO: result: no" >&5
23772 echo "${ECHO_T}no" >&6
23775 if test -z "$GETCONF" ; then
23776 { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
23777 echo "$as_me: error: getconf required to configure large file support" >&2;}
23778 { (exit 1); exit 1; }; }
23780 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
23781 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
23782 LFS_LIBS=`$GETCONF LFS_LIBS`
23785 echo "$as_me:$LINENO: result: maybe" >&5
23786 echo "${ECHO_T}maybe" >&6
23787 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23802 export top_builddir
23803 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
23804 echo "${ECHO_T}top_builddir=$top_builddir" >&6
23811 if test "x$EXPERIMENTAL" = "xyes"; then
23812 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
23813 mysubdirs=`echo $bar`
23815 for bar in `cat src/modules/stable`; do
23816 if test -f src/modules/$bar/configure; then
23817 mysubdirs="$mysubdirs src/modules/$bar"
23822 if test "x$EXPERIMENTAL" = "xyes"; then
23823 for foo in `ls -1 src/modules | grep rlm_`; do
23824 MODULES="$MODULES $foo"
23827 for foo in `cat src/modules/stable`; do
23828 MODULES="$MODULES $foo"
23834 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
23842 USE_SHARED_LIBS=$enable_shared
23844 USE_STATIC_LIBS=$enable_static
23852 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"
23853 cat >confcache <<\_ACEOF
23854 # This file is a shell script that caches the results of configure
23855 # tests run on this system so they can be shared between configure
23856 # scripts and configure runs, see configure's option --config-cache.
23857 # It is not useful on other systems. If it contains results you don't
23858 # want to keep, you may remove or edit it.
23860 # config.status only pays attention to the cache file if you give it
23861 # the --recheck option to rerun configure.
23863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23865 # following values.
23869 # The following way of writing the cache mishandles newlines in values,
23870 # but we know of no workaround that is simple, portable, and efficient.
23871 # So, don't put newlines in cache variables' values.
23872 # Ultrix sh set writes to stderr and can't be redirected directly,
23873 # and sets the high bit in the cache file unless we assign to the vars.
23876 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23878 # `set' does not quote correctly, so add quotes (double-quote
23879 # substitution turns \\\\ into \\, and sed turns \\ into \).
23882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23885 # `set' quotes correctly as required by POSIX, so do not add quotes.
23887 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23894 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23896 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23898 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23899 if test -w $cache_file; then
23900 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23901 cat confcache >$cache_file
23903 echo "not updating unwritable cache $cache_file"
23908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23909 # Let make expand exec_prefix.
23910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23912 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23913 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23914 # trailing colons and then remove the whole line if VPATH becomes empty
23915 # (actually we leave an empty line to preserve line numbers).
23916 if test "x$srcdir" = x.; then
23917 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23918 s/:*\$(srcdir):*/:/;
23919 s/:*\${srcdir}:*/:/;
23921 s/^\([^=]*=[ ]*\):*/\1/;
23927 DEFS=-DHAVE_CONFIG_H
23931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23932 # 1. Remove the extension, and $U if already installed.
23933 ac_i=`echo "$ac_i" |
23934 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23936 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23937 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23939 LIBOBJS=$ac_libobjs
23941 LTLIBOBJS=$ac_ltlibobjs
23945 : ${CONFIG_STATUS=./config.status}
23946 ac_clean_files_save=$ac_clean_files
23947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23948 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23949 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23950 cat >$CONFIG_STATUS <<_ACEOF
23952 # Generated by $as_me.
23953 # Run this file to recreate the current configuration.
23954 # Compiler output produced by configure, useful for debugging
23955 # configure, is in config.log if it exists.
23958 ac_cs_recheck=false
23960 SHELL=\${CONFIG_SHELL-$SHELL}
23963 cat >>$CONFIG_STATUS <<\_ACEOF
23964 ## --------------------- ##
23965 ## M4sh Initialization. ##
23966 ## --------------------- ##
23968 # Be Bourne compatible
23969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23972 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23973 # is contrary to our usage. Disable this feature.
23974 alias -g '${1+"$@"}'='"$@"'
23975 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23978 DUALCASE=1; export DUALCASE # for MKS sh
23980 # Support unset when possible.
23981 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23988 # Work around bugs in pre-3.0 UWIN ksh.
23989 $as_unset ENV MAIL MAILPATH
23996 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23997 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23998 LC_TELEPHONE LC_TIME
24000 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24001 eval $as_var=C; export $as_var
24007 # Required to use basename.
24008 if expr a : '\(a\)' >/dev/null 2>&1; then
24014 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24015 as_basename=basename
24021 # Name of the executable.
24022 as_me=`$as_basename "$0" ||
24023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24024 X"$0" : 'X\(//\)$' \| \
24025 X"$0" : 'X\(/\)$' \| \
24026 . : '\(.\)' 2>/dev/null ||
24028 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24029 /^X\/\(\/\/\)$/{ s//\1/; q; }
24030 /^X\/\(\/\).*/{ s//\1/; q; }
24034 # PATH needs CR, and LINENO needs CR and PATH.
24035 # Avoid depending upon Character Ranges.
24036 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24037 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24038 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24039 as_cr_digits='0123456789'
24040 as_cr_alnum=$as_cr_Letters$as_cr_digits
24042 # The user is always right.
24043 if test "${PATH_SEPARATOR+set}" != set; then
24044 echo "#! /bin/sh" >conf$$.sh
24045 echo "exit 0" >>conf$$.sh
24047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24056 as_lineno_1=$LINENO
24057 as_lineno_2=$LINENO
24058 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24059 test "x$as_lineno_1" != "x$as_lineno_2" &&
24060 test "x$as_lineno_3" = "x$as_lineno_2" || {
24061 # Find who we are. Look in the path if we contain no path at all
24064 *[\\/]* ) as_myself=$0 ;;
24065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24066 for as_dir in $PATH
24069 test -z "$as_dir" && as_dir=.
24070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24075 # We did not find ourselves, most probably we were run as `sh COMMAND'
24076 # in which case we are not to be found in the path.
24077 if test "x$as_myself" = x; then
24080 if test ! -f "$as_myself"; then
24081 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24082 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24083 { (exit 1); exit 1; }; }
24085 case $CONFIG_SHELL in
24087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24088 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24091 test -z "$as_dir" && as_dir=.
24092 for as_base in sh bash ksh sh5; do
24095 if ("$as_dir/$as_base" -c '
24096 as_lineno_1=$LINENO
24097 as_lineno_2=$LINENO
24098 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24099 test "x$as_lineno_1" != "x$as_lineno_2" &&
24100 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24101 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24102 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24103 CONFIG_SHELL=$as_dir/$as_base
24104 export CONFIG_SHELL
24105 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24113 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24114 # uniformly replaced by the line number. The first 'sed' inserts a
24115 # line-number line before each line; the second 'sed' does the real
24116 # work. The second script uses 'N' to pair each line-number line
24117 # with the numbered line, and appends trailing '-' during
24118 # substitution so that $LINENO is not a special case at line end.
24119 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24120 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24121 sed '=' <$as_myself |
24126 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24129 s,^['$as_cr_digits']*\n,,
24130 ' >$as_me.lineno &&
24131 chmod +x $as_me.lineno ||
24132 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24133 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24134 { (exit 1); exit 1; }; }
24136 # Don't try to exec as it changes $[0], causing all sort of problems
24137 # (the dirname of $[0] is not the place where we might find the
24138 # original and so on. Autoconf is especially sensible to this).
24140 # Exit status is that of the last command.
24145 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24146 *c*,-n*) ECHO_N= ECHO_C='
24148 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24149 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24152 if expr a : '\(a\)' >/dev/null 2>&1; then
24158 rm -f conf$$ conf$$.exe conf$$.file
24160 if ln -s conf$$.file conf$$ 2>/dev/null; then
24161 # We could just check for DJGPP; but this test a) works b) is more generic
24162 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24163 if test -f conf$$.exe; then
24164 # Don't use ln at all; we don't have any links
24169 elif ln conf$$.file conf$$ 2>/dev/null; then
24174 rm -f conf$$ conf$$.exe conf$$.file
24176 if mkdir -p . 2>/dev/null; then
24179 test -d ./-p && rmdir ./-p
24183 as_executable_p="test -f"
24185 # Sed expression to map a string onto a valid CPP name.
24186 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24188 # Sed expression to map a string onto a valid variable name.
24189 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24193 # We need space, tab and new line, in precisely that order.
24203 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24204 # report actual input values of CONFIG_FILES etc. instead of their
24205 # values after options handling. Logging --version etc. is OK.
24209 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24210 ## Running $as_me. ##
24215 This file was extended by $as_me, which was
24216 generated by GNU Autoconf 2.59. Invocation command line was
24218 CONFIG_FILES = $CONFIG_FILES
24219 CONFIG_HEADERS = $CONFIG_HEADERS
24220 CONFIG_LINKS = $CONFIG_LINKS
24221 CONFIG_COMMANDS = $CONFIG_COMMANDS
24225 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24229 # Files that config.status was made for.
24230 if test -n "$ac_config_files"; then
24231 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24234 if test -n "$ac_config_headers"; then
24235 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24238 if test -n "$ac_config_links"; then
24239 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24242 if test -n "$ac_config_commands"; then
24243 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24246 cat >>$CONFIG_STATUS <<\_ACEOF
24249 \`$as_me' instantiates files from templates according to the
24250 current configuration.
24252 Usage: $0 [OPTIONS] [FILE]...
24254 -h, --help print this help, then exit
24255 -V, --version print version number, then exit
24256 -q, --quiet do not print progress messages
24257 -d, --debug don't remove temporary files
24258 --recheck update $as_me by reconfiguring in the same conditions
24259 --file=FILE[:TEMPLATE]
24260 instantiate the configuration file FILE
24261 --header=FILE[:TEMPLATE]
24262 instantiate the configuration header FILE
24264 Configuration files:
24267 Configuration headers:
24270 Report bugs to <bug-autoconf@gnu.org>."
24273 cat >>$CONFIG_STATUS <<_ACEOF
24276 configured by $0, generated by GNU Autoconf 2.59,
24277 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24279 Copyright (C) 2003 Free Software Foundation, Inc.
24280 This config.status script is free software; the Free Software Foundation
24281 gives unlimited permission to copy, distribute and modify it."
24285 cat >>$CONFIG_STATUS <<\_ACEOF
24286 # If no file are specified by the user, then we need to provide default
24287 # value. By we need to know if files were specified by the user.
24293 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24294 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24302 *) # This is not an option, so the user has probably given explicit
24305 ac_need_defaults=false;;
24309 # Handling of the options.
24311 cat >>$CONFIG_STATUS <<\_ACEOF
24312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24314 --version | --vers* | -V )
24315 echo "$ac_cs_version"; exit 0 ;;
24317 # Conflict between --help and --header
24318 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24319 Try \`$0 --help' for more information." >&5
24320 echo "$as_me: error: ambiguous option: $1
24321 Try \`$0 --help' for more information." >&2;}
24322 { (exit 1); exit 1; }; };;
24323 --help | --hel | -h )
24324 echo "$ac_cs_usage"; exit 0 ;;
24325 --debug | --d* | -d )
24327 --file | --fil | --fi | --f )
24329 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24330 ac_need_defaults=false;;
24331 --header | --heade | --head | --hea )
24333 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24334 ac_need_defaults=false;;
24335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24336 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24339 # This is an error.
24340 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24341 Try \`$0 --help' for more information." >&5
24342 echo "$as_me: error: unrecognized option: $1
24343 Try \`$0 --help' for more information." >&2;}
24344 { (exit 1); exit 1; }; } ;;
24346 *) ac_config_targets="$ac_config_targets $1" ;;
24352 ac_configure_extra_args=
24354 if $ac_cs_silent; then
24356 ac_configure_extra_args="$ac_configure_extra_args --silent"
24360 cat >>$CONFIG_STATUS <<_ACEOF
24361 if \$ac_cs_recheck; then
24362 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24363 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24372 cat >>$CONFIG_STATUS <<\_ACEOF
24373 for ac_config_target in $ac_config_targets
24375 case "$ac_config_target" in
24376 # Handling of arguments.
24377 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24378 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24379 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24380 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24381 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24382 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24383 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24384 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24385 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24386 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24387 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24388 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24389 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24390 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24391 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24392 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24393 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24394 { (exit 1); exit 1; }; };;
24398 # If the user did not use the arguments to specify the items to instantiate,
24399 # then the envvar interface is used. Set only those that are not.
24400 # We use the long form for the default assignment because of an extremely
24401 # bizarre bug on SunOS 4.1.3.
24402 if $ac_need_defaults; then
24403 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24404 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24407 # Have a temporary directory for convenience. Make it in the build tree
24408 # simply because there is no reason to put it here, and in addition,
24409 # creating and moving files from /tmp can sometimes cause problems.
24410 # Create a temporary directory, and hook for its removal unless debugging.
24413 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24414 trap '{ (exit 1); exit 1; }' 1 2 13 15
24417 # Create a (secure) tmp directory for tmp files.
24420 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24421 test -n "$tmp" && test -d "$tmp"
24424 tmp=./confstat$$-$RANDOM
24425 (umask 077 && mkdir $tmp)
24428 echo "$me: cannot create a temporary directory in ." >&2
24429 { (exit 1); exit 1; }
24434 cat >>$CONFIG_STATUS <<_ACEOF
24437 # CONFIG_FILES section.
24440 # No need to generate the scripts if there are no CONFIG_FILES.
24441 # This happens for instance when ./config.status config.h
24442 if test -n "\$CONFIG_FILES"; then
24443 # Protect against being on the right side of a sed subst in config.status.
24444 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24445 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24446 s,@SHELL@,$SHELL,;t t
24447 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24448 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24449 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24450 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24451 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24452 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24453 s,@exec_prefix@,$exec_prefix,;t t
24454 s,@prefix@,$prefix,;t t
24455 s,@program_transform_name@,$program_transform_name,;t t
24456 s,@bindir@,$bindir,;t t
24457 s,@sbindir@,$sbindir,;t t
24458 s,@libexecdir@,$libexecdir,;t t
24459 s,@datadir@,$datadir,;t t
24460 s,@sysconfdir@,$sysconfdir,;t t
24461 s,@sharedstatedir@,$sharedstatedir,;t t
24462 s,@localstatedir@,$localstatedir,;t t
24463 s,@libdir@,$libdir,;t t
24464 s,@includedir@,$includedir,;t t
24465 s,@oldincludedir@,$oldincludedir,;t t
24466 s,@infodir@,$infodir,;t t
24467 s,@mandir@,$mandir,;t t
24468 s,@build_alias@,$build_alias,;t t
24469 s,@host_alias@,$host_alias,;t t
24470 s,@target_alias@,$target_alias,;t t
24471 s,@DEFS@,$DEFS,;t t
24472 s,@ECHO_C@,$ECHO_C,;t t
24473 s,@ECHO_N@,$ECHO_N,;t t
24474 s,@ECHO_T@,$ECHO_T,;t t
24475 s,@LIBS@,$LIBS,;t t
24477 s,@CFLAGS@,$CFLAGS,;t t
24478 s,@LDFLAGS@,$LDFLAGS,;t t
24479 s,@CPPFLAGS@,$CPPFLAGS,;t t
24480 s,@ac_ct_CC@,$ac_ct_CC,;t t
24481 s,@EXEEXT@,$EXEEXT,;t t
24482 s,@OBJEXT@,$OBJEXT,;t t
24484 s,@EGREP@,$EGREP,;t t
24485 s,@RANLIB@,$RANLIB,;t t
24486 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24487 s,@abs_top_builddir@,$abs_top_builddir,;t t
24488 s,@GMAKE@,$GMAKE,;t t
24489 s,@MAKE@,$MAKE,;t t
24490 s,@LTDL_SUBDIRS@,$LTDL_SUBDIRS,;t t
24491 s,@LIBTOOL@,$LIBTOOL,;t t
24492 s,@build@,$build,;t t
24493 s,@build_cpu@,$build_cpu,;t t
24494 s,@build_vendor@,$build_vendor,;t t
24495 s,@build_os@,$build_os,;t t
24496 s,@host@,$host,;t t
24497 s,@host_cpu@,$host_cpu,;t t
24498 s,@host_vendor@,$host_vendor,;t t
24499 s,@host_os@,$host_os,;t t
24500 s,@LN_S@,$LN_S,;t t
24501 s,@ECHO@,$ECHO,;t t
24503 s,@ac_ct_AR@,$ac_ct_AR,;t t
24504 s,@STRIP@,$STRIP,;t t
24505 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24507 s,@CXXFLAGS@,$CXXFLAGS,;t t
24508 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24509 s,@CXXCPP@,$CXXCPP,;t t
24511 s,@FFLAGS@,$FFLAGS,;t t
24512 s,@ac_ct_F77@,$ac_ct_F77,;t t
24513 s,@logdir@,$logdir,;t t
24514 s,@radacctdir@,$radacctdir,;t t
24515 s,@raddbdir@,$raddbdir,;t t
24516 s,@PERL@,$PERL,;t t
24517 s,@SNMPGET@,$SNMPGET,;t t
24518 s,@SNMPWALK@,$SNMPWALK,;t t
24519 s,@RUSERS@,$RUSERS,;t t
24520 s,@ACLOCAL@,$ACLOCAL,;t t
24521 s,@AUTOCONF@,$AUTOCONF,;t t
24522 s,@AUTOHEADER@,$AUTOHEADER,;t t
24523 s,@LOCATE@,$LOCATE,;t t
24524 s,@DIRNAME@,$DIRNAME,;t t
24525 s,@GREP@,$GREP,;t t
24526 s,@REGEX@,$REGEX,;t t
24527 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24528 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24529 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24530 s,@LIBPREFIX@,$LIBPREFIX,;t t
24531 s,@CRYPTLIB@,$CRYPTLIB,;t t
24532 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24533 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24534 s,@GETCONF@,$GETCONF,;t t
24535 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
24536 s,@LFS_LDFLAGS@,$LFS_LDFLAGS,;t t
24537 s,@LFS_LIBS@,$LFS_LIBS,;t t
24538 s,@HOSTINFO@,$HOSTINFO,;t t
24539 s,@LIBLTDL@,$LIBLTDL,;t t
24540 s,@INCLTDL@,$INCLTDL,;t t
24541 s,@subdirs@,$subdirs,;t t
24542 s,@MODULES@,$MODULES,;t t
24543 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24544 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24545 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24546 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24547 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24548 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24549 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24550 s,@LIBOBJS@,$LIBOBJS,;t t
24551 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24556 cat >>$CONFIG_STATUS <<\_ACEOF
24557 # Split the substitutions into bite-sized pieces for seds with
24558 # small command number limits, like on Digital OSF/1 and HP-UX.
24559 ac_max_sed_lines=48
24560 ac_sed_frag=1 # Number of current file.
24561 ac_beg=1 # First line for current file.
24562 ac_end=$ac_max_sed_lines # Line after last line for current file.
24565 while $ac_more_lines; do
24566 if test $ac_beg -gt 1; then
24567 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24569 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24571 if test ! -s $tmp/subs.frag; then
24572 ac_more_lines=false
24574 # The purpose of the label and of the branching condition is to
24575 # speed up the sed processing (if there are no `@' at all, there
24576 # is no need to browse any of the substitutions).
24577 # These are the two extra sed commands mentioned above.
24579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24580 if test -z "$ac_sed_cmds"; then
24581 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24583 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24585 ac_sed_frag=`expr $ac_sed_frag + 1`
24587 ac_end=`expr $ac_end + $ac_max_sed_lines`
24590 if test -z "$ac_sed_cmds"; then
24593 fi # test -n "$CONFIG_FILES"
24596 cat >>$CONFIG_STATUS <<\_ACEOF
24597 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24600 - | *:- | *:-:* ) # input from stdin
24602 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24604 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24605 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24606 * ) ac_file_in=$ac_file.in ;;
24609 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24610 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24612 X"$ac_file" : 'X\(//\)[^/]' \| \
24613 X"$ac_file" : 'X\(//\)$' \| \
24614 X"$ac_file" : 'X\(/\)' \| \
24615 . : '\(.\)' 2>/dev/null ||
24617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24619 /^X\(\/\/\)$/{ s//\1/; q; }
24620 /^X\(\/\).*/{ s//\1/; q; }
24622 { if $as_mkdir_p; then
24627 while test ! -d "$as_dir"; do
24628 as_dirs="$as_dir $as_dirs"
24629 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24631 X"$as_dir" : 'X\(//\)[^/]' \| \
24632 X"$as_dir" : 'X\(//\)$' \| \
24633 X"$as_dir" : 'X\(/\)' \| \
24634 . : '\(.\)' 2>/dev/null ||
24636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24638 /^X\(\/\/\)$/{ s//\1/; q; }
24639 /^X\(\/\).*/{ s//\1/; q; }
24642 test ! -n "$as_dirs" || mkdir $as_dirs
24643 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24644 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24645 { (exit 1); exit 1; }; }; }
24649 if test "$ac_dir" != .; then
24650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24651 # A "../" for each directory in $ac_dir_suffix.
24652 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24654 ac_dir_suffix= ac_top_builddir=
24658 .) # No --srcdir option. We are building in place.
24660 if test -z "$ac_top_builddir"; then
24663 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24665 [\\/]* | ?:[\\/]* ) # Absolute path.
24666 ac_srcdir=$srcdir$ac_dir_suffix;
24667 ac_top_srcdir=$srcdir ;;
24668 *) # Relative path.
24669 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24670 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24673 # Do not use `cd foo && pwd` to compute absolute paths, because
24674 # the directories may not exist.
24676 .) ac_abs_builddir="$ac_dir";;
24679 .) ac_abs_builddir=`pwd`;;
24680 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24681 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24684 case $ac_abs_builddir in
24685 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24687 case ${ac_top_builddir}. in
24688 .) ac_abs_top_builddir=$ac_abs_builddir;;
24689 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24690 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24693 case $ac_abs_builddir in
24694 .) ac_abs_srcdir=$ac_srcdir;;
24697 .) ac_abs_srcdir=$ac_abs_builddir;;
24698 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24699 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24702 case $ac_abs_builddir in
24703 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24705 case $ac_top_srcdir in
24706 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24707 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24708 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24714 if test x"$ac_file" != x-; then
24715 { echo "$as_me:$LINENO: creating $ac_file" >&5
24716 echo "$as_me: creating $ac_file" >&6;}
24719 # Let's still pretend it is `configure' which instantiates (i.e., don't
24720 # use $as_me), people would be surprised to read:
24721 # /* config.h. Generated by config.status. */
24722 if test x"$ac_file" = x-; then
24725 configure_input="$ac_file. "
24727 configure_input=$configure_input"Generated from `echo $ac_file_in |
24728 sed 's,.*/,,'` by configure."
24730 # First look for the input files in the build tree, otherwise in the
24732 ac_file_inputs=`IFS=:
24733 for f in $ac_file_in; do
24735 -) echo $tmp/stdin ;;
24737 # Absolute (can't be DOS-style, as IFS=:)
24738 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24739 echo "$as_me: error: cannot find input file: $f" >&2;}
24740 { (exit 1); exit 1; }; }
24743 if test -f "$f"; then
24746 elif test -f "$srcdir/$f"; then
24751 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24752 echo "$as_me: error: cannot find input file: $f" >&2;}
24753 { (exit 1); exit 1; }; }
24756 done` || { (exit 1); exit 1; }
24758 cat >>$CONFIG_STATUS <<_ACEOF
24762 cat >>$CONFIG_STATUS <<\_ACEOF
24764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24765 s,@configure_input@,$configure_input,;t t
24766 s,@srcdir@,$ac_srcdir,;t t
24767 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24768 s,@top_srcdir@,$ac_top_srcdir,;t t
24769 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24770 s,@builddir@,$ac_builddir,;t t
24771 s,@abs_builddir@,$ac_abs_builddir,;t t
24772 s,@top_builddir@,$ac_top_builddir,;t t
24773 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24774 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24776 if test x"$ac_file" != x-; then
24777 mv $tmp/out $ac_file
24785 cat >>$CONFIG_STATUS <<\_ACEOF
24788 # CONFIG_HEADER section.
24791 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24792 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24794 # ac_d sets the value in "#define NAME VALUE" lines.
24795 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24796 ac_dB='[ ].*$,\1#\2'
24799 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24800 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24801 ac_uB='$,\1#\2define\3'
24805 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24808 - | *:- | *:-:* ) # input from stdin
24810 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24812 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24814 * ) ac_file_in=$ac_file.in ;;
24817 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24818 echo "$as_me: creating $ac_file" >&6;}
24820 # First look for the input files in the build tree, otherwise in the
24822 ac_file_inputs=`IFS=:
24823 for f in $ac_file_in; do
24825 -) echo $tmp/stdin ;;
24827 # Absolute (can't be DOS-style, as IFS=:)
24828 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24829 echo "$as_me: error: cannot find input file: $f" >&2;}
24830 { (exit 1); exit 1; }; }
24831 # Do quote $f, to prevent DOS paths from being IFS'd.
24834 if test -f "$f"; then
24837 elif test -f "$srcdir/$f"; then
24842 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24843 echo "$as_me: error: cannot find input file: $f" >&2;}
24844 { (exit 1); exit 1; }; }
24847 done` || { (exit 1); exit 1; }
24848 # Remove the trailing spaces.
24849 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24853 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24854 # `conftest.undefs', that substitutes the proper values into
24855 # config.h.in to produce config.h. The first handles `#define'
24856 # templates, and the second `#undef' templates.
24857 # And first: Protect against being on the right side of a sed subst in
24858 # config.status. Protect against being in an unquoted here document
24859 # in config.status.
24860 rm -f conftest.defines conftest.undefs
24861 # Using a here document instead of a string reduces the quoting nightmare.
24862 # Putting comments in sed scripts is not portable.
24864 # `end' is used to avoid that the second main sed command (meant for
24865 # 0-ary CPP macros) applies to n-ary macro definitions.
24866 # See the Autoconf documentation for `clear'.
24867 cat >confdef2sed.sed <<\_ACEOF
24872 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24874 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24877 # If some macros were called several times there might be several times
24878 # the same #defines, which is useless. Nevertheless, we may not want to
24879 # sort them, since we want the *last* AC-DEFINE to be honored.
24880 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24881 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24882 rm -f confdef2sed.sed
24884 # This sed command replaces #undef with comments. This is necessary, for
24885 # example, in the case of _POSIX_SOURCE, which is predefined and required
24886 # on some systems where configure will not decide to define it.
24887 cat >>conftest.undefs <<\_ACEOF
24888 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24891 # Break up conftest.defines because some shells have a limit on the size
24892 # of here documents, and old seds have small limits too (100 cmds).
24893 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24894 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24895 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24896 echo ' :' >>$CONFIG_STATUS
24897 rm -f conftest.tail
24898 while grep . conftest.defines >/dev/null
24900 # Write a limited-size here document to $tmp/defines.sed.
24901 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24902 # Speed up: don't consider the non `#define' lines.
24903 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24904 # Work around the forget-to-reset-the-flag bug.
24905 echo 't clr' >>$CONFIG_STATUS
24906 echo ': clr' >>$CONFIG_STATUS
24907 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24909 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24911 mv $tmp/out $tmp/in
24913 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24914 rm -f conftest.defines
24915 mv conftest.tail conftest.defines
24917 rm -f conftest.defines
24918 echo ' fi # grep' >>$CONFIG_STATUS
24919 echo >>$CONFIG_STATUS
24921 # Break up conftest.undefs because some shells have a limit on the size
24922 # of here documents, and old seds have small limits too (100 cmds).
24923 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24924 rm -f conftest.tail
24925 while grep . conftest.undefs >/dev/null
24927 # Write a limited-size here document to $tmp/undefs.sed.
24928 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24929 # Speed up: don't consider the non `#undef'
24930 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24931 # Work around the forget-to-reset-the-flag bug.
24932 echo 't clr' >>$CONFIG_STATUS
24933 echo ': clr' >>$CONFIG_STATUS
24934 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24936 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24938 mv $tmp/out $tmp/in
24940 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24941 rm -f conftest.undefs
24942 mv conftest.tail conftest.undefs
24944 rm -f conftest.undefs
24946 cat >>$CONFIG_STATUS <<\_ACEOF
24947 # Let's still pretend it is `configure' which instantiates (i.e., don't
24948 # use $as_me), people would be surprised to read:
24949 # /* config.h. Generated by config.status. */
24950 if test x"$ac_file" = x-; then
24951 echo "/* Generated by configure. */" >$tmp/config.h
24953 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24955 cat $tmp/in >>$tmp/config.h
24957 if test x"$ac_file" != x-; then
24958 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24959 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24960 echo "$as_me: $ac_file is unchanged" >&6;}
24962 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24964 X"$ac_file" : 'X\(//\)[^/]' \| \
24965 X"$ac_file" : 'X\(//\)$' \| \
24966 X"$ac_file" : 'X\(/\)' \| \
24967 . : '\(.\)' 2>/dev/null ||
24969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24971 /^X\(\/\/\)$/{ s//\1/; q; }
24972 /^X\(\/\).*/{ s//\1/; q; }
24974 { if $as_mkdir_p; then
24979 while test ! -d "$as_dir"; do
24980 as_dirs="$as_dir $as_dirs"
24981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24983 X"$as_dir" : 'X\(//\)[^/]' \| \
24984 X"$as_dir" : 'X\(//\)$' \| \
24985 X"$as_dir" : 'X\(/\)' \| \
24986 . : '\(.\)' 2>/dev/null ||
24988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24990 /^X\(\/\/\)$/{ s//\1/; q; }
24991 /^X\(\/\).*/{ s//\1/; q; }
24994 test ! -n "$as_dirs" || mkdir $as_dirs
24995 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24997 { (exit 1); exit 1; }; }; }
25000 mv $tmp/config.h $ac_file
25004 rm -f $tmp/config.h
25009 cat >>$CONFIG_STATUS <<\_ACEOF
25011 { (exit 0); exit 0; }
25013 chmod +x $CONFIG_STATUS
25014 ac_clean_files=$ac_clean_files_save
25017 # configure is writing to config.log, and then calls config.status.
25018 # config.status does its own redirection, appending to config.log.
25019 # Unfortunately, on DOS this fails, as config.log is still kept open
25020 # by configure, so config.status won't be able to write to it; its
25021 # output is simply discarded. So we exec the FD to /dev/null,
25022 # effectively closing config.log, so it can be properly (re)opened and
25023 # appended to by config.status. When coming back to configure, we
25024 # need to make the FD available again.
25025 if test "$no_create" != yes; then
25027 ac_config_status_args=
25028 test "$silent" = yes &&
25029 ac_config_status_args="$ac_config_status_args --quiet"
25031 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25034 # would make configure fail if this is the last instruction.
25035 $ac_cs_success || { (exit 1); exit 1; }
25039 # CONFIG_SUBDIRS section.
25041 if test "$no_recursion" != yes; then
25043 # Remove --cache-file and --srcdir arguments so they do not pile up.
25044 ac_sub_configure_args=
25046 for ac_arg in $ac_configure_args; do
25047 if test -n "$ac_prev"; then
25052 -cache-file | --cache-file | --cache-fil | --cache-fi \
25053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25054 ac_prev=cache_file ;;
25055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25059 --config-cache | -C)
25061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25069 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25073 # Always prepend --prefix to ensure using the same prefix
25074 # in subdir configurations.
25075 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25078 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25080 # Do not complain, so a configure script can configure whichever
25081 # parts of a large source tree are present.
25082 test -d $srcdir/$ac_dir || continue
25084 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25085 echo "$as_me: configuring in $ac_dir" >&6;}
25086 { if $as_mkdir_p; then
25091 while test ! -d "$as_dir"; do
25092 as_dirs="$as_dir $as_dirs"
25093 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25095 X"$as_dir" : 'X\(//\)[^/]' \| \
25096 X"$as_dir" : 'X\(//\)$' \| \
25097 X"$as_dir" : 'X\(/\)' \| \
25098 . : '\(.\)' 2>/dev/null ||
25100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25101 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25102 /^X\(\/\/\)$/{ s//\1/; q; }
25103 /^X\(\/\).*/{ s//\1/; q; }
25106 test ! -n "$as_dirs" || mkdir $as_dirs
25107 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25108 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25109 { (exit 1); exit 1; }; }; }
25113 if test "$ac_dir" != .; then
25114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25115 # A "../" for each directory in $ac_dir_suffix.
25116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25118 ac_dir_suffix= ac_top_builddir=
25122 .) # No --srcdir option. We are building in place.
25124 if test -z "$ac_top_builddir"; then
25127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25129 [\\/]* | ?:[\\/]* ) # Absolute path.
25130 ac_srcdir=$srcdir$ac_dir_suffix;
25131 ac_top_srcdir=$srcdir ;;
25132 *) # Relative path.
25133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25137 # Do not use `cd foo && pwd` to compute absolute paths, because
25138 # the directories may not exist.
25140 .) ac_abs_builddir="$ac_dir";;
25143 .) ac_abs_builddir=`pwd`;;
25144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25148 case $ac_abs_builddir in
25149 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25151 case ${ac_top_builddir}. in
25152 .) ac_abs_top_builddir=$ac_abs_builddir;;
25153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25157 case $ac_abs_builddir in
25158 .) ac_abs_srcdir=$ac_srcdir;;
25161 .) ac_abs_srcdir=$ac_abs_builddir;;
25162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25166 case $ac_abs_builddir in
25167 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25169 case $ac_top_srcdir in
25170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25179 # Check for guested configure; otherwise get Cygnus style configure.
25180 if test -f $ac_srcdir/configure.gnu; then
25181 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25182 elif test -f $ac_srcdir/configure; then
25183 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25184 elif test -f $ac_srcdir/configure.in; then
25185 ac_sub_configure=$ac_configure
25187 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25188 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25192 # The recursion is here.
25193 if test -n "$ac_sub_configure"; then
25194 # Make the cache file name correct relative to the subdirectory.
25195 case $cache_file in
25196 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25197 *) # Relative path.
25198 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25201 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25202 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25203 # The eval makes quoting arguments work.
25204 eval $ac_sub_configure $ac_sub_configure_args \
25205 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25206 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25207 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25208 { (exit 1); exit 1; }; }
25216 ac_config_commands="$ac_config_commands default-1"
25218 ac_config_commands="$ac_config_commands default-2"
25220 ac_config_commands="$ac_config_commands default-3"
25222 ac_config_commands="$ac_config_commands default-4"