2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
5 # Report bugs to <http://bugs.freeradius.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://bugs.freeradius.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 # Check that we are running under the correct shell.
562 SHELL=${CONFIG_SHELL-/bin/sh}
566 # Remove one level of quotation (which was required for Make).
567 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
572 if test "X$1" = X--no-reexec; then
573 # Discard the --no-reexec flag, and continue.
575 elif test "X$1" = X--fallback-echo; then
576 # Avoid inline document here, it may be left over
578 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
579 # Yippee, $echo works!
582 # Restart under the correct shell.
583 exec $SHELL "$0" --no-reexec ${1+"$@"}
586 if test "X$1" = X--fallback-echo; then
587 # used as fallback echo
595 # The HP-UX ksh and POSIX shell print the target directory to stdout
597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
599 if test -z "$ECHO"; then
600 if test "X${echo_test_string+set}" != Xset; then
601 # find a string as large as possible, as long as the shell can cope with it
602 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
605 echo_test_string=`eval $cmd` &&
606 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
613 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
614 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
615 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # The Solaris, AIX, and Digital Unix default echo programs unquote
619 # backslashes. This makes it impossible to quote backslashes using
620 # echo "$something" | sed 's/\\/\\\\/g'
622 # So, first we look for a working echo in the user's PATH.
624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625 for dir in $PATH /usr/ucb; do
627 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
637 if test "X$echo" = Xecho; then
638 # We didn't find a better echo, so look for alternatives.
639 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
640 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 # This shell has a builtin print -r that does the trick.
644 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
645 test "X$CONFIG_SHELL" != X/bin/ksh; then
646 # If we have ksh, try running configure again with it.
647 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648 export ORIGINAL_CONFIG_SHELL
649 CONFIG_SHELL=/bin/ksh
651 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
655 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
660 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
666 SHELL="$CONFIG_SHELL"
668 echo="$CONFIG_SHELL $0 --fallback-echo"
669 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670 test "X$echo_testing_string" = 'X\t' &&
671 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 echo="$CONFIG_SHELL $0 --fallback-echo"
675 # maybe with a smaller string...
678 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
686 if test "$prev" != 'sed 50q "$0"'; then
687 echo_test_string=`eval $prev`
688 export echo_test_string
689 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
691 # Oops. We lost completely, so just stick with echo.
700 # Copy echo and quote the copy suitably for passing to libtool from
701 # the Makefile, instead of quoting the original, which is used later.
703 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
710 tagnames=${tagnames+${tagnames},}CXX
712 tagnames=${tagnames+${tagnames},}F77
714 test -n "$DJDIR" || exec 7<&0 </dev/null
718 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
719 # so uname gets run too.
720 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
725 ac_default_prefix=/usr/local
727 ac_config_libobj_dir=.
734 # Identity of this package.
735 PACKAGE_NAME='freeradius'
736 PACKAGE_TARNAME='freeradius'
737 PACKAGE_VERSION='$Id$'
738 PACKAGE_STRING='freeradius $Id$'
739 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
740 PACKAGE_URL='http://www.freeradius.org'
742 ac_unique_file="src/main/radiusd.c"
743 # Factoring default headers for most tests.
744 ac_includes_default="\
746 #ifdef HAVE_SYS_TYPES_H
747 # include <sys/types.h>
749 #ifdef HAVE_SYS_STAT_H
750 # include <sys/stat.h>
756 # ifdef HAVE_STDLIB_H
761 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
766 #ifdef HAVE_STRINGS_H
767 # include <strings.h>
769 #ifdef HAVE_INTTYPES_H
770 # include <inttypes.h>
779 enable_option_checking=no
780 ac_subst_vars='LTLIBOBJS
782 RADIUSD_VERSION_COMMIT
783 RADIUSD_VERSION_STRING
785 RADIUSD_INCRM_VERSION
786 RADIUSD_MINOR_VERSION
787 RADIUSD_MAJOR_VERSION
882 program_transform_name
895 enable_option_checking
906 enable_strict_dependencies
915 with_post_proxy_authorize
919 with_experimental_modules
921 with_openssl_includes
922 with_openssl_libraries
924 with_rlm_FOO_include_dir
927 ac_precious_vars='build_alias
942 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
944 # Initialize some variables set by options.
946 ac_init_version=false
947 ac_unrecognized_opts=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
958 program_transform_name=s,x,x,
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
983 infodir='${datarootdir}/info'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\$ac_option
1004 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1035 -datadir | --datadir | --datadi | --datad)
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1061 eval enable_$ac_useropt=no ;;
1063 -docdir | --docdir | --docdi | --doc | --do)
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1073 -enable-* | --enable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error $? "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1087 eval enable_$ac_useropt=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1251 -site=* | --site=* | --sit=*)
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error $? "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1291 eval with_$ac_useropt=\$ac_optarg ;;
1293 -without-* | --without-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error $? "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1307 eval with_$ac_useropt=no ;;
1310 # Obsolete; use --with-x.
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1327 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information"
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' | [0-9]* | *[!_$as_cr_alnum]* )
1336 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error $? "missing argument to $ac_option"
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1360 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 # Check all directory arguments for consistency.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val=\$$ac_var
1372 # Remove trailing slashes.
1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\$ac_val;;
1378 # Be sure to have absolute directory names.
1380 [\\/$]* | ?:[\\/]* ) continue;;
1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1391 target=$target_alias
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
1397 elif test "x$build_alias" != "x$host_alias"; then
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405 test "$silent" = yes && exec 6>/dev/null
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error $? "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error $? "pwd does not report name of working directory"
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1448 ac_srcdir_defaulted=no
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1482 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking ...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1540 --build=BUILD configure for building on BUILD [guessed]
1541 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 if test -n "$ac_init_help"; then
1546 case $ac_init_help in
1547 short | recursive ) echo "Configuration of freeradius $Id$:";;
1552 --disable-option-checking ignore unrecognized --enable/--with options
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --disable-largefile omit support for large files
1556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-static[=PKGS] build static libraries [default=yes]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --enable-strict-dependencies Fail configure on lack of module dependancy.
1562 --enable-developer Enables features of interest to developers.
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-system-libltdl Use the libltdl installed in your system (default=use our own)
1568 --with-system-libtool Use the libtool installed in your system (default=use our own)
1569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 --with-pic try to use only PIC/non-PIC objects [default=use
1572 --with-tags[=TAGS] include additional configurations [automatic]
1573 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1574 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1575 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1576 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1577 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1578 --with-threads Use threads, if available. (default=yes)
1579 --with-vmps Compile in VMPS support. (default=yes)
1580 --with-dhcp Compile in DHCP support. (default=yes)
1581 --with-post-proxy-authorize 1.x compatibility (default=no)
1582 --with-static-modules=QUOTED-MODULE-LIST
1583 --with-modules=QUOTED-MODULE-LIST
1584 --with-experimental-modules Use experimental and unstable modules. (default=no)
1585 --with-openssl Use OpenSSL. (default=yes)
1586 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1587 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1588 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1589 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1590 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1592 Some influential environment variables:
1593 CC C compiler command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1596 nonstandard directory <lib dir>
1597 LIBS libraries to pass to the linker, e.g. -l<library>
1598 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599 you have headers in a nonstandard directory <include dir>
1600 CXX C++ compiler command
1601 CXXFLAGS C++ compiler flags
1603 CXXCPP C++ preprocessor
1604 F77 Fortran 77 compiler command
1605 FFLAGS Fortran 77 compiler flags
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1610 Report bugs to <http://bugs.freeradius.org>.
1611 freeradius home page: <http://www.freeradius.org>.
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1641 .) # We are building in place.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1674 freeradius configure $Id$
1675 generated by GNU Autoconf 2.69
1677 Copyright (C) 2012 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_compile
1726 # ac_fn_cxx_try_compile LINENO
1727 # ----------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_cxx_try_compile ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext
1733 if { { ac_try="$ac_compile"
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_cxx_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.$ac_objext; then :
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_cxx_try_compile
1764 # ac_fn_c_try_cpp LINENO
1765 # ----------------------
1766 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_cpp conftest.$ac_ext"
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } > conftest.i && {
1786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1801 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804 # the include files in INCLUDES and setting the cache variable VAR
1806 ac_fn_c_check_header_mongrel ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if eval \${$3+:} false; then :
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1819 # Is the header compilable?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821 $as_echo_n "checking $2 usability... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 ac_header_compiler=yes
1830 ac_header_compiler=no
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834 $as_echo "$ac_header_compiler" >&6; }
1836 # Is the header present?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838 $as_echo_n "checking $2 presence... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1843 if ac_fn_c_try_cpp "$LINENO"; then :
1844 ac_header_preproc=yes
1846 ac_header_preproc=no
1848 rm -f conftest.err conftest.i conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850 $as_echo "$ac_header_preproc" >&6; }
1852 # So? What about this header?
1853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1864 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1868 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871 ( $as_echo "## ----------------------------------------- ##
1872 ## Report this to http://bugs.freeradius.org ##
1873 ## ----------------------------------------- ##"
1874 ) | sed "s/^/$as_me: WARNING: /" >&2
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1882 eval "$3=\$ac_header_compiler"
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 } # ac_fn_c_check_header_mongrel
1892 # ac_fn_c_try_run LINENO
1893 # ----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1895 # that executables *can* be run.
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_link"
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>&5
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1910 { { case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_try") 2>&5
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; }; }; then :
1922 $as_echo "$as_me: program exited with status $ac_status" >&5
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1926 ac_retval=$ac_status
1928 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1934 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1935 # -------------------------------------------------------
1936 # Tests whether HEADER exists and can be compiled using the include files in
1937 # INCLUDES, setting the cache variable VAR accordingly.
1938 ac_fn_c_check_header_compile ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1951 if ac_fn_c_try_compile "$LINENO"; then :
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 } # ac_fn_c_check_header_compile
1965 # ac_fn_c_try_link LINENO
1966 # -----------------------
1967 # Try to link conftest.$ac_ext, and return whether this succeeded.
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 rm -f conftest.$ac_objext conftest$ac_exeext
1972 if { { ac_try="$ac_link"
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_link") 2>conftest.err
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } && {
1988 test -z "$ac_c_werror_flag" ||
1989 test ! -s conftest.err
1990 } && test -s conftest$ac_exeext && {
1991 test "$cross_compiling" = yes ||
1992 test -x conftest$ac_exeext
1996 $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
2001 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2002 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2003 # interfere with the next link command; also delete a directory that is
2004 # left behind by Apple's compiler. We do this before executing the actions.
2005 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_c_try_link
2011 # ac_fn_c_check_func LINENO FUNC VAR
2012 # ----------------------------------
2013 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2014 ac_fn_c_check_func ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2026 #define $2 innocuous_$2
2028 /* System header to define __stub macros and hopefully few prototypes,
2029 which can conflict with char $2 (); below.
2030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2031 <limits.h> exists even on freestanding compilers. */
2034 # include <limits.h>
2036 # include <assert.h>
2041 /* Override any GCC internal prototype to avoid an error.
2042 Use char because int might match the return type of a GCC
2043 builtin and then its argument prototype would still apply. */
2048 /* The GNU C library defines this for functions which it implements
2049 to always fail with ENOSYS. Some functions are actually named
2050 something starting with __ and the normal name is an alias. */
2051 #if defined __stub_$2 || defined __stub___$2
2063 if ac_fn_c_try_link "$LINENO"; then :
2068 rm -f core conftest.err conftest.$ac_objext \
2069 conftest$ac_exeext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_func
2078 # ac_fn_cxx_try_cpp LINENO
2079 # ------------------------
2080 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2081 ac_fn_cxx_try_cpp ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 if { { ac_try="$ac_cpp conftest.$ac_ext"
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2093 if test -s conftest.err; then
2094 grep -v '^ *+' conftest.err >conftest.er1
2095 cat conftest.er1 >&5
2096 mv -f conftest.er1 conftest.err
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } > conftest.i && {
2100 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2101 test ! -s conftest.err
2105 $as_echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 as_fn_set_status $ac_retval
2113 } # ac_fn_cxx_try_cpp
2115 # ac_fn_cxx_try_link LINENO
2116 # -------------------------
2117 # Try to link conftest.$ac_ext, and return whether this succeeded.
2118 ac_fn_cxx_try_link ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 rm -f conftest.$ac_objext conftest$ac_exeext
2122 if { { ac_try="$ac_link"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2128 $as_echo "$ac_try_echo"; } >&5
2129 (eval "$ac_link") 2>conftest.err
2131 if test -s conftest.err; then
2132 grep -v '^ *+' conftest.err >conftest.er1
2133 cat conftest.er1 >&5
2134 mv -f conftest.er1 conftest.err
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; } && {
2138 test -z "$ac_cxx_werror_flag" ||
2139 test ! -s conftest.err
2140 } && test -s conftest$ac_exeext && {
2141 test "$cross_compiling" = yes ||
2142 test -x conftest$ac_exeext
2146 $as_echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2151 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2152 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2153 # interfere with the next link command; also delete a directory that is
2154 # left behind by Apple's compiler. We do this before executing the actions.
2155 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 as_fn_set_status $ac_retval
2159 } # ac_fn_cxx_try_link
2161 # ac_fn_f77_try_compile LINENO
2162 # ----------------------------
2163 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_f77_try_compile ()
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 rm -f conftest.$ac_objext
2168 if { { ac_try="$ac_compile"
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_compile") 2>conftest.err
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } && {
2184 test -z "$ac_f77_werror_flag" ||
2185 test ! -s conftest.err
2186 } && test -s conftest.$ac_objext; then :
2189 $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195 as_fn_set_status $ac_retval
2197 } # ac_fn_f77_try_compile
2199 # ac_fn_f77_try_link LINENO
2200 # -------------------------
2201 # Try to link conftest.$ac_ext, and return whether this succeeded.
2202 ac_fn_f77_try_link ()
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 rm -f conftest.$ac_objext conftest$ac_exeext
2206 if { { ac_try="$ac_link"
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 $as_echo "$ac_try_echo"; } >&5
2213 (eval "$ac_link") 2>conftest.err
2215 if test -s conftest.err; then
2216 grep -v '^ *+' conftest.err >conftest.er1
2217 cat conftest.er1 >&5
2218 mv -f conftest.er1 conftest.err
2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221 test $ac_status = 0; } && {
2222 test -z "$ac_f77_werror_flag" ||
2223 test ! -s conftest.err
2224 } && test -s conftest$ac_exeext && {
2225 test "$cross_compiling" = yes ||
2226 test -x conftest$ac_exeext
2230 $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2235 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2236 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2237 # interfere with the next link command; also delete a directory that is
2238 # left behind by Apple's compiler. We do this before executing the actions.
2239 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241 as_fn_set_status $ac_retval
2243 } # ac_fn_f77_try_link
2245 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2246 # -------------------------------------------
2247 # Tests whether TYPE exists after having included INCLUDES, setting cache
2248 # variable VAR accordingly.
2249 ac_fn_c_check_type ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if eval \${$3+:} false; then :
2255 $as_echo_n "(cached) " >&6
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2283 if ac_fn_c_try_compile "$LINENO"; then :
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 } # ac_fn_c_check_type
2299 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2300 # ---------------------------------------------
2301 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2303 ac_fn_c_check_decl ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 as_decl_name=`echo $2|sed 's/ *(.*//'`
2307 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2309 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2310 if eval \${$3+:} false; then :
2311 $as_echo_n "(cached) " >&6
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 #ifndef $as_decl_name
2321 (void) $as_decl_use;
2323 (void) $as_decl_name;
2331 if ac_fn_c_try_compile "$LINENO"; then :
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343 } # ac_fn_c_check_decl
2344 cat >config.log <<_ACEOF
2345 This file contains any messages produced by compilers while
2346 running configure, to aid debugging if configure makes a mistake.
2348 It was created by freeradius $as_me $Id$, which was
2349 generated by GNU Autoconf 2.69. Invocation command line was
2361 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2362 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2363 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2364 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2365 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2367 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2368 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2370 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2371 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2372 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2373 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2374 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2375 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2376 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir=.
2385 $as_echo "PATH: $as_dir"
2401 # Keep a trace of the command line.
2402 # Strip out --no-create and --no-recursion so they do not pile up.
2403 # Strip out --silent because we don't want to record it for future runs.
2404 # Also quote any args containing shell meta-characters.
2405 # Make two passes to allow for proper duplicate-argument suppression.
2409 ac_must_keep_next=false
2415 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417 | -silent | --silent | --silen | --sile | --sil)
2420 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2423 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2425 as_fn_append ac_configure_args1 " '$ac_arg'"
2426 if test $ac_must_keep_next = true; then
2427 ac_must_keep_next=false # Got value, back to normal.
2430 *=* | --config-cache | -C | -disable-* | --disable-* \
2431 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433 | -with-* | --with-* | -without-* | --without-* | --x)
2434 case "$ac_configure_args0 " in
2435 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2438 -* ) ac_must_keep_next=true ;;
2441 as_fn_append ac_configure_args " '$ac_arg'"
2446 { ac_configure_args0=; unset ac_configure_args0;}
2447 { ac_configure_args1=; unset ac_configure_args1;}
2449 # When interrupted or exit'd, cleanup temporary files, and complete
2450 # config.log. We remove comments because anyway the quotes in there
2451 # would cause problems or look ugly.
2452 # WARNING: Use '\'' to represent an apostrophe within the trap.
2453 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2454 trap 'exit_status=$?
2455 # Save into config.log some information that might help in debugging.
2459 $as_echo "## ---------------- ##
2460 ## Cache variables. ##
2461 ## ---------------- ##"
2463 # The following way of writing the cache mishandles newlines in values,
2465 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2466 eval ac_val=\$$ac_var
2470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2471 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2474 _ | IFS | as_nl) ;; #(
2475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2476 *) { eval $ac_var=; unset $ac_var;} ;;
2481 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2482 *${as_nl}ac_space=\ *)
2484 "s/'\''/'\''\\\\'\'''\''/g;
2485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2495 $as_echo "## ----------------- ##
2496 ## Output variables. ##
2497 ## ----------------- ##"
2499 for ac_var in $ac_subst_vars
2501 eval ac_val=\$$ac_var
2503 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2505 $as_echo "$ac_var='\''$ac_val'\''"
2509 if test -n "$ac_subst_files"; then
2510 $as_echo "## ------------------- ##
2511 ## File substitutions. ##
2512 ## ------------------- ##"
2514 for ac_var in $ac_subst_files
2516 eval ac_val=\$$ac_var
2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2520 $as_echo "$ac_var='\''$ac_val'\''"
2525 if test -s confdefs.h; then
2526 $as_echo "## ----------- ##
2533 test "$ac_signal" != 0 &&
2534 $as_echo "$as_me: caught signal $ac_signal"
2535 $as_echo "$as_me: exit $exit_status"
2537 rm -f core *.core core.conftest.* &&
2538 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2541 for ac_signal in 1 2 13 15; do
2542 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2547 rm -f -r conftest* confdefs.h
2549 $as_echo "/* confdefs.h */" > confdefs.h
2551 # Predefined preprocessor variables.
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_NAME "$PACKAGE_NAME"
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_STRING "$PACKAGE_STRING"
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_URL "$PACKAGE_URL"
2578 # Let the site file select an alternate cache file if it wants to.
2579 # Prefer an explicitly selected file to automatically selected ones.
2582 if test -n "$CONFIG_SITE"; then
2583 # We do not want a PATH search for config.site.
2584 case $CONFIG_SITE in #((
2585 -*) ac_site_file1=./$CONFIG_SITE;;
2586 */*) ac_site_file1=$CONFIG_SITE;;
2587 *) ac_site_file1=./$CONFIG_SITE;;
2589 elif test "x$prefix" != xNONE; then
2590 ac_site_file1=$prefix/share/config.site
2591 ac_site_file2=$prefix/etc/config.site
2593 ac_site_file1=$ac_default_prefix/share/config.site
2594 ac_site_file2=$ac_default_prefix/etc/config.site
2596 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2598 test "x$ac_site_file" = xNONE && continue
2599 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2601 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2602 sed 's/^/| /' "$ac_site_file" >&5
2604 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 as_fn_error $? "failed to load site script $ac_site_file
2607 See \`config.log' for more details" "$LINENO" 5; }
2611 if test -r "$cache_file"; then
2612 # Some versions of bash will fail to source /dev/null (special files
2613 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2614 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2616 $as_echo "$as_me: loading cache $cache_file" >&6;}
2618 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2619 *) . "./$cache_file";;
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2624 $as_echo "$as_me: creating cache $cache_file" >&6;}
2628 # Check that the precious variables saved in the cache have kept the same
2630 ac_cache_corrupted=false
2631 for ac_var in $ac_precious_vars; do
2632 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2633 eval ac_new_set=\$ac_env_${ac_var}_set
2634 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2635 eval ac_new_val=\$ac_env_${ac_var}_value
2636 case $ac_old_set,$ac_new_set in
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2639 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2640 ac_cache_corrupted=: ;;
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2643 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2644 ac_cache_corrupted=: ;;
2647 if test "x$ac_old_val" != "x$ac_new_val"; then
2648 # differences in whitespace do not lead to failure.
2649 ac_old_val_w=`echo x $ac_old_val`
2650 ac_new_val_w=`echo x $ac_new_val`
2651 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2653 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2654 ac_cache_corrupted=:
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2657 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2658 eval $ac_var=\$ac_old_val
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2661 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2663 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2666 # Pass precious variables to config.status.
2667 if test "$ac_new_set" = set; then
2669 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2670 *) ac_arg=$ac_var=$ac_new_val ;;
2672 case " $ac_configure_args " in
2673 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2674 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2678 if $ac_cache_corrupted; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2682 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2683 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2685 ## -------------------- ##
2686 ## Main body of script. ##
2687 ## -------------------- ##
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2701 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2702 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^^\.*\.//' | sed 's/\..*$//'`
2703 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/-.*$//'`
2705 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2706 -v minor="$RADIUSD_MINOR_VERSION" \
2707 -v incrm="$RADIUSD_INCRM_VERSION" \
2708 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2710 RADIUSD_VERSION_STRING=`cat VERSION`
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_CC+:} false; then :
2725 $as_echo_n "(cached) " >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 if test -n "$CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2758 if test -z "$ac_cv_prog_CC"; then
2760 # Extract the first word of "gcc", so it can be a program name with args.
2761 set dummy gcc; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2765 $as_echo_n "(cached) " >&6
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_ac_ct_CC="gcc"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2790 $as_echo "$ac_ct_CC" >&6; }
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2796 if test "x$ac_ct_CC" = x; then
2799 case $cross_compiling:$ac_tool_warned in
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2811 if test -z "$CC"; then
2812 if test -n "$ac_tool_prefix"; then
2813 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2814 set dummy ${ac_tool_prefix}cc; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_CC+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_CC="${ac_tool_prefix}cc"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 if test -n "$CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2852 if test -z "$CC"; then
2853 # Extract the first word of "cc", so it can be a program name with args.
2854 set dummy cc; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if ${ac_cv_prog_CC+:} false; then :
2858 $as_echo_n "(cached) " >&6
2860 if test -n "$CC"; then
2861 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2872 ac_prog_rejected=yes
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test $ac_prog_rejected = yes; then
2884 # We found a bogon in the path, so make sure we never use it.
2885 set dummy $ac_cv_prog_CC
2887 if test $# != 0; then
2888 # We chose a different compiler from the bogus one.
2889 # However, it has the same basename, so the bogon will be chosen
2890 # first if we set CC to just the basename; use the full file name.
2892 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2908 if test -z "$CC"; then
2909 if test -n "$ac_tool_prefix"; then
2910 for ac_prog in cl.exe
2912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_CC+:} false; then :
2917 $as_echo_n "(cached) " >&6
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 if test -n "$CC"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942 $as_echo "$CC" >&6; }
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2949 test -n "$CC" && break
2952 if test -z "$CC"; then
2954 for ac_prog in cl.exe
2956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$ac_ct_CC"; then
2964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_ac_ct_CC="$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984 if test -n "$ac_ct_CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2986 $as_echo "$ac_ct_CC" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$ac_ct_CC" && break
2996 if test "x$ac_ct_CC" = x; then
2999 case $cross_compiling:$ac_tool_warned in
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3012 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 as_fn_error $? "no acceptable C compiler found in \$PATH
3015 See \`config.log' for more details" "$LINENO" 5; }
3017 # Provide some information about the compiler.
3018 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3021 for ac_option in --version -v -V -qversion; do
3022 { { ac_try="$ac_compiler $ac_option >&5"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3031 if test -s conftest.err; then
3033 ... rest of stderr output deleted ...
3034 10q' conftest.err >conftest.er1
3035 cat conftest.er1 >&5
3037 rm -f conftest.er1 conftest.err
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }
3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h. */
3053 ac_clean_files_save=$ac_clean_files
3054 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3055 # Try to create an executable without -o first, disregard a.out.
3056 # It will help us diagnose broken compilers, and finding out an intuition
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3059 $as_echo_n "checking whether the C compiler works... " >&6; }
3060 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3062 # The possible output files:
3063 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3066 for ac_file in $ac_files
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3070 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3075 if { { ac_try="$ac_link_default"
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081 $as_echo "$ac_try_echo"; } >&5
3082 (eval "$ac_link_default") 2>&5
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }; then :
3086 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3087 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3088 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3089 # so that the user can short-circuit this test for compilers unknown to
3091 for ac_file in $ac_files ''
3093 test -f "$ac_file" || continue
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3098 # We found the default executable, but exeext='' is most
3102 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3104 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106 # We set ac_cv_exeext here because the later test for it is not
3107 # safe: cross compilers may not add the suffix if given an `-o'
3108 # argument, so we may need to know it at that point already.
3109 # Even if this section looks crufty: it has the advantage of
3116 test "$ac_cv_exeext" = no && ac_cv_exeext=
3121 if test -z "$ac_file"; then :
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 $as_echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error 77 "C compiler cannot create executables
3130 See \`config.log' for more details" "$LINENO" 5; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133 $as_echo "yes" >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3136 $as_echo_n "checking for C compiler default output file name... " >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3138 $as_echo "$ac_file" >&6; }
3139 ac_exeext=$ac_cv_exeext
3141 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3142 ac_clean_files=$ac_clean_files_save
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3144 $as_echo_n "checking for suffix of executables... " >&6; }
3145 if { { ac_try="$ac_link"
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151 $as_echo "$ac_try_echo"; } >&5
3152 (eval "$ac_link") 2>&5
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }; then :
3156 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3157 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3158 # work properly (i.e., refer to `conftest.exe'), while it won't with
3160 for ac_file in conftest.exe conftest conftest.*; do
3161 test -f "$ac_file" || continue
3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3164 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3173 See \`config.log' for more details" "$LINENO" 5; }
3175 rm -f conftest conftest$ac_cv_exeext
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3177 $as_echo "$ac_cv_exeext" >&6; }
3179 rm -f conftest.$ac_ext
3180 EXEEXT=$ac_cv_exeext
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3188 FILE *f = fopen ("conftest.out", "w");
3189 return ferror (f) || fclose (f) != 0;
3195 ac_clean_files="$ac_clean_files conftest.out"
3196 # Check that the compiler produces executables we can run. If not, either
3197 # the compiler is broken, or we cross compile.
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3199 $as_echo_n "checking whether we are cross compiling... " >&6; }
3200 if test "$cross_compiling" != yes; then
3201 { { ac_try="$ac_link"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_link") 2>&5
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }
3212 if { ac_try='./conftest$ac_cv_exeext'
3213 { { case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_try") 2>&5
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; }; then
3225 if test "$cross_compiling" = maybe; then
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error $? "cannot run C compiled programs.
3231 If you meant to cross compile, use \`--host'.
3232 See \`config.log' for more details" "$LINENO" 5; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3237 $as_echo "$cross_compiling" >&6; }
3239 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3240 ac_clean_files=$ac_clean_files_save
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3242 $as_echo_n "checking for suffix of object files... " >&6; }
3243 if ${ac_cv_objext+:} false; then :
3244 $as_echo_n "(cached) " >&6
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3257 rm -f conftest.o conftest.obj
3258 if { { ac_try="$ac_compile"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_compile") 2>&5
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 for ac_file in conftest.o conftest.obj conftest.*; do
3270 test -f "$ac_file" || continue;
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error $? "cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details" "$LINENO" 5; }
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3289 $as_echo "$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3293 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3294 if ${ac_cv_c_compiler_gnu+:} false; then :
3295 $as_echo_n "(cached) " >&6
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3311 if ac_fn_c_try_compile "$LINENO"; then :
3316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3321 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3322 if test $ac_compiler_gnu = yes; then
3327 ac_test_CFLAGS=${CFLAGS+set}
3328 ac_save_CFLAGS=$CFLAGS
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3330 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3331 if ${ac_cv_prog_cc_g+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 ac_save_c_werror_flag=$ac_c_werror_flag
3335 ac_c_werror_flag=yes
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3349 if ac_fn_c_try_compile "$LINENO"; then :
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3364 if ac_fn_c_try_compile "$LINENO"; then :
3367 ac_c_werror_flag=$ac_save_c_werror_flag
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3380 if ac_fn_c_try_compile "$LINENO"; then :
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 ac_c_werror_flag=$ac_save_c_werror_flag
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3391 $as_echo "$ac_cv_prog_cc_g" >&6; }
3392 if test "$ac_test_CFLAGS" = set; then
3393 CFLAGS=$ac_save_CFLAGS
3394 elif test $ac_cv_prog_cc_g = yes; then
3395 if test "$GCC" = yes; then
3401 if test "$GCC" = yes; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3408 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3409 if ${ac_cv_prog_cc_c89+:} false; then :
3410 $as_echo_n "(cached) " >&6
3412 ac_cv_prog_cc_c89=no
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3420 struct buf { int x; };
3421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3422 static char *e (p, i)
3428 static char *f (char * (*g) (char **, int), char **p, ...)
3433 s = g (p, va_arg (v,int));
3438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3439 function prototypes and stuff, but not '\xHH' hex character constants.
3440 These don't provoke an error unfortunately, instead are silently treated
3441 as 'x'. The following induces an error, until -std is added to get
3442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3443 array size at least. It's necessary to write '\x00'==0 to get something
3444 that's true only with -std. */
3445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3448 inside strings and character constants. */
3450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3452 int test (int i, double x);
3453 struct s1 {int (*f) (int a);};
3454 struct s2 {int (*f) (double a);};
3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3469 CC="$ac_save_CC $ac_arg"
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_cv_prog_cc_c89=$ac_arg
3473 rm -f core conftest.err conftest.$ac_objext
3474 test "x$ac_cv_prog_cc_c89" != "xno" && break
3476 rm -f conftest.$ac_ext
3481 case "x$ac_cv_prog_cc_c89" in
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3484 $as_echo "none needed" >&6; } ;;
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3487 $as_echo "unsupported" >&6; } ;;
3489 CC="$CC $ac_cv_prog_cc_c89"
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3491 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3493 if test "x$ac_cv_prog_cc_c89" != xno; then :
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 ac_cpp='$CXXCPP $CPPFLAGS'
3505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508 if test -z "$CXX"; then
3509 if test -n "$CCC"; then
3512 if test -n "$ac_tool_prefix"; then
3513 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_CXX+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 if test -n "$CXX"; then
3523 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 if test -n "$CXX"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3545 $as_echo "$CXX" >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3552 test -n "$CXX" && break
3555 if test -z "$CXX"; then
3557 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3559 # Extract the first word of "$ac_prog", so it can be a program name with args.
3560 set dummy $ac_prog; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3564 $as_echo_n "(cached) " >&6
3566 if test -n "$ac_ct_CXX"; then
3567 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_ac_ct_CXX="$ac_prog"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3587 if test -n "$ac_ct_CXX"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3589 $as_echo "$ac_ct_CXX" >&6; }
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3596 test -n "$ac_ct_CXX" && break
3599 if test "x$ac_ct_CXX" = x; then
3602 case $cross_compiling:$ac_tool_warned in
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3606 ac_tool_warned=yes ;;
3614 # Provide some information about the compiler.
3615 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3618 for ac_option in --version -v -V -qversion; do
3619 { { ac_try="$ac_compiler $ac_option >&5"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3628 if test -s conftest.err; then
3630 ... rest of stderr output deleted ...
3631 10q' conftest.err >conftest.er1
3632 cat conftest.er1 >&5
3634 rm -f conftest.er1 conftest.err
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3640 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3641 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3642 $as_echo_n "(cached) " >&6
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3658 if ac_fn_cxx_try_compile "$LINENO"; then :
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3668 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3669 if test $ac_compiler_gnu = yes; then
3674 ac_test_CXXFLAGS=${CXXFLAGS+set}
3675 ac_save_CXXFLAGS=$CXXFLAGS
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3677 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3678 if ${ac_cv_prog_cxx_g+:} false; then :
3679 $as_echo_n "(cached) " >&6
3681 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3682 ac_cxx_werror_flag=yes
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3696 if ac_fn_cxx_try_compile "$LINENO"; then :
3697 ac_cv_prog_cxx_g=yes
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3711 if ac_fn_cxx_try_compile "$LINENO"; then :
3714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3727 if ac_fn_cxx_try_compile "$LINENO"; then :
3728 ac_cv_prog_cxx_g=yes
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3738 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3739 if test "$ac_test_CXXFLAGS" = set; then
3740 CXXFLAGS=$ac_save_CXXFLAGS
3741 elif test $ac_cv_prog_cxx_g = yes; then
3742 if test "$GXX" = yes; then
3748 if test "$GXX" = yes; then
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3768 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3769 # On Suns, sometimes $CPP names a directory.
3770 if test -n "$CPP" && test -d "$CPP"; then
3773 if test -z "$CPP"; then
3774 if ${ac_cv_prog_CPP+:} false; then :
3775 $as_echo_n "(cached) " >&6
3777 # Double quotes because CPP needs to be expanded
3778 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3781 for ac_c_preproc_warn_flag in '' yes
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3792 # include <limits.h>
3794 # include <assert.h>
3798 if ac_fn_c_try_cpp "$LINENO"; then :
3801 # Broken: fails on valid input.
3804 rm -f conftest.err conftest.i conftest.$ac_ext
3806 # OK, works on sane cases. Now check whether nonexistent headers
3807 # can be detected and how.
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810 #include <ac_nonexistent.h>
3812 if ac_fn_c_try_cpp "$LINENO"; then :
3813 # Broken: success on invalid input.
3816 # Passes both tests.
3820 rm -f conftest.err conftest.i conftest.$ac_ext
3823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3824 rm -f conftest.i conftest.err conftest.$ac_ext
3825 if $ac_preproc_ok; then :
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3838 $as_echo "$CPP" >&6; }
3840 for ac_c_preproc_warn_flag in '' yes
3842 # Use a header file that comes with gcc, so configuring glibc
3843 # with a fresh cross-compiler works.
3844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3845 # <limits.h> exists even on freestanding compilers.
3846 # On the NeXT, cc -E runs the code through the compiler's parser,
3847 # not just through cpp. "Syntax error" is here to catch this case.
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3851 # include <limits.h>
3853 # include <assert.h>
3857 if ac_fn_c_try_cpp "$LINENO"; then :
3860 # Broken: fails on valid input.
3863 rm -f conftest.err conftest.i conftest.$ac_ext
3865 # OK, works on sane cases. Now check whether nonexistent headers
3866 # can be detected and how.
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869 #include <ac_nonexistent.h>
3871 if ac_fn_c_try_cpp "$LINENO"; then :
3872 # Broken: success on invalid input.
3875 # Passes both tests.
3879 rm -f conftest.err conftest.i conftest.$ac_ext
3882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3883 rm -f conftest.i conftest.err conftest.$ac_ext
3884 if $ac_preproc_ok; then :
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3890 See \`config.log' for more details" "$LINENO" 5; }
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3901 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3902 if ${ac_cv_path_GREP+:} false; then :
3903 $as_echo_n "(cached) " >&6
3905 if test -z "$GREP"; then
3906 ac_path_GREP_found=false
3907 # Loop through the user's path and test for each of PROGNAME-LIST
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3912 test -z "$as_dir" && as_dir=.
3913 for ac_prog in grep ggrep; do
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3916 as_fn_executable_p "$ac_path_GREP" || continue
3917 # Check for GNU ac_path_GREP and select it if it is found.
3918 # Check for GNU $ac_path_GREP
3919 case `"$ac_path_GREP" --version 2>&1` in
3921 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3924 $as_echo_n 0123456789 >"conftest.in"
3927 cat "conftest.in" "conftest.in" >"conftest.tmp"
3928 mv "conftest.tmp" "conftest.in"
3929 cp "conftest.in" "conftest.nl"
3930 $as_echo 'GREP' >> "conftest.nl"
3931 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3933 as_fn_arith $ac_count + 1 && ac_count=$as_val
3934 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3935 # Best one so far, save it but keep looking for a better one
3936 ac_cv_path_GREP="$ac_path_GREP"
3937 ac_path_GREP_max=$ac_count
3939 # 10*(2^10) chars as input seems more than enough
3940 test $ac_count -gt 10 && break
3942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3945 $ac_path_GREP_found && break 3
3950 if test -z "$ac_cv_path_GREP"; then
3951 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3954 ac_cv_path_GREP=$GREP
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3959 $as_echo "$ac_cv_path_GREP" >&6; }
3960 GREP="$ac_cv_path_GREP"
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3964 $as_echo_n "checking for egrep... " >&6; }
3965 if ${ac_cv_path_EGREP+:} false; then :
3966 $as_echo_n "(cached) " >&6
3968 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3969 then ac_cv_path_EGREP="$GREP -E"
3971 if test -z "$EGREP"; then
3972 ac_path_EGREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978 test -z "$as_dir" && as_dir=.
3979 for ac_prog in egrep; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3982 as_fn_executable_p "$ac_path_EGREP" || continue
3983 # Check for GNU ac_path_EGREP and select it if it is found.
3984 # Check for GNU $ac_path_EGREP
3985 case `"$ac_path_EGREP" --version 2>&1` in
3987 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990 $as_echo_n 0123456789 >"conftest.in"
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 $as_echo 'EGREP' >> "conftest.nl"
3997 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 as_fn_arith $ac_count + 1 && ac_count=$as_val
4000 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_EGREP="$ac_path_EGREP"
4003 ac_path_EGREP_max=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011 $ac_path_EGREP_found && break 3
4016 if test -z "$ac_cv_path_EGREP"; then
4017 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4020 ac_cv_path_EGREP=$EGREP
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4026 $as_echo "$ac_cv_path_EGREP" >&6; }
4027 EGREP="$ac_cv_path_EGREP"
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4031 $as_echo_n "checking for ANSI C header files... " >&6; }
4032 if ${ac_cv_header_stdc+:} false; then :
4033 $as_echo_n "(cached) " >&6
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_header_stdc=yes
4053 ac_cv_header_stdc=no
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 if test $ac_cv_header_stdc = yes; then
4058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4065 $EGREP "memchr" >/dev/null 2>&1; then :
4068 ac_cv_header_stdc=no
4074 if test $ac_cv_header_stdc = yes; then
4075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4082 $EGREP "free" >/dev/null 2>&1; then :
4085 ac_cv_header_stdc=no
4091 if test $ac_cv_header_stdc = yes; then
4092 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4093 if test "$cross_compiling" = yes; then :
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4100 #if ((' ' & 0x0FF) == 0x020)
4101 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4102 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4104 # define ISLOWER(c) \
4105 (('a' <= (c) && (c) <= 'i') \
4106 || ('j' <= (c) && (c) <= 'r') \
4107 || ('s' <= (c) && (c) <= 'z'))
4108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4116 for (i = 0; i < 256; i++)
4117 if (XOR (islower (i), ISLOWER (i))
4118 || toupper (i) != TOUPPER (i))
4123 if ac_fn_c_try_run "$LINENO"; then :
4126 ac_cv_header_stdc=no
4128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4129 conftest.$ac_objext conftest.beam conftest.$ac_ext
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4135 $as_echo "$ac_cv_header_stdc" >&6; }
4136 if test $ac_cv_header_stdc = yes; then
4138 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4142 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4143 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4144 inttypes.h stdint.h unistd.h
4146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4147 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4149 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4150 cat >>confdefs.h <<_ACEOF
4151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4160 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4161 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4168 if test "$MINIX" = yes; then
4170 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4173 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4176 $as_echo "#define _MINIX 1" >>confdefs.h
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4182 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4183 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4184 $as_echo_n "(cached) " >&6
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4189 # define __EXTENSIONS__ 1
4190 $ac_includes_default
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200 ac_cv_safe_to_define___extensions__=yes
4202 ac_cv_safe_to_define___extensions__=no
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4207 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4208 test $ac_cv_safe_to_define___extensions__ = yes &&
4209 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4211 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4213 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4215 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4217 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4222 if test $ac_cv_c_compiler_gnu = yes; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4224 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4225 if ${ac_cv_prog_gcc_traditional+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 ac_pattern="Autoconf.*'x'"
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4236 ac_cv_prog_gcc_traditional=yes
4238 ac_cv_prog_gcc_traditional=no
4243 if test $ac_cv_prog_gcc_traditional = no; then
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4251 ac_cv_prog_gcc_traditional=yes
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4258 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4259 if test $ac_cv_prog_gcc_traditional = yes; then
4260 CC="$CC -traditional"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4265 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4266 if ${ac_cv_prog_suncc+:} false; then :
4267 $as_echo_n "(cached) " >&6
4269 cat > conftest.c <<EOF
4274 if { ac_try='${CC-cc} -E conftest.c'
4275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4280 ac_cv_prog_suncc=yes
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4286 $as_echo "$ac_cv_prog_suncc" >&6; }
4287 if test -n "$ac_tool_prefix"; then
4288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_RANLIB+:} false; then :
4293 $as_echo_n "(cached) " >&6
4295 if test -n "$RANLIB"; then
4296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 RANLIB=$ac_cv_prog_RANLIB
4316 if test -n "$RANLIB"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4318 $as_echo "$RANLIB" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4326 if test -z "$ac_cv_prog_RANLIB"; then
4327 ac_ct_RANLIB=$RANLIB
4328 # Extract the first word of "ranlib", so it can be a program name with args.
4329 set dummy ranlib; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -n "$ac_ct_RANLIB"; then
4336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_prog_ac_ct_RANLIB="ranlib"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4356 if test -n "$ac_ct_RANLIB"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4358 $as_echo "$ac_ct_RANLIB" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4364 if test "x$ac_ct_RANLIB" = x; then
4367 case $cross_compiling:$ac_tool_warned in
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4373 RANLIB=$ac_ct_RANLIB
4376 RANLIB="$ac_cv_prog_RANLIB"
4380 if test "x$GCC" = "xyes"; then
4381 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4384 # Check whether --enable-largefile was given.
4385 if test "${enable_largefile+set}" = set; then :
4386 enableval=$enable_largefile;
4389 if test "$enable_largefile" != no; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4392 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4393 if ${ac_cv_sys_largefile_CC+:} false; then :
4394 $as_echo_n "(cached) " >&6
4396 ac_cv_sys_largefile_CC=no
4397 if test "$GCC" != yes; then
4400 # IRIX 6.2 and later do not support large files by default,
4401 # so use the C compiler's -n32 option if that helps.
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404 #include <sys/types.h>
4405 /* Check that off_t can represent 2**63 - 1 correctly.
4406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4407 since some C++ compilers masquerading as C compilers
4408 incorrectly reject 9223372036854775807. */
4409 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4411 && LARGE_OFF_T % 2147483647 == 1)
4421 if ac_fn_c_try_compile "$LINENO"; then :
4424 rm -f core conftest.err conftest.$ac_objext
4426 if ac_fn_c_try_compile "$LINENO"; then :
4427 ac_cv_sys_largefile_CC=' -n32'; break
4429 rm -f core conftest.err conftest.$ac_objext
4433 rm -f conftest.$ac_ext
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4437 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4438 if test "$ac_cv_sys_largefile_CC" != no; then
4439 CC=$CC$ac_cv_sys_largefile_CC
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4443 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4444 if ${ac_cv_sys_file_offset_bits+:} false; then :
4445 $as_echo_n "(cached) " >&6
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <sys/types.h>
4451 /* Check that off_t can represent 2**63 - 1 correctly.
4452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4453 since some C++ compilers masquerading as C compilers
4454 incorrectly reject 9223372036854775807. */
4455 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4457 && LARGE_OFF_T % 2147483647 == 1)
4467 if ac_fn_c_try_compile "$LINENO"; then :
4468 ac_cv_sys_file_offset_bits=no; break
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 #define _FILE_OFFSET_BITS 64
4474 #include <sys/types.h>
4475 /* Check that off_t can represent 2**63 - 1 correctly.
4476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4477 since some C++ compilers masquerading as C compilers
4478 incorrectly reject 9223372036854775807. */
4479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4481 && LARGE_OFF_T % 2147483647 == 1)
4491 if ac_fn_c_try_compile "$LINENO"; then :
4492 ac_cv_sys_file_offset_bits=64; break
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 ac_cv_sys_file_offset_bits=unknown
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4500 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4501 case $ac_cv_sys_file_offset_bits in #(
4504 cat >>confdefs.h <<_ACEOF
4505 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4510 if test $ac_cv_sys_file_offset_bits = unknown; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4512 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4513 if ${ac_cv_sys_large_files+:} false; then :
4514 $as_echo_n "(cached) " >&6
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #include <sys/types.h>
4520 /* Check that off_t can represent 2**63 - 1 correctly.
4521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4522 since some C++ compilers masquerading as C compilers
4523 incorrectly reject 9223372036854775807. */
4524 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4526 && LARGE_OFF_T % 2147483647 == 1)
4536 if ac_fn_c_try_compile "$LINENO"; then :
4537 ac_cv_sys_large_files=no; break
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 #define _LARGE_FILES 1
4543 #include <sys/types.h>
4544 /* Check that off_t can represent 2**63 - 1 correctly.
4545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4546 since some C++ compilers masquerading as C compilers
4547 incorrectly reject 9223372036854775807. */
4548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4550 && LARGE_OFF_T % 2147483647 == 1)
4560 if ac_fn_c_try_compile "$LINENO"; then :
4561 ac_cv_sys_large_files=1; break
4563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564 ac_cv_sys_large_files=unknown
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4569 $as_echo "$ac_cv_sys_large_files" >&6; }
4570 case $ac_cv_sys_large_files in #(
4573 cat >>confdefs.h <<_ACEOF
4574 #define _LARGE_FILES $ac_cv_sys_large_files
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4586 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4587 if ${ac_cv_c_bigendian+:} false; then :
4588 $as_echo_n "(cached) " >&6
4590 ac_cv_c_bigendian=unknown
4591 # See if we're dealing with a universal compiler.
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594 #ifndef __APPLE_CC__
4595 not a universal capable compiler
4600 if ac_fn_c_try_compile "$LINENO"; then :
4602 # Check for potential -arch flags. It is not universal unless
4603 # there are at least two -arch flags with different values.
4606 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4607 if test -n "$ac_prev"; then
4609 i?86 | x86_64 | ppc | ppc64)
4610 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4613 ac_cv_c_bigendian=universal
4619 elif test "x$ac_word" = "x-arch"; then
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 if test $ac_cv_c_bigendian = unknown; then
4626 # See if sys/param.h defines the BYTE_ORDER macro.
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #include <sys/types.h>
4630 #include <sys/param.h>
4635 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4636 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 # It does; now see whether it defined to BIG_ENDIAN or not.
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <sys/types.h>
4650 #include <sys/param.h>
4655 #if BYTE_ORDER != BIG_ENDIAN
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_cv_c_bigendian=yes
4666 ac_cv_c_bigendian=no
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 if test $ac_cv_c_bigendian = unknown; then
4673 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4681 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4689 if ac_fn_c_try_compile "$LINENO"; then :
4690 # It does; now see whether it defined to _BIG_ENDIAN or not.
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_c_bigendian=yes
4709 ac_cv_c_bigendian=no
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715 if test $ac_cv_c_bigendian = unknown; then
4716 # Compile a test program.
4717 if test "$cross_compiling" = yes; then :
4718 # Try to guess by grepping values from an object file.
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 short int ascii_mm[] =
4722 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4723 short int ascii_ii[] =
4724 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4725 int use_ascii (int i) {
4726 return ascii_mm[i] + ascii_ii[i];
4728 short int ebcdic_ii[] =
4729 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4730 short int ebcdic_mm[] =
4731 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4732 int use_ebcdic (int i) {
4733 return ebcdic_mm[i] + ebcdic_ii[i];
4740 return use_ascii (foo) == use_ebcdic (foo);
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4747 ac_cv_c_bigendian=yes
4749 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4750 if test "$ac_cv_c_bigendian" = unknown; then
4751 ac_cv_c_bigendian=no
4753 # finding both strings is unlikely to happen, but who knows?
4754 ac_cv_c_bigendian=unknown
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 $ac_includes_default
4767 /* Are we little or big endian? From Harbison&Steele. */
4771 char c[sizeof (long int)];
4774 return u.c[sizeof (long int) - 1] == 1;
4780 if ac_fn_c_try_run "$LINENO"; then :
4781 ac_cv_c_bigendian=no
4783 ac_cv_c_bigendian=yes
4785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4786 conftest.$ac_objext conftest.beam conftest.$ac_ext
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4792 $as_echo "$ac_cv_c_bigendian" >&6; }
4793 case $ac_cv_c_bigendian in #(
4795 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4801 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4805 as_fn_error $? "unknown endianness
4806 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4810 # Extract the first word of "gmake", so it can be a program name with args.
4811 set dummy gmake; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if ${ac_cv_prog_GMAKE+:} false; then :
4815 $as_echo_n "(cached) " >&6
4817 if test -n "$GMAKE"; then
4818 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 ac_cv_prog_GMAKE="yes"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4838 GMAKE=$ac_cv_prog_GMAKE
4839 if test -n "$GMAKE"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4841 $as_echo "$GMAKE" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4848 if test $GMAKE = no; then
4849 # Extract the first word of "make", so it can be a program name with args.
4850 set dummy make; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if ${ac_cv_path_MAKE+:} false; then :
4854 $as_echo_n "(cached) " >&6
4858 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4880 MAKE=$ac_cv_path_MAKE
4881 if test -n "$MAKE"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4883 $as_echo "$MAKE" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4891 # Extract the first word of "gmake", so it can be a program name with args.
4892 set dummy gmake; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_path_MAKE+:} false; then :
4896 $as_echo_n "(cached) " >&6
4900 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4922 MAKE=$ac_cv_path_MAKE
4923 if test -n "$MAKE"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4925 $as_echo "$MAKE" >&6; }
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4933 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4934 if test -z "$makever"; then
4935 as_fn_error $? "GNU Make is not installed. Please download and install it
4936 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4939 # Extract the first word of "git", so it can be a program name with args.
4940 set dummy git; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_prog_GIT+:} false; then :
4944 $as_echo_n "(cached) " >&6
4946 if test -n "$GIT"; then
4947 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_GIT="yes"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4968 if test -n "$GIT"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4970 $as_echo "$GIT" >&6; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4979 # Check whether --with-system-libltdl was given.
4980 if test "${with_system_libltdl+set}" = set; then :
4981 withval=$with_system_libltdl;
4983 INCLTDL=-DWITH_SYSTEM_LTDL
4988 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
4990 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
4991 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
4992 $as_echo_n "(cached) " >&6
4994 ac_check_lib_save_LIBS=$LIBS
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4999 /* Override any GCC internal prototype to avoid an error.
5000 Use char because int might match the return type of a GCC
5001 builtin and then its argument prototype would still apply. */
5009 return lt_dlinit ();
5014 if ac_fn_c_try_link "$LINENO"; then :
5015 ac_cv_lib_ltdl_lt_dlinit=yes
5017 ac_cv_lib_ltdl_lt_dlinit=no
5019 rm -f core conftest.err conftest.$ac_objext \
5020 conftest$ac_exeext conftest.$ac_ext
5021 LIBS=$ac_check_lib_save_LIBS
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5024 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5025 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5026 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5028 if test x"$enable_ltdl_install" = xno; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5030 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5032 enable_ltdl_install=yes
5037 if test x"$enable_ltdl_install" = x"yes"; then
5038 ac_configure_args="$ac_configure_args --enable-ltdl-install"
5039 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5040 LTDLINCL='-I${top_srcdir}/''libltdl'
5042 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5046 # For backwards non-gettext consistent compatibility...
5050 if test x"$enable_ltdl_install" = x"yes"; then
5051 LTDL_SUBDIRS=libltdl
5058 # Check whether --enable-shared was given.
5059 if test "${enable_shared+set}" = set; then :
5060 enableval=$enable_shared; p=${PACKAGE-default}
5062 yes) enable_shared=yes ;;
5063 no) enable_shared=no ;;
5066 # Look at the argument we got. We use all the common list separators.
5067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5068 for pkg in $enableval; do
5070 if test "X$pkg" = "X$p"; then
5082 # Check whether --enable-static was given.
5083 if test "${enable_static+set}" = set; then :
5084 enableval=$enable_static; p=${PACKAGE-default}
5086 yes) enable_static=yes ;;
5087 no) enable_static=no ;;
5090 # Look at the argument we got. We use all the common list separators.
5091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5092 for pkg in $enableval; do
5094 if test "X$pkg" = "X$p"; then
5106 # Check whether --enable-fast-install was given.
5107 if test "${enable_fast_install+set}" = set; then :
5108 enableval=$enable_fast_install; p=${PACKAGE-default}
5110 yes) enable_fast_install=yes ;;
5111 no) enable_fast_install=no ;;
5113 enable_fast_install=no
5114 # Look at the argument we got. We use all the common list separators.
5115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5116 for pkg in $enableval; do
5118 if test "X$pkg" = "X$p"; then
5119 enable_fast_install=yes
5126 enable_fast_install=yes
5131 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5132 if test -f "$ac_dir/install-sh"; then
5134 ac_install_sh="$ac_aux_dir/install-sh -c"
5136 elif test -f "$ac_dir/install.sh"; then
5138 ac_install_sh="$ac_aux_dir/install.sh -c"
5140 elif test -f "$ac_dir/shtool"; then
5142 ac_install_sh="$ac_aux_dir/shtool install -c"
5146 if test -z "$ac_aux_dir"; then
5147 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5150 # These three variables are undocumented and unsupported,
5151 # and are intended to be withdrawn in a future Autoconf release.
5152 # They can cause serious problems if a builder's source tree is in a directory
5153 # whose full name contains unusual characters.
5154 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5155 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5156 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5159 # Make sure we can run config.sub.
5160 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5161 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5164 $as_echo_n "checking build system type... " >&6; }
5165 if ${ac_cv_build+:} false; then :
5166 $as_echo_n "(cached) " >&6
5168 ac_build_alias=$build_alias
5169 test "x$ac_build_alias" = x &&
5170 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5171 test "x$ac_build_alias" = x &&
5172 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5173 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5174 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5178 $as_echo "$ac_cv_build" >&6; }
5179 case $ac_cv_build in
5181 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5184 ac_save_IFS=$IFS; IFS='-'
5190 # Remember, the first character of IFS is used to create $*,
5191 # except with old shells:
5194 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5198 $as_echo_n "checking host system type... " >&6; }
5199 if ${ac_cv_host+:} false; then :
5200 $as_echo_n "(cached) " >&6
5202 if test "x$host_alias" = x; then
5203 ac_cv_host=$ac_cv_build
5205 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5206 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5211 $as_echo "$ac_cv_host" >&6; }
5214 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5217 ac_save_IFS=$IFS; IFS='-'
5223 # Remember, the first character of IFS is used to create $*,
5224 # except with old shells:
5227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5231 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5232 if ${lt_cv_path_SED+:} false; then :
5233 $as_echo_n "(cached) " >&6
5235 # Loop through the user's path and test for sed and gsed.
5236 # Then use that list of sed's as ones to test for truncation.
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir=.
5242 for lt_ac_prog in sed gsed; do
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5245 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5253 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5254 # along with /bin/sed that truncates output.
5255 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5256 test ! -f $lt_ac_sed && continue
5257 cat /dev/null > conftest.in
5259 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5260 # Check for GNU sed and select it if it is found.
5261 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5262 lt_cv_path_SED=$lt_ac_sed
5266 cat conftest.in conftest.in >conftest.tmp
5267 mv conftest.tmp conftest.in
5268 cp conftest.in conftest.nl
5270 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5271 cmp -s conftest.out conftest.nl || break
5272 # 10000 chars as input seems more than enough
5273 test $lt_ac_count -gt 10 && break
5274 lt_ac_count=`expr $lt_ac_count + 1`
5275 if test $lt_ac_count -gt $lt_ac_max; then
5276 lt_ac_max=$lt_ac_count
5277 lt_cv_path_SED=$lt_ac_sed
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5287 $as_echo "$SED" >&6; }
5290 # Check whether --with-gnu-ld was given.
5291 if test "${with_gnu_ld+set}" = set; then :
5292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5298 if test "$GCC" = yes; then
5299 # Check if gcc -print-prog-name=ld gives a path.
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5301 $as_echo_n "checking for ld used by $CC... " >&6; }
5304 # gcc leaves a trailing carriage return which upsets mingw
5305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5310 # Accept absolute paths.
5312 re_direlt='/[^/][^/]*/\.\./'
5313 # Canonicalize the pathname of ld
5314 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5315 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5316 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5318 test -z "$LD" && LD="$ac_prog"
5321 # If it fails, then pretend we aren't using GCC.
5325 # If it is relative, then search for the first ld in PATH.
5329 elif test "$with_gnu_ld" = yes; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5331 $as_echo_n "checking for GNU ld... " >&6; }
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5334 $as_echo_n "checking for non-GNU ld... " >&6; }
5336 if ${lt_cv_path_LD+:} false; then :
5337 $as_echo_n "(cached) " >&6
5339 if test -z "$LD"; then
5340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341 for ac_dir in $PATH; do
5343 test -z "$ac_dir" && ac_dir=.
5344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5345 lt_cv_path_LD="$ac_dir/$ac_prog"
5346 # Check to see if the program is GNU ld. I'd rather use --version,
5347 # but apparently some variants of GNU ld only accept -v.
5348 # Break only if it was the GNU/non-GNU ld that we prefer.
5349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5350 *GNU* | *'with BFD'*)
5351 test "$with_gnu_ld" != no && break
5354 test "$with_gnu_ld" != yes && break
5361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5366 if test -n "$LD"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5368 $as_echo "$LD" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5373 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5376 if ${lt_cv_prog_gnu_ld+:} false; then :
5377 $as_echo_n "(cached) " >&6
5379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5380 case `$LD -v 2>&1 </dev/null` in
5381 *GNU* | *'with BFD'*)
5382 lt_cv_prog_gnu_ld=yes
5385 lt_cv_prog_gnu_ld=no
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5391 with_gnu_ld=$lt_cv_prog_gnu_ld
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5395 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5396 if ${lt_cv_ld_reload_flag+:} false; then :
5397 $as_echo_n "(cached) " >&6
5399 lt_cv_ld_reload_flag='-r'
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5402 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5403 reload_flag=$lt_cv_ld_reload_flag
5404 case $reload_flag in
5406 *) reload_flag=" $reload_flag" ;;
5408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5411 if test "$GCC" = yes; then
5412 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5414 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5420 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5421 if ${lt_cv_path_NM+:} false; then :
5422 $as_echo_n "(cached) " >&6
5424 if test -n "$NM"; then
5425 # Let the user override the test.
5428 lt_nm_to_check="${ac_tool_prefix}nm"
5429 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5430 lt_nm_to_check="$lt_nm_to_check nm"
5432 for lt_tmp_nm in $lt_nm_to_check; do
5433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5434 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5436 test -z "$ac_dir" && ac_dir=.
5437 tmp_nm="$ac_dir/$lt_tmp_nm"
5438 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5439 # Check to see if the nm accepts a BSD-compat flag.
5440 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5441 # nm: unknown option "B" ignored
5442 # Tru64's nm complains that /dev/null is an invalid object file
5443 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5444 */dev/null* | *'Invalid file or object type'*)
5445 lt_cv_path_NM="$tmp_nm -B"
5449 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5451 lt_cv_path_NM="$tmp_nm -p"
5455 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5456 continue # so that we can try to find one that supports BSD flags
5465 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5469 $as_echo "$lt_cv_path_NM" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5473 $as_echo_n "checking whether ln -s works... " >&6; }
5475 if test "$LN_S" = "ln -s"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5477 $as_echo "yes" >&6; }
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5480 $as_echo "no, using $LN_S" >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5484 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5485 if ${lt_cv_deplibs_check_method+:} false; then :
5486 $as_echo_n "(cached) " >&6
5488 lt_cv_file_magic_cmd='$MAGIC_CMD'
5489 lt_cv_file_magic_test_file=
5490 lt_cv_deplibs_check_method='unknown'
5491 # Need to set the preceding variable on all platforms that support
5492 # interlibrary dependencies.
5493 # 'none' -- dependencies not supported.
5494 # `unknown' -- same as none, but documents that we really don't know.
5495 # 'pass_all' -- all dependencies passed with no checks.
5496 # 'test_compile' -- check by making test program.
5497 # 'file_magic [[regex]]' -- check by looking for files in library path
5498 # which responds to the $file_magic_cmd with a given extended regex.
5499 # If you have `file' or equivalent on your system and you're not sure
5500 # whether `pass_all' will *always* work, you probably want this one.
5504 lt_cv_deplibs_check_method=pass_all
5508 lt_cv_deplibs_check_method=pass_all
5512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5513 lt_cv_file_magic_cmd='/usr/bin/file -L'
5514 lt_cv_file_magic_test_file=/shlib/libc.so
5518 # func_win32_libid is a shell function defined in ltmain.sh
5519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5520 lt_cv_file_magic_cmd='func_win32_libid'
5524 # Base MSYS/MinGW do not provide the 'file' command needed by
5525 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5526 # unless we find 'file', for example because we are cross-compiling.
5527 if ( file / ) >/dev/null 2>&1; then
5528 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5529 lt_cv_file_magic_cmd='func_win32_libid'
5531 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5532 lt_cv_file_magic_cmd='$OBJDUMP -f'
5536 darwin* | rhapsody*)
5537 lt_cv_deplibs_check_method=pass_all
5540 freebsd* | dragonfly*)
5541 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5544 # Not sure whether the presence of OpenBSD here was a mistake.
5545 # Let's accept both of them until this is cleared up.
5546 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5547 lt_cv_file_magic_cmd=/usr/bin/file
5548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5552 lt_cv_deplibs_check_method=pass_all
5557 lt_cv_deplibs_check_method=pass_all
5560 hpux10.20* | hpux11*)
5561 lt_cv_file_magic_cmd=/usr/bin/file
5564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5565 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5568 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]'
5569 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5573 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5579 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5583 irix5* | irix6* | nonstopux*)
5585 *-32|*"-32 ") libmagic=32-bit;;
5586 *-n32|*"-n32 ") libmagic=N32;;
5587 *-64|*"-64 ") libmagic=64-bit;;
5588 *) libmagic=never-match;;
5590 lt_cv_deplibs_check_method=pass_all
5593 # This must be Linux ELF.
5594 linux* | k*bsd*-gnu)
5595 lt_cv_deplibs_check_method=pass_all
5598 netbsd* | netbsdelf*-gnu)
5599 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5608 lt_cv_file_magic_cmd=/usr/bin/file
5609 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5613 lt_cv_deplibs_check_method=unknown
5617 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624 osf3* | osf4* | osf5*)
5625 lt_cv_deplibs_check_method=pass_all
5629 lt_cv_deplibs_check_method=pass_all
5633 lt_cv_deplibs_check_method=pass_all
5637 case $host_vendor in
5639 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]'
5640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5643 lt_cv_deplibs_check_method=pass_all
5646 lt_cv_file_magic_cmd='/bin/file'
5647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5650 lt_cv_file_magic_cmd='/bin/file'
5651 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5652 lt_cv_file_magic_test_file=/lib/libc.so
5655 lt_cv_deplibs_check_method=pass_all
5658 lt_cv_deplibs_check_method=pass_all
5663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5664 lt_cv_deplibs_check_method=pass_all
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5670 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5671 file_magic_cmd=$lt_cv_file_magic_cmd
5672 deplibs_check_method=$lt_cv_deplibs_check_method
5673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5678 # If no C compiler was specified, use CC.
5681 # If no C compiler flags were specified, use CFLAGS.
5682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5684 # Allow CC to be a program name with arguments.
5687 # Check whether --enable-libtool-lock was given.
5688 if test "${enable_libtool_lock+set}" = set; then :
5689 enableval=$enable_libtool_lock;
5692 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5694 # Some flags need to be propagated to the compiler or linker for good
5698 # Find out which ABI we are using.
5699 echo 'int i;' > conftest.$ac_ext
5700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5701 (eval $ac_compile) 2>&5
5703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704 test $ac_status = 0; }; then
5705 case `/usr/bin/file conftest.$ac_objext` in
5717 # Find out which ABI we are using.
5718 echo '#line 5718 "configure"' > conftest.$ac_ext
5719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5720 (eval $ac_compile) 2>&5
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; }; then
5724 if test "$lt_cv_prog_gnu_ld" = yes; then
5725 case `/usr/bin/file conftest.$ac_objext` in
5727 LD="${LD-ld} -melf32bsmip"
5730 LD="${LD-ld} -melf32bmipn32"
5733 LD="${LD-ld} -melf64bmip"
5737 case `/usr/bin/file conftest.$ac_objext` in
5753 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5754 s390*-*linux*|sparc*-*linux*)
5755 # Find out which ABI we are using.
5756 echo 'int i;' > conftest.$ac_ext
5757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5758 (eval $ac_compile) 2>&5
5760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761 test $ac_status = 0; }; then
5762 case `/usr/bin/file conftest.o` in
5765 x86_64-*kfreebsd*-gnu)
5766 LD="${LD-ld} -m elf_i386_fbsd"
5769 LD="${LD-ld} -m elf_i386"
5771 ppc64-*linux*|powerpc64-*linux*)
5772 LD="${LD-ld} -m elf32ppclinux"
5775 LD="${LD-ld} -m elf_s390"
5778 LD="${LD-ld} -m elf32_sparc"
5784 x86_64-*kfreebsd*-gnu)
5785 LD="${LD-ld} -m elf_x86_64_fbsd"
5788 LD="${LD-ld} -m elf_x86_64"
5790 ppc*-*linux*|powerpc*-*linux*)
5791 LD="${LD-ld} -m elf64ppc"
5794 LD="${LD-ld} -m elf64_s390"
5797 LD="${LD-ld} -m elf64_sparc"
5807 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5808 SAVE_CFLAGS="$CFLAGS"
5809 CFLAGS="$CFLAGS -belf"
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5811 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5812 if ${lt_cv_cc_needs_belf+:} false; then :
5813 $as_echo_n "(cached) " >&6
5816 ac_cpp='$CPP $CPPFLAGS'
5817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5832 if ac_fn_c_try_link "$LINENO"; then :
5833 lt_cv_cc_needs_belf=yes
5835 lt_cv_cc_needs_belf=no
5837 rm -f core conftest.err conftest.$ac_objext \
5838 conftest$ac_exeext conftest.$ac_ext
5840 ac_cpp='$CPP $CPPFLAGS'
5841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5847 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5848 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5849 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5850 CFLAGS="$SAVE_CFLAGS"
5854 # Find out which ABI we are using.
5855 echo 'int i;' > conftest.$ac_ext
5856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5857 (eval $ac_compile) 2>&5
5859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860 test $ac_status = 0; }; then
5861 case `/usr/bin/file conftest.o` in
5863 case $lt_cv_prog_gnu_ld in
5864 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5866 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5880 need_locks="$enable_libtool_lock"
5883 for ac_header in dlfcn.h
5885 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5886 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5887 cat >>confdefs.h <<_ACEOF
5888 #define HAVE_DLFCN_H 1
5897 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5898 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5899 (test "X$CXX" != "Xg++"))) ; then
5901 ac_cpp='$CXXCPP $CPPFLAGS'
5902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5906 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5907 if test -z "$CXXCPP"; then
5908 if ${ac_cv_prog_CXXCPP+:} false; then :
5909 $as_echo_n "(cached) " >&6
5911 # Double quotes because CXXCPP needs to be expanded
5912 for CXXCPP in "$CXX -E" "/lib/cpp"
5915 for ac_cxx_preproc_warn_flag in '' yes
5917 # Use a header file that comes with gcc, so configuring glibc
5918 # with a fresh cross-compiler works.
5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 # <limits.h> exists even on freestanding compilers.
5921 # On the NeXT, cc -E runs the code through the compiler's parser,
5922 # not just through cpp. "Syntax error" is here to catch this case.
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5926 # include <limits.h>
5928 # include <assert.h>
5932 if ac_fn_cxx_try_cpp "$LINENO"; then :
5935 # Broken: fails on valid input.
5938 rm -f conftest.err conftest.i conftest.$ac_ext
5940 # OK, works on sane cases. Now check whether nonexistent headers
5941 # can be detected and how.
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 #include <ac_nonexistent.h>
5946 if ac_fn_cxx_try_cpp "$LINENO"; then :
5947 # Broken: success on invalid input.
5950 # Passes both tests.
5954 rm -f conftest.err conftest.i conftest.$ac_ext
5957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5958 rm -f conftest.i conftest.err conftest.$ac_ext
5959 if $ac_preproc_ok; then :
5964 ac_cv_prog_CXXCPP=$CXXCPP
5967 CXXCPP=$ac_cv_prog_CXXCPP
5969 ac_cv_prog_CXXCPP=$CXXCPP
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5972 $as_echo "$CXXCPP" >&6; }
5974 for ac_cxx_preproc_warn_flag in '' yes
5976 # Use a header file that comes with gcc, so configuring glibc
5977 # with a fresh cross-compiler works.
5978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979 # <limits.h> exists even on freestanding compilers.
5980 # On the NeXT, cc -E runs the code through the compiler's parser,
5981 # not just through cpp. "Syntax error" is here to catch this case.
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5985 # include <limits.h>
5987 # include <assert.h>
5991 if ac_fn_cxx_try_cpp "$LINENO"; then :
5994 # Broken: fails on valid input.
5997 rm -f conftest.err conftest.i conftest.$ac_ext
5999 # OK, works on sane cases. Now check whether nonexistent headers
6000 # can be detected and how.
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 #include <ac_nonexistent.h>
6005 if ac_fn_cxx_try_cpp "$LINENO"; then :
6006 # Broken: success on invalid input.
6009 # Passes both tests.
6013 rm -f conftest.err conftest.i conftest.$ac_ext
6016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6017 rm -f conftest.i conftest.err conftest.$ac_ext
6018 if $ac_preproc_ok; then :
6021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6023 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6024 See \`config.log' for more details" "$LINENO" 5; }
6028 ac_cpp='$CXXCPP $CPPFLAGS'
6029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6037 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6038 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6040 if test -n "$ac_tool_prefix"; then
6041 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if ${ac_cv_prog_F77+:} false; then :
6048 $as_echo_n "(cached) " >&6
6050 if test -n "$F77"; then
6051 ac_cv_prog_F77="$F77" # Let the user override the test.
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 if test -n "$F77"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6073 $as_echo "$F77" >&6; }
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6080 test -n "$F77" && break
6083 if test -z "$F77"; then
6085 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6087 # Extract the first word of "$ac_prog", so it can be a program name with args.
6088 set dummy $ac_prog; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6092 $as_echo_n "(cached) " >&6
6094 if test -n "$ac_ct_F77"; then
6095 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104 ac_cv_prog_ac_ct_F77="$ac_prog"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6115 if test -n "$ac_ct_F77"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6117 $as_echo "$ac_ct_F77" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6124 test -n "$ac_ct_F77" && break
6127 if test "x$ac_ct_F77" = x; then
6130 case $cross_compiling:$ac_tool_warned in
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134 ac_tool_warned=yes ;;
6141 # Provide some information about the compiler.
6142 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6145 for ac_option in --version -v -V -qversion; do
6146 { { ac_try="$ac_compiler $ac_option >&5"
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6152 $as_echo "$ac_try_echo"; } >&5
6153 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6155 if test -s conftest.err; then
6157 ... rest of stderr output deleted ...
6158 10q' conftest.err >conftest.er1
6159 cat conftest.er1 >&5
6161 rm -f conftest.er1 conftest.err
6162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163 test $ac_status = 0; }
6167 # If we don't use `.F' as extension, the preprocessor is not run on the
6168 # input file. (Note that this only needs to work for GNU compilers.)
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6172 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6173 if ${ac_cv_f77_compiler_gnu+:} false; then :
6174 $as_echo_n "(cached) " >&6
6176 cat > conftest.$ac_ext <<_ACEOF
6184 if ac_fn_f77_try_compile "$LINENO"; then :
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6194 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6196 ac_test_FFLAGS=${FFLAGS+set}
6197 ac_save_FFLAGS=$FFLAGS
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6200 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6201 if ${ac_cv_prog_f77_g+:} false; then :
6202 $as_echo_n "(cached) " >&6
6205 cat > conftest.$ac_ext <<_ACEOF
6210 if ac_fn_f77_try_compile "$LINENO"; then :
6211 ac_cv_prog_f77_g=yes
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6219 $as_echo "$ac_cv_prog_f77_g" >&6; }
6220 if test "$ac_test_FFLAGS" = set; then
6221 FFLAGS=$ac_save_FFLAGS
6222 elif test $ac_cv_prog_f77_g = yes; then
6223 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6229 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6236 if test $ac_compiler_gnu = yes; then
6242 ac_cpp='$CPP $CPPFLAGS'
6243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6249 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6250 # find the maximum length of command line arguments
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6252 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6253 if ${lt_cv_sys_max_cmd_len+:} false; then :
6254 $as_echo_n "(cached) " >&6
6261 # On DJGPP, this test can blow up pretty badly due to problems in libc
6262 # (any single argument exceeding 2000 bytes causes a buffer overrun
6263 # during glob expansion). Even if it were fixed, the result of this
6264 # check would be larger than it should be.
6265 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6269 # Under GNU Hurd, this test is not required because there is
6270 # no limit to the length of command line arguments.
6271 # Libtool will interpret -1 as no limit whatsoever
6272 lt_cv_sys_max_cmd_len=-1;
6276 # On Win9x/ME, this test blows up -- it succeeds, but takes
6277 # about 5 minutes as the teststring grows exponentially.
6278 # Worse, since 9x/ME are not pre-emptively multitasking,
6279 # you end up with a "frozen" computer, even though with patience
6280 # the test eventually succeeds (with a max line length of 256k).
6281 # Instead, let's just punt: use the minimum linelength reported by
6282 # all of the supported platforms: 8192 (on NT/2K/XP).
6283 lt_cv_sys_max_cmd_len=8192;
6287 # On AmigaOS with pdksh, this test takes hours, literally.
6288 # So we just punt and use a minimum line length of 8192.
6289 lt_cv_sys_max_cmd_len=8192;
6292 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6293 # This has been around since 386BSD, at least. Likely further.
6294 if test -x /sbin/sysctl; then
6295 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6296 elif test -x /usr/sbin/sysctl; then
6297 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6299 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6301 # And add a safety zone
6302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6307 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6308 lt_cv_sys_max_cmd_len=196608
6312 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6313 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6314 # nice to cause kernel panics so lets avoid the loop below.
6315 # First set a reasonable default.
6316 lt_cv_sys_max_cmd_len=16384
6318 if test -x /sbin/sysconfig; then
6319 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6320 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6325 lt_cv_sys_max_cmd_len=102400
6327 sysv5* | sco5v6* | sysv4.2uw2*)
6328 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6329 if test -n "$kargmax"; then
6330 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6332 lt_cv_sys_max_cmd_len=32768
6336 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6337 if test -n "$lt_cv_sys_max_cmd_len"; then
6338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6341 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6342 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6343 = "XX$teststring") >/dev/null 2>&1 &&
6344 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6345 lt_cv_sys_max_cmd_len=$new_result &&
6346 test $i != 17 # 1/2 MB should be enough
6349 teststring=$teststring$teststring
6352 # Add a significant safety factor because C++ compilers can tack on massive
6353 # amounts of additional arguments before passing them to the linker.
6354 # It appears as though 1/2 is a usable value.
6355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6362 if test -n $lt_cv_sys_max_cmd_len ; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6364 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6367 $as_echo "none" >&6; }
6374 # Check for command to grab the raw symbol name followed by C symbol from nm.
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6376 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6377 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6378 $as_echo_n "(cached) " >&6
6381 # These are sane defaults that work on at least a few old systems.
6382 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6384 # Character class describing NM global symbol codes.
6385 symcode='[BCDEGRST]'
6387 # Regexp to match symbols that can be accessed directly from C.
6388 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6390 # Transform an extracted symbol line into a proper C declaration
6391 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6393 # Transform an extracted symbol line into symbol name and symbol address
6394 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'"
6396 # Define system-specific variables.
6401 cygwin* | mingw* | pw32*)
6402 symcode='[ABCDGISTW]'
6404 hpux*) # Its linker distinguishes data from code symbols
6405 if test "$host_cpu" = ia64; then
6406 symcode='[ABCDEGRST]'
6408 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6409 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'"
6411 linux* | k*bsd*-gnu)
6412 if test "$host_cpu" = ia64; then
6413 symcode='[ABCDGIRSTW]'
6414 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6415 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'"
6419 symcode='[BCDEGRST]'
6422 symcode='[BCDEGQRST]'
6433 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6441 # Handle CRLF in mingw tool chain
6445 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6449 # If we're using GNU nm, then use its standard symbol codes.
6450 case `$NM -V 2>&1` in
6451 *GNU* | *'with BFD'*)
6452 symcode='[ABCDGIRSTW]' ;;
6455 # Try without a prefix undercore, then with it.
6456 for ac_symprfx in "" "_"; do
6458 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6459 symxfrm="\\1 $ac_symprfx\\2 \\2"
6461 # Write the raw and C identifiers.
6462 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6464 # Check to see that the pipe works correctly.
6468 cat > conftest.$ac_ext <<EOF
6473 void nm_test_func(){}
6477 int main(){nm_test_var='a';nm_test_func();return(0);}
6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6481 (eval $ac_compile) 2>&5
6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484 test $ac_status = 0; }; then
6485 # Now try to grab the symbols.
6487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6488 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6491 test $ac_status = 0; } && test -s "$nlist"; then
6492 # Try sorting and uniquifying the output.
6493 if sort "$nlist" | uniq > "$nlist"T; then
6494 mv -f "$nlist"T "$nlist"
6499 # Make sure that we snagged all the symbols we need.
6500 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6501 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6502 cat <<EOF > conftest.$ac_ext
6508 # Now generate the symbol file.
6509 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6511 cat <<EOF >> conftest.$ac_ext
6512 #if defined (__STDC__) && __STDC__
6513 # define lt_ptr_t void *
6515 # define lt_ptr_t char *
6519 /* The mapping between symbol names and symbols. */
6524 lt_preloaded_symbols[] =
6527 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6528 cat <<\EOF >> conftest.$ac_ext
6536 # Now try linking the two files.
6537 mv conftest.$ac_objext conftstm.$ac_objext
6538 lt_save_LIBS="$LIBS"
6539 lt_save_CFLAGS="$CFLAGS"
6540 LIBS="conftstm.$ac_objext"
6541 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6543 (eval $ac_link) 2>&5
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6549 LIBS="$lt_save_LIBS"
6550 CFLAGS="$lt_save_CFLAGS"
6552 echo "cannot find nm_test_func in $nlist" >&5
6555 echo "cannot find nm_test_var in $nlist" >&5
6558 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6561 echo "$progname: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6564 rm -rf conftest* conftst*
6566 # Do not use the global_symbol_pipe unless it works.
6567 if test "$pipe_works" = yes; then
6570 lt_cv_sys_global_symbol_pipe=
6576 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6577 lt_cv_sys_global_symbol_to_cdecl=
6579 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6581 $as_echo "failed" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6584 $as_echo "ok" >&6; }
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6588 $as_echo_n "checking for objdir... " >&6; }
6589 if ${lt_cv_objdir+:} false; then :
6590 $as_echo_n "(cached) " >&6
6592 rm -f .libs 2>/dev/null
6593 mkdir .libs 2>/dev/null
6594 if test -d .libs; then
6597 # MS-DOS does not allow filenames that begin with a dot.
6600 rmdir .libs 2>/dev/null
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6603 $as_echo "$lt_cv_objdir" >&6; }
6604 objdir=$lt_cv_objdir
6612 # AIX sometimes has problems with the GCC collect2 program. For some
6613 # reason, if we set the COLLECT_NAMES environment variable, the problems
6614 # vanish in a puff of smoke.
6615 if test "X${COLLECT_NAMES+set}" != Xset; then
6617 export COLLECT_NAMES
6622 # Sed substitution that helps us do robust quoting. It backslashifies
6623 # metacharacters that are still active within double-quoted strings.
6624 Xsed='sed -e 1s/^X//'
6625 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6627 # Same as above, but do not quote variable references.
6628 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6630 # Sed substitution to delay expansion of an escaped shell variable in a
6631 # double_quote_subst'ed string.
6632 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6634 # Sed substitution to avoid accidental globbing in evaled expressions
6635 no_glob_subst='s/\*/\\\*/g'
6641 default_ofile=libtool
6642 can_build_shared=yes
6644 # All known linkers require a `.a' archive for static linking (except MSVC,
6645 # which needs '.lib').
6647 ltmain="$ac_aux_dir/ltmain.sh"
6648 ofile="$default_ofile"
6649 with_gnu_ld="$lt_cv_prog_gnu_ld"
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}ar; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_AR+:} false; then :
6657 $as_echo_n "(cached) " >&6
6659 if test -n "$AR"; then
6660 ac_cv_prog_AR="$AR" # Let the user override the test.
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_AR="${ac_tool_prefix}ar"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 if test -n "$AR"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6682 $as_echo "$AR" >&6; }
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6690 if test -z "$ac_cv_prog_AR"; then
6692 # Extract the first word of "ar", so it can be a program name with args.
6693 set dummy ar; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6697 $as_echo_n "(cached) " >&6
6699 if test -n "$ac_ct_AR"; then
6700 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_ac_ct_AR="ar"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6720 if test -n "$ac_ct_AR"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6722 $as_echo "$ac_ct_AR" >&6; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6728 if test "x$ac_ct_AR" = x; then
6731 case $cross_compiling:$ac_tool_warned in
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6743 if test -n "$ac_tool_prefix"; then
6744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_prog_RANLIB+:} false; then :
6749 $as_echo_n "(cached) " >&6
6751 if test -n "$RANLIB"; then
6752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 RANLIB=$ac_cv_prog_RANLIB
6772 if test -n "$RANLIB"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6774 $as_echo "$RANLIB" >&6; }
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6782 if test -z "$ac_cv_prog_RANLIB"; then
6783 ac_ct_RANLIB=$RANLIB
6784 # Extract the first word of "ranlib", so it can be a program name with args.
6785 set dummy ranlib; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6789 $as_echo_n "(cached) " >&6
6791 if test -n "$ac_ct_RANLIB"; then
6792 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801 ac_cv_prog_ac_ct_RANLIB="ranlib"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6812 if test -n "$ac_ct_RANLIB"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6814 $as_echo "$ac_ct_RANLIB" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6820 if test "x$ac_ct_RANLIB" = x; then
6823 case $cross_compiling:$ac_tool_warned in
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6827 ac_tool_warned=yes ;;
6829 RANLIB=$ac_ct_RANLIB
6832 RANLIB="$ac_cv_prog_RANLIB"
6835 if test -n "$ac_tool_prefix"; then
6836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}strip; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_STRIP+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 if test -n "$STRIP"; then
6844 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 STRIP=$ac_cv_prog_STRIP
6864 if test -n "$STRIP"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6866 $as_echo "$STRIP" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6874 if test -z "$ac_cv_prog_STRIP"; then
6876 # Extract the first word of "strip", so it can be a program name with args.
6877 set dummy strip; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 if test -n "$ac_ct_STRIP"; then
6884 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_ac_ct_STRIP="strip"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6904 if test -n "$ac_ct_STRIP"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6906 $as_echo "$ac_ct_STRIP" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6912 if test "x$ac_ct_STRIP" = x; then
6915 case $cross_compiling:$ac_tool_warned in
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6924 STRIP="$ac_cv_prog_STRIP"
6929 old_CFLAGS="$CFLAGS"
6931 # Set sane defaults for various variables
6932 test -z "$AR" && AR=ar
6933 test -z "$AR_FLAGS" && AR_FLAGS=cru
6934 test -z "$AS" && AS=as
6935 test -z "$CC" && CC=cc
6936 test -z "$LTCC" && LTCC=$CC
6937 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6938 test -z "$DLLTOOL" && DLLTOOL=dlltool
6939 test -z "$LD" && LD=ld
6940 test -z "$LN_S" && LN_S="ln -s"
6941 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6942 test -z "$NM" && NM=nm
6943 test -z "$SED" && SED=sed
6944 test -z "$OBJDUMP" && OBJDUMP=objdump
6945 test -z "$RANLIB" && RANLIB=:
6946 test -z "$STRIP" && STRIP=:
6947 test -z "$ac_objext" && ac_objext=o
6949 # Determine commands to create old-style static archives.
6950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6951 old_postinstall_cmds='chmod 644 $oldlib'
6952 old_postuninstall_cmds=
6954 if test -n "$RANLIB"; then
6957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6963 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6966 for cc_temp in $compiler""; do
6968 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6969 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6974 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6977 # Only perform the check for file, if the check method requires it
6978 case $deplibs_check_method in
6980 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6982 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6983 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6984 $as_echo_n "(cached) " >&6
6988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6991 lt_save_MAGIC_CMD="$MAGIC_CMD"
6992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6994 for ac_dir in $ac_dummy; do
6996 test -z "$ac_dir" && ac_dir=.
6997 if test -f $ac_dir/${ac_tool_prefix}file; then
6998 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6999 if test -n "$file_magic_test_file"; then
7000 case $deplibs_check_method in
7002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7005 $EGREP "$file_magic_regex" > /dev/null; then
7010 *** Warning: the command libtool uses to detect shared libraries,
7011 *** $file_magic_cmd, produces output that libtool cannot recognize.
7012 *** The result is that libtool may fail to recognize shared libraries
7013 *** as such. This will affect the creation of libtool libraries that
7014 *** depend on shared libraries, but programs linked with such libtool
7015 *** libraries will work regardless of this problem. Nevertheless, you
7016 *** may want to report the problem to your system manager and/or to
7017 *** bug-libtool@gnu.org
7027 MAGIC_CMD="$lt_save_MAGIC_CMD"
7032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7033 if test -n "$MAGIC_CMD"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7035 $as_echo "$MAGIC_CMD" >&6; }
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7041 if test -z "$lt_cv_path_MAGIC_CMD"; then
7042 if test -n "$ac_tool_prefix"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7044 $as_echo_n "checking for file... " >&6; }
7045 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7046 $as_echo_n "(cached) " >&6
7050 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7053 lt_save_MAGIC_CMD="$MAGIC_CMD"
7054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7055 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7056 for ac_dir in $ac_dummy; do
7058 test -z "$ac_dir" && ac_dir=.
7059 if test -f $ac_dir/file; then
7060 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7061 if test -n "$file_magic_test_file"; then
7062 case $deplibs_check_method in
7064 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7066 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7067 $EGREP "$file_magic_regex" > /dev/null; then
7072 *** Warning: the command libtool uses to detect shared libraries,
7073 *** $file_magic_cmd, produces output that libtool cannot recognize.
7074 *** The result is that libtool may fail to recognize shared libraries
7075 *** as such. This will affect the creation of libtool libraries that
7076 *** depend on shared libraries, but programs linked with such libtool
7077 *** libraries will work regardless of this problem. Nevertheless, you
7078 *** may want to report the problem to your system manager and/or to
7079 *** bug-libtool@gnu.org
7089 MAGIC_CMD="$lt_save_MAGIC_CMD"
7094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7095 if test -n "$MAGIC_CMD"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7097 $as_echo "$MAGIC_CMD" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7114 rhapsody* | darwin*)
7115 if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7117 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7121 $as_echo_n "(cached) " >&6
7123 if test -n "$DSYMUTIL"; then
7124 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7144 if test -n "$DSYMUTIL"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7146 $as_echo "$DSYMUTIL" >&6; }
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7154 if test -z "$ac_cv_prog_DSYMUTIL"; then
7155 ac_ct_DSYMUTIL=$DSYMUTIL
7156 # Extract the first word of "dsymutil", so it can be a program name with args.
7157 set dummy dsymutil; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7161 $as_echo_n "(cached) " >&6
7163 if test -n "$ac_ct_DSYMUTIL"; then
7164 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7184 if test -n "$ac_ct_DSYMUTIL"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7186 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7192 if test "x$ac_ct_DSYMUTIL" = x; then
7195 case $cross_compiling:$ac_tool_warned in
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199 ac_tool_warned=yes ;;
7201 DSYMUTIL=$ac_ct_DSYMUTIL
7204 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7207 if test -n "$ac_tool_prefix"; then
7208 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7209 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_NMEDIT+:} false; then :
7213 $as_echo_n "(cached) " >&6
7215 if test -n "$NMEDIT"; then
7216 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 NMEDIT=$ac_cv_prog_NMEDIT
7236 if test -n "$NMEDIT"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7238 $as_echo "$NMEDIT" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7246 if test -z "$ac_cv_prog_NMEDIT"; then
7247 ac_ct_NMEDIT=$NMEDIT
7248 # Extract the first word of "nmedit", so it can be a program name with args.
7249 set dummy nmedit; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7253 $as_echo_n "(cached) " >&6
7255 if test -n "$ac_ct_NMEDIT"; then
7256 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7276 if test -n "$ac_ct_NMEDIT"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7278 $as_echo "$ac_ct_NMEDIT" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7284 if test "x$ac_ct_NMEDIT" = x; then
7287 case $cross_compiling:$ac_tool_warned in
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291 ac_tool_warned=yes ;;
7293 NMEDIT=$ac_ct_NMEDIT
7296 NMEDIT="$ac_cv_prog_NMEDIT"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7301 $as_echo_n "checking for -single_module linker flag... " >&6; }
7302 if ${lt_cv_apple_cc_single_mod+:} false; then :
7303 $as_echo_n "(cached) " >&6
7305 lt_cv_apple_cc_single_mod=no
7306 if test -z "${LT_MULTI_MODULE}"; then
7307 # By default we will add the -single_module flag. You can override
7308 # by either setting the environment variable LT_MULTI_MODULE
7309 # non-empty at configure time, or by adding -multi_module to the
7311 echo "int foo(void){return 1;}" > conftest.c
7312 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7313 -dynamiclib ${wl}-single_module conftest.c
7314 if test -f libconftest.dylib; then
7315 lt_cv_apple_cc_single_mod=yes
7316 rm -rf libconftest.dylib*
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7322 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7324 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7325 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7326 $as_echo_n "(cached) " >&6
7328 lt_cv_ld_exported_symbols_list=no
7329 save_LDFLAGS=$LDFLAGS
7330 echo "_main" > conftest.sym
7331 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7343 if ac_fn_c_try_link "$LINENO"; then :
7344 lt_cv_ld_exported_symbols_list=yes
7346 lt_cv_ld_exported_symbols_list=no
7348 rm -f core conftest.err conftest.$ac_objext \
7349 conftest$ac_exeext conftest.$ac_ext
7350 LDFLAGS="$save_LDFLAGS"
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7354 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7356 rhapsody* | darwin1.[0123])
7357 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7359 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7361 # if running on 10.5 or later, the deployment target defaults
7362 # to the OS version, if on x86, and 10.4, the deployment
7363 # target defaults to 10.4. Don't you love it?
7364 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7365 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7366 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7368 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7370 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7374 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7375 _lt_dar_single_mod='$single_module'
7377 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7378 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7380 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7382 if test "$DSYMUTIL" != ":"; then
7383 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7394 # Check whether --enable-libtool-lock was given.
7395 if test "${enable_libtool_lock+set}" = set; then :
7396 enableval=$enable_libtool_lock;
7399 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7402 # Check whether --with-pic was given.
7403 if test "${with_pic+set}" = set; then :
7404 withval=$with_pic; pic_mode="$withval"
7409 test -z "$pic_mode" && pic_mode=default
7411 # Use C for the default configuration in the libtool script
7415 ac_cpp='$CPP $CPPFLAGS'
7416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7421 # Source file extension for C test sources.
7424 # Object file extension for compiled C test sources.
7428 # Code to be used in simple compile tests
7429 lt_simple_compile_test_code="int some_variable = 0;"
7431 # Code to be used in simple link tests
7432 lt_simple_link_test_code='int main(){return(0);}'
7435 # If no C compiler was specified, use CC.
7438 # If no C compiler flags were specified, use CFLAGS.
7439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7441 # Allow CC to be a program name with arguments.
7445 # save warnings/boilerplate of simple test code
7446 ac_outfile=conftest.$ac_objext
7447 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7448 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7449 _lt_compiler_boilerplate=`cat conftest.err`
7452 ac_outfile=conftest.$ac_objext
7453 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7454 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7455 _lt_linker_boilerplate=`cat conftest.err`
7460 lt_prog_compiler_no_builtin_flag=
7462 if test "$GCC" = yes; then
7463 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7467 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7468 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7469 $as_echo_n "(cached) " >&6
7471 lt_cv_prog_compiler_rtti_exceptions=no
7472 ac_outfile=conftest.$ac_objext
7473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7474 lt_compiler_flag="-fno-rtti -fno-exceptions"
7475 # Insert the option either (1) after the last *FLAGS variable, or
7476 # (2) before a word containing "conftest.", or (3) at the end.
7477 # Note that $ac_compile itself does not contain backslashes and begins
7478 # with a dollar sign (not a hyphen), so the echo should work correctly.
7479 # The option is referenced via a variable to avoid confusing sed.
7480 lt_compile=`echo "$ac_compile" | $SED \
7481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7483 -e 's:$: $lt_compiler_flag:'`
7484 (eval echo "\"\$as_me:7484: $lt_compile\"" >&5)
7485 (eval "$lt_compile" 2>conftest.err)
7487 cat conftest.err >&5
7488 echo "$as_me:7488: \$? = $ac_status" >&5
7489 if (exit $ac_status) && test -s "$ac_outfile"; then
7490 # The compiler can only warn and ignore the option if not recognized
7491 # So say no if there are warnings other than the usual output.
7492 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7495 lt_cv_prog_compiler_rtti_exceptions=yes
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7502 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7504 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7505 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7512 lt_prog_compiler_wl=
7513 lt_prog_compiler_pic=
7514 lt_prog_compiler_static=
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7517 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7519 if test "$GCC" = yes; then
7520 lt_prog_compiler_wl='-Wl,'
7521 lt_prog_compiler_static='-static'
7525 # All AIX code is PIC.
7526 if test "$host_cpu" = ia64; then
7527 # AIX 5 now supports IA64 processor
7528 lt_prog_compiler_static='-Bstatic'
7533 # FIXME: we need at least 68020 code to build shared libraries, but
7534 # adding the `-m68020' flag to GCC prevents building anything better,
7536 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7539 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7540 # PIC is the default for these OSes.
7543 mingw* | cygwin* | pw32* | os2*)
7544 # This hack is so that the source file can tell whether it is being
7545 # built for inclusion in a dll (and should export symbols for example).
7546 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7547 # (--disable-auto-import) libraries
7548 lt_prog_compiler_pic='-DDLL_EXPORT'
7551 darwin* | rhapsody*)
7552 # PIC is the default on this platform
7553 # Common symbols not allowed in MH_DYLIB files
7554 lt_prog_compiler_pic='-fno-common'
7558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7559 # Instead, we relocate shared libraries at runtime.
7563 # Just because we use GCC doesn't mean we suddenly get shared libraries
7564 # on systems that don't support them.
7565 lt_prog_compiler_can_build_shared=no
7570 if test -d /usr/nec; then
7571 lt_prog_compiler_pic=-Kconform_pic
7576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7583 lt_prog_compiler_pic='-fPIC'
7589 lt_prog_compiler_pic='-fPIC'
7593 # PORTME Check for flag to pass linker flags through the system compiler.
7596 lt_prog_compiler_wl='-Wl,'
7597 if test "$host_cpu" = ia64; then
7598 # AIX 5 now supports IA64 processor
7599 lt_prog_compiler_static='-Bstatic'
7601 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7605 # PIC is the default on this platform
7606 # Common symbols not allowed in MH_DYLIB files
7607 case $cc_basename in
7609 lt_prog_compiler_pic='-qnocommon'
7610 lt_prog_compiler_wl='-Wl,'
7615 mingw* | cygwin* | pw32* | os2*)
7616 # This hack is so that the source file can tell whether it is being
7617 # built for inclusion in a dll (and should export symbols for example).
7618 lt_prog_compiler_pic='-DDLL_EXPORT'
7621 hpux9* | hpux10* | hpux11*)
7622 lt_prog_compiler_wl='-Wl,'
7623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7630 lt_prog_compiler_pic='+Z'
7633 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7634 lt_prog_compiler_static='${wl}-a ${wl}archive'
7637 irix5* | irix6* | nonstopux*)
7638 lt_prog_compiler_wl='-Wl,'
7639 # PIC (with -KPIC) is the default.
7640 lt_prog_compiler_static='-non_shared'
7644 lt_prog_compiler_pic='-KPIC'
7645 lt_prog_compiler_static='-Bstatic'
7648 linux* | k*bsd*-gnu)
7649 case $cc_basename in
7651 lt_prog_compiler_wl='-Wl,'
7652 lt_prog_compiler_pic='-KPIC'
7653 lt_prog_compiler_static='-static'
7655 pgcc* | pgf77* | pgf90* | pgf95*)
7656 # Portland Group compilers (*not* the Pentium gcc compiler,
7657 # which looks to be a dead project)
7658 lt_prog_compiler_wl='-Wl,'
7659 lt_prog_compiler_pic='-fpic'
7660 lt_prog_compiler_static='-Bstatic'
7663 lt_prog_compiler_wl='-Wl,'
7664 # All Alpha code is PIC.
7665 lt_prog_compiler_static='-non_shared'
7668 case `$CC -V 2>&1 | sed 5q` in
7671 lt_prog_compiler_pic='-KPIC'
7672 lt_prog_compiler_static='-Bstatic'
7673 lt_prog_compiler_wl='-Wl,'
7676 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7677 lt_prog_compiler_pic='-KPIC'
7678 lt_prog_compiler_static='-Bstatic'
7679 lt_prog_compiler_wl=''
7686 osf3* | osf4* | osf5*)
7687 lt_prog_compiler_wl='-Wl,'
7688 # All OSF/1 code is PIC.
7689 lt_prog_compiler_static='-non_shared'
7693 lt_prog_compiler_static='-non_shared'
7697 lt_prog_compiler_pic='-KPIC'
7698 lt_prog_compiler_static='-Bstatic'
7699 case $cc_basename in
7701 lt_prog_compiler_wl='-Qoption ld ';;
7703 lt_prog_compiler_wl='-Wl,';;
7708 lt_prog_compiler_wl='-Qoption ld '
7709 lt_prog_compiler_pic='-PIC'
7710 lt_prog_compiler_static='-Bstatic'
7713 sysv4 | sysv4.2uw2* | sysv4.3*)
7714 lt_prog_compiler_wl='-Wl,'
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-Bstatic'
7720 if test -d /usr/nec ;then
7721 lt_prog_compiler_pic='-Kconform_pic'
7722 lt_prog_compiler_static='-Bstatic'
7726 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7727 lt_prog_compiler_wl='-Wl,'
7728 lt_prog_compiler_pic='-KPIC'
7729 lt_prog_compiler_static='-Bstatic'
7733 lt_prog_compiler_wl='-Wl,'
7734 lt_prog_compiler_can_build_shared=no
7738 lt_prog_compiler_pic='-pic'
7739 lt_prog_compiler_static='-Bstatic'
7743 lt_prog_compiler_can_build_shared=no
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7749 $as_echo "$lt_prog_compiler_pic" >&6; }
7752 # Check to make sure the PIC flag actually works.
7754 if test -n "$lt_prog_compiler_pic"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7757 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7758 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7759 $as_echo_n "(cached) " >&6
7761 lt_cv_prog_compiler_pic_works=no
7762 ac_outfile=conftest.$ac_objext
7763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7765 # Insert the option either (1) after the last *FLAGS variable, or
7766 # (2) before a word containing "conftest.", or (3) at the end.
7767 # Note that $ac_compile itself does not contain backslashes and begins
7768 # with a dollar sign (not a hyphen), so the echo should work correctly.
7769 # The option is referenced via a variable to avoid confusing sed.
7770 lt_compile=`echo "$ac_compile" | $SED \
7771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7773 -e 's:$: $lt_compiler_flag:'`
7774 (eval echo "\"\$as_me:7774: $lt_compile\"" >&5)
7775 (eval "$lt_compile" 2>conftest.err)
7777 cat conftest.err >&5
7778 echo "$as_me:7778: \$? = $ac_status" >&5
7779 if (exit $ac_status) && test -s "$ac_outfile"; then
7780 # The compiler can only warn and ignore the option if not recognized
7781 # So say no if there are warnings other than the usual output.
7782 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7785 lt_cv_prog_compiler_pic_works=yes
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7792 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7794 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7795 case $lt_prog_compiler_pic in
7797 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7800 lt_prog_compiler_pic=
7801 lt_prog_compiler_can_build_shared=no
7806 # For platforms which do not support PIC, -DPIC is meaningless:
7808 lt_prog_compiler_pic=
7811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7816 # Check to make sure the static flag actually works.
7818 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7820 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7821 if ${lt_cv_prog_compiler_static_works+:} false; then :
7822 $as_echo_n "(cached) " >&6
7824 lt_cv_prog_compiler_static_works=no
7825 save_LDFLAGS="$LDFLAGS"
7826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7827 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7829 # The linker can only warn and ignore the option if not recognized
7830 # So say no if there are warnings
7831 if test -s conftest.err; then
7832 # Append any errors to the config.log.
7833 cat conftest.err 1>&5
7834 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7836 if diff conftest.exp conftest.er2 >/dev/null; then
7837 lt_cv_prog_compiler_static_works=yes
7840 lt_cv_prog_compiler_static_works=yes
7844 LDFLAGS="$save_LDFLAGS"
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7848 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7850 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7853 lt_prog_compiler_static=
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7858 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7859 if ${lt_cv_prog_compiler_c_o+:} false; then :
7860 $as_echo_n "(cached) " >&6
7862 lt_cv_prog_compiler_c_o=no
7863 $rm -r conftest 2>/dev/null
7867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7869 lt_compiler_flag="-o out/conftest2.$ac_objext"
7870 # Insert the option either (1) after the last *FLAGS variable, or
7871 # (2) before a word containing "conftest.", or (3) at the end.
7872 # Note that $ac_compile itself does not contain backslashes and begins
7873 # with a dollar sign (not a hyphen), so the echo should work correctly.
7874 lt_compile=`echo "$ac_compile" | $SED \
7875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7877 -e 's:$: $lt_compiler_flag:'`
7878 (eval echo "\"\$as_me:7878: $lt_compile\"" >&5)
7879 (eval "$lt_compile" 2>out/conftest.err)
7881 cat out/conftest.err >&5
7882 echo "$as_me:7882: \$? = $ac_status" >&5
7883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7885 # The compiler can only warn and ignore the option if not recognized
7886 # So say no if there are warnings
7887 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7890 lt_cv_prog_compiler_c_o=yes
7895 # SGI C++ compiler will create directory out/ii_files/ for
7896 # template instantiation
7897 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7898 $rm out/* && rmdir out
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7905 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7908 hard_links="nottested"
7909 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7910 # do not overwrite the value of need_locks provided by the user
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7912 $as_echo_n "checking if we can lock with hard links... " >&6; }
7915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7917 ln conftest.a conftest.b 2>&5 || hard_links=no
7918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7920 $as_echo "$hard_links" >&6; }
7921 if test "$hard_links" = no; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7923 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7931 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7934 allow_undefined_flag=
7935 enable_shared_with_static_runtimes=no
7937 archive_expsym_cmds=
7938 old_archive_From_new_cmds=
7939 old_archive_from_expsyms_cmds=
7940 export_dynamic_flag_spec=
7941 whole_archive_flag_spec=
7942 thread_safe_flag_spec=
7943 hardcode_libdir_flag_spec=
7944 hardcode_libdir_flag_spec_ld=
7945 hardcode_libdir_separator=
7948 hardcode_shlibpath_var=unsupported
7949 link_all_deplibs=unknown
7950 hardcode_automatic=no
7953 always_export_symbols=no
7954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7955 # include_expsyms should be a list of space-separated symbols to be *always*
7956 # included in the symbol list
7958 # exclude_expsyms can be an extended regexp of symbols to exclude
7959 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7960 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7961 # as well as any symbol that contains `d'.
7962 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7963 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7964 # platforms (ab)use it in PIC code, but their linkers get confused if
7965 # the symbol is explicitly referenced. Since portable code cannot
7966 # rely on this symbol name, it's probably fine to never include it in
7967 # preloaded symbol tables.
7968 # Exclude shared library initialization/finalization symbols.
7969 extract_expsyms_cmds=
7970 # Just being paranoid about ensuring that cc_basename is set.
7971 for cc_temp in $compiler""; do
7973 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7974 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7979 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7982 cygwin* | mingw* | pw32*)
7983 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7984 # When not using gcc, we currently assume that we are using
7985 # Microsoft Visual C++.
7986 if test "$GCC" != yes; then
7991 # we just hope/assume this is gcc and not c89 (= MSVC++)
8000 if test "$with_gnu_ld" = yes; then
8001 # If archive_cmds runs LD, not CC, wlarc should be empty
8004 # Set some defaults for GNU ld with shared library support. These
8005 # are reset later if shared libraries are not supported. Putting them
8006 # here allows them to be overridden if necessary.
8007 runpath_var=LD_RUN_PATH
8008 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8009 export_dynamic_flag_spec='${wl}--export-dynamic'
8010 # ancient GNU ld didn't support --whole-archive et. al.
8011 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8012 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8014 whole_archive_flag_spec=
8016 supports_anon_versioning=no
8017 case `$LD -v 2>/dev/null` in
8018 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8019 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8020 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8021 *\ 2.11.*) ;; # other 2.11 versions
8022 *) supports_anon_versioning=yes ;;
8025 # See if GNU ld supports shared libraries.
8028 # On AIX/PPC, the GNU linker is very broken
8029 if test "$host_cpu" != ia64; then
8033 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8034 *** to be unable to reliably create shared libraries on AIX.
8035 *** Therefore, libtool is disabling shared libraries support. If you
8036 *** really care for shared libraries, you may want to modify your PATH
8037 *** so that a non-GNU linker is found, and then restart.
8044 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)'
8045 hardcode_libdir_flag_spec='-L$libdir'
8046 hardcode_minus_L=yes
8048 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8049 # that the semantics of dynamic libraries on AmigaOS, at least up
8050 # to version 4, is to share data among multiple programs linked
8051 # with the same dynamic library. Since this doesn't match the
8052 # behavior of shared libraries on other platforms, we can't use
8058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8059 allow_undefined_flag=unsupported
8060 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8061 # support --undefined. This deserves some investigation. FIXME
8062 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8068 cygwin* | mingw* | pw32*)
8069 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8070 # as there is no search path for DLLs.
8071 hardcode_libdir_flag_spec='-L$libdir'
8072 allow_undefined_flag=unsupported
8073 always_export_symbols=no
8074 enable_shared_with_static_runtimes=yes
8075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8077 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8079 # If the export-symbols file already is a .def file (1st line
8080 # is EXPORTS), use it as is; otherwise, prepend...
8081 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8082 cp $export_symbols $output_objdir/$soname.def;
8084 echo EXPORTS > $output_objdir/$soname.def;
8085 cat $export_symbols >> $output_objdir/$soname.def;
8087 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8095 hardcode_shlibpath_var=no
8096 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8097 export_dynamic_flag_spec='${wl}-E'
8098 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8099 # Instead, shared libraries are loaded at an image base (0x10000000 by
8100 # default) and relocated if they conflict, which is a slow very memory
8101 # consuming and fragmenting process. To avoid this, we pick a random,
8102 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8103 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8105 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'
8108 gnu* | linux* | k*bsd*-gnu)
8109 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8111 case $cc_basename,$host_cpu in
8112 pgcc*) # Portland Group C compiler
8113 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'
8114 tmp_addflag=' $pic_flag'
8116 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8117 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'
8118 tmp_addflag=' $pic_flag -Mnomain' ;;
8119 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8120 tmp_addflag=' -i_dynamic' ;;
8121 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8122 tmp_addflag=' -i_dynamic -nofor_main' ;;
8123 ifc* | ifort*) # Intel Fortran compiler
8124 tmp_addflag=' -nofor_main' ;;
8126 case `$CC -V 2>&1 | sed 5q` in
8127 *Sun\ C*) # Sun C 5.9
8128 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8129 tmp_sharedflag='-G' ;;
8130 *Sun\ F*) # Sun Fortran 8.3
8131 tmp_sharedflag='-G' ;;
8133 tmp_sharedflag='-shared' ;;
8135 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137 if test $supports_anon_versioning = yes; then
8138 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8139 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8140 $echo "local: *; };" >> $output_objdir/$libname.ver~
8141 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8149 netbsd* | netbsdelf*-gnu)
8150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8151 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8160 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8164 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8165 *** create shared libraries on Solaris systems. Therefore, libtool
8166 *** is disabling shared libraries support. We urge you to upgrade GNU
8167 *** binutils to release 2.9.1 or newer. Another option is to modify
8168 *** your PATH or compiler configuration so that the native linker is
8169 *** used, and then restart.
8172 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8181 case `$LD -v 2>&1` in
8182 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8186 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8187 *** reliably create shared libraries on SCO systems. Therefore, libtool
8188 *** is disabling shared libraries support. We urge you to upgrade GNU
8189 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8190 *** your PATH or compiler configuration so that the native linker is
8191 *** used, and then restart.
8196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8197 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8208 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8211 hardcode_shlibpath_var=no
8215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8224 if test "$ld_shlibs" = no; then
8226 hardcode_libdir_flag_spec=
8227 export_dynamic_flag_spec=
8228 whole_archive_flag_spec=
8231 # PORTME fill in a description of your system's linker (not GNU ld)
8234 allow_undefined_flag=unsupported
8235 always_export_symbols=yes
8236 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'
8237 # Note: this linker hardcodes the directories in LIBPATH if there
8238 # are no directories specified by -L.
8239 hardcode_minus_L=yes
8240 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8241 # Neither direct hardcoding nor static linking is supported with a
8243 hardcode_direct=unsupported
8248 if test "$host_cpu" = ia64; then
8249 # On IA64, the linker does run time linking by default, so we don't
8250 # have to do anything special.
8251 aix_use_runtimelinking=no
8252 exp_sym_flag='-Bexport'
8255 # If we're using GNU nm, then we don't want the "-C" option.
8256 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8257 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8258 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'
8260 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'
8262 aix_use_runtimelinking=no
8264 # Test if we are trying to use run time linking or normal
8265 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8266 # need to do runtime linking.
8267 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8268 for ld_flag in $LDFLAGS; do
8269 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8270 aix_use_runtimelinking=yes
8277 exp_sym_flag='-bexport'
8278 no_entry_flag='-bnoentry'
8281 # When large executables or shared objects are built, AIX ld can
8282 # have problems creating the table of contents. If linking a library
8283 # or program results in "error TOC overflow" add -mminimal-toc to
8284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8289 hardcode_libdir_separator=':'
8290 link_all_deplibs=yes
8292 if test "$GCC" = yes; then
8293 case $host_os in aix4.[012]|aix4.[012].*)
8294 # We only want to do this on AIX 4.2 and lower, the check
8295 # below for broken collect2 doesn't work under 4.3+
8296 collect2name=`${CC} -print-prog-name=collect2`
8297 if test -f "$collect2name" && \
8298 strings "$collect2name" | grep resolve_lib_name >/dev/null
8300 # We have reworked collect2
8303 # We have old collect2
8304 hardcode_direct=unsupported
8305 # It fails to find uninstalled libraries when the uninstalled
8306 # path is not listed in the libpath. Setting hardcode_minus_L
8307 # to unsupported forces relinking
8308 hardcode_minus_L=yes
8309 hardcode_libdir_flag_spec='-L$libdir'
8310 hardcode_libdir_separator=
8314 shared_flag='-shared'
8315 if test "$aix_use_runtimelinking" = yes; then
8316 shared_flag="$shared_flag "'${wl}-G'
8320 if test "$host_cpu" = ia64; then
8321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8322 # chokes on -Wl,-G. The following line is correct:
8325 if test "$aix_use_runtimelinking" = yes; then
8326 shared_flag='${wl}-G'
8328 shared_flag='${wl}-bM:SRE'
8333 # It seems that -bexpall does not export symbols beginning with
8334 # underscore (_), so it is better to generate a list of symbols to export.
8335 always_export_symbols=yes
8336 if test "$aix_use_runtimelinking" = yes; then
8337 # Warning - without using the other runtime loading flags (-brtl),
8338 # -berok will link without error, but may produce a broken library.
8339 allow_undefined_flag='-berok'
8340 # Determine the default libpath from the value encoded in an empty executable.
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8352 if ac_fn_c_try_link "$LINENO"; then :
8354 lt_aix_libpath_sed='
8355 /Import File Strings/,/^$/ {
8361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8362 # Check for a 64-bit object if we didn't find anything.
8363 if test -z "$aix_libpath"; then
8364 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8367 rm -f core conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8371 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8372 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"
8374 if test "$host_cpu" = ia64; then
8375 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8376 allow_undefined_flag="-z nodefs"
8377 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"
8379 # Determine the default libpath from the value encoded in an empty executable.
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8391 if ac_fn_c_try_link "$LINENO"; then :
8393 lt_aix_libpath_sed='
8394 /Import File Strings/,/^$/ {
8400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8401 # Check for a 64-bit object if we didn't find anything.
8402 if test -z "$aix_libpath"; then
8403 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8406 rm -f core conftest.err conftest.$ac_objext \
8407 conftest$ac_exeext conftest.$ac_ext
8408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8410 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8411 # Warning - without using the other run time loading flags,
8412 # -berok will link without error, but may produce a broken library.
8413 no_undefined_flag=' ${wl}-bernotok'
8414 allow_undefined_flag=' ${wl}-berok'
8415 # Exported symbols can be pulled into shared objects from archives
8416 whole_archive_flag_spec='$convenience'
8417 archive_cmds_need_lc=yes
8418 # This is similar to how AIX traditionally builds its shared libraries.
8419 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'
8425 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)'
8426 hardcode_libdir_flag_spec='-L$libdir'
8427 hardcode_minus_L=yes
8428 # see comment about different semantics on the GNU ld section
8433 export_dynamic_flag_spec=-rdynamic
8436 cygwin* | mingw* | pw32*)
8437 # When not using gcc, we currently assume that we are using
8438 # Microsoft Visual C++.
8439 # hardcode_libdir_flag_spec is actually meaningless, as there is
8440 # no search path for DLLs.
8441 hardcode_libdir_flag_spec=' '
8442 allow_undefined_flag=unsupported
8443 # Tell ltmain to make .lib files, not .a files.
8445 # Tell ltmain to make .dll files, not .so files.
8447 # FIXME: Setting linknames here is a bad hack.
8448 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8449 # The linker will automatically build a .lib file if we build a DLL.
8450 old_archive_From_new_cmds='true'
8451 # FIXME: Should let the user specify the lib program.
8452 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8453 fix_srcfile_path='`cygpath -w "$srcfile"`'
8454 enable_shared_with_static_runtimes=yes
8457 darwin* | rhapsody*)
8459 rhapsody* | darwin1.[012])
8460 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8464 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8466 case ${MACOSX_DEPLOYMENT_TARGET} in
8468 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8471 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8477 archive_cmds_need_lc=no
8479 hardcode_automatic=yes
8480 hardcode_shlibpath_var=unsupported
8481 whole_archive_flag_spec=''
8482 link_all_deplibs=yes
8483 if test "$GCC" = yes ; then
8484 output_verbose_link_cmd='echo'
8485 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8486 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8487 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8488 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8490 case $cc_basename in
8492 output_verbose_link_cmd='echo'
8493 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8494 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8495 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8496 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8497 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}'
8507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508 hardcode_libdir_flag_spec='-L$libdir'
8509 hardcode_shlibpath_var=no
8516 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8517 # support. Future versions do this automatically, but an explicit c++rt0.o
8518 # does not break anything, and helps significantly (at the cost of a little
8521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8522 hardcode_libdir_flag_spec='-R$libdir'
8524 hardcode_shlibpath_var=no
8527 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8531 hardcode_minus_L=yes
8532 hardcode_shlibpath_var=no
8535 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8536 freebsd* | dragonfly*)
8537 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8538 hardcode_libdir_flag_spec='-R$libdir'
8540 hardcode_shlibpath_var=no
8544 if test "$GCC" = yes; then
8545 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'
8547 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'
8549 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8550 hardcode_libdir_separator=:
8553 # hardcode_minus_L: Not really in the search PATH,
8554 # but as the default location of the library.
8555 hardcode_minus_L=yes
8556 export_dynamic_flag_spec='${wl}-E'
8560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8561 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8563 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8565 if test "$with_gnu_ld" = no; then
8566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8567 hardcode_libdir_separator=:
8570 export_dynamic_flag_spec='${wl}-E'
8572 # hardcode_minus_L: Not really in the search PATH,
8573 # but as the default location of the library.
8574 hardcode_minus_L=yes
8579 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8582 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8585 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8588 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8594 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8597 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8600 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8604 if test "$with_gnu_ld" = no; then
8605 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8606 hardcode_libdir_separator=:
8610 hardcode_libdir_flag_spec_ld='+b $libdir'
8612 hardcode_shlibpath_var=no
8616 export_dynamic_flag_spec='${wl}-E'
8618 # hardcode_minus_L: Not really in the search PATH,
8619 # but as the default location of the library.
8620 hardcode_minus_L=yes
8626 irix5* | irix6* | nonstopux*)
8627 if test "$GCC" = yes; then
8628 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'
8630 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'
8631 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8634 hardcode_libdir_separator=:
8635 link_all_deplibs=yes
8638 netbsd* | netbsdelf*-gnu)
8639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8642 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8644 hardcode_libdir_flag_spec='-R$libdir'
8646 hardcode_shlibpath_var=no
8650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653 hardcode_libdir_separator=:
8654 hardcode_shlibpath_var=no
8658 if test -f /usr/libexec/ld.so; then
8660 hardcode_shlibpath_var=no
8661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665 export_dynamic_flag_spec='${wl}-E'
8668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_libdir_flag_spec='-R$libdir'
8673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8684 hardcode_libdir_flag_spec='-L$libdir'
8685 hardcode_minus_L=yes
8686 allow_undefined_flag=unsupported
8687 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'
8688 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8692 if test "$GCC" = yes; then
8693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8694 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'
8696 allow_undefined_flag=' -expect_unresolved \*'
8697 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'
8699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700 hardcode_libdir_separator=:
8703 osf4* | osf5*) # as osf3* with the addition of -msym flag
8704 if test "$GCC" = yes; then
8705 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8706 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'
8707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709 allow_undefined_flag=' -expect_unresolved \*'
8710 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'
8711 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8712 $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'
8714 # Both c and cxx compiler support -rpath directly
8715 hardcode_libdir_flag_spec='-rpath $libdir'
8717 hardcode_libdir_separator=:
8721 no_undefined_flag=' -z text'
8722 if test "$GCC" = yes; then
8724 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8725 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8726 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8729 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8733 hardcode_libdir_flag_spec='-R$libdir'
8734 hardcode_shlibpath_var=no
8736 solaris2.[0-5] | solaris2.[0-5].*) ;;
8738 # The compiler driver will combine and reorder linker options,
8739 # but understands `-z linker_flag'. GCC discards it without `$wl',
8740 # but is careful enough not to reorder.
8741 # Supported since Solaris 2.6 (maybe 2.5.1?)
8742 if test "$GCC" = yes; then
8743 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8745 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8749 link_all_deplibs=yes
8753 if test "x$host_vendor" = xsequent; then
8754 # Use $CC to link under sequent, because it throws in some extra .o
8755 # files that make .init and .fini sections work.
8756 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8760 hardcode_libdir_flag_spec='-L$libdir'
8762 hardcode_minus_L=yes
8763 hardcode_shlibpath_var=no
8767 case $host_vendor in
8769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_direct=yes # is this really true???
8773 ## LD is ld it makes a PLAMLIB
8774 ## CC just makes a GrossModule.
8775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8776 reload_cmds='$CC -r -o $output$reload_objs'
8780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8784 runpath_var='LD_RUN_PATH'
8785 hardcode_shlibpath_var=no
8789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790 hardcode_shlibpath_var=no
8791 export_dynamic_flag_spec='-Bexport'
8795 if test -d /usr/nec; then
8796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797 hardcode_shlibpath_var=no
8798 runpath_var=LD_RUN_PATH
8799 hardcode_runpath_var=yes
8804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8805 no_undefined_flag='${wl}-z,text'
8806 archive_cmds_need_lc=no
8807 hardcode_shlibpath_var=no
8808 runpath_var='LD_RUN_PATH'
8810 if test "$GCC" = yes; then
8811 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8812 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8819 sysv5* | sco3.2v5* | sco5v6*)
8820 # Note: We can NOT use -z defs as we might desire, because we do not
8821 # link with -lc, and that would cause any symbols used from libc to
8822 # always be unresolved, which means just about no library would
8823 # ever link correctly. If we're not using GNU ld we use -z text
8824 # though, which does catch some bad symbols but isn't as heavy-handed
8826 no_undefined_flag='${wl}-z,text'
8827 allow_undefined_flag='${wl}-z,nodefs'
8828 archive_cmds_need_lc=no
8829 hardcode_shlibpath_var=no
8830 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8831 hardcode_libdir_separator=':'
8832 link_all_deplibs=yes
8833 export_dynamic_flag_spec='${wl}-Bexport'
8834 runpath_var='LD_RUN_PATH'
8836 if test "$GCC" = yes; then
8837 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847 hardcode_libdir_flag_spec='-L$libdir'
8848 hardcode_shlibpath_var=no
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8858 $as_echo "$ld_shlibs" >&6; }
8859 test "$ld_shlibs" = no && can_build_shared=no
8862 # Do we need to explicitly link libc?
8864 case "x$archive_cmds_need_lc" in
8866 # Assume -lc should be added
8867 archive_cmds_need_lc=yes
8869 if test "$enable_shared" = yes && test "$GCC" = yes; then
8870 case $archive_cmds in
8872 # FIXME: we may have to deal with multi-command sequences.
8875 # Test whether the compiler implicitly links with -lc since on some
8876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8877 # to ld, don't add -lc before -lgcc.
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8879 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8884 (eval $ac_compile) 2>&5
8886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8887 test $ac_status = 0; } 2>conftest.err; then
8890 libobjs=conftest.$ac_objext
8892 wl=$lt_prog_compiler_wl
8893 pic_flag=$lt_prog_compiler_pic
8899 lt_save_allow_undefined_flag=$allow_undefined_flag
8900 allow_undefined_flag=
8901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8902 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8905 test $ac_status = 0; }
8907 archive_cmds_need_lc=no
8909 archive_cmds_need_lc=yes
8911 allow_undefined_flag=$lt_save_allow_undefined_flag
8913 cat conftest.err 1>&5
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8917 $as_echo "$archive_cmds_need_lc" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8925 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8927 libname_spec='lib$name'
8935 shlibpath_overrides_runpath=unknown
8937 dynamic_linker="$host_os ld.so"
8938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8940 if test "$GCC" = yes; then
8942 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8943 *) lt_awk_arg="/^libraries:/" ;;
8945 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8946 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8947 # if the path contains ";" then we assume it to be the separator
8948 # otherwise default to the standard path separator (i.e. ":") - it is
8949 # assumed that no part of a normal pathname contains ";" but that should
8950 # okay in the real world where ";" in dirpaths is itself problematic.
8951 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8953 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8955 # Ok, now we have the path, separated by spaces, we can step through it
8956 # and add multilib dir if necessary.
8957 lt_tmp_lt_search_path_spec=
8958 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8959 for lt_sys_path in $lt_search_path_spec; do
8960 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8961 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8963 test -d "$lt_sys_path" && \
8964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8967 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8968 BEGIN {RS=" "; FS="/|\n";} {
8971 for (lt_i = NF; lt_i > 0; lt_i--) {
8972 if ($lt_i != "" && $lt_i != ".") {
8973 if ($lt_i == "..") {
8976 if (lt_count == 0) {
8977 lt_foo="/" $lt_i lt_foo;
8984 if (lt_foo != "") { lt_freq[lt_foo]++; }
8985 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8987 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8989 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8991 need_lib_prefix=unknown
8992 hardcode_into_libs=no
8994 # when you set need_version to no, make sure it does not cause -set_version
8995 # flags to be left without arguments
8996 need_version=unknown
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9002 shlibpath_var=LIBPATH
9004 # AIX 3 has no versioning support, so we append a major version to the name.
9005 soname_spec='${libname}${release}${shared_ext}$major'
9012 hardcode_into_libs=yes
9013 if test "$host_cpu" = ia64; then
9014 # AIX 5 supports IA64
9015 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9016 shlibpath_var=LD_LIBRARY_PATH
9018 # With GCC up to 2.95.x, collect2 would create an import file
9019 # for dependence libraries. The import file would start with
9020 # the line `#! .'. This would cause the generated library to
9021 # depend on `.', always an invalid library. This was fixed in
9022 # development snapshots of GCC prior to 3.0.
9024 aix4 | aix4.[01] | aix4.[01].*)
9025 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9027 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9034 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9035 # soname into executable. Probably we can add versioning support to
9036 # collect2, so additional links can be useful in future.
9037 if test "$aix_use_runtimelinking" = yes; then
9038 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9039 # instead of lib<name>.a to let people know that these are not
9040 # typical AIX shared libraries.
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 # We preserve .a as extension for shared libraries through AIX4.2
9044 # and later when we are not doing run time linking.
9045 library_names_spec='${libname}${release}.a $libname.a'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9048 shlibpath_var=LIBPATH
9053 library_names_spec='$libname.ixlibrary $libname.a'
9054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9055 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'
9059 library_names_spec='${libname}${shared_ext}'
9060 dynamic_linker="$host_os ld.so"
9061 shlibpath_var=LIBRARY_PATH
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9072 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9073 # the default ld.so.conf also contains /usr/contrib/lib and
9074 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9075 # libtool to hard-code these into programs
9078 cygwin* | mingw* | pw32*)
9079 version_type=windows
9084 case $GCC,$host_os in
9085 yes,cygwin* | yes,mingw* | yes,pw32*)
9086 library_names_spec='$libname.dll.a'
9087 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9088 postinstall_cmds='base_file=`basename \${file}`~
9089 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9090 dldir=$destdir/`dirname \$dlpath`~
9091 test -d \$dldir || mkdir -p \$dldir~
9092 $install_prog $dir/$dlname \$dldir/$dlname~
9093 chmod a+x \$dldir/$dlname'
9094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9095 dlpath=$dir/\$dldll~
9097 shlibpath_overrides_runpath=yes
9101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9102 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9103 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9106 # MinGW DLLs use traditional 'lib' prefix
9107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9109 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9110 # It is most probably a Windows format PATH printed by
9111 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9112 # path with ; separators, and with drive letters. We can handle the
9113 # drive letters (cygwin fileutils understands them), so leave them,
9114 # especially as we might pass files found there to a mingw objdump,
9115 # which wouldn't understand a cygwinified path. Ahh.
9116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9122 # pw32 DLLs use 'pw' prefix rather than 'lib'
9123 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9129 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9132 dynamic_linker='Win32 ld.exe'
9133 # FIXME: first we should search . and the directory the executable is in
9137 darwin* | rhapsody*)
9138 dynamic_linker="$host_os dyld"
9142 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9143 soname_spec='${libname}${release}${major}$shared_ext'
9144 shlibpath_overrides_runpath=yes
9145 shlibpath_var=DYLD_LIBRARY_PATH
9146 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9148 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9149 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9165 freebsd* | dragonfly*)
9166 # DragonFly does not have aout. When/if they implement a new
9167 # versioning mechanism, adjust this.
9168 if test -x /usr/bin/objformat; then
9169 objformat=`/usr/bin/objformat`
9172 freebsd[123]*) objformat=aout ;;
9176 version_type=freebsd-$objformat
9177 case $version_type in
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9188 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=yes
9193 freebsd3.[01]* | freebsdelf3.[01]*)
9194 shlibpath_overrides_runpath=yes
9195 hardcode_into_libs=yes
9197 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9198 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9199 shlibpath_overrides_runpath=no
9200 hardcode_into_libs=yes
9202 *) # from 4.6 on, and DragonFly
9203 shlibpath_overrides_runpath=yes
9204 hardcode_into_libs=yes
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 hardcode_into_libs=yes
9219 hpux9* | hpux10* | hpux11*)
9220 # Give a soname corresponding to the major version so that dld.sl refuses to
9221 # link against other versions.
9228 hardcode_into_libs=yes
9229 dynamic_linker="$host_os dld.so"
9230 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 if test "X$HPUX_IA64_MODE" = X32; then
9235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9243 hardcode_into_libs=yes
9244 dynamic_linker="$host_os dld.sl"
9245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9254 dynamic_linker="$host_os dld.sl"
9255 shlibpath_var=SHLIB_PATH
9256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9261 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9262 postinstall_cmds='chmod 555 $lib'
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 shlibpath_overrides_runpath=no
9274 hardcode_into_libs=yes
9277 irix5* | irix6* | nonstopux*)
9279 nonstopux*) version_type=nonstopux ;;
9281 if test "$lt_cv_prog_gnu_ld" = yes; then
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9292 irix5* | nonstopux*)
9296 case $LD in # libtool.m4 will add one of these switches to LD
9297 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9298 libsuff= shlibsuff= libmagic=32-bit;;
9299 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9300 libsuff=32 shlibsuff=N32 libmagic=N32;;
9301 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9302 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9303 *) libsuff= shlibsuff= libmagic=never-match;;
9307 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9308 shlibpath_overrides_runpath=no
9309 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9310 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9311 hardcode_into_libs=yes
9314 # No shared lib support for Linux oldld, aout, or coff.
9315 linux*oldld* | linux*aout* | linux*coff*)
9319 # This must be Linux ELF.
9320 linux* | k*bsd*-gnu)
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=no
9329 # This implies no fast_install, which is unacceptable.
9330 # Some rework will be needed to allow for fast_install
9331 # before this can be enabled.
9332 hardcode_into_libs=yes
9334 # Append ld.so.conf contents to the search path
9335 if test -f /etc/ld.so.conf; then
9336 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9340 # We used to test for /lib/ld.so.1 and disable shared libraries on
9341 # powerpc, because MkLinux only supported shared libraries with the
9342 # GNU dynamic linker. Since this was broken with cross compilers,
9343 # most powerpc-linux boxes support dynamic linking these days and
9344 # people can always --disable-shared, the test was removed, and we
9345 # assume the GNU/Linux dynamic linker is in use.
9346 dynamic_linker='GNU/Linux ld.so'
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 shlibpath_overrides_runpath=no
9357 hardcode_into_libs=yes
9358 dynamic_linker='NetBSD ld.elf_so'
9365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9368 dynamic_linker='NetBSD (a.out) ld.so'
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9371 soname_spec='${libname}${release}${shared_ext}$major'
9372 dynamic_linker='NetBSD ld.elf_so'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 shlibpath_overrides_runpath=yes
9376 hardcode_into_libs=yes
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=yes
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 shlibpath_var=LD_LIBRARY_PATH
9393 shlibpath_overrides_runpath=yes
9398 sys_lib_dlsearch_path_spec="/usr/lib"
9400 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9402 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9403 *) need_version=no ;;
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9410 openbsd2.[89] | openbsd2.[89].*)
9411 shlibpath_overrides_runpath=no
9414 shlibpath_overrides_runpath=yes
9418 shlibpath_overrides_runpath=yes
9423 libname_spec='$name'
9426 library_names_spec='$libname${shared_ext} $libname.a'
9427 dynamic_linker='OS/2 ld.exe'
9428 shlibpath_var=LIBPATH
9431 osf3* | osf4* | osf5*)
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9437 shlibpath_var=LD_LIBRARY_PATH
9438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9439 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 shlibpath_overrides_runpath=yes
9454 hardcode_into_libs=yes
9455 # ldd complains unless libraries are executable
9456 postinstall_cmds='chmod +x $lib'
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=yes
9465 if test "$with_gnu_ld" = yes; then
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 case $host_vendor in
9478 shlibpath_overrides_runpath=no
9480 export_dynamic_flag_spec='${wl}-Blargedynsym'
9481 runpath_var=LD_RUN_PATH
9489 shlibpath_overrides_runpath=no
9490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9496 if test -d /usr/nec ;then
9498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9499 soname_spec='$libname${shared_ext}.$major'
9500 shlibpath_var=LD_LIBRARY_PATH
9504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9505 version_type=freebsd-elf
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 hardcode_into_libs=yes
9512 if test "$with_gnu_ld" = yes; then
9513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9514 shlibpath_overrides_runpath=no
9516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9517 shlibpath_overrides_runpath=yes
9520 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9524 sys_lib_dlsearch_path_spec='/usr/lib'
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 shlibpath_var=LD_LIBRARY_PATH
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9539 $as_echo "$dynamic_linker" >&6; }
9540 test "$dynamic_linker" = no && can_build_shared=no
9542 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9543 $as_echo_n "(cached) " >&6
9545 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9548 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9549 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9550 $as_echo_n "(cached) " >&6
9552 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9555 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9558 if test "$GCC" = yes; then
9559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9563 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9565 if test -n "$hardcode_libdir_flag_spec" || \
9566 test -n "$runpath_var" || \
9567 test "X$hardcode_automatic" = "Xyes" ; then
9569 # We can hardcode non-existant directories.
9570 if test "$hardcode_direct" != no &&
9571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9572 # have to relink, otherwise we might link with an installed library
9573 # when we should be linking with a yet-to-be-installed one
9574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9575 test "$hardcode_minus_L" != no; then
9576 # Linking always hardcodes the temporary library directory.
9577 hardcode_action=relink
9579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9580 hardcode_action=immediate
9583 # We cannot hardcode anything, or else we can only hardcode existing
9585 hardcode_action=unsupported
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9588 $as_echo "$hardcode_action" >&6; }
9590 if test "$hardcode_action" = relink; then
9591 # Fast installation is not supported
9592 enable_fast_install=no
9593 elif test "$shlibpath_overrides_runpath" = yes ||
9594 test "$enable_shared" = no; then
9595 # Fast installation is not necessary
9596 enable_fast_install=needless
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9602 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9603 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9604 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9605 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9607 $as_echo "yes" >&6; }
9609 # FIXME - insert some real tests, host_os isn't really good enough
9612 if test -n "$STRIP" ; then
9613 striplib="$STRIP -x"
9614 old_striplib="$STRIP -S"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9616 $as_echo "yes" >&6; }
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 $as_echo "no" >&6; }
9629 if test "x$enable_dlopen" != xyes; then
9630 enable_dlopen=unknown
9631 enable_dlopen_self=unknown
9632 enable_dlopen_self_static=unknown
9639 lt_cv_dlopen="load_add_on"
9641 lt_cv_dlopen_self=yes
9645 lt_cv_dlopen="LoadLibrary"
9650 lt_cv_dlopen="dlopen"
9655 # if libdl is installed we need to link against it
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9658 if ${ac_cv_lib_dl_dlopen+:} false; then :
9659 $as_echo_n "(cached) " >&6
9661 ac_check_lib_save_LIBS=$LIBS
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h. */
9666 /* Override any GCC internal prototype to avoid an error.
9667 Use char because int might match the return type of a GCC
9668 builtin and then its argument prototype would still apply. */
9681 if ac_fn_c_try_link "$LINENO"; then :
9682 ac_cv_lib_dl_dlopen=yes
9684 ac_cv_lib_dl_dlopen=no
9686 rm -f core conftest.err conftest.$ac_objext \
9687 conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9692 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9698 lt_cv_dlopen_self=yes
9705 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9706 if test "x$ac_cv_func_shl_load" = xyes; then :
9707 lt_cv_dlopen="shl_load"
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9710 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9711 if ${ac_cv_lib_dld_shl_load+:} false; then :
9712 $as_echo_n "(cached) " >&6
9714 ac_check_lib_save_LIBS=$LIBS
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9719 /* Override any GCC internal prototype to avoid an error.
9720 Use char because int might match the return type of a GCC
9721 builtin and then its argument prototype would still apply. */
9734 if ac_fn_c_try_link "$LINENO"; then :
9735 ac_cv_lib_dld_shl_load=yes
9737 ac_cv_lib_dld_shl_load=no
9739 rm -f core conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_check_lib_save_LIBS
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9744 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9745 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9748 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9749 if test "x$ac_cv_func_dlopen" = xyes; then :
9750 lt_cv_dlopen="dlopen"
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9753 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9754 if ${ac_cv_lib_dl_dlopen+:} false; then :
9755 $as_echo_n "(cached) " >&6
9757 ac_check_lib_save_LIBS=$LIBS
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9762 /* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
9777 if ac_fn_c_try_link "$LINENO"; then :
9778 ac_cv_lib_dl_dlopen=yes
9780 ac_cv_lib_dl_dlopen=no
9782 rm -f core conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9787 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9788 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9792 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9793 if ${ac_cv_lib_svld_dlopen+:} false; then :
9794 $as_echo_n "(cached) " >&6
9796 ac_check_lib_save_LIBS=$LIBS
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 ac_cv_lib_svld_dlopen=yes
9819 ac_cv_lib_svld_dlopen=no
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9826 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9827 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9828 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9831 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9832 if ${ac_cv_lib_dld_dld_link+:} false; then :
9833 $as_echo_n "(cached) " >&6
9835 ac_check_lib_save_LIBS=$LIBS
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9840 /* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
9855 if ac_fn_c_try_link "$LINENO"; then :
9856 ac_cv_lib_dld_dld_link=yes
9858 ac_cv_lib_dld_dld_link=no
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9865 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9866 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9867 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9888 if test "x$lt_cv_dlopen" != xno; then
9894 case $lt_cv_dlopen in
9896 save_CPPFLAGS="$CPPFLAGS"
9897 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9899 save_LDFLAGS="$LDFLAGS"
9900 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9903 LIBS="$lt_cv_dlopen_libs $LIBS"
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9906 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9907 if ${lt_cv_dlopen_self+:} false; then :
9908 $as_echo_n "(cached) " >&6
9910 if test "$cross_compiling" = yes; then :
9911 lt_cv_dlopen_self=cross
9913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9914 lt_status=$lt_dlunknown
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9916 "configure"
9917 #include "confdefs.h"
9926 # define LT_DLGLOBAL RTLD_GLOBAL
9929 # define LT_DLGLOBAL DL_GLOBAL
9931 # define LT_DLGLOBAL 0
9935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9936 find out it does not work in some platform. */
9937 #ifndef LT_DLLAZY_OR_NOW
9939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9942 # define LT_DLLAZY_OR_NOW DL_LAZY
9945 # define LT_DLLAZY_OR_NOW RTLD_NOW
9948 # define LT_DLLAZY_OR_NOW DL_NOW
9950 # define LT_DLLAZY_OR_NOW 0
9958 extern "C" void exit (int);
9961 void fnord() { int i=42;}
9964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9965 int status = $lt_dlunknown;
9969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9971 /* dlclose (self); */
9979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9980 (eval $ac_link) 2>&5
9982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9983 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9984 (./conftest; exit; ) >&5 2>/dev/null
9987 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9988 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9989 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9992 # compilation failed
9993 lt_cv_dlopen_self=no
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10001 $as_echo "$lt_cv_dlopen_self" >&6; }
10003 if test "x$lt_cv_dlopen_self" = xyes; then
10004 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10006 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10007 if ${lt_cv_dlopen_self_static+:} false; then :
10008 $as_echo_n "(cached) " >&6
10010 if test "$cross_compiling" = yes; then :
10011 lt_cv_dlopen_self_static=cross
10013 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10014 lt_status=$lt_dlunknown
10015 cat > conftest.$ac_ext <<EOF
10016 #line 10016 "configure"
10017 #include "confdefs.h"
10026 # define LT_DLGLOBAL RTLD_GLOBAL
10029 # define LT_DLGLOBAL DL_GLOBAL
10031 # define LT_DLGLOBAL 0
10035 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10036 find out it does not work in some platform. */
10037 #ifndef LT_DLLAZY_OR_NOW
10039 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10042 # define LT_DLLAZY_OR_NOW DL_LAZY
10045 # define LT_DLLAZY_OR_NOW RTLD_NOW
10048 # define LT_DLLAZY_OR_NOW DL_NOW
10050 # define LT_DLLAZY_OR_NOW 0
10058 extern "C" void exit (int);
10061 void fnord() { int i=42;}
10064 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10065 int status = $lt_dlunknown;
10069 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10070 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10071 /* dlclose (self); */
10079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10080 (eval $ac_link) 2>&5
10082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10083 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10084 (./conftest; exit; ) >&5 2>/dev/null
10086 case x$lt_status in
10087 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10088 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10089 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10092 # compilation failed
10093 lt_cv_dlopen_self_static=no
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10101 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10104 CPPFLAGS="$save_CPPFLAGS"
10105 LDFLAGS="$save_LDFLAGS"
10110 case $lt_cv_dlopen_self in
10111 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10112 *) enable_dlopen_self=unknown ;;
10115 case $lt_cv_dlopen_self_static in
10116 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10117 *) enable_dlopen_self_static=unknown ;;
10122 # Report which library types will actually be built
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10124 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10126 $as_echo "$can_build_shared" >&6; }
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10129 $as_echo_n "checking whether to build shared libraries... " >&6; }
10130 test "$can_build_shared" = "no" && enable_shared=no
10132 # On AIX, shared libraries and static libraries use the same namespace, and
10133 # are all built from PIC.
10136 test "$enable_shared" = yes && enable_static=no
10137 if test -n "$RANLIB"; then
10138 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10139 postinstall_cmds='$RANLIB $lib'
10144 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10145 test "$enable_shared" = yes && enable_static=no
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10150 $as_echo "$enable_shared" >&6; }
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10153 $as_echo_n "checking whether to build static libraries... " >&6; }
10154 # Make sure either enable_shared or enable_static is yes.
10155 test "$enable_shared" = yes || enable_static=yes
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10157 $as_echo "$enable_static" >&6; }
10159 # The else clause should only fire when bootstrapping the
10160 # libtool distribution, otherwise you forgot to ship ltmain.sh
10161 # with your package, and you will get complaints that there are
10162 # no rules to generate ltmain.sh.
10163 if test -f "$ltmain"; then
10164 # See if we are running on zsh, and set the options which allow our commands through
10165 # without removal of \ escapes.
10166 if test -n "${ZSH_VERSION+set}" ; then
10167 setopt NO_GLOB_SUBST
10169 # Now quote all the things that may contain metacharacters while being
10170 # careful not to overquote the AC_SUBSTed values. We take copies of the
10171 # variables and quote the copies for generation of the libtool script.
10172 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10176 deplibs_check_method reload_flag reload_cmds need_locks \
10177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10178 lt_cv_sys_global_symbol_to_c_name_address \
10179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10180 old_postinstall_cmds old_postuninstall_cmds \
10184 lt_prog_compiler_wl \
10185 lt_prog_compiler_pic \
10186 lt_prog_compiler_static \
10187 lt_prog_compiler_no_builtin_flag \
10188 export_dynamic_flag_spec \
10189 thread_safe_flag_spec \
10190 whole_archive_flag_spec \
10191 enable_shared_with_static_runtimes \
10193 old_archive_from_new_cmds \
10198 compiler_lib_search_path \
10199 compiler_lib_search_dirs \
10201 archive_expsym_cmds \
10203 postuninstall_cmds \
10204 old_archive_from_expsyms_cmds \
10205 allow_undefined_flag \
10206 no_undefined_flag \
10207 export_symbols_cmds \
10208 hardcode_libdir_flag_spec \
10209 hardcode_libdir_flag_spec_ld \
10210 hardcode_libdir_separator \
10211 hardcode_automatic \
10213 module_expsym_cmds \
10214 lt_cv_prog_compiler_c_o \
10217 include_expsyms; do
10220 old_archive_cmds | \
10221 old_archive_from_new_cmds | \
10223 archive_expsym_cmds | \
10225 module_expsym_cmds | \
10226 old_archive_from_expsyms_cmds | \
10227 export_symbols_cmds | \
10228 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10229 postinstall_cmds | postuninstall_cmds | \
10230 old_postinstall_cmds | old_postuninstall_cmds | \
10231 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10232 # Double-quote double-evaled strings.
10233 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10242 *'\$0 --fallback-echo"')
10243 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10247 cfgfile="${ofile}T"
10248 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10251 $as_echo "$as_me: creating $ofile" >&6;}
10253 cat <<__EOF__ >> "$cfgfile"
10256 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10257 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10258 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10260 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10261 # Free Software Foundation, Inc.
10263 # This file is part of GNU Libtool:
10264 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10266 # This program is free software; you can redistribute it and/or modify
10267 # it under the terms of the GNU General Public License as published by
10268 # the Free Software Foundation; either version 2 of the License, or
10269 # (at your option) any later version.
10271 # This program is distributed in the hope that it will be useful, but
10272 # WITHOUT ANY WARRANTY; without even the implied warranty of
10273 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10274 # General Public License for more details.
10276 # You should have received a copy of the GNU General Public License
10277 # along with this program; if not, write to the Free Software
10278 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10280 # As a special exception to the GNU General Public License, if you
10281 # distribute this file as part of a program that contains a
10282 # configuration script generated by Autoconf, you may include it under
10283 # the same distribution terms that you use for the rest of that program.
10285 # A sed program that does not truncate output.
10288 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10289 Xsed="$SED -e 1s/^X//"
10291 # The HP-UX ksh and POSIX shell print the target directory to stdout
10292 # if CDPATH is set.
10293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10295 # The names of the tagged configurations supported by this script.
10298 # ### BEGIN LIBTOOL CONFIG
10300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10302 # Shell to use when invoking shell scripts.
10305 # Whether or not to build shared libraries.
10306 build_libtool_libs=$enable_shared
10308 # Whether or not to build static libraries.
10309 build_old_libs=$enable_static
10311 # Whether or not to add -lc for building shared libraries.
10312 build_libtool_need_lc=$archive_cmds_need_lc
10314 # Whether or not to disallow shared libs when runtime libs are static
10315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10317 # Whether or not to optimize for fast installation.
10318 fast_install=$enable_fast_install
10321 host_alias=$host_alias
10325 # The build system.
10326 build_alias=$build_alias
10330 # An echo program that does not interpret backslashes.
10335 AR_FLAGS=$lt_AR_FLAGS
10340 # LTCC compiler flags.
10341 LTCFLAGS=$lt_LTCFLAGS
10343 # A language-specific compiler.
10346 # Is the compiler the GNU C compiler?
10352 # The linker used to build libraries.
10355 # Whether we need hard or soft links.
10358 # A BSD-compatible nm program.
10361 # A symbol stripping program
10364 # Used to examine libraries when file_magic_cmd begins "file"
10365 MAGIC_CMD=$MAGIC_CMD
10367 # Used on cygwin: DLL creation program.
10370 # Used on cygwin: object dumper.
10373 # Used on cygwin: assembler.
10376 # The name of the directory that contains temporary libtool files.
10379 # How to create reloadable object files.
10380 reload_flag=$lt_reload_flag
10381 reload_cmds=$lt_reload_cmds
10383 # How to pass a linker flag through the compiler.
10384 wl=$lt_lt_prog_compiler_wl
10386 # Object file suffix (normally "o").
10387 objext="$ac_objext"
10389 # Old archive suffix (normally "a").
10392 # Shared library suffix (normally ".so").
10393 shrext_cmds='$shrext_cmds'
10395 # Executable file suffix (normally "").
10398 # Additional compiler flags for building library objects.
10399 pic_flag=$lt_lt_prog_compiler_pic
10402 # What is the maximum length of a command?
10403 max_cmd_len=$lt_cv_sys_max_cmd_len
10405 # Does compiler simultaneously support -c and -o options?
10406 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10408 # Must we lock files when doing compilation?
10409 need_locks=$lt_need_locks
10411 # Do we need the lib prefix for modules?
10412 need_lib_prefix=$need_lib_prefix
10414 # Do we need a version for libraries?
10415 need_version=$need_version
10417 # Whether dlopen is supported.
10418 dlopen_support=$enable_dlopen
10420 # Whether dlopen of programs is supported.
10421 dlopen_self=$enable_dlopen_self
10423 # Whether dlopen of statically linked programs is supported.
10424 dlopen_self_static=$enable_dlopen_self_static
10426 # Compiler flag to prevent dynamic linking.
10427 link_static_flag=$lt_lt_prog_compiler_static
10429 # Compiler flag to turn off builtin functions.
10430 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10432 # Compiler flag to allow reflexive dlopens.
10433 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10435 # Compiler flag to generate shared objects directly from archives.
10436 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10438 # Compiler flag to generate thread-safe objects.
10439 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10441 # Library versioning type.
10442 version_type=$version_type
10444 # Format of library name prefix.
10445 libname_spec=$lt_libname_spec
10447 # List of archive names. First name is the real one, the rest are links.
10448 # The last name is the one that the linker finds with -lNAME.
10449 library_names_spec=$lt_library_names_spec
10451 # The coded name of the library, if different from the real name.
10452 soname_spec=$lt_soname_spec
10454 # Commands used to build and install an old-style archive.
10456 old_archive_cmds=$lt_old_archive_cmds
10457 old_postinstall_cmds=$lt_old_postinstall_cmds
10458 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10460 # Create an old-style archive from a shared archive.
10461 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10463 # Create a temporary old-style archive to link instead of a shared archive.
10464 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10466 # Commands used to build and install a shared archive.
10467 archive_cmds=$lt_archive_cmds
10468 archive_expsym_cmds=$lt_archive_expsym_cmds
10469 postinstall_cmds=$lt_postinstall_cmds
10470 postuninstall_cmds=$lt_postuninstall_cmds
10472 # Commands used to build a loadable module (assumed same as above if empty)
10473 module_cmds=$lt_module_cmds
10474 module_expsym_cmds=$lt_module_expsym_cmds
10476 # Commands to strip libraries.
10477 old_striplib=$lt_old_striplib
10478 striplib=$lt_striplib
10480 # Dependencies to place before the objects being linked to create a
10482 predep_objects=$lt_predep_objects
10484 # Dependencies to place after the objects being linked to create a
10486 postdep_objects=$lt_postdep_objects
10488 # Dependencies to place before the objects being linked to create a
10490 predeps=$lt_predeps
10492 # Dependencies to place after the objects being linked to create a
10494 postdeps=$lt_postdeps
10496 # The directories searched by this compiler when creating a shared
10498 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10500 # The library search path used internally by the compiler when linking
10501 # a shared library.
10502 compiler_lib_search_path=$lt_compiler_lib_search_path
10504 # Method to check whether dependent libraries are shared objects.
10505 deplibs_check_method=$lt_deplibs_check_method
10507 # Command to use when deplibs_check_method == file_magic.
10508 file_magic_cmd=$lt_file_magic_cmd
10510 # Flag that allows shared libraries with undefined symbols to be built.
10511 allow_undefined_flag=$lt_allow_undefined_flag
10513 # Flag that forces no undefined symbols.
10514 no_undefined_flag=$lt_no_undefined_flag
10516 # Commands used to finish a libtool library installation in a directory.
10517 finish_cmds=$lt_finish_cmds
10519 # Same as above, but a single script fragment to be evaled but not shown.
10520 finish_eval=$lt_finish_eval
10522 # Take the output of nm and produce a listing of raw symbols and C names.
10523 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10525 # Transform the output of nm in a proper C declaration
10526 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10528 # Transform the output of nm in a C name address pair
10529 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10531 # This is the shared library runtime path variable.
10532 runpath_var=$runpath_var
10534 # This is the shared library path variable.
10535 shlibpath_var=$shlibpath_var
10537 # Is shlibpath searched before the hard-coded library search path?
10538 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10540 # How to hardcode a shared library path into an executable.
10541 hardcode_action=$hardcode_action
10543 # Whether we should hardcode library paths into libraries.
10544 hardcode_into_libs=$hardcode_into_libs
10546 # Flag to hardcode \$libdir into a binary during linking.
10547 # This must work even if \$libdir does not exist.
10548 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10550 # If ld is used when linking, flag to hardcode \$libdir into
10551 # a binary during linking. This must work even if \$libdir does
10553 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10555 # Whether we need a single -rpath flag with a separated argument.
10556 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10558 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10559 # resulting binary.
10560 hardcode_direct=$hardcode_direct
10562 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10563 # resulting binary.
10564 hardcode_minus_L=$hardcode_minus_L
10566 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10567 # the resulting binary.
10568 hardcode_shlibpath_var=$hardcode_shlibpath_var
10570 # Set to yes if building a shared library automatically hardcodes DIR into the library
10571 # and all subsequent libraries and executables linked against it.
10572 hardcode_automatic=$hardcode_automatic
10574 # Variables whose values should be saved in libtool wrapper scripts and
10575 # restored at relink time.
10576 variables_saved_for_relink="$variables_saved_for_relink"
10578 # Whether libtool must link a program against all its dependency libraries.
10579 link_all_deplibs=$link_all_deplibs
10581 # Compile-time system search path for libraries
10582 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10584 # Run-time system search path for libraries
10585 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10587 # Fix the shell variable \$srcfile for the compiler.
10588 fix_srcfile_path=$lt_fix_srcfile_path
10590 # Set to yes if exported symbols are required.
10591 always_export_symbols=$always_export_symbols
10593 # The commands to list exported symbols.
10594 export_symbols_cmds=$lt_export_symbols_cmds
10596 # The commands to extract the exported symbol list from a shared archive.
10597 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10599 # Symbols that should not be listed in the preloaded symbols.
10600 exclude_expsyms=$lt_exclude_expsyms
10602 # Symbols that must always be exported.
10603 include_expsyms=$lt_include_expsyms
10605 # ### END LIBTOOL CONFIG
10612 cat <<\EOF >> "$cfgfile"
10614 # AIX sometimes has problems with the GCC collect2 program. For some
10615 # reason, if we set the COLLECT_NAMES environment variable, the problems
10616 # vanish in a puff of smoke.
10617 if test "X${COLLECT_NAMES+set}" != Xset; then
10619 export COLLECT_NAMES
10625 # We use sed instead of cat because bash on DJGPP gets confused if
10626 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10627 # text mode, it properly converts lines to CR/LF. This bash problem
10628 # is reportedly fixed, but why not run on old versions too?
10629 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10631 mv -f "$cfgfile" "$ofile" || \
10632 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10636 # If there is no Makefile yet, we rely on a make rule to execute
10637 # `config.status --recheck' to rerun these tests and create the
10638 # libtool script then.
10639 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10640 if test -f "$ltmain_in"; then
10641 test -f Makefile && make "$ltmain"
10647 ac_cpp='$CPP $CPPFLAGS'
10648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10655 # Check whether --with-tags was given.
10656 if test "${with_tags+set}" = set; then :
10657 withval=$with_tags; tagnames="$withval"
10661 if test -f "$ltmain" && test -n "$tagnames"; then
10662 if test ! -f "${ofile}"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10664 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10667 if test -z "$LTCC"; then
10668 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10669 if test -z "$LTCC"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10671 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10674 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10677 if test -z "$LTCFLAGS"; then
10678 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10681 # Extract list of available tagged configurations in $ofile.
10682 # Note that this assumes the entire list is on one line.
10683 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10686 for tagname in $tagnames; do
10688 # Check whether tagname contains only valid characters
10689 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10691 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10695 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10697 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10700 # Update the list of available tags.
10701 if test -n "$tagname"; then
10702 echo appending configuration tag \"$tagname\" to $ofile
10706 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10707 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10708 (test "X$CXX" != "Xg++"))) ; then
10710 ac_cpp='$CXXCPP $CPPFLAGS'
10711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10718 archive_cmds_need_lc_CXX=no
10719 allow_undefined_flag_CXX=
10720 always_export_symbols_CXX=no
10721 archive_expsym_cmds_CXX=
10722 export_dynamic_flag_spec_CXX=
10723 hardcode_direct_CXX=no
10724 hardcode_libdir_flag_spec_CXX=
10725 hardcode_libdir_flag_spec_ld_CXX=
10726 hardcode_libdir_separator_CXX=
10727 hardcode_minus_L_CXX=no
10728 hardcode_shlibpath_var_CXX=unsupported
10729 hardcode_automatic_CXX=no
10731 module_expsym_cmds_CXX=
10732 link_all_deplibs_CXX=unknown
10733 old_archive_cmds_CXX=$old_archive_cmds
10734 no_undefined_flag_CXX=
10735 whole_archive_flag_spec_CXX=
10736 enable_shared_with_static_runtimes_CXX=no
10738 # Dependencies to place before and after the object being linked:
10739 predep_objects_CXX=
10740 postdep_objects_CXX=
10743 compiler_lib_search_path_CXX=
10744 compiler_lib_search_dirs_CXX=
10746 # Source file extension for C++ test sources.
10749 # Object file extension for compiled C++ test sources.
10753 # Code to be used in simple compile tests
10754 lt_simple_compile_test_code="int some_variable = 0;"
10756 # Code to be used in simple link tests
10757 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10759 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10761 # If no C compiler was specified, use CC.
10764 # If no C compiler flags were specified, use CFLAGS.
10765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10767 # Allow CC to be a program name with arguments.
10771 # save warnings/boilerplate of simple test code
10772 ac_outfile=conftest.$ac_objext
10773 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10774 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10775 _lt_compiler_boilerplate=`cat conftest.err`
10778 ac_outfile=conftest.$ac_objext
10779 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10780 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10781 _lt_linker_boilerplate=`cat conftest.err`
10785 # Allow CC to be a program name with arguments.
10790 lt_save_with_gnu_ld=$with_gnu_ld
10791 lt_save_path_LD=$lt_cv_path_LD
10792 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10793 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10795 $as_unset lt_cv_prog_gnu_ld
10797 if test -n "${lt_cv_path_LDCXX+set}"; then
10798 lt_cv_path_LD=$lt_cv_path_LDCXX
10800 $as_unset lt_cv_path_LD
10802 test -z "${LDCXX+set}" || LD=$LDCXX
10806 for cc_temp in $compiler""; do
10808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10814 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10817 # We don't want -fno-exception wen compiling C++ code, so set the
10818 # no_builtin_flag separately
10819 if test "$GXX" = yes; then
10820 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10822 lt_prog_compiler_no_builtin_flag_CXX=
10825 if test "$GXX" = yes; then
10826 # Set up default GNU C++ configuration
10829 # Check whether --with-gnu-ld was given.
10830 if test "${with_gnu_ld+set}" = set; then :
10831 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10837 if test "$GCC" = yes; then
10838 # Check if gcc -print-prog-name=ld gives a path.
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10840 $as_echo_n "checking for ld used by $CC... " >&6; }
10843 # gcc leaves a trailing carriage return which upsets mingw
10844 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10846 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10849 # Accept absolute paths.
10851 re_direlt='/[^/][^/]*/\.\./'
10852 # Canonicalize the pathname of ld
10853 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10854 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10855 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10857 test -z "$LD" && LD="$ac_prog"
10860 # If it fails, then pretend we aren't using GCC.
10864 # If it is relative, then search for the first ld in PATH.
10865 with_gnu_ld=unknown
10868 elif test "$with_gnu_ld" = yes; then
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10870 $as_echo_n "checking for GNU ld... " >&6; }
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10873 $as_echo_n "checking for non-GNU ld... " >&6; }
10875 if ${lt_cv_path_LD+:} false; then :
10876 $as_echo_n "(cached) " >&6
10878 if test -z "$LD"; then
10879 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10880 for ac_dir in $PATH; do
10882 test -z "$ac_dir" && ac_dir=.
10883 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10884 lt_cv_path_LD="$ac_dir/$ac_prog"
10885 # Check to see if the program is GNU ld. I'd rather use --version,
10886 # but apparently some variants of GNU ld only accept -v.
10887 # Break only if it was the GNU/non-GNU ld that we prefer.
10888 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10889 *GNU* | *'with BFD'*)
10890 test "$with_gnu_ld" != no && break
10893 test "$with_gnu_ld" != yes && break
10900 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10904 LD="$lt_cv_path_LD"
10905 if test -n "$LD"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10907 $as_echo "$LD" >&6; }
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10912 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10914 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10915 if ${lt_cv_prog_gnu_ld+:} false; then :
10916 $as_echo_n "(cached) " >&6
10918 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10919 case `$LD -v 2>&1 </dev/null` in
10920 *GNU* | *'with BFD'*)
10921 lt_cv_prog_gnu_ld=yes
10924 lt_cv_prog_gnu_ld=no
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10929 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10930 with_gnu_ld=$lt_cv_prog_gnu_ld
10934 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10935 # archiving commands below assume that GNU ld is being used.
10936 if test "$with_gnu_ld" = yes; then
10937 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10938 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'
10940 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10941 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10943 # If archive_cmds runs LD, not CC, wlarc should be empty
10944 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10945 # investigate it a little bit more. (MM)
10948 # ancient GNU ld didn't support --whole-archive et. al.
10949 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10950 grep 'no-whole-archive' > /dev/null; then
10951 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10953 whole_archive_flag_spec_CXX=
10959 # A generic and very simple default shared library creation
10960 # command for GNU C++ for the case where it uses the native
10961 # linker, instead of GNU ld. If possible, this setting should
10962 # overridden to take advantage of the native linker features on
10963 # the platform it is being used on.
10964 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10967 # Commands to make compiler produce verbose output that lists
10968 # what "hidden" libraries, object files and flags are used when
10969 # linking a shared library.
10970 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10978 # PORTME: fill in a description of your system's C++ link characteristics
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10980 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10984 # FIXME: insert proper C++ library support
10988 if test "$host_cpu" = ia64; then
10989 # On IA64, the linker does run time linking by default, so we don't
10990 # have to do anything special.
10991 aix_use_runtimelinking=no
10992 exp_sym_flag='-Bexport'
10995 aix_use_runtimelinking=no
10997 # Test if we are trying to use run time linking or normal
10998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10999 # need to do runtime linking.
11000 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11001 for ld_flag in $LDFLAGS; do
11004 aix_use_runtimelinking=yes
11012 exp_sym_flag='-bexport'
11013 no_entry_flag='-bnoentry'
11016 # When large executables or shared objects are built, AIX ld can
11017 # have problems creating the table of contents. If linking a library
11018 # or program results in "error TOC overflow" add -mminimal-toc to
11019 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11020 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11022 archive_cmds_CXX=''
11023 hardcode_direct_CXX=yes
11024 hardcode_libdir_separator_CXX=':'
11025 link_all_deplibs_CXX=yes
11027 if test "$GXX" = yes; then
11028 case $host_os in aix4.[012]|aix4.[012].*)
11029 # We only want to do this on AIX 4.2 and lower, the check
11030 # below for broken collect2 doesn't work under 4.3+
11031 collect2name=`${CC} -print-prog-name=collect2`
11032 if test -f "$collect2name" && \
11033 strings "$collect2name" | grep resolve_lib_name >/dev/null
11035 # We have reworked collect2
11038 # We have old collect2
11039 hardcode_direct_CXX=unsupported
11040 # It fails to find uninstalled libraries when the uninstalled
11041 # path is not listed in the libpath. Setting hardcode_minus_L
11042 # to unsupported forces relinking
11043 hardcode_minus_L_CXX=yes
11044 hardcode_libdir_flag_spec_CXX='-L$libdir'
11045 hardcode_libdir_separator_CXX=
11049 shared_flag='-shared'
11050 if test "$aix_use_runtimelinking" = yes; then
11051 shared_flag="$shared_flag "'${wl}-G'
11055 if test "$host_cpu" = ia64; then
11056 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11057 # chokes on -Wl,-G. The following line is correct:
11060 if test "$aix_use_runtimelinking" = yes; then
11061 shared_flag='${wl}-G'
11063 shared_flag='${wl}-bM:SRE'
11068 # It seems that -bexpall does not export symbols beginning with
11069 # underscore (_), so it is better to generate a list of symbols to export.
11070 always_export_symbols_CXX=yes
11071 if test "$aix_use_runtimelinking" = yes; then
11072 # Warning - without using the other runtime loading flags (-brtl),
11073 # -berok will link without error, but may produce a broken library.
11074 allow_undefined_flag_CXX='-berok'
11075 # Determine the default libpath from the value encoded in an empty executable.
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11087 if ac_fn_cxx_try_link "$LINENO"; then :
11089 lt_aix_libpath_sed='
11090 /Import File Strings/,/^$/ {
11096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11097 # Check for a 64-bit object if we didn't find anything.
11098 if test -z "$aix_libpath"; then
11099 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11102 rm -f core conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11106 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11108 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"
11110 if test "$host_cpu" = ia64; then
11111 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11112 allow_undefined_flag_CXX="-z nodefs"
11113 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"
11115 # Determine the default libpath from the value encoded in an empty executable.
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11127 if ac_fn_cxx_try_link "$LINENO"; then :
11129 lt_aix_libpath_sed='
11130 /Import File Strings/,/^$/ {
11136 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11137 # Check for a 64-bit object if we didn't find anything.
11138 if test -z "$aix_libpath"; then
11139 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11142 rm -f core conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext conftest.$ac_ext
11144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11146 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11147 # Warning - without using the other run time loading flags,
11148 # -berok will link without error, but may produce a broken library.
11149 no_undefined_flag_CXX=' ${wl}-bernotok'
11150 allow_undefined_flag_CXX=' ${wl}-berok'
11151 # Exported symbols can be pulled into shared objects from archives
11152 whole_archive_flag_spec_CXX='$convenience'
11153 archive_cmds_need_lc_CXX=yes
11154 # This is similar to how AIX traditionally builds its shared libraries.
11155 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'
11161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11162 allow_undefined_flag_CXX=unsupported
11163 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11164 # support --undefined. This deserves some investigation. FIXME
11165 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11172 case $cc_basename in
11174 # FIXME: insert proper C++ library support
11180 cygwin* | mingw* | pw32*)
11181 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11182 # as there is no search path for DLLs.
11183 hardcode_libdir_flag_spec_CXX='-L$libdir'
11184 allow_undefined_flag_CXX=unsupported
11185 always_export_symbols_CXX=no
11186 enable_shared_with_static_runtimes_CXX=yes
11188 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11189 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'
11190 # If the export-symbols file already is a .def file (1st line
11191 # is EXPORTS), use it as is; otherwise, prepend...
11192 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11193 cp $export_symbols $output_objdir/$soname.def;
11195 echo EXPORTS > $output_objdir/$soname.def;
11196 cat $export_symbols >> $output_objdir/$soname.def;
11198 $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'
11203 darwin* | rhapsody*)
11204 archive_cmds_need_lc_CXX=no
11205 hardcode_direct_CXX=no
11206 hardcode_automatic_CXX=yes
11207 hardcode_shlibpath_var_CXX=unsupported
11208 whole_archive_flag_spec_CXX=''
11209 link_all_deplibs_CXX=yes
11210 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11211 if test "$GXX" = yes ; then
11212 output_verbose_link_cmd='echo'
11213 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11214 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11215 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11216 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11217 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11218 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${_lt_dsymutil}"
11219 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11222 case $cc_basename in
11224 output_verbose_link_cmd='echo'
11225 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11226 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11227 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11228 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11229 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}'
11239 case $cc_basename in
11241 # FIXME: insert proper C++ library support
11245 # Green Hills C++ Compiler
11246 # FIXME: insert proper C++ library support
11250 # FIXME: insert proper C++ library support
11256 # C++ shared libraries reported to be fairly broken before switch to ELF
11260 archive_cmds_need_lc_CXX=no
11262 freebsd* | dragonfly*)
11263 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11270 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11271 hardcode_libdir_separator_CXX=:
11272 export_dynamic_flag_spec_CXX='${wl}-E'
11273 hardcode_direct_CXX=yes
11274 hardcode_minus_L_CXX=yes # Not in the search PATH,
11275 # but as the default
11276 # location of the library.
11278 case $cc_basename in
11280 # FIXME: insert proper C++ library support
11284 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'
11285 # Commands to make compiler produce verbose output that lists
11286 # what "hidden" libraries, object files and flags are used when
11287 # linking a shared library.
11289 # There doesn't appear to be a way to prevent this compiler from
11290 # explicitly linking system object files so we need to strip them
11291 # from the output so that they don't get included in the library
11293 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'
11296 if test "$GXX" = yes; then
11297 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'
11299 # FIXME: insert proper C++ library support
11306 if test $with_gnu_ld = no; then
11307 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11308 hardcode_libdir_separator_CXX=:
11313 export_dynamic_flag_spec_CXX='${wl}-E'
11319 hardcode_direct_CXX=no
11320 hardcode_shlibpath_var_CXX=no
11323 hardcode_direct_CXX=yes
11324 hardcode_minus_L_CXX=yes # Not in the search PATH,
11325 # but as the default
11326 # location of the library.
11330 case $cc_basename in
11332 # FIXME: insert proper C++ library support
11338 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11341 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11344 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11347 # Commands to make compiler produce verbose output that lists
11348 # what "hidden" libraries, object files and flags are used when
11349 # linking a shared library.
11351 # There doesn't appear to be a way to prevent this compiler from
11352 # explicitly linking system object files so we need to strip them
11353 # from the output so that they don't get included in the library
11355 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'
11358 if test "$GXX" = yes; then
11359 if test $with_gnu_ld = no; then
11362 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11365 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11368 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'
11373 # FIXME: insert proper C++ library support
11380 hardcode_direct_CXX=no
11381 hardcode_shlibpath_var_CXX=no
11382 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11383 export_dynamic_flag_spec_CXX='${wl}-E'
11384 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11385 # Instead, shared libraries are loaded at an image base (0x10000000 by
11386 # default) and relocated if they conflict, which is a slow very memory
11387 # consuming and fragmenting process. To avoid this, we pick a random,
11388 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11389 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11390 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'
11391 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'
11394 case $cc_basename in
11397 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'
11399 # Archives containing C++ object files must be created using
11400 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11401 # necessary to make sure instantiated templates are included
11403 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11406 if test "$GXX" = yes; then
11407 if test "$with_gnu_ld" = no; then
11408 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'
11410 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'
11413 link_all_deplibs_CXX=yes
11416 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11417 hardcode_libdir_separator_CXX=:
11419 linux* | k*bsd*-gnu)
11420 case $cc_basename in
11422 # Kuck and Associates, Inc. (KAI) C++ Compiler
11424 # KCC will only create a shared library if the output file
11425 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11426 # to its proper name (with version) after linking.
11427 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'
11428 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'
11429 # Commands to make compiler produce verbose output that lists
11430 # what "hidden" libraries, object files and flags are used when
11431 # linking a shared library.
11433 # There doesn't appear to be a way to prevent this compiler from
11434 # explicitly linking system object files so we need to strip them
11435 # from the output so that they don't get included in the library
11437 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'
11439 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11440 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11442 # Archives containing C++ object files must be created using
11443 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11444 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11449 # version 8.0 and above of icpc choke on multiply defined symbols
11450 # if we add $predep_objects and $postdep_objects, however 7.1 and
11451 # earlier do not add the objects themselves.
11452 case `$CC -V 2>&1` in
11454 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11455 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'
11457 *) # Version 8.0 or newer
11460 ia64*) tmp_idyn=' -i_dynamic';;
11462 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11463 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'
11466 archive_cmds_need_lc_CXX=no
11467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11469 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11472 # Portland Group C++ compiler
11473 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11474 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'
11476 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11477 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11478 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'
11482 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11483 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'
11485 runpath_var=LD_RUN_PATH
11486 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11487 hardcode_libdir_separator_CXX=:
11489 # Commands to make compiler produce verbose output that lists
11490 # what "hidden" libraries, object files and flags are used when
11491 # linking a shared library.
11493 # There doesn't appear to be a way to prevent this compiler from
11494 # explicitly linking system object files so we need to strip them
11495 # from the output so that they don't get included in the library
11497 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'
11500 case `$CC -V 2>&1 | sed 5q` in
11503 no_undefined_flag_CXX=' -zdefs'
11504 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11505 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11506 hardcode_libdir_flag_spec_CXX='-R$libdir'
11507 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11509 # Not sure whether something based on
11510 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11512 output_verbose_link_cmd='echo'
11514 # Archives containing C++ object files must be created using
11515 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11516 # necessary to make sure instantiated templates are included
11518 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11525 # FIXME: insert proper C++ library support
11529 # FIXME: insert proper C++ library support
11533 case $cc_basename in
11535 # FIXME: insert proper C++ library support
11539 # FIXME: insert proper C++ library support
11544 netbsd* | netbsdelf*-gnu)
11545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11546 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11548 hardcode_libdir_flag_spec_CXX='-R$libdir'
11549 hardcode_direct_CXX=yes
11550 hardcode_shlibpath_var_CXX=no
11552 # Workaround some broken pre-1.5 toolchains
11553 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11556 # C++ shared libraries are fairly broken
11560 if test -f /usr/libexec/ld.so; then
11561 hardcode_direct_CXX=yes
11562 hardcode_shlibpath_var_CXX=no
11563 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11566 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11567 export_dynamic_flag_spec_CXX='${wl}-E'
11568 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11570 output_verbose_link_cmd='echo'
11576 case $cc_basename in
11578 # Kuck and Associates, Inc. (KAI) C++ Compiler
11580 # KCC will only create a shared library if the output file
11581 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11582 # to its proper name (with version) after linking.
11583 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'
11585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11586 hardcode_libdir_separator_CXX=:
11588 # Archives containing C++ object files must be created using
11589 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11590 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11594 # Rational C++ 2.4.1
11595 # FIXME: insert proper C++ library support
11599 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11600 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'
11602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11603 hardcode_libdir_separator_CXX=:
11605 # Commands to make compiler produce verbose output that lists
11606 # what "hidden" libraries, object files and flags are used when
11607 # linking a shared library.
11609 # There doesn't appear to be a way to prevent this compiler from
11610 # explicitly linking system object files so we need to strip them
11611 # from the output so that they don't get included in the library
11613 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'
11616 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11617 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11618 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'
11620 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11621 hardcode_libdir_separator_CXX=:
11623 # Commands to make compiler produce verbose output that lists
11624 # what "hidden" libraries, object files and flags are used when
11625 # linking a shared library.
11626 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11629 # FIXME: insert proper C++ library support
11636 case $cc_basename in
11638 # Kuck and Associates, Inc. (KAI) C++ Compiler
11640 # KCC will only create a shared library if the output file
11641 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11642 # to its proper name (with version) after linking.
11643 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'
11645 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11646 hardcode_libdir_separator_CXX=:
11648 # Archives containing C++ object files must be created using
11649 # the KAI C++ compiler.
11650 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11653 # Rational C++ 2.4.1
11654 # FIXME: insert proper C++ library support
11658 allow_undefined_flag_CXX=' -expect_unresolved \*'
11659 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'
11660 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11661 echo "-hidden">> $lib.exp~
11662 $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~
11665 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11666 hardcode_libdir_separator_CXX=:
11668 # Commands to make compiler produce verbose output that lists
11669 # what "hidden" libraries, object files and flags are used when
11670 # linking a shared library.
11672 # There doesn't appear to be a way to prevent this compiler from
11673 # explicitly linking system object files so we need to strip them
11674 # from the output so that they don't get included in the library
11676 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'
11679 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11680 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11681 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'
11683 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11684 hardcode_libdir_separator_CXX=:
11686 # Commands to make compiler produce verbose output that lists
11687 # what "hidden" libraries, object files and flags are used when
11688 # linking a shared library.
11689 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11692 # FIXME: insert proper C++ library support
11699 # FIXME: insert proper C++ library support
11703 case $cc_basename in
11706 # FIXME: insert proper C++ library support
11711 # FIXME: insert proper C++ library support
11715 # FIXME: insert proper C++ library support
11721 case $cc_basename in
11723 # Sun C++ 4.2, 5.x and Centerline C++
11724 archive_cmds_need_lc_CXX=yes
11725 no_undefined_flag_CXX=' -zdefs'
11726 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11727 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11728 $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'
11730 hardcode_libdir_flag_spec_CXX='-R$libdir'
11731 hardcode_shlibpath_var_CXX=no
11733 solaris2.[0-5] | solaris2.[0-5].*) ;;
11735 # The compiler driver will combine and reorder linker options,
11736 # but understands `-z linker_flag'.
11737 # Supported since Solaris 2.6 (maybe 2.5.1?)
11738 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11741 link_all_deplibs_CXX=yes
11743 output_verbose_link_cmd='echo'
11745 # Archives containing C++ object files must be created using
11746 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11747 # necessary to make sure instantiated templates are included
11749 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11752 # Green Hills C++ Compiler
11753 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11755 # The C++ compiler must be used to create the archive.
11756 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11759 # GNU C++ compiler with Solaris linker
11760 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11761 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11762 if $CC --version | grep -v '^2\.7' > /dev/null; then
11763 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11764 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11765 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11767 # Commands to make compiler produce verbose output that lists
11768 # what "hidden" libraries, object files and flags are used when
11769 # linking a shared library.
11770 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11772 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11774 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11775 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11776 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11778 # Commands to make compiler produce verbose output that lists
11779 # what "hidden" libraries, object files and flags are used when
11780 # linking a shared library.
11781 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11784 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11786 solaris2.[0-5] | solaris2.[0-5].*) ;;
11788 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11795 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11796 no_undefined_flag_CXX='${wl}-z,text'
11797 archive_cmds_need_lc_CXX=no
11798 hardcode_shlibpath_var_CXX=no
11799 runpath_var='LD_RUN_PATH'
11801 case $cc_basename in
11803 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11807 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11808 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11812 sysv5* | sco3.2v5* | sco5v6*)
11813 # Note: We can NOT use -z defs as we might desire, because we do not
11814 # link with -lc, and that would cause any symbols used from libc to
11815 # always be unresolved, which means just about no library would
11816 # ever link correctly. If we're not using GNU ld we use -z text
11817 # though, which does catch some bad symbols but isn't as heavy-handed
11819 # For security reasons, it is highly recommended that you always
11820 # use absolute paths for naming shared libraries, and exclude the
11821 # DT_RUNPATH tag from executables and libraries. But doing so
11822 # requires that you compile everything twice, which is a pain.
11823 # So that behaviour is only enabled if SCOABSPATH is set to a
11824 # non-empty value in the environment. Most likely only useful for
11825 # creating official distributions of packages.
11826 # This is a hack until libtool officially supports absolute path
11827 # names for shared libraries.
11828 no_undefined_flag_CXX='${wl}-z,text'
11829 allow_undefined_flag_CXX='${wl}-z,nodefs'
11830 archive_cmds_need_lc_CXX=no
11831 hardcode_shlibpath_var_CXX=no
11832 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11833 hardcode_libdir_separator_CXX=':'
11834 link_all_deplibs_CXX=yes
11835 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11836 runpath_var='LD_RUN_PATH'
11838 case $cc_basename in
11840 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11841 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11844 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11845 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11850 case $cc_basename in
11852 # NonStop-UX NCC 3.20
11853 # FIXME: insert proper C++ library support
11857 # FIXME: insert proper C++ library support
11863 # FIXME: insert proper C++ library support
11867 # FIXME: insert proper C++ library support
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11872 $as_echo "$ld_shlibs_CXX" >&6; }
11873 test "$ld_shlibs_CXX" = no && can_build_shared=no
11878 cat > conftest.$ac_ext <<EOF
11882 Foo (void) { a = 0; }
11888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11889 (eval $ac_compile) 2>&5
11891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11892 test $ac_status = 0; }; then
11893 # Parse the compiler output and extract the necessary
11894 # objects, libraries and library flags.
11896 # Sentinel used to keep track of whether or not we are before
11897 # the conftest object file.
11898 pre_test_object_deps_done=no
11900 # The `*' in the case matches for architectures that use `case' in
11901 # $output_verbose_cmd can trigger glob expansion during the loop
11902 # eval without this substitution.
11903 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11905 for p in `eval $output_verbose_link_cmd`; do
11909 # Some compilers place space between "-{L,R}" and the path.
11910 # Remove the space.
11911 if test $p = "-L" \
11912 || test $p = "-R"; then
11919 if test "$pre_test_object_deps_done" = no; then
11922 # Internal compiler library paths should come after those
11923 # provided the user. The postdeps already come after the
11924 # user supplied libs so there is no need to process them.
11925 if test -z "$compiler_lib_search_path_CXX"; then
11926 compiler_lib_search_path_CXX="${prev}${p}"
11928 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11931 # The "-l" case would never come before the object being
11932 # linked, so don't bother handling this case.
11935 if test -z "$postdeps_CXX"; then
11936 postdeps_CXX="${prev}${p}"
11938 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11944 # This assumes that the test object file only shows up
11945 # once in the compiler output.
11946 if test "$p" = "conftest.$objext"; then
11947 pre_test_object_deps_done=yes
11951 if test "$pre_test_object_deps_done" = no; then
11952 if test -z "$predep_objects_CXX"; then
11953 predep_objects_CXX="$p"
11955 predep_objects_CXX="$predep_objects_CXX $p"
11958 if test -z "$postdep_objects_CXX"; then
11959 postdep_objects_CXX="$p"
11961 postdep_objects_CXX="$postdep_objects_CXX $p"
11966 *) ;; # Ignore the rest.
11974 echo "libtool.m4: error: problem compiling CXX test program"
11977 $rm -f confest.$objext
11979 compiler_lib_search_dirs_CXX=
11980 if test -n "$compiler_lib_search_path_CXX"; then
11981 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11984 # PORTME: override above test on systems where it is broken
11987 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11988 # hack all around it, let's just trust "g++" to DTRT.
11989 predep_objects_CXX=
11990 postdep_objects_CXX=
11995 case `$CC -V 2>&1 | sed 5q` in
11999 # The more standards-conforming stlport4 library is
12000 # incompatible with the Cstd library. Avoid specifying
12001 # it if it's in CXXFLAGS. Ignore libCrun as
12002 # -library=stlport4 depends on it.
12003 case " $CXX $CXXFLAGS " in
12004 *" -library=stlport4 "*)
12005 solaris_use_stlport4=yes
12008 if test "$solaris_use_stlport4" != yes; then
12009 postdeps_CXX='-library=Cstd -library=Crun'
12016 case $cc_basename in
12018 # The more standards-conforming stlport4 library is
12019 # incompatible with the Cstd library. Avoid specifying
12020 # it if it's in CXXFLAGS. Ignore libCrun as
12021 # -library=stlport4 depends on it.
12022 case " $CXX $CXXFLAGS " in
12023 *" -library=stlport4 "*)
12024 solaris_use_stlport4=yes
12028 # Adding this requires a known-good setup of shared libraries for
12029 # Sun compiler versions before 5.6, else PIC objects from an old
12030 # archive will be linked into the output, leading to subtle bugs.
12031 if test "$solaris_use_stlport4" != yes; then
12032 postdeps_CXX='-library=Cstd -library=Crun'
12039 case " $postdeps_CXX " in
12040 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12043 lt_prog_compiler_wl_CXX=
12044 lt_prog_compiler_pic_CXX=
12045 lt_prog_compiler_static_CXX=
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12048 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12050 # C++ specific cases for pic, static, wl, etc.
12051 if test "$GXX" = yes; then
12052 lt_prog_compiler_wl_CXX='-Wl,'
12053 lt_prog_compiler_static_CXX='-static'
12057 # All AIX code is PIC.
12058 if test "$host_cpu" = ia64; then
12059 # AIX 5 now supports IA64 processor
12060 lt_prog_compiler_static_CXX='-Bstatic'
12064 # FIXME: we need at least 68020 code to build shared libraries, but
12065 # adding the `-m68020' flag to GCC prevents building anything better,
12067 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12069 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12070 # PIC is the default for these OSes.
12072 mingw* | cygwin* | os2* | pw32*)
12073 # This hack is so that the source file can tell whether it is being
12074 # built for inclusion in a dll (and should export symbols for example).
12075 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12076 # (--disable-auto-import) libraries
12077 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12079 darwin* | rhapsody*)
12080 # PIC is the default on this platform
12081 # Common symbols not allowed in MH_DYLIB files
12082 lt_prog_compiler_pic_CXX='-fno-common'
12085 # DJGPP does not support shared libraries at all
12086 lt_prog_compiler_pic_CXX=
12089 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12090 # Instead, we relocate shared libraries at runtime.
12093 if test -d /usr/nec; then
12094 lt_prog_compiler_pic_CXX=-Kconform_pic
12098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12099 # not for PA HP-UX.
12104 lt_prog_compiler_pic_CXX='-fPIC'
12109 lt_prog_compiler_pic_CXX='-fPIC'
12115 # All AIX code is PIC.
12116 if test "$host_cpu" = ia64; then
12117 # AIX 5 now supports IA64 processor
12118 lt_prog_compiler_static_CXX='-Bstatic'
12120 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12124 case $cc_basename in
12126 # Green Hills C++ Compiler
12127 # _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"
12132 # PIC is the default on this platform
12133 # Common symbols not allowed in MH_DYLIB files
12134 case $cc_basename in
12136 lt_prog_compiler_pic_CXX='-qnocommon'
12137 lt_prog_compiler_wl_CXX='-Wl,'
12142 case $cc_basename in
12144 lt_prog_compiler_pic_CXX='-KPIC'
12147 # Green Hills C++ Compiler
12148 lt_prog_compiler_pic_CXX='-pic'
12154 freebsd* | dragonfly*)
12155 # FreeBSD uses GNU C++
12157 hpux9* | hpux10* | hpux11*)
12158 case $cc_basename in
12160 lt_prog_compiler_wl_CXX='-Wl,'
12161 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12162 if test "$host_cpu" != ia64; then
12163 lt_prog_compiler_pic_CXX='+Z'
12167 lt_prog_compiler_wl_CXX='-Wl,'
12168 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12174 lt_prog_compiler_pic_CXX='+Z'
12183 # This is c89, which is MS Visual C++ (no shared libs)
12184 # Anyone wants to do a port?
12186 irix5* | irix6* | nonstopux*)
12187 case $cc_basename in
12189 lt_prog_compiler_wl_CXX='-Wl,'
12190 lt_prog_compiler_static_CXX='-non_shared'
12191 # CC pic flag -KPIC is the default.
12197 linux* | k*bsd*-gnu)
12198 case $cc_basename in
12201 lt_prog_compiler_wl_CXX='--backend -Wl,'
12202 lt_prog_compiler_pic_CXX='-fPIC'
12206 lt_prog_compiler_wl_CXX='-Wl,'
12207 lt_prog_compiler_pic_CXX='-KPIC'
12208 lt_prog_compiler_static_CXX='-static'
12211 # Portland Group C++ compiler.
12212 lt_prog_compiler_wl_CXX='-Wl,'
12213 lt_prog_compiler_pic_CXX='-fpic'
12214 lt_prog_compiler_static_CXX='-Bstatic'
12218 # Make sure the PIC flag is empty. It appears that all Alpha
12219 # Linux and Compaq Tru64 Unix objects are PIC.
12220 lt_prog_compiler_pic_CXX=
12221 lt_prog_compiler_static_CXX='-non_shared'
12224 case `$CC -V 2>&1 | sed 5q` in
12227 lt_prog_compiler_pic_CXX='-KPIC'
12228 lt_prog_compiler_static_CXX='-Bstatic'
12229 lt_prog_compiler_wl_CXX='-Qoption ld '
12240 case $cc_basename in
12242 lt_prog_compiler_pic_CXX='-W c,exportall'
12248 netbsd* | netbsdelf*-gnu)
12250 osf3* | osf4* | osf5*)
12251 case $cc_basename in
12253 lt_prog_compiler_wl_CXX='--backend -Wl,'
12256 # Rational C++ 2.4.1
12257 lt_prog_compiler_pic_CXX='-pic'
12260 # Digital/Compaq C++
12261 lt_prog_compiler_wl_CXX='-Wl,'
12262 # Make sure the PIC flag is empty. It appears that all Alpha
12263 # Linux and Compaq Tru64 Unix objects are PIC.
12264 lt_prog_compiler_pic_CXX=
12265 lt_prog_compiler_static_CXX='-non_shared'
12274 case $cc_basename in
12276 # Sun C++ 4.2, 5.x and Centerline C++
12277 lt_prog_compiler_pic_CXX='-KPIC'
12278 lt_prog_compiler_static_CXX='-Bstatic'
12279 lt_prog_compiler_wl_CXX='-Qoption ld '
12282 # Green Hills C++ Compiler
12283 lt_prog_compiler_pic_CXX='-PIC'
12290 case $cc_basename in
12293 lt_prog_compiler_pic_CXX='-pic'
12294 lt_prog_compiler_static_CXX='-Bstatic'
12298 lt_prog_compiler_pic_CXX='-pic'
12305 case $cc_basename in
12307 # NonStop-UX NCC 3.20
12308 lt_prog_compiler_pic_CXX='-KPIC'
12314 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12315 case $cc_basename in
12317 lt_prog_compiler_wl_CXX='-Wl,'
12318 lt_prog_compiler_pic_CXX='-KPIC'
12319 lt_prog_compiler_static_CXX='-Bstatic'
12326 lt_prog_compiler_can_build_shared_CXX=no
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12332 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12335 # Check to make sure the PIC flag actually works.
12337 if test -n "$lt_prog_compiler_pic_CXX"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12340 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12341 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12342 $as_echo_n "(cached) " >&6
12344 lt_cv_prog_compiler_pic_works_CXX=no
12345 ac_outfile=conftest.$ac_objext
12346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12347 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12348 # Insert the option either (1) after the last *FLAGS variable, or
12349 # (2) before a word containing "conftest.", or (3) at the end.
12350 # Note that $ac_compile itself does not contain backslashes and begins
12351 # with a dollar sign (not a hyphen), so the echo should work correctly.
12352 # The option is referenced via a variable to avoid confusing sed.
12353 lt_compile=`echo "$ac_compile" | $SED \
12354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12356 -e 's:$: $lt_compiler_flag:'`
12357 (eval echo "\"\$as_me:12357: $lt_compile\"" >&5)
12358 (eval "$lt_compile" 2>conftest.err)
12360 cat conftest.err >&5
12361 echo "$as_me:12361: \$? = $ac_status" >&5
12362 if (exit $ac_status) && test -s "$ac_outfile"; then
12363 # The compiler can only warn and ignore the option if not recognized
12364 # So say no if there are warnings other than the usual output.
12365 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12368 lt_cv_prog_compiler_pic_works_CXX=yes
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12375 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12377 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12378 case $lt_prog_compiler_pic_CXX in
12380 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12383 lt_prog_compiler_pic_CXX=
12384 lt_prog_compiler_can_build_shared_CXX=no
12389 # For platforms which do not support PIC, -DPIC is meaningless:
12391 lt_prog_compiler_pic_CXX=
12394 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12399 # Check to make sure the static flag actually works.
12401 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12403 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12404 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12405 $as_echo_n "(cached) " >&6
12407 lt_cv_prog_compiler_static_works_CXX=no
12408 save_LDFLAGS="$LDFLAGS"
12409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12410 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12412 # The linker can only warn and ignore the option if not recognized
12413 # So say no if there are warnings
12414 if test -s conftest.err; then
12415 # Append any errors to the config.log.
12416 cat conftest.err 1>&5
12417 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12419 if diff conftest.exp conftest.er2 >/dev/null; then
12420 lt_cv_prog_compiler_static_works_CXX=yes
12423 lt_cv_prog_compiler_static_works_CXX=yes
12427 LDFLAGS="$save_LDFLAGS"
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12431 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12433 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12436 lt_prog_compiler_static_CXX=
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12441 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12442 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12443 $as_echo_n "(cached) " >&6
12445 lt_cv_prog_compiler_c_o_CXX=no
12446 $rm -r conftest 2>/dev/null
12450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12452 lt_compiler_flag="-o out/conftest2.$ac_objext"
12453 # Insert the option either (1) after the last *FLAGS variable, or
12454 # (2) before a word containing "conftest.", or (3) at the end.
12455 # Note that $ac_compile itself does not contain backslashes and begins
12456 # with a dollar sign (not a hyphen), so the echo should work correctly.
12457 lt_compile=`echo "$ac_compile" | $SED \
12458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12460 -e 's:$: $lt_compiler_flag:'`
12461 (eval echo "\"\$as_me:12461: $lt_compile\"" >&5)
12462 (eval "$lt_compile" 2>out/conftest.err)
12464 cat out/conftest.err >&5
12465 echo "$as_me:12465: \$? = $ac_status" >&5
12466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12468 # The compiler can only warn and ignore the option if not recognized
12469 # So say no if there are warnings
12470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12473 lt_cv_prog_compiler_c_o_CXX=yes
12478 # SGI C++ compiler will create directory out/ii_files/ for
12479 # template instantiation
12480 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12481 $rm out/* && rmdir out
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12488 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12491 hard_links="nottested"
12492 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12493 # do not overwrite the value of need_locks provided by the user
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12495 $as_echo_n "checking if we can lock with hard links... " >&6; }
12498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12500 ln conftest.a conftest.b 2>&5 || hard_links=no
12501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12503 $as_echo "$hard_links" >&6; }
12504 if test "$hard_links" = no; then
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12506 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12514 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12516 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12519 # If we're using GNU nm, then we don't want the "-C" option.
12520 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12521 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12522 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'
12524 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'
12528 export_symbols_cmds_CXX="$ltdll_cmds"
12531 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'
12533 linux* | k*bsd*-gnu)
12534 link_all_deplibs_CXX=no
12537 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12540 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12543 $as_echo "$ld_shlibs_CXX" >&6; }
12544 test "$ld_shlibs_CXX" = no && can_build_shared=no
12547 # Do we need to explicitly link libc?
12549 case "x$archive_cmds_need_lc_CXX" in
12551 # Assume -lc should be added
12552 archive_cmds_need_lc_CXX=yes
12554 if test "$enable_shared" = yes && test "$GCC" = yes; then
12555 case $archive_cmds_CXX in
12557 # FIXME: we may have to deal with multi-command sequences.
12560 # Test whether the compiler implicitly links with -lc since on some
12561 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12562 # to ld, don't add -lc before -lgcc.
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12564 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12569 (eval $ac_compile) 2>&5
12571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12572 test $ac_status = 0; } 2>conftest.err; then
12575 libobjs=conftest.$ac_objext
12577 wl=$lt_prog_compiler_wl_CXX
12578 pic_flag=$lt_prog_compiler_pic_CXX
12584 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12585 allow_undefined_flag_CXX=
12586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12587 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590 test $ac_status = 0; }
12592 archive_cmds_need_lc_CXX=no
12594 archive_cmds_need_lc_CXX=yes
12596 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12598 cat conftest.err 1>&5
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12602 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12610 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12611 library_names_spec=
12612 libname_spec='lib$name'
12616 postuninstall_cmds=
12620 shlibpath_overrides_runpath=unknown
12622 dynamic_linker="$host_os ld.so"
12623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12625 need_lib_prefix=unknown
12626 hardcode_into_libs=no
12628 # when you set need_version to no, make sure it does not cause -set_version
12629 # flags to be left without arguments
12630 need_version=unknown
12635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12636 shlibpath_var=LIBPATH
12638 # AIX 3 has no versioning support, so we append a major version to the name.
12639 soname_spec='${libname}${release}${shared_ext}$major'
12646 hardcode_into_libs=yes
12647 if test "$host_cpu" = ia64; then
12648 # AIX 5 supports IA64
12649 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12650 shlibpath_var=LD_LIBRARY_PATH
12652 # With GCC up to 2.95.x, collect2 would create an import file
12653 # for dependence libraries. The import file would start with
12654 # the line `#! .'. This would cause the generated library to
12655 # depend on `.', always an invalid library. This was fixed in
12656 # development snapshots of GCC prior to 3.0.
12658 aix4 | aix4.[01] | aix4.[01].*)
12659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12661 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12664 can_build_shared=no
12668 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12669 # soname into executable. Probably we can add versioning support to
12670 # collect2, so additional links can be useful in future.
12671 if test "$aix_use_runtimelinking" = yes; then
12672 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12673 # instead of lib<name>.a to let people know that these are not
12674 # typical AIX shared libraries.
12675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12677 # We preserve .a as extension for shared libraries through AIX4.2
12678 # and later when we are not doing run time linking.
12679 library_names_spec='${libname}${release}.a $libname.a'
12680 soname_spec='${libname}${release}${shared_ext}$major'
12682 shlibpath_var=LIBPATH
12687 library_names_spec='$libname.ixlibrary $libname.a'
12688 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12689 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'
12693 library_names_spec='${libname}${shared_ext}'
12694 dynamic_linker="$host_os ld.so"
12695 shlibpath_var=LIBRARY_PATH
12701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12702 soname_spec='${libname}${release}${shared_ext}$major'
12703 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12706 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12707 # the default ld.so.conf also contains /usr/contrib/lib and
12708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12709 # libtool to hard-code these into programs
12712 cygwin* | mingw* | pw32*)
12713 version_type=windows
12718 case $GCC,$host_os in
12719 yes,cygwin* | yes,mingw* | yes,pw32*)
12720 library_names_spec='$libname.dll.a'
12721 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12722 postinstall_cmds='base_file=`basename \${file}`~
12723 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12724 dldir=$destdir/`dirname \$dlpath`~
12725 test -d \$dldir || mkdir -p \$dldir~
12726 $install_prog $dir/$dlname \$dldir/$dlname~
12727 chmod a+x \$dldir/$dlname'
12728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12729 dlpath=$dir/\$dldll~
12731 shlibpath_overrides_runpath=yes
12735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12737 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12740 # MinGW DLLs use traditional 'lib' prefix
12741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12742 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12743 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12744 # It is most probably a Windows format PATH printed by
12745 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12746 # path with ; separators, and with drive letters. We can handle the
12747 # drive letters (cygwin fileutils understands them), so leave them,
12748 # especially as we might pass files found there to a mingw objdump,
12749 # which wouldn't understand a cygwinified path. Ahh.
12750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12756 # pw32 DLLs use 'pw' prefix rather than 'lib'
12757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12766 dynamic_linker='Win32 ld.exe'
12767 # FIXME: first we should search . and the directory the executable is in
12771 darwin* | rhapsody*)
12772 dynamic_linker="$host_os dyld"
12773 version_type=darwin
12776 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12777 soname_spec='${libname}${release}${major}$shared_ext'
12778 shlibpath_overrides_runpath=yes
12779 shlibpath_var=DYLD_LIBRARY_PATH
12780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12782 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12790 soname_spec='${libname}${release}${shared_ext}$major'
12791 shlibpath_var=LD_LIBRARY_PATH
12798 freebsd* | dragonfly*)
12799 # DragonFly does not have aout. When/if they implement a new
12800 # versioning mechanism, adjust this.
12801 if test -x /usr/bin/objformat; then
12802 objformat=`/usr/bin/objformat`
12805 freebsd[123]*) objformat=aout ;;
12806 *) objformat=elf ;;
12809 version_type=freebsd-$objformat
12810 case $version_type in
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12821 shlibpath_var=LD_LIBRARY_PATH
12824 shlibpath_overrides_runpath=yes
12826 freebsd3.[01]* | freebsdelf3.[01]*)
12827 shlibpath_overrides_runpath=yes
12828 hardcode_into_libs=yes
12830 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12831 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12832 shlibpath_overrides_runpath=no
12833 hardcode_into_libs=yes
12835 *) # from 4.6 on, and DragonFly
12836 shlibpath_overrides_runpath=yes
12837 hardcode_into_libs=yes
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12847 soname_spec='${libname}${release}${shared_ext}$major'
12848 shlibpath_var=LD_LIBRARY_PATH
12849 hardcode_into_libs=yes
12852 hpux9* | hpux10* | hpux11*)
12853 # Give a soname corresponding to the major version so that dld.sl refuses to
12854 # link against other versions.
12861 hardcode_into_libs=yes
12862 dynamic_linker="$host_os dld.so"
12863 shlibpath_var=LD_LIBRARY_PATH
12864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12866 soname_spec='${libname}${release}${shared_ext}$major'
12867 if test "X$HPUX_IA64_MODE" = X32; then
12868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12876 hardcode_into_libs=yes
12877 dynamic_linker="$host_os dld.sl"
12878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881 soname_spec='${libname}${release}${shared_ext}$major'
12882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12887 dynamic_linker="$host_os dld.sl"
12888 shlibpath_var=SHLIB_PATH
12889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891 soname_spec='${libname}${release}${shared_ext}$major'
12894 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12895 postinstall_cmds='chmod 555 $lib'
12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12903 soname_spec='${libname}${release}${shared_ext}$major'
12904 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12905 shlibpath_var=LD_LIBRARY_PATH
12906 shlibpath_overrides_runpath=no
12907 hardcode_into_libs=yes
12910 irix5* | irix6* | nonstopux*)
12912 nonstopux*) version_type=nonstopux ;;
12914 if test "$lt_cv_prog_gnu_ld" = yes; then
12922 soname_spec='${libname}${release}${shared_ext}$major'
12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12925 irix5* | nonstopux*)
12926 libsuff= shlibsuff=
12929 case $LD in # libtool.m4 will add one of these switches to LD
12930 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12931 libsuff= shlibsuff= libmagic=32-bit;;
12932 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12933 libsuff=32 shlibsuff=N32 libmagic=N32;;
12934 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12935 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12936 *) libsuff= shlibsuff= libmagic=never-match;;
12940 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12941 shlibpath_overrides_runpath=no
12942 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12943 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12944 hardcode_into_libs=yes
12947 # No shared lib support for Linux oldld, aout, or coff.
12948 linux*oldld* | linux*aout* | linux*coff*)
12952 # This must be Linux ELF.
12953 linux* | k*bsd*-gnu)
12957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12958 soname_spec='${libname}${release}${shared_ext}$major'
12959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12960 shlibpath_var=LD_LIBRARY_PATH
12961 shlibpath_overrides_runpath=no
12962 # This implies no fast_install, which is unacceptable.
12963 # Some rework will be needed to allow for fast_install
12964 # before this can be enabled.
12965 hardcode_into_libs=yes
12967 # Append ld.so.conf contents to the search path
12968 if test -f /etc/ld.so.conf; then
12969 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12970 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12973 # We used to test for /lib/ld.so.1 and disable shared libraries on
12974 # powerpc, because MkLinux only supported shared libraries with the
12975 # GNU dynamic linker. Since this was broken with cross compilers,
12976 # most powerpc-linux boxes support dynamic linking these days and
12977 # people can always --disable-shared, the test was removed, and we
12978 # assume the GNU/Linux dynamic linker is in use.
12979 dynamic_linker='GNU/Linux ld.so'
12986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12987 soname_spec='${libname}${release}${shared_ext}$major'
12988 shlibpath_var=LD_LIBRARY_PATH
12989 shlibpath_overrides_runpath=no
12990 hardcode_into_libs=yes
12991 dynamic_linker='NetBSD ld.elf_so'
12998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13001 dynamic_linker='NetBSD (a.out) ld.so'
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13004 soname_spec='${libname}${release}${shared_ext}$major'
13005 dynamic_linker='NetBSD ld.elf_so'
13007 shlibpath_var=LD_LIBRARY_PATH
13008 shlibpath_overrides_runpath=yes
13009 hardcode_into_libs=yes
13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015 shlibpath_var=LD_LIBRARY_PATH
13016 shlibpath_overrides_runpath=yes
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024 soname_spec='${libname}${release}${shared_ext}$major'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=yes
13031 sys_lib_dlsearch_path_spec="/usr/lib"
13033 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13035 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13036 *) need_version=no ;;
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13043 openbsd2.[89] | openbsd2.[89].*)
13044 shlibpath_overrides_runpath=no
13047 shlibpath_overrides_runpath=yes
13051 shlibpath_overrides_runpath=yes
13056 libname_spec='$name'
13059 library_names_spec='$libname${shared_ext} $libname.a'
13060 dynamic_linker='OS/2 ld.exe'
13061 shlibpath_var=LIBPATH
13064 osf3* | osf4* | osf5*)
13068 soname_spec='${libname}${release}${shared_ext}$major'
13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13070 shlibpath_var=LD_LIBRARY_PATH
13071 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13072 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 shlibpath_overrides_runpath=yes
13087 hardcode_into_libs=yes
13088 # ldd complains unless libraries are executable
13089 postinstall_cmds='chmod +x $lib'
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13095 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13096 shlibpath_var=LD_LIBRARY_PATH
13097 shlibpath_overrides_runpath=yes
13098 if test "$with_gnu_ld" = yes; then
13106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13107 soname_spec='${libname}${release}${shared_ext}$major'
13108 shlibpath_var=LD_LIBRARY_PATH
13109 case $host_vendor in
13111 shlibpath_overrides_runpath=no
13113 export_dynamic_flag_spec='${wl}-Blargedynsym'
13114 runpath_var=LD_RUN_PATH
13122 shlibpath_overrides_runpath=no
13123 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13129 if test -d /usr/nec ;then
13131 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13132 soname_spec='$libname${shared_ext}.$major'
13133 shlibpath_var=LD_LIBRARY_PATH
13137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13138 version_type=freebsd-elf
13141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13142 soname_spec='${libname}${release}${shared_ext}$major'
13143 shlibpath_var=LD_LIBRARY_PATH
13144 hardcode_into_libs=yes
13145 if test "$with_gnu_ld" = yes; then
13146 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13147 shlibpath_overrides_runpath=no
13149 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13150 shlibpath_overrides_runpath=yes
13153 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13157 sys_lib_dlsearch_path_spec='/usr/lib'
13162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13163 soname_spec='${libname}${release}${shared_ext}$major'
13164 shlibpath_var=LD_LIBRARY_PATH
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13172 $as_echo "$dynamic_linker" >&6; }
13173 test "$dynamic_linker" = no && can_build_shared=no
13175 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13176 $as_echo_n "(cached) " >&6
13178 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13181 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13182 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13183 $as_echo_n "(cached) " >&6
13185 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13188 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13191 if test "$GCC" = yes; then
13192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13196 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13197 hardcode_action_CXX=
13198 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13199 test -n "$runpath_var_CXX" || \
13200 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13202 # We can hardcode non-existant directories.
13203 if test "$hardcode_direct_CXX" != no &&
13204 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13205 # have to relink, otherwise we might link with an installed library
13206 # when we should be linking with a yet-to-be-installed one
13207 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13208 test "$hardcode_minus_L_CXX" != no; then
13209 # Linking always hardcodes the temporary library directory.
13210 hardcode_action_CXX=relink
13212 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13213 hardcode_action_CXX=immediate
13216 # We cannot hardcode anything, or else we can only hardcode existing
13218 hardcode_action_CXX=unsupported
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13221 $as_echo "$hardcode_action_CXX" >&6; }
13223 if test "$hardcode_action_CXX" = relink; then
13224 # Fast installation is not supported
13225 enable_fast_install=no
13226 elif test "$shlibpath_overrides_runpath" = yes ||
13227 test "$enable_shared" = no; then
13228 # Fast installation is not necessary
13229 enable_fast_install=needless
13233 # The else clause should only fire when bootstrapping the
13234 # libtool distribution, otherwise you forgot to ship ltmain.sh
13235 # with your package, and you will get complaints that there are
13236 # no rules to generate ltmain.sh.
13237 if test -f "$ltmain"; then
13238 # See if we are running on zsh, and set the options which allow our commands through
13239 # without removal of \ escapes.
13240 if test -n "${ZSH_VERSION+set}" ; then
13241 setopt NO_GLOB_SUBST
13243 # Now quote all the things that may contain metacharacters while being
13244 # careful not to overquote the AC_SUBSTed values. We take copies of the
13245 # variables and quote the copies for generation of the libtool script.
13246 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13248 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13249 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13250 deplibs_check_method reload_flag reload_cmds need_locks \
13251 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13252 lt_cv_sys_global_symbol_to_c_name_address \
13253 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13254 old_postinstall_cmds old_postuninstall_cmds \
13258 lt_prog_compiler_wl_CXX \
13259 lt_prog_compiler_pic_CXX \
13260 lt_prog_compiler_static_CXX \
13261 lt_prog_compiler_no_builtin_flag_CXX \
13262 export_dynamic_flag_spec_CXX \
13263 thread_safe_flag_spec_CXX \
13264 whole_archive_flag_spec_CXX \
13265 enable_shared_with_static_runtimes_CXX \
13266 old_archive_cmds_CXX \
13267 old_archive_from_new_cmds_CXX \
13268 predep_objects_CXX \
13269 postdep_objects_CXX \
13272 compiler_lib_search_path_CXX \
13273 compiler_lib_search_dirs_CXX \
13275 archive_expsym_cmds_CXX \
13276 postinstall_cmds_CXX \
13277 postuninstall_cmds_CXX \
13278 old_archive_from_expsyms_cmds_CXX \
13279 allow_undefined_flag_CXX \
13280 no_undefined_flag_CXX \
13281 export_symbols_cmds_CXX \
13282 hardcode_libdir_flag_spec_CXX \
13283 hardcode_libdir_flag_spec_ld_CXX \
13284 hardcode_libdir_separator_CXX \
13285 hardcode_automatic_CXX \
13287 module_expsym_cmds_CXX \
13288 lt_cv_prog_compiler_c_o_CXX \
13289 fix_srcfile_path_CXX \
13290 exclude_expsyms_CXX \
13291 include_expsyms_CXX; do
13294 old_archive_cmds_CXX | \
13295 old_archive_from_new_cmds_CXX | \
13296 archive_cmds_CXX | \
13297 archive_expsym_cmds_CXX | \
13298 module_cmds_CXX | \
13299 module_expsym_cmds_CXX | \
13300 old_archive_from_expsyms_cmds_CXX | \
13301 export_symbols_cmds_CXX | \
13302 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13303 postinstall_cmds | postuninstall_cmds | \
13304 old_postinstall_cmds | old_postuninstall_cmds | \
13305 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13306 # Double-quote double-evaled strings.
13307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13310 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13316 *'\$0 --fallback-echo"')
13317 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13323 cat <<__EOF__ >> "$cfgfile"
13324 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13326 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13328 # Shell to use when invoking shell scripts.
13331 # Whether or not to build shared libraries.
13332 build_libtool_libs=$enable_shared
13334 # Whether or not to build static libraries.
13335 build_old_libs=$enable_static
13337 # Whether or not to add -lc for building shared libraries.
13338 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13340 # Whether or not to disallow shared libs when runtime libs are static
13341 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13343 # Whether or not to optimize for fast installation.
13344 fast_install=$enable_fast_install
13347 host_alias=$host_alias
13351 # The build system.
13352 build_alias=$build_alias
13356 # An echo program that does not interpret backslashes.
13361 AR_FLAGS=$lt_AR_FLAGS
13366 # LTCC compiler flags.
13367 LTCFLAGS=$lt_LTCFLAGS
13369 # A language-specific compiler.
13370 CC=$lt_compiler_CXX
13372 # Is the compiler the GNU C compiler?
13378 # The linker used to build libraries.
13381 # Whether we need hard or soft links.
13384 # A BSD-compatible nm program.
13387 # A symbol stripping program
13390 # Used to examine libraries when file_magic_cmd begins "file"
13391 MAGIC_CMD=$MAGIC_CMD
13393 # Used on cygwin: DLL creation program.
13396 # Used on cygwin: object dumper.
13399 # Used on cygwin: assembler.
13402 # The name of the directory that contains temporary libtool files.
13405 # How to create reloadable object files.
13406 reload_flag=$lt_reload_flag
13407 reload_cmds=$lt_reload_cmds
13409 # How to pass a linker flag through the compiler.
13410 wl=$lt_lt_prog_compiler_wl_CXX
13412 # Object file suffix (normally "o").
13413 objext="$ac_objext"
13415 # Old archive suffix (normally "a").
13418 # Shared library suffix (normally ".so").
13419 shrext_cmds='$shrext_cmds'
13421 # Executable file suffix (normally "").
13424 # Additional compiler flags for building library objects.
13425 pic_flag=$lt_lt_prog_compiler_pic_CXX
13428 # What is the maximum length of a command?
13429 max_cmd_len=$lt_cv_sys_max_cmd_len
13431 # Does compiler simultaneously support -c and -o options?
13432 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13434 # Must we lock files when doing compilation?
13435 need_locks=$lt_need_locks
13437 # Do we need the lib prefix for modules?
13438 need_lib_prefix=$need_lib_prefix
13440 # Do we need a version for libraries?
13441 need_version=$need_version
13443 # Whether dlopen is supported.
13444 dlopen_support=$enable_dlopen
13446 # Whether dlopen of programs is supported.
13447 dlopen_self=$enable_dlopen_self
13449 # Whether dlopen of statically linked programs is supported.
13450 dlopen_self_static=$enable_dlopen_self_static
13452 # Compiler flag to prevent dynamic linking.
13453 link_static_flag=$lt_lt_prog_compiler_static_CXX
13455 # Compiler flag to turn off builtin functions.
13456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13458 # Compiler flag to allow reflexive dlopens.
13459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13461 # Compiler flag to generate shared objects directly from archives.
13462 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13464 # Compiler flag to generate thread-safe objects.
13465 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13467 # Library versioning type.
13468 version_type=$version_type
13470 # Format of library name prefix.
13471 libname_spec=$lt_libname_spec
13473 # List of archive names. First name is the real one, the rest are links.
13474 # The last name is the one that the linker finds with -lNAME.
13475 library_names_spec=$lt_library_names_spec
13477 # The coded name of the library, if different from the real name.
13478 soname_spec=$lt_soname_spec
13480 # Commands used to build and install an old-style archive.
13482 old_archive_cmds=$lt_old_archive_cmds_CXX
13483 old_postinstall_cmds=$lt_old_postinstall_cmds
13484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13486 # Create an old-style archive from a shared archive.
13487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13489 # Create a temporary old-style archive to link instead of a shared archive.
13490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13492 # Commands used to build and install a shared archive.
13493 archive_cmds=$lt_archive_cmds_CXX
13494 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13495 postinstall_cmds=$lt_postinstall_cmds
13496 postuninstall_cmds=$lt_postuninstall_cmds
13498 # Commands used to build a loadable module (assumed same as above if empty)
13499 module_cmds=$lt_module_cmds_CXX
13500 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13502 # Commands to strip libraries.
13503 old_striplib=$lt_old_striplib
13504 striplib=$lt_striplib
13506 # Dependencies to place before the objects being linked to create a
13508 predep_objects=$lt_predep_objects_CXX
13510 # Dependencies to place after the objects being linked to create a
13512 postdep_objects=$lt_postdep_objects_CXX
13514 # Dependencies to place before the objects being linked to create a
13516 predeps=$lt_predeps_CXX
13518 # Dependencies to place after the objects being linked to create a
13520 postdeps=$lt_postdeps_CXX
13522 # The directories searched by this compiler when creating a shared
13524 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13526 # The library search path used internally by the compiler when linking
13527 # a shared library.
13528 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13530 # Method to check whether dependent libraries are shared objects.
13531 deplibs_check_method=$lt_deplibs_check_method
13533 # Command to use when deplibs_check_method == file_magic.
13534 file_magic_cmd=$lt_file_magic_cmd
13536 # Flag that allows shared libraries with undefined symbols to be built.
13537 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13539 # Flag that forces no undefined symbols.
13540 no_undefined_flag=$lt_no_undefined_flag_CXX
13542 # Commands used to finish a libtool library installation in a directory.
13543 finish_cmds=$lt_finish_cmds
13545 # Same as above, but a single script fragment to be evaled but not shown.
13546 finish_eval=$lt_finish_eval
13548 # Take the output of nm and produce a listing of raw symbols and C names.
13549 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13551 # Transform the output of nm in a proper C declaration
13552 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13554 # Transform the output of nm in a C name address pair
13555 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13557 # This is the shared library runtime path variable.
13558 runpath_var=$runpath_var
13560 # This is the shared library path variable.
13561 shlibpath_var=$shlibpath_var
13563 # Is shlibpath searched before the hard-coded library search path?
13564 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13566 # How to hardcode a shared library path into an executable.
13567 hardcode_action=$hardcode_action_CXX
13569 # Whether we should hardcode library paths into libraries.
13570 hardcode_into_libs=$hardcode_into_libs
13572 # Flag to hardcode \$libdir into a binary during linking.
13573 # This must work even if \$libdir does not exist.
13574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13576 # If ld is used when linking, flag to hardcode \$libdir into
13577 # a binary during linking. This must work even if \$libdir does
13579 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13581 # Whether we need a single -rpath flag with a separated argument.
13582 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13584 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13585 # resulting binary.
13586 hardcode_direct=$hardcode_direct_CXX
13588 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13589 # resulting binary.
13590 hardcode_minus_L=$hardcode_minus_L_CXX
13592 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13593 # the resulting binary.
13594 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13596 # Set to yes if building a shared library automatically hardcodes DIR into the library
13597 # and all subsequent libraries and executables linked against it.
13598 hardcode_automatic=$hardcode_automatic_CXX
13600 # Variables whose values should be saved in libtool wrapper scripts and
13601 # restored at relink time.
13602 variables_saved_for_relink="$variables_saved_for_relink"
13604 # Whether libtool must link a program against all its dependency libraries.
13605 link_all_deplibs=$link_all_deplibs_CXX
13607 # Compile-time system search path for libraries
13608 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13610 # Run-time system search path for libraries
13611 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13613 # Fix the shell variable \$srcfile for the compiler.
13614 fix_srcfile_path=$lt_fix_srcfile_path
13616 # Set to yes if exported symbols are required.
13617 always_export_symbols=$always_export_symbols_CXX
13619 # The commands to list exported symbols.
13620 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13622 # The commands to extract the exported symbol list from a shared archive.
13623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13625 # Symbols that should not be listed in the preloaded symbols.
13626 exclude_expsyms=$lt_exclude_expsyms_CXX
13628 # Symbols that must always be exported.
13629 include_expsyms=$lt_include_expsyms_CXX
13631 # ### END LIBTOOL TAG CONFIG: $tagname
13637 # If there is no Makefile yet, we rely on a make rule to execute
13638 # `config.status --recheck' to rerun these tests and create the
13639 # libtool script then.
13640 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13641 if test -f "$ltmain_in"; then
13642 test -f Makefile && make "$ltmain"
13648 ac_cpp='$CPP $CPPFLAGS'
13649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13657 with_gnu_ldcxx=$with_gnu_ld
13658 with_gnu_ld=$lt_save_with_gnu_ld
13659 lt_cv_path_LDCXX=$lt_cv_path_LD
13660 lt_cv_path_LD=$lt_save_path_LD
13661 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13662 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13670 if test -n "$F77" && test "X$F77" != "Xno"; then
13673 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13674 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13678 archive_cmds_need_lc_F77=no
13679 allow_undefined_flag_F77=
13680 always_export_symbols_F77=no
13681 archive_expsym_cmds_F77=
13682 export_dynamic_flag_spec_F77=
13683 hardcode_direct_F77=no
13684 hardcode_libdir_flag_spec_F77=
13685 hardcode_libdir_flag_spec_ld_F77=
13686 hardcode_libdir_separator_F77=
13687 hardcode_minus_L_F77=no
13688 hardcode_automatic_F77=no
13690 module_expsym_cmds_F77=
13691 link_all_deplibs_F77=unknown
13692 old_archive_cmds_F77=$old_archive_cmds
13693 no_undefined_flag_F77=
13694 whole_archive_flag_spec_F77=
13695 enable_shared_with_static_runtimes_F77=no
13697 # Source file extension for f77 test sources.
13700 # Object file extension for compiled f77 test sources.
13704 # Code to be used in simple compile tests
13705 lt_simple_compile_test_code="\
13711 # Code to be used in simple link tests
13712 lt_simple_link_test_code="\
13717 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13719 # If no C compiler was specified, use CC.
13722 # If no C compiler flags were specified, use CFLAGS.
13723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13725 # Allow CC to be a program name with arguments.
13729 # save warnings/boilerplate of simple test code
13730 ac_outfile=conftest.$ac_objext
13731 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13732 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13733 _lt_compiler_boilerplate=`cat conftest.err`
13736 ac_outfile=conftest.$ac_objext
13737 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13738 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13739 _lt_linker_boilerplate=`cat conftest.err`
13743 # Allow CC to be a program name with arguments.
13748 for cc_temp in $compiler""; do
13750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13756 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13760 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13762 $as_echo "$can_build_shared" >&6; }
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13765 $as_echo_n "checking whether to build shared libraries... " >&6; }
13766 test "$can_build_shared" = "no" && enable_shared=no
13768 # On AIX, shared libraries and static libraries use the same namespace, and
13769 # are all built from PIC.
13772 test "$enable_shared" = yes && enable_static=no
13773 if test -n "$RANLIB"; then
13774 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13775 postinstall_cmds='$RANLIB $lib'
13779 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13780 test "$enable_shared" = yes && enable_static=no
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13785 $as_echo "$enable_shared" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13788 $as_echo_n "checking whether to build static libraries... " >&6; }
13789 # Make sure either enable_shared or enable_static is yes.
13790 test "$enable_shared" = yes || enable_static=yes
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13792 $as_echo "$enable_static" >&6; }
13797 lt_prog_compiler_wl_F77=
13798 lt_prog_compiler_pic_F77=
13799 lt_prog_compiler_static_F77=
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13802 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13804 if test "$GCC" = yes; then
13805 lt_prog_compiler_wl_F77='-Wl,'
13806 lt_prog_compiler_static_F77='-static'
13810 # All AIX code is PIC.
13811 if test "$host_cpu" = ia64; then
13812 # AIX 5 now supports IA64 processor
13813 lt_prog_compiler_static_F77='-Bstatic'
13818 # FIXME: we need at least 68020 code to build shared libraries, but
13819 # adding the `-m68020' flag to GCC prevents building anything better,
13821 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13824 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13825 # PIC is the default for these OSes.
13828 mingw* | cygwin* | pw32* | os2*)
13829 # This hack is so that the source file can tell whether it is being
13830 # built for inclusion in a dll (and should export symbols for example).
13831 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13832 # (--disable-auto-import) libraries
13833 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13836 darwin* | rhapsody*)
13837 # PIC is the default on this platform
13838 # Common symbols not allowed in MH_DYLIB files
13839 lt_prog_compiler_pic_F77='-fno-common'
13843 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13844 # Instead, we relocate shared libraries at runtime.
13848 # Just because we use GCC doesn't mean we suddenly get shared libraries
13849 # on systems that don't support them.
13850 lt_prog_compiler_can_build_shared_F77=no
13855 if test -d /usr/nec; then
13856 lt_prog_compiler_pic_F77=-Kconform_pic
13861 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13862 # not for PA HP-UX.
13868 lt_prog_compiler_pic_F77='-fPIC'
13874 lt_prog_compiler_pic_F77='-fPIC'
13878 # PORTME Check for flag to pass linker flags through the system compiler.
13881 lt_prog_compiler_wl_F77='-Wl,'
13882 if test "$host_cpu" = ia64; then
13883 # AIX 5 now supports IA64 processor
13884 lt_prog_compiler_static_F77='-Bstatic'
13886 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13890 # PIC is the default on this platform
13891 # Common symbols not allowed in MH_DYLIB files
13892 case $cc_basename in
13894 lt_prog_compiler_pic_F77='-qnocommon'
13895 lt_prog_compiler_wl_F77='-Wl,'
13900 mingw* | cygwin* | pw32* | os2*)
13901 # This hack is so that the source file can tell whether it is being
13902 # built for inclusion in a dll (and should export symbols for example).
13903 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13906 hpux9* | hpux10* | hpux11*)
13907 lt_prog_compiler_wl_F77='-Wl,'
13908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13909 # not for PA HP-UX.
13915 lt_prog_compiler_pic_F77='+Z'
13918 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13919 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13922 irix5* | irix6* | nonstopux*)
13923 lt_prog_compiler_wl_F77='-Wl,'
13924 # PIC (with -KPIC) is the default.
13925 lt_prog_compiler_static_F77='-non_shared'
13929 lt_prog_compiler_pic_F77='-KPIC'
13930 lt_prog_compiler_static_F77='-Bstatic'
13933 linux* | k*bsd*-gnu)
13934 case $cc_basename in
13936 lt_prog_compiler_wl_F77='-Wl,'
13937 lt_prog_compiler_pic_F77='-KPIC'
13938 lt_prog_compiler_static_F77='-static'
13940 pgcc* | pgf77* | pgf90* | pgf95*)
13941 # Portland Group compilers (*not* the Pentium gcc compiler,
13942 # which looks to be a dead project)
13943 lt_prog_compiler_wl_F77='-Wl,'
13944 lt_prog_compiler_pic_F77='-fpic'
13945 lt_prog_compiler_static_F77='-Bstatic'
13948 lt_prog_compiler_wl_F77='-Wl,'
13949 # All Alpha code is PIC.
13950 lt_prog_compiler_static_F77='-non_shared'
13953 case `$CC -V 2>&1 | sed 5q` in
13956 lt_prog_compiler_pic_F77='-KPIC'
13957 lt_prog_compiler_static_F77='-Bstatic'
13958 lt_prog_compiler_wl_F77='-Wl,'
13961 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13962 lt_prog_compiler_pic_F77='-KPIC'
13963 lt_prog_compiler_static_F77='-Bstatic'
13964 lt_prog_compiler_wl_F77=''
13971 osf3* | osf4* | osf5*)
13972 lt_prog_compiler_wl_F77='-Wl,'
13973 # All OSF/1 code is PIC.
13974 lt_prog_compiler_static_F77='-non_shared'
13978 lt_prog_compiler_static_F77='-non_shared'
13982 lt_prog_compiler_pic_F77='-KPIC'
13983 lt_prog_compiler_static_F77='-Bstatic'
13984 case $cc_basename in
13985 f77* | f90* | f95*)
13986 lt_prog_compiler_wl_F77='-Qoption ld ';;
13988 lt_prog_compiler_wl_F77='-Wl,';;
13993 lt_prog_compiler_wl_F77='-Qoption ld '
13994 lt_prog_compiler_pic_F77='-PIC'
13995 lt_prog_compiler_static_F77='-Bstatic'
13998 sysv4 | sysv4.2uw2* | sysv4.3*)
13999 lt_prog_compiler_wl_F77='-Wl,'
14000 lt_prog_compiler_pic_F77='-KPIC'
14001 lt_prog_compiler_static_F77='-Bstatic'
14005 if test -d /usr/nec ;then
14006 lt_prog_compiler_pic_F77='-Kconform_pic'
14007 lt_prog_compiler_static_F77='-Bstatic'
14011 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14012 lt_prog_compiler_wl_F77='-Wl,'
14013 lt_prog_compiler_pic_F77='-KPIC'
14014 lt_prog_compiler_static_F77='-Bstatic'
14018 lt_prog_compiler_wl_F77='-Wl,'
14019 lt_prog_compiler_can_build_shared_F77=no
14023 lt_prog_compiler_pic_F77='-pic'
14024 lt_prog_compiler_static_F77='-Bstatic'
14028 lt_prog_compiler_can_build_shared_F77=no
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14034 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14037 # Check to make sure the PIC flag actually works.
14039 if test -n "$lt_prog_compiler_pic_F77"; then
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14042 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14043 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14044 $as_echo_n "(cached) " >&6
14046 lt_cv_prog_compiler_pic_works_F77=no
14047 ac_outfile=conftest.$ac_objext
14048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14049 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14050 # Insert the option either (1) after the last *FLAGS variable, or
14051 # (2) before a word containing "conftest.", or (3) at the end.
14052 # Note that $ac_compile itself does not contain backslashes and begins
14053 # with a dollar sign (not a hyphen), so the echo should work correctly.
14054 # The option is referenced via a variable to avoid confusing sed.
14055 lt_compile=`echo "$ac_compile" | $SED \
14056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14058 -e 's:$: $lt_compiler_flag:'`
14059 (eval echo "\"\$as_me:14059: $lt_compile\"" >&5)
14060 (eval "$lt_compile" 2>conftest.err)
14062 cat conftest.err >&5
14063 echo "$as_me:14063: \$? = $ac_status" >&5
14064 if (exit $ac_status) && test -s "$ac_outfile"; then
14065 # The compiler can only warn and ignore the option if not recognized
14066 # So say no if there are warnings other than the usual output.
14067 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14069 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14070 lt_cv_prog_compiler_pic_works_F77=yes
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14077 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14079 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14080 case $lt_prog_compiler_pic_F77 in
14082 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14085 lt_prog_compiler_pic_F77=
14086 lt_prog_compiler_can_build_shared_F77=no
14091 # For platforms which do not support PIC, -DPIC is meaningless:
14093 lt_prog_compiler_pic_F77=
14096 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14101 # Check to make sure the static flag actually works.
14103 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14105 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14106 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14107 $as_echo_n "(cached) " >&6
14109 lt_cv_prog_compiler_static_works_F77=no
14110 save_LDFLAGS="$LDFLAGS"
14111 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14112 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14113 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14114 # The linker can only warn and ignore the option if not recognized
14115 # So say no if there are warnings
14116 if test -s conftest.err; then
14117 # Append any errors to the config.log.
14118 cat conftest.err 1>&5
14119 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14121 if diff conftest.exp conftest.er2 >/dev/null; then
14122 lt_cv_prog_compiler_static_works_F77=yes
14125 lt_cv_prog_compiler_static_works_F77=yes
14129 LDFLAGS="$save_LDFLAGS"
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14133 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14135 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14138 lt_prog_compiler_static_F77=
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14143 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14144 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14145 $as_echo_n "(cached) " >&6
14147 lt_cv_prog_compiler_c_o_F77=no
14148 $rm -r conftest 2>/dev/null
14152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14154 lt_compiler_flag="-o out/conftest2.$ac_objext"
14155 # Insert the option either (1) after the last *FLAGS variable, or
14156 # (2) before a word containing "conftest.", or (3) at the end.
14157 # Note that $ac_compile itself does not contain backslashes and begins
14158 # with a dollar sign (not a hyphen), so the echo should work correctly.
14159 lt_compile=`echo "$ac_compile" | $SED \
14160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14162 -e 's:$: $lt_compiler_flag:'`
14163 (eval echo "\"\$as_me:14163: $lt_compile\"" >&5)
14164 (eval "$lt_compile" 2>out/conftest.err)
14166 cat out/conftest.err >&5
14167 echo "$as_me:14167: \$? = $ac_status" >&5
14168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14170 # The compiler can only warn and ignore the option if not recognized
14171 # So say no if there are warnings
14172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14175 lt_cv_prog_compiler_c_o_F77=yes
14180 # SGI C++ compiler will create directory out/ii_files/ for
14181 # template instantiation
14182 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14183 $rm out/* && rmdir out
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14190 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14193 hard_links="nottested"
14194 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14195 # do not overwrite the value of need_locks provided by the user
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14197 $as_echo_n "checking if we can lock with hard links... " >&6; }
14200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14202 ln conftest.a conftest.b 2>&5 || hard_links=no
14203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14205 $as_echo "$hard_links" >&6; }
14206 if test "$hard_links" = no; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14208 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14216 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14219 allow_undefined_flag_F77=
14220 enable_shared_with_static_runtimes_F77=no
14222 archive_expsym_cmds_F77=
14223 old_archive_From_new_cmds_F77=
14224 old_archive_from_expsyms_cmds_F77=
14225 export_dynamic_flag_spec_F77=
14226 whole_archive_flag_spec_F77=
14227 thread_safe_flag_spec_F77=
14228 hardcode_libdir_flag_spec_F77=
14229 hardcode_libdir_flag_spec_ld_F77=
14230 hardcode_libdir_separator_F77=
14231 hardcode_direct_F77=no
14232 hardcode_minus_L_F77=no
14233 hardcode_shlibpath_var_F77=unsupported
14234 link_all_deplibs_F77=unknown
14235 hardcode_automatic_F77=no
14237 module_expsym_cmds_F77=
14238 always_export_symbols_F77=no
14239 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14240 # include_expsyms should be a list of space-separated symbols to be *always*
14241 # included in the symbol list
14242 include_expsyms_F77=
14243 # exclude_expsyms can be an extended regexp of symbols to exclude
14244 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14245 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14246 # as well as any symbol that contains `d'.
14247 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14248 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14249 # platforms (ab)use it in PIC code, but their linkers get confused if
14250 # the symbol is explicitly referenced. Since portable code cannot
14251 # rely on this symbol name, it's probably fine to never include it in
14252 # preloaded symbol tables.
14253 # Exclude shared library initialization/finalization symbols.
14254 extract_expsyms_cmds=
14255 # Just being paranoid about ensuring that cc_basename is set.
14256 for cc_temp in $compiler""; do
14258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14264 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14267 cygwin* | mingw* | pw32*)
14268 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14269 # When not using gcc, we currently assume that we are using
14270 # Microsoft Visual C++.
14271 if test "$GCC" != yes; then
14276 # we just hope/assume this is gcc and not c89 (= MSVC++)
14285 if test "$with_gnu_ld" = yes; then
14286 # If archive_cmds runs LD, not CC, wlarc should be empty
14289 # Set some defaults for GNU ld with shared library support. These
14290 # are reset later if shared libraries are not supported. Putting them
14291 # here allows them to be overridden if necessary.
14292 runpath_var=LD_RUN_PATH
14293 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14294 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14295 # ancient GNU ld didn't support --whole-archive et. al.
14296 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14297 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14299 whole_archive_flag_spec_F77=
14301 supports_anon_versioning=no
14302 case `$LD -v 2>/dev/null` in
14303 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14304 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14305 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14306 *\ 2.11.*) ;; # other 2.11 versions
14307 *) supports_anon_versioning=yes ;;
14310 # See if GNU ld supports shared libraries.
14313 # On AIX/PPC, the GNU linker is very broken
14314 if test "$host_cpu" != ia64; then
14318 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14319 *** to be unable to reliably create shared libraries on AIX.
14320 *** Therefore, libtool is disabling shared libraries support. If you
14321 *** really care for shared libraries, you may want to modify your PATH
14322 *** so that a non-GNU linker is found, and then restart.
14329 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)'
14330 hardcode_libdir_flag_spec_F77='-L$libdir'
14331 hardcode_minus_L_F77=yes
14333 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14334 # that the semantics of dynamic libraries on AmigaOS, at least up
14335 # to version 4, is to share data among multiple programs linked
14336 # with the same dynamic library. Since this doesn't match the
14337 # behavior of shared libraries on other platforms, we can't use
14343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14344 allow_undefined_flag_F77=unsupported
14345 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14346 # support --undefined. This deserves some investigation. FIXME
14347 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14353 cygwin* | mingw* | pw32*)
14354 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14355 # as there is no search path for DLLs.
14356 hardcode_libdir_flag_spec_F77='-L$libdir'
14357 allow_undefined_flag_F77=unsupported
14358 always_export_symbols_F77=no
14359 enable_shared_with_static_runtimes_F77=yes
14360 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14362 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14363 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14364 # If the export-symbols file already is a .def file (1st line
14365 # is EXPORTS), use it as is; otherwise, prepend...
14366 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14367 cp $export_symbols $output_objdir/$soname.def;
14369 echo EXPORTS > $output_objdir/$soname.def;
14370 cat $export_symbols >> $output_objdir/$soname.def;
14372 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14379 hardcode_direct_F77=no
14380 hardcode_shlibpath_var_F77=no
14381 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14382 export_dynamic_flag_spec_F77='${wl}-E'
14383 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14384 # Instead, shared libraries are loaded at an image base (0x10000000 by
14385 # default) and relocated if they conflict, which is a slow very memory
14386 # consuming and fragmenting process. To avoid this, we pick a random,
14387 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14388 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14389 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'
14390 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'
14393 gnu* | linux* | k*bsd*-gnu)
14394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14396 case $cc_basename,$host_cpu in
14397 pgcc*) # Portland Group C compiler
14398 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'
14399 tmp_addflag=' $pic_flag'
14401 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14402 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'
14403 tmp_addflag=' $pic_flag -Mnomain' ;;
14404 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14405 tmp_addflag=' -i_dynamic' ;;
14406 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14407 tmp_addflag=' -i_dynamic -nofor_main' ;;
14408 ifc* | ifort*) # Intel Fortran compiler
14409 tmp_addflag=' -nofor_main' ;;
14411 case `$CC -V 2>&1 | sed 5q` in
14412 *Sun\ C*) # Sun C 5.9
14413 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14414 tmp_sharedflag='-G' ;;
14415 *Sun\ F*) # Sun Fortran 8.3
14416 tmp_sharedflag='-G' ;;
14418 tmp_sharedflag='-shared' ;;
14420 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14422 if test $supports_anon_versioning = yes; then
14423 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14425 $echo "local: *; };" >> $output_objdir/$libname.ver~
14426 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14428 link_all_deplibs_F77=no
14434 netbsd* | netbsdelf*-gnu)
14435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14436 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14439 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14440 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14445 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14449 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14450 *** create shared libraries on Solaris systems. Therefore, libtool
14451 *** is disabling shared libraries support. We urge you to upgrade GNU
14452 *** binutils to release 2.9.1 or newer. Another option is to modify
14453 *** your PATH or compiler configuration so that the native linker is
14454 *** used, and then restart.
14457 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14458 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14459 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14466 case `$LD -v 2>&1` in
14467 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14471 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14472 *** reliably create shared libraries on SCO systems. Therefore, libtool
14473 *** is disabling shared libraries support. We urge you to upgrade GNU
14474 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14475 *** your PATH or compiler configuration so that the native linker is
14476 *** used, and then restart.
14481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14482 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14483 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14484 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14493 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14495 hardcode_direct_F77=yes
14496 hardcode_shlibpath_var_F77=no
14500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14501 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14502 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14509 if test "$ld_shlibs_F77" = no; then
14511 hardcode_libdir_flag_spec_F77=
14512 export_dynamic_flag_spec_F77=
14513 whole_archive_flag_spec_F77=
14516 # PORTME fill in a description of your system's linker (not GNU ld)
14519 allow_undefined_flag_F77=unsupported
14520 always_export_symbols_F77=yes
14521 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'
14522 # Note: this linker hardcodes the directories in LIBPATH if there
14523 # are no directories specified by -L.
14524 hardcode_minus_L_F77=yes
14525 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14526 # Neither direct hardcoding nor static linking is supported with a
14528 hardcode_direct_F77=unsupported
14533 if test "$host_cpu" = ia64; then
14534 # On IA64, the linker does run time linking by default, so we don't
14535 # have to do anything special.
14536 aix_use_runtimelinking=no
14537 exp_sym_flag='-Bexport'
14540 # If we're using GNU nm, then we don't want the "-C" option.
14541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14542 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14543 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'
14545 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'
14547 aix_use_runtimelinking=no
14549 # Test if we are trying to use run time linking or normal
14550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14551 # need to do runtime linking.
14552 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14553 for ld_flag in $LDFLAGS; do
14554 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14555 aix_use_runtimelinking=yes
14562 exp_sym_flag='-bexport'
14563 no_entry_flag='-bnoentry'
14566 # When large executables or shared objects are built, AIX ld can
14567 # have problems creating the table of contents. If linking a library
14568 # or program results in "error TOC overflow" add -mminimal-toc to
14569 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14570 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14572 archive_cmds_F77=''
14573 hardcode_direct_F77=yes
14574 hardcode_libdir_separator_F77=':'
14575 link_all_deplibs_F77=yes
14577 if test "$GCC" = yes; then
14578 case $host_os in aix4.[012]|aix4.[012].*)
14579 # We only want to do this on AIX 4.2 and lower, the check
14580 # below for broken collect2 doesn't work under 4.3+
14581 collect2name=`${CC} -print-prog-name=collect2`
14582 if test -f "$collect2name" && \
14583 strings "$collect2name" | grep resolve_lib_name >/dev/null
14585 # We have reworked collect2
14588 # We have old collect2
14589 hardcode_direct_F77=unsupported
14590 # It fails to find uninstalled libraries when the uninstalled
14591 # path is not listed in the libpath. Setting hardcode_minus_L
14592 # to unsupported forces relinking
14593 hardcode_minus_L_F77=yes
14594 hardcode_libdir_flag_spec_F77='-L$libdir'
14595 hardcode_libdir_separator_F77=
14599 shared_flag='-shared'
14600 if test "$aix_use_runtimelinking" = yes; then
14601 shared_flag="$shared_flag "'${wl}-G'
14605 if test "$host_cpu" = ia64; then
14606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14607 # chokes on -Wl,-G. The following line is correct:
14610 if test "$aix_use_runtimelinking" = yes; then
14611 shared_flag='${wl}-G'
14613 shared_flag='${wl}-bM:SRE'
14618 # It seems that -bexpall does not export symbols beginning with
14619 # underscore (_), so it is better to generate a list of symbols to export.
14620 always_export_symbols_F77=yes
14621 if test "$aix_use_runtimelinking" = yes; then
14622 # Warning - without using the other runtime loading flags (-brtl),
14623 # -berok will link without error, but may produce a broken library.
14624 allow_undefined_flag_F77='-berok'
14625 # Determine the default libpath from the value encoded in an empty executable.
14626 cat > conftest.$ac_ext <<_ACEOF
14631 if ac_fn_f77_try_link "$LINENO"; then :
14633 lt_aix_libpath_sed='
14634 /Import File Strings/,/^$/ {
14640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14641 # Check for a 64-bit object if we didn't find anything.
14642 if test -z "$aix_libpath"; then
14643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14646 rm -f core conftest.err conftest.$ac_objext \
14647 conftest$ac_exeext conftest.$ac_ext
14648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14650 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14651 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"
14653 if test "$host_cpu" = ia64; then
14654 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14655 allow_undefined_flag_F77="-z nodefs"
14656 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"
14658 # Determine the default libpath from the value encoded in an empty executable.
14659 cat > conftest.$ac_ext <<_ACEOF
14664 if ac_fn_f77_try_link "$LINENO"; then :
14666 lt_aix_libpath_sed='
14667 /Import File Strings/,/^$/ {
14673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14674 # Check for a 64-bit object if we didn't find anything.
14675 if test -z "$aix_libpath"; then
14676 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14679 rm -f core conftest.err conftest.$ac_objext \
14680 conftest$ac_exeext conftest.$ac_ext
14681 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14683 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14684 # Warning - without using the other run time loading flags,
14685 # -berok will link without error, but may produce a broken library.
14686 no_undefined_flag_F77=' ${wl}-bernotok'
14687 allow_undefined_flag_F77=' ${wl}-berok'
14688 # Exported symbols can be pulled into shared objects from archives
14689 whole_archive_flag_spec_F77='$convenience'
14690 archive_cmds_need_lc_F77=yes
14691 # This is similar to how AIX traditionally builds its shared libraries.
14692 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'
14698 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)'
14699 hardcode_libdir_flag_spec_F77='-L$libdir'
14700 hardcode_minus_L_F77=yes
14701 # see comment about different semantics on the GNU ld section
14706 export_dynamic_flag_spec_F77=-rdynamic
14709 cygwin* | mingw* | pw32*)
14710 # When not using gcc, we currently assume that we are using
14711 # Microsoft Visual C++.
14712 # hardcode_libdir_flag_spec is actually meaningless, as there is
14713 # no search path for DLLs.
14714 hardcode_libdir_flag_spec_F77=' '
14715 allow_undefined_flag_F77=unsupported
14716 # Tell ltmain to make .lib files, not .a files.
14718 # Tell ltmain to make .dll files, not .so files.
14720 # FIXME: Setting linknames here is a bad hack.
14721 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14722 # The linker will automatically build a .lib file if we build a DLL.
14723 old_archive_From_new_cmds_F77='true'
14724 # FIXME: Should let the user specify the lib program.
14725 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14726 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14727 enable_shared_with_static_runtimes_F77=yes
14730 darwin* | rhapsody*)
14732 rhapsody* | darwin1.[012])
14733 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14736 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14737 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14739 case ${MACOSX_DEPLOYMENT_TARGET} in
14741 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14744 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14750 archive_cmds_need_lc_F77=no
14751 hardcode_direct_F77=no
14752 hardcode_automatic_F77=yes
14753 hardcode_shlibpath_var_F77=unsupported
14754 whole_archive_flag_spec_F77=''
14755 link_all_deplibs_F77=yes
14756 if test "$GCC" = yes ; then
14757 output_verbose_link_cmd='echo'
14758 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14759 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14760 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14761 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14763 case $cc_basename in
14765 output_verbose_link_cmd='echo'
14766 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14767 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14768 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14769 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14770 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}'
14780 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14781 hardcode_libdir_flag_spec_F77='-L$libdir'
14782 hardcode_shlibpath_var_F77=no
14789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14790 # support. Future versions do this automatically, but an explicit c++rt0.o
14791 # does not break anything, and helps significantly (at the cost of a little
14794 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14795 hardcode_libdir_flag_spec_F77='-R$libdir'
14796 hardcode_direct_F77=yes
14797 hardcode_shlibpath_var_F77=no
14800 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14802 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_direct_F77=yes
14804 hardcode_minus_L_F77=yes
14805 hardcode_shlibpath_var_F77=no
14808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14809 freebsd* | dragonfly*)
14810 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14811 hardcode_libdir_flag_spec_F77='-R$libdir'
14812 hardcode_direct_F77=yes
14813 hardcode_shlibpath_var_F77=no
14817 if test "$GCC" = yes; then
14818 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'
14820 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'
14822 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14823 hardcode_libdir_separator_F77=:
14824 hardcode_direct_F77=yes
14826 # hardcode_minus_L: Not really in the search PATH,
14827 # but as the default location of the library.
14828 hardcode_minus_L_F77=yes
14829 export_dynamic_flag_spec_F77='${wl}-E'
14833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14834 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14836 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14838 if test "$with_gnu_ld" = no; then
14839 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14840 hardcode_libdir_separator_F77=:
14842 hardcode_direct_F77=yes
14843 export_dynamic_flag_spec_F77='${wl}-E'
14845 # hardcode_minus_L: Not really in the search PATH,
14846 # but as the default location of the library.
14847 hardcode_minus_L_F77=yes
14852 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14855 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14858 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14861 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14867 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14870 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14873 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14877 if test "$with_gnu_ld" = no; then
14878 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14879 hardcode_libdir_separator_F77=:
14883 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14884 hardcode_direct_F77=no
14885 hardcode_shlibpath_var_F77=no
14888 hardcode_direct_F77=yes
14889 export_dynamic_flag_spec_F77='${wl}-E'
14891 # hardcode_minus_L: Not really in the search PATH,
14892 # but as the default location of the library.
14893 hardcode_minus_L_F77=yes
14899 irix5* | irix6* | nonstopux*)
14900 if test "$GCC" = yes; then
14901 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'
14903 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'
14904 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14906 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14907 hardcode_libdir_separator_F77=:
14908 link_all_deplibs_F77=yes
14911 netbsd* | netbsdelf*-gnu)
14912 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14913 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14915 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14917 hardcode_libdir_flag_spec_F77='-R$libdir'
14918 hardcode_direct_F77=yes
14919 hardcode_shlibpath_var_F77=no
14923 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14924 hardcode_direct_F77=yes
14925 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14926 hardcode_libdir_separator_F77=:
14927 hardcode_shlibpath_var_F77=no
14931 if test -f /usr/libexec/ld.so; then
14932 hardcode_direct_F77=yes
14933 hardcode_shlibpath_var_F77=no
14934 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14935 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14936 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14937 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14938 export_dynamic_flag_spec_F77='${wl}-E'
14941 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14942 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14943 hardcode_libdir_flag_spec_F77='-R$libdir'
14946 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14947 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14957 hardcode_libdir_flag_spec_F77='-L$libdir'
14958 hardcode_minus_L_F77=yes
14959 allow_undefined_flag_F77=unsupported
14960 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'
14961 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14965 if test "$GCC" = yes; then
14966 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14967 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'
14969 allow_undefined_flag_F77=' -expect_unresolved \*'
14970 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'
14972 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14973 hardcode_libdir_separator_F77=:
14976 osf4* | osf5*) # as osf3* with the addition of -msym flag
14977 if test "$GCC" = yes; then
14978 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14979 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'
14980 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14982 allow_undefined_flag_F77=' -expect_unresolved \*'
14983 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'
14984 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~
14985 $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'
14987 # Both c and cxx compiler support -rpath directly
14988 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14990 hardcode_libdir_separator_F77=:
14994 no_undefined_flag_F77=' -z text'
14995 if test "$GCC" = yes; then
14997 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14998 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14999 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15002 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15003 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15004 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15006 hardcode_libdir_flag_spec_F77='-R$libdir'
15007 hardcode_shlibpath_var_F77=no
15009 solaris2.[0-5] | solaris2.[0-5].*) ;;
15011 # The compiler driver will combine and reorder linker options,
15012 # but understands `-z linker_flag'. GCC discards it without `$wl',
15013 # but is careful enough not to reorder.
15014 # Supported since Solaris 2.6 (maybe 2.5.1?)
15015 if test "$GCC" = yes; then
15016 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15018 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15022 link_all_deplibs_F77=yes
15026 if test "x$host_vendor" = xsequent; then
15027 # Use $CC to link under sequent, because it throws in some extra .o
15028 # files that make .init and .fini sections work.
15029 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15031 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15033 hardcode_libdir_flag_spec_F77='-L$libdir'
15034 hardcode_direct_F77=yes
15035 hardcode_minus_L_F77=yes
15036 hardcode_shlibpath_var_F77=no
15040 case $host_vendor in
15042 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043 hardcode_direct_F77=yes # is this really true???
15046 ## LD is ld it makes a PLAMLIB
15047 ## CC just makes a GrossModule.
15048 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15049 reload_cmds_F77='$CC -r -o $output$reload_objs'
15050 hardcode_direct_F77=no
15053 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15054 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15057 runpath_var='LD_RUN_PATH'
15058 hardcode_shlibpath_var_F77=no
15062 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063 hardcode_shlibpath_var_F77=no
15064 export_dynamic_flag_spec_F77='-Bexport'
15068 if test -d /usr/nec; then
15069 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070 hardcode_shlibpath_var_F77=no
15071 runpath_var=LD_RUN_PATH
15072 hardcode_runpath_var=yes
15077 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15078 no_undefined_flag_F77='${wl}-z,text'
15079 archive_cmds_need_lc_F77=no
15080 hardcode_shlibpath_var_F77=no
15081 runpath_var='LD_RUN_PATH'
15083 if test "$GCC" = yes; then
15084 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15085 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15087 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15092 sysv5* | sco3.2v5* | sco5v6*)
15093 # Note: We can NOT use -z defs as we might desire, because we do not
15094 # link with -lc, and that would cause any symbols used from libc to
15095 # always be unresolved, which means just about no library would
15096 # ever link correctly. If we're not using GNU ld we use -z text
15097 # though, which does catch some bad symbols but isn't as heavy-handed
15099 no_undefined_flag_F77='${wl}-z,text'
15100 allow_undefined_flag_F77='${wl}-z,nodefs'
15101 archive_cmds_need_lc_F77=no
15102 hardcode_shlibpath_var_F77=no
15103 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15104 hardcode_libdir_separator_F77=':'
15105 link_all_deplibs_F77=yes
15106 export_dynamic_flag_spec_F77='${wl}-Bexport'
15107 runpath_var='LD_RUN_PATH'
15109 if test "$GCC" = yes; then
15110 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15111 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15113 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15114 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15119 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120 hardcode_libdir_flag_spec_F77='-L$libdir'
15121 hardcode_shlibpath_var_F77=no
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15131 $as_echo "$ld_shlibs_F77" >&6; }
15132 test "$ld_shlibs_F77" = no && can_build_shared=no
15135 # Do we need to explicitly link libc?
15137 case "x$archive_cmds_need_lc_F77" in
15139 # Assume -lc should be added
15140 archive_cmds_need_lc_F77=yes
15142 if test "$enable_shared" = yes && test "$GCC" = yes; then
15143 case $archive_cmds_F77 in
15145 # FIXME: we may have to deal with multi-command sequences.
15148 # Test whether the compiler implicitly links with -lc since on some
15149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15150 # to ld, don't add -lc before -lgcc.
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15152 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15157 (eval $ac_compile) 2>&5
15159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15160 test $ac_status = 0; } 2>conftest.err; then
15163 libobjs=conftest.$ac_objext
15165 wl=$lt_prog_compiler_wl_F77
15166 pic_flag=$lt_prog_compiler_pic_F77
15172 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15173 allow_undefined_flag_F77=
15174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15175 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15178 test $ac_status = 0; }
15180 archive_cmds_need_lc_F77=no
15182 archive_cmds_need_lc_F77=yes
15184 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15186 cat conftest.err 1>&5
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15190 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15198 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15199 library_names_spec=
15200 libname_spec='lib$name'
15204 postuninstall_cmds=
15208 shlibpath_overrides_runpath=unknown
15210 dynamic_linker="$host_os ld.so"
15211 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15213 need_lib_prefix=unknown
15214 hardcode_into_libs=no
15216 # when you set need_version to no, make sure it does not cause -set_version
15217 # flags to be left without arguments
15218 need_version=unknown
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15224 shlibpath_var=LIBPATH
15226 # AIX 3 has no versioning support, so we append a major version to the name.
15227 soname_spec='${libname}${release}${shared_ext}$major'
15234 hardcode_into_libs=yes
15235 if test "$host_cpu" = ia64; then
15236 # AIX 5 supports IA64
15237 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15238 shlibpath_var=LD_LIBRARY_PATH
15240 # With GCC up to 2.95.x, collect2 would create an import file
15241 # for dependence libraries. The import file would start with
15242 # the line `#! .'. This would cause the generated library to
15243 # depend on `.', always an invalid library. This was fixed in
15244 # development snapshots of GCC prior to 3.0.
15246 aix4 | aix4.[01] | aix4.[01].*)
15247 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15249 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15252 can_build_shared=no
15256 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15257 # soname into executable. Probably we can add versioning support to
15258 # collect2, so additional links can be useful in future.
15259 if test "$aix_use_runtimelinking" = yes; then
15260 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15261 # instead of lib<name>.a to let people know that these are not
15262 # typical AIX shared libraries.
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265 # We preserve .a as extension for shared libraries through AIX4.2
15266 # and later when we are not doing run time linking.
15267 library_names_spec='${libname}${release}.a $libname.a'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15270 shlibpath_var=LIBPATH
15275 library_names_spec='$libname.ixlibrary $libname.a'
15276 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15277 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'
15281 library_names_spec='${libname}${shared_ext}'
15282 dynamic_linker="$host_os ld.so"
15283 shlibpath_var=LIBRARY_PATH
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15292 shlibpath_var=LD_LIBRARY_PATH
15293 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15294 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15295 # the default ld.so.conf also contains /usr/contrib/lib and
15296 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15297 # libtool to hard-code these into programs
15300 cygwin* | mingw* | pw32*)
15301 version_type=windows
15306 case $GCC,$host_os in
15307 yes,cygwin* | yes,mingw* | yes,pw32*)
15308 library_names_spec='$libname.dll.a'
15309 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15310 postinstall_cmds='base_file=`basename \${file}`~
15311 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15312 dldir=$destdir/`dirname \$dlpath`~
15313 test -d \$dldir || mkdir -p \$dldir~
15314 $install_prog $dir/$dlname \$dldir/$dlname~
15315 chmod a+x \$dldir/$dlname'
15316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15317 dlpath=$dir/\$dldll~
15319 shlibpath_overrides_runpath=yes
15323 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15324 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15325 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15328 # MinGW DLLs use traditional 'lib' prefix
15329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15331 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15332 # It is most probably a Windows format PATH printed by
15333 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15334 # path with ; separators, and with drive letters. We can handle the
15335 # drive letters (cygwin fileutils understands them), so leave them,
15336 # especially as we might pass files found there to a mingw objdump,
15337 # which wouldn't understand a cygwinified path. Ahh.
15338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15344 # pw32 DLLs use 'pw' prefix rather than 'lib'
15345 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15351 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15354 dynamic_linker='Win32 ld.exe'
15355 # FIXME: first we should search . and the directory the executable is in
15359 darwin* | rhapsody*)
15360 dynamic_linker="$host_os dyld"
15361 version_type=darwin
15364 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15365 soname_spec='${libname}${release}${major}$shared_ext'
15366 shlibpath_overrides_runpath=yes
15367 shlibpath_var=DYLD_LIBRARY_PATH
15368 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15370 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 shlibpath_var=LD_LIBRARY_PATH
15386 freebsd* | dragonfly*)
15387 # DragonFly does not have aout. When/if they implement a new
15388 # versioning mechanism, adjust this.
15389 if test -x /usr/bin/objformat; then
15390 objformat=`/usr/bin/objformat`
15393 freebsd[123]*) objformat=aout ;;
15394 *) objformat=elf ;;
15397 version_type=freebsd-$objformat
15398 case $version_type in
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15409 shlibpath_var=LD_LIBRARY_PATH
15412 shlibpath_overrides_runpath=yes
15414 freebsd3.[01]* | freebsdelf3.[01]*)
15415 shlibpath_overrides_runpath=yes
15416 hardcode_into_libs=yes
15418 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15419 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15420 shlibpath_overrides_runpath=no
15421 hardcode_into_libs=yes
15423 *) # from 4.6 on, and DragonFly
15424 shlibpath_overrides_runpath=yes
15425 hardcode_into_libs=yes
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 shlibpath_var=LD_LIBRARY_PATH
15437 hardcode_into_libs=yes
15440 hpux9* | hpux10* | hpux11*)
15441 # Give a soname corresponding to the major version so that dld.sl refuses to
15442 # link against other versions.
15449 hardcode_into_libs=yes
15450 dynamic_linker="$host_os dld.so"
15451 shlibpath_var=LD_LIBRARY_PATH
15452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 if test "X$HPUX_IA64_MODE" = X32; then
15456 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15458 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15464 hardcode_into_libs=yes
15465 dynamic_linker="$host_os dld.sl"
15466 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15471 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15475 dynamic_linker="$host_os dld.sl"
15476 shlibpath_var=SHLIB_PATH
15477 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15479 soname_spec='${libname}${release}${shared_ext}$major'
15482 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15483 postinstall_cmds='chmod 555 $lib'
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15493 shlibpath_var=LD_LIBRARY_PATH
15494 shlibpath_overrides_runpath=no
15495 hardcode_into_libs=yes
15498 irix5* | irix6* | nonstopux*)
15500 nonstopux*) version_type=nonstopux ;;
15502 if test "$lt_cv_prog_gnu_ld" = yes; then
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15513 irix5* | nonstopux*)
15514 libsuff= shlibsuff=
15517 case $LD in # libtool.m4 will add one of these switches to LD
15518 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15519 libsuff= shlibsuff= libmagic=32-bit;;
15520 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15521 libsuff=32 shlibsuff=N32 libmagic=N32;;
15522 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15523 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15524 *) libsuff= shlibsuff= libmagic=never-match;;
15528 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15529 shlibpath_overrides_runpath=no
15530 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15531 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15532 hardcode_into_libs=yes
15535 # No shared lib support for Linux oldld, aout, or coff.
15536 linux*oldld* | linux*aout* | linux*coff*)
15540 # This must be Linux ELF.
15541 linux* | k*bsd*-gnu)
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 shlibpath_overrides_runpath=no
15550 # This implies no fast_install, which is unacceptable.
15551 # Some rework will be needed to allow for fast_install
15552 # before this can be enabled.
15553 hardcode_into_libs=yes
15555 # Append ld.so.conf contents to the search path
15556 if test -f /etc/ld.so.conf; then
15557 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15558 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15561 # We used to test for /lib/ld.so.1 and disable shared libraries on
15562 # powerpc, because MkLinux only supported shared libraries with the
15563 # GNU dynamic linker. Since this was broken with cross compilers,
15564 # most powerpc-linux boxes support dynamic linking these days and
15565 # people can always --disable-shared, the test was removed, and we
15566 # assume the GNU/Linux dynamic linker is in use.
15567 dynamic_linker='GNU/Linux ld.so'
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15575 soname_spec='${libname}${release}${shared_ext}$major'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 shlibpath_overrides_runpath=no
15578 hardcode_into_libs=yes
15579 dynamic_linker='NetBSD ld.elf_so'
15586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15589 dynamic_linker='NetBSD (a.out) ld.so'
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15592 soname_spec='${libname}${release}${shared_ext}$major'
15593 dynamic_linker='NetBSD ld.elf_so'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15597 hardcode_into_libs=yes
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612 soname_spec='${libname}${release}${shared_ext}$major'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 shlibpath_overrides_runpath=yes
15619 sys_lib_dlsearch_path_spec="/usr/lib"
15621 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15623 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15624 *) need_version=no ;;
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15631 openbsd2.[89] | openbsd2.[89].*)
15632 shlibpath_overrides_runpath=no
15635 shlibpath_overrides_runpath=yes
15639 shlibpath_overrides_runpath=yes
15644 libname_spec='$name'
15647 library_names_spec='$libname${shared_ext} $libname.a'
15648 dynamic_linker='OS/2 ld.exe'
15649 shlibpath_var=LIBPATH
15652 osf3* | osf4* | osf5*)
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15660 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672 soname_spec='${libname}${release}${shared_ext}$major'
15673 shlibpath_var=LD_LIBRARY_PATH
15674 shlibpath_overrides_runpath=yes
15675 hardcode_into_libs=yes
15676 # ldd complains unless libraries are executable
15677 postinstall_cmds='chmod +x $lib'
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=yes
15686 if test "$with_gnu_ld" = yes; then
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695 soname_spec='${libname}${release}${shared_ext}$major'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 case $host_vendor in
15699 shlibpath_overrides_runpath=no
15701 export_dynamic_flag_spec='${wl}-Blargedynsym'
15702 runpath_var=LD_RUN_PATH
15710 shlibpath_overrides_runpath=no
15711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15717 if test -d /usr/nec ;then
15719 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15720 soname_spec='$libname${shared_ext}.$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15726 version_type=freebsd-elf
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15730 soname_spec='${libname}${release}${shared_ext}$major'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 hardcode_into_libs=yes
15733 if test "$with_gnu_ld" = yes; then
15734 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15735 shlibpath_overrides_runpath=no
15737 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15738 shlibpath_overrides_runpath=yes
15741 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15745 sys_lib_dlsearch_path_spec='/usr/lib'
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751 soname_spec='${libname}${release}${shared_ext}$major'
15752 shlibpath_var=LD_LIBRARY_PATH
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15760 $as_echo "$dynamic_linker" >&6; }
15761 test "$dynamic_linker" = no && can_build_shared=no
15763 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15764 $as_echo_n "(cached) " >&6
15766 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15769 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15770 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15771 $as_echo_n "(cached) " >&6
15773 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15776 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15778 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15779 if test "$GCC" = yes; then
15780 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15784 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15785 hardcode_action_F77=
15786 if test -n "$hardcode_libdir_flag_spec_F77" || \
15787 test -n "$runpath_var_F77" || \
15788 test "X$hardcode_automatic_F77" = "Xyes" ; then
15790 # We can hardcode non-existant directories.
15791 if test "$hardcode_direct_F77" != no &&
15792 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15793 # have to relink, otherwise we might link with an installed library
15794 # when we should be linking with a yet-to-be-installed one
15795 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15796 test "$hardcode_minus_L_F77" != no; then
15797 # Linking always hardcodes the temporary library directory.
15798 hardcode_action_F77=relink
15800 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15801 hardcode_action_F77=immediate
15804 # We cannot hardcode anything, or else we can only hardcode existing
15806 hardcode_action_F77=unsupported
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15809 $as_echo "$hardcode_action_F77" >&6; }
15811 if test "$hardcode_action_F77" = relink; then
15812 # Fast installation is not supported
15813 enable_fast_install=no
15814 elif test "$shlibpath_overrides_runpath" = yes ||
15815 test "$enable_shared" = no; then
15816 # Fast installation is not necessary
15817 enable_fast_install=needless
15821 # The else clause should only fire when bootstrapping the
15822 # libtool distribution, otherwise you forgot to ship ltmain.sh
15823 # with your package, and you will get complaints that there are
15824 # no rules to generate ltmain.sh.
15825 if test -f "$ltmain"; then
15826 # See if we are running on zsh, and set the options which allow our commands through
15827 # without removal of \ escapes.
15828 if test -n "${ZSH_VERSION+set}" ; then
15829 setopt NO_GLOB_SUBST
15831 # Now quote all the things that may contain metacharacters while being
15832 # careful not to overquote the AC_SUBSTed values. We take copies of the
15833 # variables and quote the copies for generation of the libtool script.
15834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15838 deplibs_check_method reload_flag reload_cmds need_locks \
15839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15840 lt_cv_sys_global_symbol_to_c_name_address \
15841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15842 old_postinstall_cmds old_postuninstall_cmds \
15846 lt_prog_compiler_wl_F77 \
15847 lt_prog_compiler_pic_F77 \
15848 lt_prog_compiler_static_F77 \
15849 lt_prog_compiler_no_builtin_flag_F77 \
15850 export_dynamic_flag_spec_F77 \
15851 thread_safe_flag_spec_F77 \
15852 whole_archive_flag_spec_F77 \
15853 enable_shared_with_static_runtimes_F77 \
15854 old_archive_cmds_F77 \
15855 old_archive_from_new_cmds_F77 \
15856 predep_objects_F77 \
15857 postdep_objects_F77 \
15860 compiler_lib_search_path_F77 \
15861 compiler_lib_search_dirs_F77 \
15863 archive_expsym_cmds_F77 \
15864 postinstall_cmds_F77 \
15865 postuninstall_cmds_F77 \
15866 old_archive_from_expsyms_cmds_F77 \
15867 allow_undefined_flag_F77 \
15868 no_undefined_flag_F77 \
15869 export_symbols_cmds_F77 \
15870 hardcode_libdir_flag_spec_F77 \
15871 hardcode_libdir_flag_spec_ld_F77 \
15872 hardcode_libdir_separator_F77 \
15873 hardcode_automatic_F77 \
15875 module_expsym_cmds_F77 \
15876 lt_cv_prog_compiler_c_o_F77 \
15877 fix_srcfile_path_F77 \
15878 exclude_expsyms_F77 \
15879 include_expsyms_F77; do
15882 old_archive_cmds_F77 | \
15883 old_archive_from_new_cmds_F77 | \
15884 archive_cmds_F77 | \
15885 archive_expsym_cmds_F77 | \
15886 module_cmds_F77 | \
15887 module_expsym_cmds_F77 | \
15888 old_archive_from_expsyms_cmds_F77 | \
15889 export_symbols_cmds_F77 | \
15890 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15891 postinstall_cmds | postuninstall_cmds | \
15892 old_postinstall_cmds | old_postuninstall_cmds | \
15893 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15894 # Double-quote double-evaled strings.
15895 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15898 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15904 *'\$0 --fallback-echo"')
15905 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15911 cat <<__EOF__ >> "$cfgfile"
15912 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15914 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15916 # Shell to use when invoking shell scripts.
15919 # Whether or not to build shared libraries.
15920 build_libtool_libs=$enable_shared
15922 # Whether or not to build static libraries.
15923 build_old_libs=$enable_static
15925 # Whether or not to add -lc for building shared libraries.
15926 build_libtool_need_lc=$archive_cmds_need_lc_F77
15928 # Whether or not to disallow shared libs when runtime libs are static
15929 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15931 # Whether or not to optimize for fast installation.
15932 fast_install=$enable_fast_install
15935 host_alias=$host_alias
15939 # The build system.
15940 build_alias=$build_alias
15944 # An echo program that does not interpret backslashes.
15949 AR_FLAGS=$lt_AR_FLAGS
15954 # LTCC compiler flags.
15955 LTCFLAGS=$lt_LTCFLAGS
15957 # A language-specific compiler.
15958 CC=$lt_compiler_F77
15960 # Is the compiler the GNU C compiler?
15966 # The linker used to build libraries.
15969 # Whether we need hard or soft links.
15972 # A BSD-compatible nm program.
15975 # A symbol stripping program
15978 # Used to examine libraries when file_magic_cmd begins "file"
15979 MAGIC_CMD=$MAGIC_CMD
15981 # Used on cygwin: DLL creation program.
15984 # Used on cygwin: object dumper.
15987 # Used on cygwin: assembler.
15990 # The name of the directory that contains temporary libtool files.
15993 # How to create reloadable object files.
15994 reload_flag=$lt_reload_flag
15995 reload_cmds=$lt_reload_cmds
15997 # How to pass a linker flag through the compiler.
15998 wl=$lt_lt_prog_compiler_wl_F77
16000 # Object file suffix (normally "o").
16001 objext="$ac_objext"
16003 # Old archive suffix (normally "a").
16006 # Shared library suffix (normally ".so").
16007 shrext_cmds='$shrext_cmds'
16009 # Executable file suffix (normally "").
16012 # Additional compiler flags for building library objects.
16013 pic_flag=$lt_lt_prog_compiler_pic_F77
16016 # What is the maximum length of a command?
16017 max_cmd_len=$lt_cv_sys_max_cmd_len
16019 # Does compiler simultaneously support -c and -o options?
16020 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16022 # Must we lock files when doing compilation?
16023 need_locks=$lt_need_locks
16025 # Do we need the lib prefix for modules?
16026 need_lib_prefix=$need_lib_prefix
16028 # Do we need a version for libraries?
16029 need_version=$need_version
16031 # Whether dlopen is supported.
16032 dlopen_support=$enable_dlopen
16034 # Whether dlopen of programs is supported.
16035 dlopen_self=$enable_dlopen_self
16037 # Whether dlopen of statically linked programs is supported.
16038 dlopen_self_static=$enable_dlopen_self_static
16040 # Compiler flag to prevent dynamic linking.
16041 link_static_flag=$lt_lt_prog_compiler_static_F77
16043 # Compiler flag to turn off builtin functions.
16044 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16046 # Compiler flag to allow reflexive dlopens.
16047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16049 # Compiler flag to generate shared objects directly from archives.
16050 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16052 # Compiler flag to generate thread-safe objects.
16053 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16055 # Library versioning type.
16056 version_type=$version_type
16058 # Format of library name prefix.
16059 libname_spec=$lt_libname_spec
16061 # List of archive names. First name is the real one, the rest are links.
16062 # The last name is the one that the linker finds with -lNAME.
16063 library_names_spec=$lt_library_names_spec
16065 # The coded name of the library, if different from the real name.
16066 soname_spec=$lt_soname_spec
16068 # Commands used to build and install an old-style archive.
16070 old_archive_cmds=$lt_old_archive_cmds_F77
16071 old_postinstall_cmds=$lt_old_postinstall_cmds
16072 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16074 # Create an old-style archive from a shared archive.
16075 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16077 # Create a temporary old-style archive to link instead of a shared archive.
16078 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16080 # Commands used to build and install a shared archive.
16081 archive_cmds=$lt_archive_cmds_F77
16082 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16083 postinstall_cmds=$lt_postinstall_cmds
16084 postuninstall_cmds=$lt_postuninstall_cmds
16086 # Commands used to build a loadable module (assumed same as above if empty)
16087 module_cmds=$lt_module_cmds_F77
16088 module_expsym_cmds=$lt_module_expsym_cmds_F77
16090 # Commands to strip libraries.
16091 old_striplib=$lt_old_striplib
16092 striplib=$lt_striplib
16094 # Dependencies to place before the objects being linked to create a
16096 predep_objects=$lt_predep_objects_F77
16098 # Dependencies to place after the objects being linked to create a
16100 postdep_objects=$lt_postdep_objects_F77
16102 # Dependencies to place before the objects being linked to create a
16104 predeps=$lt_predeps_F77
16106 # Dependencies to place after the objects being linked to create a
16108 postdeps=$lt_postdeps_F77
16110 # The directories searched by this compiler when creating a shared
16112 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16114 # The library search path used internally by the compiler when linking
16115 # a shared library.
16116 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16118 # Method to check whether dependent libraries are shared objects.
16119 deplibs_check_method=$lt_deplibs_check_method
16121 # Command to use when deplibs_check_method == file_magic.
16122 file_magic_cmd=$lt_file_magic_cmd
16124 # Flag that allows shared libraries with undefined symbols to be built.
16125 allow_undefined_flag=$lt_allow_undefined_flag_F77
16127 # Flag that forces no undefined symbols.
16128 no_undefined_flag=$lt_no_undefined_flag_F77
16130 # Commands used to finish a libtool library installation in a directory.
16131 finish_cmds=$lt_finish_cmds
16133 # Same as above, but a single script fragment to be evaled but not shown.
16134 finish_eval=$lt_finish_eval
16136 # Take the output of nm and produce a listing of raw symbols and C names.
16137 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16139 # Transform the output of nm in a proper C declaration
16140 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16142 # Transform the output of nm in a C name address pair
16143 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16145 # This is the shared library runtime path variable.
16146 runpath_var=$runpath_var
16148 # This is the shared library path variable.
16149 shlibpath_var=$shlibpath_var
16151 # Is shlibpath searched before the hard-coded library search path?
16152 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16154 # How to hardcode a shared library path into an executable.
16155 hardcode_action=$hardcode_action_F77
16157 # Whether we should hardcode library paths into libraries.
16158 hardcode_into_libs=$hardcode_into_libs
16160 # Flag to hardcode \$libdir into a binary during linking.
16161 # This must work even if \$libdir does not exist.
16162 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16164 # If ld is used when linking, flag to hardcode \$libdir into
16165 # a binary during linking. This must work even if \$libdir does
16167 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16169 # Whether we need a single -rpath flag with a separated argument.
16170 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16172 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16173 # resulting binary.
16174 hardcode_direct=$hardcode_direct_F77
16176 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16177 # resulting binary.
16178 hardcode_minus_L=$hardcode_minus_L_F77
16180 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16181 # the resulting binary.
16182 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16184 # Set to yes if building a shared library automatically hardcodes DIR into the library
16185 # and all subsequent libraries and executables linked against it.
16186 hardcode_automatic=$hardcode_automatic_F77
16188 # Variables whose values should be saved in libtool wrapper scripts and
16189 # restored at relink time.
16190 variables_saved_for_relink="$variables_saved_for_relink"
16192 # Whether libtool must link a program against all its dependency libraries.
16193 link_all_deplibs=$link_all_deplibs_F77
16195 # Compile-time system search path for libraries
16196 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16198 # Run-time system search path for libraries
16199 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16201 # Fix the shell variable \$srcfile for the compiler.
16202 fix_srcfile_path=$lt_fix_srcfile_path
16204 # Set to yes if exported symbols are required.
16205 always_export_symbols=$always_export_symbols_F77
16207 # The commands to list exported symbols.
16208 export_symbols_cmds=$lt_export_symbols_cmds_F77
16210 # The commands to extract the exported symbol list from a shared archive.
16211 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16213 # Symbols that should not be listed in the preloaded symbols.
16214 exclude_expsyms=$lt_exclude_expsyms_F77
16216 # Symbols that must always be exported.
16217 include_expsyms=$lt_include_expsyms_F77
16219 # ### END LIBTOOL TAG CONFIG: $tagname
16225 # If there is no Makefile yet, we rely on a make rule to execute
16226 # `config.status --recheck' to rerun these tests and create the
16227 # libtool script then.
16228 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16229 if test -f "$ltmain_in"; then
16230 test -f Makefile && make "$ltmain"
16236 ac_cpp='$CPP $CPPFLAGS'
16237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16249 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16252 # Source file extension for Java test sources.
16255 # Object file extension for compiled Java test sources.
16259 # Code to be used in simple compile tests
16260 lt_simple_compile_test_code="class foo {}"
16262 # Code to be used in simple link tests
16263 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16265 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16267 # If no C compiler was specified, use CC.
16270 # If no C compiler flags were specified, use CFLAGS.
16271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16273 # Allow CC to be a program name with arguments.
16277 # save warnings/boilerplate of simple test code
16278 ac_outfile=conftest.$ac_objext
16279 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16280 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16281 _lt_compiler_boilerplate=`cat conftest.err`
16284 ac_outfile=conftest.$ac_objext
16285 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16286 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16287 _lt_linker_boilerplate=`cat conftest.err`
16291 # Allow CC to be a program name with arguments.
16296 for cc_temp in $compiler""; do
16298 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16299 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16304 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16307 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16308 archive_cmds_need_lc_GCJ=no
16310 old_archive_cmds_GCJ=$old_archive_cmds
16313 lt_prog_compiler_no_builtin_flag_GCJ=
16315 if test "$GCC" = yes; then
16316 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16320 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16321 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16322 $as_echo_n "(cached) " >&6
16324 lt_cv_prog_compiler_rtti_exceptions=no
16325 ac_outfile=conftest.$ac_objext
16326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16327 lt_compiler_flag="-fno-rtti -fno-exceptions"
16328 # Insert the option either (1) after the last *FLAGS variable, or
16329 # (2) before a word containing "conftest.", or (3) at the end.
16330 # Note that $ac_compile itself does not contain backslashes and begins
16331 # with a dollar sign (not a hyphen), so the echo should work correctly.
16332 # The option is referenced via a variable to avoid confusing sed.
16333 lt_compile=`echo "$ac_compile" | $SED \
16334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16336 -e 's:$: $lt_compiler_flag:'`
16337 (eval echo "\"\$as_me:16337: $lt_compile\"" >&5)
16338 (eval "$lt_compile" 2>conftest.err)
16340 cat conftest.err >&5
16341 echo "$as_me:16341: \$? = $ac_status" >&5
16342 if (exit $ac_status) && test -s "$ac_outfile"; then
16343 # The compiler can only warn and ignore the option if not recognized
16344 # So say no if there are warnings other than the usual output.
16345 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16348 lt_cv_prog_compiler_rtti_exceptions=yes
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16355 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16357 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16358 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16365 lt_prog_compiler_wl_GCJ=
16366 lt_prog_compiler_pic_GCJ=
16367 lt_prog_compiler_static_GCJ=
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16370 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16372 if test "$GCC" = yes; then
16373 lt_prog_compiler_wl_GCJ='-Wl,'
16374 lt_prog_compiler_static_GCJ='-static'
16378 # All AIX code is PIC.
16379 if test "$host_cpu" = ia64; then
16380 # AIX 5 now supports IA64 processor
16381 lt_prog_compiler_static_GCJ='-Bstatic'
16386 # FIXME: we need at least 68020 code to build shared libraries, but
16387 # adding the `-m68020' flag to GCC prevents building anything better,
16389 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16392 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16393 # PIC is the default for these OSes.
16396 mingw* | cygwin* | pw32* | os2*)
16397 # This hack is so that the source file can tell whether it is being
16398 # built for inclusion in a dll (and should export symbols for example).
16399 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16400 # (--disable-auto-import) libraries
16404 darwin* | rhapsody*)
16405 # PIC is the default on this platform
16406 # Common symbols not allowed in MH_DYLIB files
16407 lt_prog_compiler_pic_GCJ='-fno-common'
16411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16412 # Instead, we relocate shared libraries at runtime.
16416 # Just because we use GCC doesn't mean we suddenly get shared libraries
16417 # on systems that don't support them.
16418 lt_prog_compiler_can_build_shared_GCJ=no
16423 if test -d /usr/nec; then
16424 lt_prog_compiler_pic_GCJ=-Kconform_pic
16429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16430 # not for PA HP-UX.
16436 lt_prog_compiler_pic_GCJ='-fPIC'
16442 lt_prog_compiler_pic_GCJ='-fPIC'
16446 # PORTME Check for flag to pass linker flags through the system compiler.
16449 lt_prog_compiler_wl_GCJ='-Wl,'
16450 if test "$host_cpu" = ia64; then
16451 # AIX 5 now supports IA64 processor
16452 lt_prog_compiler_static_GCJ='-Bstatic'
16454 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16458 # PIC is the default on this platform
16459 # Common symbols not allowed in MH_DYLIB files
16460 case $cc_basename in
16462 lt_prog_compiler_pic_GCJ='-qnocommon'
16463 lt_prog_compiler_wl_GCJ='-Wl,'
16468 mingw* | cygwin* | pw32* | os2*)
16469 # This hack is so that the source file can tell whether it is being
16470 # built for inclusion in a dll (and should export symbols for example).
16474 hpux9* | hpux10* | hpux11*)
16475 lt_prog_compiler_wl_GCJ='-Wl,'
16476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16477 # not for PA HP-UX.
16483 lt_prog_compiler_pic_GCJ='+Z'
16486 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16487 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16490 irix5* | irix6* | nonstopux*)
16491 lt_prog_compiler_wl_GCJ='-Wl,'
16492 # PIC (with -KPIC) is the default.
16493 lt_prog_compiler_static_GCJ='-non_shared'
16497 lt_prog_compiler_pic_GCJ='-KPIC'
16498 lt_prog_compiler_static_GCJ='-Bstatic'
16501 linux* | k*bsd*-gnu)
16502 case $cc_basename in
16504 lt_prog_compiler_wl_GCJ='-Wl,'
16505 lt_prog_compiler_pic_GCJ='-KPIC'
16506 lt_prog_compiler_static_GCJ='-static'
16508 pgcc* | pgf77* | pgf90* | pgf95*)
16509 # Portland Group compilers (*not* the Pentium gcc compiler,
16510 # which looks to be a dead project)
16511 lt_prog_compiler_wl_GCJ='-Wl,'
16512 lt_prog_compiler_pic_GCJ='-fpic'
16513 lt_prog_compiler_static_GCJ='-Bstatic'
16516 lt_prog_compiler_wl_GCJ='-Wl,'
16517 # All Alpha code is PIC.
16518 lt_prog_compiler_static_GCJ='-non_shared'
16521 case `$CC -V 2>&1 | sed 5q` in
16524 lt_prog_compiler_pic_GCJ='-KPIC'
16525 lt_prog_compiler_static_GCJ='-Bstatic'
16526 lt_prog_compiler_wl_GCJ='-Wl,'
16529 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16530 lt_prog_compiler_pic_GCJ='-KPIC'
16531 lt_prog_compiler_static_GCJ='-Bstatic'
16532 lt_prog_compiler_wl_GCJ=''
16539 osf3* | osf4* | osf5*)
16540 lt_prog_compiler_wl_GCJ='-Wl,'
16541 # All OSF/1 code is PIC.
16542 lt_prog_compiler_static_GCJ='-non_shared'
16546 lt_prog_compiler_static_GCJ='-non_shared'
16550 lt_prog_compiler_pic_GCJ='-KPIC'
16551 lt_prog_compiler_static_GCJ='-Bstatic'
16552 case $cc_basename in
16553 f77* | f90* | f95*)
16554 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16556 lt_prog_compiler_wl_GCJ='-Wl,';;
16561 lt_prog_compiler_wl_GCJ='-Qoption ld '
16562 lt_prog_compiler_pic_GCJ='-PIC'
16563 lt_prog_compiler_static_GCJ='-Bstatic'
16566 sysv4 | sysv4.2uw2* | sysv4.3*)
16567 lt_prog_compiler_wl_GCJ='-Wl,'
16568 lt_prog_compiler_pic_GCJ='-KPIC'
16569 lt_prog_compiler_static_GCJ='-Bstatic'
16573 if test -d /usr/nec ;then
16574 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16575 lt_prog_compiler_static_GCJ='-Bstatic'
16579 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16580 lt_prog_compiler_wl_GCJ='-Wl,'
16581 lt_prog_compiler_pic_GCJ='-KPIC'
16582 lt_prog_compiler_static_GCJ='-Bstatic'
16586 lt_prog_compiler_wl_GCJ='-Wl,'
16587 lt_prog_compiler_can_build_shared_GCJ=no
16591 lt_prog_compiler_pic_GCJ='-pic'
16592 lt_prog_compiler_static_GCJ='-Bstatic'
16596 lt_prog_compiler_can_build_shared_GCJ=no
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16602 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16605 # Check to make sure the PIC flag actually works.
16607 if test -n "$lt_prog_compiler_pic_GCJ"; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16610 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16611 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16612 $as_echo_n "(cached) " >&6
16614 lt_cv_prog_compiler_pic_works_GCJ=no
16615 ac_outfile=conftest.$ac_objext
16616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16617 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16618 # Insert the option either (1) after the last *FLAGS variable, or
16619 # (2) before a word containing "conftest.", or (3) at the end.
16620 # Note that $ac_compile itself does not contain backslashes and begins
16621 # with a dollar sign (not a hyphen), so the echo should work correctly.
16622 # The option is referenced via a variable to avoid confusing sed.
16623 lt_compile=`echo "$ac_compile" | $SED \
16624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16626 -e 's:$: $lt_compiler_flag:'`
16627 (eval echo "\"\$as_me:16627: $lt_compile\"" >&5)
16628 (eval "$lt_compile" 2>conftest.err)
16630 cat conftest.err >&5
16631 echo "$as_me:16631: \$? = $ac_status" >&5
16632 if (exit $ac_status) && test -s "$ac_outfile"; then
16633 # The compiler can only warn and ignore the option if not recognized
16634 # So say no if there are warnings other than the usual output.
16635 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16638 lt_cv_prog_compiler_pic_works_GCJ=yes
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16645 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16647 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16648 case $lt_prog_compiler_pic_GCJ in
16650 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16653 lt_prog_compiler_pic_GCJ=
16654 lt_prog_compiler_can_build_shared_GCJ=no
16659 # For platforms which do not support PIC, -DPIC is meaningless:
16661 lt_prog_compiler_pic_GCJ=
16664 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16669 # Check to make sure the static flag actually works.
16671 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16673 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16674 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16675 $as_echo_n "(cached) " >&6
16677 lt_cv_prog_compiler_static_works_GCJ=no
16678 save_LDFLAGS="$LDFLAGS"
16679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16682 # The linker can only warn and ignore the option if not recognized
16683 # So say no if there are warnings
16684 if test -s conftest.err; then
16685 # Append any errors to the config.log.
16686 cat conftest.err 1>&5
16687 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16689 if diff conftest.exp conftest.er2 >/dev/null; then
16690 lt_cv_prog_compiler_static_works_GCJ=yes
16693 lt_cv_prog_compiler_static_works_GCJ=yes
16697 LDFLAGS="$save_LDFLAGS"
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16701 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16703 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16706 lt_prog_compiler_static_GCJ=
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16711 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16712 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16713 $as_echo_n "(cached) " >&6
16715 lt_cv_prog_compiler_c_o_GCJ=no
16716 $rm -r conftest 2>/dev/null
16720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16722 lt_compiler_flag="-o out/conftest2.$ac_objext"
16723 # Insert the option either (1) after the last *FLAGS variable, or
16724 # (2) before a word containing "conftest.", or (3) at the end.
16725 # Note that $ac_compile itself does not contain backslashes and begins
16726 # with a dollar sign (not a hyphen), so the echo should work correctly.
16727 lt_compile=`echo "$ac_compile" | $SED \
16728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16730 -e 's:$: $lt_compiler_flag:'`
16731 (eval echo "\"\$as_me:16731: $lt_compile\"" >&5)
16732 (eval "$lt_compile" 2>out/conftest.err)
16734 cat out/conftest.err >&5
16735 echo "$as_me:16735: \$? = $ac_status" >&5
16736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16738 # The compiler can only warn and ignore the option if not recognized
16739 # So say no if there are warnings
16740 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16743 lt_cv_prog_compiler_c_o_GCJ=yes
16748 # SGI C++ compiler will create directory out/ii_files/ for
16749 # template instantiation
16750 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16751 $rm out/* && rmdir out
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16758 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16761 hard_links="nottested"
16762 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16763 # do not overwrite the value of need_locks provided by the user
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16765 $as_echo_n "checking if we can lock with hard links... " >&6; }
16768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16770 ln conftest.a conftest.b 2>&5 || hard_links=no
16771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16773 $as_echo "$hard_links" >&6; }
16774 if test "$hard_links" = no; then
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16776 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16784 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16787 allow_undefined_flag_GCJ=
16788 enable_shared_with_static_runtimes_GCJ=no
16790 archive_expsym_cmds_GCJ=
16791 old_archive_From_new_cmds_GCJ=
16792 old_archive_from_expsyms_cmds_GCJ=
16793 export_dynamic_flag_spec_GCJ=
16794 whole_archive_flag_spec_GCJ=
16795 thread_safe_flag_spec_GCJ=
16796 hardcode_libdir_flag_spec_GCJ=
16797 hardcode_libdir_flag_spec_ld_GCJ=
16798 hardcode_libdir_separator_GCJ=
16799 hardcode_direct_GCJ=no
16800 hardcode_minus_L_GCJ=no
16801 hardcode_shlibpath_var_GCJ=unsupported
16802 link_all_deplibs_GCJ=unknown
16803 hardcode_automatic_GCJ=no
16805 module_expsym_cmds_GCJ=
16806 always_export_symbols_GCJ=no
16807 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16808 # include_expsyms should be a list of space-separated symbols to be *always*
16809 # included in the symbol list
16810 include_expsyms_GCJ=
16811 # exclude_expsyms can be an extended regexp of symbols to exclude
16812 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16813 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16814 # as well as any symbol that contains `d'.
16815 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16816 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16817 # platforms (ab)use it in PIC code, but their linkers get confused if
16818 # the symbol is explicitly referenced. Since portable code cannot
16819 # rely on this symbol name, it's probably fine to never include it in
16820 # preloaded symbol tables.
16821 # Exclude shared library initialization/finalization symbols.
16822 extract_expsyms_cmds=
16823 # Just being paranoid about ensuring that cc_basename is set.
16824 for cc_temp in $compiler""; do
16826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16832 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16835 cygwin* | mingw* | pw32*)
16836 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16837 # When not using gcc, we currently assume that we are using
16838 # Microsoft Visual C++.
16839 if test "$GCC" != yes; then
16844 # we just hope/assume this is gcc and not c89 (= MSVC++)
16853 if test "$with_gnu_ld" = yes; then
16854 # If archive_cmds runs LD, not CC, wlarc should be empty
16857 # Set some defaults for GNU ld with shared library support. These
16858 # are reset later if shared libraries are not supported. Putting them
16859 # here allows them to be overridden if necessary.
16860 runpath_var=LD_RUN_PATH
16861 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16862 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16863 # ancient GNU ld didn't support --whole-archive et. al.
16864 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16865 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16867 whole_archive_flag_spec_GCJ=
16869 supports_anon_versioning=no
16870 case `$LD -v 2>/dev/null` in
16871 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16872 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16873 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16874 *\ 2.11.*) ;; # other 2.11 versions
16875 *) supports_anon_versioning=yes ;;
16878 # See if GNU ld supports shared libraries.
16881 # On AIX/PPC, the GNU linker is very broken
16882 if test "$host_cpu" != ia64; then
16886 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16887 *** to be unable to reliably create shared libraries on AIX.
16888 *** Therefore, libtool is disabling shared libraries support. If you
16889 *** really care for shared libraries, you may want to modify your PATH
16890 *** so that a non-GNU linker is found, and then restart.
16897 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)'
16898 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16899 hardcode_minus_L_GCJ=yes
16901 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16902 # that the semantics of dynamic libraries on AmigaOS, at least up
16903 # to version 4, is to share data among multiple programs linked
16904 # with the same dynamic library. Since this doesn't match the
16905 # behavior of shared libraries on other platforms, we can't use
16911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16912 allow_undefined_flag_GCJ=unsupported
16913 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16914 # support --undefined. This deserves some investigation. FIXME
16915 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16921 cygwin* | mingw* | pw32*)
16922 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16923 # as there is no search path for DLLs.
16924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16925 allow_undefined_flag_GCJ=unsupported
16926 always_export_symbols_GCJ=no
16927 enable_shared_with_static_runtimes_GCJ=yes
16928 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16930 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16931 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16932 # If the export-symbols file already is a .def file (1st line
16933 # is EXPORTS), use it as is; otherwise, prepend...
16934 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16935 cp $export_symbols $output_objdir/$soname.def;
16937 echo EXPORTS > $output_objdir/$soname.def;
16938 cat $export_symbols >> $output_objdir/$soname.def;
16940 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16947 hardcode_direct_GCJ=no
16948 hardcode_shlibpath_var_GCJ=no
16949 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16950 export_dynamic_flag_spec_GCJ='${wl}-E'
16951 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16952 # Instead, shared libraries are loaded at an image base (0x10000000 by
16953 # default) and relocated if they conflict, which is a slow very memory
16954 # consuming and fragmenting process. To avoid this, we pick a random,
16955 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16956 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16957 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'
16958 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'
16961 gnu* | linux* | k*bsd*-gnu)
16962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16964 case $cc_basename,$host_cpu in
16965 pgcc*) # Portland Group C compiler
16966 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'
16967 tmp_addflag=' $pic_flag'
16969 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16970 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'
16971 tmp_addflag=' $pic_flag -Mnomain' ;;
16972 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16973 tmp_addflag=' -i_dynamic' ;;
16974 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16975 tmp_addflag=' -i_dynamic -nofor_main' ;;
16976 ifc* | ifort*) # Intel Fortran compiler
16977 tmp_addflag=' -nofor_main' ;;
16979 case `$CC -V 2>&1 | sed 5q` in
16980 *Sun\ C*) # Sun C 5.9
16981 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16982 tmp_sharedflag='-G' ;;
16983 *Sun\ F*) # Sun Fortran 8.3
16984 tmp_sharedflag='-G' ;;
16986 tmp_sharedflag='-shared' ;;
16988 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16990 if test $supports_anon_versioning = yes; then
16991 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16993 $echo "local: *; };" >> $output_objdir/$libname.ver~
16994 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16996 link_all_deplibs_GCJ=no
17002 netbsd* | netbsdelf*-gnu)
17003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17004 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17007 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17008 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17013 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17017 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17018 *** create shared libraries on Solaris systems. Therefore, libtool
17019 *** is disabling shared libraries support. We urge you to upgrade GNU
17020 *** binutils to release 2.9.1 or newer. Another option is to modify
17021 *** your PATH or compiler configuration so that the native linker is
17022 *** used, and then restart.
17025 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17026 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17027 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17034 case `$LD -v 2>&1` in
17035 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17039 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17040 *** reliably create shared libraries on SCO systems. Therefore, libtool
17041 *** is disabling shared libraries support. We urge you to upgrade GNU
17042 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17043 *** your PATH or compiler configuration so that the native linker is
17044 *** used, and then restart.
17049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17050 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17051 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17052 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17061 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17063 hardcode_direct_GCJ=yes
17064 hardcode_shlibpath_var_GCJ=no
17068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17069 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17070 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17077 if test "$ld_shlibs_GCJ" = no; then
17079 hardcode_libdir_flag_spec_GCJ=
17080 export_dynamic_flag_spec_GCJ=
17081 whole_archive_flag_spec_GCJ=
17084 # PORTME fill in a description of your system's linker (not GNU ld)
17087 allow_undefined_flag_GCJ=unsupported
17088 always_export_symbols_GCJ=yes
17089 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'
17090 # Note: this linker hardcodes the directories in LIBPATH if there
17091 # are no directories specified by -L.
17092 hardcode_minus_L_GCJ=yes
17093 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17094 # Neither direct hardcoding nor static linking is supported with a
17096 hardcode_direct_GCJ=unsupported
17101 if test "$host_cpu" = ia64; then
17102 # On IA64, the linker does run time linking by default, so we don't
17103 # have to do anything special.
17104 aix_use_runtimelinking=no
17105 exp_sym_flag='-Bexport'
17108 # If we're using GNU nm, then we don't want the "-C" option.
17109 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17110 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17111 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'
17113 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'
17115 aix_use_runtimelinking=no
17117 # Test if we are trying to use run time linking or normal
17118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17119 # need to do runtime linking.
17120 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17121 for ld_flag in $LDFLAGS; do
17122 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17123 aix_use_runtimelinking=yes
17130 exp_sym_flag='-bexport'
17131 no_entry_flag='-bnoentry'
17134 # When large executables or shared objects are built, AIX ld can
17135 # have problems creating the table of contents. If linking a library
17136 # or program results in "error TOC overflow" add -mminimal-toc to
17137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17140 archive_cmds_GCJ=''
17141 hardcode_direct_GCJ=yes
17142 hardcode_libdir_separator_GCJ=':'
17143 link_all_deplibs_GCJ=yes
17145 if test "$GCC" = yes; then
17146 case $host_os in aix4.[012]|aix4.[012].*)
17147 # We only want to do this on AIX 4.2 and lower, the check
17148 # below for broken collect2 doesn't work under 4.3+
17149 collect2name=`${CC} -print-prog-name=collect2`
17150 if test -f "$collect2name" && \
17151 strings "$collect2name" | grep resolve_lib_name >/dev/null
17153 # We have reworked collect2
17156 # We have old collect2
17157 hardcode_direct_GCJ=unsupported
17158 # It fails to find uninstalled libraries when the uninstalled
17159 # path is not listed in the libpath. Setting hardcode_minus_L
17160 # to unsupported forces relinking
17161 hardcode_minus_L_GCJ=yes
17162 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17163 hardcode_libdir_separator_GCJ=
17167 shared_flag='-shared'
17168 if test "$aix_use_runtimelinking" = yes; then
17169 shared_flag="$shared_flag "'${wl}-G'
17173 if test "$host_cpu" = ia64; then
17174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17175 # chokes on -Wl,-G. The following line is correct:
17178 if test "$aix_use_runtimelinking" = yes; then
17179 shared_flag='${wl}-G'
17181 shared_flag='${wl}-bM:SRE'
17186 # It seems that -bexpall does not export symbols beginning with
17187 # underscore (_), so it is better to generate a list of symbols to export.
17188 always_export_symbols_GCJ=yes
17189 if test "$aix_use_runtimelinking" = yes; then
17190 # Warning - without using the other runtime loading flags (-brtl),
17191 # -berok will link without error, but may produce a broken library.
17192 allow_undefined_flag_GCJ='-berok'
17193 # Determine the default libpath from the value encoded in an empty executable.
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17205 if ac_fn_c_try_link "$LINENO"; then :
17207 lt_aix_libpath_sed='
17208 /Import File Strings/,/^$/ {
17214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17215 # Check for a 64-bit object if we didn't find anything.
17216 if test -z "$aix_libpath"; then
17217 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17220 rm -f core conftest.err conftest.$ac_objext \
17221 conftest$ac_exeext conftest.$ac_ext
17222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17224 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17225 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"
17227 if test "$host_cpu" = ia64; then
17228 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17229 allow_undefined_flag_GCJ="-z nodefs"
17230 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"
17232 # Determine the default libpath from the value encoded in an empty executable.
17233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234 /* end confdefs.h. */
17244 if ac_fn_c_try_link "$LINENO"; then :
17246 lt_aix_libpath_sed='
17247 /Import File Strings/,/^$/ {
17253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17254 # Check for a 64-bit object if we didn't find anything.
17255 if test -z "$aix_libpath"; then
17256 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17259 rm -f core conftest.err conftest.$ac_objext \
17260 conftest$ac_exeext conftest.$ac_ext
17261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17263 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17264 # Warning - without using the other run time loading flags,
17265 # -berok will link without error, but may produce a broken library.
17266 no_undefined_flag_GCJ=' ${wl}-bernotok'
17267 allow_undefined_flag_GCJ=' ${wl}-berok'
17268 # Exported symbols can be pulled into shared objects from archives
17269 whole_archive_flag_spec_GCJ='$convenience'
17270 archive_cmds_need_lc_GCJ=yes
17271 # This is similar to how AIX traditionally builds its shared libraries.
17272 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'
17278 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)'
17279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17280 hardcode_minus_L_GCJ=yes
17281 # see comment about different semantics on the GNU ld section
17286 export_dynamic_flag_spec_GCJ=-rdynamic
17289 cygwin* | mingw* | pw32*)
17290 # When not using gcc, we currently assume that we are using
17291 # Microsoft Visual C++.
17292 # hardcode_libdir_flag_spec is actually meaningless, as there is
17293 # no search path for DLLs.
17294 hardcode_libdir_flag_spec_GCJ=' '
17295 allow_undefined_flag_GCJ=unsupported
17296 # Tell ltmain to make .lib files, not .a files.
17298 # Tell ltmain to make .dll files, not .so files.
17300 # FIXME: Setting linknames here is a bad hack.
17301 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17302 # The linker will automatically build a .lib file if we build a DLL.
17303 old_archive_From_new_cmds_GCJ='true'
17304 # FIXME: Should let the user specify the lib program.
17305 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17306 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17307 enable_shared_with_static_runtimes_GCJ=yes
17310 darwin* | rhapsody*)
17312 rhapsody* | darwin1.[012])
17313 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17316 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17317 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17319 case ${MACOSX_DEPLOYMENT_TARGET} in
17321 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17324 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17330 archive_cmds_need_lc_GCJ=no
17331 hardcode_direct_GCJ=no
17332 hardcode_automatic_GCJ=yes
17333 hardcode_shlibpath_var_GCJ=unsupported
17334 whole_archive_flag_spec_GCJ=''
17335 link_all_deplibs_GCJ=yes
17336 if test "$GCC" = yes ; then
17337 output_verbose_link_cmd='echo'
17338 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17339 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17340 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17341 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17343 case $cc_basename in
17345 output_verbose_link_cmd='echo'
17346 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17347 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17348 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17349 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17350 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}'
17360 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17362 hardcode_shlibpath_var_GCJ=no
17369 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17370 # support. Future versions do this automatically, but an explicit c++rt0.o
17371 # does not break anything, and helps significantly (at the cost of a little
17374 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17375 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17376 hardcode_direct_GCJ=yes
17377 hardcode_shlibpath_var_GCJ=no
17380 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17382 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17383 hardcode_direct_GCJ=yes
17384 hardcode_minus_L_GCJ=yes
17385 hardcode_shlibpath_var_GCJ=no
17388 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17389 freebsd* | dragonfly*)
17390 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17391 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17392 hardcode_direct_GCJ=yes
17393 hardcode_shlibpath_var_GCJ=no
17397 if test "$GCC" = yes; then
17398 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'
17400 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'
17402 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17403 hardcode_libdir_separator_GCJ=:
17404 hardcode_direct_GCJ=yes
17406 # hardcode_minus_L: Not really in the search PATH,
17407 # but as the default location of the library.
17408 hardcode_minus_L_GCJ=yes
17409 export_dynamic_flag_spec_GCJ='${wl}-E'
17413 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17414 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17416 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17418 if test "$with_gnu_ld" = no; then
17419 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17420 hardcode_libdir_separator_GCJ=:
17422 hardcode_direct_GCJ=yes
17423 export_dynamic_flag_spec_GCJ='${wl}-E'
17425 # hardcode_minus_L: Not really in the search PATH,
17426 # but as the default location of the library.
17427 hardcode_minus_L_GCJ=yes
17432 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17435 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17438 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17441 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17447 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17450 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17453 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17457 if test "$with_gnu_ld" = no; then
17458 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17459 hardcode_libdir_separator_GCJ=:
17463 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17464 hardcode_direct_GCJ=no
17465 hardcode_shlibpath_var_GCJ=no
17468 hardcode_direct_GCJ=yes
17469 export_dynamic_flag_spec_GCJ='${wl}-E'
17471 # hardcode_minus_L: Not really in the search PATH,
17472 # but as the default location of the library.
17473 hardcode_minus_L_GCJ=yes
17479 irix5* | irix6* | nonstopux*)
17480 if test "$GCC" = yes; then
17481 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'
17483 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'
17484 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17486 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17487 hardcode_libdir_separator_GCJ=:
17488 link_all_deplibs_GCJ=yes
17491 netbsd* | netbsdelf*-gnu)
17492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17493 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17495 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17497 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17498 hardcode_direct_GCJ=yes
17499 hardcode_shlibpath_var_GCJ=no
17503 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17504 hardcode_direct_GCJ=yes
17505 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17506 hardcode_libdir_separator_GCJ=:
17507 hardcode_shlibpath_var_GCJ=no
17511 if test -f /usr/libexec/ld.so; then
17512 hardcode_direct_GCJ=yes
17513 hardcode_shlibpath_var_GCJ=no
17514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17515 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17516 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17517 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17518 export_dynamic_flag_spec_GCJ='${wl}-E'
17521 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17522 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17523 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17526 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17527 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17537 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17538 hardcode_minus_L_GCJ=yes
17539 allow_undefined_flag_GCJ=unsupported
17540 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'
17541 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17545 if test "$GCC" = yes; then
17546 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17547 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'
17549 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17550 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'
17552 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17553 hardcode_libdir_separator_GCJ=:
17556 osf4* | osf5*) # as osf3* with the addition of -msym flag
17557 if test "$GCC" = yes; then
17558 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17559 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'
17560 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17562 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17563 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'
17564 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~
17565 $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'
17567 # Both c and cxx compiler support -rpath directly
17568 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17570 hardcode_libdir_separator_GCJ=:
17574 no_undefined_flag_GCJ=' -z text'
17575 if test "$GCC" = yes; then
17577 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17578 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17579 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17582 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17583 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17584 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17586 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17587 hardcode_shlibpath_var_GCJ=no
17589 solaris2.[0-5] | solaris2.[0-5].*) ;;
17591 # The compiler driver will combine and reorder linker options,
17592 # but understands `-z linker_flag'. GCC discards it without `$wl',
17593 # but is careful enough not to reorder.
17594 # Supported since Solaris 2.6 (maybe 2.5.1?)
17595 if test "$GCC" = yes; then
17596 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17598 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17602 link_all_deplibs_GCJ=yes
17606 if test "x$host_vendor" = xsequent; then
17607 # Use $CC to link under sequent, because it throws in some extra .o
17608 # files that make .init and .fini sections work.
17609 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17614 hardcode_direct_GCJ=yes
17615 hardcode_minus_L_GCJ=yes
17616 hardcode_shlibpath_var_GCJ=no
17620 case $host_vendor in
17622 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17623 hardcode_direct_GCJ=yes # is this really true???
17626 ## LD is ld it makes a PLAMLIB
17627 ## CC just makes a GrossModule.
17628 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17629 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17630 hardcode_direct_GCJ=no
17633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17634 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17637 runpath_var='LD_RUN_PATH'
17638 hardcode_shlibpath_var_GCJ=no
17642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643 hardcode_shlibpath_var_GCJ=no
17644 export_dynamic_flag_spec_GCJ='-Bexport'
17648 if test -d /usr/nec; then
17649 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17650 hardcode_shlibpath_var_GCJ=no
17651 runpath_var=LD_RUN_PATH
17652 hardcode_runpath_var=yes
17657 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17658 no_undefined_flag_GCJ='${wl}-z,text'
17659 archive_cmds_need_lc_GCJ=no
17660 hardcode_shlibpath_var_GCJ=no
17661 runpath_var='LD_RUN_PATH'
17663 if test "$GCC" = yes; then
17664 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17665 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17667 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17668 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17672 sysv5* | sco3.2v5* | sco5v6*)
17673 # Note: We can NOT use -z defs as we might desire, because we do not
17674 # link with -lc, and that would cause any symbols used from libc to
17675 # always be unresolved, which means just about no library would
17676 # ever link correctly. If we're not using GNU ld we use -z text
17677 # though, which does catch some bad symbols but isn't as heavy-handed
17679 no_undefined_flag_GCJ='${wl}-z,text'
17680 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17681 archive_cmds_need_lc_GCJ=no
17682 hardcode_shlibpath_var_GCJ=no
17683 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17684 hardcode_libdir_separator_GCJ=':'
17685 link_all_deplibs_GCJ=yes
17686 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17687 runpath_var='LD_RUN_PATH'
17689 if test "$GCC" = yes; then
17690 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17691 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17693 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17694 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17700 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17701 hardcode_shlibpath_var_GCJ=no
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17711 $as_echo "$ld_shlibs_GCJ" >&6; }
17712 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17715 # Do we need to explicitly link libc?
17717 case "x$archive_cmds_need_lc_GCJ" in
17719 # Assume -lc should be added
17720 archive_cmds_need_lc_GCJ=yes
17722 if test "$enable_shared" = yes && test "$GCC" = yes; then
17723 case $archive_cmds_GCJ in
17725 # FIXME: we may have to deal with multi-command sequences.
17728 # Test whether the compiler implicitly links with -lc since on some
17729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17730 # to ld, don't add -lc before -lgcc.
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17732 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17737 (eval $ac_compile) 2>&5
17739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17740 test $ac_status = 0; } 2>conftest.err; then
17743 libobjs=conftest.$ac_objext
17745 wl=$lt_prog_compiler_wl_GCJ
17746 pic_flag=$lt_prog_compiler_pic_GCJ
17752 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17753 allow_undefined_flag_GCJ=
17754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17755 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17758 test $ac_status = 0; }
17760 archive_cmds_need_lc_GCJ=no
17762 archive_cmds_need_lc_GCJ=yes
17764 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17766 cat conftest.err 1>&5
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17770 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17778 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17779 library_names_spec=
17780 libname_spec='lib$name'
17784 postuninstall_cmds=
17788 shlibpath_overrides_runpath=unknown
17790 dynamic_linker="$host_os ld.so"
17791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17793 need_lib_prefix=unknown
17794 hardcode_into_libs=no
17796 # when you set need_version to no, make sure it does not cause -set_version
17797 # flags to be left without arguments
17798 need_version=unknown
17803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17804 shlibpath_var=LIBPATH
17806 # AIX 3 has no versioning support, so we append a major version to the name.
17807 soname_spec='${libname}${release}${shared_ext}$major'
17814 hardcode_into_libs=yes
17815 if test "$host_cpu" = ia64; then
17816 # AIX 5 supports IA64
17817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17818 shlibpath_var=LD_LIBRARY_PATH
17820 # With GCC up to 2.95.x, collect2 would create an import file
17821 # for dependence libraries. The import file would start with
17822 # the line `#! .'. This would cause the generated library to
17823 # depend on `.', always an invalid library. This was fixed in
17824 # development snapshots of GCC prior to 3.0.
17826 aix4 | aix4.[01] | aix4.[01].*)
17827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17829 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17832 can_build_shared=no
17836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17837 # soname into executable. Probably we can add versioning support to
17838 # collect2, so additional links can be useful in future.
17839 if test "$aix_use_runtimelinking" = yes; then
17840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17841 # instead of lib<name>.a to let people know that these are not
17842 # typical AIX shared libraries.
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17845 # We preserve .a as extension for shared libraries through AIX4.2
17846 # and later when we are not doing run time linking.
17847 library_names_spec='${libname}${release}.a $libname.a'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17850 shlibpath_var=LIBPATH
17855 library_names_spec='$libname.ixlibrary $libname.a'
17856 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17857 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'
17861 library_names_spec='${libname}${shared_ext}'
17862 dynamic_linker="$host_os ld.so"
17863 shlibpath_var=LIBRARY_PATH
17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870 soname_spec='${libname}${release}${shared_ext}$major'
17871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17872 shlibpath_var=LD_LIBRARY_PATH
17873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17875 # the default ld.so.conf also contains /usr/contrib/lib and
17876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17877 # libtool to hard-code these into programs
17880 cygwin* | mingw* | pw32*)
17881 version_type=windows
17886 case $GCC,$host_os in
17887 yes,cygwin* | yes,mingw* | yes,pw32*)
17888 library_names_spec='$libname.dll.a'
17889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17890 postinstall_cmds='base_file=`basename \${file}`~
17891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17892 dldir=$destdir/`dirname \$dlpath`~
17893 test -d \$dldir || mkdir -p \$dldir~
17894 $install_prog $dir/$dlname \$dldir/$dlname~
17895 chmod a+x \$dldir/$dlname'
17896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17897 dlpath=$dir/\$dldll~
17899 shlibpath_overrides_runpath=yes
17903 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17904 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17905 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17908 # MinGW DLLs use traditional 'lib' prefix
17909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17910 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17911 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17912 # It is most probably a Windows format PATH printed by
17913 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17914 # path with ; separators, and with drive letters. We can handle the
17915 # drive letters (cygwin fileutils understands them), so leave them,
17916 # especially as we might pass files found there to a mingw objdump,
17917 # which wouldn't understand a cygwinified path. Ahh.
17918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17924 # pw32 DLLs use 'pw' prefix rather than 'lib'
17925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17931 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17934 dynamic_linker='Win32 ld.exe'
17935 # FIXME: first we should search . and the directory the executable is in
17939 darwin* | rhapsody*)
17940 dynamic_linker="$host_os dyld"
17941 version_type=darwin
17944 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17945 soname_spec='${libname}${release}${major}$shared_ext'
17946 shlibpath_overrides_runpath=yes
17947 shlibpath_var=DYLD_LIBRARY_PATH
17948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17950 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17958 soname_spec='${libname}${release}${shared_ext}$major'
17959 shlibpath_var=LD_LIBRARY_PATH
17966 freebsd* | dragonfly*)
17967 # DragonFly does not have aout. When/if they implement a new
17968 # versioning mechanism, adjust this.
17969 if test -x /usr/bin/objformat; then
17970 objformat=`/usr/bin/objformat`
17973 freebsd[123]*) objformat=aout ;;
17974 *) objformat=elf ;;
17977 version_type=freebsd-$objformat
17978 case $version_type in
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17989 shlibpath_var=LD_LIBRARY_PATH
17992 shlibpath_overrides_runpath=yes
17994 freebsd3.[01]* | freebsdelf3.[01]*)
17995 shlibpath_overrides_runpath=yes
17996 hardcode_into_libs=yes
17998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18000 shlibpath_overrides_runpath=no
18001 hardcode_into_libs=yes
18003 *) # from 4.6 on, and DragonFly
18004 shlibpath_overrides_runpath=yes
18005 hardcode_into_libs=yes
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18015 soname_spec='${libname}${release}${shared_ext}$major'
18016 shlibpath_var=LD_LIBRARY_PATH
18017 hardcode_into_libs=yes
18020 hpux9* | hpux10* | hpux11*)
18021 # Give a soname corresponding to the major version so that dld.sl refuses to
18022 # link against other versions.
18029 hardcode_into_libs=yes
18030 dynamic_linker="$host_os dld.so"
18031 shlibpath_var=LD_LIBRARY_PATH
18032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 soname_spec='${libname}${release}${shared_ext}$major'
18035 if test "X$HPUX_IA64_MODE" = X32; then
18036 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18038 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18044 hardcode_into_libs=yes
18045 dynamic_linker="$host_os dld.sl"
18046 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18049 soname_spec='${libname}${release}${shared_ext}$major'
18050 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18055 dynamic_linker="$host_os dld.sl"
18056 shlibpath_var=SHLIB_PATH
18057 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18059 soname_spec='${libname}${release}${shared_ext}$major'
18062 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18063 postinstall_cmds='chmod 555 $lib'
18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18071 soname_spec='${libname}${release}${shared_ext}$major'
18072 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18073 shlibpath_var=LD_LIBRARY_PATH
18074 shlibpath_overrides_runpath=no
18075 hardcode_into_libs=yes
18078 irix5* | irix6* | nonstopux*)
18080 nonstopux*) version_type=nonstopux ;;
18082 if test "$lt_cv_prog_gnu_ld" = yes; then
18090 soname_spec='${libname}${release}${shared_ext}$major'
18091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18093 irix5* | nonstopux*)
18094 libsuff= shlibsuff=
18097 case $LD in # libtool.m4 will add one of these switches to LD
18098 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18099 libsuff= shlibsuff= libmagic=32-bit;;
18100 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18101 libsuff=32 shlibsuff=N32 libmagic=N32;;
18102 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18103 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18104 *) libsuff= shlibsuff= libmagic=never-match;;
18108 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18109 shlibpath_overrides_runpath=no
18110 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18111 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18112 hardcode_into_libs=yes
18115 # No shared lib support for Linux oldld, aout, or coff.
18116 linux*oldld* | linux*aout* | linux*coff*)
18120 # This must be Linux ELF.
18121 linux* | k*bsd*-gnu)
18125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18126 soname_spec='${libname}${release}${shared_ext}$major'
18127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18128 shlibpath_var=LD_LIBRARY_PATH
18129 shlibpath_overrides_runpath=no
18130 # This implies no fast_install, which is unacceptable.
18131 # Some rework will be needed to allow for fast_install
18132 # before this can be enabled.
18133 hardcode_into_libs=yes
18135 # Append ld.so.conf contents to the search path
18136 if test -f /etc/ld.so.conf; then
18137 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18141 # We used to test for /lib/ld.so.1 and disable shared libraries on
18142 # powerpc, because MkLinux only supported shared libraries with the
18143 # GNU dynamic linker. Since this was broken with cross compilers,
18144 # most powerpc-linux boxes support dynamic linking these days and
18145 # people can always --disable-shared, the test was removed, and we
18146 # assume the GNU/Linux dynamic linker is in use.
18147 dynamic_linker='GNU/Linux ld.so'
18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18155 soname_spec='${libname}${release}${shared_ext}$major'
18156 shlibpath_var=LD_LIBRARY_PATH
18157 shlibpath_overrides_runpath=no
18158 hardcode_into_libs=yes
18159 dynamic_linker='NetBSD ld.elf_so'
18166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18169 dynamic_linker='NetBSD (a.out) ld.so'
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18172 soname_spec='${libname}${release}${shared_ext}$major'
18173 dynamic_linker='NetBSD ld.elf_so'
18175 shlibpath_var=LD_LIBRARY_PATH
18176 shlibpath_overrides_runpath=yes
18177 hardcode_into_libs=yes
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18183 shlibpath_var=LD_LIBRARY_PATH
18184 shlibpath_overrides_runpath=yes
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 shlibpath_overrides_runpath=yes
18199 sys_lib_dlsearch_path_spec="/usr/lib"
18201 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18203 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18204 *) need_version=no ;;
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18211 openbsd2.[89] | openbsd2.[89].*)
18212 shlibpath_overrides_runpath=no
18215 shlibpath_overrides_runpath=yes
18219 shlibpath_overrides_runpath=yes
18224 libname_spec='$name'
18227 library_names_spec='$libname${shared_ext} $libname.a'
18228 dynamic_linker='OS/2 ld.exe'
18229 shlibpath_var=LIBPATH
18232 osf3* | osf4* | osf5*)
18236 soname_spec='${libname}${release}${shared_ext}$major'
18237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18238 shlibpath_var=LD_LIBRARY_PATH
18239 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18240 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 shlibpath_var=LD_LIBRARY_PATH
18254 shlibpath_overrides_runpath=yes
18255 hardcode_into_libs=yes
18256 # ldd complains unless libraries are executable
18257 postinstall_cmds='chmod +x $lib'
18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18263 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18264 shlibpath_var=LD_LIBRARY_PATH
18265 shlibpath_overrides_runpath=yes
18266 if test "$with_gnu_ld" = yes; then
18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275 soname_spec='${libname}${release}${shared_ext}$major'
18276 shlibpath_var=LD_LIBRARY_PATH
18277 case $host_vendor in
18279 shlibpath_overrides_runpath=no
18281 export_dynamic_flag_spec='${wl}-Blargedynsym'
18282 runpath_var=LD_RUN_PATH
18290 shlibpath_overrides_runpath=no
18291 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18297 if test -d /usr/nec ;then
18299 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18300 soname_spec='$libname${shared_ext}.$major'
18301 shlibpath_var=LD_LIBRARY_PATH
18305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18306 version_type=freebsd-elf
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18310 soname_spec='${libname}${release}${shared_ext}$major'
18311 shlibpath_var=LD_LIBRARY_PATH
18312 hardcode_into_libs=yes
18313 if test "$with_gnu_ld" = yes; then
18314 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18315 shlibpath_overrides_runpath=no
18317 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18318 shlibpath_overrides_runpath=yes
18321 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18325 sys_lib_dlsearch_path_spec='/usr/lib'
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18331 soname_spec='${libname}${release}${shared_ext}$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18340 $as_echo "$dynamic_linker" >&6; }
18341 test "$dynamic_linker" = no && can_build_shared=no
18343 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18344 $as_echo_n "(cached) " >&6
18346 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18349 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18350 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18351 $as_echo_n "(cached) " >&6
18353 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18356 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18358 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18359 if test "$GCC" = yes; then
18360 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18364 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18365 hardcode_action_GCJ=
18366 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18367 test -n "$runpath_var_GCJ" || \
18368 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18370 # We can hardcode non-existant directories.
18371 if test "$hardcode_direct_GCJ" != no &&
18372 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18373 # have to relink, otherwise we might link with an installed library
18374 # when we should be linking with a yet-to-be-installed one
18375 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18376 test "$hardcode_minus_L_GCJ" != no; then
18377 # Linking always hardcodes the temporary library directory.
18378 hardcode_action_GCJ=relink
18380 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18381 hardcode_action_GCJ=immediate
18384 # We cannot hardcode anything, or else we can only hardcode existing
18386 hardcode_action_GCJ=unsupported
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18389 $as_echo "$hardcode_action_GCJ" >&6; }
18391 if test "$hardcode_action_GCJ" = relink; then
18392 # Fast installation is not supported
18393 enable_fast_install=no
18394 elif test "$shlibpath_overrides_runpath" = yes ||
18395 test "$enable_shared" = no; then
18396 # Fast installation is not necessary
18397 enable_fast_install=needless
18401 # The else clause should only fire when bootstrapping the
18402 # libtool distribution, otherwise you forgot to ship ltmain.sh
18403 # with your package, and you will get complaints that there are
18404 # no rules to generate ltmain.sh.
18405 if test -f "$ltmain"; then
18406 # See if we are running on zsh, and set the options which allow our commands through
18407 # without removal of \ escapes.
18408 if test -n "${ZSH_VERSION+set}" ; then
18409 setopt NO_GLOB_SUBST
18411 # Now quote all the things that may contain metacharacters while being
18412 # careful not to overquote the AC_SUBSTed values. We take copies of the
18413 # variables and quote the copies for generation of the libtool script.
18414 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18416 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18417 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18418 deplibs_check_method reload_flag reload_cmds need_locks \
18419 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18420 lt_cv_sys_global_symbol_to_c_name_address \
18421 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18422 old_postinstall_cmds old_postuninstall_cmds \
18426 lt_prog_compiler_wl_GCJ \
18427 lt_prog_compiler_pic_GCJ \
18428 lt_prog_compiler_static_GCJ \
18429 lt_prog_compiler_no_builtin_flag_GCJ \
18430 export_dynamic_flag_spec_GCJ \
18431 thread_safe_flag_spec_GCJ \
18432 whole_archive_flag_spec_GCJ \
18433 enable_shared_with_static_runtimes_GCJ \
18434 old_archive_cmds_GCJ \
18435 old_archive_from_new_cmds_GCJ \
18436 predep_objects_GCJ \
18437 postdep_objects_GCJ \
18440 compiler_lib_search_path_GCJ \
18441 compiler_lib_search_dirs_GCJ \
18443 archive_expsym_cmds_GCJ \
18444 postinstall_cmds_GCJ \
18445 postuninstall_cmds_GCJ \
18446 old_archive_from_expsyms_cmds_GCJ \
18447 allow_undefined_flag_GCJ \
18448 no_undefined_flag_GCJ \
18449 export_symbols_cmds_GCJ \
18450 hardcode_libdir_flag_spec_GCJ \
18451 hardcode_libdir_flag_spec_ld_GCJ \
18452 hardcode_libdir_separator_GCJ \
18453 hardcode_automatic_GCJ \
18455 module_expsym_cmds_GCJ \
18456 lt_cv_prog_compiler_c_o_GCJ \
18457 fix_srcfile_path_GCJ \
18458 exclude_expsyms_GCJ \
18459 include_expsyms_GCJ; do
18462 old_archive_cmds_GCJ | \
18463 old_archive_from_new_cmds_GCJ | \
18464 archive_cmds_GCJ | \
18465 archive_expsym_cmds_GCJ | \
18466 module_cmds_GCJ | \
18467 module_expsym_cmds_GCJ | \
18468 old_archive_from_expsyms_cmds_GCJ | \
18469 export_symbols_cmds_GCJ | \
18470 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18471 postinstall_cmds | postuninstall_cmds | \
18472 old_postinstall_cmds | old_postuninstall_cmds | \
18473 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18474 # Double-quote double-evaled strings.
18475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18484 *'\$0 --fallback-echo"')
18485 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18491 cat <<__EOF__ >> "$cfgfile"
18492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18496 # Shell to use when invoking shell scripts.
18499 # Whether or not to build shared libraries.
18500 build_libtool_libs=$enable_shared
18502 # Whether or not to build static libraries.
18503 build_old_libs=$enable_static
18505 # Whether or not to add -lc for building shared libraries.
18506 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18508 # Whether or not to disallow shared libs when runtime libs are static
18509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18511 # Whether or not to optimize for fast installation.
18512 fast_install=$enable_fast_install
18515 host_alias=$host_alias
18519 # The build system.
18520 build_alias=$build_alias
18524 # An echo program that does not interpret backslashes.
18529 AR_FLAGS=$lt_AR_FLAGS
18534 # LTCC compiler flags.
18535 LTCFLAGS=$lt_LTCFLAGS
18537 # A language-specific compiler.
18538 CC=$lt_compiler_GCJ
18540 # Is the compiler the GNU C compiler?
18546 # The linker used to build libraries.
18549 # Whether we need hard or soft links.
18552 # A BSD-compatible nm program.
18555 # A symbol stripping program
18558 # Used to examine libraries when file_magic_cmd begins "file"
18559 MAGIC_CMD=$MAGIC_CMD
18561 # Used on cygwin: DLL creation program.
18564 # Used on cygwin: object dumper.
18567 # Used on cygwin: assembler.
18570 # The name of the directory that contains temporary libtool files.
18573 # How to create reloadable object files.
18574 reload_flag=$lt_reload_flag
18575 reload_cmds=$lt_reload_cmds
18577 # How to pass a linker flag through the compiler.
18578 wl=$lt_lt_prog_compiler_wl_GCJ
18580 # Object file suffix (normally "o").
18581 objext="$ac_objext"
18583 # Old archive suffix (normally "a").
18586 # Shared library suffix (normally ".so").
18587 shrext_cmds='$shrext_cmds'
18589 # Executable file suffix (normally "").
18592 # Additional compiler flags for building library objects.
18593 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18596 # What is the maximum length of a command?
18597 max_cmd_len=$lt_cv_sys_max_cmd_len
18599 # Does compiler simultaneously support -c and -o options?
18600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18602 # Must we lock files when doing compilation?
18603 need_locks=$lt_need_locks
18605 # Do we need the lib prefix for modules?
18606 need_lib_prefix=$need_lib_prefix
18608 # Do we need a version for libraries?
18609 need_version=$need_version
18611 # Whether dlopen is supported.
18612 dlopen_support=$enable_dlopen
18614 # Whether dlopen of programs is supported.
18615 dlopen_self=$enable_dlopen_self
18617 # Whether dlopen of statically linked programs is supported.
18618 dlopen_self_static=$enable_dlopen_self_static
18620 # Compiler flag to prevent dynamic linking.
18621 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18623 # Compiler flag to turn off builtin functions.
18624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18626 # Compiler flag to allow reflexive dlopens.
18627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18629 # Compiler flag to generate shared objects directly from archives.
18630 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18632 # Compiler flag to generate thread-safe objects.
18633 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18635 # Library versioning type.
18636 version_type=$version_type
18638 # Format of library name prefix.
18639 libname_spec=$lt_libname_spec
18641 # List of archive names. First name is the real one, the rest are links.
18642 # The last name is the one that the linker finds with -lNAME.
18643 library_names_spec=$lt_library_names_spec
18645 # The coded name of the library, if different from the real name.
18646 soname_spec=$lt_soname_spec
18648 # Commands used to build and install an old-style archive.
18650 old_archive_cmds=$lt_old_archive_cmds_GCJ
18651 old_postinstall_cmds=$lt_old_postinstall_cmds
18652 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18654 # Create an old-style archive from a shared archive.
18655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18657 # Create a temporary old-style archive to link instead of a shared archive.
18658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18660 # Commands used to build and install a shared archive.
18661 archive_cmds=$lt_archive_cmds_GCJ
18662 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18663 postinstall_cmds=$lt_postinstall_cmds
18664 postuninstall_cmds=$lt_postuninstall_cmds
18666 # Commands used to build a loadable module (assumed same as above if empty)
18667 module_cmds=$lt_module_cmds_GCJ
18668 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18670 # Commands to strip libraries.
18671 old_striplib=$lt_old_striplib
18672 striplib=$lt_striplib
18674 # Dependencies to place before the objects being linked to create a
18676 predep_objects=$lt_predep_objects_GCJ
18678 # Dependencies to place after the objects being linked to create a
18680 postdep_objects=$lt_postdep_objects_GCJ
18682 # Dependencies to place before the objects being linked to create a
18684 predeps=$lt_predeps_GCJ
18686 # Dependencies to place after the objects being linked to create a
18688 postdeps=$lt_postdeps_GCJ
18690 # The directories searched by this compiler when creating a shared
18692 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18694 # The library search path used internally by the compiler when linking
18695 # a shared library.
18696 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18698 # Method to check whether dependent libraries are shared objects.
18699 deplibs_check_method=$lt_deplibs_check_method
18701 # Command to use when deplibs_check_method == file_magic.
18702 file_magic_cmd=$lt_file_magic_cmd
18704 # Flag that allows shared libraries with undefined symbols to be built.
18705 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18707 # Flag that forces no undefined symbols.
18708 no_undefined_flag=$lt_no_undefined_flag_GCJ
18710 # Commands used to finish a libtool library installation in a directory.
18711 finish_cmds=$lt_finish_cmds
18713 # Same as above, but a single script fragment to be evaled but not shown.
18714 finish_eval=$lt_finish_eval
18716 # Take the output of nm and produce a listing of raw symbols and C names.
18717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18719 # Transform the output of nm in a proper C declaration
18720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18722 # Transform the output of nm in a C name address pair
18723 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18725 # This is the shared library runtime path variable.
18726 runpath_var=$runpath_var
18728 # This is the shared library path variable.
18729 shlibpath_var=$shlibpath_var
18731 # Is shlibpath searched before the hard-coded library search path?
18732 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18734 # How to hardcode a shared library path into an executable.
18735 hardcode_action=$hardcode_action_GCJ
18737 # Whether we should hardcode library paths into libraries.
18738 hardcode_into_libs=$hardcode_into_libs
18740 # Flag to hardcode \$libdir into a binary during linking.
18741 # This must work even if \$libdir does not exist.
18742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18744 # If ld is used when linking, flag to hardcode \$libdir into
18745 # a binary during linking. This must work even if \$libdir does
18747 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18749 # Whether we need a single -rpath flag with a separated argument.
18750 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18752 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18753 # resulting binary.
18754 hardcode_direct=$hardcode_direct_GCJ
18756 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18757 # resulting binary.
18758 hardcode_minus_L=$hardcode_minus_L_GCJ
18760 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18761 # the resulting binary.
18762 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18764 # Set to yes if building a shared library automatically hardcodes DIR into the library
18765 # and all subsequent libraries and executables linked against it.
18766 hardcode_automatic=$hardcode_automatic_GCJ
18768 # Variables whose values should be saved in libtool wrapper scripts and
18769 # restored at relink time.
18770 variables_saved_for_relink="$variables_saved_for_relink"
18772 # Whether libtool must link a program against all its dependency libraries.
18773 link_all_deplibs=$link_all_deplibs_GCJ
18775 # Compile-time system search path for libraries
18776 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18778 # Run-time system search path for libraries
18779 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18781 # Fix the shell variable \$srcfile for the compiler.
18782 fix_srcfile_path=$lt_fix_srcfile_path
18784 # Set to yes if exported symbols are required.
18785 always_export_symbols=$always_export_symbols_GCJ
18787 # The commands to list exported symbols.
18788 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18790 # The commands to extract the exported symbol list from a shared archive.
18791 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18793 # Symbols that should not be listed in the preloaded symbols.
18794 exclude_expsyms=$lt_exclude_expsyms_GCJ
18796 # Symbols that must always be exported.
18797 include_expsyms=$lt_include_expsyms_GCJ
18799 # ### END LIBTOOL TAG CONFIG: $tagname
18805 # If there is no Makefile yet, we rely on a make rule to execute
18806 # `config.status --recheck' to rerun these tests and create the
18807 # libtool script then.
18808 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18809 if test -f "$ltmain_in"; then
18810 test -f Makefile && make "$ltmain"
18816 ac_cpp='$CPP $CPPFLAGS'
18817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18831 # Source file extension for RC test sources.
18834 # Object file extension for compiled RC test sources.
18838 # Code to be used in simple compile tests
18839 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18841 # Code to be used in simple link tests
18842 lt_simple_link_test_code="$lt_simple_compile_test_code"
18844 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18846 # If no C compiler was specified, use CC.
18849 # If no C compiler flags were specified, use CFLAGS.
18850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18852 # Allow CC to be a program name with arguments.
18856 # save warnings/boilerplate of simple test code
18857 ac_outfile=conftest.$ac_objext
18858 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18860 _lt_compiler_boilerplate=`cat conftest.err`
18863 ac_outfile=conftest.$ac_objext
18864 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18866 _lt_linker_boilerplate=`cat conftest.err`
18870 # Allow CC to be a program name with arguments.
18875 for cc_temp in $compiler""; do
18877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18885 lt_cv_prog_compiler_c_o_RC=yes
18887 # The else clause should only fire when bootstrapping the
18888 # libtool distribution, otherwise you forgot to ship ltmain.sh
18889 # with your package, and you will get complaints that there are
18890 # no rules to generate ltmain.sh.
18891 if test -f "$ltmain"; then
18892 # See if we are running on zsh, and set the options which allow our commands through
18893 # without removal of \ escapes.
18894 if test -n "${ZSH_VERSION+set}" ; then
18895 setopt NO_GLOB_SUBST
18897 # Now quote all the things that may contain metacharacters while being
18898 # careful not to overquote the AC_SUBSTed values. We take copies of the
18899 # variables and quote the copies for generation of the libtool script.
18900 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18902 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18903 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18904 deplibs_check_method reload_flag reload_cmds need_locks \
18905 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18906 lt_cv_sys_global_symbol_to_c_name_address \
18907 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18908 old_postinstall_cmds old_postuninstall_cmds \
18912 lt_prog_compiler_wl_RC \
18913 lt_prog_compiler_pic_RC \
18914 lt_prog_compiler_static_RC \
18915 lt_prog_compiler_no_builtin_flag_RC \
18916 export_dynamic_flag_spec_RC \
18917 thread_safe_flag_spec_RC \
18918 whole_archive_flag_spec_RC \
18919 enable_shared_with_static_runtimes_RC \
18920 old_archive_cmds_RC \
18921 old_archive_from_new_cmds_RC \
18922 predep_objects_RC \
18923 postdep_objects_RC \
18926 compiler_lib_search_path_RC \
18927 compiler_lib_search_dirs_RC \
18929 archive_expsym_cmds_RC \
18930 postinstall_cmds_RC \
18931 postuninstall_cmds_RC \
18932 old_archive_from_expsyms_cmds_RC \
18933 allow_undefined_flag_RC \
18934 no_undefined_flag_RC \
18935 export_symbols_cmds_RC \
18936 hardcode_libdir_flag_spec_RC \
18937 hardcode_libdir_flag_spec_ld_RC \
18938 hardcode_libdir_separator_RC \
18939 hardcode_automatic_RC \
18941 module_expsym_cmds_RC \
18942 lt_cv_prog_compiler_c_o_RC \
18943 fix_srcfile_path_RC \
18944 exclude_expsyms_RC \
18945 include_expsyms_RC; do
18948 old_archive_cmds_RC | \
18949 old_archive_from_new_cmds_RC | \
18950 archive_cmds_RC | \
18951 archive_expsym_cmds_RC | \
18953 module_expsym_cmds_RC | \
18954 old_archive_from_expsyms_cmds_RC | \
18955 export_symbols_cmds_RC | \
18956 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18957 postinstall_cmds | postuninstall_cmds | \
18958 old_postinstall_cmds | old_postuninstall_cmds | \
18959 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18960 # Double-quote double-evaled strings.
18961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18964 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18970 *'\$0 --fallback-echo"')
18971 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18977 cat <<__EOF__ >> "$cfgfile"
18978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18982 # Shell to use when invoking shell scripts.
18985 # Whether or not to build shared libraries.
18986 build_libtool_libs=$enable_shared
18988 # Whether or not to build static libraries.
18989 build_old_libs=$enable_static
18991 # Whether or not to add -lc for building shared libraries.
18992 build_libtool_need_lc=$archive_cmds_need_lc_RC
18994 # Whether or not to disallow shared libs when runtime libs are static
18995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18997 # Whether or not to optimize for fast installation.
18998 fast_install=$enable_fast_install
19001 host_alias=$host_alias
19005 # The build system.
19006 build_alias=$build_alias
19010 # An echo program that does not interpret backslashes.
19015 AR_FLAGS=$lt_AR_FLAGS
19020 # LTCC compiler flags.
19021 LTCFLAGS=$lt_LTCFLAGS
19023 # A language-specific compiler.
19026 # Is the compiler the GNU C compiler?
19032 # The linker used to build libraries.
19035 # Whether we need hard or soft links.
19038 # A BSD-compatible nm program.
19041 # A symbol stripping program
19044 # Used to examine libraries when file_magic_cmd begins "file"
19045 MAGIC_CMD=$MAGIC_CMD
19047 # Used on cygwin: DLL creation program.
19050 # Used on cygwin: object dumper.
19053 # Used on cygwin: assembler.
19056 # The name of the directory that contains temporary libtool files.
19059 # How to create reloadable object files.
19060 reload_flag=$lt_reload_flag
19061 reload_cmds=$lt_reload_cmds
19063 # How to pass a linker flag through the compiler.
19064 wl=$lt_lt_prog_compiler_wl_RC
19066 # Object file suffix (normally "o").
19067 objext="$ac_objext"
19069 # Old archive suffix (normally "a").
19072 # Shared library suffix (normally ".so").
19073 shrext_cmds='$shrext_cmds'
19075 # Executable file suffix (normally "").
19078 # Additional compiler flags for building library objects.
19079 pic_flag=$lt_lt_prog_compiler_pic_RC
19082 # What is the maximum length of a command?
19083 max_cmd_len=$lt_cv_sys_max_cmd_len
19085 # Does compiler simultaneously support -c and -o options?
19086 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19088 # Must we lock files when doing compilation?
19089 need_locks=$lt_need_locks
19091 # Do we need the lib prefix for modules?
19092 need_lib_prefix=$need_lib_prefix
19094 # Do we need a version for libraries?
19095 need_version=$need_version
19097 # Whether dlopen is supported.
19098 dlopen_support=$enable_dlopen
19100 # Whether dlopen of programs is supported.
19101 dlopen_self=$enable_dlopen_self
19103 # Whether dlopen of statically linked programs is supported.
19104 dlopen_self_static=$enable_dlopen_self_static
19106 # Compiler flag to prevent dynamic linking.
19107 link_static_flag=$lt_lt_prog_compiler_static_RC
19109 # Compiler flag to turn off builtin functions.
19110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19112 # Compiler flag to allow reflexive dlopens.
19113 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19115 # Compiler flag to generate shared objects directly from archives.
19116 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19118 # Compiler flag to generate thread-safe objects.
19119 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19121 # Library versioning type.
19122 version_type=$version_type
19124 # Format of library name prefix.
19125 libname_spec=$lt_libname_spec
19127 # List of archive names. First name is the real one, the rest are links.
19128 # The last name is the one that the linker finds with -lNAME.
19129 library_names_spec=$lt_library_names_spec
19131 # The coded name of the library, if different from the real name.
19132 soname_spec=$lt_soname_spec
19134 # Commands used to build and install an old-style archive.
19136 old_archive_cmds=$lt_old_archive_cmds_RC
19137 old_postinstall_cmds=$lt_old_postinstall_cmds
19138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19140 # Create an old-style archive from a shared archive.
19141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19143 # Create a temporary old-style archive to link instead of a shared archive.
19144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19146 # Commands used to build and install a shared archive.
19147 archive_cmds=$lt_archive_cmds_RC
19148 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19149 postinstall_cmds=$lt_postinstall_cmds
19150 postuninstall_cmds=$lt_postuninstall_cmds
19152 # Commands used to build a loadable module (assumed same as above if empty)
19153 module_cmds=$lt_module_cmds_RC
19154 module_expsym_cmds=$lt_module_expsym_cmds_RC
19156 # Commands to strip libraries.
19157 old_striplib=$lt_old_striplib
19158 striplib=$lt_striplib
19160 # Dependencies to place before the objects being linked to create a
19162 predep_objects=$lt_predep_objects_RC
19164 # Dependencies to place after the objects being linked to create a
19166 postdep_objects=$lt_postdep_objects_RC
19168 # Dependencies to place before the objects being linked to create a
19170 predeps=$lt_predeps_RC
19172 # Dependencies to place after the objects being linked to create a
19174 postdeps=$lt_postdeps_RC
19176 # The directories searched by this compiler when creating a shared
19178 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19180 # The library search path used internally by the compiler when linking
19181 # a shared library.
19182 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19184 # Method to check whether dependent libraries are shared objects.
19185 deplibs_check_method=$lt_deplibs_check_method
19187 # Command to use when deplibs_check_method == file_magic.
19188 file_magic_cmd=$lt_file_magic_cmd
19190 # Flag that allows shared libraries with undefined symbols to be built.
19191 allow_undefined_flag=$lt_allow_undefined_flag_RC
19193 # Flag that forces no undefined symbols.
19194 no_undefined_flag=$lt_no_undefined_flag_RC
19196 # Commands used to finish a libtool library installation in a directory.
19197 finish_cmds=$lt_finish_cmds
19199 # Same as above, but a single script fragment to be evaled but not shown.
19200 finish_eval=$lt_finish_eval
19202 # Take the output of nm and produce a listing of raw symbols and C names.
19203 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19205 # Transform the output of nm in a proper C declaration
19206 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19208 # Transform the output of nm in a C name address pair
19209 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19211 # This is the shared library runtime path variable.
19212 runpath_var=$runpath_var
19214 # This is the shared library path variable.
19215 shlibpath_var=$shlibpath_var
19217 # Is shlibpath searched before the hard-coded library search path?
19218 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19220 # How to hardcode a shared library path into an executable.
19221 hardcode_action=$hardcode_action_RC
19223 # Whether we should hardcode library paths into libraries.
19224 hardcode_into_libs=$hardcode_into_libs
19226 # Flag to hardcode \$libdir into a binary during linking.
19227 # This must work even if \$libdir does not exist.
19228 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19230 # If ld is used when linking, flag to hardcode \$libdir into
19231 # a binary during linking. This must work even if \$libdir does
19233 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19235 # Whether we need a single -rpath flag with a separated argument.
19236 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19238 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19239 # resulting binary.
19240 hardcode_direct=$hardcode_direct_RC
19242 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19243 # resulting binary.
19244 hardcode_minus_L=$hardcode_minus_L_RC
19246 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19247 # the resulting binary.
19248 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19250 # Set to yes if building a shared library automatically hardcodes DIR into the library
19251 # and all subsequent libraries and executables linked against it.
19252 hardcode_automatic=$hardcode_automatic_RC
19254 # Variables whose values should be saved in libtool wrapper scripts and
19255 # restored at relink time.
19256 variables_saved_for_relink="$variables_saved_for_relink"
19258 # Whether libtool must link a program against all its dependency libraries.
19259 link_all_deplibs=$link_all_deplibs_RC
19261 # Compile-time system search path for libraries
19262 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19264 # Run-time system search path for libraries
19265 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19267 # Fix the shell variable \$srcfile for the compiler.
19268 fix_srcfile_path=$lt_fix_srcfile_path
19270 # Set to yes if exported symbols are required.
19271 always_export_symbols=$always_export_symbols_RC
19273 # The commands to list exported symbols.
19274 export_symbols_cmds=$lt_export_symbols_cmds_RC
19276 # The commands to extract the exported symbol list from a shared archive.
19277 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19279 # Symbols that should not be listed in the preloaded symbols.
19280 exclude_expsyms=$lt_exclude_expsyms_RC
19282 # Symbols that must always be exported.
19283 include_expsyms=$lt_include_expsyms_RC
19285 # ### END LIBTOOL TAG CONFIG: $tagname
19291 # If there is no Makefile yet, we rely on a make rule to execute
19292 # `config.status --recheck' to rerun these tests and create the
19293 # libtool script then.
19294 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19295 if test -f "$ltmain_in"; then
19296 test -f Makefile && make "$ltmain"
19302 ac_cpp='$CPP $CPPFLAGS'
19303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19312 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19316 # Append the new tag name to the list of available tags.
19317 if test -n "$tagname" ; then
19318 available_tags="$available_tags $tagname"
19324 # Now substitute the updated list of available tags.
19325 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19326 mv "${ofile}T" "$ofile"
19330 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19336 # This can be used to rebuild libtool when needed
19337 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19339 # Always use our own libtool.
19340 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19342 # Prevent multiple expansion
19355 # Check whether --with-system-libtool was given.
19356 if test "${with_system_libtool+set}" = set; then :
19357 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19358 set dummy libtool; ac_word=$2
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19360 $as_echo_n "checking for $ac_word... " >&6; }
19361 if ${ac_cv_path_LIBTOOL+:} false; then :
19362 $as_echo_n "(cached) " >&6
19366 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19370 as_dummy="$PATH:/usr/local/bin"
19371 for as_dir in $as_dummy
19374 test -z "$as_dir" && as_dir=.
19375 for ac_exec_ext in '' $ac_executable_extensions; do
19376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19377 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19388 LIBTOOL=$ac_cv_path_LIBTOOL
19389 if test -n "$LIBTOOL"; then
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19391 $as_echo "$LIBTOOL" >&6; }
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19394 $as_echo "no" >&6; }
19410 LIBTOOL="`pwd`/libtool"
19422 # Check whether --enable-strict-dependencies was given.
19423 if test "${enable_strict_dependencies+set}" = set; then :
19424 enableval=$enable_strict_dependencies;
19428 docdir='${datadir}/doc/freeradius'
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19430 $as_echo_n "checking docdir... " >&6; }
19432 # Check whether --with-docdir was given.
19433 if test "${with_docdir+set}" = set; then :
19434 withval=$with_docdir; case "$withval" in
19440 [\\/$]* | ?:[\\/]* )
19444 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19452 $as_echo "$docdir" >&6; }
19453 if test "x$docdir" = xno; then
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19455 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19458 logdir='${localstatedir}/log/radius'
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19460 $as_echo_n "checking logdir... " >&6; }
19462 # Check whether --with-logdir was given.
19463 if test "${with_logdir+set}" = set; then :
19464 withval=$with_logdir; case "$withval" in
19466 as_fn_error $? "Need logdir" "$LINENO" 5
19470 [\\/$]* | ?:[\\/]* )
19474 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19482 $as_echo "$logdir" >&6; }
19484 radacctdir='${logdir}/radacct'
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19486 $as_echo_n "checking radacctdir... " >&6; }
19488 # Check whether --with-radacctdir was given.
19489 if test "${with_radacctdir+set}" = set; then :
19490 withval=$with_radacctdir; case "$withval" in
19492 as_fn_error $? "Need radacctdir" "$LINENO" 5
19496 [\\/$]* | ?:[\\/]* )
19497 radacctdir="$withval"
19500 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19508 $as_echo "$radacctdir" >&6; }
19510 raddbdir='${sysconfdir}/raddb'
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19512 $as_echo_n "checking raddbdir... " >&6; }
19514 # Check whether --with-raddbdir was given.
19515 if test "${with_raddbdir+set}" = set; then :
19516 withval=$with_raddbdir; case "$withval" in
19518 as_fn_error $? "Need raddbdir" "$LINENO" 5
19522 [\\/$]* | ?:[\\/]* )
19523 raddbdir="$withval"
19526 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19534 $as_echo "$raddbdir" >&6; }
19538 # Check whether --with-ascend-binary was given.
19539 if test "${with_ascend_binary+set}" = set; then :
19540 withval=$with_ascend_binary; case "$withval" in
19549 if test "X$ASCEND_BINARY" = "Xyes"; then
19551 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19557 # Check whether --with-threads was given.
19558 if test "${with_threads+set}" = set; then :
19559 withval=$with_threads; case "$withval" in
19571 # Check whether --with-vmps was given.
19572 if test "${with_vmps+set}" = set; then :
19573 withval=$with_vmps; case "$withval" in
19582 if test "x$WITH_VMPS" = "xyes"; then
19584 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19590 # Check whether --with-dhcp was given.
19591 if test "${with_dhcp+set}" = set; then :
19592 withval=$with_dhcp; case "$withval" in
19601 if test "x$WITH_DHCP" = "xyes"; then
19603 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19608 WITH_POST_PROXY_AUTHORIZE=
19610 # Check whether --with-post-proxy-authorize was given.
19611 if test "${with_post_proxy_authorize+set}" = set; then :
19612 withval=$with_post_proxy_authorize; case "$withval" in
19614 WITH_POST_PROXY_AUTHORIZE=""
19625 # Check whether --with-static_modules was given.
19626 if test "${with_static_modules+set}" = set; then :
19627 withval=$with_static_modules;
19628 for i in $withval; do
19629 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19637 # Check whether --with-modules was given.
19638 if test "${with_modules+set}" = set; then :
19639 withval=$with_modules;
19640 for i in $withval; do
19641 MODULES="$MODULES $i"
19647 # Check whether --enable-developer was given.
19648 if test "${enable_developer+set}" = set; then :
19649 enableval=$enable_developer; case "$enableval" in
19660 if test -d $srcdir/.git; then
19661 if test "x$developer" != "xno"; then
19665 if test $GIT = yes; then
19666 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19672 # Check whether --with-experimental-modules was given.
19673 if test "${with_experimental_modules+set}" = set; then :
19674 withval=$with_experimental_modules; case "$withval" in
19686 # Check whether --with-openssl was given.
19687 if test "${with_openssl+set}" = set; then :
19688 withval=$with_openssl; case "$withval" in
19700 OPENSSL_INCLUDE_DIR=
19702 # Check whether --with-openssl-includes was given.
19703 if test "${with_openssl_includes+set}" = set; then :
19704 withval=$with_openssl_includes; case "$withval" in
19705 *) OPENSSL_INCLUDE_DIR="$withval"
19714 # Check whether --with-openssl-libraries was given.
19715 if test "${with_openssl_libraries+set}" = set; then :
19716 withval=$with_openssl_libraries; case "$withval" in
19717 *) OPENSSL_LIB_DIR="$withval"
19726 # Check whether --with-rlm-FOO-lib-dir was given.
19727 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19728 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19737 # Check whether --with-rlm-FOO-include-dir was given.
19738 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19739 withval=$with_rlm_FOO_include_dir; case "$withval" in
19750 # Check whether --with-udpfromto was given.
19751 if test "${with_udpfromto+set}" = set; then :
19752 withval=$with_udpfromto; case "$withval" in
19763 if test "x$WITH_UDPFROMTO" = "xyes"; then
19765 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19770 CHECKRAD=checkrad.pl
19771 # Extract the first word of "perl", so it can be a program name with args.
19772 set dummy perl; ac_word=$2
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19774 $as_echo_n "checking for $ac_word... " >&6; }
19775 if ${ac_cv_path_PERL+:} false; then :
19776 $as_echo_n "(cached) " >&6
19780 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19784 for as_dir in $PATH
19787 test -z "$as_dir" && as_dir=.
19788 for ac_exec_ext in '' $ac_executable_extensions; do
19789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19790 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19798 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19802 PERL=$ac_cv_path_PERL
19803 if test -n "$PERL"; then
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19805 $as_echo "$PERL" >&6; }
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19808 $as_echo "no" >&6; }
19812 if test "x$ac_cv_path_PERL" = "x"; then
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19814 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19816 # Extract the first word of "snmpget", so it can be a program name with args.
19817 set dummy snmpget; ac_word=$2
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19819 $as_echo_n "checking for $ac_word... " >&6; }
19820 if ${ac_cv_path_SNMPGET+:} false; then :
19821 $as_echo_n "(cached) " >&6
19825 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19829 for as_dir in $PATH
19832 test -z "$as_dir" && as_dir=.
19833 for ac_exec_ext in '' $ac_executable_extensions; do
19834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19835 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19846 SNMPGET=$ac_cv_path_SNMPGET
19847 if test -n "$SNMPGET"; then
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19849 $as_echo "$SNMPGET" >&6; }
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19852 $as_echo "no" >&6; }
19856 if test "x$ac_cv_path_SNMPGET" = "x"; then
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19858 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19861 # Extract the first word of "snmpwalk", so it can be a program name with args.
19862 set dummy snmpwalk; ac_word=$2
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19864 $as_echo_n "checking for $ac_word... " >&6; }
19865 if ${ac_cv_path_SNMPWALK+:} false; then :
19866 $as_echo_n "(cached) " >&6
19870 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19874 for as_dir in $PATH
19877 test -z "$as_dir" && as_dir=.
19878 for ac_exec_ext in '' $ac_executable_extensions; do
19879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19880 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19891 SNMPWALK=$ac_cv_path_SNMPWALK
19892 if test -n "$SNMPWALK"; then
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
19894 $as_echo "$SNMPWALK" >&6; }
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19897 $as_echo "no" >&6; }
19901 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19903 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19906 # Extract the first word of "rusers", so it can be a program name with args.
19907 set dummy rusers; ac_word=$2
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19909 $as_echo_n "checking for $ac_word... " >&6; }
19910 if ${ac_cv_path_RUSERS+:} false; then :
19911 $as_echo_n "(cached) " >&6
19915 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19919 for as_dir in $PATH
19922 test -z "$as_dir" && as_dir=.
19923 for ac_exec_ext in '' $ac_executable_extensions; do
19924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19925 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19933 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19937 RUSERS=$ac_cv_path_RUSERS
19938 if test -n "$RUSERS"; then
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
19940 $as_echo "$RUSERS" >&6; }
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19943 $as_echo "no" >&6; }
19948 missing_dir=`cd $ac_aux_dir && pwd`
19949 # expand $ac_aux_dir to an absolute path
19950 am_aux_dir=`cd $ac_aux_dir && pwd`
19952 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19953 # Use eval to expand $SHELL
19954 if eval "$MISSING --run true"; then
19955 am_missing_run="$MISSING --run "
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19959 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19963 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19966 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19969 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19972 # Extract the first word of "locate", so it can be a program name with args.
19973 set dummy locate; ac_word=$2
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19975 $as_echo_n "checking for $ac_word... " >&6; }
19976 if ${ac_cv_path_LOCATE+:} false; then :
19977 $as_echo_n "(cached) " >&6
19981 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19985 for as_dir in $PATH
19988 test -z "$as_dir" && as_dir=.
19989 for ac_exec_ext in '' $ac_executable_extensions; do
19990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19991 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20002 LOCATE=$ac_cv_path_LOCATE
20003 if test -n "$LOCATE"; then
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20005 $as_echo "$LOCATE" >&6; }
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20008 $as_echo "no" >&6; }
20012 # Extract the first word of "dirname", so it can be a program name with args.
20013 set dummy dirname; ac_word=$2
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20015 $as_echo_n "checking for $ac_word... " >&6; }
20016 if ${ac_cv_path_DIRNAME+:} false; then :
20017 $as_echo_n "(cached) " >&6
20021 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20025 for as_dir in $PATH
20028 test -z "$as_dir" && as_dir=.
20029 for ac_exec_ext in '' $ac_executable_extensions; do
20030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20031 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20042 DIRNAME=$ac_cv_path_DIRNAME
20043 if test -n "$DIRNAME"; then
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20045 $as_echo "$DIRNAME" >&6; }
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048 $as_echo "no" >&6; }
20052 # Extract the first word of "grep", so it can be a program name with args.
20053 set dummy grep; ac_word=$2
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20055 $as_echo_n "checking for $ac_word... " >&6; }
20056 if ${ac_cv_path_GREP+:} false; then :
20057 $as_echo_n "(cached) " >&6
20061 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20065 for as_dir in $PATH
20068 test -z "$as_dir" && as_dir=.
20069 for ac_exec_ext in '' $ac_executable_extensions; do
20070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20071 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20082 GREP=$ac_cv_path_GREP
20083 if test -n "$GREP"; then
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20085 $as_echo "$GREP" >&6; }
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20088 $as_echo "no" >&6; }
20095 if test "x$WITH_THREADS" = "xyes"; then
20096 if test $ac_cv_prog_suncc = "yes"; then
20097 CFLAGS="$CFLAGS -mt"
20100 for ac_header in pthread.h
20102 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20103 if test "x$ac_cv_header_pthread_h" = xyes; then :
20104 cat >>confdefs.h <<_ACEOF
20105 #define HAVE_PTHREAD_H 1
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20116 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20117 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20118 $as_echo_n "(cached) " >&6
20120 ac_check_lib_save_LIBS=$LIBS
20121 LIBS="-lpthread $LIBS"
20122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20123 /* end confdefs.h. */
20125 /* Override any GCC internal prototype to avoid an error.
20126 Use char because int might match the return type of a GCC
20127 builtin and then its argument prototype would still apply. */
20131 char pthread_create ();
20135 return pthread_create ();
20140 if ac_fn_c_try_link "$LINENO"; then :
20141 ac_cv_lib_pthread_pthread_create=yes
20143 ac_cv_lib_pthread_pthread_create=no
20145 rm -f core conftest.err conftest.$ac_objext \
20146 conftest$ac_exeext conftest.$ac_ext
20147 LIBS=$ac_check_lib_save_LIBS
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20150 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20151 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20152 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20153 LIBS="-lpthread $LIBS"
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20156 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20157 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20158 $as_echo_n "(cached) " >&6
20160 ac_check_lib_save_LIBS=$LIBS
20162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163 /* end confdefs.h. */
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20171 char pthread_create ();
20175 return pthread_create ();
20180 if ac_fn_c_try_link "$LINENO"; then :
20181 ac_cv_lib_c_r_pthread_create=yes
20183 ac_cv_lib_c_r_pthread_create=no
20185 rm -f core conftest.err conftest.$ac_objext \
20186 conftest$ac_exeext conftest.$ac_ext
20187 LIBS=$ac_check_lib_save_LIBS
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20190 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20191 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20192 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20203 if test "x$WITH_THREADS" != "xyes"; then
20205 ac_cv_header_pthread_h="no"
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20210 $as_echo_n "checking for library containing sem_init... " >&6; }
20211 if ${ac_cv_search_sem_init+:} false; then :
20212 $as_echo_n "(cached) " >&6
20214 ac_func_search_save_LIBS=$LIBS
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20218 /* Override any GCC internal prototype to avoid an error.
20219 Use char because int might match the return type of a GCC
20220 builtin and then its argument prototype would still apply. */
20228 return sem_init ();
20233 for ac_lib in '' pthread sem posix4 rt semaphore; do
20234 if test -z "$ac_lib"; then
20235 ac_res="none required"
20238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20240 if ac_fn_c_try_link "$LINENO"; then :
20241 ac_cv_search_sem_init=$ac_res
20243 rm -f core conftest.err conftest.$ac_objext \
20245 if ${ac_cv_search_sem_init+:} false; then :
20249 if ${ac_cv_search_sem_init+:} false; then :
20252 ac_cv_search_sem_init=no
20254 rm conftest.$ac_ext
20255 LIBS=$ac_func_search_save_LIBS
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20258 $as_echo "$ac_cv_search_sem_init" >&6; }
20259 ac_res=$ac_cv_search_sem_init
20260 if test "$ac_res" != no; then :
20261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20264 as_fn_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" "$LINENO" 5
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20271 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20272 if ${ac_cv_lib_socket_getsockname+:} false; then :
20273 $as_echo_n "(cached) " >&6
20275 ac_check_lib_save_LIBS=$LIBS
20276 LIBS="-lsocket $LIBS"
20277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h. */
20280 /* Override any GCC internal prototype to avoid an error.
20281 Use char because int might match the return type of a GCC
20282 builtin and then its argument prototype would still apply. */
20286 char getsockname ();
20290 return getsockname ();
20295 if ac_fn_c_try_link "$LINENO"; then :
20296 ac_cv_lib_socket_getsockname=yes
20298 ac_cv_lib_socket_getsockname=no
20300 rm -f core conftest.err conftest.$ac_objext \
20301 conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20305 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20306 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20307 cat >>confdefs.h <<_ACEOF
20308 #define HAVE_LIBSOCKET 1
20311 LIBS="-lsocket $LIBS"
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20317 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20318 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20319 $as_echo_n "(cached) " >&6
20321 ac_check_lib_save_LIBS=$LIBS
20322 LIBS="-lresolv $LIBS"
20323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20324 /* end confdefs.h. */
20326 /* Override any GCC internal prototype to avoid an error.
20327 Use char because int might match the return type of a GCC
20328 builtin and then its argument prototype would still apply. */
20336 return inet_aton ();
20341 if ac_fn_c_try_link "$LINENO"; then :
20342 ac_cv_lib_resolv_inet_aton=yes
20344 ac_cv_lib_resolv_inet_aton=no
20346 rm -f core conftest.err conftest.$ac_objext \
20347 conftest$ac_exeext conftest.$ac_ext
20348 LIBS=$ac_check_lib_save_LIBS
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20351 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20352 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20353 cat >>confdefs.h <<_ACEOF
20354 #define HAVE_LIBRESOLV 1
20357 LIBS="-lresolv $LIBS"
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20363 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20364 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20365 $as_echo_n "(cached) " >&6
20367 ac_check_lib_save_LIBS=$LIBS
20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370 /* end confdefs.h. */
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20382 return inet_ntoa ();
20387 if ac_fn_c_try_link "$LINENO"; then :
20388 ac_cv_lib_nsl_inet_ntoa=yes
20390 ac_cv_lib_nsl_inet_ntoa=no
20392 rm -f core conftest.err conftest.$ac_objext \
20393 conftest$ac_exeext conftest.$ac_ext
20394 LIBS=$ac_check_lib_save_LIBS
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20397 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20398 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20399 cat >>confdefs.h <<_ACEOF
20400 #define HAVE_LIBNSL 1
20409 if test "x$WITH_OPENSSL" = xyes; then
20411 old_LDFLAGS="$LDFLAGS"
20412 if test "x$OPENSSL_LIB_DIR" != "x"; then
20413 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20416 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20417 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20418 $as_echo_n "(cached) " >&6
20420 ac_check_lib_save_LIBS=$LIBS
20421 LIBS="-lcrypto $LIBS"
20422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423 /* end confdefs.h. */
20425 /* Override any GCC internal prototype to avoid an error.
20426 Use char because int might match the return type of a GCC
20427 builtin and then its argument prototype would still apply. */
20440 if ac_fn_c_try_link "$LINENO"; then :
20441 ac_cv_lib_crypto_DH_new=yes
20443 ac_cv_lib_crypto_DH_new=no
20445 rm -f core conftest.err conftest.$ac_objext \
20446 conftest$ac_exeext conftest.$ac_ext
20447 LIBS=$ac_check_lib_save_LIBS
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20450 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20451 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20453 LIBS="-lcrypto $LIBS"
20455 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20458 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20459 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20460 $as_echo_n "(cached) " >&6
20462 ac_check_lib_save_LIBS=$LIBS
20464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h. */
20467 /* Override any GCC internal prototype to avoid an error.
20468 Use char because int might match the return type of a GCC
20469 builtin and then its argument prototype would still apply. */
20482 if ac_fn_c_try_link "$LINENO"; then :
20483 ac_cv_lib_ssl_SSL_new=yes
20485 ac_cv_lib_ssl_SSL_new=no
20487 rm -f core conftest.err conftest.$ac_objext \
20488 conftest$ac_exeext conftest.$ac_ext
20489 LIBS=$ac_check_lib_save_LIBS
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20492 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20493 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20496 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20498 if test "x$OPENSSL_LIB_DIR" != "x"; then
20499 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20501 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20509 LDFLAGS="$old_LDFLAGS"
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20513 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20514 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20515 $as_echo_n "(cached) " >&6
20517 ac_check_lib_save_LIBS=$LIBS
20518 LIBS="-lws2_32 $LIBS"
20519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20520 /* end confdefs.h. */
20522 /* Override any GCC internal prototype to avoid an error.
20523 Use char because int might match the return type of a GCC
20524 builtin and then its argument prototype would still apply. */
20537 if ac_fn_c_try_link "$LINENO"; then :
20538 ac_cv_lib_ws2_32_htonl=yes
20540 ac_cv_lib_ws2_32_htonl=no
20542 rm -f core conftest.err conftest.$ac_objext \
20543 conftest$ac_exeext conftest.$ac_ext
20544 LIBS=$ac_check_lib_save_LIBS
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20547 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20548 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20549 cat >>confdefs.h <<_ACEOF
20550 #define HAVE_LIBWS2_32 1
20553 LIBS="-lws2_32 $LIBS"
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20560 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20561 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20562 $as_echo_n "(cached) " >&6
20564 ac_check_lib_save_LIBS=$LIBS
20565 LIBS="-lpcap $LIBS"
20566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20567 /* end confdefs.h. */
20569 /* Override any GCC internal prototype to avoid an error.
20570 Use char because int might match the return type of a GCC
20571 builtin and then its argument prototype would still apply. */
20575 char pcap_open_live ();
20579 return pcap_open_live ();
20584 if ac_fn_c_try_link "$LINENO"; then :
20585 ac_cv_lib_pcap_pcap_open_live=yes
20587 ac_cv_lib_pcap_pcap_open_live=no
20589 rm -f core conftest.err conftest.$ac_objext \
20590 conftest$ac_exeext conftest.$ac_ext
20591 LIBS=$ac_check_lib_save_LIBS
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20594 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20595 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20598 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20603 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20609 $as_echo_n "checking for a readline compatible library... " >&6; }
20610 if ${ac_cv_lib_readline+:} false; then :
20611 $as_echo_n "(cached) " >&6
20615 for readline_lib in readline edit editline; do
20616 for termcap_lib in "" termcap curses ncurses; do
20617 if test -z "$termcap_lib"; then
20618 TRY_LIB="-l$readline_lib"
20620 TRY_LIB="-l$readline_lib -l$termcap_lib"
20622 LIBS="$ORIG_LIBS $TRY_LIB"
20623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20624 /* end confdefs.h. */
20626 /* Override any GCC internal prototype to avoid an error.
20627 Use char because int might match the return type of a GCC
20628 builtin and then its argument prototype would still apply. */
20636 return readline ();
20641 if ac_fn_c_try_link "$LINENO"; then :
20642 ac_cv_lib_readline="$TRY_LIB"
20644 rm -f core conftest.err conftest.$ac_objext \
20645 conftest$ac_exeext conftest.$ac_ext
20646 if test -n "$ac_cv_lib_readline"; then
20647 LIBREADLINE="$TRY_LIB"
20652 if test -n "$ac_cv_lib_readline"; then
20656 if test -z "$ac_cv_lib_readline"; then
20657 ac_cv_lib_readline="no"
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20663 $as_echo "$ac_cv_lib_readline" >&6; }
20665 if test "$ac_cv_lib_readline" != "no"; then
20667 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20669 for ac_header in readline.h readline/readline.h
20671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20672 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20673 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20674 cat >>confdefs.h <<_ACEOF
20675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20683 $as_echo_n "checking whether readline supports history... " >&6; }
20684 if ${ac_cv_lib_readline_history+:} false; then :
20685 $as_echo_n "(cached) " >&6
20688 ac_cv_lib_readline_history="no"
20689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20690 /* end confdefs.h. */
20692 /* Override any GCC internal prototype to avoid an error.
20693 Use char because int might match the return type of a GCC
20694 builtin and then its argument prototype would still apply. */
20698 char add_history ();
20702 return add_history ();
20707 if ac_fn_c_try_link "$LINENO"; then :
20708 ac_cv_lib_readline_history="yes"
20710 rm -f core conftest.err conftest.$ac_objext \
20711 conftest$ac_exeext conftest.$ac_ext
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20715 $as_echo "$ac_cv_lib_readline_history" >&6; }
20716 if test "$ac_cv_lib_readline_history" = "yes"; then
20718 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20720 for ac_header in history.h readline/history.h
20722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20723 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20725 cat >>confdefs.h <<_ACEOF
20726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20740 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20743 CFLAGS="$CFLAGS -DDARWIN"
20744 LIBS="-framework DirectoryService $LIBS"
20748 ac_header_dirent=no
20749 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20750 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20752 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20753 if eval \${$as_ac_Header+:} false; then :
20754 $as_echo_n "(cached) " >&6
20756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20757 /* end confdefs.h. */
20758 #include <sys/types.h>
20770 if ac_fn_c_try_compile "$LINENO"; then :
20771 eval "$as_ac_Header=yes"
20773 eval "$as_ac_Header=no"
20775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20777 eval ac_res=\$$as_ac_Header
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20779 $as_echo "$ac_res" >&6; }
20780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20781 cat >>confdefs.h <<_ACEOF
20782 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20785 ac_header_dirent=$ac_hdr; break
20789 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20790 if test $ac_header_dirent = dirent.h; then
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20792 $as_echo_n "checking for library containing opendir... " >&6; }
20793 if ${ac_cv_search_opendir+:} false; then :
20794 $as_echo_n "(cached) " >&6
20796 ac_func_search_save_LIBS=$LIBS
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h. */
20800 /* Override any GCC internal prototype to avoid an error.
20801 Use char because int might match the return type of a GCC
20802 builtin and then its argument prototype would still apply. */
20815 for ac_lib in '' dir; do
20816 if test -z "$ac_lib"; then
20817 ac_res="none required"
20820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20822 if ac_fn_c_try_link "$LINENO"; then :
20823 ac_cv_search_opendir=$ac_res
20825 rm -f core conftest.err conftest.$ac_objext \
20827 if ${ac_cv_search_opendir+:} false; then :
20831 if ${ac_cv_search_opendir+:} false; then :
20834 ac_cv_search_opendir=no
20836 rm conftest.$ac_ext
20837 LIBS=$ac_func_search_save_LIBS
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20840 $as_echo "$ac_cv_search_opendir" >&6; }
20841 ac_res=$ac_cv_search_opendir
20842 if test "$ac_res" != no; then :
20843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20849 $as_echo_n "checking for library containing opendir... " >&6; }
20850 if ${ac_cv_search_opendir+:} false; then :
20851 $as_echo_n "(cached) " >&6
20853 ac_func_search_save_LIBS=$LIBS
20854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20855 /* end confdefs.h. */
20857 /* Override any GCC internal prototype to avoid an error.
20858 Use char because int might match the return type of a GCC
20859 builtin and then its argument prototype would still apply. */
20872 for ac_lib in '' x; do
20873 if test -z "$ac_lib"; then
20874 ac_res="none required"
20877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20879 if ac_fn_c_try_link "$LINENO"; then :
20880 ac_cv_search_opendir=$ac_res
20882 rm -f core conftest.err conftest.$ac_objext \
20884 if ${ac_cv_search_opendir+:} false; then :
20888 if ${ac_cv_search_opendir+:} false; then :
20891 ac_cv_search_opendir=no
20893 rm conftest.$ac_ext
20894 LIBS=$ac_func_search_save_LIBS
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20897 $as_echo "$ac_cv_search_opendir" >&6; }
20898 ac_res=$ac_cv_search_opendir
20899 if test "$ac_res" != no; then :
20900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20907 $as_echo_n "checking for ANSI C header files... " >&6; }
20908 if ${ac_cv_header_stdc+:} false; then :
20909 $as_echo_n "(cached) " >&6
20911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20912 /* end confdefs.h. */
20913 #include <stdlib.h>
20914 #include <stdarg.h>
20915 #include <string.h>
20926 if ac_fn_c_try_compile "$LINENO"; then :
20927 ac_cv_header_stdc=yes
20929 ac_cv_header_stdc=no
20931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933 if test $ac_cv_header_stdc = yes; then
20934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20936 /* end confdefs.h. */
20937 #include <string.h>
20940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20941 $EGREP "memchr" >/dev/null 2>&1; then :
20944 ac_cv_header_stdc=no
20950 if test $ac_cv_header_stdc = yes; then
20951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20953 /* end confdefs.h. */
20954 #include <stdlib.h>
20957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20958 $EGREP "free" >/dev/null 2>&1; then :
20961 ac_cv_header_stdc=no
20967 if test $ac_cv_header_stdc = yes; then
20968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20969 if test "$cross_compiling" = yes; then :
20972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20973 /* end confdefs.h. */
20975 #include <stdlib.h>
20976 #if ((' ' & 0x0FF) == 0x020)
20977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20980 # define ISLOWER(c) \
20981 (('a' <= (c) && (c) <= 'i') \
20982 || ('j' <= (c) && (c) <= 'r') \
20983 || ('s' <= (c) && (c) <= 'z'))
20984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20992 for (i = 0; i < 256; i++)
20993 if (XOR (islower (i), ISLOWER (i))
20994 || toupper (i) != TOUPPER (i))
20999 if ac_fn_c_try_run "$LINENO"; then :
21002 ac_cv_header_stdc=no
21004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21005 conftest.$ac_objext conftest.beam conftest.$ac_ext
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21011 $as_echo "$ac_cv_header_stdc" >&6; }
21012 if test $ac_cv_header_stdc = yes; then
21014 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21019 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21020 if ${ac_cv_header_time+:} false; then :
21021 $as_echo_n "(cached) " >&6
21023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21024 /* end confdefs.h. */
21025 #include <sys/types.h>
21026 #include <sys/time.h>
21032 if ((struct tm *) 0)
21038 if ac_fn_c_try_compile "$LINENO"; then :
21039 ac_cv_header_time=yes
21041 ac_cv_header_time=no
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21046 $as_echo "$ac_cv_header_time" >&6; }
21047 if test $ac_cv_header_time = yes; then
21049 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21054 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21055 if ${ac_cv_header_sys_wait_h+:} false; then :
21056 $as_echo_n "(cached) " >&6
21058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21059 /* end confdefs.h. */
21060 #include <sys/types.h>
21061 #include <sys/wait.h>
21062 #ifndef WEXITSTATUS
21063 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21066 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21074 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21079 if ac_fn_c_try_compile "$LINENO"; then :
21080 ac_cv_header_sys_wait_h=yes
21082 ac_cv_header_sys_wait_h=no
21084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21087 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21088 if test $ac_cv_header_sys_wait_h = yes; then
21090 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21136 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21138 cat >>confdefs.h <<_ACEOF
21139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21147 for ac_header in net/if.h
21149 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21150 # include <sys/socket.h>
21154 if test "x$ac_cv_header_net_if_h" = xyes; then :
21155 cat >>confdefs.h <<_ACEOF
21156 #define HAVE_NET_IF_H 1
21165 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21166 if test "x$ac_cv_header_regex_h" = xyes; then :
21168 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21173 if test "x$ac_cv_header_regex_h" = "xyes"; then
21176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21177 /* end confdefs.h. */
21179 #ifdef REG_EXTENDED
21184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21185 $EGREP "yes" >/dev/null 2>&1; then :
21187 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21196 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21199 $as_echo "#define OSFC2 /**/" >>confdefs.h
21203 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21206 $as_echo "#define OSFSIA /**/" >>confdefs.h
21210 OPENSSL_INCLUDE="-DNO_OPENSSL"
21211 if test "x$WITH_OPENSSL" = xyes; then
21212 if test "x$OPENSSL_LIBS" = "x"; then
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
21214 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21216 old_CPPFLAGS=$CPPFLAGS
21217 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21218 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21220 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21230 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21231 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21232 cat >>confdefs.h <<_ACEOF
21233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21243 if test "x$OPENSSL_LIBS" != "x"; then
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21245 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21247 /* end confdefs.h. */
21248 #include <openssl/crypto.h>
21249 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21255 $EGREP "yes" >/dev/null 2>&1; then :
21260 if test "x$goodssl" != "xyes"; then
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21262 $as_echo "no" >&6; }
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21266 $as_echo "yes" >&6; }
21267 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21268 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21270 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21274 CPPFLAGS=$old_CPPFLAGS
21279 export OPENSSL_LIBS
21281 if test "x$PCAP_LIBS" = x; then
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21283 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21285 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21286 if test "x$ac_cv_header_pcap_h" = xyes; then :
21288 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21293 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21300 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21301 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21302 $as_echo_n "(cached) " >&6
21304 ac_check_lib_save_LIBS=$LIBS
21305 LIBS="-lpcap $LIBS"
21306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21307 /* end confdefs.h. */
21309 /* Override any GCC internal prototype to avoid an error.
21310 Use char because int might match the return type of a GCC
21311 builtin and then its argument prototype would still apply. */
21315 char pcap_fopen_offline ();
21319 return pcap_fopen_offline ();
21324 if ac_fn_c_try_link "$LINENO"; then :
21325 ac_cv_lib_pcap_pcap_fopen_offline=yes
21327 ac_cv_lib_pcap_pcap_fopen_offline=no
21329 rm -f core conftest.err conftest.$ac_objext \
21330 conftest$ac_exeext conftest.$ac_ext
21331 LIBS=$ac_check_lib_save_LIBS
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21334 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21335 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21337 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21343 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21344 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21345 $as_echo_n "(cached) " >&6
21347 ac_check_lib_save_LIBS=$LIBS
21348 LIBS="-lpcap $LIBS"
21349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21350 /* end confdefs.h. */
21352 /* Override any GCC internal prototype to avoid an error.
21353 Use char because int might match the return type of a GCC
21354 builtin and then its argument prototype would still apply. */
21358 char pcap_dump_fopen ();
21362 return pcap_dump_fopen ();
21367 if ac_fn_c_try_link "$LINENO"; then :
21368 ac_cv_lib_pcap_pcap_dump_fopen=yes
21370 ac_cv_lib_pcap_pcap_dump_fopen=no
21372 rm -f core conftest.err conftest.$ac_objext \
21373 conftest$ac_exeext conftest.$ac_ext
21374 LIBS=$ac_check_lib_save_LIBS
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21377 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21378 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21380 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21389 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21390 if test "x$ac_cv_type_off_t" = xyes; then :
21394 cat >>confdefs.h <<_ACEOF
21395 #define off_t long int
21400 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21401 if test "x$ac_cv_type_pid_t" = xyes; then :
21405 cat >>confdefs.h <<_ACEOF
21411 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21412 if test "x$ac_cv_type_size_t" = xyes; then :
21416 cat >>confdefs.h <<_ACEOF
21417 #define size_t unsigned int
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21423 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21424 if ${ac_cv_type_uid_t+:} false; then :
21425 $as_echo_n "(cached) " >&6
21427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21428 /* end confdefs.h. */
21429 #include <sys/types.h>
21432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21433 $EGREP "uid_t" >/dev/null 2>&1; then :
21434 ac_cv_type_uid_t=yes
21436 ac_cv_type_uid_t=no
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21442 $as_echo "$ac_cv_type_uid_t" >&6; }
21443 if test $ac_cv_type_uid_t = no; then
21445 $as_echo "#define uid_t int" >>confdefs.h
21448 $as_echo "#define gid_t int" >>confdefs.h
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21455 $as_echo_n "checking for socklen_t... " >&6; }
21456 if ${ac_cv_type_socklen_t+:} false; then :
21457 $as_echo_n "(cached) " >&6
21459 ac_cv_type_socklen_t=no
21460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21461 /* end confdefs.h. */
21462 #ifdef HAVE_SYS_TYPES_H
21463 #include <sys/types.h>
21465 #ifdef HAVE_SYS_SOCKET_H
21466 #include <sys/socket.h>
21477 if ac_fn_c_try_compile "$LINENO"; then :
21478 ac_cv_type_socklen_t=yes
21480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21485 $as_echo "$ac_cv_type_socklen_t" >&6; }
21487 if test "$ac_cv_type_socklen_t" != "yes"; then
21489 $as_echo "#define socklen_t int" >>confdefs.h
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21496 $as_echo_n "checking for uint8_t... " >&6; }
21497 if ${ac_cv_type_uint8_t+:} false; then :
21498 $as_echo_n "(cached) " >&6
21500 ac_cv_type_uint8_t=no
21501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21502 /* end confdefs.h. */
21503 #ifdef HAVE_INTTYPES_H
21504 #include <inttypes.h>
21506 #ifdef HAVE_STDINT_H
21507 #include <stdint.h>
21518 if ac_fn_c_try_compile "$LINENO"; then :
21519 ac_cv_type_uint8_t=yes
21521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21526 $as_echo "$ac_cv_type_uint8_t" >&6; }
21528 if test "$ac_cv_type_uint8_t" != "yes"; then
21530 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21537 $as_echo_n "checking for uint16_t... " >&6; }
21538 if ${ac_cv_type_uint16_t+:} false; then :
21539 $as_echo_n "(cached) " >&6
21541 ac_cv_type_uint16_t=no
21542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21544 #ifdef HAVE_INTTYPES_H
21545 #include <inttypes.h>
21547 #ifdef HAVE_STDINT_H
21548 #include <stdint.h>
21559 if ac_fn_c_try_compile "$LINENO"; then :
21560 ac_cv_type_uint16_t=yes
21562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21567 $as_echo "$ac_cv_type_uint16_t" >&6; }
21569 if test "$ac_cv_type_uint16_t" != "yes"; then
21571 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21578 $as_echo_n "checking for uint32_t... " >&6; }
21579 if ${ac_cv_type_uint32_t+:} false; then :
21580 $as_echo_n "(cached) " >&6
21582 ac_cv_type_uint32_t=no
21583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21584 /* end confdefs.h. */
21585 #ifdef HAVE_INTTYPES_H
21586 #include <inttypes.h>
21588 #ifdef HAVE_STDINT_H
21589 #include <stdint.h>
21600 if ac_fn_c_try_compile "$LINENO"; then :
21601 ac_cv_type_uint32_t=yes
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21608 $as_echo "$ac_cv_type_uint32_t" >&6; }
21610 if test "$ac_cv_type_uint32_t" != "yes"; then
21612 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21617 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21618 #ifdef HAVE_NETINET_IN_H
21619 #include <netinet/in.h>
21623 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21625 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21630 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21631 #ifdef HAVE_NETINET_IN_H
21632 #include <netinet/in.h>
21634 #ifdef HAVE_SYS_SOCKET_H
21635 #include <sys/socket.h>
21639 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21641 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21646 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21647 #ifdef HAVE_NETINET_IN_H
21648 #include <netinet/in.h>
21652 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21654 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21659 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21660 #ifdef HAVE_SYS_TYPES_H
21661 #include <sys/types.h>
21663 #ifdef HAVE_SYS_SOCKET_H
21664 #include <sys/socket.h>
21666 #ifdef HAVE_NETDB_H
21671 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21673 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21714 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21715 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21716 cat >>confdefs.h <<_ACEOF
21717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21734 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
21735 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
21736 $as_echo_n "(cached) " >&6
21738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21739 /* end confdefs.h. */
21742 #include <string.h>
21743 #ifdef HAVE_UNISTD_H
21744 #include <unistd.h>
21746 #ifdef HAVE_CRYPT_H
21749 #ifdef HAVE_ERRNO_H
21752 #ifdef HAVE_RESOURCE_H
21753 #include <resource.h>
21755 #ifdef HAVE_GETOPT_H
21756 #include <getopt.h>
21758 #ifdef HAVE_MALLOC_H
21759 #include <malloc.h>
21764 #ifdef HAVE_UTMPX_H
21767 #ifdef HAVE_SYS_SELECT_H
21768 #include <sys/select.h>
21770 #ifdef HAVE_DLFCN_H
21773 #ifdef HAVE_REGEX_H
21776 #ifdef HAVE_SYSLOG_H
21777 #include <syslog.h>
21779 #ifdef HAVE_INTTYPES_H
21780 #include <inttypes.h>
21782 #ifdef HAVE_STDINT_H
21783 #include <stdint.h>
21785 #ifdef HAVE_ARPA_INET_H
21786 #include <arpa/inet.h>
21792 char *(*pfn) = (char *(*)) $ac_func
21797 if ac_fn_c_try_compile "$LINENO"; then :
21798 eval "radius_cv_decl_needed_$ac_func=no"
21800 eval "radius_cv_decl_needed_$ac_func=yes"
21802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21807 $as_echo "yes" >&6; }
21808 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21809 cat >>confdefs.h <<_ACEOF
21810 #define $radius_tr_decl 1
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21815 $as_echo "no" >&6; }
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21822 $as_echo_n "checking return type of signal handlers... " >&6; }
21823 if ${ac_cv_type_signal+:} false; then :
21824 $as_echo_n "(cached) " >&6
21826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21827 /* end confdefs.h. */
21828 #include <sys/types.h>
21829 #include <signal.h>
21834 return *(signal (0, 0)) (0) == 1;
21839 if ac_fn_c_try_compile "$LINENO"; then :
21840 ac_cv_type_signal=int
21842 ac_cv_type_signal=void
21844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21847 $as_echo "$ac_cv_type_signal" >&6; }
21849 cat >>confdefs.h <<_ACEOF
21850 #define RETSIGTYPE $ac_cv_type_signal
21855 if test "x$ac_cv_header_utmpx_h" = "xyes"
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
21859 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
21862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21863 /* end confdefs.h. */
21866 #ifdef HAVE_STDDEF_H
21867 #include <stddef.h>
21870 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21876 int foo = offsetof(struct utmpx, ut_xtime)
21881 if ac_fn_c_try_compile "$LINENO"; then :
21886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21888 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
21889 if test "x$has_element" != "x"; then
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21891 $as_echo "yes" >&6; }
21892 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21895 $as_echo "no" >&6; }
21896 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
21899 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
21902 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
21909 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
21912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h. */
21915 #include <netinet/in.h>
21916 #ifdef HAVE_STDDEF_H
21917 #include <stddef.h>
21920 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21926 int foo = offsetof(struct in_pktinfo, ipi_addr)
21931 if ac_fn_c_try_compile "$LINENO"; then :
21936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
21939 if test "x$has_element" != "x"; then
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21941 $as_echo "yes" >&6; }
21942 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21945 $as_echo "no" >&6; }
21946 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
21949 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
21952 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
21958 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
21961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21962 /* end confdefs.h. */
21964 #include <netinet/in.h>
21965 #ifdef HAVE_STDDEF_H
21966 #include <stddef.h>
21969 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21975 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
21980 if ac_fn_c_try_compile "$LINENO"; then :
21985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21987 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
21988 if test "x$has_element" != "x"; then
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21990 $as_echo "yes" >&6; }
21991 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21994 $as_echo "no" >&6; }
21995 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
21998 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22001 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22007 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22008 if ${ac_cv_c_const+:} false; then :
22009 $as_echo_n "(cached) " >&6
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h. */
22018 #ifndef __cplusplus
22019 /* Ultrix mips cc rejects this sort of thing. */
22020 typedef int charset[2];
22021 const charset cs = { 0, 0 };
22022 /* SunOS 4.1.1 cc rejects this. */
22023 char const *const *pcpcc;
22025 /* NEC SVR4.0.2 mips cc rejects this. */
22026 struct point {int x, y;};
22027 static struct point const zero = {0,0};
22028 /* AIX XL C 1.02.0.0 rejects this.
22029 It does not let you subtract one const X* pointer from another in
22030 an arm of an if-expression whose if-part is not a constant
22032 const char *g = "string";
22033 pcpcc = &g + (g ? g-g : 0);
22034 /* HPUX 7.0 cc rejects these. */
22036 ppc = (char**) pcpcc;
22037 pcpcc = (char const *const *) ppc;
22038 { /* SCO 3.2v4 cc rejects this sort of thing. */
22041 char const *s = 0 ? (char *) 0 : (char const *) 0;
22046 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22047 int x[] = {25, 17};
22048 const int *foo = &x[0];
22051 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22052 typedef const int *iptr;
22056 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22057 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22058 struct s { int j; const int *ap[3]; } bx;
22059 struct s *b = &bx; b->j = 5;
22061 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22062 const int foo = 10;
22063 if (!foo) return 0;
22065 return !cs[0] && !zero.x;
22072 if ac_fn_c_try_compile "$LINENO"; then :
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22080 $as_echo "$ac_cv_c_const" >&6; }
22081 if test $ac_cv_c_const = no; then
22083 $as_echo "#define const /**/" >>confdefs.h
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22089 $as_echo_n "checking type of OS... " >&6; }
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22092 $as_echo "$OS" >&6; }
22093 if test "$OS" = "OS/2"; then
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22101 $as_echo_n "checking for developer gcc flags... " >&6; }
22102 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22103 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22104 CFLAGS="$CFLAGS $devflags"
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
22107 $as_echo "yes. Using $devflags" >&6; }
22110 CFLAGS="$CFLAGS -DNDEBUG"
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22113 $as_echo "no." >&6; }
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22118 $as_echo_n "checking for TLS... " >&6; }
22119 if test "$cross_compiling" = yes; then :
22122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h. */
22124 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22126 if ac_fn_c_try_run "$LINENO"; then :
22131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22132 conftest.$ac_objext conftest.beam conftest.$ac_ext
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22136 $as_echo "$have_tls" >&6; }
22137 if test "$have_tls" = "yes"; then
22139 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22146 LIBS="$LIBS $LIBLTDL"
22147 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22148 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22150 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22157 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22158 if ${ac_cv_lib_crypt_crypt+:} false; then :
22159 $as_echo_n "(cached) " >&6
22161 ac_check_lib_save_LIBS=$LIBS
22162 LIBS="-lcrypt $LIBS"
22163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22164 /* end confdefs.h. */
22166 /* Override any GCC internal prototype to avoid an error.
22167 Use char because int might match the return type of a GCC
22168 builtin and then its argument prototype would still apply. */
22181 if ac_fn_c_try_link "$LINENO"; then :
22182 ac_cv_lib_crypt_crypt=yes
22184 ac_cv_lib_crypt_crypt=no
22186 rm -f core conftest.err conftest.$ac_objext \
22187 conftest$ac_exeext conftest.$ac_ext
22188 LIBS=$ac_check_lib_save_LIBS
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22191 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22192 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22197 if test "$CRYPTLIB" != ""; then
22199 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22202 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22203 if test "x$ac_cv_func_crypt" = xyes; then :
22205 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22212 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22213 if ${ac_cv_lib_cipher_setkey+:} false; then :
22214 $as_echo_n "(cached) " >&6
22216 ac_check_lib_save_LIBS=$LIBS
22217 LIBS="-lcipher $LIBS"
22218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22219 /* end confdefs.h. */
22221 /* Override any GCC internal prototype to avoid an error.
22222 Use char because int might match the return type of a GCC
22223 builtin and then its argument prototype would still apply. */
22236 if ac_fn_c_try_link "$LINENO"; then :
22237 ac_cv_lib_cipher_setkey=yes
22239 ac_cv_lib_cipher_setkey=no
22241 rm -f core conftest.err conftest.$ac_objext \
22242 conftest$ac_exeext conftest.$ac_ext
22243 LIBS=$ac_check_lib_save_LIBS
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22246 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22247 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22248 CRYPTLIB="${CRYPTLIB} -lcipher"
22255 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22258 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22261 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22263 gethostbyaddrrstyle=""
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22265 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22268 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22269 #ifdef HAVE_NETDB_H
22274 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22280 cat >>confdefs.h <<_ACEOF
22281 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22283 if test $ac_have_decl = 1; then :
22288 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22290 gethostbyaddrrstyle=BSD
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22292 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22298 if test "x$gethostbyaddrrstyle" = "x"; then
22299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22300 /* end confdefs.h. */
22308 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22313 if ac_fn_c_try_link "$LINENO"; then :
22316 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22318 gethostbyaddrrstyle=GNU
22321 rm -f core conftest.err conftest.$ac_objext \
22322 conftest$ac_exeext conftest.$ac_ext
22324 if test "x$gethostbyaddrrstyle" = "x"; then
22325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22326 /* end confdefs.h. */
22334 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22339 if ac_fn_c_try_link "$LINENO"; then :
22342 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22344 gethostbyaddrrstyle=SYSV
22347 rm -f core conftest.err conftest.$ac_objext \
22348 conftest$ac_exeext conftest.$ac_ext
22350 if test "x$gethostbyaddrrstyle" = "x"; then
22351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22352 /* end confdefs.h. */
22360 gethostbyaddr(NULL, 0, 0)
22365 if ac_fn_c_try_link "$LINENO"; then :
22368 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22370 gethostbyaddrrstyle=BSD
22373 rm -f core conftest.err conftest.$ac_objext \
22374 conftest$ac_exeext conftest.$ac_ext
22377 if test "x$gethostbyaddrrstyle" = "x"; then
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22379 $as_echo "none! It must not exist, here." >&6; }
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22382 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22385 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22387 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22390 gethostbynamerstyle=""
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22392 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394 /* end confdefs.h. */
22402 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22407 if ac_fn_c_try_link "$LINENO"; then :
22410 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22412 gethostbynamerstyle=GNU
22415 rm -f core conftest.err conftest.$ac_objext \
22416 conftest$ac_exeext conftest.$ac_ext
22417 if test "x$gethostbynamerstyle" = "x"; then
22418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22419 /* end confdefs.h. */
22427 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22432 if ac_fn_c_try_link "$LINENO"; then :
22435 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22437 gethostbynamerstyle=SYSV
22440 rm -f core conftest.err conftest.$ac_objext \
22441 conftest$ac_exeext conftest.$ac_ext
22443 if test "x$gethostbynamerstyle" = "x"; then
22444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22445 /* end confdefs.h. */
22453 gethostbyname(NULL)
22458 if ac_fn_c_try_link "$LINENO"; then :
22461 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22463 gethostbynamerstyle=BSD
22466 rm -f core conftest.err conftest.$ac_objext \
22467 conftest$ac_exeext conftest.$ac_ext
22470 if test "x$gethostbynamerstyle" = "x"; then
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22472 $as_echo "none! It must not exist, here." >&6; }
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22475 $as_echo "${gethostbynamerstyle}-style" >&6; }
22478 if test "x$gethostbynamerstyle" = "xBSD"; then
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22480 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22484 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22487 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22491 $as_echo_n "checking ctime_r() syntax... " >&6; }
22492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22493 /* end confdefs.h. */
22500 ctime_r(NULL, NULL, 0)
22505 if ac_fn_c_try_link "$LINENO"; then :
22508 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22510 ctimerstyle="SOLARIS"
22513 rm -f core conftest.err conftest.$ac_objext \
22514 conftest$ac_exeext conftest.$ac_ext
22515 if test "x$ctimerstyle" = "x"; then
22516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22517 /* end confdefs.h. */
22524 ctime_r(NULL, NULL)
22529 if ac_fn_c_try_link "$LINENO"; then :
22532 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22534 ctimerstyle="POSIX"
22537 rm -f core conftest.err conftest.$ac_objext \
22538 conftest$ac_exeext conftest.$ac_ext
22541 if test "x$ctimerstyle" = "x"; then
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22543 $as_echo "none! It must not exist, here." >&6; }
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22546 $as_echo "${ctimerstyle}-style" >&6; }
22552 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22554 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22560 export top_builddir
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22562 $as_echo "top_builddir=$top_builddir" >&6; }
22568 mysubdirs="$LIBLTDLPATH"
22569 if test "x$EXPERIMENTAL" = "xyes"; then
22570 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22571 mysubdirs=`echo $mysubdirs $bar`
22573 for bar in `cat "${srcdir}"/src/modules/stable`; do
22574 if test -f "${srcdir}"/src/modules/$bar/configure; then
22575 mysubdirs="$mysubdirs src/modules/$bar"
22580 if test "x$EXPERIMENTAL" = "xyes"; then
22581 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22582 MODULES="$MODULES $foo"
22585 for foo in `cat "${srcdir}"/src/modules/stable`; do
22586 MODULES="$MODULES $foo"
22592 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22597 ac_config_commands="$ac_config_commands stamp-h"
22599 ac_config_commands="$ac_config_commands build-radpaths-h"
22601 ac_config_commands="$ac_config_commands main-chmod"
22603 ac_config_commands="$ac_config_commands scripts-chmod"
22609 USE_SHARED_LIBS=$enable_shared
22611 USE_STATIC_LIBS=$enable_static
22622 unset ac_cv_env_LIBS_set
22623 unset ac_cv_env_LIBS_value
22625 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/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
22627 cat >confcache <<\_ACEOF
22628 # This file is a shell script that caches the results of configure
22629 # tests run on this system so they can be shared between configure
22630 # scripts and configure runs, see configure's option --config-cache.
22631 # It is not useful on other systems. If it contains results you don't
22632 # want to keep, you may remove or edit it.
22634 # config.status only pays attention to the cache file if you give it
22635 # the --recheck option to rerun configure.
22637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22639 # following values.
22643 # The following way of writing the cache mishandles newlines in values,
22644 # but we know of no workaround that is simple, portable, and efficient.
22645 # So, we kill variables containing newlines.
22646 # Ultrix sh set writes to stderr and can't be redirected directly,
22647 # and sets the high bit in the cache file unless we assign to the vars.
22649 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22650 eval ac_val=\$$ac_var
22654 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22655 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22658 _ | IFS | as_nl) ;; #(
22659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22660 *) { eval $ac_var=; unset $ac_var;} ;;
22666 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22667 *${as_nl}ac_space=\ *)
22668 # `set' does not quote correctly, so add quotes: double-quote
22669 # substitution turns \\\\ into \\, and sed turns \\ into \.
22672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22675 # `set' quotes correctly as required by POSIX, so do not add quotes.
22676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22689 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22690 if test -w "$cache_file"; then
22691 if test "x$cache_file" != "x/dev/null"; then
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22693 $as_echo "$as_me: updating cache $cache_file" >&6;}
22694 if test ! -f "$cache_file" || test -h "$cache_file"; then
22695 cat confcache >"$cache_file"
22697 case $cache_file in #(
22699 mv -f confcache "$cache_file"$$ &&
22700 mv -f "$cache_file"$$ "$cache_file" ;; #(
22702 mv -f confcache "$cache_file" ;;
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22708 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22714 # Let make expand exec_prefix.
22715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22717 DEFS=-DHAVE_CONFIG_H
22722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22723 # 1. Remove the extension, and $U if already installed.
22724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22725 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22727 # will be set to the directory where LIBOBJS objects are built.
22728 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22729 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22731 LIBOBJS=$ac_libobjs
22733 LTLIBOBJS=$ac_ltlibobjs
22738 : "${CONFIG_STATUS=./config.status}"
22740 ac_clean_files_save=$ac_clean_files
22741 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22743 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22745 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22747 # Generated by $as_me.
22748 # Run this file to recreate the current configuration.
22749 # Compiler output produced by configure, useful for debugging
22750 # configure, is in config.log if it exists.
22753 ac_cs_recheck=false
22756 SHELL=\${CONFIG_SHELL-$SHELL}
22759 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22760 ## -------------------- ##
22761 ## M4sh Initialization. ##
22762 ## -------------------- ##
22764 # Be more Bourne compatible
22765 DUALCASE=1; export DUALCASE # for MKS sh
22766 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22769 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22770 # is contrary to our usage. Disable this feature.
22771 alias -g '${1+"$@"}'='"$@"'
22772 setopt NO_GLOB_SUBST
22774 case `(set -o) 2>/dev/null` in #(
22786 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22787 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22788 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22789 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22790 # Prefer a ksh shell builtin over an external printf program on Solaris,
22791 # but without wasting forks for bash or zsh.
22792 if test -z "$BASH_VERSION$ZSH_VERSION" \
22793 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22794 as_echo='print -r --'
22795 as_echo_n='print -rn --'
22796 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22797 as_echo='printf %s\n'
22798 as_echo_n='printf %s'
22800 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22801 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22802 as_echo_n='/usr/ucb/echo -n'
22804 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22805 as_echo_n_body='eval
22809 expr "X$arg" : "X\\(.*\\)$as_nl";
22810 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22812 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22814 export as_echo_n_body
22815 as_echo_n='sh -c $as_echo_n_body as_echo'
22817 export as_echo_body
22818 as_echo='sh -c $as_echo_body as_echo'
22821 # The user is always right.
22822 if test "${PATH_SEPARATOR+set}" != set; then
22824 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22825 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22832 # We need space, tab and new line, in precisely that order. Quoting is
22833 # there to prevent editors from complaining about space-tab.
22834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22835 # splitting by setting IFS to empty value.)
22838 # Find who we are. Look in the path if we contain no directory separator.
22841 *[\\/]* ) as_myself=$0 ;;
22842 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22843 for as_dir in $PATH
22846 test -z "$as_dir" && as_dir=.
22847 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22853 # We did not find ourselves, most probably we were run as `sh COMMAND'
22854 # in which case we are not to be found in the path.
22855 if test "x$as_myself" = x; then
22858 if test ! -f "$as_myself"; then
22859 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22863 # Unset variables that we do not need and which cause bugs (e.g. in
22864 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22865 # suppresses any "Segmentation fault" message there. '((' could
22866 # trigger a bug in pdksh 5.2.14.
22867 for as_var in BASH_ENV ENV MAIL MAILPATH
22868 do eval test x\${$as_var+set} = xset \
22869 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22882 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22885 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22886 # ----------------------------------------
22887 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22888 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22889 # script with STATUS, using 1 if that was 0.
22892 as_status=$1; test $as_status -eq 0 && as_status=1
22894 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22895 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22897 $as_echo "$as_me: error: $2" >&2
22898 as_fn_exit $as_status
22902 # as_fn_set_status STATUS
22903 # -----------------------
22904 # Set $? to STATUS, without forking.
22905 as_fn_set_status ()
22908 } # as_fn_set_status
22910 # as_fn_exit STATUS
22911 # -----------------
22912 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22916 as_fn_set_status $1
22922 # Portably unset VAR.
22925 { eval $1=; unset $1;}
22927 as_unset=as_fn_unset
22928 # as_fn_append VAR VALUE
22929 # ----------------------
22930 # Append the text in VALUE to the end of the definition contained in VAR. Take
22931 # advantage of any shell optimizations that allow amortized linear growth over
22932 # repeated appends, instead of the typical quadratic growth present in naive
22934 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22935 eval 'as_fn_append ()
22946 # as_fn_arith ARG...
22947 # ------------------
22948 # Perform arithmetic evaluation on the ARGs, and store the result in the
22949 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22950 # must be portable across $(()) and expr.
22951 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22952 eval 'as_fn_arith ()
22959 as_val=`expr "$@" || test $? -eq 1`
22964 if expr a : '\(a\)' >/dev/null 2>&1 &&
22965 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22971 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22972 as_basename=basename
22977 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22983 as_me=`$as_basename -- "$0" ||
22984 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22985 X"$0" : 'X\(//\)$' \| \
22986 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22988 sed '/^.*\/\([^/][^/]*\)\/*$/{
23002 # Avoid depending upon Character Ranges.
23003 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23004 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23005 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23006 as_cr_digits='0123456789'
23007 as_cr_alnum=$as_cr_Letters$as_cr_digits
23009 ECHO_C= ECHO_N= ECHO_T=
23010 case `echo -n x` in #(((((
23012 case `echo 'xy\c'` in
23013 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23015 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23022 rm -f conf$$ conf$$.exe conf$$.file
23023 if test -d conf$$.dir; then
23024 rm -f conf$$.dir/conf$$.file
23027 mkdir conf$$.dir 2>/dev/null
23029 if (echo >conf$$.file) 2>/dev/null; then
23030 if ln -s conf$$.file conf$$ 2>/dev/null; then
23032 # ... but there are two gotchas:
23033 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23034 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23035 # In both cases, we have to default to `cp -pR'.
23036 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23038 elif ln conf$$.file conf$$ 2>/dev/null; then
23046 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23047 rmdir conf$$.dir 2>/dev/null
23052 # Create "$as_dir" as a directory, including parents if necessary.
23057 -*) as_dir=./$as_dir;;
23059 test -d "$as_dir" || eval $as_mkdir_p || {
23063 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23064 *) as_qdir=$as_dir;;
23066 as_dirs="'$as_qdir' $as_dirs"
23067 as_dir=`$as_dirname -- "$as_dir" ||
23068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23069 X"$as_dir" : 'X\(//\)[^/]' \| \
23070 X"$as_dir" : 'X\(//\)$' \| \
23071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23072 $as_echo X"$as_dir" |
23073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23077 /^X\(\/\/\)[^/].*/{
23090 test -d "$as_dir" && break
23092 test -z "$as_dirs" || eval "mkdir $as_dirs"
23093 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23097 if mkdir -p . 2>/dev/null; then
23098 as_mkdir_p='mkdir -p "$as_dir"'
23100 test -d ./-p && rmdir ./-p
23105 # as_fn_executable_p FILE
23106 # -----------------------
23107 # Test if FILE is an executable regular file.
23108 as_fn_executable_p ()
23110 test -f "$1" && test -x "$1"
23111 } # as_fn_executable_p
23112 as_test_x='test -x'
23113 as_executable_p=as_fn_executable_p
23115 # Sed expression to map a string onto a valid CPP name.
23116 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23118 # Sed expression to map a string onto a valid variable name.
23119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23123 ## ----------------------------------- ##
23124 ## Main body of $CONFIG_STATUS script. ##
23125 ## ----------------------------------- ##
23127 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23130 # Save the log message, to keep $0 and so on meaningful, and to
23131 # report actual input values of CONFIG_FILES etc. instead of their
23132 # values after options handling.
23134 This file was extended by freeradius $as_me $Id$, which was
23135 generated by GNU Autoconf 2.69. Invocation command line was
23137 CONFIG_FILES = $CONFIG_FILES
23138 CONFIG_HEADERS = $CONFIG_HEADERS
23139 CONFIG_LINKS = $CONFIG_LINKS
23140 CONFIG_COMMANDS = $CONFIG_COMMANDS
23143 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23148 case $ac_config_files in *"
23149 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23152 case $ac_config_headers in *"
23153 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23158 # Files that config.status was made for.
23159 config_files="$ac_config_files"
23160 config_headers="$ac_config_headers"
23161 config_commands="$ac_config_commands"
23165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23167 \`$as_me' instantiates files and other configuration actions
23168 from templates according to the current configuration. Unless the files
23169 and actions are specified as TAGs, all are instantiated by default.
23171 Usage: $0 [OPTION]... [TAG]...
23173 -h, --help print this help, then exit
23174 -V, --version print version number and configuration settings, then exit
23175 --config print configuration, then exit
23176 -q, --quiet, --silent
23177 do not print progress messages
23178 -d, --debug don't remove temporary files
23179 --recheck update $as_me by reconfiguring in the same conditions
23180 --file=FILE[:TEMPLATE]
23181 instantiate the configuration file FILE
23182 --header=FILE[:TEMPLATE]
23183 instantiate the configuration header FILE
23185 Configuration files:
23188 Configuration headers:
23191 Configuration commands:
23194 Report bugs to <http://bugs.freeradius.org>.
23195 freeradius home page: <http://www.freeradius.org>."
23198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23199 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23201 freeradius config.status $Id$
23202 configured by $0, generated by GNU Autoconf 2.69,
23203 with options \\"\$ac_cs_config\\"
23205 Copyright (C) 2012 Free Software Foundation, Inc.
23206 This config.status script is free software; the Free Software Foundation
23207 gives unlimited permission to copy, distribute and modify it."
23211 test -n "\$AWK" || AWK=awk
23214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23215 # The default lists apply if the user does not specify any file.
23221 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23222 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23238 # Handling of the options.
23239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23241 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23242 $as_echo "$ac_cs_version"; exit ;;
23243 --config | --confi | --conf | --con | --co | --c )
23244 $as_echo "$ac_cs_config"; exit ;;
23245 --debug | --debu | --deb | --de | --d | -d )
23247 --file | --fil | --fi | --f )
23250 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23251 '') as_fn_error $? "missing file argument" ;;
23253 as_fn_append CONFIG_FILES " '$ac_optarg'"
23254 ac_need_defaults=false;;
23255 --header | --heade | --head | --hea )
23258 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23260 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23261 ac_need_defaults=false;;
23263 # Conflict between --help and --header
23264 as_fn_error $? "ambiguous option: \`$1'
23265 Try \`$0 --help' for more information.";;
23266 --help | --hel | -h )
23267 $as_echo "$ac_cs_usage"; exit ;;
23268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23269 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23272 # This is an error.
23273 -*) as_fn_error $? "unrecognized option: \`$1'
23274 Try \`$0 --help' for more information." ;;
23276 *) as_fn_append ac_config_targets " $1"
23277 ac_need_defaults=false ;;
23283 ac_configure_extra_args=
23285 if $ac_cs_silent; then
23287 ac_configure_extra_args="$ac_configure_extra_args --silent"
23291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23292 if \$ac_cs_recheck; then
23293 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23295 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23296 CONFIG_SHELL='$SHELL'
23297 export CONFIG_SHELL
23302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23306 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23307 ## Running $as_me. ##
23313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23318 # Handling of arguments.
23319 for ac_config_target in $ac_config_targets
23321 case $ac_config_target in
23322 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23323 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23324 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23325 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23326 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23327 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23328 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23329 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23330 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23331 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23332 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23333 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23334 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23335 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23336 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23337 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23338 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23339 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23340 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23342 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23347 # If the user did not use the arguments to specify the items to instantiate,
23348 # then the envvar interface is used. Set only those that are not.
23349 # We use the long form for the default assignment because of an extremely
23350 # bizarre bug on SunOS 4.1.3.
23351 if $ac_need_defaults; then
23352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23357 # Have a temporary directory for convenience. Make it in the build tree
23358 # simply because there is no reason against having it here, and in addition,
23359 # creating and moving files from /tmp can sometimes cause problems.
23360 # Hook for its removal unless debugging.
23361 # Note that there is a small window in which the directory will not be cleaned:
23362 # after its creation but before its name has been assigned to `$tmp'.
23366 trap 'exit_status=$?
23367 : "${ac_tmp:=$tmp}"
23368 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23370 trap 'as_fn_exit 1' 1 2 13 15
23372 # Create a (secure) tmp directory for tmp files.
23375 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23379 tmp=./conf$$-$RANDOM
23380 (umask 077 && mkdir "$tmp")
23381 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23384 # Set up the scripts for CONFIG_FILES section.
23385 # No need to generate them if there are no CONFIG_FILES.
23386 # This happens for instance with `./config.status config.h'.
23387 if test -n "$CONFIG_FILES"; then
23390 ac_cr=`echo X | tr X '\015'`
23391 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23392 # But we know of no other shell where ac_cr would be empty at this
23393 # point, so we can use a bashism as a fallback.
23394 if test "x$ac_cr" = x; then
23395 eval ac_cr=\$\'\\r\'
23397 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23398 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23401 ac_cs_awk_cr=$ac_cr
23404 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23409 echo "cat >conf$$subs.awk <<_ACEOF" &&
23410 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23412 } >conf$$subs.sh ||
23413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23416 for ac_last_try in false false false false false :; do
23417 . ./conf$$subs.sh ||
23418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23420 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23421 if test $ac_delim_n = $ac_delim_num; then
23423 elif $ac_last_try; then
23424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23429 rm -f conf$$subs.sh
23431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23432 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23436 s/^/S["/; s/!.*/"]=/
23446 s/\(.\{148\}\)..*/\1/
23448 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23460 s/\(.\{148\}\)..*/\1/
23462 s/["\\]/\\&/g; s/^/"/; s/$/"/
23466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23471 ' <conf$$subs.awk | sed '
23476 ' >>$CONFIG_STATUS || ac_write_fail=1
23477 rm -f conf$$subs.awk
23478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23480 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23481 for (key in S) S_is_set[key] = 1
23487 nfields = split(line, field, "@")
23489 len = length(field[1])
23490 for (i = 2; i < nfields; i++) {
23492 keylen = length(key)
23493 if (S_is_set[key]) {
23495 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23496 len += length(value) + length(field[++i])
23507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23508 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23509 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23512 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23513 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23516 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23517 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23518 # trailing colons and then remove the whole line if VPATH becomes empty
23519 # (actually we leave an empty line to preserve line numbers).
23520 if test "x$srcdir" = x.; then
23521 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23540 fi # test -n "$CONFIG_FILES"
23542 # Set up the scripts for CONFIG_HEADERS section.
23543 # No need to generate them if there are no CONFIG_HEADERS.
23544 # This happens for instance with `./config.status Makefile'.
23545 if test -n "$CONFIG_HEADERS"; then
23546 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23550 # Transform confdefs.h into an awk script `defines.awk', embedded as
23551 # here-document in config.status, that substitutes the proper values into
23552 # config.h.in to produce config.h.
23554 # Create a delimiter string that does not exist in confdefs.h, to ease
23555 # handling of long lines.
23557 for ac_last_try in false false :; do
23558 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23559 if test -z "$ac_tt"; then
23561 elif $ac_last_try; then
23562 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23568 # For the awk script, D is an array of macro values keyed by name,
23569 # likewise P contains macro parameters if any. Preserve backslash
23570 # newline sequences.
23572 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23574 s/.\{148\}/&'"$ac_delim"'/g
23577 s/^[ ]*#[ ]*define[ ][ ]*/ /
23584 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23586 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23590 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23591 D["\1"]=" \3\\\\\\n"\\/p
23593 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23598 s/.\{148\}/&'"$ac_delim"'/g
23603 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23606 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23608 ' <confdefs.h | sed '
23609 s/'"$ac_delim"'/"\\\
23610 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23613 for (key in D) D_is_set[key] = 1
23616 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23618 split(line, arg, " ")
23619 if (arg[1] == "#") {
23623 defundef = substr(arg[1], 2)
23626 split(mac1, mac2, "(") #)
23628 prefix = substr(line, 1, index(line, defundef) - 1)
23629 if (D_is_set[macro]) {
23630 # Preserve the white space surrounding the "#".
23631 print prefix "define", macro P[macro] D[macro]
23634 # Replace #undef with comments. This is necessary, for example,
23635 # in the case of _POSIX_SOURCE, which is predefined and required
23636 # on some systems where configure will not decide to define it.
23637 if (defundef == "undef") {
23638 print "/*", prefix defundef, macro, "*/"
23646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23647 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23648 fi # test -n "$CONFIG_HEADERS"
23651 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23656 :[FHLC]) ac_mode=$ac_tag; continue;;
23658 case $ac_mode$ac_tag in
23660 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23661 :[FH]-) ac_tag=-:-;;
23662 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23679 -) ac_f="$ac_tmp/stdin";;
23680 *) # Look for the file first in the build tree, then in the source tree
23681 # (if the path is not absolute). The absolute path cannot be DOS-style,
23682 # because $ac_f cannot contain `:'.
23686 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23688 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23690 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23691 as_fn_append ac_file_inputs " '$ac_f'"
23694 # Let's still pretend it is `configure' which instantiates (i.e., don't
23695 # use $as_me), people would be surprised to read:
23696 # /* config.h. Generated by config.status. */
23697 configure_input='Generated from '`
23698 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23700 if test x"$ac_file" != x-; then
23701 configure_input="$ac_file. $configure_input"
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23703 $as_echo "$as_me: creating $ac_file" >&6;}
23705 # Neutralize special characters interpreted by sed in replacement strings.
23706 case $configure_input in #(
23707 *\&* | *\|* | *\\* )
23708 ac_sed_conf_input=`$as_echo "$configure_input" |
23709 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23710 *) ac_sed_conf_input=$configure_input;;
23714 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23720 ac_dir=`$as_dirname -- "$ac_file" ||
23721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23722 X"$ac_file" : 'X\(//\)[^/]' \| \
23723 X"$ac_file" : 'X\(//\)$' \| \
23724 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23725 $as_echo X"$ac_file" |
23726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23730 /^X\(\/\/\)[^/].*/{
23743 as_dir="$ac_dir"; as_fn_mkdir_p
23747 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23749 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23750 # A ".." for each directory in $ac_dir_suffix.
23751 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23752 case $ac_top_builddir_sub in
23753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23757 ac_abs_top_builddir=$ac_pwd
23758 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23759 # for backward compatibility:
23760 ac_top_builddir=$ac_top_build_prefix
23763 .) # We are building in place.
23765 ac_top_srcdir=$ac_top_builddir_sub
23766 ac_abs_top_srcdir=$ac_pwd ;;
23767 [\\/]* | ?:[\\/]* ) # Absolute name.
23768 ac_srcdir=$srcdir$ac_dir_suffix;
23769 ac_top_srcdir=$srcdir
23770 ac_abs_top_srcdir=$srcdir ;;
23771 *) # Relative name.
23772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23773 ac_top_srcdir=$ac_top_build_prefix$srcdir
23774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23776 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23788 # If the template does not know about datarootdir, expand it.
23789 # FIXME: This hack should be removed a few years after 2.60.
23790 ac_datarootdir_hack=; ac_datarootdir_seen=
23801 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23802 *datarootdir*) ac_datarootdir_seen=yes;;
23803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23805 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23808 ac_datarootdir_hack='
23809 s&@datadir@&$datadir&g
23810 s&@docdir@&$docdir&g
23811 s&@infodir@&$infodir&g
23812 s&@localedir@&$localedir&g
23813 s&@mandir@&$mandir&g
23814 s&\\\${datarootdir}&$datarootdir&g' ;;
23818 # Neutralize VPATH when `$srcdir' = `.'.
23819 # Shell code in configure.ac might set extrasub.
23820 # FIXME: do we really want to maintain this feature?
23821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23822 ac_sed_extra="$ac_vpsub
23825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23828 s|@configure_input@|$ac_sed_conf_input|;t t
23829 s&@top_builddir@&$ac_top_builddir_sub&;t t
23830 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23831 s&@srcdir@&$ac_srcdir&;t t
23832 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23833 s&@top_srcdir@&$ac_top_srcdir&;t t
23834 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23835 s&@builddir@&$ac_builddir&;t t
23836 s&@abs_builddir@&$ac_abs_builddir&;t t
23837 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23838 $ac_datarootdir_hack
23840 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23841 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23844 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23846 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23848 which seems to be undefined. Please make sure it is defined" >&5
23849 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23850 which seems to be undefined. Please make sure it is defined" >&2;}
23852 rm -f "$ac_tmp/stdin"
23854 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23855 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23863 if test x"$ac_file" != x-; then
23865 $as_echo "/* $configure_input */" \
23866 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23867 } >"$ac_tmp/config.h" \
23868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23869 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23871 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23874 mv "$ac_tmp/config.h" "$ac_file" \
23875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23878 $as_echo "/* $configure_input */" \
23879 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23880 || as_fn_error $? "could not create -" "$LINENO" 5
23884 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23885 $as_echo "$as_me: executing $ac_file commands" >&6;}
23890 case $ac_file$ac_mode in
23891 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
23892 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
23893 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
23894 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
23902 ac_clean_files=$ac_clean_files_save
23904 test $ac_write_fail = 0 ||
23905 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23908 # configure is writing to config.log, and then calls config.status.
23909 # config.status does its own redirection, appending to config.log.
23910 # Unfortunately, on DOS this fails, as config.log is still kept open
23911 # by configure, so config.status won't be able to write to it; its
23912 # output is simply discarded. So we exec the FD to /dev/null,
23913 # effectively closing config.log, so it can be properly (re)opened and
23914 # appended to by config.status. When coming back to configure, we
23915 # need to make the FD available again.
23916 if test "$no_create" != yes; then
23918 ac_config_status_args=
23919 test "$silent" = yes &&
23920 ac_config_status_args="$ac_config_status_args --quiet"
23922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23925 # would make configure fail if this is the last instruction.
23926 $ac_cs_success || as_fn_exit 1
23930 # CONFIG_SUBDIRS section.
23932 if test "$no_recursion" != yes; then
23934 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23935 # so they do not pile up.
23936 ac_sub_configure_args=
23938 eval "set x $ac_configure_args"
23942 if test -n "$ac_prev"; then
23947 -cache-file | --cache-file | --cache-fil | --cache-fi \
23948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23949 ac_prev=cache_file ;;
23950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23954 --config-cache | -C)
23956 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23958 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23964 --disable-option-checking)
23968 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23970 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23974 # Always prepend --prefix to ensure using the same prefix
23975 # in subdir configurations.
23976 ac_arg="--prefix=$prefix"
23978 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23980 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23983 if test "$silent" = yes; then
23984 ac_sub_configure_args="--silent $ac_sub_configure_args"
23987 # Always prepend --disable-option-checking to silence warnings, since
23988 # different subdirs can have different --enable and --with options.
23989 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23992 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23994 # Do not complain, so a configure script can configure whichever
23995 # parts of a large source tree are present.
23996 test -d "$srcdir/$ac_dir" || continue
23998 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23999 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24000 $as_echo "$ac_msg" >&6
24001 as_dir="$ac_dir"; as_fn_mkdir_p
24005 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24007 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24008 # A ".." for each directory in $ac_dir_suffix.
24009 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24010 case $ac_top_builddir_sub in
24011 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24012 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24015 ac_abs_top_builddir=$ac_pwd
24016 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24017 # for backward compatibility:
24018 ac_top_builddir=$ac_top_build_prefix
24021 .) # We are building in place.
24023 ac_top_srcdir=$ac_top_builddir_sub
24024 ac_abs_top_srcdir=$ac_pwd ;;
24025 [\\/]* | ?:[\\/]* ) # Absolute name.
24026 ac_srcdir=$srcdir$ac_dir_suffix;
24027 ac_top_srcdir=$srcdir
24028 ac_abs_top_srcdir=$srcdir ;;
24029 *) # Relative name.
24030 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24031 ac_top_srcdir=$ac_top_build_prefix$srcdir
24032 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24034 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24039 # Check for guested configure; otherwise get Cygnus style configure.
24040 if test -f "$ac_srcdir/configure.gnu"; then
24041 ac_sub_configure=$ac_srcdir/configure.gnu
24042 elif test -f "$ac_srcdir/configure"; then
24043 ac_sub_configure=$ac_srcdir/configure
24044 elif test -f "$ac_srcdir/configure.in"; then
24045 # This should be Cygnus configure.
24046 ac_sub_configure=$ac_aux_dir/configure
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24049 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24053 # The recursion is here.
24054 if test -n "$ac_sub_configure"; then
24055 # Make the cache file name correct relative to the subdirectory.
24056 case $cache_file in
24057 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24058 *) # Relative name.
24059 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24063 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24064 # The eval makes quoting arguments work.
24065 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24066 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24067 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24073 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24075 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}