2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
575 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $echo works!
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
596 if test -z "$ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
602 echo_test_string=`eval $cmd` &&
603 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
610 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
615 # The Solaris, AIX, and Digital Unix default echo programs unquote
616 # backslashes. This makes it impossible to quote backslashes using
617 # echo "$something" | sed 's/\\/\\\\/g'
619 # So, first we look for a working echo in the user's PATH.
621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
622 for dir in $PATH /usr/ucb; do
624 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
625 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
634 if test "X$echo" = Xecho; then
635 # We didn't find a better echo, so look for alternatives.
636 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # This shell has a builtin print -r that does the trick.
641 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
642 test "X$CONFIG_SHELL" != X/bin/ksh; then
643 # If we have ksh, try running configure again with it.
644 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
645 export ORIGINAL_CONFIG_SHELL
646 CONFIG_SHELL=/bin/ksh
648 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
657 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
658 test "X$echo_testing_string" = 'X\t' &&
659 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
660 test "X$echo_testing_string" = "X$echo_test_string"; then
661 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
663 SHELL="$CONFIG_SHELL"
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
667 test "X$echo_testing_string" = 'X\t' &&
668 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
669 test "X$echo_testing_string" = "X$echo_test_string"; then
670 echo="$CONFIG_SHELL $0 --fallback-echo"
672 # maybe with a smaller string...
675 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
676 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
683 if test "$prev" != 'sed 50q "$0"'; then
684 echo_test_string=`eval $prev`
685 export echo_test_string
686 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
688 # Oops. We lost completely, so just stick with echo.
697 # Copy echo and quote the copy suitably for passing to libtool from
698 # the Makefile, instead of quoting the original, which is used later.
700 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
701 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
707 tagnames=${tagnames+${tagnames},}CXX
709 tagnames=${tagnames+${tagnames},}F77
711 test -n "$DJDIR" || exec 7<&0 </dev/null
715 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
722 ac_default_prefix=/usr/local
724 ac_config_libobj_dir=.
731 # Identity of this package.
739 ac_unique_file="src/main/radiusd.c"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
753 # ifdef HAVE_STDLIB_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
776 enable_option_checking=no
777 ac_subst_vars='LTLIBOBJS
779 RADIUSD_VERSION_COMMIT
780 RADIUSD_VERSION_STRING
782 RADIUSD_INCRM_VERSION
783 RADIUSD_MINOR_VERSION
784 RADIUSD_MAJOR_VERSION
811 openssl_version_check_config
884 program_transform_name
897 enable_option_checking
908 enable_strict_dependencies
917 with_post_proxy_authorize
921 with_experimental_modules
923 with_openssl_includes
924 with_openssl_libraries
925 enable_openssl_version_check
927 with_rlm_FOO_include_dir
930 ac_precious_vars='build_alias
945 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
947 # Initialize some variables set by options.
949 ac_init_version=false
950 ac_unrecognized_opts=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name=s,x,x,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1007 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1064 eval enable_$ac_useropt=no ;;
1066 -docdir | --docdir | --docdi | --doc | --do)
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 sbindir=$ac_optarg ;;
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 sharedstatedir=$ac_optarg ;;
1252 -site | --site | --sit)
1254 -site=* | --site=* | --sit=*)
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1294 eval with_$ac_useropt=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error $? "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1310 eval with_$ac_useropt=no ;;
1313 # Obsolete; use --with-x.
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1330 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information"
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' | [0-9]* | *[!_$as_cr_alnum]* )
1339 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error $? "missing argument to $ac_option"
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1363 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1381 # Be sure to have absolute directory names.
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1394 target=$target_alias
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 elif test "x$build_alias" != "x$host_alias"; then
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408 test "$silent" = yes && exec 6>/dev/null
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414 as_fn_error $? "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 as_fn_error $? "pwd does not report name of working directory"
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1451 ac_srcdir_defaulted=no
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 # Report the --help message.
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1485 \`configure' configures this package to adapt to many kinds of systems.
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1492 Defaults for the options are specified in brackets.
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking ...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1516 For better control, use the options below.
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 --target=TARGET configure for building compilers for TARGET [HOST]
1549 if test -n "$ac_init_help"; then
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --disable-largefile omit support for large files
1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-static[=PKGS] build static libraries [default=yes]
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation [default=yes]
1562 --disable-libtool-lock avoid locking (might break parallel builds)
1563 --enable-strict-dependencies Fail configure on lack of module dependancy.
1564 --enable-developer Enables features of interest to developers.
1565 --disable-openssl-version-check Disable vulnerable OpenSSL version check.
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-system-libltdl Use the libltdl installed in your system (default=use our own)
1572 --with-system-libtool Use the libtool installed in your system (default=use our own)
1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1576 --with-tags[=TAGS] include additional configurations [automatic]
1577 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1578 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1579 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1580 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1581 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1582 --with-threads Use threads, if available. (default=yes)
1583 --with-vmps Compile in VMPS support. (default=yes)
1584 --with-dhcp Compile in DHCP support. (default=yes)
1585 --with-post-proxy-authorize 1.x compatibility (default=no)
1586 --with-static-modules=QUOTED-MODULE-LIST
1587 --with-modules=QUOTED-MODULE-LIST
1588 --with-experimental-modules Use experimental and unstable modules. (default=no)
1589 --with-openssl Use OpenSSL. (default=yes)
1590 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1591 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1592 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1593 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1594 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1596 Some influential environment variables:
1597 CC C compiler command
1598 CFLAGS C compiler flags
1599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
1601 LIBS libraries to pass to the linker, e.g. -l<library>
1602 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603 you have headers in a nonstandard directory <include dir>
1604 CXX C++ compiler command
1605 CXXFLAGS C++ compiler flags
1607 CXXCPP C++ preprocessor
1608 F77 Fortran 77 compiler command
1609 FFLAGS Fortran 77 compiler flags
1611 Use these variables to override the choices made by `configure' or to help
1612 it to find libraries and programs with nonstandard names/locations.
1614 Report bugs to the package provider.
1619 if test "$ac_init_help" = "recursive"; then
1620 # If there are subdirs, report their specific --help.
1621 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622 test -d "$ac_dir" ||
1623 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631 # A ".." for each directory in $ac_dir_suffix.
1632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1644 .) # We are building in place.
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
1649 ac_srcdir=$srcdir$ac_dir_suffix;
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1666 $SHELL "$ac_srcdir/configure" --help=recursive
1668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 cd "$ac_pwd" || { ac_status=$?; break; }
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1678 generated by GNU Autoconf 2.69
1680 Copyright (C) 2012 Free Software Foundation, Inc.
1681 This configure script is free software; the Free Software Foundation
1682 gives unlimited permission to copy, distribute and modify it.
1687 ## ------------------------ ##
1688 ## Autoconf initialization. ##
1689 ## ------------------------ ##
1691 # ac_fn_c_try_compile LINENO
1692 # --------------------------
1693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_compile ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext; then :
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1727 } # ac_fn_c_try_compile
1729 # ac_fn_cxx_try_compile LINENO
1730 # ----------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_cxx_try_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext
1736 if { { ac_try="$ac_compile"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_cxx_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1765 } # ac_fn_cxx_try_compile
1767 # ac_fn_c_try_cpp LINENO
1768 # ----------------------
1769 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if { { ac_try="$ac_cpp conftest.$ac_ext"
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } > conftest.i && {
1789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1804 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807 # the include files in INCLUDES and setting the cache variable VAR
1809 ac_fn_c_check_header_mongrel ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if eval \${$3+:} false; then :
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1822 # Is the header compilable?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824 $as_echo_n "checking $2 usability... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831 ac_header_compiler=yes
1833 ac_header_compiler=no
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837 $as_echo "$ac_header_compiler" >&6; }
1839 # Is the header present?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841 $as_echo_n "checking $2 presence... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1846 if ac_fn_c_try_cpp "$LINENO"; then :
1847 ac_header_preproc=yes
1849 ac_header_preproc=no
1851 rm -f conftest.err conftest.i conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853 $as_echo "$ac_header_preproc" >&6; }
1855 # So? What about this header?
1856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1867 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1871 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1881 eval "$3=\$ac_header_compiler"
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 } # ac_fn_c_check_header_mongrel
1891 # ac_fn_c_try_run LINENO
1892 # ----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1894 # that executables *can* be run.
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_link"
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>&5
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1909 { { case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_try") 2>&5
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; }; }; then :
1921 $as_echo "$as_me: program exited with status $ac_status" >&5
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_retval=$ac_status
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1933 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1934 # -------------------------------------------------------
1935 # Tests whether HEADER exists and can be compiled using the include files in
1936 # INCLUDES, setting the cache variable VAR accordingly.
1937 ac_fn_c_check_header_compile ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1950 if ac_fn_c_try_compile "$LINENO"; then :
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 } # ac_fn_c_check_header_compile
1964 # ac_fn_c_try_link LINENO
1965 # -----------------------
1966 # Try to link conftest.$ac_ext, and return whether this succeeded.
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 rm -f conftest.$ac_objext conftest$ac_exeext
1971 if { { ac_try="$ac_link"
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_link") 2>conftest.err
1980 if test -s conftest.err; then
1981 grep -v '^ *+' conftest.err >conftest.er1
1982 cat conftest.er1 >&5
1983 mv -f conftest.er1 conftest.err
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && {
1987 test -z "$ac_c_werror_flag" ||
1988 test ! -s conftest.err
1989 } && test -s conftest$ac_exeext && {
1990 test "$cross_compiling" = yes ||
1991 test -x conftest$ac_exeext
1995 $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
2000 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2001 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2002 # interfere with the next link command; also delete a directory that is
2003 # left behind by Apple's compiler. We do this before executing the actions.
2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 as_fn_set_status $ac_retval
2008 } # ac_fn_c_try_link
2010 # ac_fn_c_check_func LINENO FUNC VAR
2011 # ----------------------------------
2012 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2013 ac_fn_c_check_func ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2025 #define $2 innocuous_$2
2027 /* System header to define __stub macros and hopefully few prototypes,
2028 which can conflict with char $2 (); below.
2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2030 <limits.h> exists even on freestanding compilers. */
2033 # include <limits.h>
2035 # include <assert.h>
2040 /* Override any GCC internal prototype to avoid an error.
2041 Use char because int might match the return type of a GCC
2042 builtin and then its argument prototype would still apply. */
2047 /* The GNU C library defines this for functions which it implements
2048 to always fail with ENOSYS. Some functions are actually named
2049 something starting with __ and the normal name is an alias. */
2050 #if defined __stub_$2 || defined __stub___$2
2062 if ac_fn_c_try_link "$LINENO"; then :
2067 rm -f core conftest.err conftest.$ac_objext \
2068 conftest$ac_exeext conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 } # ac_fn_c_check_func
2077 # ac_fn_cxx_try_cpp LINENO
2078 # ------------------------
2079 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2080 ac_fn_cxx_try_cpp ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if { { ac_try="$ac_cpp conftest.$ac_ext"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2092 if test -s conftest.err; then
2093 grep -v '^ *+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } > conftest.i && {
2099 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2100 test ! -s conftest.err
2104 $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 as_fn_set_status $ac_retval
2112 } # ac_fn_cxx_try_cpp
2114 # ac_fn_cxx_try_link LINENO
2115 # -------------------------
2116 # Try to link conftest.$ac_ext, and return whether this succeeded.
2117 ac_fn_cxx_try_link ()
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 rm -f conftest.$ac_objext conftest$ac_exeext
2121 if { { ac_try="$ac_link"
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 $as_echo "$ac_try_echo"; } >&5
2128 (eval "$ac_link") 2>conftest.err
2130 if test -s conftest.err; then
2131 grep -v '^ *+' conftest.err >conftest.er1
2132 cat conftest.er1 >&5
2133 mv -f conftest.er1 conftest.err
2135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2136 test $ac_status = 0; } && {
2137 test -z "$ac_cxx_werror_flag" ||
2138 test ! -s conftest.err
2139 } && test -s conftest$ac_exeext && {
2140 test "$cross_compiling" = yes ||
2141 test -x conftest$ac_exeext
2145 $as_echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2150 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2151 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2152 # interfere with the next link command; also delete a directory that is
2153 # left behind by Apple's compiler. We do this before executing the actions.
2154 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 as_fn_set_status $ac_retval
2158 } # ac_fn_cxx_try_link
2160 # ac_fn_f77_try_compile LINENO
2161 # ----------------------------
2162 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2163 ac_fn_f77_try_compile ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 rm -f conftest.$ac_objext
2167 if { { ac_try="$ac_compile"
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_compile") 2>conftest.err
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } && {
2183 test -z "$ac_f77_werror_flag" ||
2184 test ! -s conftest.err
2185 } && test -s conftest.$ac_objext; then :
2188 $as_echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194 as_fn_set_status $ac_retval
2196 } # ac_fn_f77_try_compile
2198 # ac_fn_f77_try_link LINENO
2199 # -------------------------
2200 # Try to link conftest.$ac_ext, and return whether this succeeded.
2201 ac_fn_f77_try_link ()
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 rm -f conftest.$ac_objext conftest$ac_exeext
2205 if { { ac_try="$ac_link"
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211 $as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_link") 2>conftest.err
2214 if test -s conftest.err; then
2215 grep -v '^ *+' conftest.err >conftest.er1
2216 cat conftest.er1 >&5
2217 mv -f conftest.er1 conftest.err
2219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2220 test $ac_status = 0; } && {
2221 test -z "$ac_f77_werror_flag" ||
2222 test ! -s conftest.err
2223 } && test -s conftest$ac_exeext && {
2224 test "$cross_compiling" = yes ||
2225 test -x conftest$ac_exeext
2229 $as_echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2234 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2235 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2236 # interfere with the next link command; also delete a directory that is
2237 # left behind by Apple's compiler. We do this before executing the actions.
2238 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 as_fn_set_status $ac_retval
2242 } # ac_fn_f77_try_link
2244 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2245 # -------------------------------------------
2246 # Tests whether TYPE exists after having included INCLUDES, setting cache
2247 # variable VAR accordingly.
2248 ac_fn_c_check_type ()
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if eval \${$3+:} false; then :
2254 $as_echo_n "(cached) " >&6
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2282 if ac_fn_c_try_compile "$LINENO"; then :
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296 } # ac_fn_c_check_type
2298 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2299 # ---------------------------------------------
2300 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2302 ac_fn_c_check_decl ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 as_decl_name=`echo $2|sed 's/ *(.*//'`
2306 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2308 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2309 if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2318 #ifndef $as_decl_name
2320 (void) $as_decl_use;
2322 (void) $as_decl_name;
2330 if ac_fn_c_try_compile "$LINENO"; then :
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342 } # ac_fn_c_check_decl
2343 cat >config.log <<_ACEOF
2344 This file contains any messages produced by compilers while
2345 running configure, to aid debugging if configure makes a mistake.
2347 It was created by $as_me, which was
2348 generated by GNU Autoconf 2.69. Invocation command line was
2360 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2361 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2362 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2363 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2364 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2366 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2367 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2369 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2370 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2371 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2372 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2373 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2374 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2375 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 $as_echo "PATH: $as_dir"
2400 # Keep a trace of the command line.
2401 # Strip out --no-create and --no-recursion so they do not pile up.
2402 # Strip out --silent because we don't want to record it for future runs.
2403 # Also quote any args containing shell meta-characters.
2404 # Make two passes to allow for proper duplicate-argument suppression.
2408 ac_must_keep_next=false
2414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2416 | -silent | --silent | --silen | --sile | --sil)
2419 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 as_fn_append ac_configure_args1 " '$ac_arg'"
2425 if test $ac_must_keep_next = true; then
2426 ac_must_keep_next=false # Got value, back to normal.
2429 *=* | --config-cache | -C | -disable-* | --disable-* \
2430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2432 | -with-* | --with-* | -without-* | --without-* | --x)
2433 case "$ac_configure_args0 " in
2434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2437 -* ) ac_must_keep_next=true ;;
2440 as_fn_append ac_configure_args " '$ac_arg'"
2445 { ac_configure_args0=; unset ac_configure_args0;}
2446 { ac_configure_args1=; unset ac_configure_args1;}
2448 # When interrupted or exit'd, cleanup temporary files, and complete
2449 # config.log. We remove comments because anyway the quotes in there
2450 # would cause problems or look ugly.
2451 # WARNING: Use '\'' to represent an apostrophe within the trap.
2452 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2453 trap 'exit_status=$?
2454 # Save into config.log some information that might help in debugging.
2458 $as_echo "## ---------------- ##
2459 ## Cache variables. ##
2460 ## ---------------- ##"
2462 # The following way of writing the cache mishandles newlines in values,
2464 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2465 eval ac_val=\$$ac_var
2469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2473 _ | IFS | as_nl) ;; #(
2474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2475 *) { eval $ac_var=; unset $ac_var;} ;;
2480 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2481 *${as_nl}ac_space=\ *)
2483 "s/'\''/'\''\\\\'\'''\''/g;
2484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494 $as_echo "## ----------------- ##
2495 ## Output variables. ##
2496 ## ----------------- ##"
2498 for ac_var in $ac_subst_vars
2500 eval ac_val=\$$ac_var
2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 $as_echo "$ac_var='\''$ac_val'\''"
2508 if test -n "$ac_subst_files"; then
2509 $as_echo "## ------------------- ##
2510 ## File substitutions. ##
2511 ## ------------------- ##"
2513 for ac_var in $ac_subst_files
2515 eval ac_val=\$$ac_var
2517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 $as_echo "$ac_var='\''$ac_val'\''"
2524 if test -s confdefs.h; then
2525 $as_echo "## ----------- ##
2532 test "$ac_signal" != 0 &&
2533 $as_echo "$as_me: caught signal $ac_signal"
2534 $as_echo "$as_me: exit $exit_status"
2536 rm -f core *.core core.conftest.* &&
2537 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2540 for ac_signal in 1 2 13 15; do
2541 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2545 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2546 rm -f -r conftest* confdefs.h
2548 $as_echo "/* confdefs.h */" > confdefs.h
2550 # Predefined preprocessor variables.
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_NAME "$PACKAGE_NAME"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_STRING "$PACKAGE_STRING"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_URL "$PACKAGE_URL"
2577 # Let the site file select an alternate cache file if it wants to.
2578 # Prefer an explicitly selected file to automatically selected ones.
2581 if test -n "$CONFIG_SITE"; then
2582 # We do not want a PATH search for config.site.
2583 case $CONFIG_SITE in #((
2584 -*) ac_site_file1=./$CONFIG_SITE;;
2585 */*) ac_site_file1=$CONFIG_SITE;;
2586 *) ac_site_file1=./$CONFIG_SITE;;
2588 elif test "x$prefix" != xNONE; then
2589 ac_site_file1=$prefix/share/config.site
2590 ac_site_file2=$prefix/etc/config.site
2592 ac_site_file1=$ac_default_prefix/share/config.site
2593 ac_site_file2=$ac_default_prefix/etc/config.site
2595 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597 test "x$ac_site_file" = xNONE && continue
2598 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2600 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2601 sed 's/^/| /' "$ac_site_file" >&5
2603 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error $? "failed to load site script $ac_site_file
2606 See \`config.log' for more details" "$LINENO" 5; }
2610 if test -r "$cache_file"; then
2611 # Some versions of bash will fail to source /dev/null (special files
2612 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2613 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2615 $as_echo "$as_me: loading cache $cache_file" >&6;}
2617 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2618 *) . "./$cache_file";;
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2623 $as_echo "$as_me: creating cache $cache_file" >&6;}
2627 # Check that the precious variables saved in the cache have kept the same
2629 ac_cache_corrupted=false
2630 for ac_var in $ac_precious_vars; do
2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632 eval ac_new_set=\$ac_env_${ac_var}_set
2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634 eval ac_new_val=\$ac_env_${ac_var}_value
2635 case $ac_old_set,$ac_new_set in
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2646 if test "x$ac_old_val" != "x$ac_new_val"; then
2647 # differences in whitespace do not lead to failure.
2648 ac_old_val_w=`echo x $ac_old_val`
2649 ac_new_val_w=`echo x $ac_new_val`
2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2653 ac_cache_corrupted=:
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2656 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657 eval $ac_var=\$ac_old_val
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2660 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2662 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2665 # Pass precious variables to config.status.
2666 if test "$ac_new_set" = set; then
2668 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2669 *) ac_arg=$ac_var=$ac_new_val ;;
2671 case " $ac_configure_args " in
2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2677 if $ac_cache_corrupted; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2682 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2684 ## -------------------- ##
2685 ## Main body of script. ##
2686 ## -------------------- ##
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2699 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2700 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2701 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2703 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2704 -v minor="$RADIUSD_MINOR_VERSION" \
2705 -v incrm="$RADIUSD_INCRM_VERSION" \
2706 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2708 RADIUSD_VERSION_STRING=`cat VERSION`
2713 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2714 if test -f "$ac_dir/install-sh"; then
2716 ac_install_sh="$ac_aux_dir/install-sh -c"
2718 elif test -f "$ac_dir/install.sh"; then
2720 ac_install_sh="$ac_aux_dir/install.sh -c"
2722 elif test -f "$ac_dir/shtool"; then
2724 ac_install_sh="$ac_aux_dir/shtool install -c"
2728 if test -z "$ac_aux_dir"; then
2729 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2732 # These three variables are undocumented and unsupported,
2733 # and are intended to be withdrawn in a future Autoconf release.
2734 # They can cause serious problems if a builder's source tree is in a directory
2735 # whose full name contains unusual characters.
2736 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2737 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2738 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2741 # Make sure we can run config.sub.
2742 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2743 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2746 $as_echo_n "checking build system type... " >&6; }
2747 if ${ac_cv_build+:} false; then :
2748 $as_echo_n "(cached) " >&6
2750 ac_build_alias=$build_alias
2751 test "x$ac_build_alias" = x &&
2752 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2753 test "x$ac_build_alias" = x &&
2754 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2755 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2760 $as_echo "$ac_cv_build" >&6; }
2761 case $ac_cv_build in
2763 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2766 ac_save_IFS=$IFS; IFS='-'
2772 # Remember, the first character of IFS is used to create $*,
2773 # except with old shells:
2776 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2780 $as_echo_n "checking host system type... " >&6; }
2781 if ${ac_cv_host+:} false; then :
2782 $as_echo_n "(cached) " >&6
2784 if test "x$host_alias" = x; then
2785 ac_cv_host=$ac_cv_build
2787 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2793 $as_echo "$ac_cv_host" >&6; }
2796 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2799 ac_save_IFS=$IFS; IFS='-'
2805 # Remember, the first character of IFS is used to create $*,
2806 # except with old shells:
2809 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2813 $as_echo_n "checking target system type... " >&6; }
2814 if ${ac_cv_target+:} false; then :
2815 $as_echo_n "(cached) " >&6
2817 if test "x$target_alias" = x; then
2818 ac_cv_target=$ac_cv_host
2820 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2821 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2826 $as_echo "$ac_cv_target" >&6; }
2827 case $ac_cv_target in
2829 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2831 target=$ac_cv_target
2832 ac_save_IFS=$IFS; IFS='-'
2838 # Remember, the first character of IFS is used to create $*,
2839 # except with old shells:
2842 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2845 # The aliases save the names the user supplied, while $host etc.
2846 # will get canonicalized.
2847 test -n "$target_alias" &&
2848 test "$program_prefix$program_suffix$program_transform_name" = \
2850 program_prefix=${target_alias}-
2854 ac_cpp='$CPP $CPPFLAGS'
2855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_CC+:} false; then :
2864 $as_echo_n "(cached) " >&6
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 if test -n "$CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2897 if test -z "$ac_cv_prog_CC"; then
2899 # Extract the first word of "gcc", so it can be a program name with args.
2900 set dummy gcc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2904 $as_echo_n "(cached) " >&6
2906 if test -n "$ac_ct_CC"; then
2907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916 ac_cv_prog_ac_ct_CC="gcc"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2929 $as_echo "$ac_ct_CC" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2935 if test "x$ac_ct_CC" = x; then
2938 case $cross_compiling:$ac_tool_warned in
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 ac_tool_warned=yes ;;
2950 if test -z "$CC"; then
2951 if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}cc; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_CC+:} false; then :
2957 $as_echo_n "(cached) " >&6
2959 if test -n "$CC"; then
2960 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_CC="${ac_tool_prefix}cc"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 if test -n "$CC"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2991 if test -z "$CC"; then
2992 # Extract the first word of "cc", so it can be a program name with args.
2993 set dummy cc; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if ${ac_cv_prog_CC+:} false; then :
2997 $as_echo_n "(cached) " >&6
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3011 ac_prog_rejected=yes
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 if test $ac_prog_rejected = yes; then
3023 # We found a bogon in the path, so make sure we never use it.
3024 set dummy $ac_cv_prog_CC
3026 if test $# != 0; then
3027 # We chose a different compiler from the bogus one.
3028 # However, it has the same basename, so the bogon will be chosen
3029 # first if we set CC to just the basename; use the full file name.
3031 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3037 if test -n "$CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3047 if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 for ac_prog in cl.exe
3051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_CC+:} false; then :
3056 $as_echo_n "(cached) " >&6
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3088 test -n "$CC" && break
3091 if test -z "$CC"; then
3093 for ac_prog in cl.exe
3095 # Extract the first word of "$ac_prog", so it can be a program name with args.
3096 set dummy $ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$ac_ct_CC"; then
3103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_ac_ct_CC="$ac_prog"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123 if test -n "$ac_ct_CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3125 $as_echo "$ac_ct_CC" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3132 test -n "$ac_ct_CC" && break
3135 if test "x$ac_ct_CC" = x; then
3138 case $cross_compiling:$ac_tool_warned in
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142 ac_tool_warned=yes ;;
3151 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error $? "no acceptable C compiler found in \$PATH
3154 See \`config.log' for more details" "$LINENO" 5; }
3156 # Provide some information about the compiler.
3157 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3160 for ac_option in --version -v -V -qversion; do
3161 { { ac_try="$ac_compiler $ac_option >&5"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3170 if test -s conftest.err; then
3172 ... rest of stderr output deleted ...
3173 10q' conftest.err >conftest.er1
3174 cat conftest.er1 >&5
3176 rm -f conftest.er1 conftest.err
3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178 test $ac_status = 0; }
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3192 ac_clean_files_save=$ac_clean_files
3193 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3194 # Try to create an executable without -o first, disregard a.out.
3195 # It will help us diagnose broken compilers, and finding out an intuition
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3198 $as_echo_n "checking whether the C compiler works... " >&6; }
3199 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3201 # The possible output files:
3202 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3205 for ac_file in $ac_files
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3209 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3214 if { { ac_try="$ac_link_default"
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_link_default") 2>&5
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }; then :
3225 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3226 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3227 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3228 # so that the user can short-circuit this test for compilers unknown to
3230 for ac_file in $ac_files ''
3232 test -f "$ac_file" || continue
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3237 # We found the default executable, but exeext='' is most
3241 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3243 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3245 # We set ac_cv_exeext here because the later test for it is not
3246 # safe: cross compilers may not add the suffix if given an `-o'
3247 # argument, so we may need to know it at that point already.
3248 # Even if this section looks crufty: it has the advantage of
3255 test "$ac_cv_exeext" = no && ac_cv_exeext=
3260 if test -z "$ac_file"; then :
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 $as_echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error 77 "C compiler cannot create executables
3269 See \`config.log' for more details" "$LINENO" 5; }
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272 $as_echo "yes" >&6; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3275 $as_echo_n "checking for C compiler default output file name... " >&6; }
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3277 $as_echo "$ac_file" >&6; }
3278 ac_exeext=$ac_cv_exeext
3280 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3281 ac_clean_files=$ac_clean_files_save
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3283 $as_echo_n "checking for suffix of executables... " >&6; }
3284 if { { ac_try="$ac_link"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_link") 2>&5
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; then :
3295 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3296 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3297 # work properly (i.e., refer to `conftest.exe'), while it won't with
3299 for ac_file in conftest.exe conftest conftest.*; do
3300 test -f "$ac_file" || continue
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3303 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3312 See \`config.log' for more details" "$LINENO" 5; }
3314 rm -f conftest conftest$ac_cv_exeext
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3316 $as_echo "$ac_cv_exeext" >&6; }
3318 rm -f conftest.$ac_ext
3319 EXEEXT=$ac_cv_exeext
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3327 FILE *f = fopen ("conftest.out", "w");
3328 return ferror (f) || fclose (f) != 0;
3334 ac_clean_files="$ac_clean_files conftest.out"
3335 # Check that the compiler produces executables we can run. If not, either
3336 # the compiler is broken, or we cross compile.
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3338 $as_echo_n "checking whether we are cross compiling... " >&6; }
3339 if test "$cross_compiling" != yes; then
3340 { { ac_try="$ac_link"
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_link") 2>&5
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }
3351 if { ac_try='./conftest$ac_cv_exeext'
3352 { { case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_try") 2>&5
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; }; then
3364 if test "$cross_compiling" = maybe; then
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error $? "cannot run C compiled programs.
3370 If you meant to cross compile, use \`--host'.
3371 See \`config.log' for more details" "$LINENO" 5; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3376 $as_echo "$cross_compiling" >&6; }
3378 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3379 ac_clean_files=$ac_clean_files_save
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3381 $as_echo_n "checking for suffix of object files... " >&6; }
3382 if ${ac_cv_objext+:} false; then :
3383 $as_echo_n "(cached) " >&6
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3396 rm -f conftest.o conftest.obj
3397 if { { ac_try="$ac_compile"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404 (eval "$ac_compile") 2>&5
3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407 test $ac_status = 0; }; then :
3408 for ac_file in conftest.o conftest.obj conftest.*; do
3409 test -f "$ac_file" || continue;
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3412 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3417 $as_echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error $? "cannot compute suffix of object files: cannot compile
3423 See \`config.log' for more details" "$LINENO" 5; }
3425 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3428 $as_echo "$ac_cv_objext" >&6; }
3429 OBJEXT=$ac_cv_objext
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3432 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3433 if ${ac_cv_c_compiler_gnu+:} false; then :
3434 $as_echo_n "(cached) " >&6
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3450 if ac_fn_c_try_compile "$LINENO"; then :
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3460 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3461 if test $ac_compiler_gnu = yes; then
3466 ac_test_CFLAGS=${CFLAGS+set}
3467 ac_save_CFLAGS=$CFLAGS
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3469 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3470 if ${ac_cv_prog_cc_g+:} false; then :
3471 $as_echo_n "(cached) " >&6
3473 ac_save_c_werror_flag=$ac_c_werror_flag
3474 ac_c_werror_flag=yes
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3488 if ac_fn_c_try_compile "$LINENO"; then :
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3503 if ac_fn_c_try_compile "$LINENO"; then :
3506 ac_c_werror_flag=$ac_save_c_werror_flag
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3519 if ac_fn_c_try_compile "$LINENO"; then :
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_c_werror_flag=$ac_save_c_werror_flag
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3530 $as_echo "$ac_cv_prog_cc_g" >&6; }
3531 if test "$ac_test_CFLAGS" = set; then
3532 CFLAGS=$ac_save_CFLAGS
3533 elif test $ac_cv_prog_cc_g = yes; then
3534 if test "$GCC" = yes; then
3540 if test "$GCC" = yes; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3547 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3548 if ${ac_cv_prog_cc_c89+:} false; then :
3549 $as_echo_n "(cached) " >&6
3551 ac_cv_prog_cc_c89=no
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3559 struct buf { int x; };
3560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3561 static char *e (p, i)
3567 static char *f (char * (*g) (char **, int), char **p, ...)
3572 s = g (p, va_arg (v,int));
3577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3578 function prototypes and stuff, but not '\xHH' hex character constants.
3579 These don't provoke an error unfortunately, instead are silently treated
3580 as 'x'. The following induces an error, until -std is added to get
3581 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3582 array size at least. It's necessary to write '\x00'==0 to get something
3583 that's true only with -std. */
3584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3586 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3587 inside strings and character constants. */
3589 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3591 int test (int i, double x);
3592 struct s1 {int (*f) (int a);};
3593 struct s2 {int (*f) (double a);};
3594 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3600 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3605 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3606 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3608 CC="$ac_save_CC $ac_arg"
3609 if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_cv_prog_cc_c89=$ac_arg
3612 rm -f core conftest.err conftest.$ac_objext
3613 test "x$ac_cv_prog_cc_c89" != "xno" && break
3615 rm -f conftest.$ac_ext
3620 case "x$ac_cv_prog_cc_c89" in
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3623 $as_echo "none needed" >&6; } ;;
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626 $as_echo "unsupported" >&6; } ;;
3628 CC="$CC $ac_cv_prog_cc_c89"
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3630 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3632 if test "x$ac_cv_prog_cc_c89" != xno; then :
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 ac_cpp='$CXXCPP $CPPFLAGS'
3644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3647 if test -z "$CXX"; then
3648 if test -n "$CCC"; then
3651 if test -n "$ac_tool_prefix"; then
3652 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if ${ac_cv_prog_CXX+:} false; then :
3659 $as_echo_n "(cached) " >&6
3661 if test -n "$CXX"; then
3662 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3671 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 if test -n "$CXX"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3684 $as_echo "$CXX" >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3691 test -n "$CXX" && break
3694 if test -z "$CXX"; then
3696 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3698 # Extract the first word of "$ac_prog", so it can be a program name with args.
3699 set dummy $ac_prog; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3703 $as_echo_n "(cached) " >&6
3705 if test -n "$ac_ct_CXX"; then
3706 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_ac_ct_CXX="$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3726 if test -n "$ac_ct_CXX"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3728 $as_echo "$ac_ct_CXX" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3735 test -n "$ac_ct_CXX" && break
3738 if test "x$ac_ct_CXX" = x; then
3741 case $cross_compiling:$ac_tool_warned in
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3745 ac_tool_warned=yes ;;
3753 # Provide some information about the compiler.
3754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3757 for ac_option in --version -v -V -qversion; do
3758 { { ac_try="$ac_compiler $ac_option >&5"
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3767 if test -s conftest.err; then
3769 ... rest of stderr output deleted ...
3770 10q' conftest.err >conftest.er1
3771 cat conftest.er1 >&5
3773 rm -f conftest.er1 conftest.err
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3779 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3780 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3781 $as_echo_n "(cached) " >&6
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3797 if ac_fn_cxx_try_compile "$LINENO"; then :
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3807 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3808 if test $ac_compiler_gnu = yes; then
3813 ac_test_CXXFLAGS=${CXXFLAGS+set}
3814 ac_save_CXXFLAGS=$CXXFLAGS
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3816 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3817 if ${ac_cv_prog_cxx_g+:} false; then :
3818 $as_echo_n "(cached) " >&6
3820 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3821 ac_cxx_werror_flag=yes
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3835 if ac_fn_cxx_try_compile "$LINENO"; then :
3836 ac_cv_prog_cxx_g=yes
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3850 if ac_fn_cxx_try_compile "$LINENO"; then :
3853 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3866 if ac_fn_cxx_try_compile "$LINENO"; then :
3867 ac_cv_prog_cxx_g=yes
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3877 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3878 if test "$ac_test_CXXFLAGS" = set; then
3879 CXXFLAGS=$ac_save_CXXFLAGS
3880 elif test $ac_cv_prog_cxx_g = yes; then
3881 if test "$GXX" = yes; then
3887 if test "$GXX" = yes; then
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
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3907 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3908 # On Suns, sometimes $CPP names a directory.
3909 if test -n "$CPP" && test -d "$CPP"; then
3912 if test -z "$CPP"; then
3913 if ${ac_cv_prog_CPP+:} false; then :
3914 $as_echo_n "(cached) " >&6
3916 # Double quotes because CPP needs to be expanded
3917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3920 for ac_c_preproc_warn_flag in '' yes
3922 # Use a header file that comes with gcc, so configuring glibc
3923 # with a fresh cross-compiler works.
3924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925 # <limits.h> exists even on freestanding compilers.
3926 # On the NeXT, cc -E runs the code through the compiler's parser,
3927 # not just through cpp. "Syntax error" is here to catch this case.
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3931 # include <limits.h>
3933 # include <assert.h>
3937 if ac_fn_c_try_cpp "$LINENO"; then :
3940 # Broken: fails on valid input.
3943 rm -f conftest.err conftest.i conftest.$ac_ext
3945 # OK, works on sane cases. Now check whether nonexistent headers
3946 # can be detected and how.
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949 #include <ac_nonexistent.h>
3951 if ac_fn_c_try_cpp "$LINENO"; then :
3952 # Broken: success on invalid input.
3955 # Passes both tests.
3959 rm -f conftest.err conftest.i conftest.$ac_ext
3962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3963 rm -f conftest.i conftest.err conftest.$ac_ext
3964 if $ac_preproc_ok; then :
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3977 $as_echo "$CPP" >&6; }
3979 for ac_c_preproc_warn_flag in '' yes
3981 # Use a header file that comes with gcc, so configuring glibc
3982 # with a fresh cross-compiler works.
3983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3984 # <limits.h> exists even on freestanding compilers.
3985 # On the NeXT, cc -E runs the code through the compiler's parser,
3986 # not just through cpp. "Syntax error" is here to catch this case.
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3990 # include <limits.h>
3992 # include <assert.h>
3996 if ac_fn_c_try_cpp "$LINENO"; then :
3999 # Broken: fails on valid input.
4002 rm -f conftest.err conftest.i conftest.$ac_ext
4004 # OK, works on sane cases. Now check whether nonexistent headers
4005 # can be detected and how.
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008 #include <ac_nonexistent.h>
4010 if ac_fn_c_try_cpp "$LINENO"; then :
4011 # Broken: success on invalid input.
4014 # Passes both tests.
4018 rm -f conftest.err conftest.i conftest.$ac_ext
4021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4022 rm -f conftest.i conftest.err conftest.$ac_ext
4023 if $ac_preproc_ok; then :
4026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4029 See \`config.log' for more details" "$LINENO" 5; }
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4040 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4041 if ${ac_cv_path_GREP+:} false; then :
4042 $as_echo_n "(cached) " >&6
4044 if test -z "$GREP"; then
4045 ac_path_GREP_found=false
4046 # Loop through the user's path and test for each of PROGNAME-LIST
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4051 test -z "$as_dir" && as_dir=.
4052 for ac_prog in grep ggrep; do
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4055 as_fn_executable_p "$ac_path_GREP" || continue
4056 # Check for GNU ac_path_GREP and select it if it is found.
4057 # Check for GNU $ac_path_GREP
4058 case `"$ac_path_GREP" --version 2>&1` in
4060 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4063 $as_echo_n 0123456789 >"conftest.in"
4066 cat "conftest.in" "conftest.in" >"conftest.tmp"
4067 mv "conftest.tmp" "conftest.in"
4068 cp "conftest.in" "conftest.nl"
4069 $as_echo 'GREP' >> "conftest.nl"
4070 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072 as_fn_arith $ac_count + 1 && ac_count=$as_val
4073 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4074 # Best one so far, save it but keep looking for a better one
4075 ac_cv_path_GREP="$ac_path_GREP"
4076 ac_path_GREP_max=$ac_count
4078 # 10*(2^10) chars as input seems more than enough
4079 test $ac_count -gt 10 && break
4081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4084 $ac_path_GREP_found && break 3
4089 if test -z "$ac_cv_path_GREP"; then
4090 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4093 ac_cv_path_GREP=$GREP
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4098 $as_echo "$ac_cv_path_GREP" >&6; }
4099 GREP="$ac_cv_path_GREP"
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4103 $as_echo_n "checking for egrep... " >&6; }
4104 if ${ac_cv_path_EGREP+:} false; then :
4105 $as_echo_n "(cached) " >&6
4107 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4108 then ac_cv_path_EGREP="$GREP -E"
4110 if test -z "$EGREP"; then
4111 ac_path_EGREP_found=false
4112 # Loop through the user's path and test for each of PROGNAME-LIST
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4117 test -z "$as_dir" && as_dir=.
4118 for ac_prog in egrep; do
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4121 as_fn_executable_p "$ac_path_EGREP" || continue
4122 # Check for GNU ac_path_EGREP and select it if it is found.
4123 # Check for GNU $ac_path_EGREP
4124 case `"$ac_path_EGREP" --version 2>&1` in
4126 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4129 $as_echo_n 0123456789 >"conftest.in"
4132 cat "conftest.in" "conftest.in" >"conftest.tmp"
4133 mv "conftest.tmp" "conftest.in"
4134 cp "conftest.in" "conftest.nl"
4135 $as_echo 'EGREP' >> "conftest.nl"
4136 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4138 as_fn_arith $ac_count + 1 && ac_count=$as_val
4139 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4140 # Best one so far, save it but keep looking for a better one
4141 ac_cv_path_EGREP="$ac_path_EGREP"
4142 ac_path_EGREP_max=$ac_count
4144 # 10*(2^10) chars as input seems more than enough
4145 test $ac_count -gt 10 && break
4147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4150 $ac_path_EGREP_found && break 3
4155 if test -z "$ac_cv_path_EGREP"; then
4156 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4159 ac_cv_path_EGREP=$EGREP
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4165 $as_echo "$ac_cv_path_EGREP" >&6; }
4166 EGREP="$ac_cv_path_EGREP"
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4170 $as_echo_n "checking for ANSI C header files... " >&6; }
4171 if ${ac_cv_header_stdc+:} false; then :
4172 $as_echo_n "(cached) " >&6
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190 ac_cv_header_stdc=yes
4192 ac_cv_header_stdc=no
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 if test $ac_cv_header_stdc = yes; then
4197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 $EGREP "memchr" >/dev/null 2>&1; then :
4207 ac_cv_header_stdc=no
4213 if test $ac_cv_header_stdc = yes; then
4214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "free" >/dev/null 2>&1; then :
4224 ac_cv_header_stdc=no
4230 if test $ac_cv_header_stdc = yes; then
4231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232 if test "$cross_compiling" = yes; then :
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4239 #if ((' ' & 0x0FF) == 0x020)
4240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243 # define ISLOWER(c) \
4244 (('a' <= (c) && (c) <= 'i') \
4245 || ('j' <= (c) && (c) <= 'r') \
4246 || ('s' <= (c) && (c) <= 'z'))
4247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4255 for (i = 0; i < 256; i++)
4256 if (XOR (islower (i), ISLOWER (i))
4257 || toupper (i) != TOUPPER (i))
4262 if ac_fn_c_try_run "$LINENO"; then :
4265 ac_cv_header_stdc=no
4267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4268 conftest.$ac_objext conftest.beam conftest.$ac_ext
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4274 $as_echo "$ac_cv_header_stdc" >&6; }
4275 if test $ac_cv_header_stdc = yes; then
4277 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4282 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4283 inttypes.h stdint.h unistd.h
4285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4286 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4288 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4289 cat >>confdefs.h <<_ACEOF
4290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4299 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4300 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4307 if test "$MINIX" = yes; then
4309 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4312 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4315 $as_echo "#define _MINIX 1" >>confdefs.h
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4321 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4322 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4323 $as_echo_n "(cached) " >&6
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4328 # define __EXTENSIONS__ 1
4329 $ac_includes_default
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339 ac_cv_safe_to_define___extensions__=yes
4341 ac_cv_safe_to_define___extensions__=no
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4346 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4347 test $ac_cv_safe_to_define___extensions__ = yes &&
4348 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4350 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4352 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4354 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4356 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4361 if test $ac_cv_c_compiler_gnu = yes; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4363 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4364 if ${ac_cv_prog_gcc_traditional+:} false; then :
4365 $as_echo_n "(cached) " >&6
4367 ac_pattern="Autoconf.*'x'"
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4374 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4375 ac_cv_prog_gcc_traditional=yes
4377 ac_cv_prog_gcc_traditional=no
4382 if test $ac_cv_prog_gcc_traditional = no; then
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4389 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4390 ac_cv_prog_gcc_traditional=yes
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4397 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4398 if test $ac_cv_prog_gcc_traditional = yes; then
4399 CC="$CC -traditional"
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4404 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4405 if ${ac_cv_prog_suncc+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 cat > conftest.c <<EOF
4413 if { ac_try='${CC-cc} -E conftest.c'
4414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4419 ac_cv_prog_suncc=yes
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4425 $as_echo "$ac_cv_prog_suncc" >&6; }
4426 if test -n "$ac_tool_prefix"; then
4427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if ${ac_cv_prog_RANLIB+:} false; then :
4432 $as_echo_n "(cached) " >&6
4434 if test -n "$RANLIB"; then
4435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 RANLIB=$ac_cv_prog_RANLIB
4455 if test -n "$RANLIB"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4457 $as_echo "$RANLIB" >&6; }
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4465 if test -z "$ac_cv_prog_RANLIB"; then
4466 ac_ct_RANLIB=$RANLIB
4467 # Extract the first word of "ranlib", so it can be a program name with args.
4468 set dummy ranlib; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4472 $as_echo_n "(cached) " >&6
4474 if test -n "$ac_ct_RANLIB"; then
4475 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 ac_cv_prog_ac_ct_RANLIB="ranlib"
4485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4495 if test -n "$ac_ct_RANLIB"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4497 $as_echo "$ac_ct_RANLIB" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4503 if test "x$ac_ct_RANLIB" = x; then
4506 case $cross_compiling:$ac_tool_warned in
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4510 ac_tool_warned=yes ;;
4512 RANLIB=$ac_ct_RANLIB
4515 RANLIB="$ac_cv_prog_RANLIB"
4519 if test "x$GCC" = "xyes"; then
4520 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4523 # Check whether --enable-largefile was given.
4524 if test "${enable_largefile+set}" = set; then :
4525 enableval=$enable_largefile;
4528 if test "$enable_largefile" != no; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4531 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4532 if ${ac_cv_sys_largefile_CC+:} false; then :
4533 $as_echo_n "(cached) " >&6
4535 ac_cv_sys_largefile_CC=no
4536 if test "$GCC" != yes; then
4539 # IRIX 6.2 and later do not support large files by default,
4540 # so use the C compiler's -n32 option if that helps.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
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 :
4563 rm -f core conftest.err conftest.$ac_objext
4565 if ac_fn_c_try_compile "$LINENO"; then :
4566 ac_cv_sys_largefile_CC=' -n32'; break
4568 rm -f core conftest.err conftest.$ac_objext
4572 rm -f conftest.$ac_ext
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4576 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4577 if test "$ac_cv_sys_largefile_CC" != no; then
4578 CC=$CC$ac_cv_sys_largefile_CC
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4582 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4583 if ${ac_cv_sys_file_offset_bits+:} false; then :
4584 $as_echo_n "(cached) " >&6
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <sys/types.h>
4590 /* Check that off_t can represent 2**63 - 1 correctly.
4591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4592 since some C++ compilers masquerading as C compilers
4593 incorrectly reject 9223372036854775807. */
4594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4596 && LARGE_OFF_T % 2147483647 == 1)
4606 if ac_fn_c_try_compile "$LINENO"; then :
4607 ac_cv_sys_file_offset_bits=no; break
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612 #define _FILE_OFFSET_BITS 64
4613 #include <sys/types.h>
4614 /* Check that off_t can represent 2**63 - 1 correctly.
4615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4616 since some C++ compilers masquerading as C compilers
4617 incorrectly reject 9223372036854775807. */
4618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4620 && LARGE_OFF_T % 2147483647 == 1)
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631 ac_cv_sys_file_offset_bits=64; break
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_cv_sys_file_offset_bits=unknown
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4639 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4640 case $ac_cv_sys_file_offset_bits in #(
4643 cat >>confdefs.h <<_ACEOF
4644 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4649 if test $ac_cv_sys_file_offset_bits = unknown; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4651 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4652 if ${ac_cv_sys_large_files+:} false; then :
4653 $as_echo_n "(cached) " >&6
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 #include <sys/types.h>
4659 /* Check that off_t can represent 2**63 - 1 correctly.
4660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4661 since some C++ compilers masquerading as C compilers
4662 incorrectly reject 9223372036854775807. */
4663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4665 && LARGE_OFF_T % 2147483647 == 1)
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_sys_large_files=no; break
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 #define _LARGE_FILES 1
4682 #include <sys/types.h>
4683 /* Check that off_t can represent 2**63 - 1 correctly.
4684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4685 since some C++ compilers masquerading as C compilers
4686 incorrectly reject 9223372036854775807. */
4687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4689 && LARGE_OFF_T % 2147483647 == 1)
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 ac_cv_sys_large_files=1; break
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 ac_cv_sys_large_files=unknown
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4708 $as_echo "$ac_cv_sys_large_files" >&6; }
4709 case $ac_cv_sys_large_files in #(
4712 cat >>confdefs.h <<_ACEOF
4713 #define _LARGE_FILES $ac_cv_sys_large_files
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4725 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4726 if ${ac_cv_c_bigendian+:} false; then :
4727 $as_echo_n "(cached) " >&6
4729 ac_cv_c_bigendian=unknown
4730 # See if we're dealing with a universal compiler.
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733 #ifndef __APPLE_CC__
4734 not a universal capable compiler
4739 if ac_fn_c_try_compile "$LINENO"; then :
4741 # Check for potential -arch flags. It is not universal unless
4742 # there are at least two -arch flags with different values.
4745 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4746 if test -n "$ac_prev"; then
4748 i?86 | x86_64 | ppc | ppc64)
4749 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4752 ac_cv_c_bigendian=universal
4758 elif test "x$ac_word" = "x-arch"; then
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 if test $ac_cv_c_bigendian = unknown; then
4765 # See if sys/param.h defines the BYTE_ORDER macro.
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 #include <sys/types.h>
4769 #include <sys/param.h>
4774 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4775 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785 # It does; now see whether it defined to BIG_ENDIAN or not.
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788 #include <sys/types.h>
4789 #include <sys/param.h>
4794 #if BYTE_ORDER != BIG_ENDIAN
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_cv_c_bigendian=yes
4805 ac_cv_c_bigendian=no
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 if test $ac_cv_c_bigendian = unknown; then
4812 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4820 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 # It does; now see whether it defined to _BIG_ENDIAN or not.
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846 ac_cv_c_bigendian=yes
4848 ac_cv_c_bigendian=no
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 if test $ac_cv_c_bigendian = unknown; then
4855 # Compile a test program.
4856 if test "$cross_compiling" = yes; then :
4857 # Try to guess by grepping values from an object file.
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 short int ascii_mm[] =
4861 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4862 short int ascii_ii[] =
4863 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4864 int use_ascii (int i) {
4865 return ascii_mm[i] + ascii_ii[i];
4867 short int ebcdic_ii[] =
4868 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4869 short int ebcdic_mm[] =
4870 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4871 int use_ebcdic (int i) {
4872 return ebcdic_mm[i] + ebcdic_ii[i];
4879 return use_ascii (foo) == use_ebcdic (foo);
4884 if ac_fn_c_try_compile "$LINENO"; then :
4885 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4886 ac_cv_c_bigendian=yes
4888 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4889 if test "$ac_cv_c_bigendian" = unknown; then
4890 ac_cv_c_bigendian=no
4892 # finding both strings is unlikely to happen, but who knows?
4893 ac_cv_c_bigendian=unknown
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 $ac_includes_default
4906 /* Are we little or big endian? From Harbison&Steele. */
4910 char c[sizeof (long int)];
4913 return u.c[sizeof (long int) - 1] == 1;
4919 if ac_fn_c_try_run "$LINENO"; then :
4920 ac_cv_c_bigendian=no
4922 ac_cv_c_bigendian=yes
4924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4925 conftest.$ac_objext conftest.beam conftest.$ac_ext
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4931 $as_echo "$ac_cv_c_bigendian" >&6; }
4932 case $ac_cv_c_bigendian in #(
4934 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4940 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4944 as_fn_error $? "unknown endianness
4945 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4949 # Extract the first word of "gmake", so it can be a program name with args.
4950 set dummy gmake; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_prog_GMAKE+:} false; then :
4954 $as_echo_n "(cached) " >&6
4956 if test -n "$GMAKE"; then
4957 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966 ac_cv_prog_GMAKE="yes"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4977 GMAKE=$ac_cv_prog_GMAKE
4978 if test -n "$GMAKE"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4980 $as_echo "$GMAKE" >&6; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 if test $GMAKE = no; then
4988 # Extract the first word of "make", so it can be a program name with args.
4989 set dummy make; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_path_MAKE+:} false; then :
4993 $as_echo_n "(cached) " >&6
4997 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5019 MAKE=$ac_cv_path_MAKE
5020 if test -n "$MAKE"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5022 $as_echo "$MAKE" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5030 # Extract the first word of "gmake", so it can be a program name with args.
5031 set dummy gmake; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_path_MAKE+:} false; then :
5035 $as_echo_n "(cached) " >&6
5039 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5061 MAKE=$ac_cv_path_MAKE
5062 if test -n "$MAKE"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5064 $as_echo "$MAKE" >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5072 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5073 if test -z "$makever"; then
5074 as_fn_error $? "GNU Make is not installed. Please download and install it
5075 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
5078 # Extract the first word of "git", so it can be a program name with args.
5079 set dummy git; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_GIT+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 if test -n "$GIT"; then
5086 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_prog_GIT="yes"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5107 if test -n "$GIT"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5109 $as_echo "$GIT" >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5118 # Check whether --with-system-libltdl was given.
5119 if test "${with_system_libltdl+set}" = set; then :
5120 withval=$with_system_libltdl;
5122 INCLTDL=-DWITH_SYSTEM_LTDL
5127 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
5129 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
5130 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
5131 $as_echo_n "(cached) " >&6
5133 ac_check_lib_save_LIBS=$LIBS
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5138 /* Override any GCC internal prototype to avoid an error.
5139 Use char because int might match the return type of a GCC
5140 builtin and then its argument prototype would still apply. */
5148 return lt_dlinit ();
5153 if ac_fn_c_try_link "$LINENO"; then :
5154 ac_cv_lib_ltdl_lt_dlinit=yes
5156 ac_cv_lib_ltdl_lt_dlinit=no
5158 rm -f core conftest.err conftest.$ac_objext \
5159 conftest$ac_exeext conftest.$ac_ext
5160 LIBS=$ac_check_lib_save_LIBS
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5163 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5164 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5165 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5167 if test x"$enable_ltdl_install" = xno; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5169 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5171 enable_ltdl_install=yes
5176 if test x"$enable_ltdl_install" = x"yes"; then
5177 ac_configure_args="$ac_configure_args --enable-ltdl-install"
5178 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5179 LTDLINCL='-I${top_srcdir}/''libltdl'
5181 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5185 # For backwards non-gettext consistent compatibility...
5189 if test x"$enable_ltdl_install" = x"yes"; then
5190 LTDL_SUBDIRS=libltdl
5199 # Check whether --enable-shared was given.
5200 if test "${enable_shared+set}" = set; then :
5201 enableval=$enable_shared; p=${PACKAGE-default}
5203 yes) enable_shared=yes ;;
5204 no) enable_shared=no ;;
5207 # Look at the argument we got. We use all the common list separators.
5208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5209 for pkg in $enableval; do
5211 if test "X$pkg" = "X$p"; then
5223 # Check whether --enable-static was given.
5224 if test "${enable_static+set}" = set; then :
5225 enableval=$enable_static; p=${PACKAGE-default}
5227 yes) enable_static=yes ;;
5228 no) enable_static=no ;;
5231 # Look at the argument we got. We use all the common list separators.
5232 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5233 for pkg in $enableval; do
5235 if test "X$pkg" = "X$p"; then
5247 # Check whether --enable-fast-install was given.
5248 if test "${enable_fast_install+set}" = set; then :
5249 enableval=$enable_fast_install; p=${PACKAGE-default}
5251 yes) enable_fast_install=yes ;;
5252 no) enable_fast_install=no ;;
5254 enable_fast_install=no
5255 # Look at the argument we got. We use all the common list separators.
5256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5257 for pkg in $enableval; do
5259 if test "X$pkg" = "X$p"; then
5260 enable_fast_install=yes
5267 enable_fast_install=yes
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5272 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5273 if ${lt_cv_path_SED+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 # Loop through the user's path and test for sed and gsed.
5277 # Then use that list of sed's as ones to test for truncation.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 for lt_ac_prog in sed gsed; do
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5286 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5294 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5295 # along with /bin/sed that truncates output.
5296 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5297 test ! -f $lt_ac_sed && continue
5298 cat /dev/null > conftest.in
5300 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5301 # Check for GNU sed and select it if it is found.
5302 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5303 lt_cv_path_SED=$lt_ac_sed
5307 cat conftest.in conftest.in >conftest.tmp
5308 mv conftest.tmp conftest.in
5309 cp conftest.in conftest.nl
5311 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5312 cmp -s conftest.out conftest.nl || break
5313 # 10000 chars as input seems more than enough
5314 test $lt_ac_count -gt 10 && break
5315 lt_ac_count=`expr $lt_ac_count + 1`
5316 if test $lt_ac_count -gt $lt_ac_max; then
5317 lt_ac_max=$lt_ac_count
5318 lt_cv_path_SED=$lt_ac_sed
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5328 $as_echo "$SED" >&6; }
5331 # Check whether --with-gnu-ld was given.
5332 if test "${with_gnu_ld+set}" = set; then :
5333 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5339 if test "$GCC" = yes; then
5340 # Check if gcc -print-prog-name=ld gives a path.
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5342 $as_echo_n "checking for ld used by $CC... " >&6; }
5345 # gcc leaves a trailing carriage return which upsets mingw
5346 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5348 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5351 # Accept absolute paths.
5353 re_direlt='/[^/][^/]*/\.\./'
5354 # Canonicalize the pathname of ld
5355 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5356 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5357 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5359 test -z "$LD" && LD="$ac_prog"
5362 # If it fails, then pretend we aren't using GCC.
5366 # If it is relative, then search for the first ld in PATH.
5370 elif test "$with_gnu_ld" = yes; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5372 $as_echo_n "checking for GNU ld... " >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5375 $as_echo_n "checking for non-GNU ld... " >&6; }
5377 if ${lt_cv_path_LD+:} false; then :
5378 $as_echo_n "(cached) " >&6
5380 if test -z "$LD"; then
5381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5382 for ac_dir in $PATH; do
5384 test -z "$ac_dir" && ac_dir=.
5385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5386 lt_cv_path_LD="$ac_dir/$ac_prog"
5387 # Check to see if the program is GNU ld. I'd rather use --version,
5388 # but apparently some variants of GNU ld only accept -v.
5389 # Break only if it was the GNU/non-GNU ld that we prefer.
5390 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5391 *GNU* | *'with BFD'*)
5392 test "$with_gnu_ld" != no && break
5395 test "$with_gnu_ld" != yes && break
5402 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5407 if test -n "$LD"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5409 $as_echo "$LD" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5414 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5416 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5417 if ${lt_cv_prog_gnu_ld+:} false; then :
5418 $as_echo_n "(cached) " >&6
5420 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5421 case `$LD -v 2>&1 </dev/null` in
5422 *GNU* | *'with BFD'*)
5423 lt_cv_prog_gnu_ld=yes
5426 lt_cv_prog_gnu_ld=no
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5431 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5432 with_gnu_ld=$lt_cv_prog_gnu_ld
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5436 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5437 if ${lt_cv_ld_reload_flag+:} false; then :
5438 $as_echo_n "(cached) " >&6
5440 lt_cv_ld_reload_flag='-r'
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5443 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5444 reload_flag=$lt_cv_ld_reload_flag
5445 case $reload_flag in
5447 *) reload_flag=" $reload_flag" ;;
5449 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5452 if test "$GCC" = yes; then
5453 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5461 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5462 if ${lt_cv_path_NM+:} false; then :
5463 $as_echo_n "(cached) " >&6
5465 if test -n "$NM"; then
5466 # Let the user override the test.
5469 lt_nm_to_check="${ac_tool_prefix}nm"
5470 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5471 lt_nm_to_check="$lt_nm_to_check nm"
5473 for lt_tmp_nm in $lt_nm_to_check; do
5474 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5475 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5477 test -z "$ac_dir" && ac_dir=.
5478 tmp_nm="$ac_dir/$lt_tmp_nm"
5479 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5480 # Check to see if the nm accepts a BSD-compat flag.
5481 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5482 # nm: unknown option "B" ignored
5483 # Tru64's nm complains that /dev/null is an invalid object file
5484 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5485 */dev/null* | *'Invalid file or object type'*)
5486 lt_cv_path_NM="$tmp_nm -B"
5490 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5492 lt_cv_path_NM="$tmp_nm -p"
5496 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5497 continue # so that we can try to find one that supports BSD flags
5506 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5510 $as_echo "$lt_cv_path_NM" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5514 $as_echo_n "checking whether ln -s works... " >&6; }
5516 if test "$LN_S" = "ln -s"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5518 $as_echo "yes" >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5521 $as_echo "no, using $LN_S" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5525 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5526 if ${lt_cv_deplibs_check_method+:} false; then :
5527 $as_echo_n "(cached) " >&6
5529 lt_cv_file_magic_cmd='$MAGIC_CMD'
5530 lt_cv_file_magic_test_file=
5531 lt_cv_deplibs_check_method='unknown'
5532 # Need to set the preceding variable on all platforms that support
5533 # interlibrary dependencies.
5534 # 'none' -- dependencies not supported.
5535 # `unknown' -- same as none, but documents that we really don't know.
5536 # 'pass_all' -- all dependencies passed with no checks.
5537 # 'test_compile' -- check by making test program.
5538 # 'file_magic [[regex]]' -- check by looking for files in library path
5539 # which responds to the $file_magic_cmd with a given extended regex.
5540 # If you have `file' or equivalent on your system and you're not sure
5541 # whether `pass_all' will *always* work, you probably want this one.
5545 lt_cv_deplibs_check_method=pass_all
5549 lt_cv_deplibs_check_method=pass_all
5553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5554 lt_cv_file_magic_cmd='/usr/bin/file -L'
5555 lt_cv_file_magic_test_file=/shlib/libc.so
5559 # func_win32_libid is a shell function defined in ltmain.sh
5560 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5561 lt_cv_file_magic_cmd='func_win32_libid'
5565 # Base MSYS/MinGW do not provide the 'file' command needed by
5566 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5567 # unless we find 'file', for example because we are cross-compiling.
5568 if ( file / ) >/dev/null 2>&1; then
5569 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5570 lt_cv_file_magic_cmd='func_win32_libid'
5572 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5573 lt_cv_file_magic_cmd='$OBJDUMP -f'
5577 darwin* | rhapsody*)
5578 lt_cv_deplibs_check_method=pass_all
5581 freebsd* | dragonfly*)
5582 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5585 # Not sure whether the presence of OpenBSD here was a mistake.
5586 # Let's accept both of them until this is cleared up.
5587 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5588 lt_cv_file_magic_cmd=/usr/bin/file
5589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5593 lt_cv_deplibs_check_method=pass_all
5598 lt_cv_deplibs_check_method=pass_all
5601 hpux10.20* | hpux11*)
5602 lt_cv_file_magic_cmd=/usr/bin/file
5605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5606 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5609 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]'
5610 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5614 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5620 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5624 irix5* | irix6* | nonstopux*)
5626 *-32|*"-32 ") libmagic=32-bit;;
5627 *-n32|*"-n32 ") libmagic=N32;;
5628 *-64|*"-64 ") libmagic=64-bit;;
5629 *) libmagic=never-match;;
5631 lt_cv_deplibs_check_method=pass_all
5634 # This must be Linux ELF.
5635 linux* | k*bsd*-gnu)
5636 lt_cv_deplibs_check_method=pass_all
5639 netbsd* | netbsdelf*-gnu)
5640 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5649 lt_cv_file_magic_cmd=/usr/bin/file
5650 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5654 lt_cv_deplibs_check_method=unknown
5658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5665 osf3* | osf4* | osf5*)
5666 lt_cv_deplibs_check_method=pass_all
5670 lt_cv_deplibs_check_method=pass_all
5674 lt_cv_deplibs_check_method=pass_all
5678 case $host_vendor in
5680 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]'
5681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5684 lt_cv_deplibs_check_method=pass_all
5687 lt_cv_file_magic_cmd='/bin/file'
5688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5691 lt_cv_file_magic_cmd='/bin/file'
5692 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5693 lt_cv_file_magic_test_file=/lib/libc.so
5696 lt_cv_deplibs_check_method=pass_all
5699 lt_cv_deplibs_check_method=pass_all
5704 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5705 lt_cv_deplibs_check_method=pass_all
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5711 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5712 file_magic_cmd=$lt_cv_file_magic_cmd
5713 deplibs_check_method=$lt_cv_deplibs_check_method
5714 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5719 # If no C compiler was specified, use CC.
5722 # If no C compiler flags were specified, use CFLAGS.
5723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5725 # Allow CC to be a program name with arguments.
5728 # Check whether --enable-libtool-lock was given.
5729 if test "${enable_libtool_lock+set}" = set; then :
5730 enableval=$enable_libtool_lock;
5733 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5735 # Some flags need to be propagated to the compiler or linker for good
5739 # Find out which ABI we are using.
5740 echo 'int i;' > conftest.$ac_ext
5741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5742 (eval $ac_compile) 2>&5
5744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745 test $ac_status = 0; }; then
5746 case `/usr/bin/file conftest.$ac_objext` in
5758 # Find out which ABI we are using.
5759 echo '#line 5755 "configure"' > conftest.$ac_ext
5760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5761 (eval $ac_compile) 2>&5
5763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5764 test $ac_status = 0; }; then
5765 if test "$lt_cv_prog_gnu_ld" = yes; then
5766 case `/usr/bin/file conftest.$ac_objext` in
5768 LD="${LD-ld} -melf32bsmip"
5771 LD="${LD-ld} -melf32bmipn32"
5774 LD="${LD-ld} -melf64bmip"
5778 case `/usr/bin/file conftest.$ac_objext` in
5794 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5795 s390*-*linux*|sparc*-*linux*)
5796 # Find out which ABI we are using.
5797 echo 'int i;' > conftest.$ac_ext
5798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5799 (eval $ac_compile) 2>&5
5801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5802 test $ac_status = 0; }; then
5803 case `/usr/bin/file conftest.o` in
5806 x86_64-*kfreebsd*-gnu)
5807 LD="${LD-ld} -m elf_i386_fbsd"
5810 LD="${LD-ld} -m elf_i386"
5812 ppc64-*linux*|powerpc64-*linux*)
5813 LD="${LD-ld} -m elf32ppclinux"
5816 LD="${LD-ld} -m elf_s390"
5819 LD="${LD-ld} -m elf32_sparc"
5825 x86_64-*kfreebsd*-gnu)
5826 LD="${LD-ld} -m elf_x86_64_fbsd"
5829 LD="${LD-ld} -m elf_x86_64"
5831 ppc*-*linux*|powerpc*-*linux*)
5832 LD="${LD-ld} -m elf64ppc"
5835 LD="${LD-ld} -m elf64_s390"
5838 LD="${LD-ld} -m elf64_sparc"
5848 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5849 SAVE_CFLAGS="$CFLAGS"
5850 CFLAGS="$CFLAGS -belf"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5852 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5853 if ${lt_cv_cc_needs_belf+:} false; then :
5854 $as_echo_n "(cached) " >&6
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5873 if ac_fn_c_try_link "$LINENO"; then :
5874 lt_cv_cc_needs_belf=yes
5876 lt_cv_cc_needs_belf=no
5878 rm -f core conftest.err conftest.$ac_objext \
5879 conftest$ac_exeext conftest.$ac_ext
5881 ac_cpp='$CPP $CPPFLAGS'
5882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5888 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5889 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5890 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5891 CFLAGS="$SAVE_CFLAGS"
5895 # Find out which ABI we are using.
5896 echo 'int i;' > conftest.$ac_ext
5897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5898 (eval $ac_compile) 2>&5
5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }; then
5902 case `/usr/bin/file conftest.o` in
5904 case $lt_cv_prog_gnu_ld in
5905 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5907 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5921 need_locks="$enable_libtool_lock"
5924 for ac_header in dlfcn.h
5926 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5927 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5928 cat >>confdefs.h <<_ACEOF
5929 #define HAVE_DLFCN_H 1
5938 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5939 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5940 (test "X$CXX" != "Xg++"))) ; then
5942 ac_cpp='$CXXCPP $CPPFLAGS'
5943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5947 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5948 if test -z "$CXXCPP"; then
5949 if ${ac_cv_prog_CXXCPP+:} false; then :
5950 $as_echo_n "(cached) " >&6
5952 # Double quotes because CXXCPP needs to be expanded
5953 for CXXCPP in "$CXX -E" "/lib/cpp"
5956 for ac_cxx_preproc_warn_flag in '' yes
5958 # Use a header file that comes with gcc, so configuring glibc
5959 # with a fresh cross-compiler works.
5960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5961 # <limits.h> exists even on freestanding compilers.
5962 # On the NeXT, cc -E runs the code through the compiler's parser,
5963 # not just through cpp. "Syntax error" is here to catch this case.
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5967 # include <limits.h>
5969 # include <assert.h>
5973 if ac_fn_cxx_try_cpp "$LINENO"; then :
5976 # Broken: fails on valid input.
5979 rm -f conftest.err conftest.i conftest.$ac_ext
5981 # OK, works on sane cases. Now check whether nonexistent headers
5982 # can be detected and how.
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 #include <ac_nonexistent.h>
5987 if ac_fn_cxx_try_cpp "$LINENO"; then :
5988 # Broken: success on invalid input.
5991 # Passes both tests.
5995 rm -f conftest.err conftest.i conftest.$ac_ext
5998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5999 rm -f conftest.i conftest.err conftest.$ac_ext
6000 if $ac_preproc_ok; then :
6005 ac_cv_prog_CXXCPP=$CXXCPP
6008 CXXCPP=$ac_cv_prog_CXXCPP
6010 ac_cv_prog_CXXCPP=$CXXCPP
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6013 $as_echo "$CXXCPP" >&6; }
6015 for ac_cxx_preproc_warn_flag in '' yes
6017 # Use a header file that comes with gcc, so configuring glibc
6018 # with a fresh cross-compiler works.
6019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6020 # <limits.h> exists even on freestanding compilers.
6021 # On the NeXT, cc -E runs the code through the compiler's parser,
6022 # not just through cpp. "Syntax error" is here to catch this case.
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6026 # include <limits.h>
6028 # include <assert.h>
6032 if ac_fn_cxx_try_cpp "$LINENO"; then :
6035 # Broken: fails on valid input.
6038 rm -f conftest.err conftest.i conftest.$ac_ext
6040 # OK, works on sane cases. Now check whether nonexistent headers
6041 # can be detected and how.
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #include <ac_nonexistent.h>
6046 if ac_fn_cxx_try_cpp "$LINENO"; then :
6047 # Broken: success on invalid input.
6050 # Passes both tests.
6054 rm -f conftest.err conftest.i conftest.$ac_ext
6057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6058 rm -f conftest.i conftest.err conftest.$ac_ext
6059 if $ac_preproc_ok; then :
6062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6064 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6065 See \`config.log' for more details" "$LINENO" 5; }
6069 ac_cpp='$CXXCPP $CPPFLAGS'
6070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6078 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6079 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6081 if test -n "$ac_tool_prefix"; then
6082 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
6084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if ${ac_cv_prog_F77+:} false; then :
6089 $as_echo_n "(cached) " >&6
6091 if test -n "$F77"; then
6092 ac_cv_prog_F77="$F77" # Let the user override the test.
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 if test -n "$F77"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6114 $as_echo "$F77" >&6; }
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6121 test -n "$F77" && break
6124 if test -z "$F77"; then
6126 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
6128 # Extract the first word of "$ac_prog", so it can be a program name with args.
6129 set dummy $ac_prog; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6133 $as_echo_n "(cached) " >&6
6135 if test -n "$ac_ct_F77"; then
6136 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_F77="$ac_prog"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6156 if test -n "$ac_ct_F77"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6158 $as_echo "$ac_ct_F77" >&6; }
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6165 test -n "$ac_ct_F77" && break
6168 if test "x$ac_ct_F77" = x; then
6171 case $cross_compiling:$ac_tool_warned in
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6182 # Provide some information about the compiler.
6183 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6186 for ac_option in --version -v -V -qversion; do
6187 { { ac_try="$ac_compiler $ac_option >&5"
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6193 $as_echo "$ac_try_echo"; } >&5
6194 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6196 if test -s conftest.err; then
6198 ... rest of stderr output deleted ...
6199 10q' conftest.err >conftest.er1
6200 cat conftest.er1 >&5
6202 rm -f conftest.er1 conftest.err
6203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6204 test $ac_status = 0; }
6208 # If we don't use `.F' as extension, the preprocessor is not run on the
6209 # input file. (Note that this only needs to work for GNU compilers.)
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6213 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6214 if ${ac_cv_f77_compiler_gnu+:} false; then :
6215 $as_echo_n "(cached) " >&6
6217 cat > conftest.$ac_ext <<_ACEOF
6225 if ac_fn_f77_try_compile "$LINENO"; then :
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6235 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6237 ac_test_FFLAGS=${FFLAGS+set}
6238 ac_save_FFLAGS=$FFLAGS
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6241 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6242 if ${ac_cv_prog_f77_g+:} false; then :
6243 $as_echo_n "(cached) " >&6
6246 cat > conftest.$ac_ext <<_ACEOF
6251 if ac_fn_f77_try_compile "$LINENO"; then :
6252 ac_cv_prog_f77_g=yes
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6260 $as_echo "$ac_cv_prog_f77_g" >&6; }
6261 if test "$ac_test_FFLAGS" = set; then
6262 FFLAGS=$ac_save_FFLAGS
6263 elif test $ac_cv_prog_f77_g = yes; then
6264 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6270 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6277 if test $ac_compiler_gnu = yes; then
6283 ac_cpp='$CPP $CPPFLAGS'
6284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6290 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6291 # find the maximum length of command line arguments
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6293 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6294 if ${lt_cv_sys_max_cmd_len+:} false; then :
6295 $as_echo_n "(cached) " >&6
6302 # On DJGPP, this test can blow up pretty badly due to problems in libc
6303 # (any single argument exceeding 2000 bytes causes a buffer overrun
6304 # during glob expansion). Even if it were fixed, the result of this
6305 # check would be larger than it should be.
6306 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6310 # Under GNU Hurd, this test is not required because there is
6311 # no limit to the length of command line arguments.
6312 # Libtool will interpret -1 as no limit whatsoever
6313 lt_cv_sys_max_cmd_len=-1;
6317 # On Win9x/ME, this test blows up -- it succeeds, but takes
6318 # about 5 minutes as the teststring grows exponentially.
6319 # Worse, since 9x/ME are not pre-emptively multitasking,
6320 # you end up with a "frozen" computer, even though with patience
6321 # the test eventually succeeds (with a max line length of 256k).
6322 # Instead, let's just punt: use the minimum linelength reported by
6323 # all of the supported platforms: 8192 (on NT/2K/XP).
6324 lt_cv_sys_max_cmd_len=8192;
6328 # On AmigaOS with pdksh, this test takes hours, literally.
6329 # So we just punt and use a minimum line length of 8192.
6330 lt_cv_sys_max_cmd_len=8192;
6333 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6334 # This has been around since 386BSD, at least. Likely further.
6335 if test -x /sbin/sysctl; then
6336 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6337 elif test -x /usr/sbin/sysctl; then
6338 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6340 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6342 # And add a safety zone
6343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6348 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6349 lt_cv_sys_max_cmd_len=196608
6353 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6354 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6355 # nice to cause kernel panics so lets avoid the loop below.
6356 # First set a reasonable default.
6357 lt_cv_sys_max_cmd_len=16384
6359 if test -x /sbin/sysconfig; then
6360 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6361 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6366 lt_cv_sys_max_cmd_len=102400
6368 sysv5* | sco5v6* | sysv4.2uw2*)
6369 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6370 if test -n "$kargmax"; then
6371 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6373 lt_cv_sys_max_cmd_len=32768
6377 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6378 if test -n "$lt_cv_sys_max_cmd_len"; then
6379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6382 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6383 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6384 = "XX$teststring") >/dev/null 2>&1 &&
6385 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6386 lt_cv_sys_max_cmd_len=$new_result &&
6387 test $i != 17 # 1/2 MB should be enough
6390 teststring=$teststring$teststring
6393 # Add a significant safety factor because C++ compilers can tack on massive
6394 # amounts of additional arguments before passing them to the linker.
6395 # It appears as though 1/2 is a usable value.
6396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6403 if test -n $lt_cv_sys_max_cmd_len ; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6405 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6408 $as_echo "none" >&6; }
6415 # Check for command to grab the raw symbol name followed by C symbol from nm.
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6417 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6418 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6419 $as_echo_n "(cached) " >&6
6422 # These are sane defaults that work on at least a few old systems.
6423 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6425 # Character class describing NM global symbol codes.
6426 symcode='[BCDEGRST]'
6428 # Regexp to match symbols that can be accessed directly from C.
6429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6431 # Transform an extracted symbol line into a proper C declaration
6432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6434 # Transform an extracted symbol line into symbol name and symbol address
6435 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'"
6437 # Define system-specific variables.
6442 cygwin* | mingw* | pw32*)
6443 symcode='[ABCDGISTW]'
6445 hpux*) # Its linker distinguishes data from code symbols
6446 if test "$host_cpu" = ia64; then
6447 symcode='[ABCDEGRST]'
6449 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6450 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'"
6452 linux* | k*bsd*-gnu)
6453 if test "$host_cpu" = ia64; then
6454 symcode='[ABCDGIRSTW]'
6455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6456 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'"
6460 symcode='[BCDEGRST]'
6463 symcode='[BCDEGQRST]'
6474 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6482 # Handle CRLF in mingw tool chain
6486 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6490 # If we're using GNU nm, then use its standard symbol codes.
6491 case `$NM -V 2>&1` in
6492 *GNU* | *'with BFD'*)
6493 symcode='[ABCDGIRSTW]' ;;
6496 # Try without a prefix undercore, then with it.
6497 for ac_symprfx in "" "_"; do
6499 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6500 symxfrm="\\1 $ac_symprfx\\2 \\2"
6502 # Write the raw and C identifiers.
6503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6505 # Check to see that the pipe works correctly.
6509 cat > conftest.$ac_ext <<EOF
6514 void nm_test_func(){}
6518 int main(){nm_test_var='a';nm_test_func();return(0);}
6521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6522 (eval $ac_compile) 2>&5
6524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6525 test $ac_status = 0; }; then
6526 # Now try to grab the symbols.
6528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6529 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532 test $ac_status = 0; } && test -s "$nlist"; then
6533 # Try sorting and uniquifying the output.
6534 if sort "$nlist" | uniq > "$nlist"T; then
6535 mv -f "$nlist"T "$nlist"
6540 # Make sure that we snagged all the symbols we need.
6541 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6542 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6543 cat <<EOF > conftest.$ac_ext
6549 # Now generate the symbol file.
6550 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6552 cat <<EOF >> conftest.$ac_ext
6553 #if defined (__STDC__) && __STDC__
6554 # define lt_ptr_t void *
6556 # define lt_ptr_t char *
6560 /* The mapping between symbol names and symbols. */
6565 lt_preloaded_symbols[] =
6568 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6569 cat <<\EOF >> conftest.$ac_ext
6577 # Now try linking the two files.
6578 mv conftest.$ac_objext conftstm.$ac_objext
6579 lt_save_LIBS="$LIBS"
6580 lt_save_CFLAGS="$CFLAGS"
6581 LIBS="conftstm.$ac_objext"
6582 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6584 (eval $ac_link) 2>&5
6586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6587 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6590 LIBS="$lt_save_LIBS"
6591 CFLAGS="$lt_save_CFLAGS"
6593 echo "cannot find nm_test_func in $nlist" >&5
6596 echo "cannot find nm_test_var in $nlist" >&5
6599 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6602 echo "$progname: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6605 rm -rf conftest* conftst*
6607 # Do not use the global_symbol_pipe unless it works.
6608 if test "$pipe_works" = yes; then
6611 lt_cv_sys_global_symbol_pipe=
6617 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6618 lt_cv_sys_global_symbol_to_cdecl=
6620 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6622 $as_echo "failed" >&6; }
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6625 $as_echo "ok" >&6; }
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6629 $as_echo_n "checking for objdir... " >&6; }
6630 if ${lt_cv_objdir+:} false; then :
6631 $as_echo_n "(cached) " >&6
6633 rm -f .libs 2>/dev/null
6634 mkdir .libs 2>/dev/null
6635 if test -d .libs; then
6638 # MS-DOS does not allow filenames that begin with a dot.
6641 rmdir .libs 2>/dev/null
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6644 $as_echo "$lt_cv_objdir" >&6; }
6645 objdir=$lt_cv_objdir
6653 # AIX sometimes has problems with the GCC collect2 program. For some
6654 # reason, if we set the COLLECT_NAMES environment variable, the problems
6655 # vanish in a puff of smoke.
6656 if test "X${COLLECT_NAMES+set}" != Xset; then
6658 export COLLECT_NAMES
6663 # Sed substitution that helps us do robust quoting. It backslashifies
6664 # metacharacters that are still active within double-quoted strings.
6665 Xsed='sed -e 1s/^X//'
6666 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6668 # Same as above, but do not quote variable references.
6669 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6671 # Sed substitution to delay expansion of an escaped shell variable in a
6672 # double_quote_subst'ed string.
6673 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6675 # Sed substitution to avoid accidental globbing in evaled expressions
6676 no_glob_subst='s/\*/\\\*/g'
6682 default_ofile=libtool
6683 can_build_shared=yes
6685 # All known linkers require a `.a' archive for static linking (except MSVC,
6686 # which needs '.lib').
6688 ltmain="$ac_aux_dir/ltmain.sh"
6689 ofile="$default_ofile"
6690 with_gnu_ld="$lt_cv_prog_gnu_ld"
6692 if test -n "$ac_tool_prefix"; then
6693 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}ar; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_AR+:} false; then :
6698 $as_echo_n "(cached) " >&6
6700 if test -n "$AR"; then
6701 ac_cv_prog_AR="$AR" # Let the user override the test.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_AR="${ac_tool_prefix}ar"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 if test -n "$AR"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6723 $as_echo "$AR" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6731 if test -z "$ac_cv_prog_AR"; then
6733 # Extract the first word of "ar", so it can be a program name with args.
6734 set dummy ar; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6738 $as_echo_n "(cached) " >&6
6740 if test -n "$ac_ct_AR"; then
6741 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_ac_ct_AR="ar"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6761 if test -n "$ac_ct_AR"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6763 $as_echo "$ac_ct_AR" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6769 if test "x$ac_ct_AR" = x; then
6772 case $cross_compiling:$ac_tool_warned in
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6784 if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_RANLIB+:} false; then :
6790 $as_echo_n "(cached) " >&6
6792 if test -n "$RANLIB"; then
6793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 RANLIB=$ac_cv_prog_RANLIB
6813 if test -n "$RANLIB"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6815 $as_echo "$RANLIB" >&6; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6823 if test -z "$ac_cv_prog_RANLIB"; then
6824 ac_ct_RANLIB=$RANLIB
6825 # Extract the first word of "ranlib", so it can be a program name with args.
6826 set dummy ranlib; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6830 $as_echo_n "(cached) " >&6
6832 if test -n "$ac_ct_RANLIB"; then
6833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_ac_ct_RANLIB="ranlib"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6853 if test -n "$ac_ct_RANLIB"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6855 $as_echo "$ac_ct_RANLIB" >&6; }
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6861 if test "x$ac_ct_RANLIB" = x; then
6864 case $cross_compiling:$ac_tool_warned in
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868 ac_tool_warned=yes ;;
6870 RANLIB=$ac_ct_RANLIB
6873 RANLIB="$ac_cv_prog_RANLIB"
6876 if test -n "$ac_tool_prefix"; then
6877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6878 set dummy ${ac_tool_prefix}strip; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_STRIP+:} false; then :
6882 $as_echo_n "(cached) " >&6
6884 if test -n "$STRIP"; then
6885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 STRIP=$ac_cv_prog_STRIP
6905 if test -n "$STRIP"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6907 $as_echo "$STRIP" >&6; }
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6915 if test -z "$ac_cv_prog_STRIP"; then
6917 # Extract the first word of "strip", so it can be a program name with args.
6918 set dummy strip; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6922 $as_echo_n "(cached) " >&6
6924 if test -n "$ac_ct_STRIP"; then
6925 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_prog_ac_ct_STRIP="strip"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6945 if test -n "$ac_ct_STRIP"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6947 $as_echo "$ac_ct_STRIP" >&6; }
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6953 if test "x$ac_ct_STRIP" = x; then
6956 case $cross_compiling:$ac_tool_warned in
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960 ac_tool_warned=yes ;;
6965 STRIP="$ac_cv_prog_STRIP"
6970 old_CFLAGS="$CFLAGS"
6972 # Set sane defaults for various variables
6973 test -z "$AR" && AR=ar
6974 test -z "$AR_FLAGS" && AR_FLAGS=cru
6975 test -z "$AS" && AS=as
6976 test -z "$CC" && CC=cc
6977 test -z "$LTCC" && LTCC=$CC
6978 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6979 test -z "$DLLTOOL" && DLLTOOL=dlltool
6980 test -z "$LD" && LD=ld
6981 test -z "$LN_S" && LN_S="ln -s"
6982 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6983 test -z "$NM" && NM=nm
6984 test -z "$SED" && SED=sed
6985 test -z "$OBJDUMP" && OBJDUMP=objdump
6986 test -z "$RANLIB" && RANLIB=:
6987 test -z "$STRIP" && STRIP=:
6988 test -z "$ac_objext" && ac_objext=o
6990 # Determine commands to create old-style static archives.
6991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6992 old_postinstall_cmds='chmod 644 $oldlib'
6993 old_postuninstall_cmds=
6995 if test -n "$RANLIB"; then
6998 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7001 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7004 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7007 for cc_temp in $compiler""; do
7009 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7010 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7015 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7018 # Only perform the check for file, if the check method requires it
7019 case $deplibs_check_method in
7021 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7023 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7024 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7025 $as_echo_n "(cached) " >&6
7029 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7032 lt_save_MAGIC_CMD="$MAGIC_CMD"
7033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7034 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7035 for ac_dir in $ac_dummy; do
7037 test -z "$ac_dir" && ac_dir=.
7038 if test -f $ac_dir/${ac_tool_prefix}file; then
7039 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7040 if test -n "$file_magic_test_file"; then
7041 case $deplibs_check_method in
7043 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7045 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7046 $EGREP "$file_magic_regex" > /dev/null; then
7051 *** Warning: the command libtool uses to detect shared libraries,
7052 *** $file_magic_cmd, produces output that libtool cannot recognize.
7053 *** The result is that libtool may fail to recognize shared libraries
7054 *** as such. This will affect the creation of libtool libraries that
7055 *** depend on shared libraries, but programs linked with such libtool
7056 *** libraries will work regardless of this problem. Nevertheless, you
7057 *** may want to report the problem to your system manager and/or to
7058 *** bug-libtool@gnu.org
7068 MAGIC_CMD="$lt_save_MAGIC_CMD"
7073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7074 if test -n "$MAGIC_CMD"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7076 $as_echo "$MAGIC_CMD" >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7082 if test -z "$lt_cv_path_MAGIC_CMD"; then
7083 if test -n "$ac_tool_prefix"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7085 $as_echo_n "checking for file... " >&6; }
7086 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7087 $as_echo_n "(cached) " >&6
7091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7094 lt_save_MAGIC_CMD="$MAGIC_CMD"
7095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7097 for ac_dir in $ac_dummy; do
7099 test -z "$ac_dir" && ac_dir=.
7100 if test -f $ac_dir/file; then
7101 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7102 if test -n "$file_magic_test_file"; then
7103 case $deplibs_check_method in
7105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7108 $EGREP "$file_magic_regex" > /dev/null; then
7113 *** Warning: the command libtool uses to detect shared libraries,
7114 *** $file_magic_cmd, produces output that libtool cannot recognize.
7115 *** The result is that libtool may fail to recognize shared libraries
7116 *** as such. This will affect the creation of libtool libraries that
7117 *** depend on shared libraries, but programs linked with such libtool
7118 *** libraries will work regardless of this problem. Nevertheless, you
7119 *** may want to report the problem to your system manager and/or to
7120 *** bug-libtool@gnu.org
7130 MAGIC_CMD="$lt_save_MAGIC_CMD"
7135 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7136 if test -n "$MAGIC_CMD"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7138 $as_echo "$MAGIC_CMD" >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7155 rhapsody* | darwin*)
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7162 $as_echo_n "(cached) " >&6
7164 if test -n "$DSYMUTIL"; then
7165 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7185 if test -n "$DSYMUTIL"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7187 $as_echo "$DSYMUTIL" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7195 if test -z "$ac_cv_prog_DSYMUTIL"; then
7196 ac_ct_DSYMUTIL=$DSYMUTIL
7197 # Extract the first word of "dsymutil", so it can be a program name with args.
7198 set dummy dsymutil; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7202 $as_echo_n "(cached) " >&6
7204 if test -n "$ac_ct_DSYMUTIL"; then
7205 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7225 if test -n "$ac_ct_DSYMUTIL"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7227 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7233 if test "x$ac_ct_DSYMUTIL" = x; then
7236 case $cross_compiling:$ac_tool_warned in
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7242 DSYMUTIL=$ac_ct_DSYMUTIL
7245 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7248 if test -n "$ac_tool_prefix"; then
7249 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_NMEDIT+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 if test -n "$NMEDIT"; then
7257 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 NMEDIT=$ac_cv_prog_NMEDIT
7277 if test -n "$NMEDIT"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7279 $as_echo "$NMEDIT" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7287 if test -z "$ac_cv_prog_NMEDIT"; then
7288 ac_ct_NMEDIT=$NMEDIT
7289 # Extract the first word of "nmedit", so it can be a program name with args.
7290 set dummy nmedit; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 if test -n "$ac_ct_NMEDIT"; then
7297 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7317 if test -n "$ac_ct_NMEDIT"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7319 $as_echo "$ac_ct_NMEDIT" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7325 if test "x$ac_ct_NMEDIT" = x; then
7328 case $cross_compiling:$ac_tool_warned in
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7334 NMEDIT=$ac_ct_NMEDIT
7337 NMEDIT="$ac_cv_prog_NMEDIT"
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7342 $as_echo_n "checking for -single_module linker flag... " >&6; }
7343 if ${lt_cv_apple_cc_single_mod+:} false; then :
7344 $as_echo_n "(cached) " >&6
7346 lt_cv_apple_cc_single_mod=no
7347 if test -z "${LT_MULTI_MODULE}"; then
7348 # By default we will add the -single_module flag. You can override
7349 # by either setting the environment variable LT_MULTI_MODULE
7350 # non-empty at configure time, or by adding -multi_module to the
7352 echo "int foo(void){return 1;}" > conftest.c
7353 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7354 -dynamiclib ${wl}-single_module conftest.c
7355 if test -f libconftest.dylib; then
7356 lt_cv_apple_cc_single_mod=yes
7357 rm -rf libconftest.dylib*
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7363 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7365 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7366 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7367 $as_echo_n "(cached) " >&6
7369 lt_cv_ld_exported_symbols_list=no
7370 save_LDFLAGS=$LDFLAGS
7371 echo "_main" > conftest.sym
7372 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7384 if ac_fn_c_try_link "$LINENO"; then :
7385 lt_cv_ld_exported_symbols_list=yes
7387 lt_cv_ld_exported_symbols_list=no
7389 rm -f core conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
7391 LDFLAGS="$save_LDFLAGS"
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7395 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7397 rhapsody* | darwin1.[0123])
7398 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7400 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7402 # if running on 10.5 or later, the deployment target defaults
7403 # to the OS version, if on x86, and 10.4, the deployment
7404 # target defaults to 10.4. Don't you love it?
7405 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7406 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7409 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7411 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7415 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7416 _lt_dar_single_mod='$single_module'
7418 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7419 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7421 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7423 if test "$DSYMUTIL" != ":"; then
7424 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7435 # Check whether --enable-libtool-lock was given.
7436 if test "${enable_libtool_lock+set}" = set; then :
7437 enableval=$enable_libtool_lock;
7440 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7443 # Check whether --with-pic was given.
7444 if test "${with_pic+set}" = set; then :
7445 withval=$with_pic; pic_mode="$withval"
7450 test -z "$pic_mode" && pic_mode=default
7452 # Use C for the default configuration in the libtool script
7456 ac_cpp='$CPP $CPPFLAGS'
7457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462 # Source file extension for C test sources.
7465 # Object file extension for compiled C test sources.
7469 # Code to be used in simple compile tests
7470 lt_simple_compile_test_code="int some_variable = 0;"
7472 # Code to be used in simple link tests
7473 lt_simple_link_test_code='int main(){return(0);}'
7476 # If no C compiler was specified, use CC.
7479 # If no C compiler flags were specified, use CFLAGS.
7480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7482 # Allow CC to be a program name with arguments.
7486 # save warnings/boilerplate of simple test code
7487 ac_outfile=conftest.$ac_objext
7488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7490 _lt_compiler_boilerplate=`cat conftest.err`
7493 ac_outfile=conftest.$ac_objext
7494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7496 _lt_linker_boilerplate=`cat conftest.err`
7501 lt_prog_compiler_no_builtin_flag=
7503 if test "$GCC" = yes; then
7504 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7508 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7509 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7510 $as_echo_n "(cached) " >&6
7512 lt_cv_prog_compiler_rtti_exceptions=no
7513 ac_outfile=conftest.$ac_objext
7514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7515 lt_compiler_flag="-fno-rtti -fno-exceptions"
7516 # Insert the option either (1) after the last *FLAGS variable, or
7517 # (2) before a word containing "conftest.", or (3) at the end.
7518 # Note that $ac_compile itself does not contain backslashes and begins
7519 # with a dollar sign (not a hyphen), so the echo should work correctly.
7520 # The option is referenced via a variable to avoid confusing sed.
7521 lt_compile=`echo "$ac_compile" | $SED \
7522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7524 -e 's:$: $lt_compiler_flag:'`
7525 (eval echo "\"\$as_me:7521: $lt_compile\"" >&5)
7526 (eval "$lt_compile" 2>conftest.err)
7528 cat conftest.err >&5
7529 echo "$as_me:7525: \$? = $ac_status" >&5
7530 if (exit $ac_status) && test -s "$ac_outfile"; then
7531 # The compiler can only warn and ignore the option if not recognized
7532 # So say no if there are warnings other than the usual output.
7533 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7536 lt_cv_prog_compiler_rtti_exceptions=yes
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7543 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7545 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7546 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7553 lt_prog_compiler_wl=
7554 lt_prog_compiler_pic=
7555 lt_prog_compiler_static=
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7558 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7560 if test "$GCC" = yes; then
7561 lt_prog_compiler_wl='-Wl,'
7562 lt_prog_compiler_static='-static'
7566 # All AIX code is PIC.
7567 if test "$host_cpu" = ia64; then
7568 # AIX 5 now supports IA64 processor
7569 lt_prog_compiler_static='-Bstatic'
7574 # FIXME: we need at least 68020 code to build shared libraries, but
7575 # adding the `-m68020' flag to GCC prevents building anything better,
7577 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7580 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7581 # PIC is the default for these OSes.
7584 mingw* | cygwin* | pw32* | os2*)
7585 # This hack is so that the source file can tell whether it is being
7586 # built for inclusion in a dll (and should export symbols for example).
7587 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7588 # (--disable-auto-import) libraries
7589 lt_prog_compiler_pic='-DDLL_EXPORT'
7592 darwin* | rhapsody*)
7593 # PIC is the default on this platform
7594 # Common symbols not allowed in MH_DYLIB files
7595 lt_prog_compiler_pic='-fno-common'
7599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7600 # Instead, we relocate shared libraries at runtime.
7604 # Just because we use GCC doesn't mean we suddenly get shared libraries
7605 # on systems that don't support them.
7606 lt_prog_compiler_can_build_shared=no
7611 if test -d /usr/nec; then
7612 lt_prog_compiler_pic=-Kconform_pic
7617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7624 lt_prog_compiler_pic='-fPIC'
7630 lt_prog_compiler_pic='-fPIC'
7634 # PORTME Check for flag to pass linker flags through the system compiler.
7637 lt_prog_compiler_wl='-Wl,'
7638 if test "$host_cpu" = ia64; then
7639 # AIX 5 now supports IA64 processor
7640 lt_prog_compiler_static='-Bstatic'
7642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7646 # PIC is the default on this platform
7647 # Common symbols not allowed in MH_DYLIB files
7648 case $cc_basename in
7650 lt_prog_compiler_pic='-qnocommon'
7651 lt_prog_compiler_wl='-Wl,'
7656 mingw* | cygwin* | pw32* | os2*)
7657 # This hack is so that the source file can tell whether it is being
7658 # built for inclusion in a dll (and should export symbols for example).
7659 lt_prog_compiler_pic='-DDLL_EXPORT'
7662 hpux9* | hpux10* | hpux11*)
7663 lt_prog_compiler_wl='-Wl,'
7664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7671 lt_prog_compiler_pic='+Z'
7674 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7675 lt_prog_compiler_static='${wl}-a ${wl}archive'
7678 irix5* | irix6* | nonstopux*)
7679 lt_prog_compiler_wl='-Wl,'
7680 # PIC (with -KPIC) is the default.
7681 lt_prog_compiler_static='-non_shared'
7685 lt_prog_compiler_pic='-KPIC'
7686 lt_prog_compiler_static='-Bstatic'
7689 linux* | k*bsd*-gnu)
7690 case $cc_basename in
7692 lt_prog_compiler_wl='-Wl,'
7693 lt_prog_compiler_pic='-KPIC'
7694 lt_prog_compiler_static='-static'
7696 pgcc* | pgf77* | pgf90* | pgf95*)
7697 # Portland Group compilers (*not* the Pentium gcc compiler,
7698 # which looks to be a dead project)
7699 lt_prog_compiler_wl='-Wl,'
7700 lt_prog_compiler_pic='-fpic'
7701 lt_prog_compiler_static='-Bstatic'
7704 lt_prog_compiler_wl='-Wl,'
7705 # All Alpha code is PIC.
7706 lt_prog_compiler_static='-non_shared'
7709 case `$CC -V 2>&1 | sed 5q` in
7712 lt_prog_compiler_pic='-KPIC'
7713 lt_prog_compiler_static='-Bstatic'
7714 lt_prog_compiler_wl='-Wl,'
7717 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7718 lt_prog_compiler_pic='-KPIC'
7719 lt_prog_compiler_static='-Bstatic'
7720 lt_prog_compiler_wl=''
7727 osf3* | osf4* | osf5*)
7728 lt_prog_compiler_wl='-Wl,'
7729 # All OSF/1 code is PIC.
7730 lt_prog_compiler_static='-non_shared'
7734 lt_prog_compiler_static='-non_shared'
7738 lt_prog_compiler_pic='-KPIC'
7739 lt_prog_compiler_static='-Bstatic'
7740 case $cc_basename in
7742 lt_prog_compiler_wl='-Qoption ld ';;
7744 lt_prog_compiler_wl='-Wl,';;
7749 lt_prog_compiler_wl='-Qoption ld '
7750 lt_prog_compiler_pic='-PIC'
7751 lt_prog_compiler_static='-Bstatic'
7754 sysv4 | sysv4.2uw2* | sysv4.3*)
7755 lt_prog_compiler_wl='-Wl,'
7756 lt_prog_compiler_pic='-KPIC'
7757 lt_prog_compiler_static='-Bstatic'
7761 if test -d /usr/nec ;then
7762 lt_prog_compiler_pic='-Kconform_pic'
7763 lt_prog_compiler_static='-Bstatic'
7767 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_pic='-KPIC'
7770 lt_prog_compiler_static='-Bstatic'
7774 lt_prog_compiler_wl='-Wl,'
7775 lt_prog_compiler_can_build_shared=no
7779 lt_prog_compiler_pic='-pic'
7780 lt_prog_compiler_static='-Bstatic'
7784 lt_prog_compiler_can_build_shared=no
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7790 $as_echo "$lt_prog_compiler_pic" >&6; }
7793 # Check to make sure the PIC flag actually works.
7795 if test -n "$lt_prog_compiler_pic"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7798 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7799 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7800 $as_echo_n "(cached) " >&6
7802 lt_cv_prog_compiler_pic_works=no
7803 ac_outfile=conftest.$ac_objext
7804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7806 # Insert the option either (1) after the last *FLAGS variable, or
7807 # (2) before a word containing "conftest.", or (3) at the end.
7808 # Note that $ac_compile itself does not contain backslashes and begins
7809 # with a dollar sign (not a hyphen), so the echo should work correctly.
7810 # The option is referenced via a variable to avoid confusing sed.
7811 lt_compile=`echo "$ac_compile" | $SED \
7812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7814 -e 's:$: $lt_compiler_flag:'`
7815 (eval echo "\"\$as_me:7811: $lt_compile\"" >&5)
7816 (eval "$lt_compile" 2>conftest.err)
7818 cat conftest.err >&5
7819 echo "$as_me:7815: \$? = $ac_status" >&5
7820 if (exit $ac_status) && test -s "$ac_outfile"; then
7821 # The compiler can only warn and ignore the option if not recognized
7822 # So say no if there are warnings other than the usual output.
7823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7826 lt_cv_prog_compiler_pic_works=yes
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7833 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7835 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7836 case $lt_prog_compiler_pic in
7838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7841 lt_prog_compiler_pic=
7842 lt_prog_compiler_can_build_shared=no
7847 # For platforms which do not support PIC, -DPIC is meaningless:
7849 lt_prog_compiler_pic=
7852 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7857 # Check to make sure the static flag actually works.
7859 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7861 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7862 if ${lt_cv_prog_compiler_static_works+:} false; then :
7863 $as_echo_n "(cached) " >&6
7865 lt_cv_prog_compiler_static_works=no
7866 save_LDFLAGS="$LDFLAGS"
7867 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7870 # The linker can only warn and ignore the option if not recognized
7871 # So say no if there are warnings
7872 if test -s conftest.err; then
7873 # Append any errors to the config.log.
7874 cat conftest.err 1>&5
7875 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7877 if diff conftest.exp conftest.er2 >/dev/null; then
7878 lt_cv_prog_compiler_static_works=yes
7881 lt_cv_prog_compiler_static_works=yes
7885 LDFLAGS="$save_LDFLAGS"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7889 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7891 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7894 lt_prog_compiler_static=
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7899 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7900 if ${lt_cv_prog_compiler_c_o+:} false; then :
7901 $as_echo_n "(cached) " >&6
7903 lt_cv_prog_compiler_c_o=no
7904 $rm -r conftest 2>/dev/null
7908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7910 lt_compiler_flag="-o out/conftest2.$ac_objext"
7911 # Insert the option either (1) after the last *FLAGS variable, or
7912 # (2) before a word containing "conftest.", or (3) at the end.
7913 # Note that $ac_compile itself does not contain backslashes and begins
7914 # with a dollar sign (not a hyphen), so the echo should work correctly.
7915 lt_compile=`echo "$ac_compile" | $SED \
7916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7918 -e 's:$: $lt_compiler_flag:'`
7919 (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7920 (eval "$lt_compile" 2>out/conftest.err)
7922 cat out/conftest.err >&5
7923 echo "$as_me:7919: \$? = $ac_status" >&5
7924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7926 # The compiler can only warn and ignore the option if not recognized
7927 # So say no if there are warnings
7928 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7931 lt_cv_prog_compiler_c_o=yes
7936 # SGI C++ compiler will create directory out/ii_files/ for
7937 # template instantiation
7938 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7939 $rm out/* && rmdir out
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7946 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7949 hard_links="nottested"
7950 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7951 # do not overwrite the value of need_locks provided by the user
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7953 $as_echo_n "checking if we can lock with hard links... " >&6; }
7956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7958 ln conftest.a conftest.b 2>&5 || hard_links=no
7959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7961 $as_echo "$hard_links" >&6; }
7962 if test "$hard_links" = no; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7964 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7972 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7975 allow_undefined_flag=
7976 enable_shared_with_static_runtimes=no
7978 archive_expsym_cmds=
7979 old_archive_From_new_cmds=
7980 old_archive_from_expsyms_cmds=
7981 export_dynamic_flag_spec=
7982 whole_archive_flag_spec=
7983 thread_safe_flag_spec=
7984 hardcode_libdir_flag_spec=
7985 hardcode_libdir_flag_spec_ld=
7986 hardcode_libdir_separator=
7989 hardcode_shlibpath_var=unsupported
7990 link_all_deplibs=unknown
7991 hardcode_automatic=no
7994 always_export_symbols=no
7995 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7996 # include_expsyms should be a list of space-separated symbols to be *always*
7997 # included in the symbol list
7999 # exclude_expsyms can be an extended regexp of symbols to exclude
8000 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8001 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8002 # as well as any symbol that contains `d'.
8003 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8004 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8005 # platforms (ab)use it in PIC code, but their linkers get confused if
8006 # the symbol is explicitly referenced. Since portable code cannot
8007 # rely on this symbol name, it's probably fine to never include it in
8008 # preloaded symbol tables.
8009 # Exclude shared library initialization/finalization symbols.
8010 extract_expsyms_cmds=
8011 # Just being paranoid about ensuring that cc_basename is set.
8012 for cc_temp in $compiler""; do
8014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8023 cygwin* | mingw* | pw32*)
8024 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8025 # When not using gcc, we currently assume that we are using
8026 # Microsoft Visual C++.
8027 if test "$GCC" != yes; then
8032 # we just hope/assume this is gcc and not c89 (= MSVC++)
8041 if test "$with_gnu_ld" = yes; then
8042 # If archive_cmds runs LD, not CC, wlarc should be empty
8045 # Set some defaults for GNU ld with shared library support. These
8046 # are reset later if shared libraries are not supported. Putting them
8047 # here allows them to be overridden if necessary.
8048 runpath_var=LD_RUN_PATH
8049 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8050 export_dynamic_flag_spec='${wl}--export-dynamic'
8051 # ancient GNU ld didn't support --whole-archive et. al.
8052 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8053 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8055 whole_archive_flag_spec=
8057 supports_anon_versioning=no
8058 case `$LD -v 2>/dev/null` in
8059 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8060 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8061 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8062 *\ 2.11.*) ;; # other 2.11 versions
8063 *) supports_anon_versioning=yes ;;
8066 # See if GNU ld supports shared libraries.
8069 # On AIX/PPC, the GNU linker is very broken
8070 if test "$host_cpu" != ia64; then
8074 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8075 *** to be unable to reliably create shared libraries on AIX.
8076 *** Therefore, libtool is disabling shared libraries support. If you
8077 *** really care for shared libraries, you may want to modify your PATH
8078 *** so that a non-GNU linker is found, and then restart.
8085 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)'
8086 hardcode_libdir_flag_spec='-L$libdir'
8087 hardcode_minus_L=yes
8089 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8090 # that the semantics of dynamic libraries on AmigaOS, at least up
8091 # to version 4, is to share data among multiple programs linked
8092 # with the same dynamic library. Since this doesn't match the
8093 # behavior of shared libraries on other platforms, we can't use
8099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8100 allow_undefined_flag=unsupported
8101 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8102 # support --undefined. This deserves some investigation. FIXME
8103 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8109 cygwin* | mingw* | pw32*)
8110 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8111 # as there is no search path for DLLs.
8112 hardcode_libdir_flag_spec='-L$libdir'
8113 allow_undefined_flag=unsupported
8114 always_export_symbols=no
8115 enable_shared_with_static_runtimes=yes
8116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8118 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8120 # If the export-symbols file already is a .def file (1st line
8121 # is EXPORTS), use it as is; otherwise, prepend...
8122 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8123 cp $export_symbols $output_objdir/$soname.def;
8125 echo EXPORTS > $output_objdir/$soname.def;
8126 cat $export_symbols >> $output_objdir/$soname.def;
8128 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8136 hardcode_shlibpath_var=no
8137 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8138 export_dynamic_flag_spec='${wl}-E'
8139 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8140 # Instead, shared libraries are loaded at an image base (0x10000000 by
8141 # default) and relocated if they conflict, which is a slow very memory
8142 # consuming and fragmenting process. To avoid this, we pick a random,
8143 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8144 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8145 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8146 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'
8149 gnu* | linux* | k*bsd*-gnu)
8150 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152 case $cc_basename,$host_cpu in
8153 pgcc*) # Portland Group C compiler
8154 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'
8155 tmp_addflag=' $pic_flag'
8157 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8158 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'
8159 tmp_addflag=' $pic_flag -Mnomain' ;;
8160 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8161 tmp_addflag=' -i_dynamic' ;;
8162 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8163 tmp_addflag=' -i_dynamic -nofor_main' ;;
8164 ifc* | ifort*) # Intel Fortran compiler
8165 tmp_addflag=' -nofor_main' ;;
8167 case `$CC -V 2>&1 | sed 5q` in
8168 *Sun\ C*) # Sun C 5.9
8169 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'
8170 tmp_sharedflag='-G' ;;
8171 *Sun\ F*) # Sun Fortran 8.3
8172 tmp_sharedflag='-G' ;;
8174 tmp_sharedflag='-shared' ;;
8176 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178 if test $supports_anon_versioning = yes; then
8179 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8181 $echo "local: *; };" >> $output_objdir/$libname.ver~
8182 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8190 netbsd* | netbsdelf*-gnu)
8191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8192 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8196 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8201 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8205 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8206 *** create shared libraries on Solaris systems. Therefore, libtool
8207 *** is disabling shared libraries support. We urge you to upgrade GNU
8208 *** binutils to release 2.9.1 or newer. Another option is to modify
8209 *** your PATH or compiler configuration so that the native linker is
8210 *** used, and then restart.
8213 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8222 case `$LD -v 2>&1` in
8223 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8227 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8228 *** reliably create shared libraries on SCO systems. Therefore, libtool
8229 *** is disabling shared libraries support. We urge you to upgrade GNU
8230 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8231 *** your PATH or compiler configuration so that the native linker is
8232 *** used, and then restart.
8237 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8238 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8249 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8252 hardcode_shlibpath_var=no
8256 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8265 if test "$ld_shlibs" = no; then
8267 hardcode_libdir_flag_spec=
8268 export_dynamic_flag_spec=
8269 whole_archive_flag_spec=
8272 # PORTME fill in a description of your system's linker (not GNU ld)
8275 allow_undefined_flag=unsupported
8276 always_export_symbols=yes
8277 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'
8278 # Note: this linker hardcodes the directories in LIBPATH if there
8279 # are no directories specified by -L.
8280 hardcode_minus_L=yes
8281 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8282 # Neither direct hardcoding nor static linking is supported with a
8284 hardcode_direct=unsupported
8289 if test "$host_cpu" = ia64; then
8290 # On IA64, the linker does run time linking by default, so we don't
8291 # have to do anything special.
8292 aix_use_runtimelinking=no
8293 exp_sym_flag='-Bexport'
8296 # If we're using GNU nm, then we don't want the "-C" option.
8297 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8298 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8299 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'
8301 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'
8303 aix_use_runtimelinking=no
8305 # Test if we are trying to use run time linking or normal
8306 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8307 # need to do runtime linking.
8308 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8309 for ld_flag in $LDFLAGS; do
8310 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8311 aix_use_runtimelinking=yes
8318 exp_sym_flag='-bexport'
8319 no_entry_flag='-bnoentry'
8322 # When large executables or shared objects are built, AIX ld can
8323 # have problems creating the table of contents. If linking a library
8324 # or program results in "error TOC overflow" add -mminimal-toc to
8325 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8326 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8330 hardcode_libdir_separator=':'
8331 link_all_deplibs=yes
8333 if test "$GCC" = yes; then
8334 case $host_os in aix4.[012]|aix4.[012].*)
8335 # We only want to do this on AIX 4.2 and lower, the check
8336 # below for broken collect2 doesn't work under 4.3+
8337 collect2name=`${CC} -print-prog-name=collect2`
8338 if test -f "$collect2name" && \
8339 strings "$collect2name" | grep resolve_lib_name >/dev/null
8341 # We have reworked collect2
8344 # We have old collect2
8345 hardcode_direct=unsupported
8346 # It fails to find uninstalled libraries when the uninstalled
8347 # path is not listed in the libpath. Setting hardcode_minus_L
8348 # to unsupported forces relinking
8349 hardcode_minus_L=yes
8350 hardcode_libdir_flag_spec='-L$libdir'
8351 hardcode_libdir_separator=
8355 shared_flag='-shared'
8356 if test "$aix_use_runtimelinking" = yes; then
8357 shared_flag="$shared_flag "'${wl}-G'
8361 if test "$host_cpu" = ia64; then
8362 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8363 # chokes on -Wl,-G. The following line is correct:
8366 if test "$aix_use_runtimelinking" = yes; then
8367 shared_flag='${wl}-G'
8369 shared_flag='${wl}-bM:SRE'
8374 # It seems that -bexpall does not export symbols beginning with
8375 # underscore (_), so it is better to generate a list of symbols to export.
8376 always_export_symbols=yes
8377 if test "$aix_use_runtimelinking" = yes; then
8378 # Warning - without using the other runtime loading flags (-brtl),
8379 # -berok will link without error, but may produce a broken library.
8380 allow_undefined_flag='-berok'
8381 # Determine the default libpath from the value encoded in an empty executable.
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8393 if ac_fn_c_try_link "$LINENO"; then :
8395 lt_aix_libpath_sed='
8396 /Import File Strings/,/^$/ {
8402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8403 # Check for a 64-bit object if we didn't find anything.
8404 if test -z "$aix_libpath"; then
8405 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8408 rm -f core conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
8410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8412 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8413 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"
8415 if test "$host_cpu" = ia64; then
8416 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8417 allow_undefined_flag="-z nodefs"
8418 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"
8420 # Determine the default libpath from the value encoded in an empty executable.
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8432 if ac_fn_c_try_link "$LINENO"; then :
8434 lt_aix_libpath_sed='
8435 /Import File Strings/,/^$/ {
8441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8442 # Check for a 64-bit object if we didn't find anything.
8443 if test -z "$aix_libpath"; then
8444 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8447 rm -f core conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8451 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8452 # Warning - without using the other run time loading flags,
8453 # -berok will link without error, but may produce a broken library.
8454 no_undefined_flag=' ${wl}-bernotok'
8455 allow_undefined_flag=' ${wl}-berok'
8456 # Exported symbols can be pulled into shared objects from archives
8457 whole_archive_flag_spec='$convenience'
8458 archive_cmds_need_lc=yes
8459 # This is similar to how AIX traditionally builds its shared libraries.
8460 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'
8466 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)'
8467 hardcode_libdir_flag_spec='-L$libdir'
8468 hardcode_minus_L=yes
8469 # see comment about different semantics on the GNU ld section
8474 export_dynamic_flag_spec=-rdynamic
8477 cygwin* | mingw* | pw32*)
8478 # When not using gcc, we currently assume that we are using
8479 # Microsoft Visual C++.
8480 # hardcode_libdir_flag_spec is actually meaningless, as there is
8481 # no search path for DLLs.
8482 hardcode_libdir_flag_spec=' '
8483 allow_undefined_flag=unsupported
8484 # Tell ltmain to make .lib files, not .a files.
8486 # Tell ltmain to make .dll files, not .so files.
8488 # FIXME: Setting linknames here is a bad hack.
8489 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8490 # The linker will automatically build a .lib file if we build a DLL.
8491 old_archive_From_new_cmds='true'
8492 # FIXME: Should let the user specify the lib program.
8493 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8494 fix_srcfile_path='`cygpath -w "$srcfile"`'
8495 enable_shared_with_static_runtimes=yes
8498 darwin* | rhapsody*)
8500 rhapsody* | darwin1.[012])
8501 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8505 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8507 case ${MACOSX_DEPLOYMENT_TARGET} in
8509 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8512 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8518 archive_cmds_need_lc=no
8520 hardcode_automatic=yes
8521 hardcode_shlibpath_var=unsupported
8522 whole_archive_flag_spec=''
8523 link_all_deplibs=yes
8524 if test "$GCC" = yes ; then
8525 output_verbose_link_cmd='echo'
8526 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8527 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8528 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}"
8529 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}"
8531 case $cc_basename in
8533 output_verbose_link_cmd='echo'
8534 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8535 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8537 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}'
8538 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}'
8548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8549 hardcode_libdir_flag_spec='-L$libdir'
8550 hardcode_shlibpath_var=no
8557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8558 # support. Future versions do this automatically, but an explicit c++rt0.o
8559 # does not break anything, and helps significantly (at the cost of a little
8562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8563 hardcode_libdir_flag_spec='-R$libdir'
8565 hardcode_shlibpath_var=no
8568 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8572 hardcode_minus_L=yes
8573 hardcode_shlibpath_var=no
8576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8577 freebsd* | dragonfly*)
8578 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8579 hardcode_libdir_flag_spec='-R$libdir'
8581 hardcode_shlibpath_var=no
8585 if test "$GCC" = yes; then
8586 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'
8588 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'
8590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8591 hardcode_libdir_separator=:
8594 # hardcode_minus_L: Not really in the search PATH,
8595 # but as the default location of the library.
8596 hardcode_minus_L=yes
8597 export_dynamic_flag_spec='${wl}-E'
8601 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8602 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8604 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8606 if test "$with_gnu_ld" = no; then
8607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8608 hardcode_libdir_separator=:
8611 export_dynamic_flag_spec='${wl}-E'
8613 # hardcode_minus_L: Not really in the search PATH,
8614 # but as the default location of the library.
8615 hardcode_minus_L=yes
8620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8623 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8626 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8629 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8635 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8638 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8641 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8645 if test "$with_gnu_ld" = no; then
8646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8647 hardcode_libdir_separator=:
8651 hardcode_libdir_flag_spec_ld='+b $libdir'
8653 hardcode_shlibpath_var=no
8657 export_dynamic_flag_spec='${wl}-E'
8659 # hardcode_minus_L: Not really in the search PATH,
8660 # but as the default location of the library.
8661 hardcode_minus_L=yes
8667 irix5* | irix6* | nonstopux*)
8668 if test "$GCC" = yes; then
8669 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'
8671 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'
8672 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8675 hardcode_libdir_separator=:
8676 link_all_deplibs=yes
8679 netbsd* | netbsdelf*-gnu)
8680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8683 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8685 hardcode_libdir_flag_spec='-R$libdir'
8687 hardcode_shlibpath_var=no
8691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8694 hardcode_libdir_separator=:
8695 hardcode_shlibpath_var=no
8699 if test -f /usr/libexec/ld.so; then
8701 hardcode_shlibpath_var=no
8702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8703 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8704 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8705 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8706 export_dynamic_flag_spec='${wl}-E'
8709 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8711 hardcode_libdir_flag_spec='-R$libdir'
8714 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8715 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8725 hardcode_libdir_flag_spec='-L$libdir'
8726 hardcode_minus_L=yes
8727 allow_undefined_flag=unsupported
8728 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'
8729 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8733 if test "$GCC" = yes; then
8734 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8735 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'
8737 allow_undefined_flag=' -expect_unresolved \*'
8738 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'
8740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 hardcode_libdir_separator=:
8744 osf4* | osf5*) # as osf3* with the addition of -msym flag
8745 if test "$GCC" = yes; then
8746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8747 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'
8748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750 allow_undefined_flag=' -expect_unresolved \*'
8751 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'
8752 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8753 $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'
8755 # Both c and cxx compiler support -rpath directly
8756 hardcode_libdir_flag_spec='-rpath $libdir'
8758 hardcode_libdir_separator=:
8762 no_undefined_flag=' -z text'
8763 if test "$GCC" = yes; then
8765 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8766 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8767 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8770 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8772 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8774 hardcode_libdir_flag_spec='-R$libdir'
8775 hardcode_shlibpath_var=no
8777 solaris2.[0-5] | solaris2.[0-5].*) ;;
8779 # The compiler driver will combine and reorder linker options,
8780 # but understands `-z linker_flag'. GCC discards it without `$wl',
8781 # but is careful enough not to reorder.
8782 # Supported since Solaris 2.6 (maybe 2.5.1?)
8783 if test "$GCC" = yes; then
8784 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8786 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8790 link_all_deplibs=yes
8794 if test "x$host_vendor" = xsequent; then
8795 # Use $CC to link under sequent, because it throws in some extra .o
8796 # files that make .init and .fini sections work.
8797 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8799 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8801 hardcode_libdir_flag_spec='-L$libdir'
8803 hardcode_minus_L=yes
8804 hardcode_shlibpath_var=no
8808 case $host_vendor in
8810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811 hardcode_direct=yes # is this really true???
8814 ## LD is ld it makes a PLAMLIB
8815 ## CC just makes a GrossModule.
8816 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8817 reload_cmds='$CC -r -o $output$reload_objs'
8821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8825 runpath_var='LD_RUN_PATH'
8826 hardcode_shlibpath_var=no
8830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8831 hardcode_shlibpath_var=no
8832 export_dynamic_flag_spec='-Bexport'
8836 if test -d /usr/nec; then
8837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838 hardcode_shlibpath_var=no
8839 runpath_var=LD_RUN_PATH
8840 hardcode_runpath_var=yes
8845 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8846 no_undefined_flag='${wl}-z,text'
8847 archive_cmds_need_lc=no
8848 hardcode_shlibpath_var=no
8849 runpath_var='LD_RUN_PATH'
8851 if test "$GCC" = yes; then
8852 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8855 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 sysv5* | sco3.2v5* | sco5v6*)
8861 # Note: We can NOT use -z defs as we might desire, because we do not
8862 # link with -lc, and that would cause any symbols used from libc to
8863 # always be unresolved, which means just about no library would
8864 # ever link correctly. If we're not using GNU ld we use -z text
8865 # though, which does catch some bad symbols but isn't as heavy-handed
8867 no_undefined_flag='${wl}-z,text'
8868 allow_undefined_flag='${wl}-z,nodefs'
8869 archive_cmds_need_lc=no
8870 hardcode_shlibpath_var=no
8871 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8872 hardcode_libdir_separator=':'
8873 link_all_deplibs=yes
8874 export_dynamic_flag_spec='${wl}-Bexport'
8875 runpath_var='LD_RUN_PATH'
8877 if test "$GCC" = yes; then
8878 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8879 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8881 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8882 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_libdir_flag_spec='-L$libdir'
8889 hardcode_shlibpath_var=no
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8899 $as_echo "$ld_shlibs" >&6; }
8900 test "$ld_shlibs" = no && can_build_shared=no
8903 # Do we need to explicitly link libc?
8905 case "x$archive_cmds_need_lc" in
8907 # Assume -lc should be added
8908 archive_cmds_need_lc=yes
8910 if test "$enable_shared" = yes && test "$GCC" = yes; then
8911 case $archive_cmds in
8913 # FIXME: we may have to deal with multi-command sequences.
8916 # Test whether the compiler implicitly links with -lc since on some
8917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8918 # to ld, don't add -lc before -lgcc.
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8920 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8925 (eval $ac_compile) 2>&5
8927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8928 test $ac_status = 0; } 2>conftest.err; then
8931 libobjs=conftest.$ac_objext
8933 wl=$lt_prog_compiler_wl
8934 pic_flag=$lt_prog_compiler_pic
8940 lt_save_allow_undefined_flag=$allow_undefined_flag
8941 allow_undefined_flag=
8942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8943 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8946 test $ac_status = 0; }
8948 archive_cmds_need_lc=no
8950 archive_cmds_need_lc=yes
8952 allow_undefined_flag=$lt_save_allow_undefined_flag
8954 cat conftest.err 1>&5
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8958 $as_echo "$archive_cmds_need_lc" >&6; }
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8966 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8968 libname_spec='lib$name'
8976 shlibpath_overrides_runpath=unknown
8978 dynamic_linker="$host_os ld.so"
8979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8981 if test "$GCC" = yes; then
8983 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8984 *) lt_awk_arg="/^libraries:/" ;;
8986 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8987 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8988 # if the path contains ";" then we assume it to be the separator
8989 # otherwise default to the standard path separator (i.e. ":") - it is
8990 # assumed that no part of a normal pathname contains ";" but that should
8991 # okay in the real world where ";" in dirpaths is itself problematic.
8992 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8994 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8996 # Ok, now we have the path, separated by spaces, we can step through it
8997 # and add multilib dir if necessary.
8998 lt_tmp_lt_search_path_spec=
8999 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9000 for lt_sys_path in $lt_search_path_spec; do
9001 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9002 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9004 test -d "$lt_sys_path" && \
9005 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9008 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9009 BEGIN {RS=" "; FS="/|\n";} {
9012 for (lt_i = NF; lt_i > 0; lt_i--) {
9013 if ($lt_i != "" && $lt_i != ".") {
9014 if ($lt_i == "..") {
9017 if (lt_count == 0) {
9018 lt_foo="/" $lt_i lt_foo;
9025 if (lt_foo != "") { lt_freq[lt_foo]++; }
9026 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9028 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9030 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9032 need_lib_prefix=unknown
9033 hardcode_into_libs=no
9035 # when you set need_version to no, make sure it does not cause -set_version
9036 # flags to be left without arguments
9037 need_version=unknown
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9043 shlibpath_var=LIBPATH
9045 # AIX 3 has no versioning support, so we append a major version to the name.
9046 soname_spec='${libname}${release}${shared_ext}$major'
9053 hardcode_into_libs=yes
9054 if test "$host_cpu" = ia64; then
9055 # AIX 5 supports IA64
9056 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9057 shlibpath_var=LD_LIBRARY_PATH
9059 # With GCC up to 2.95.x, collect2 would create an import file
9060 # for dependence libraries. The import file would start with
9061 # the line `#! .'. This would cause the generated library to
9062 # depend on `.', always an invalid library. This was fixed in
9063 # development snapshots of GCC prior to 3.0.
9065 aix4 | aix4.[01] | aix4.[01].*)
9066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9068 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9075 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9076 # soname into executable. Probably we can add versioning support to
9077 # collect2, so additional links can be useful in future.
9078 if test "$aix_use_runtimelinking" = yes; then
9079 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9080 # instead of lib<name>.a to let people know that these are not
9081 # typical AIX shared libraries.
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 # We preserve .a as extension for shared libraries through AIX4.2
9085 # and later when we are not doing run time linking.
9086 library_names_spec='${libname}${release}.a $libname.a'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9089 shlibpath_var=LIBPATH
9094 library_names_spec='$libname.ixlibrary $libname.a'
9095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9096 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'
9100 library_names_spec='${libname}${shared_ext}'
9101 dynamic_linker="$host_os ld.so"
9102 shlibpath_var=LIBRARY_PATH
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9113 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9114 # the default ld.so.conf also contains /usr/contrib/lib and
9115 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9116 # libtool to hard-code these into programs
9119 cygwin* | mingw* | pw32*)
9120 version_type=windows
9125 case $GCC,$host_os in
9126 yes,cygwin* | yes,mingw* | yes,pw32*)
9127 library_names_spec='$libname.dll.a'
9128 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9129 postinstall_cmds='base_file=`basename \${file}`~
9130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9131 dldir=$destdir/`dirname \$dlpath`~
9132 test -d \$dldir || mkdir -p \$dldir~
9133 $install_prog $dir/$dlname \$dldir/$dlname~
9134 chmod a+x \$dldir/$dlname'
9135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9136 dlpath=$dir/\$dldll~
9138 shlibpath_overrides_runpath=yes
9142 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9143 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9144 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9147 # MinGW DLLs use traditional 'lib' prefix
9148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9149 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9150 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9151 # It is most probably a Windows format PATH printed by
9152 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9153 # path with ; separators, and with drive letters. We can handle the
9154 # drive letters (cygwin fileutils understands them), so leave them,
9155 # especially as we might pass files found there to a mingw objdump,
9156 # which wouldn't understand a cygwinified path. Ahh.
9157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9159 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9163 # pw32 DLLs use 'pw' prefix rather than 'lib'
9164 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9170 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9173 dynamic_linker='Win32 ld.exe'
9174 # FIXME: first we should search . and the directory the executable is in
9178 darwin* | rhapsody*)
9179 dynamic_linker="$host_os dyld"
9183 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9184 soname_spec='${libname}${release}${major}$shared_ext'
9185 shlibpath_overrides_runpath=yes
9186 shlibpath_var=DYLD_LIBRARY_PATH
9187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9206 freebsd* | dragonfly*)
9207 # DragonFly does not have aout. When/if they implement a new
9208 # versioning mechanism, adjust this.
9209 if test -x /usr/bin/objformat; then
9210 objformat=`/usr/bin/objformat`
9213 freebsd[123]*) objformat=aout ;;
9217 version_type=freebsd-$objformat
9218 case $version_type in
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9229 shlibpath_var=LD_LIBRARY_PATH
9232 shlibpath_overrides_runpath=yes
9234 freebsd3.[01]* | freebsdelf3.[01]*)
9235 shlibpath_overrides_runpath=yes
9236 hardcode_into_libs=yes
9238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9240 shlibpath_overrides_runpath=no
9241 hardcode_into_libs=yes
9243 *) # from 4.6 on, and DragonFly
9244 shlibpath_overrides_runpath=yes
9245 hardcode_into_libs=yes
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 hardcode_into_libs=yes
9260 hpux9* | hpux10* | hpux11*)
9261 # Give a soname corresponding to the major version so that dld.sl refuses to
9262 # link against other versions.
9269 hardcode_into_libs=yes
9270 dynamic_linker="$host_os dld.so"
9271 shlibpath_var=LD_LIBRARY_PATH
9272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 if test "X$HPUX_IA64_MODE" = X32; then
9276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9284 hardcode_into_libs=yes
9285 dynamic_linker="$host_os dld.sl"
9286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9295 dynamic_linker="$host_os dld.sl"
9296 shlibpath_var=SHLIB_PATH
9297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9303 postinstall_cmds='chmod 555 $lib'
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 shlibpath_overrides_runpath=no
9315 hardcode_into_libs=yes
9318 irix5* | irix6* | nonstopux*)
9320 nonstopux*) version_type=nonstopux ;;
9322 if test "$lt_cv_prog_gnu_ld" = yes; then
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9333 irix5* | nonstopux*)
9337 case $LD in # libtool.m4 will add one of these switches to LD
9338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9339 libsuff= shlibsuff= libmagic=32-bit;;
9340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9341 libsuff=32 shlibsuff=N32 libmagic=N32;;
9342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9344 *) libsuff= shlibsuff= libmagic=never-match;;
9348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9349 shlibpath_overrides_runpath=no
9350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9352 hardcode_into_libs=yes
9355 # No shared lib support for Linux oldld, aout, or coff.
9356 linux*oldld* | linux*aout* | linux*coff*)
9360 # This must be Linux ELF.
9361 linux* | k*bsd*-gnu)
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 shlibpath_overrides_runpath=no
9370 # This implies no fast_install, which is unacceptable.
9371 # Some rework will be needed to allow for fast_install
9372 # before this can be enabled.
9373 hardcode_into_libs=yes
9375 # Append ld.so.conf contents to the search path
9376 if test -f /etc/ld.so.conf; then
9377 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' ' '`
9378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9381 # We used to test for /lib/ld.so.1 and disable shared libraries on
9382 # powerpc, because MkLinux only supported shared libraries with the
9383 # GNU dynamic linker. Since this was broken with cross compilers,
9384 # most powerpc-linux boxes support dynamic linking these days and
9385 # people can always --disable-shared, the test was removed, and we
9386 # assume the GNU/Linux dynamic linker is in use.
9387 dynamic_linker='GNU/Linux ld.so'
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=no
9398 hardcode_into_libs=yes
9399 dynamic_linker='NetBSD ld.elf_so'
9406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9409 dynamic_linker='NetBSD (a.out) ld.so'
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9412 soname_spec='${libname}${release}${shared_ext}$major'
9413 dynamic_linker='NetBSD ld.elf_so'
9415 shlibpath_var=LD_LIBRARY_PATH
9416 shlibpath_overrides_runpath=yes
9417 hardcode_into_libs=yes
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=yes
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 shlibpath_overrides_runpath=yes
9439 sys_lib_dlsearch_path_spec="/usr/lib"
9441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9443 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9444 *) need_version=no ;;
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9448 shlibpath_var=LD_LIBRARY_PATH
9449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9451 openbsd2.[89] | openbsd2.[89].*)
9452 shlibpath_overrides_runpath=no
9455 shlibpath_overrides_runpath=yes
9459 shlibpath_overrides_runpath=yes
9464 libname_spec='$name'
9467 library_names_spec='$libname${shared_ext} $libname.a'
9468 dynamic_linker='OS/2 ld.exe'
9469 shlibpath_var=LIBPATH
9472 osf3* | osf4* | osf5*)
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 shlibpath_var=LD_LIBRARY_PATH
9494 shlibpath_overrides_runpath=yes
9495 hardcode_into_libs=yes
9496 # ldd complains unless libraries are executable
9497 postinstall_cmds='chmod +x $lib'
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 shlibpath_overrides_runpath=yes
9506 if test "$with_gnu_ld" = yes; then
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 case $host_vendor in
9519 shlibpath_overrides_runpath=no
9521 export_dynamic_flag_spec='${wl}-Blargedynsym'
9522 runpath_var=LD_RUN_PATH
9530 shlibpath_overrides_runpath=no
9531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9537 if test -d /usr/nec ;then
9539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9540 soname_spec='$libname${shared_ext}.$major'
9541 shlibpath_var=LD_LIBRARY_PATH
9545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9546 version_type=freebsd-elf
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 shlibpath_var=LD_LIBRARY_PATH
9552 hardcode_into_libs=yes
9553 if test "$with_gnu_ld" = yes; then
9554 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9555 shlibpath_overrides_runpath=no
9557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9558 shlibpath_overrides_runpath=yes
9561 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9565 sys_lib_dlsearch_path_spec='/usr/lib'
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9580 $as_echo "$dynamic_linker" >&6; }
9581 test "$dynamic_linker" = no && can_build_shared=no
9583 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9584 $as_echo_n "(cached) " >&6
9586 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9589 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9590 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9591 $as_echo_n "(cached) " >&6
9593 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9596 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9598 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9599 if test "$GCC" = yes; then
9600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9604 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9606 if test -n "$hardcode_libdir_flag_spec" || \
9607 test -n "$runpath_var" || \
9608 test "X$hardcode_automatic" = "Xyes" ; then
9610 # We can hardcode non-existant directories.
9611 if test "$hardcode_direct" != no &&
9612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9613 # have to relink, otherwise we might link with an installed library
9614 # when we should be linking with a yet-to-be-installed one
9615 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9616 test "$hardcode_minus_L" != no; then
9617 # Linking always hardcodes the temporary library directory.
9618 hardcode_action=relink
9620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9621 hardcode_action=immediate
9624 # We cannot hardcode anything, or else we can only hardcode existing
9626 hardcode_action=unsupported
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9629 $as_echo "$hardcode_action" >&6; }
9631 if test "$hardcode_action" = relink; then
9632 # Fast installation is not supported
9633 enable_fast_install=no
9634 elif test "$shlibpath_overrides_runpath" = yes ||
9635 test "$enable_shared" = no; then
9636 # Fast installation is not necessary
9637 enable_fast_install=needless
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9643 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9644 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9645 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9646 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9648 $as_echo "yes" >&6; }
9650 # FIXME - insert some real tests, host_os isn't really good enough
9653 if test -n "$STRIP" ; then
9654 striplib="$STRIP -x"
9655 old_striplib="$STRIP -S"
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9657 $as_echo "yes" >&6; }
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9670 if test "x$enable_dlopen" != xyes; then
9671 enable_dlopen=unknown
9672 enable_dlopen_self=unknown
9673 enable_dlopen_self_static=unknown
9680 lt_cv_dlopen="load_add_on"
9682 lt_cv_dlopen_self=yes
9686 lt_cv_dlopen="LoadLibrary"
9691 lt_cv_dlopen="dlopen"
9696 # if libdl is installed we need to link against it
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9698 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9699 if ${ac_cv_lib_dl_dlopen+:} false; then :
9700 $as_echo_n "(cached) " >&6
9702 ac_check_lib_save_LIBS=$LIBS
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9722 if ac_fn_c_try_link "$LINENO"; then :
9723 ac_cv_lib_dl_dlopen=yes
9725 ac_cv_lib_dl_dlopen=no
9727 rm -f core conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729 LIBS=$ac_check_lib_save_LIBS
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9732 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9733 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9739 lt_cv_dlopen_self=yes
9746 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9747 if test "x$ac_cv_func_shl_load" = xyes; then :
9748 lt_cv_dlopen="shl_load"
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9751 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9752 if ${ac_cv_lib_dld_shl_load+:} false; then :
9753 $as_echo_n "(cached) " >&6
9755 ac_check_lib_save_LIBS=$LIBS
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9760 /* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
9775 if ac_fn_c_try_link "$LINENO"; then :
9776 ac_cv_lib_dld_shl_load=yes
9778 ac_cv_lib_dld_shl_load=no
9780 rm -f core conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782 LIBS=$ac_check_lib_save_LIBS
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9785 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9786 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9787 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9789 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9790 if test "x$ac_cv_func_dlopen" = xyes; then :
9791 lt_cv_dlopen="dlopen"
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9794 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9795 if ${ac_cv_lib_dl_dlopen+:} false; then :
9796 $as_echo_n "(cached) " >&6
9798 ac_check_lib_save_LIBS=$LIBS
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9803 /* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9818 if ac_fn_c_try_link "$LINENO"; then :
9819 ac_cv_lib_dl_dlopen=yes
9821 ac_cv_lib_dl_dlopen=no
9823 rm -f core conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9828 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9829 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9833 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9834 if ${ac_cv_lib_svld_dlopen+:} false; then :
9835 $as_echo_n "(cached) " >&6
9837 ac_check_lib_save_LIBS=$LIBS
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9842 /* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply. */
9857 if ac_fn_c_try_link "$LINENO"; then :
9858 ac_cv_lib_svld_dlopen=yes
9860 ac_cv_lib_svld_dlopen=no
9862 rm -f core conftest.err conftest.$ac_objext \
9863 conftest$ac_exeext conftest.$ac_ext
9864 LIBS=$ac_check_lib_save_LIBS
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9867 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9868 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9872 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9873 if ${ac_cv_lib_dld_dld_link+:} false; then :
9874 $as_echo_n "(cached) " >&6
9876 ac_check_lib_save_LIBS=$LIBS
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9881 /* Override any GCC internal prototype to avoid an error.
9882 Use char because int might match the return type of a GCC
9883 builtin and then its argument prototype would still apply. */
9896 if ac_fn_c_try_link "$LINENO"; then :
9897 ac_cv_lib_dld_dld_link=yes
9899 ac_cv_lib_dld_dld_link=no
9901 rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9906 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9907 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9908 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9929 if test "x$lt_cv_dlopen" != xno; then
9935 case $lt_cv_dlopen in
9937 save_CPPFLAGS="$CPPFLAGS"
9938 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9940 save_LDFLAGS="$LDFLAGS"
9941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9944 LIBS="$lt_cv_dlopen_libs $LIBS"
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9947 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9948 if ${lt_cv_dlopen_self+:} false; then :
9949 $as_echo_n "(cached) " >&6
9951 if test "$cross_compiling" = yes; then :
9952 lt_cv_dlopen_self=cross
9954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9955 lt_status=$lt_dlunknown
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9953 "configure"
9958 #include "confdefs.h"
9967 # define LT_DLGLOBAL RTLD_GLOBAL
9970 # define LT_DLGLOBAL DL_GLOBAL
9972 # define LT_DLGLOBAL 0
9976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9977 find out it does not work in some platform. */
9978 #ifndef LT_DLLAZY_OR_NOW
9980 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9983 # define LT_DLLAZY_OR_NOW DL_LAZY
9986 # define LT_DLLAZY_OR_NOW RTLD_NOW
9989 # define LT_DLLAZY_OR_NOW DL_NOW
9991 # define LT_DLLAZY_OR_NOW 0
9999 extern "C" void exit (int);
10002 void fnord() { int i=42;}
10005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10006 int status = $lt_dlunknown;
10010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10011 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10012 /* dlclose (self); */
10020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10021 (eval $ac_link) 2>&5
10023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10024 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10025 (./conftest; exit; ) >&5 2>/dev/null
10027 case x$lt_status in
10028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10030 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10033 # compilation failed
10034 lt_cv_dlopen_self=no
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10042 $as_echo "$lt_cv_dlopen_self" >&6; }
10044 if test "x$lt_cv_dlopen_self" = xyes; then
10045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10047 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10048 if ${lt_cv_dlopen_self_static+:} false; then :
10049 $as_echo_n "(cached) " >&6
10051 if test "$cross_compiling" = yes; then :
10052 lt_cv_dlopen_self_static=cross
10054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10055 lt_status=$lt_dlunknown
10056 cat > conftest.$ac_ext <<EOF
10057 #line 10053 "configure"
10058 #include "confdefs.h"
10067 # define LT_DLGLOBAL RTLD_GLOBAL
10070 # define LT_DLGLOBAL DL_GLOBAL
10072 # define LT_DLGLOBAL 0
10076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10077 find out it does not work in some platform. */
10078 #ifndef LT_DLLAZY_OR_NOW
10080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10083 # define LT_DLLAZY_OR_NOW DL_LAZY
10086 # define LT_DLLAZY_OR_NOW RTLD_NOW
10089 # define LT_DLLAZY_OR_NOW DL_NOW
10091 # define LT_DLLAZY_OR_NOW 0
10099 extern "C" void exit (int);
10102 void fnord() { int i=42;}
10105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10106 int status = $lt_dlunknown;
10110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10111 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10112 /* dlclose (self); */
10120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10121 (eval $ac_link) 2>&5
10123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10125 (./conftest; exit; ) >&5 2>/dev/null
10127 case x$lt_status in
10128 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10129 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10130 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10133 # compilation failed
10134 lt_cv_dlopen_self_static=no
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10142 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10145 CPPFLAGS="$save_CPPFLAGS"
10146 LDFLAGS="$save_LDFLAGS"
10151 case $lt_cv_dlopen_self in
10152 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10153 *) enable_dlopen_self=unknown ;;
10156 case $lt_cv_dlopen_self_static in
10157 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10158 *) enable_dlopen_self_static=unknown ;;
10163 # Report which library types will actually be built
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10165 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10167 $as_echo "$can_build_shared" >&6; }
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10170 $as_echo_n "checking whether to build shared libraries... " >&6; }
10171 test "$can_build_shared" = "no" && enable_shared=no
10173 # On AIX, shared libraries and static libraries use the same namespace, and
10174 # are all built from PIC.
10177 test "$enable_shared" = yes && enable_static=no
10178 if test -n "$RANLIB"; then
10179 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10180 postinstall_cmds='$RANLIB $lib'
10185 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10186 test "$enable_shared" = yes && enable_static=no
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10191 $as_echo "$enable_shared" >&6; }
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10194 $as_echo_n "checking whether to build static libraries... " >&6; }
10195 # Make sure either enable_shared or enable_static is yes.
10196 test "$enable_shared" = yes || enable_static=yes
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10198 $as_echo "$enable_static" >&6; }
10200 # The else clause should only fire when bootstrapping the
10201 # libtool distribution, otherwise you forgot to ship ltmain.sh
10202 # with your package, and you will get complaints that there are
10203 # no rules to generate ltmain.sh.
10204 if test -f "$ltmain"; then
10205 # See if we are running on zsh, and set the options which allow our commands through
10206 # without removal of \ escapes.
10207 if test -n "${ZSH_VERSION+set}" ; then
10208 setopt NO_GLOB_SUBST
10210 # Now quote all the things that may contain metacharacters while being
10211 # careful not to overquote the AC_SUBSTed values. We take copies of the
10212 # variables and quote the copies for generation of the libtool script.
10213 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10215 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10216 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10217 deplibs_check_method reload_flag reload_cmds need_locks \
10218 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10219 lt_cv_sys_global_symbol_to_c_name_address \
10220 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10221 old_postinstall_cmds old_postuninstall_cmds \
10225 lt_prog_compiler_wl \
10226 lt_prog_compiler_pic \
10227 lt_prog_compiler_static \
10228 lt_prog_compiler_no_builtin_flag \
10229 export_dynamic_flag_spec \
10230 thread_safe_flag_spec \
10231 whole_archive_flag_spec \
10232 enable_shared_with_static_runtimes \
10234 old_archive_from_new_cmds \
10239 compiler_lib_search_path \
10240 compiler_lib_search_dirs \
10242 archive_expsym_cmds \
10244 postuninstall_cmds \
10245 old_archive_from_expsyms_cmds \
10246 allow_undefined_flag \
10247 no_undefined_flag \
10248 export_symbols_cmds \
10249 hardcode_libdir_flag_spec \
10250 hardcode_libdir_flag_spec_ld \
10251 hardcode_libdir_separator \
10252 hardcode_automatic \
10254 module_expsym_cmds \
10255 lt_cv_prog_compiler_c_o \
10258 include_expsyms; do
10261 old_archive_cmds | \
10262 old_archive_from_new_cmds | \
10264 archive_expsym_cmds | \
10266 module_expsym_cmds | \
10267 old_archive_from_expsyms_cmds | \
10268 export_symbols_cmds | \
10269 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10270 postinstall_cmds | postuninstall_cmds | \
10271 old_postinstall_cmds | old_postuninstall_cmds | \
10272 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10273 # Double-quote double-evaled strings.
10274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10283 *'\$0 --fallback-echo"')
10284 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10288 cfgfile="${ofile}T"
10289 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10292 $as_echo "$as_me: creating $ofile" >&6;}
10294 cat <<__EOF__ >> "$cfgfile"
10297 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10298 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10299 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10301 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10302 # Free Software Foundation, Inc.
10304 # This file is part of GNU Libtool:
10305 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10307 # This program is free software; you can redistribute it and/or modify
10308 # it under the terms of the GNU General Public License as published by
10309 # the Free Software Foundation; either version 2 of the License, or
10310 # (at your option) any later version.
10312 # This program is distributed in the hope that it will be useful, but
10313 # WITHOUT ANY WARRANTY; without even the implied warranty of
10314 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10315 # General Public License for more details.
10317 # You should have received a copy of the GNU General Public License
10318 # along with this program; if not, write to the Free Software
10319 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10321 # As a special exception to the GNU General Public License, if you
10322 # distribute this file as part of a program that contains a
10323 # configuration script generated by Autoconf, you may include it under
10324 # the same distribution terms that you use for the rest of that program.
10326 # A sed program that does not truncate output.
10329 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10330 Xsed="$SED -e 1s/^X//"
10332 # The HP-UX ksh and POSIX shell print the target directory to stdout
10333 # if CDPATH is set.
10334 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10336 # The names of the tagged configurations supported by this script.
10339 # ### BEGIN LIBTOOL CONFIG
10341 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10343 # Shell to use when invoking shell scripts.
10346 # Whether or not to build shared libraries.
10347 build_libtool_libs=$enable_shared
10349 # Whether or not to build static libraries.
10350 build_old_libs=$enable_static
10352 # Whether or not to add -lc for building shared libraries.
10353 build_libtool_need_lc=$archive_cmds_need_lc
10355 # Whether or not to disallow shared libs when runtime libs are static
10356 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10358 # Whether or not to optimize for fast installation.
10359 fast_install=$enable_fast_install
10362 host_alias=$host_alias
10366 # The build system.
10367 build_alias=$build_alias
10371 # An echo program that does not interpret backslashes.
10376 AR_FLAGS=$lt_AR_FLAGS
10381 # LTCC compiler flags.
10382 LTCFLAGS=$lt_LTCFLAGS
10384 # A language-specific compiler.
10387 # Is the compiler the GNU C compiler?
10393 # The linker used to build libraries.
10396 # Whether we need hard or soft links.
10399 # A BSD-compatible nm program.
10402 # A symbol stripping program
10405 # Used to examine libraries when file_magic_cmd begins "file"
10406 MAGIC_CMD=$MAGIC_CMD
10408 # Used on cygwin: DLL creation program.
10411 # Used on cygwin: object dumper.
10414 # Used on cygwin: assembler.
10417 # The name of the directory that contains temporary libtool files.
10420 # How to create reloadable object files.
10421 reload_flag=$lt_reload_flag
10422 reload_cmds=$lt_reload_cmds
10424 # How to pass a linker flag through the compiler.
10425 wl=$lt_lt_prog_compiler_wl
10427 # Object file suffix (normally "o").
10428 objext="$ac_objext"
10430 # Old archive suffix (normally "a").
10433 # Shared library suffix (normally ".so").
10434 shrext_cmds='$shrext_cmds'
10436 # Executable file suffix (normally "").
10439 # Additional compiler flags for building library objects.
10440 pic_flag=$lt_lt_prog_compiler_pic
10443 # What is the maximum length of a command?
10444 max_cmd_len=$lt_cv_sys_max_cmd_len
10446 # Does compiler simultaneously support -c and -o options?
10447 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10449 # Must we lock files when doing compilation?
10450 need_locks=$lt_need_locks
10452 # Do we need the lib prefix for modules?
10453 need_lib_prefix=$need_lib_prefix
10455 # Do we need a version for libraries?
10456 need_version=$need_version
10458 # Whether dlopen is supported.
10459 dlopen_support=$enable_dlopen
10461 # Whether dlopen of programs is supported.
10462 dlopen_self=$enable_dlopen_self
10464 # Whether dlopen of statically linked programs is supported.
10465 dlopen_self_static=$enable_dlopen_self_static
10467 # Compiler flag to prevent dynamic linking.
10468 link_static_flag=$lt_lt_prog_compiler_static
10470 # Compiler flag to turn off builtin functions.
10471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10473 # Compiler flag to allow reflexive dlopens.
10474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10476 # Compiler flag to generate shared objects directly from archives.
10477 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10479 # Compiler flag to generate thread-safe objects.
10480 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10482 # Library versioning type.
10483 version_type=$version_type
10485 # Format of library name prefix.
10486 libname_spec=$lt_libname_spec
10488 # List of archive names. First name is the real one, the rest are links.
10489 # The last name is the one that the linker finds with -lNAME.
10490 library_names_spec=$lt_library_names_spec
10492 # The coded name of the library, if different from the real name.
10493 soname_spec=$lt_soname_spec
10495 # Commands used to build and install an old-style archive.
10497 old_archive_cmds=$lt_old_archive_cmds
10498 old_postinstall_cmds=$lt_old_postinstall_cmds
10499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10501 # Create an old-style archive from a shared archive.
10502 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10504 # Create a temporary old-style archive to link instead of a shared archive.
10505 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10507 # Commands used to build and install a shared archive.
10508 archive_cmds=$lt_archive_cmds
10509 archive_expsym_cmds=$lt_archive_expsym_cmds
10510 postinstall_cmds=$lt_postinstall_cmds
10511 postuninstall_cmds=$lt_postuninstall_cmds
10513 # Commands used to build a loadable module (assumed same as above if empty)
10514 module_cmds=$lt_module_cmds
10515 module_expsym_cmds=$lt_module_expsym_cmds
10517 # Commands to strip libraries.
10518 old_striplib=$lt_old_striplib
10519 striplib=$lt_striplib
10521 # Dependencies to place before the objects being linked to create a
10523 predep_objects=$lt_predep_objects
10525 # Dependencies to place after the objects being linked to create a
10527 postdep_objects=$lt_postdep_objects
10529 # Dependencies to place before the objects being linked to create a
10531 predeps=$lt_predeps
10533 # Dependencies to place after the objects being linked to create a
10535 postdeps=$lt_postdeps
10537 # The directories searched by this compiler when creating a shared
10539 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10541 # The library search path used internally by the compiler when linking
10542 # a shared library.
10543 compiler_lib_search_path=$lt_compiler_lib_search_path
10545 # Method to check whether dependent libraries are shared objects.
10546 deplibs_check_method=$lt_deplibs_check_method
10548 # Command to use when deplibs_check_method == file_magic.
10549 file_magic_cmd=$lt_file_magic_cmd
10551 # Flag that allows shared libraries with undefined symbols to be built.
10552 allow_undefined_flag=$lt_allow_undefined_flag
10554 # Flag that forces no undefined symbols.
10555 no_undefined_flag=$lt_no_undefined_flag
10557 # Commands used to finish a libtool library installation in a directory.
10558 finish_cmds=$lt_finish_cmds
10560 # Same as above, but a single script fragment to be evaled but not shown.
10561 finish_eval=$lt_finish_eval
10563 # Take the output of nm and produce a listing of raw symbols and C names.
10564 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10566 # Transform the output of nm in a proper C declaration
10567 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10569 # Transform the output of nm in a C name address pair
10570 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10572 # This is the shared library runtime path variable.
10573 runpath_var=$runpath_var
10575 # This is the shared library path variable.
10576 shlibpath_var=$shlibpath_var
10578 # Is shlibpath searched before the hard-coded library search path?
10579 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10581 # How to hardcode a shared library path into an executable.
10582 hardcode_action=$hardcode_action
10584 # Whether we should hardcode library paths into libraries.
10585 hardcode_into_libs=$hardcode_into_libs
10587 # Flag to hardcode \$libdir into a binary during linking.
10588 # This must work even if \$libdir does not exist.
10589 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10591 # If ld is used when linking, flag to hardcode \$libdir into
10592 # a binary during linking. This must work even if \$libdir does
10594 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10596 # Whether we need a single -rpath flag with a separated argument.
10597 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10599 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10600 # resulting binary.
10601 hardcode_direct=$hardcode_direct
10603 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10604 # resulting binary.
10605 hardcode_minus_L=$hardcode_minus_L
10607 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10608 # the resulting binary.
10609 hardcode_shlibpath_var=$hardcode_shlibpath_var
10611 # Set to yes if building a shared library automatically hardcodes DIR into the library
10612 # and all subsequent libraries and executables linked against it.
10613 hardcode_automatic=$hardcode_automatic
10615 # Variables whose values should be saved in libtool wrapper scripts and
10616 # restored at relink time.
10617 variables_saved_for_relink="$variables_saved_for_relink"
10619 # Whether libtool must link a program against all its dependency libraries.
10620 link_all_deplibs=$link_all_deplibs
10622 # Compile-time system search path for libraries
10623 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10625 # Run-time system search path for libraries
10626 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10628 # Fix the shell variable \$srcfile for the compiler.
10629 fix_srcfile_path=$lt_fix_srcfile_path
10631 # Set to yes if exported symbols are required.
10632 always_export_symbols=$always_export_symbols
10634 # The commands to list exported symbols.
10635 export_symbols_cmds=$lt_export_symbols_cmds
10637 # The commands to extract the exported symbol list from a shared archive.
10638 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10640 # Symbols that should not be listed in the preloaded symbols.
10641 exclude_expsyms=$lt_exclude_expsyms
10643 # Symbols that must always be exported.
10644 include_expsyms=$lt_include_expsyms
10646 # ### END LIBTOOL CONFIG
10653 cat <<\EOF >> "$cfgfile"
10655 # AIX sometimes has problems with the GCC collect2 program. For some
10656 # reason, if we set the COLLECT_NAMES environment variable, the problems
10657 # vanish in a puff of smoke.
10658 if test "X${COLLECT_NAMES+set}" != Xset; then
10660 export COLLECT_NAMES
10666 # We use sed instead of cat because bash on DJGPP gets confused if
10667 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10668 # text mode, it properly converts lines to CR/LF. This bash problem
10669 # is reportedly fixed, but why not run on old versions too?
10670 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10672 mv -f "$cfgfile" "$ofile" || \
10673 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10677 # If there is no Makefile yet, we rely on a make rule to execute
10678 # `config.status --recheck' to rerun these tests and create the
10679 # libtool script then.
10680 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10681 if test -f "$ltmain_in"; then
10682 test -f Makefile && make "$ltmain"
10688 ac_cpp='$CPP $CPPFLAGS'
10689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10696 # Check whether --with-tags was given.
10697 if test "${with_tags+set}" = set; then :
10698 withval=$with_tags; tagnames="$withval"
10702 if test -f "$ltmain" && test -n "$tagnames"; then
10703 if test ! -f "${ofile}"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10705 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10708 if test -z "$LTCC"; then
10709 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10710 if test -z "$LTCC"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10712 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10715 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10718 if test -z "$LTCFLAGS"; then
10719 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10722 # Extract list of available tagged configurations in $ofile.
10723 # Note that this assumes the entire list is on one line.
10724 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10727 for tagname in $tagnames; do
10729 # Check whether tagname contains only valid characters
10730 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10732 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10736 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10738 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10741 # Update the list of available tags.
10742 if test -n "$tagname"; then
10743 echo appending configuration tag \"$tagname\" to $ofile
10747 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10748 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10749 (test "X$CXX" != "Xg++"))) ; then
10751 ac_cpp='$CXXCPP $CPPFLAGS'
10752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10759 archive_cmds_need_lc_CXX=no
10760 allow_undefined_flag_CXX=
10761 always_export_symbols_CXX=no
10762 archive_expsym_cmds_CXX=
10763 export_dynamic_flag_spec_CXX=
10764 hardcode_direct_CXX=no
10765 hardcode_libdir_flag_spec_CXX=
10766 hardcode_libdir_flag_spec_ld_CXX=
10767 hardcode_libdir_separator_CXX=
10768 hardcode_minus_L_CXX=no
10769 hardcode_shlibpath_var_CXX=unsupported
10770 hardcode_automatic_CXX=no
10772 module_expsym_cmds_CXX=
10773 link_all_deplibs_CXX=unknown
10774 old_archive_cmds_CXX=$old_archive_cmds
10775 no_undefined_flag_CXX=
10776 whole_archive_flag_spec_CXX=
10777 enable_shared_with_static_runtimes_CXX=no
10779 # Dependencies to place before and after the object being linked:
10780 predep_objects_CXX=
10781 postdep_objects_CXX=
10784 compiler_lib_search_path_CXX=
10785 compiler_lib_search_dirs_CXX=
10787 # Source file extension for C++ test sources.
10790 # Object file extension for compiled C++ test sources.
10794 # Code to be used in simple compile tests
10795 lt_simple_compile_test_code="int some_variable = 0;"
10797 # Code to be used in simple link tests
10798 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10800 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10802 # If no C compiler was specified, use CC.
10805 # If no C compiler flags were specified, use CFLAGS.
10806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10808 # Allow CC to be a program name with arguments.
10812 # save warnings/boilerplate of simple test code
10813 ac_outfile=conftest.$ac_objext
10814 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10816 _lt_compiler_boilerplate=`cat conftest.err`
10819 ac_outfile=conftest.$ac_objext
10820 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10822 _lt_linker_boilerplate=`cat conftest.err`
10826 # Allow CC to be a program name with arguments.
10831 lt_save_with_gnu_ld=$with_gnu_ld
10832 lt_save_path_LD=$lt_cv_path_LD
10833 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10834 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10836 $as_unset lt_cv_prog_gnu_ld
10838 if test -n "${lt_cv_path_LDCXX+set}"; then
10839 lt_cv_path_LD=$lt_cv_path_LDCXX
10841 $as_unset lt_cv_path_LD
10843 test -z "${LDCXX+set}" || LD=$LDCXX
10847 for cc_temp in $compiler""; do
10849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10855 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10858 # We don't want -fno-exception wen compiling C++ code, so set the
10859 # no_builtin_flag separately
10860 if test "$GXX" = yes; then
10861 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10863 lt_prog_compiler_no_builtin_flag_CXX=
10866 if test "$GXX" = yes; then
10867 # Set up default GNU C++ configuration
10870 # Check whether --with-gnu-ld was given.
10871 if test "${with_gnu_ld+set}" = set; then :
10872 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10878 if test "$GCC" = yes; then
10879 # Check if gcc -print-prog-name=ld gives a path.
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10881 $as_echo_n "checking for ld used by $CC... " >&6; }
10884 # gcc leaves a trailing carriage return which upsets mingw
10885 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10887 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10890 # Accept absolute paths.
10892 re_direlt='/[^/][^/]*/\.\./'
10893 # Canonicalize the pathname of ld
10894 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10895 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10896 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10898 test -z "$LD" && LD="$ac_prog"
10901 # If it fails, then pretend we aren't using GCC.
10905 # If it is relative, then search for the first ld in PATH.
10906 with_gnu_ld=unknown
10909 elif test "$with_gnu_ld" = yes; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10911 $as_echo_n "checking for GNU ld... " >&6; }
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10914 $as_echo_n "checking for non-GNU ld... " >&6; }
10916 if ${lt_cv_path_LD+:} false; then :
10917 $as_echo_n "(cached) " >&6
10919 if test -z "$LD"; then
10920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10921 for ac_dir in $PATH; do
10923 test -z "$ac_dir" && ac_dir=.
10924 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10925 lt_cv_path_LD="$ac_dir/$ac_prog"
10926 # Check to see if the program is GNU ld. I'd rather use --version,
10927 # but apparently some variants of GNU ld only accept -v.
10928 # Break only if it was the GNU/non-GNU ld that we prefer.
10929 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10930 *GNU* | *'with BFD'*)
10931 test "$with_gnu_ld" != no && break
10934 test "$with_gnu_ld" != yes && break
10941 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10945 LD="$lt_cv_path_LD"
10946 if test -n "$LD"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10948 $as_echo "$LD" >&6; }
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10953 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10956 if ${lt_cv_prog_gnu_ld+:} false; then :
10957 $as_echo_n "(cached) " >&6
10959 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10960 case `$LD -v 2>&1 </dev/null` in
10961 *GNU* | *'with BFD'*)
10962 lt_cv_prog_gnu_ld=yes
10965 lt_cv_prog_gnu_ld=no
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10970 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10971 with_gnu_ld=$lt_cv_prog_gnu_ld
10975 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10976 # archiving commands below assume that GNU ld is being used.
10977 if test "$with_gnu_ld" = yes; then
10978 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10979 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'
10981 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10984 # If archive_cmds runs LD, not CC, wlarc should be empty
10985 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10986 # investigate it a little bit more. (MM)
10989 # ancient GNU ld didn't support --whole-archive et. al.
10990 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10991 grep 'no-whole-archive' > /dev/null; then
10992 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10994 whole_archive_flag_spec_CXX=
11000 # A generic and very simple default shared library creation
11001 # command for GNU C++ for the case where it uses the native
11002 # linker, instead of GNU ld. If possible, this setting should
11003 # overridden to take advantage of the native linker features on
11004 # the platform it is being used on.
11005 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11008 # Commands to make compiler produce verbose output that lists
11009 # what "hidden" libraries, object files and flags are used when
11010 # linking a shared library.
11011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11019 # PORTME: fill in a description of your system's C++ link characteristics
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11025 # FIXME: insert proper C++ library support
11029 if test "$host_cpu" = ia64; then
11030 # On IA64, the linker does run time linking by default, so we don't
11031 # have to do anything special.
11032 aix_use_runtimelinking=no
11033 exp_sym_flag='-Bexport'
11036 aix_use_runtimelinking=no
11038 # Test if we are trying to use run time linking or normal
11039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11040 # need to do runtime linking.
11041 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11042 for ld_flag in $LDFLAGS; do
11045 aix_use_runtimelinking=yes
11053 exp_sym_flag='-bexport'
11054 no_entry_flag='-bnoentry'
11057 # When large executables or shared objects are built, AIX ld can
11058 # have problems creating the table of contents. If linking a library
11059 # or program results in "error TOC overflow" add -mminimal-toc to
11060 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11061 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11063 archive_cmds_CXX=''
11064 hardcode_direct_CXX=yes
11065 hardcode_libdir_separator_CXX=':'
11066 link_all_deplibs_CXX=yes
11068 if test "$GXX" = yes; then
11069 case $host_os in aix4.[012]|aix4.[012].*)
11070 # We only want to do this on AIX 4.2 and lower, the check
11071 # below for broken collect2 doesn't work under 4.3+
11072 collect2name=`${CC} -print-prog-name=collect2`
11073 if test -f "$collect2name" && \
11074 strings "$collect2name" | grep resolve_lib_name >/dev/null
11076 # We have reworked collect2
11079 # We have old collect2
11080 hardcode_direct_CXX=unsupported
11081 # It fails to find uninstalled libraries when the uninstalled
11082 # path is not listed in the libpath. Setting hardcode_minus_L
11083 # to unsupported forces relinking
11084 hardcode_minus_L_CXX=yes
11085 hardcode_libdir_flag_spec_CXX='-L$libdir'
11086 hardcode_libdir_separator_CXX=
11090 shared_flag='-shared'
11091 if test "$aix_use_runtimelinking" = yes; then
11092 shared_flag="$shared_flag "'${wl}-G'
11096 if test "$host_cpu" = ia64; then
11097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11098 # chokes on -Wl,-G. The following line is correct:
11101 if test "$aix_use_runtimelinking" = yes; then
11102 shared_flag='${wl}-G'
11104 shared_flag='${wl}-bM:SRE'
11109 # It seems that -bexpall does not export symbols beginning with
11110 # underscore (_), so it is better to generate a list of symbols to export.
11111 always_export_symbols_CXX=yes
11112 if test "$aix_use_runtimelinking" = yes; then
11113 # Warning - without using the other runtime loading flags (-brtl),
11114 # -berok will link without error, but may produce a broken library.
11115 allow_undefined_flag_CXX='-berok'
11116 # Determine the default libpath from the value encoded in an empty executable.
11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11128 if ac_fn_cxx_try_link "$LINENO"; then :
11130 lt_aix_libpath_sed='
11131 /Import File Strings/,/^$/ {
11137 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11138 # Check for a 64-bit object if we didn't find anything.
11139 if test -z "$aix_libpath"; then
11140 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11143 rm -f core conftest.err conftest.$ac_objext \
11144 conftest$ac_exeext conftest.$ac_ext
11145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11147 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11149 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"
11151 if test "$host_cpu" = ia64; then
11152 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11153 allow_undefined_flag_CXX="-z nodefs"
11154 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"
11156 # Determine the default libpath from the value encoded in an empty executable.
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11168 if ac_fn_cxx_try_link "$LINENO"; then :
11170 lt_aix_libpath_sed='
11171 /Import File Strings/,/^$/ {
11177 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11178 # Check for a 64-bit object if we didn't find anything.
11179 if test -z "$aix_libpath"; then
11180 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11183 rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11187 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11188 # Warning - without using the other run time loading flags,
11189 # -berok will link without error, but may produce a broken library.
11190 no_undefined_flag_CXX=' ${wl}-bernotok'
11191 allow_undefined_flag_CXX=' ${wl}-berok'
11192 # Exported symbols can be pulled into shared objects from archives
11193 whole_archive_flag_spec_CXX='$convenience'
11194 archive_cmds_need_lc_CXX=yes
11195 # This is similar to how AIX traditionally builds its shared libraries.
11196 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'
11202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11203 allow_undefined_flag_CXX=unsupported
11204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11205 # support --undefined. This deserves some investigation. FIXME
11206 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11213 case $cc_basename in
11215 # FIXME: insert proper C++ library support
11221 cygwin* | mingw* | pw32*)
11222 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11223 # as there is no search path for DLLs.
11224 hardcode_libdir_flag_spec_CXX='-L$libdir'
11225 allow_undefined_flag_CXX=unsupported
11226 always_export_symbols_CXX=no
11227 enable_shared_with_static_runtimes_CXX=yes
11229 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11230 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'
11231 # If the export-symbols file already is a .def file (1st line
11232 # is EXPORTS), use it as is; otherwise, prepend...
11233 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11234 cp $export_symbols $output_objdir/$soname.def;
11236 echo EXPORTS > $output_objdir/$soname.def;
11237 cat $export_symbols >> $output_objdir/$soname.def;
11239 $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'
11244 darwin* | rhapsody*)
11245 archive_cmds_need_lc_CXX=no
11246 hardcode_direct_CXX=no
11247 hardcode_automatic_CXX=yes
11248 hardcode_shlibpath_var_CXX=unsupported
11249 whole_archive_flag_spec_CXX=''
11250 link_all_deplibs_CXX=yes
11251 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11252 if test "$GXX" = yes ; then
11253 output_verbose_link_cmd='echo'
11254 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}"
11255 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11256 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}"
11257 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}"
11258 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11259 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}"
11260 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}"
11263 case $cc_basename in
11265 output_verbose_link_cmd='echo'
11266 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'
11267 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11269 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}'
11270 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}'
11280 case $cc_basename in
11282 # FIXME: insert proper C++ library support
11286 # Green Hills C++ Compiler
11287 # FIXME: insert proper C++ library support
11291 # FIXME: insert proper C++ library support
11297 # C++ shared libraries reported to be fairly broken before switch to ELF
11301 archive_cmds_need_lc_CXX=no
11303 freebsd* | dragonfly*)
11304 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11311 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11312 hardcode_libdir_separator_CXX=:
11313 export_dynamic_flag_spec_CXX='${wl}-E'
11314 hardcode_direct_CXX=yes
11315 hardcode_minus_L_CXX=yes # Not in the search PATH,
11316 # but as the default
11317 # location of the library.
11319 case $cc_basename in
11321 # FIXME: insert proper C++ library support
11325 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'
11326 # Commands to make compiler produce verbose output that lists
11327 # what "hidden" libraries, object files and flags are used when
11328 # linking a shared library.
11330 # There doesn't appear to be a way to prevent this compiler from
11331 # explicitly linking system object files so we need to strip them
11332 # from the output so that they don't get included in the library
11334 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'
11337 if test "$GXX" = yes; then
11338 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'
11340 # FIXME: insert proper C++ library support
11347 if test $with_gnu_ld = no; then
11348 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11349 hardcode_libdir_separator_CXX=:
11354 export_dynamic_flag_spec_CXX='${wl}-E'
11360 hardcode_direct_CXX=no
11361 hardcode_shlibpath_var_CXX=no
11364 hardcode_direct_CXX=yes
11365 hardcode_minus_L_CXX=yes # Not in the search PATH,
11366 # but as the default
11367 # location of the library.
11371 case $cc_basename in
11373 # FIXME: insert proper C++ library support
11379 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11382 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11385 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11388 # Commands to make compiler produce verbose output that lists
11389 # what "hidden" libraries, object files and flags are used when
11390 # linking a shared library.
11392 # There doesn't appear to be a way to prevent this compiler from
11393 # explicitly linking system object files so we need to strip them
11394 # from the output so that they don't get included in the library
11396 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'
11399 if test "$GXX" = yes; then
11400 if test $with_gnu_ld = no; then
11403 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11406 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11409 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'
11414 # FIXME: insert proper C++ library support
11421 hardcode_direct_CXX=no
11422 hardcode_shlibpath_var_CXX=no
11423 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11424 export_dynamic_flag_spec_CXX='${wl}-E'
11425 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11426 # Instead, shared libraries are loaded at an image base (0x10000000 by
11427 # default) and relocated if they conflict, which is a slow very memory
11428 # consuming and fragmenting process. To avoid this, we pick a random,
11429 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11430 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11431 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'
11432 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'
11435 case $cc_basename in
11438 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'
11440 # Archives containing C++ object files must be created using
11441 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11442 # necessary to make sure instantiated templates are included
11444 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11447 if test "$GXX" = yes; then
11448 if test "$with_gnu_ld" = no; then
11449 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'
11451 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'
11454 link_all_deplibs_CXX=yes
11457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11458 hardcode_libdir_separator_CXX=:
11460 linux* | k*bsd*-gnu)
11461 case $cc_basename in
11463 # Kuck and Associates, Inc. (KAI) C++ Compiler
11465 # KCC will only create a shared library if the output file
11466 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11467 # to its proper name (with version) after linking.
11468 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'
11469 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'
11470 # Commands to make compiler produce verbose output that lists
11471 # what "hidden" libraries, object files and flags are used when
11472 # linking a shared library.
11474 # There doesn't appear to be a way to prevent this compiler from
11475 # explicitly linking system object files so we need to strip them
11476 # from the output so that they don't get included in the library
11478 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'
11480 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11481 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11483 # Archives containing C++ object files must be created using
11484 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11485 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11490 # version 8.0 and above of icpc choke on multiply defined symbols
11491 # if we add $predep_objects and $postdep_objects, however 7.1 and
11492 # earlier do not add the objects themselves.
11493 case `$CC -V 2>&1` in
11495 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11496 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'
11498 *) # Version 8.0 or newer
11501 ia64*) tmp_idyn=' -i_dynamic';;
11503 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504 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'
11507 archive_cmds_need_lc_CXX=no
11508 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11509 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11510 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11513 # Portland Group C++ compiler
11514 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11515 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'
11517 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11518 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11519 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'
11523 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11524 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'
11526 runpath_var=LD_RUN_PATH
11527 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11528 hardcode_libdir_separator_CXX=:
11530 # Commands to make compiler produce verbose output that lists
11531 # what "hidden" libraries, object files and flags are used when
11532 # linking a shared library.
11534 # There doesn't appear to be a way to prevent this compiler from
11535 # explicitly linking system object files so we need to strip them
11536 # from the output so that they don't get included in the library
11538 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'
11541 case `$CC -V 2>&1 | sed 5q` in
11544 no_undefined_flag_CXX=' -zdefs'
11545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11546 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'
11547 hardcode_libdir_flag_spec_CXX='-R$libdir'
11548 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'
11550 # Not sure whether something based on
11551 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11553 output_verbose_link_cmd='echo'
11555 # Archives containing C++ object files must be created using
11556 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11557 # necessary to make sure instantiated templates are included
11559 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11566 # FIXME: insert proper C++ library support
11570 # FIXME: insert proper C++ library support
11574 case $cc_basename in
11576 # FIXME: insert proper C++ library support
11580 # FIXME: insert proper C++ library support
11585 netbsd* | netbsdelf*-gnu)
11586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11587 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11589 hardcode_libdir_flag_spec_CXX='-R$libdir'
11590 hardcode_direct_CXX=yes
11591 hardcode_shlibpath_var_CXX=no
11593 # Workaround some broken pre-1.5 toolchains
11594 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11597 # C++ shared libraries are fairly broken
11601 if test -f /usr/libexec/ld.so; then
11602 hardcode_direct_CXX=yes
11603 hardcode_shlibpath_var_CXX=no
11604 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11605 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11607 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11608 export_dynamic_flag_spec_CXX='${wl}-E'
11609 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11611 output_verbose_link_cmd='echo'
11617 case $cc_basename in
11619 # Kuck and Associates, Inc. (KAI) C++ Compiler
11621 # KCC will only create a shared library if the output file
11622 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11623 # to its proper name (with version) after linking.
11624 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'
11626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11627 hardcode_libdir_separator_CXX=:
11629 # Archives containing C++ object files must be created using
11630 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11631 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11635 # Rational C++ 2.4.1
11636 # FIXME: insert proper C++ library support
11640 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11641 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'
11643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11644 hardcode_libdir_separator_CXX=:
11646 # Commands to make compiler produce verbose output that lists
11647 # what "hidden" libraries, object files and flags are used when
11648 # linking a shared library.
11650 # There doesn't appear to be a way to prevent this compiler from
11651 # explicitly linking system object files so we need to strip them
11652 # from the output so that they don't get included in the library
11654 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'
11657 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11658 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11659 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'
11661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11662 hardcode_libdir_separator_CXX=:
11664 # Commands to make compiler produce verbose output that lists
11665 # what "hidden" libraries, object files and flags are used when
11666 # linking a shared library.
11667 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11670 # FIXME: insert proper C++ library support
11677 case $cc_basename in
11679 # Kuck and Associates, Inc. (KAI) C++ Compiler
11681 # KCC will only create a shared library if the output file
11682 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11683 # to its proper name (with version) after linking.
11684 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'
11686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11687 hardcode_libdir_separator_CXX=:
11689 # Archives containing C++ object files must be created using
11690 # the KAI C++ compiler.
11691 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11694 # Rational C++ 2.4.1
11695 # FIXME: insert proper C++ library support
11699 allow_undefined_flag_CXX=' -expect_unresolved \*'
11700 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'
11701 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11702 echo "-hidden">> $lib.exp~
11703 $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~
11706 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11707 hardcode_libdir_separator_CXX=:
11709 # Commands to make compiler produce verbose output that lists
11710 # what "hidden" libraries, object files and flags are used when
11711 # linking a shared library.
11713 # There doesn't appear to be a way to prevent this compiler from
11714 # explicitly linking system object files so we need to strip them
11715 # from the output so that they don't get included in the library
11717 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'
11720 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11721 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11722 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'
11724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11725 hardcode_libdir_separator_CXX=:
11727 # Commands to make compiler produce verbose output that lists
11728 # what "hidden" libraries, object files and flags are used when
11729 # linking a shared library.
11730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11733 # FIXME: insert proper C++ library support
11740 # FIXME: insert proper C++ library support
11744 case $cc_basename in
11747 # FIXME: insert proper C++ library support
11752 # FIXME: insert proper C++ library support
11756 # FIXME: insert proper C++ library support
11762 case $cc_basename in
11764 # Sun C++ 4.2, 5.x and Centerline C++
11765 archive_cmds_need_lc_CXX=yes
11766 no_undefined_flag_CXX=' -zdefs'
11767 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11768 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11769 $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'
11771 hardcode_libdir_flag_spec_CXX='-R$libdir'
11772 hardcode_shlibpath_var_CXX=no
11774 solaris2.[0-5] | solaris2.[0-5].*) ;;
11776 # The compiler driver will combine and reorder linker options,
11777 # but understands `-z linker_flag'.
11778 # Supported since Solaris 2.6 (maybe 2.5.1?)
11779 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11782 link_all_deplibs_CXX=yes
11784 output_verbose_link_cmd='echo'
11786 # Archives containing C++ object files must be created using
11787 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11788 # necessary to make sure instantiated templates are included
11790 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11793 # Green Hills C++ Compiler
11794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11796 # The C++ compiler must be used to create the archive.
11797 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11800 # GNU C++ compiler with Solaris linker
11801 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11802 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11803 if $CC --version | grep -v '^2\.7' > /dev/null; then
11804 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11805 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11806 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11808 # Commands to make compiler produce verbose output that lists
11809 # what "hidden" libraries, object files and flags are used when
11810 # linking a shared library.
11811 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11813 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11815 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11816 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11817 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11819 # Commands to make compiler produce verbose output that lists
11820 # what "hidden" libraries, object files and flags are used when
11821 # linking a shared library.
11822 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11825 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11827 solaris2.[0-5] | solaris2.[0-5].*) ;;
11829 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11836 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11837 no_undefined_flag_CXX='${wl}-z,text'
11838 archive_cmds_need_lc_CXX=no
11839 hardcode_shlibpath_var_CXX=no
11840 runpath_var='LD_RUN_PATH'
11842 case $cc_basename in
11844 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11845 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11848 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11849 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11853 sysv5* | sco3.2v5* | sco5v6*)
11854 # Note: We can NOT use -z defs as we might desire, because we do not
11855 # link with -lc, and that would cause any symbols used from libc to
11856 # always be unresolved, which means just about no library would
11857 # ever link correctly. If we're not using GNU ld we use -z text
11858 # though, which does catch some bad symbols but isn't as heavy-handed
11860 # For security reasons, it is highly recommended that you always
11861 # use absolute paths for naming shared libraries, and exclude the
11862 # DT_RUNPATH tag from executables and libraries. But doing so
11863 # requires that you compile everything twice, which is a pain.
11864 # So that behaviour is only enabled if SCOABSPATH is set to a
11865 # non-empty value in the environment. Most likely only useful for
11866 # creating official distributions of packages.
11867 # This is a hack until libtool officially supports absolute path
11868 # names for shared libraries.
11869 no_undefined_flag_CXX='${wl}-z,text'
11870 allow_undefined_flag_CXX='${wl}-z,nodefs'
11871 archive_cmds_need_lc_CXX=no
11872 hardcode_shlibpath_var_CXX=no
11873 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11874 hardcode_libdir_separator_CXX=':'
11875 link_all_deplibs_CXX=yes
11876 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11877 runpath_var='LD_RUN_PATH'
11879 case $cc_basename in
11881 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11882 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11885 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11886 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11891 case $cc_basename in
11893 # NonStop-UX NCC 3.20
11894 # FIXME: insert proper C++ library support
11898 # FIXME: insert proper C++ library support
11904 # FIXME: insert proper C++ library support
11908 # FIXME: insert proper C++ library support
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11913 $as_echo "$ld_shlibs_CXX" >&6; }
11914 test "$ld_shlibs_CXX" = no && can_build_shared=no
11919 cat > conftest.$ac_ext <<EOF
11923 Foo (void) { a = 0; }
11929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11930 (eval $ac_compile) 2>&5
11932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933 test $ac_status = 0; }; then
11934 # Parse the compiler output and extract the necessary
11935 # objects, libraries and library flags.
11937 # Sentinel used to keep track of whether or not we are before
11938 # the conftest object file.
11939 pre_test_object_deps_done=no
11941 # The `*' in the case matches for architectures that use `case' in
11942 # $output_verbose_cmd can trigger glob expansion during the loop
11943 # eval without this substitution.
11944 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11946 for p in `eval $output_verbose_link_cmd`; do
11950 # Some compilers place space between "-{L,R}" and the path.
11951 # Remove the space.
11952 if test $p = "-L" \
11953 || test $p = "-R"; then
11960 if test "$pre_test_object_deps_done" = no; then
11963 # Internal compiler library paths should come after those
11964 # provided the user. The postdeps already come after the
11965 # user supplied libs so there is no need to process them.
11966 if test -z "$compiler_lib_search_path_CXX"; then
11967 compiler_lib_search_path_CXX="${prev}${p}"
11969 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11972 # The "-l" case would never come before the object being
11973 # linked, so don't bother handling this case.
11976 if test -z "$postdeps_CXX"; then
11977 postdeps_CXX="${prev}${p}"
11979 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11985 # This assumes that the test object file only shows up
11986 # once in the compiler output.
11987 if test "$p" = "conftest.$objext"; then
11988 pre_test_object_deps_done=yes
11992 if test "$pre_test_object_deps_done" = no; then
11993 if test -z "$predep_objects_CXX"; then
11994 predep_objects_CXX="$p"
11996 predep_objects_CXX="$predep_objects_CXX $p"
11999 if test -z "$postdep_objects_CXX"; then
12000 postdep_objects_CXX="$p"
12002 postdep_objects_CXX="$postdep_objects_CXX $p"
12007 *) ;; # Ignore the rest.
12015 echo "libtool.m4: error: problem compiling CXX test program"
12018 $rm -f confest.$objext
12020 compiler_lib_search_dirs_CXX=
12021 if test -n "$compiler_lib_search_path_CXX"; then
12022 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12025 # PORTME: override above test on systems where it is broken
12028 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12029 # hack all around it, let's just trust "g++" to DTRT.
12030 predep_objects_CXX=
12031 postdep_objects_CXX=
12036 case `$CC -V 2>&1 | sed 5q` in
12040 # The more standards-conforming stlport4 library is
12041 # incompatible with the Cstd library. Avoid specifying
12042 # it if it's in CXXFLAGS. Ignore libCrun as
12043 # -library=stlport4 depends on it.
12044 case " $CXX $CXXFLAGS " in
12045 *" -library=stlport4 "*)
12046 solaris_use_stlport4=yes
12049 if test "$solaris_use_stlport4" != yes; then
12050 postdeps_CXX='-library=Cstd -library=Crun'
12057 case $cc_basename in
12059 # The more standards-conforming stlport4 library is
12060 # incompatible with the Cstd library. Avoid specifying
12061 # it if it's in CXXFLAGS. Ignore libCrun as
12062 # -library=stlport4 depends on it.
12063 case " $CXX $CXXFLAGS " in
12064 *" -library=stlport4 "*)
12065 solaris_use_stlport4=yes
12069 # Adding this requires a known-good setup of shared libraries for
12070 # Sun compiler versions before 5.6, else PIC objects from an old
12071 # archive will be linked into the output, leading to subtle bugs.
12072 if test "$solaris_use_stlport4" != yes; then
12073 postdeps_CXX='-library=Cstd -library=Crun'
12080 case " $postdeps_CXX " in
12081 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12084 lt_prog_compiler_wl_CXX=
12085 lt_prog_compiler_pic_CXX=
12086 lt_prog_compiler_static_CXX=
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12091 # C++ specific cases for pic, static, wl, etc.
12092 if test "$GXX" = yes; then
12093 lt_prog_compiler_wl_CXX='-Wl,'
12094 lt_prog_compiler_static_CXX='-static'
12098 # All AIX code is PIC.
12099 if test "$host_cpu" = ia64; then
12100 # AIX 5 now supports IA64 processor
12101 lt_prog_compiler_static_CXX='-Bstatic'
12105 # FIXME: we need at least 68020 code to build shared libraries, but
12106 # adding the `-m68020' flag to GCC prevents building anything better,
12108 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12110 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12111 # PIC is the default for these OSes.
12113 mingw* | cygwin* | os2* | pw32*)
12114 # This hack is so that the source file can tell whether it is being
12115 # built for inclusion in a dll (and should export symbols for example).
12116 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12117 # (--disable-auto-import) libraries
12118 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12120 darwin* | rhapsody*)
12121 # PIC is the default on this platform
12122 # Common symbols not allowed in MH_DYLIB files
12123 lt_prog_compiler_pic_CXX='-fno-common'
12126 # DJGPP does not support shared libraries at all
12127 lt_prog_compiler_pic_CXX=
12130 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12131 # Instead, we relocate shared libraries at runtime.
12134 if test -d /usr/nec; then
12135 lt_prog_compiler_pic_CXX=-Kconform_pic
12139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12140 # not for PA HP-UX.
12145 lt_prog_compiler_pic_CXX='-fPIC'
12150 lt_prog_compiler_pic_CXX='-fPIC'
12156 # All AIX code is PIC.
12157 if test "$host_cpu" = ia64; then
12158 # AIX 5 now supports IA64 processor
12159 lt_prog_compiler_static_CXX='-Bstatic'
12161 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12165 case $cc_basename in
12167 # Green Hills C++ Compiler
12168 # _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"
12173 # PIC is the default on this platform
12174 # Common symbols not allowed in MH_DYLIB files
12175 case $cc_basename in
12177 lt_prog_compiler_pic_CXX='-qnocommon'
12178 lt_prog_compiler_wl_CXX='-Wl,'
12183 case $cc_basename in
12185 lt_prog_compiler_pic_CXX='-KPIC'
12188 # Green Hills C++ Compiler
12189 lt_prog_compiler_pic_CXX='-pic'
12195 freebsd* | dragonfly*)
12196 # FreeBSD uses GNU C++
12198 hpux9* | hpux10* | hpux11*)
12199 case $cc_basename in
12201 lt_prog_compiler_wl_CXX='-Wl,'
12202 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12203 if test "$host_cpu" != ia64; then
12204 lt_prog_compiler_pic_CXX='+Z'
12208 lt_prog_compiler_wl_CXX='-Wl,'
12209 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12215 lt_prog_compiler_pic_CXX='+Z'
12224 # This is c89, which is MS Visual C++ (no shared libs)
12225 # Anyone wants to do a port?
12227 irix5* | irix6* | nonstopux*)
12228 case $cc_basename in
12230 lt_prog_compiler_wl_CXX='-Wl,'
12231 lt_prog_compiler_static_CXX='-non_shared'
12232 # CC pic flag -KPIC is the default.
12238 linux* | k*bsd*-gnu)
12239 case $cc_basename in
12242 lt_prog_compiler_wl_CXX='--backend -Wl,'
12243 lt_prog_compiler_pic_CXX='-fPIC'
12247 lt_prog_compiler_wl_CXX='-Wl,'
12248 lt_prog_compiler_pic_CXX='-KPIC'
12249 lt_prog_compiler_static_CXX='-static'
12252 # Portland Group C++ compiler.
12253 lt_prog_compiler_wl_CXX='-Wl,'
12254 lt_prog_compiler_pic_CXX='-fpic'
12255 lt_prog_compiler_static_CXX='-Bstatic'
12259 # Make sure the PIC flag is empty. It appears that all Alpha
12260 # Linux and Compaq Tru64 Unix objects are PIC.
12261 lt_prog_compiler_pic_CXX=
12262 lt_prog_compiler_static_CXX='-non_shared'
12265 case `$CC -V 2>&1 | sed 5q` in
12268 lt_prog_compiler_pic_CXX='-KPIC'
12269 lt_prog_compiler_static_CXX='-Bstatic'
12270 lt_prog_compiler_wl_CXX='-Qoption ld '
12281 case $cc_basename in
12283 lt_prog_compiler_pic_CXX='-W c,exportall'
12289 netbsd* | netbsdelf*-gnu)
12291 osf3* | osf4* | osf5*)
12292 case $cc_basename in
12294 lt_prog_compiler_wl_CXX='--backend -Wl,'
12297 # Rational C++ 2.4.1
12298 lt_prog_compiler_pic_CXX='-pic'
12301 # Digital/Compaq C++
12302 lt_prog_compiler_wl_CXX='-Wl,'
12303 # Make sure the PIC flag is empty. It appears that all Alpha
12304 # Linux and Compaq Tru64 Unix objects are PIC.
12305 lt_prog_compiler_pic_CXX=
12306 lt_prog_compiler_static_CXX='-non_shared'
12315 case $cc_basename in
12317 # Sun C++ 4.2, 5.x and Centerline C++
12318 lt_prog_compiler_pic_CXX='-KPIC'
12319 lt_prog_compiler_static_CXX='-Bstatic'
12320 lt_prog_compiler_wl_CXX='-Qoption ld '
12323 # Green Hills C++ Compiler
12324 lt_prog_compiler_pic_CXX='-PIC'
12331 case $cc_basename in
12334 lt_prog_compiler_pic_CXX='-pic'
12335 lt_prog_compiler_static_CXX='-Bstatic'
12339 lt_prog_compiler_pic_CXX='-pic'
12346 case $cc_basename in
12348 # NonStop-UX NCC 3.20
12349 lt_prog_compiler_pic_CXX='-KPIC'
12355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12356 case $cc_basename in
12358 lt_prog_compiler_wl_CXX='-Wl,'
12359 lt_prog_compiler_pic_CXX='-KPIC'
12360 lt_prog_compiler_static_CXX='-Bstatic'
12367 lt_prog_compiler_can_build_shared_CXX=no
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12373 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12376 # Check to make sure the PIC flag actually works.
12378 if test -n "$lt_prog_compiler_pic_CXX"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12381 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12382 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12383 $as_echo_n "(cached) " >&6
12385 lt_cv_prog_compiler_pic_works_CXX=no
12386 ac_outfile=conftest.$ac_objext
12387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12388 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12389 # Insert the option either (1) after the last *FLAGS variable, or
12390 # (2) before a word containing "conftest.", or (3) at the end.
12391 # Note that $ac_compile itself does not contain backslashes and begins
12392 # with a dollar sign (not a hyphen), so the echo should work correctly.
12393 # The option is referenced via a variable to avoid confusing sed.
12394 lt_compile=`echo "$ac_compile" | $SED \
12395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12397 -e 's:$: $lt_compiler_flag:'`
12398 (eval echo "\"\$as_me:12394: $lt_compile\"" >&5)
12399 (eval "$lt_compile" 2>conftest.err)
12401 cat conftest.err >&5
12402 echo "$as_me:12398: \$? = $ac_status" >&5
12403 if (exit $ac_status) && test -s "$ac_outfile"; then
12404 # The compiler can only warn and ignore the option if not recognized
12405 # So say no if there are warnings other than the usual output.
12406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12409 lt_cv_prog_compiler_pic_works_CXX=yes
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12416 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12418 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12419 case $lt_prog_compiler_pic_CXX in
12421 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12424 lt_prog_compiler_pic_CXX=
12425 lt_prog_compiler_can_build_shared_CXX=no
12430 # For platforms which do not support PIC, -DPIC is meaningless:
12432 lt_prog_compiler_pic_CXX=
12435 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12440 # Check to make sure the static flag actually works.
12442 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12444 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12445 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12446 $as_echo_n "(cached) " >&6
12448 lt_cv_prog_compiler_static_works_CXX=no
12449 save_LDFLAGS="$LDFLAGS"
12450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12453 # The linker can only warn and ignore the option if not recognized
12454 # So say no if there are warnings
12455 if test -s conftest.err; then
12456 # Append any errors to the config.log.
12457 cat conftest.err 1>&5
12458 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12460 if diff conftest.exp conftest.er2 >/dev/null; then
12461 lt_cv_prog_compiler_static_works_CXX=yes
12464 lt_cv_prog_compiler_static_works_CXX=yes
12468 LDFLAGS="$save_LDFLAGS"
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12472 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12474 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12477 lt_prog_compiler_static_CXX=
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12482 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12483 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12484 $as_echo_n "(cached) " >&6
12486 lt_cv_prog_compiler_c_o_CXX=no
12487 $rm -r conftest 2>/dev/null
12491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12493 lt_compiler_flag="-o out/conftest2.$ac_objext"
12494 # Insert the option either (1) after the last *FLAGS variable, or
12495 # (2) before a word containing "conftest.", or (3) at the end.
12496 # Note that $ac_compile itself does not contain backslashes and begins
12497 # with a dollar sign (not a hyphen), so the echo should work correctly.
12498 lt_compile=`echo "$ac_compile" | $SED \
12499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12501 -e 's:$: $lt_compiler_flag:'`
12502 (eval echo "\"\$as_me:12498: $lt_compile\"" >&5)
12503 (eval "$lt_compile" 2>out/conftest.err)
12505 cat out/conftest.err >&5
12506 echo "$as_me:12502: \$? = $ac_status" >&5
12507 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12509 # The compiler can only warn and ignore the option if not recognized
12510 # So say no if there are warnings
12511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12514 lt_cv_prog_compiler_c_o_CXX=yes
12519 # SGI C++ compiler will create directory out/ii_files/ for
12520 # template instantiation
12521 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12522 $rm out/* && rmdir out
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12529 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12532 hard_links="nottested"
12533 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12534 # do not overwrite the value of need_locks provided by the user
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12536 $as_echo_n "checking if we can lock with hard links... " >&6; }
12539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12541 ln conftest.a conftest.b 2>&5 || hard_links=no
12542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12544 $as_echo "$hard_links" >&6; }
12545 if test "$hard_links" = no; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12547 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12555 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12560 # If we're using GNU nm, then we don't want the "-C" option.
12561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12562 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12563 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'
12565 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'
12569 export_symbols_cmds_CXX="$ltdll_cmds"
12572 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'
12574 linux* | k*bsd*-gnu)
12575 link_all_deplibs_CXX=no
12578 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12581 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12584 $as_echo "$ld_shlibs_CXX" >&6; }
12585 test "$ld_shlibs_CXX" = no && can_build_shared=no
12588 # Do we need to explicitly link libc?
12590 case "x$archive_cmds_need_lc_CXX" in
12592 # Assume -lc should be added
12593 archive_cmds_need_lc_CXX=yes
12595 if test "$enable_shared" = yes && test "$GCC" = yes; then
12596 case $archive_cmds_CXX in
12598 # FIXME: we may have to deal with multi-command sequences.
12601 # Test whether the compiler implicitly links with -lc since on some
12602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12603 # to ld, don't add -lc before -lgcc.
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12605 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12610 (eval $ac_compile) 2>&5
12612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12613 test $ac_status = 0; } 2>conftest.err; then
12616 libobjs=conftest.$ac_objext
12618 wl=$lt_prog_compiler_wl_CXX
12619 pic_flag=$lt_prog_compiler_pic_CXX
12625 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12626 allow_undefined_flag_CXX=
12627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12628 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12631 test $ac_status = 0; }
12633 archive_cmds_need_lc_CXX=no
12635 archive_cmds_need_lc_CXX=yes
12637 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12639 cat conftest.err 1>&5
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12643 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12651 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12652 library_names_spec=
12653 libname_spec='lib$name'
12657 postuninstall_cmds=
12661 shlibpath_overrides_runpath=unknown
12663 dynamic_linker="$host_os ld.so"
12664 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12666 need_lib_prefix=unknown
12667 hardcode_into_libs=no
12669 # when you set need_version to no, make sure it does not cause -set_version
12670 # flags to be left without arguments
12671 need_version=unknown
12676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12677 shlibpath_var=LIBPATH
12679 # AIX 3 has no versioning support, so we append a major version to the name.
12680 soname_spec='${libname}${release}${shared_ext}$major'
12687 hardcode_into_libs=yes
12688 if test "$host_cpu" = ia64; then
12689 # AIX 5 supports IA64
12690 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12691 shlibpath_var=LD_LIBRARY_PATH
12693 # With GCC up to 2.95.x, collect2 would create an import file
12694 # for dependence libraries. The import file would start with
12695 # the line `#! .'. This would cause the generated library to
12696 # depend on `.', always an invalid library. This was fixed in
12697 # development snapshots of GCC prior to 3.0.
12699 aix4 | aix4.[01] | aix4.[01].*)
12700 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12702 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12705 can_build_shared=no
12709 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12710 # soname into executable. Probably we can add versioning support to
12711 # collect2, so additional links can be useful in future.
12712 if test "$aix_use_runtimelinking" = yes; then
12713 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12714 # instead of lib<name>.a to let people know that these are not
12715 # typical AIX shared libraries.
12716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12718 # We preserve .a as extension for shared libraries through AIX4.2
12719 # and later when we are not doing run time linking.
12720 library_names_spec='${libname}${release}.a $libname.a'
12721 soname_spec='${libname}${release}${shared_ext}$major'
12723 shlibpath_var=LIBPATH
12728 library_names_spec='$libname.ixlibrary $libname.a'
12729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12730 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'
12734 library_names_spec='${libname}${shared_ext}'
12735 dynamic_linker="$host_os ld.so"
12736 shlibpath_var=LIBRARY_PATH
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12743 soname_spec='${libname}${release}${shared_ext}$major'
12744 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12747 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12748 # the default ld.so.conf also contains /usr/contrib/lib and
12749 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12750 # libtool to hard-code these into programs
12753 cygwin* | mingw* | pw32*)
12754 version_type=windows
12759 case $GCC,$host_os in
12760 yes,cygwin* | yes,mingw* | yes,pw32*)
12761 library_names_spec='$libname.dll.a'
12762 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12763 postinstall_cmds='base_file=`basename \${file}`~
12764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12765 dldir=$destdir/`dirname \$dlpath`~
12766 test -d \$dldir || mkdir -p \$dldir~
12767 $install_prog $dir/$dlname \$dldir/$dlname~
12768 chmod a+x \$dldir/$dlname'
12769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12770 dlpath=$dir/\$dldll~
12772 shlibpath_overrides_runpath=yes
12776 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12777 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12778 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12781 # MinGW DLLs use traditional 'lib' prefix
12782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12784 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12785 # It is most probably a Windows format PATH printed by
12786 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12787 # path with ; separators, and with drive letters. We can handle the
12788 # drive letters (cygwin fileutils understands them), so leave them,
12789 # especially as we might pass files found there to a mingw objdump,
12790 # which wouldn't understand a cygwinified path. Ahh.
12791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12797 # pw32 DLLs use 'pw' prefix rather than 'lib'
12798 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12804 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12807 dynamic_linker='Win32 ld.exe'
12808 # FIXME: first we should search . and the directory the executable is in
12812 darwin* | rhapsody*)
12813 dynamic_linker="$host_os dyld"
12814 version_type=darwin
12817 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12818 soname_spec='${libname}${release}${major}$shared_ext'
12819 shlibpath_overrides_runpath=yes
12820 shlibpath_var=DYLD_LIBRARY_PATH
12821 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12823 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 shlibpath_var=LD_LIBRARY_PATH
12839 freebsd* | dragonfly*)
12840 # DragonFly does not have aout. When/if they implement a new
12841 # versioning mechanism, adjust this.
12842 if test -x /usr/bin/objformat; then
12843 objformat=`/usr/bin/objformat`
12846 freebsd[123]*) objformat=aout ;;
12847 *) objformat=elf ;;
12850 version_type=freebsd-$objformat
12851 case $version_type in
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12862 shlibpath_var=LD_LIBRARY_PATH
12865 shlibpath_overrides_runpath=yes
12867 freebsd3.[01]* | freebsdelf3.[01]*)
12868 shlibpath_overrides_runpath=yes
12869 hardcode_into_libs=yes
12871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12873 shlibpath_overrides_runpath=no
12874 hardcode_into_libs=yes
12876 *) # from 4.6 on, and DragonFly
12877 shlibpath_overrides_runpath=yes
12878 hardcode_into_libs=yes
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 hardcode_into_libs=yes
12893 hpux9* | hpux10* | hpux11*)
12894 # Give a soname corresponding to the major version so that dld.sl refuses to
12895 # link against other versions.
12902 hardcode_into_libs=yes
12903 dynamic_linker="$host_os dld.so"
12904 shlibpath_var=LD_LIBRARY_PATH
12905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12907 soname_spec='${libname}${release}${shared_ext}$major'
12908 if test "X$HPUX_IA64_MODE" = X32; then
12909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12917 hardcode_into_libs=yes
12918 dynamic_linker="$host_os dld.sl"
12919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922 soname_spec='${libname}${release}${shared_ext}$major'
12923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12928 dynamic_linker="$host_os dld.sl"
12929 shlibpath_var=SHLIB_PATH
12930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12935 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12936 postinstall_cmds='chmod 555 $lib'
12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12944 soname_spec='${libname}${release}${shared_ext}$major'
12945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=no
12948 hardcode_into_libs=yes
12951 irix5* | irix6* | nonstopux*)
12953 nonstopux*) version_type=nonstopux ;;
12955 if test "$lt_cv_prog_gnu_ld" = yes; then
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12966 irix5* | nonstopux*)
12967 libsuff= shlibsuff=
12970 case $LD in # libtool.m4 will add one of these switches to LD
12971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12972 libsuff= shlibsuff= libmagic=32-bit;;
12973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12974 libsuff=32 shlibsuff=N32 libmagic=N32;;
12975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12976 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12977 *) libsuff= shlibsuff= libmagic=never-match;;
12981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12982 shlibpath_overrides_runpath=no
12983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12985 hardcode_into_libs=yes
12988 # No shared lib support for Linux oldld, aout, or coff.
12989 linux*oldld* | linux*aout* | linux*coff*)
12993 # This must be Linux ELF.
12994 linux* | k*bsd*-gnu)
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999 soname_spec='${libname}${release}${shared_ext}$major'
13000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 shlibpath_overrides_runpath=no
13003 # This implies no fast_install, which is unacceptable.
13004 # Some rework will be needed to allow for fast_install
13005 # before this can be enabled.
13006 hardcode_into_libs=yes
13008 # Append ld.so.conf contents to the search path
13009 if test -f /etc/ld.so.conf; then
13010 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' ' '`
13011 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13014 # We used to test for /lib/ld.so.1 and disable shared libraries on
13015 # powerpc, because MkLinux only supported shared libraries with the
13016 # GNU dynamic linker. Since this was broken with cross compilers,
13017 # most powerpc-linux boxes support dynamic linking these days and
13018 # people can always --disable-shared, the test was removed, and we
13019 # assume the GNU/Linux dynamic linker is in use.
13020 dynamic_linker='GNU/Linux ld.so'
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 shlibpath_overrides_runpath=no
13031 hardcode_into_libs=yes
13032 dynamic_linker='NetBSD ld.elf_so'
13039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13042 dynamic_linker='NetBSD (a.out) ld.so'
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 dynamic_linker='NetBSD ld.elf_so'
13048 shlibpath_var=LD_LIBRARY_PATH
13049 shlibpath_overrides_runpath=yes
13050 hardcode_into_libs=yes
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056 shlibpath_var=LD_LIBRARY_PATH
13057 shlibpath_overrides_runpath=yes
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 shlibpath_overrides_runpath=yes
13072 sys_lib_dlsearch_path_spec="/usr/lib"
13074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13077 *) need_version=no ;;
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13084 openbsd2.[89] | openbsd2.[89].*)
13085 shlibpath_overrides_runpath=no
13088 shlibpath_overrides_runpath=yes
13092 shlibpath_overrides_runpath=yes
13097 libname_spec='$name'
13100 library_names_spec='$libname${shared_ext} $libname.a'
13101 dynamic_linker='OS/2 ld.exe'
13102 shlibpath_var=LIBPATH
13105 osf3* | osf4* | osf5*)
13109 soname_spec='${libname}${release}${shared_ext}$major'
13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111 shlibpath_var=LD_LIBRARY_PATH
13112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13125 soname_spec='${libname}${release}${shared_ext}$major'
13126 shlibpath_var=LD_LIBRARY_PATH
13127 shlibpath_overrides_runpath=yes
13128 hardcode_into_libs=yes
13129 # ldd complains unless libraries are executable
13130 postinstall_cmds='chmod +x $lib'
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 shlibpath_overrides_runpath=yes
13139 if test "$with_gnu_ld" = yes; then
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148 soname_spec='${libname}${release}${shared_ext}$major'
13149 shlibpath_var=LD_LIBRARY_PATH
13150 case $host_vendor in
13152 shlibpath_overrides_runpath=no
13154 export_dynamic_flag_spec='${wl}-Blargedynsym'
13155 runpath_var=LD_RUN_PATH
13163 shlibpath_overrides_runpath=no
13164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13170 if test -d /usr/nec ;then
13172 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13173 soname_spec='$libname${shared_ext}.$major'
13174 shlibpath_var=LD_LIBRARY_PATH
13178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13179 version_type=freebsd-elf
13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13183 soname_spec='${libname}${release}${shared_ext}$major'
13184 shlibpath_var=LD_LIBRARY_PATH
13185 hardcode_into_libs=yes
13186 if test "$with_gnu_ld" = yes; then
13187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13188 shlibpath_overrides_runpath=no
13190 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13191 shlibpath_overrides_runpath=yes
13194 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13198 sys_lib_dlsearch_path_spec='/usr/lib'
13203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13204 soname_spec='${libname}${release}${shared_ext}$major'
13205 shlibpath_var=LD_LIBRARY_PATH
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13213 $as_echo "$dynamic_linker" >&6; }
13214 test "$dynamic_linker" = no && can_build_shared=no
13216 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13217 $as_echo_n "(cached) " >&6
13219 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13222 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13223 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13224 $as_echo_n "(cached) " >&6
13226 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13229 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13232 if test "$GCC" = yes; then
13233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13237 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13238 hardcode_action_CXX=
13239 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13240 test -n "$runpath_var_CXX" || \
13241 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13243 # We can hardcode non-existant directories.
13244 if test "$hardcode_direct_CXX" != no &&
13245 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13246 # have to relink, otherwise we might link with an installed library
13247 # when we should be linking with a yet-to-be-installed one
13248 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13249 test "$hardcode_minus_L_CXX" != no; then
13250 # Linking always hardcodes the temporary library directory.
13251 hardcode_action_CXX=relink
13253 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13254 hardcode_action_CXX=immediate
13257 # We cannot hardcode anything, or else we can only hardcode existing
13259 hardcode_action_CXX=unsupported
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13262 $as_echo "$hardcode_action_CXX" >&6; }
13264 if test "$hardcode_action_CXX" = relink; then
13265 # Fast installation is not supported
13266 enable_fast_install=no
13267 elif test "$shlibpath_overrides_runpath" = yes ||
13268 test "$enable_shared" = no; then
13269 # Fast installation is not necessary
13270 enable_fast_install=needless
13274 # The else clause should only fire when bootstrapping the
13275 # libtool distribution, otherwise you forgot to ship ltmain.sh
13276 # with your package, and you will get complaints that there are
13277 # no rules to generate ltmain.sh.
13278 if test -f "$ltmain"; then
13279 # See if we are running on zsh, and set the options which allow our commands through
13280 # without removal of \ escapes.
13281 if test -n "${ZSH_VERSION+set}" ; then
13282 setopt NO_GLOB_SUBST
13284 # Now quote all the things that may contain metacharacters while being
13285 # careful not to overquote the AC_SUBSTed values. We take copies of the
13286 # variables and quote the copies for generation of the libtool script.
13287 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13289 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13290 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13291 deplibs_check_method reload_flag reload_cmds need_locks \
13292 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13293 lt_cv_sys_global_symbol_to_c_name_address \
13294 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13295 old_postinstall_cmds old_postuninstall_cmds \
13299 lt_prog_compiler_wl_CXX \
13300 lt_prog_compiler_pic_CXX \
13301 lt_prog_compiler_static_CXX \
13302 lt_prog_compiler_no_builtin_flag_CXX \
13303 export_dynamic_flag_spec_CXX \
13304 thread_safe_flag_spec_CXX \
13305 whole_archive_flag_spec_CXX \
13306 enable_shared_with_static_runtimes_CXX \
13307 old_archive_cmds_CXX \
13308 old_archive_from_new_cmds_CXX \
13309 predep_objects_CXX \
13310 postdep_objects_CXX \
13313 compiler_lib_search_path_CXX \
13314 compiler_lib_search_dirs_CXX \
13316 archive_expsym_cmds_CXX \
13317 postinstall_cmds_CXX \
13318 postuninstall_cmds_CXX \
13319 old_archive_from_expsyms_cmds_CXX \
13320 allow_undefined_flag_CXX \
13321 no_undefined_flag_CXX \
13322 export_symbols_cmds_CXX \
13323 hardcode_libdir_flag_spec_CXX \
13324 hardcode_libdir_flag_spec_ld_CXX \
13325 hardcode_libdir_separator_CXX \
13326 hardcode_automatic_CXX \
13328 module_expsym_cmds_CXX \
13329 lt_cv_prog_compiler_c_o_CXX \
13330 fix_srcfile_path_CXX \
13331 exclude_expsyms_CXX \
13332 include_expsyms_CXX; do
13335 old_archive_cmds_CXX | \
13336 old_archive_from_new_cmds_CXX | \
13337 archive_cmds_CXX | \
13338 archive_expsym_cmds_CXX | \
13339 module_cmds_CXX | \
13340 module_expsym_cmds_CXX | \
13341 old_archive_from_expsyms_cmds_CXX | \
13342 export_symbols_cmds_CXX | \
13343 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13344 postinstall_cmds | postuninstall_cmds | \
13345 old_postinstall_cmds | old_postuninstall_cmds | \
13346 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13347 # Double-quote double-evaled strings.
13348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13357 *'\$0 --fallback-echo"')
13358 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13364 cat <<__EOF__ >> "$cfgfile"
13365 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13367 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13369 # Shell to use when invoking shell scripts.
13372 # Whether or not to build shared libraries.
13373 build_libtool_libs=$enable_shared
13375 # Whether or not to build static libraries.
13376 build_old_libs=$enable_static
13378 # Whether or not to add -lc for building shared libraries.
13379 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13381 # Whether or not to disallow shared libs when runtime libs are static
13382 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13384 # Whether or not to optimize for fast installation.
13385 fast_install=$enable_fast_install
13388 host_alias=$host_alias
13392 # The build system.
13393 build_alias=$build_alias
13397 # An echo program that does not interpret backslashes.
13402 AR_FLAGS=$lt_AR_FLAGS
13407 # LTCC compiler flags.
13408 LTCFLAGS=$lt_LTCFLAGS
13410 # A language-specific compiler.
13411 CC=$lt_compiler_CXX
13413 # Is the compiler the GNU C compiler?
13419 # The linker used to build libraries.
13422 # Whether we need hard or soft links.
13425 # A BSD-compatible nm program.
13428 # A symbol stripping program
13431 # Used to examine libraries when file_magic_cmd begins "file"
13432 MAGIC_CMD=$MAGIC_CMD
13434 # Used on cygwin: DLL creation program.
13437 # Used on cygwin: object dumper.
13440 # Used on cygwin: assembler.
13443 # The name of the directory that contains temporary libtool files.
13446 # How to create reloadable object files.
13447 reload_flag=$lt_reload_flag
13448 reload_cmds=$lt_reload_cmds
13450 # How to pass a linker flag through the compiler.
13451 wl=$lt_lt_prog_compiler_wl_CXX
13453 # Object file suffix (normally "o").
13454 objext="$ac_objext"
13456 # Old archive suffix (normally "a").
13459 # Shared library suffix (normally ".so").
13460 shrext_cmds='$shrext_cmds'
13462 # Executable file suffix (normally "").
13465 # Additional compiler flags for building library objects.
13466 pic_flag=$lt_lt_prog_compiler_pic_CXX
13469 # What is the maximum length of a command?
13470 max_cmd_len=$lt_cv_sys_max_cmd_len
13472 # Does compiler simultaneously support -c and -o options?
13473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13475 # Must we lock files when doing compilation?
13476 need_locks=$lt_need_locks
13478 # Do we need the lib prefix for modules?
13479 need_lib_prefix=$need_lib_prefix
13481 # Do we need a version for libraries?
13482 need_version=$need_version
13484 # Whether dlopen is supported.
13485 dlopen_support=$enable_dlopen
13487 # Whether dlopen of programs is supported.
13488 dlopen_self=$enable_dlopen_self
13490 # Whether dlopen of statically linked programs is supported.
13491 dlopen_self_static=$enable_dlopen_self_static
13493 # Compiler flag to prevent dynamic linking.
13494 link_static_flag=$lt_lt_prog_compiler_static_CXX
13496 # Compiler flag to turn off builtin functions.
13497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13499 # Compiler flag to allow reflexive dlopens.
13500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13502 # Compiler flag to generate shared objects directly from archives.
13503 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13505 # Compiler flag to generate thread-safe objects.
13506 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13508 # Library versioning type.
13509 version_type=$version_type
13511 # Format of library name prefix.
13512 libname_spec=$lt_libname_spec
13514 # List of archive names. First name is the real one, the rest are links.
13515 # The last name is the one that the linker finds with -lNAME.
13516 library_names_spec=$lt_library_names_spec
13518 # The coded name of the library, if different from the real name.
13519 soname_spec=$lt_soname_spec
13521 # Commands used to build and install an old-style archive.
13523 old_archive_cmds=$lt_old_archive_cmds_CXX
13524 old_postinstall_cmds=$lt_old_postinstall_cmds
13525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13527 # Create an old-style archive from a shared archive.
13528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13530 # Create a temporary old-style archive to link instead of a shared archive.
13531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13533 # Commands used to build and install a shared archive.
13534 archive_cmds=$lt_archive_cmds_CXX
13535 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13536 postinstall_cmds=$lt_postinstall_cmds
13537 postuninstall_cmds=$lt_postuninstall_cmds
13539 # Commands used to build a loadable module (assumed same as above if empty)
13540 module_cmds=$lt_module_cmds_CXX
13541 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13543 # Commands to strip libraries.
13544 old_striplib=$lt_old_striplib
13545 striplib=$lt_striplib
13547 # Dependencies to place before the objects being linked to create a
13549 predep_objects=$lt_predep_objects_CXX
13551 # Dependencies to place after the objects being linked to create a
13553 postdep_objects=$lt_postdep_objects_CXX
13555 # Dependencies to place before the objects being linked to create a
13557 predeps=$lt_predeps_CXX
13559 # Dependencies to place after the objects being linked to create a
13561 postdeps=$lt_postdeps_CXX
13563 # The directories searched by this compiler when creating a shared
13565 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13567 # The library search path used internally by the compiler when linking
13568 # a shared library.
13569 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13571 # Method to check whether dependent libraries are shared objects.
13572 deplibs_check_method=$lt_deplibs_check_method
13574 # Command to use when deplibs_check_method == file_magic.
13575 file_magic_cmd=$lt_file_magic_cmd
13577 # Flag that allows shared libraries with undefined symbols to be built.
13578 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13580 # Flag that forces no undefined symbols.
13581 no_undefined_flag=$lt_no_undefined_flag_CXX
13583 # Commands used to finish a libtool library installation in a directory.
13584 finish_cmds=$lt_finish_cmds
13586 # Same as above, but a single script fragment to be evaled but not shown.
13587 finish_eval=$lt_finish_eval
13589 # Take the output of nm and produce a listing of raw symbols and C names.
13590 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13592 # Transform the output of nm in a proper C declaration
13593 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13595 # Transform the output of nm in a C name address pair
13596 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13598 # This is the shared library runtime path variable.
13599 runpath_var=$runpath_var
13601 # This is the shared library path variable.
13602 shlibpath_var=$shlibpath_var
13604 # Is shlibpath searched before the hard-coded library search path?
13605 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13607 # How to hardcode a shared library path into an executable.
13608 hardcode_action=$hardcode_action_CXX
13610 # Whether we should hardcode library paths into libraries.
13611 hardcode_into_libs=$hardcode_into_libs
13613 # Flag to hardcode \$libdir into a binary during linking.
13614 # This must work even if \$libdir does not exist.
13615 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13617 # If ld is used when linking, flag to hardcode \$libdir into
13618 # a binary during linking. This must work even if \$libdir does
13620 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13622 # Whether we need a single -rpath flag with a separated argument.
13623 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13625 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13626 # resulting binary.
13627 hardcode_direct=$hardcode_direct_CXX
13629 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13630 # resulting binary.
13631 hardcode_minus_L=$hardcode_minus_L_CXX
13633 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13634 # the resulting binary.
13635 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13637 # Set to yes if building a shared library automatically hardcodes DIR into the library
13638 # and all subsequent libraries and executables linked against it.
13639 hardcode_automatic=$hardcode_automatic_CXX
13641 # Variables whose values should be saved in libtool wrapper scripts and
13642 # restored at relink time.
13643 variables_saved_for_relink="$variables_saved_for_relink"
13645 # Whether libtool must link a program against all its dependency libraries.
13646 link_all_deplibs=$link_all_deplibs_CXX
13648 # Compile-time system search path for libraries
13649 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13651 # Run-time system search path for libraries
13652 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13654 # Fix the shell variable \$srcfile for the compiler.
13655 fix_srcfile_path=$lt_fix_srcfile_path
13657 # Set to yes if exported symbols are required.
13658 always_export_symbols=$always_export_symbols_CXX
13660 # The commands to list exported symbols.
13661 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13663 # The commands to extract the exported symbol list from a shared archive.
13664 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13666 # Symbols that should not be listed in the preloaded symbols.
13667 exclude_expsyms=$lt_exclude_expsyms_CXX
13669 # Symbols that must always be exported.
13670 include_expsyms=$lt_include_expsyms_CXX
13672 # ### END LIBTOOL TAG CONFIG: $tagname
13678 # If there is no Makefile yet, we rely on a make rule to execute
13679 # `config.status --recheck' to rerun these tests and create the
13680 # libtool script then.
13681 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13682 if test -f "$ltmain_in"; then
13683 test -f Makefile && make "$ltmain"
13689 ac_cpp='$CPP $CPPFLAGS'
13690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13698 with_gnu_ldcxx=$with_gnu_ld
13699 with_gnu_ld=$lt_save_with_gnu_ld
13700 lt_cv_path_LDCXX=$lt_cv_path_LD
13701 lt_cv_path_LD=$lt_save_path_LD
13702 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13703 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13711 if test -n "$F77" && test "X$F77" != "Xno"; then
13714 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13715 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13716 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13719 archive_cmds_need_lc_F77=no
13720 allow_undefined_flag_F77=
13721 always_export_symbols_F77=no
13722 archive_expsym_cmds_F77=
13723 export_dynamic_flag_spec_F77=
13724 hardcode_direct_F77=no
13725 hardcode_libdir_flag_spec_F77=
13726 hardcode_libdir_flag_spec_ld_F77=
13727 hardcode_libdir_separator_F77=
13728 hardcode_minus_L_F77=no
13729 hardcode_automatic_F77=no
13731 module_expsym_cmds_F77=
13732 link_all_deplibs_F77=unknown
13733 old_archive_cmds_F77=$old_archive_cmds
13734 no_undefined_flag_F77=
13735 whole_archive_flag_spec_F77=
13736 enable_shared_with_static_runtimes_F77=no
13738 # Source file extension for f77 test sources.
13741 # Object file extension for compiled f77 test sources.
13745 # Code to be used in simple compile tests
13746 lt_simple_compile_test_code="\
13752 # Code to be used in simple link tests
13753 lt_simple_link_test_code="\
13758 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13760 # If no C compiler was specified, use CC.
13763 # If no C compiler flags were specified, use CFLAGS.
13764 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13766 # Allow CC to be a program name with arguments.
13770 # save warnings/boilerplate of simple test code
13771 ac_outfile=conftest.$ac_objext
13772 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13773 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13774 _lt_compiler_boilerplate=`cat conftest.err`
13777 ac_outfile=conftest.$ac_objext
13778 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13779 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13780 _lt_linker_boilerplate=`cat conftest.err`
13784 # Allow CC to be a program name with arguments.
13789 for cc_temp in $compiler""; do
13791 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13792 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13797 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13801 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13803 $as_echo "$can_build_shared" >&6; }
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13806 $as_echo_n "checking whether to build shared libraries... " >&6; }
13807 test "$can_build_shared" = "no" && enable_shared=no
13809 # On AIX, shared libraries and static libraries use the same namespace, and
13810 # are all built from PIC.
13813 test "$enable_shared" = yes && enable_static=no
13814 if test -n "$RANLIB"; then
13815 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13816 postinstall_cmds='$RANLIB $lib'
13820 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13821 test "$enable_shared" = yes && enable_static=no
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13826 $as_echo "$enable_shared" >&6; }
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13829 $as_echo_n "checking whether to build static libraries... " >&6; }
13830 # Make sure either enable_shared or enable_static is yes.
13831 test "$enable_shared" = yes || enable_static=yes
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13833 $as_echo "$enable_static" >&6; }
13838 lt_prog_compiler_wl_F77=
13839 lt_prog_compiler_pic_F77=
13840 lt_prog_compiler_static_F77=
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13843 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13845 if test "$GCC" = yes; then
13846 lt_prog_compiler_wl_F77='-Wl,'
13847 lt_prog_compiler_static_F77='-static'
13851 # All AIX code is PIC.
13852 if test "$host_cpu" = ia64; then
13853 # AIX 5 now supports IA64 processor
13854 lt_prog_compiler_static_F77='-Bstatic'
13859 # FIXME: we need at least 68020 code to build shared libraries, but
13860 # adding the `-m68020' flag to GCC prevents building anything better,
13862 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13866 # PIC is the default for these OSes.
13869 mingw* | cygwin* | pw32* | os2*)
13870 # This hack is so that the source file can tell whether it is being
13871 # built for inclusion in a dll (and should export symbols for example).
13872 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13873 # (--disable-auto-import) libraries
13874 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13877 darwin* | rhapsody*)
13878 # PIC is the default on this platform
13879 # Common symbols not allowed in MH_DYLIB files
13880 lt_prog_compiler_pic_F77='-fno-common'
13884 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13885 # Instead, we relocate shared libraries at runtime.
13889 # Just because we use GCC doesn't mean we suddenly get shared libraries
13890 # on systems that don't support them.
13891 lt_prog_compiler_can_build_shared_F77=no
13896 if test -d /usr/nec; then
13897 lt_prog_compiler_pic_F77=-Kconform_pic
13902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13903 # not for PA HP-UX.
13909 lt_prog_compiler_pic_F77='-fPIC'
13915 lt_prog_compiler_pic_F77='-fPIC'
13919 # PORTME Check for flag to pass linker flags through the system compiler.
13922 lt_prog_compiler_wl_F77='-Wl,'
13923 if test "$host_cpu" = ia64; then
13924 # AIX 5 now supports IA64 processor
13925 lt_prog_compiler_static_F77='-Bstatic'
13927 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13931 # PIC is the default on this platform
13932 # Common symbols not allowed in MH_DYLIB files
13933 case $cc_basename in
13935 lt_prog_compiler_pic_F77='-qnocommon'
13936 lt_prog_compiler_wl_F77='-Wl,'
13941 mingw* | cygwin* | pw32* | os2*)
13942 # This hack is so that the source file can tell whether it is being
13943 # built for inclusion in a dll (and should export symbols for example).
13944 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13947 hpux9* | hpux10* | hpux11*)
13948 lt_prog_compiler_wl_F77='-Wl,'
13949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13950 # not for PA HP-UX.
13956 lt_prog_compiler_pic_F77='+Z'
13959 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13960 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13963 irix5* | irix6* | nonstopux*)
13964 lt_prog_compiler_wl_F77='-Wl,'
13965 # PIC (with -KPIC) is the default.
13966 lt_prog_compiler_static_F77='-non_shared'
13970 lt_prog_compiler_pic_F77='-KPIC'
13971 lt_prog_compiler_static_F77='-Bstatic'
13974 linux* | k*bsd*-gnu)
13975 case $cc_basename in
13977 lt_prog_compiler_wl_F77='-Wl,'
13978 lt_prog_compiler_pic_F77='-KPIC'
13979 lt_prog_compiler_static_F77='-static'
13981 pgcc* | pgf77* | pgf90* | pgf95*)
13982 # Portland Group compilers (*not* the Pentium gcc compiler,
13983 # which looks to be a dead project)
13984 lt_prog_compiler_wl_F77='-Wl,'
13985 lt_prog_compiler_pic_F77='-fpic'
13986 lt_prog_compiler_static_F77='-Bstatic'
13989 lt_prog_compiler_wl_F77='-Wl,'
13990 # All Alpha code is PIC.
13991 lt_prog_compiler_static_F77='-non_shared'
13994 case `$CC -V 2>&1 | sed 5q` in
13997 lt_prog_compiler_pic_F77='-KPIC'
13998 lt_prog_compiler_static_F77='-Bstatic'
13999 lt_prog_compiler_wl_F77='-Wl,'
14002 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14003 lt_prog_compiler_pic_F77='-KPIC'
14004 lt_prog_compiler_static_F77='-Bstatic'
14005 lt_prog_compiler_wl_F77=''
14012 osf3* | osf4* | osf5*)
14013 lt_prog_compiler_wl_F77='-Wl,'
14014 # All OSF/1 code is PIC.
14015 lt_prog_compiler_static_F77='-non_shared'
14019 lt_prog_compiler_static_F77='-non_shared'
14023 lt_prog_compiler_pic_F77='-KPIC'
14024 lt_prog_compiler_static_F77='-Bstatic'
14025 case $cc_basename in
14026 f77* | f90* | f95*)
14027 lt_prog_compiler_wl_F77='-Qoption ld ';;
14029 lt_prog_compiler_wl_F77='-Wl,';;
14034 lt_prog_compiler_wl_F77='-Qoption ld '
14035 lt_prog_compiler_pic_F77='-PIC'
14036 lt_prog_compiler_static_F77='-Bstatic'
14039 sysv4 | sysv4.2uw2* | sysv4.3*)
14040 lt_prog_compiler_wl_F77='-Wl,'
14041 lt_prog_compiler_pic_F77='-KPIC'
14042 lt_prog_compiler_static_F77='-Bstatic'
14046 if test -d /usr/nec ;then
14047 lt_prog_compiler_pic_F77='-Kconform_pic'
14048 lt_prog_compiler_static_F77='-Bstatic'
14052 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14053 lt_prog_compiler_wl_F77='-Wl,'
14054 lt_prog_compiler_pic_F77='-KPIC'
14055 lt_prog_compiler_static_F77='-Bstatic'
14059 lt_prog_compiler_wl_F77='-Wl,'
14060 lt_prog_compiler_can_build_shared_F77=no
14064 lt_prog_compiler_pic_F77='-pic'
14065 lt_prog_compiler_static_F77='-Bstatic'
14069 lt_prog_compiler_can_build_shared_F77=no
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14075 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14078 # Check to make sure the PIC flag actually works.
14080 if test -n "$lt_prog_compiler_pic_F77"; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14083 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14084 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14085 $as_echo_n "(cached) " >&6
14087 lt_cv_prog_compiler_pic_works_F77=no
14088 ac_outfile=conftest.$ac_objext
14089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14090 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14091 # Insert the option either (1) after the last *FLAGS variable, or
14092 # (2) before a word containing "conftest.", or (3) at the end.
14093 # Note that $ac_compile itself does not contain backslashes and begins
14094 # with a dollar sign (not a hyphen), so the echo should work correctly.
14095 # The option is referenced via a variable to avoid confusing sed.
14096 lt_compile=`echo "$ac_compile" | $SED \
14097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14099 -e 's:$: $lt_compiler_flag:'`
14100 (eval echo "\"\$as_me:14096: $lt_compile\"" >&5)
14101 (eval "$lt_compile" 2>conftest.err)
14103 cat conftest.err >&5
14104 echo "$as_me:14100: \$? = $ac_status" >&5
14105 if (exit $ac_status) && test -s "$ac_outfile"; then
14106 # The compiler can only warn and ignore the option if not recognized
14107 # So say no if there are warnings other than the usual output.
14108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14111 lt_cv_prog_compiler_pic_works_F77=yes
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14118 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14120 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14121 case $lt_prog_compiler_pic_F77 in
14123 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14126 lt_prog_compiler_pic_F77=
14127 lt_prog_compiler_can_build_shared_F77=no
14132 # For platforms which do not support PIC, -DPIC is meaningless:
14134 lt_prog_compiler_pic_F77=
14137 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14142 # Check to make sure the static flag actually works.
14144 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14146 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14147 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14148 $as_echo_n "(cached) " >&6
14150 lt_cv_prog_compiler_static_works_F77=no
14151 save_LDFLAGS="$LDFLAGS"
14152 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14153 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14155 # The linker can only warn and ignore the option if not recognized
14156 # So say no if there are warnings
14157 if test -s conftest.err; then
14158 # Append any errors to the config.log.
14159 cat conftest.err 1>&5
14160 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14162 if diff conftest.exp conftest.er2 >/dev/null; then
14163 lt_cv_prog_compiler_static_works_F77=yes
14166 lt_cv_prog_compiler_static_works_F77=yes
14170 LDFLAGS="$save_LDFLAGS"
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14174 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14176 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14179 lt_prog_compiler_static_F77=
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14185 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14186 $as_echo_n "(cached) " >&6
14188 lt_cv_prog_compiler_c_o_F77=no
14189 $rm -r conftest 2>/dev/null
14193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14195 lt_compiler_flag="-o out/conftest2.$ac_objext"
14196 # Insert the option either (1) after the last *FLAGS variable, or
14197 # (2) before a word containing "conftest.", or (3) at the end.
14198 # Note that $ac_compile itself does not contain backslashes and begins
14199 # with a dollar sign (not a hyphen), so the echo should work correctly.
14200 lt_compile=`echo "$ac_compile" | $SED \
14201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14203 -e 's:$: $lt_compiler_flag:'`
14204 (eval echo "\"\$as_me:14200: $lt_compile\"" >&5)
14205 (eval "$lt_compile" 2>out/conftest.err)
14207 cat out/conftest.err >&5
14208 echo "$as_me:14204: \$? = $ac_status" >&5
14209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14211 # The compiler can only warn and ignore the option if not recognized
14212 # So say no if there are warnings
14213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14216 lt_cv_prog_compiler_c_o_F77=yes
14221 # SGI C++ compiler will create directory out/ii_files/ for
14222 # template instantiation
14223 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14224 $rm out/* && rmdir out
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14231 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14234 hard_links="nottested"
14235 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14236 # do not overwrite the value of need_locks provided by the user
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14238 $as_echo_n "checking if we can lock with hard links... " >&6; }
14241 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14243 ln conftest.a conftest.b 2>&5 || hard_links=no
14244 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14246 $as_echo "$hard_links" >&6; }
14247 if test "$hard_links" = no; then
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14249 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14257 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14260 allow_undefined_flag_F77=
14261 enable_shared_with_static_runtimes_F77=no
14263 archive_expsym_cmds_F77=
14264 old_archive_From_new_cmds_F77=
14265 old_archive_from_expsyms_cmds_F77=
14266 export_dynamic_flag_spec_F77=
14267 whole_archive_flag_spec_F77=
14268 thread_safe_flag_spec_F77=
14269 hardcode_libdir_flag_spec_F77=
14270 hardcode_libdir_flag_spec_ld_F77=
14271 hardcode_libdir_separator_F77=
14272 hardcode_direct_F77=no
14273 hardcode_minus_L_F77=no
14274 hardcode_shlibpath_var_F77=unsupported
14275 link_all_deplibs_F77=unknown
14276 hardcode_automatic_F77=no
14278 module_expsym_cmds_F77=
14279 always_export_symbols_F77=no
14280 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14281 # include_expsyms should be a list of space-separated symbols to be *always*
14282 # included in the symbol list
14283 include_expsyms_F77=
14284 # exclude_expsyms can be an extended regexp of symbols to exclude
14285 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14286 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14287 # as well as any symbol that contains `d'.
14288 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14289 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14290 # platforms (ab)use it in PIC code, but their linkers get confused if
14291 # the symbol is explicitly referenced. Since portable code cannot
14292 # rely on this symbol name, it's probably fine to never include it in
14293 # preloaded symbol tables.
14294 # Exclude shared library initialization/finalization symbols.
14295 extract_expsyms_cmds=
14296 # Just being paranoid about ensuring that cc_basename is set.
14297 for cc_temp in $compiler""; do
14299 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14300 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14305 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14308 cygwin* | mingw* | pw32*)
14309 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14310 # When not using gcc, we currently assume that we are using
14311 # Microsoft Visual C++.
14312 if test "$GCC" != yes; then
14317 # we just hope/assume this is gcc and not c89 (= MSVC++)
14326 if test "$with_gnu_ld" = yes; then
14327 # If archive_cmds runs LD, not CC, wlarc should be empty
14330 # Set some defaults for GNU ld with shared library support. These
14331 # are reset later if shared libraries are not supported. Putting them
14332 # here allows them to be overridden if necessary.
14333 runpath_var=LD_RUN_PATH
14334 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14335 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14336 # ancient GNU ld didn't support --whole-archive et. al.
14337 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14338 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14340 whole_archive_flag_spec_F77=
14342 supports_anon_versioning=no
14343 case `$LD -v 2>/dev/null` in
14344 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14345 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14346 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14347 *\ 2.11.*) ;; # other 2.11 versions
14348 *) supports_anon_versioning=yes ;;
14351 # See if GNU ld supports shared libraries.
14354 # On AIX/PPC, the GNU linker is very broken
14355 if test "$host_cpu" != ia64; then
14359 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14360 *** to be unable to reliably create shared libraries on AIX.
14361 *** Therefore, libtool is disabling shared libraries support. If you
14362 *** really care for shared libraries, you may want to modify your PATH
14363 *** so that a non-GNU linker is found, and then restart.
14370 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)'
14371 hardcode_libdir_flag_spec_F77='-L$libdir'
14372 hardcode_minus_L_F77=yes
14374 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14375 # that the semantics of dynamic libraries on AmigaOS, at least up
14376 # to version 4, is to share data among multiple programs linked
14377 # with the same dynamic library. Since this doesn't match the
14378 # behavior of shared libraries on other platforms, we can't use
14384 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14385 allow_undefined_flag_F77=unsupported
14386 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14387 # support --undefined. This deserves some investigation. FIXME
14388 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14394 cygwin* | mingw* | pw32*)
14395 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14396 # as there is no search path for DLLs.
14397 hardcode_libdir_flag_spec_F77='-L$libdir'
14398 allow_undefined_flag_F77=unsupported
14399 always_export_symbols_F77=no
14400 enable_shared_with_static_runtimes_F77=yes
14401 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14403 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14404 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14405 # If the export-symbols file already is a .def file (1st line
14406 # is EXPORTS), use it as is; otherwise, prepend...
14407 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14408 cp $export_symbols $output_objdir/$soname.def;
14410 echo EXPORTS > $output_objdir/$soname.def;
14411 cat $export_symbols >> $output_objdir/$soname.def;
14413 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14420 hardcode_direct_F77=no
14421 hardcode_shlibpath_var_F77=no
14422 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14423 export_dynamic_flag_spec_F77='${wl}-E'
14424 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14425 # Instead, shared libraries are loaded at an image base (0x10000000 by
14426 # default) and relocated if they conflict, which is a slow very memory
14427 # consuming and fragmenting process. To avoid this, we pick a random,
14428 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14429 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14430 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'
14431 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'
14434 gnu* | linux* | k*bsd*-gnu)
14435 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14437 case $cc_basename,$host_cpu in
14438 pgcc*) # Portland Group C compiler
14439 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'
14440 tmp_addflag=' $pic_flag'
14442 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14443 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'
14444 tmp_addflag=' $pic_flag -Mnomain' ;;
14445 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14446 tmp_addflag=' -i_dynamic' ;;
14447 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14448 tmp_addflag=' -i_dynamic -nofor_main' ;;
14449 ifc* | ifort*) # Intel Fortran compiler
14450 tmp_addflag=' -nofor_main' ;;
14452 case `$CC -V 2>&1 | sed 5q` in
14453 *Sun\ C*) # Sun C 5.9
14454 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'
14455 tmp_sharedflag='-G' ;;
14456 *Sun\ F*) # Sun Fortran 8.3
14457 tmp_sharedflag='-G' ;;
14459 tmp_sharedflag='-shared' ;;
14461 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14463 if test $supports_anon_versioning = yes; then
14464 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14466 $echo "local: *; };" >> $output_objdir/$libname.ver~
14467 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14469 link_all_deplibs_F77=no
14475 netbsd* | netbsdelf*-gnu)
14476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14477 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14480 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14486 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14490 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14491 *** create shared libraries on Solaris systems. Therefore, libtool
14492 *** is disabling shared libraries support. We urge you to upgrade GNU
14493 *** binutils to release 2.9.1 or newer. Another option is to modify
14494 *** your PATH or compiler configuration so that the native linker is
14495 *** used, and then restart.
14498 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14499 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14500 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14507 case `$LD -v 2>&1` in
14508 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14512 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14513 *** reliably create shared libraries on SCO systems. Therefore, libtool
14514 *** is disabling shared libraries support. We urge you to upgrade GNU
14515 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14516 *** your PATH or compiler configuration so that the native linker is
14517 *** used, and then restart.
14522 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14523 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14524 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14525 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14534 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14536 hardcode_direct_F77=yes
14537 hardcode_shlibpath_var_F77=no
14541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14542 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14543 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14550 if test "$ld_shlibs_F77" = no; then
14552 hardcode_libdir_flag_spec_F77=
14553 export_dynamic_flag_spec_F77=
14554 whole_archive_flag_spec_F77=
14557 # PORTME fill in a description of your system's linker (not GNU ld)
14560 allow_undefined_flag_F77=unsupported
14561 always_export_symbols_F77=yes
14562 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'
14563 # Note: this linker hardcodes the directories in LIBPATH if there
14564 # are no directories specified by -L.
14565 hardcode_minus_L_F77=yes
14566 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14567 # Neither direct hardcoding nor static linking is supported with a
14569 hardcode_direct_F77=unsupported
14574 if test "$host_cpu" = ia64; then
14575 # On IA64, the linker does run time linking by default, so we don't
14576 # have to do anything special.
14577 aix_use_runtimelinking=no
14578 exp_sym_flag='-Bexport'
14581 # If we're using GNU nm, then we don't want the "-C" option.
14582 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14583 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14584 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'
14586 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'
14588 aix_use_runtimelinking=no
14590 # Test if we are trying to use run time linking or normal
14591 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14592 # need to do runtime linking.
14593 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14594 for ld_flag in $LDFLAGS; do
14595 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14596 aix_use_runtimelinking=yes
14603 exp_sym_flag='-bexport'
14604 no_entry_flag='-bnoentry'
14607 # When large executables or shared objects are built, AIX ld can
14608 # have problems creating the table of contents. If linking a library
14609 # or program results in "error TOC overflow" add -mminimal-toc to
14610 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14611 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14613 archive_cmds_F77=''
14614 hardcode_direct_F77=yes
14615 hardcode_libdir_separator_F77=':'
14616 link_all_deplibs_F77=yes
14618 if test "$GCC" = yes; then
14619 case $host_os in aix4.[012]|aix4.[012].*)
14620 # We only want to do this on AIX 4.2 and lower, the check
14621 # below for broken collect2 doesn't work under 4.3+
14622 collect2name=`${CC} -print-prog-name=collect2`
14623 if test -f "$collect2name" && \
14624 strings "$collect2name" | grep resolve_lib_name >/dev/null
14626 # We have reworked collect2
14629 # We have old collect2
14630 hardcode_direct_F77=unsupported
14631 # It fails to find uninstalled libraries when the uninstalled
14632 # path is not listed in the libpath. Setting hardcode_minus_L
14633 # to unsupported forces relinking
14634 hardcode_minus_L_F77=yes
14635 hardcode_libdir_flag_spec_F77='-L$libdir'
14636 hardcode_libdir_separator_F77=
14640 shared_flag='-shared'
14641 if test "$aix_use_runtimelinking" = yes; then
14642 shared_flag="$shared_flag "'${wl}-G'
14646 if test "$host_cpu" = ia64; then
14647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14648 # chokes on -Wl,-G. The following line is correct:
14651 if test "$aix_use_runtimelinking" = yes; then
14652 shared_flag='${wl}-G'
14654 shared_flag='${wl}-bM:SRE'
14659 # It seems that -bexpall does not export symbols beginning with
14660 # underscore (_), so it is better to generate a list of symbols to export.
14661 always_export_symbols_F77=yes
14662 if test "$aix_use_runtimelinking" = yes; then
14663 # Warning - without using the other runtime loading flags (-brtl),
14664 # -berok will link without error, but may produce a broken library.
14665 allow_undefined_flag_F77='-berok'
14666 # Determine the default libpath from the value encoded in an empty executable.
14667 cat > conftest.$ac_ext <<_ACEOF
14672 if ac_fn_f77_try_link "$LINENO"; then :
14674 lt_aix_libpath_sed='
14675 /Import File Strings/,/^$/ {
14681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14682 # Check for a 64-bit object if we didn't find anything.
14683 if test -z "$aix_libpath"; then
14684 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14687 rm -f core conftest.err conftest.$ac_objext \
14688 conftest$ac_exeext conftest.$ac_ext
14689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14691 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14692 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"
14694 if test "$host_cpu" = ia64; then
14695 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14696 allow_undefined_flag_F77="-z nodefs"
14697 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"
14699 # Determine the default libpath from the value encoded in an empty executable.
14700 cat > conftest.$ac_ext <<_ACEOF
14705 if ac_fn_f77_try_link "$LINENO"; then :
14707 lt_aix_libpath_sed='
14708 /Import File Strings/,/^$/ {
14714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14715 # Check for a 64-bit object if we didn't find anything.
14716 if test -z "$aix_libpath"; then
14717 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14720 rm -f core conftest.err conftest.$ac_objext \
14721 conftest$ac_exeext conftest.$ac_ext
14722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14724 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14725 # Warning - without using the other run time loading flags,
14726 # -berok will link without error, but may produce a broken library.
14727 no_undefined_flag_F77=' ${wl}-bernotok'
14728 allow_undefined_flag_F77=' ${wl}-berok'
14729 # Exported symbols can be pulled into shared objects from archives
14730 whole_archive_flag_spec_F77='$convenience'
14731 archive_cmds_need_lc_F77=yes
14732 # This is similar to how AIX traditionally builds its shared libraries.
14733 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'
14739 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)'
14740 hardcode_libdir_flag_spec_F77='-L$libdir'
14741 hardcode_minus_L_F77=yes
14742 # see comment about different semantics on the GNU ld section
14747 export_dynamic_flag_spec_F77=-rdynamic
14750 cygwin* | mingw* | pw32*)
14751 # When not using gcc, we currently assume that we are using
14752 # Microsoft Visual C++.
14753 # hardcode_libdir_flag_spec is actually meaningless, as there is
14754 # no search path for DLLs.
14755 hardcode_libdir_flag_spec_F77=' '
14756 allow_undefined_flag_F77=unsupported
14757 # Tell ltmain to make .lib files, not .a files.
14759 # Tell ltmain to make .dll files, not .so files.
14761 # FIXME: Setting linknames here is a bad hack.
14762 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14763 # The linker will automatically build a .lib file if we build a DLL.
14764 old_archive_From_new_cmds_F77='true'
14765 # FIXME: Should let the user specify the lib program.
14766 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14767 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14768 enable_shared_with_static_runtimes_F77=yes
14771 darwin* | rhapsody*)
14773 rhapsody* | darwin1.[012])
14774 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14777 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14778 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14780 case ${MACOSX_DEPLOYMENT_TARGET} in
14782 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14785 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14791 archive_cmds_need_lc_F77=no
14792 hardcode_direct_F77=no
14793 hardcode_automatic_F77=yes
14794 hardcode_shlibpath_var_F77=unsupported
14795 whole_archive_flag_spec_F77=''
14796 link_all_deplibs_F77=yes
14797 if test "$GCC" = yes ; then
14798 output_verbose_link_cmd='echo'
14799 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}"
14800 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14801 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}"
14802 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}"
14804 case $cc_basename in
14806 output_verbose_link_cmd='echo'
14807 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14808 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14810 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}'
14811 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}'
14821 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14822 hardcode_libdir_flag_spec_F77='-L$libdir'
14823 hardcode_shlibpath_var_F77=no
14830 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14831 # support. Future versions do this automatically, but an explicit c++rt0.o
14832 # does not break anything, and helps significantly (at the cost of a little
14835 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14836 hardcode_libdir_flag_spec_F77='-R$libdir'
14837 hardcode_direct_F77=yes
14838 hardcode_shlibpath_var_F77=no
14841 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14843 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14844 hardcode_direct_F77=yes
14845 hardcode_minus_L_F77=yes
14846 hardcode_shlibpath_var_F77=no
14849 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14850 freebsd* | dragonfly*)
14851 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14852 hardcode_libdir_flag_spec_F77='-R$libdir'
14853 hardcode_direct_F77=yes
14854 hardcode_shlibpath_var_F77=no
14858 if test "$GCC" = yes; then
14859 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'
14861 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'
14863 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14864 hardcode_libdir_separator_F77=:
14865 hardcode_direct_F77=yes
14867 # hardcode_minus_L: Not really in the search PATH,
14868 # but as the default location of the library.
14869 hardcode_minus_L_F77=yes
14870 export_dynamic_flag_spec_F77='${wl}-E'
14874 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14875 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14877 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14879 if test "$with_gnu_ld" = no; then
14880 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14881 hardcode_libdir_separator_F77=:
14883 hardcode_direct_F77=yes
14884 export_dynamic_flag_spec_F77='${wl}-E'
14886 # hardcode_minus_L: Not really in the search PATH,
14887 # but as the default location of the library.
14888 hardcode_minus_L_F77=yes
14893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14896 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14899 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14902 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14908 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14911 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14914 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14918 if test "$with_gnu_ld" = no; then
14919 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14920 hardcode_libdir_separator_F77=:
14924 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14925 hardcode_direct_F77=no
14926 hardcode_shlibpath_var_F77=no
14929 hardcode_direct_F77=yes
14930 export_dynamic_flag_spec_F77='${wl}-E'
14932 # hardcode_minus_L: Not really in the search PATH,
14933 # but as the default location of the library.
14934 hardcode_minus_L_F77=yes
14940 irix5* | irix6* | nonstopux*)
14941 if test "$GCC" = yes; then
14942 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'
14944 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'
14945 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14947 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14948 hardcode_libdir_separator_F77=:
14949 link_all_deplibs_F77=yes
14952 netbsd* | netbsdelf*-gnu)
14953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14954 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14956 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14958 hardcode_libdir_flag_spec_F77='-R$libdir'
14959 hardcode_direct_F77=yes
14960 hardcode_shlibpath_var_F77=no
14964 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14965 hardcode_direct_F77=yes
14966 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14967 hardcode_libdir_separator_F77=:
14968 hardcode_shlibpath_var_F77=no
14972 if test -f /usr/libexec/ld.so; then
14973 hardcode_direct_F77=yes
14974 hardcode_shlibpath_var_F77=no
14975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14976 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14977 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14978 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14979 export_dynamic_flag_spec_F77='${wl}-E'
14982 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14983 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14984 hardcode_libdir_flag_spec_F77='-R$libdir'
14987 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14988 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14998 hardcode_libdir_flag_spec_F77='-L$libdir'
14999 hardcode_minus_L_F77=yes
15000 allow_undefined_flag_F77=unsupported
15001 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'
15002 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15006 if test "$GCC" = yes; then
15007 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15008 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'
15010 allow_undefined_flag_F77=' -expect_unresolved \*'
15011 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'
15013 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15014 hardcode_libdir_separator_F77=:
15017 osf4* | osf5*) # as osf3* with the addition of -msym flag
15018 if test "$GCC" = yes; then
15019 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15020 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'
15021 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15023 allow_undefined_flag_F77=' -expect_unresolved \*'
15024 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'
15025 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~
15026 $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'
15028 # Both c and cxx compiler support -rpath directly
15029 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15031 hardcode_libdir_separator_F77=:
15035 no_undefined_flag_F77=' -z text'
15036 if test "$GCC" = yes; then
15038 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15039 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15040 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15043 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15044 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15045 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15047 hardcode_libdir_flag_spec_F77='-R$libdir'
15048 hardcode_shlibpath_var_F77=no
15050 solaris2.[0-5] | solaris2.[0-5].*) ;;
15052 # The compiler driver will combine and reorder linker options,
15053 # but understands `-z linker_flag'. GCC discards it without `$wl',
15054 # but is careful enough not to reorder.
15055 # Supported since Solaris 2.6 (maybe 2.5.1?)
15056 if test "$GCC" = yes; then
15057 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15059 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15063 link_all_deplibs_F77=yes
15067 if test "x$host_vendor" = xsequent; then
15068 # Use $CC to link under sequent, because it throws in some extra .o
15069 # files that make .init and .fini sections work.
15070 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15072 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15074 hardcode_libdir_flag_spec_F77='-L$libdir'
15075 hardcode_direct_F77=yes
15076 hardcode_minus_L_F77=yes
15077 hardcode_shlibpath_var_F77=no
15081 case $host_vendor in
15083 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084 hardcode_direct_F77=yes # is this really true???
15087 ## LD is ld it makes a PLAMLIB
15088 ## CC just makes a GrossModule.
15089 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15090 reload_cmds_F77='$CC -r -o $output$reload_objs'
15091 hardcode_direct_F77=no
15094 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15095 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15098 runpath_var='LD_RUN_PATH'
15099 hardcode_shlibpath_var_F77=no
15103 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104 hardcode_shlibpath_var_F77=no
15105 export_dynamic_flag_spec_F77='-Bexport'
15109 if test -d /usr/nec; then
15110 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15111 hardcode_shlibpath_var_F77=no
15112 runpath_var=LD_RUN_PATH
15113 hardcode_runpath_var=yes
15118 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15119 no_undefined_flag_F77='${wl}-z,text'
15120 archive_cmds_need_lc_F77=no
15121 hardcode_shlibpath_var_F77=no
15122 runpath_var='LD_RUN_PATH'
15124 if test "$GCC" = yes; then
15125 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15126 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15128 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15129 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15133 sysv5* | sco3.2v5* | sco5v6*)
15134 # Note: We can NOT use -z defs as we might desire, because we do not
15135 # link with -lc, and that would cause any symbols used from libc to
15136 # always be unresolved, which means just about no library would
15137 # ever link correctly. If we're not using GNU ld we use -z text
15138 # though, which does catch some bad symbols but isn't as heavy-handed
15140 no_undefined_flag_F77='${wl}-z,text'
15141 allow_undefined_flag_F77='${wl}-z,nodefs'
15142 archive_cmds_need_lc_F77=no
15143 hardcode_shlibpath_var_F77=no
15144 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15145 hardcode_libdir_separator_F77=':'
15146 link_all_deplibs_F77=yes
15147 export_dynamic_flag_spec_F77='${wl}-Bexport'
15148 runpath_var='LD_RUN_PATH'
15150 if test "$GCC" = yes; then
15151 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15152 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15154 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161 hardcode_libdir_flag_spec_F77='-L$libdir'
15162 hardcode_shlibpath_var_F77=no
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15172 $as_echo "$ld_shlibs_F77" >&6; }
15173 test "$ld_shlibs_F77" = no && can_build_shared=no
15176 # Do we need to explicitly link libc?
15178 case "x$archive_cmds_need_lc_F77" in
15180 # Assume -lc should be added
15181 archive_cmds_need_lc_F77=yes
15183 if test "$enable_shared" = yes && test "$GCC" = yes; then
15184 case $archive_cmds_F77 in
15186 # FIXME: we may have to deal with multi-command sequences.
15189 # Test whether the compiler implicitly links with -lc since on some
15190 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15191 # to ld, don't add -lc before -lgcc.
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15193 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15198 (eval $ac_compile) 2>&5
15200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15201 test $ac_status = 0; } 2>conftest.err; then
15204 libobjs=conftest.$ac_objext
15206 wl=$lt_prog_compiler_wl_F77
15207 pic_flag=$lt_prog_compiler_pic_F77
15213 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15214 allow_undefined_flag_F77=
15215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15216 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15219 test $ac_status = 0; }
15221 archive_cmds_need_lc_F77=no
15223 archive_cmds_need_lc_F77=yes
15225 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15227 cat conftest.err 1>&5
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15231 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15239 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15240 library_names_spec=
15241 libname_spec='lib$name'
15245 postuninstall_cmds=
15249 shlibpath_overrides_runpath=unknown
15251 dynamic_linker="$host_os ld.so"
15252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15254 need_lib_prefix=unknown
15255 hardcode_into_libs=no
15257 # when you set need_version to no, make sure it does not cause -set_version
15258 # flags to be left without arguments
15259 need_version=unknown
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15265 shlibpath_var=LIBPATH
15267 # AIX 3 has no versioning support, so we append a major version to the name.
15268 soname_spec='${libname}${release}${shared_ext}$major'
15275 hardcode_into_libs=yes
15276 if test "$host_cpu" = ia64; then
15277 # AIX 5 supports IA64
15278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15279 shlibpath_var=LD_LIBRARY_PATH
15281 # With GCC up to 2.95.x, collect2 would create an import file
15282 # for dependence libraries. The import file would start with
15283 # the line `#! .'. This would cause the generated library to
15284 # depend on `.', always an invalid library. This was fixed in
15285 # development snapshots of GCC prior to 3.0.
15287 aix4 | aix4.[01] | aix4.[01].*)
15288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15290 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15293 can_build_shared=no
15297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15298 # soname into executable. Probably we can add versioning support to
15299 # collect2, so additional links can be useful in future.
15300 if test "$aix_use_runtimelinking" = yes; then
15301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15302 # instead of lib<name>.a to let people know that these are not
15303 # typical AIX shared libraries.
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306 # We preserve .a as extension for shared libraries through AIX4.2
15307 # and later when we are not doing run time linking.
15308 library_names_spec='${libname}${release}.a $libname.a'
15309 soname_spec='${libname}${release}${shared_ext}$major'
15311 shlibpath_var=LIBPATH
15316 library_names_spec='$libname.ixlibrary $libname.a'
15317 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15318 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'
15322 library_names_spec='${libname}${shared_ext}'
15323 dynamic_linker="$host_os ld.so"
15324 shlibpath_var=LIBRARY_PATH
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15336 # the default ld.so.conf also contains /usr/contrib/lib and
15337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15338 # libtool to hard-code these into programs
15341 cygwin* | mingw* | pw32*)
15342 version_type=windows
15347 case $GCC,$host_os in
15348 yes,cygwin* | yes,mingw* | yes,pw32*)
15349 library_names_spec='$libname.dll.a'
15350 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15351 postinstall_cmds='base_file=`basename \${file}`~
15352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15353 dldir=$destdir/`dirname \$dlpath`~
15354 test -d \$dldir || mkdir -p \$dldir~
15355 $install_prog $dir/$dlname \$dldir/$dlname~
15356 chmod a+x \$dldir/$dlname'
15357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15358 dlpath=$dir/\$dldll~
15360 shlibpath_overrides_runpath=yes
15364 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15365 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15366 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15369 # MinGW DLLs use traditional 'lib' prefix
15370 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15372 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15373 # It is most probably a Windows format PATH printed by
15374 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15375 # path with ; separators, and with drive letters. We can handle the
15376 # drive letters (cygwin fileutils understands them), so leave them,
15377 # especially as we might pass files found there to a mingw objdump,
15378 # which wouldn't understand a cygwinified path. Ahh.
15379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15385 # pw32 DLLs use 'pw' prefix rather than 'lib'
15386 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15392 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15395 dynamic_linker='Win32 ld.exe'
15396 # FIXME: first we should search . and the directory the executable is in
15400 darwin* | rhapsody*)
15401 dynamic_linker="$host_os dyld"
15402 version_type=darwin
15405 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15406 soname_spec='${libname}${release}${major}$shared_ext'
15407 shlibpath_overrides_runpath=yes
15408 shlibpath_var=DYLD_LIBRARY_PATH
15409 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 shlibpath_var=LD_LIBRARY_PATH
15427 freebsd* | dragonfly*)
15428 # DragonFly does not have aout. When/if they implement a new
15429 # versioning mechanism, adjust this.
15430 if test -x /usr/bin/objformat; then
15431 objformat=`/usr/bin/objformat`
15434 freebsd[123]*) objformat=aout ;;
15435 *) objformat=elf ;;
15438 version_type=freebsd-$objformat
15439 case $version_type in
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15450 shlibpath_var=LD_LIBRARY_PATH
15453 shlibpath_overrides_runpath=yes
15455 freebsd3.[01]* | freebsdelf3.[01]*)
15456 shlibpath_overrides_runpath=yes
15457 hardcode_into_libs=yes
15459 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15460 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15461 shlibpath_overrides_runpath=no
15462 hardcode_into_libs=yes
15464 *) # from 4.6 on, and DragonFly
15465 shlibpath_overrides_runpath=yes
15466 hardcode_into_libs=yes
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 hardcode_into_libs=yes
15481 hpux9* | hpux10* | hpux11*)
15482 # Give a soname corresponding to the major version so that dld.sl refuses to
15483 # link against other versions.
15490 hardcode_into_libs=yes
15491 dynamic_linker="$host_os dld.so"
15492 shlibpath_var=LD_LIBRARY_PATH
15493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 if test "X$HPUX_IA64_MODE" = X32; then
15497 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15499 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15505 hardcode_into_libs=yes
15506 dynamic_linker="$host_os dld.sl"
15507 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15516 dynamic_linker="$host_os dld.sl"
15517 shlibpath_var=SHLIB_PATH
15518 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15520 soname_spec='${libname}${release}${shared_ext}$major'
15523 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15524 postinstall_cmds='chmod 555 $lib'
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15534 shlibpath_var=LD_LIBRARY_PATH
15535 shlibpath_overrides_runpath=no
15536 hardcode_into_libs=yes
15539 irix5* | irix6* | nonstopux*)
15541 nonstopux*) version_type=nonstopux ;;
15543 if test "$lt_cv_prog_gnu_ld" = yes; then
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15554 irix5* | nonstopux*)
15555 libsuff= shlibsuff=
15558 case $LD in # libtool.m4 will add one of these switches to LD
15559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15560 libsuff= shlibsuff= libmagic=32-bit;;
15561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15562 libsuff=32 shlibsuff=N32 libmagic=N32;;
15563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15564 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15565 *) libsuff= shlibsuff= libmagic=never-match;;
15569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15570 shlibpath_overrides_runpath=no
15571 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15572 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15573 hardcode_into_libs=yes
15576 # No shared lib support for Linux oldld, aout, or coff.
15577 linux*oldld* | linux*aout* | linux*coff*)
15581 # This must be Linux ELF.
15582 linux* | k*bsd*-gnu)
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15589 shlibpath_var=LD_LIBRARY_PATH
15590 shlibpath_overrides_runpath=no
15591 # This implies no fast_install, which is unacceptable.
15592 # Some rework will be needed to allow for fast_install
15593 # before this can be enabled.
15594 hardcode_into_libs=yes
15596 # Append ld.so.conf contents to the search path
15597 if test -f /etc/ld.so.conf; then
15598 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' ' '`
15599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15602 # We used to test for /lib/ld.so.1 and disable shared libraries on
15603 # powerpc, because MkLinux only supported shared libraries with the
15604 # GNU dynamic linker. Since this was broken with cross compilers,
15605 # most powerpc-linux boxes support dynamic linking these days and
15606 # people can always --disable-shared, the test was removed, and we
15607 # assume the GNU/Linux dynamic linker is in use.
15608 dynamic_linker='GNU/Linux ld.so'
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15616 soname_spec='${libname}${release}${shared_ext}$major'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=no
15619 hardcode_into_libs=yes
15620 dynamic_linker='NetBSD ld.elf_so'
15627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15630 dynamic_linker='NetBSD (a.out) ld.so'
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15633 soname_spec='${libname}${release}${shared_ext}$major'
15634 dynamic_linker='NetBSD ld.elf_so'
15636 shlibpath_var=LD_LIBRARY_PATH
15637 shlibpath_overrides_runpath=yes
15638 hardcode_into_libs=yes
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644 shlibpath_var=LD_LIBRARY_PATH
15645 shlibpath_overrides_runpath=yes
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 soname_spec='${libname}${release}${shared_ext}$major'
15654 shlibpath_var=LD_LIBRARY_PATH
15655 shlibpath_overrides_runpath=yes
15660 sys_lib_dlsearch_path_spec="/usr/lib"
15662 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15664 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15665 *) need_version=no ;;
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15672 openbsd2.[89] | openbsd2.[89].*)
15673 shlibpath_overrides_runpath=no
15676 shlibpath_overrides_runpath=yes
15680 shlibpath_overrides_runpath=yes
15685 libname_spec='$name'
15688 library_names_spec='$libname${shared_ext} $libname.a'
15689 dynamic_linker='OS/2 ld.exe'
15690 shlibpath_var=LIBPATH
15693 osf3* | osf4* | osf5*)
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15699 shlibpath_var=LD_LIBRARY_PATH
15700 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15701 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath=yes
15716 hardcode_into_libs=yes
15717 # ldd complains unless libraries are executable
15718 postinstall_cmds='chmod +x $lib'
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15724 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15725 shlibpath_var=LD_LIBRARY_PATH
15726 shlibpath_overrides_runpath=yes
15727 if test "$with_gnu_ld" = yes; then
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 shlibpath_var=LD_LIBRARY_PATH
15738 case $host_vendor in
15740 shlibpath_overrides_runpath=no
15742 export_dynamic_flag_spec='${wl}-Blargedynsym'
15743 runpath_var=LD_RUN_PATH
15751 shlibpath_overrides_runpath=no
15752 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15758 if test -d /usr/nec ;then
15760 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15761 soname_spec='$libname${shared_ext}.$major'
15762 shlibpath_var=LD_LIBRARY_PATH
15766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15767 version_type=freebsd-elf
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 hardcode_into_libs=yes
15774 if test "$with_gnu_ld" = yes; then
15775 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15776 shlibpath_overrides_runpath=no
15778 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15779 shlibpath_overrides_runpath=yes
15782 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15786 sys_lib_dlsearch_path_spec='/usr/lib'
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792 soname_spec='${libname}${release}${shared_ext}$major'
15793 shlibpath_var=LD_LIBRARY_PATH
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15801 $as_echo "$dynamic_linker" >&6; }
15802 test "$dynamic_linker" = no && can_build_shared=no
15804 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15805 $as_echo_n "(cached) " >&6
15807 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15810 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15811 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15812 $as_echo_n "(cached) " >&6
15814 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15817 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15819 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15820 if test "$GCC" = yes; then
15821 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15825 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15826 hardcode_action_F77=
15827 if test -n "$hardcode_libdir_flag_spec_F77" || \
15828 test -n "$runpath_var_F77" || \
15829 test "X$hardcode_automatic_F77" = "Xyes" ; then
15831 # We can hardcode non-existant directories.
15832 if test "$hardcode_direct_F77" != no &&
15833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15834 # have to relink, otherwise we might link with an installed library
15835 # when we should be linking with a yet-to-be-installed one
15836 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15837 test "$hardcode_minus_L_F77" != no; then
15838 # Linking always hardcodes the temporary library directory.
15839 hardcode_action_F77=relink
15841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15842 hardcode_action_F77=immediate
15845 # We cannot hardcode anything, or else we can only hardcode existing
15847 hardcode_action_F77=unsupported
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15850 $as_echo "$hardcode_action_F77" >&6; }
15852 if test "$hardcode_action_F77" = relink; then
15853 # Fast installation is not supported
15854 enable_fast_install=no
15855 elif test "$shlibpath_overrides_runpath" = yes ||
15856 test "$enable_shared" = no; then
15857 # Fast installation is not necessary
15858 enable_fast_install=needless
15862 # The else clause should only fire when bootstrapping the
15863 # libtool distribution, otherwise you forgot to ship ltmain.sh
15864 # with your package, and you will get complaints that there are
15865 # no rules to generate ltmain.sh.
15866 if test -f "$ltmain"; then
15867 # See if we are running on zsh, and set the options which allow our commands through
15868 # without removal of \ escapes.
15869 if test -n "${ZSH_VERSION+set}" ; then
15870 setopt NO_GLOB_SUBST
15872 # Now quote all the things that may contain metacharacters while being
15873 # careful not to overquote the AC_SUBSTed values. We take copies of the
15874 # variables and quote the copies for generation of the libtool script.
15875 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15877 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15878 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15879 deplibs_check_method reload_flag reload_cmds need_locks \
15880 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15881 lt_cv_sys_global_symbol_to_c_name_address \
15882 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15883 old_postinstall_cmds old_postuninstall_cmds \
15887 lt_prog_compiler_wl_F77 \
15888 lt_prog_compiler_pic_F77 \
15889 lt_prog_compiler_static_F77 \
15890 lt_prog_compiler_no_builtin_flag_F77 \
15891 export_dynamic_flag_spec_F77 \
15892 thread_safe_flag_spec_F77 \
15893 whole_archive_flag_spec_F77 \
15894 enable_shared_with_static_runtimes_F77 \
15895 old_archive_cmds_F77 \
15896 old_archive_from_new_cmds_F77 \
15897 predep_objects_F77 \
15898 postdep_objects_F77 \
15901 compiler_lib_search_path_F77 \
15902 compiler_lib_search_dirs_F77 \
15904 archive_expsym_cmds_F77 \
15905 postinstall_cmds_F77 \
15906 postuninstall_cmds_F77 \
15907 old_archive_from_expsyms_cmds_F77 \
15908 allow_undefined_flag_F77 \
15909 no_undefined_flag_F77 \
15910 export_symbols_cmds_F77 \
15911 hardcode_libdir_flag_spec_F77 \
15912 hardcode_libdir_flag_spec_ld_F77 \
15913 hardcode_libdir_separator_F77 \
15914 hardcode_automatic_F77 \
15916 module_expsym_cmds_F77 \
15917 lt_cv_prog_compiler_c_o_F77 \
15918 fix_srcfile_path_F77 \
15919 exclude_expsyms_F77 \
15920 include_expsyms_F77; do
15923 old_archive_cmds_F77 | \
15924 old_archive_from_new_cmds_F77 | \
15925 archive_cmds_F77 | \
15926 archive_expsym_cmds_F77 | \
15927 module_cmds_F77 | \
15928 module_expsym_cmds_F77 | \
15929 old_archive_from_expsyms_cmds_F77 | \
15930 export_symbols_cmds_F77 | \
15931 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15932 postinstall_cmds | postuninstall_cmds | \
15933 old_postinstall_cmds | old_postuninstall_cmds | \
15934 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15935 # Double-quote double-evaled strings.
15936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15939 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15945 *'\$0 --fallback-echo"')
15946 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15952 cat <<__EOF__ >> "$cfgfile"
15953 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15957 # Shell to use when invoking shell scripts.
15960 # Whether or not to build shared libraries.
15961 build_libtool_libs=$enable_shared
15963 # Whether or not to build static libraries.
15964 build_old_libs=$enable_static
15966 # Whether or not to add -lc for building shared libraries.
15967 build_libtool_need_lc=$archive_cmds_need_lc_F77
15969 # Whether or not to disallow shared libs when runtime libs are static
15970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15972 # Whether or not to optimize for fast installation.
15973 fast_install=$enable_fast_install
15976 host_alias=$host_alias
15980 # The build system.
15981 build_alias=$build_alias
15985 # An echo program that does not interpret backslashes.
15990 AR_FLAGS=$lt_AR_FLAGS
15995 # LTCC compiler flags.
15996 LTCFLAGS=$lt_LTCFLAGS
15998 # A language-specific compiler.
15999 CC=$lt_compiler_F77
16001 # Is the compiler the GNU C compiler?
16007 # The linker used to build libraries.
16010 # Whether we need hard or soft links.
16013 # A BSD-compatible nm program.
16016 # A symbol stripping program
16019 # Used to examine libraries when file_magic_cmd begins "file"
16020 MAGIC_CMD=$MAGIC_CMD
16022 # Used on cygwin: DLL creation program.
16025 # Used on cygwin: object dumper.
16028 # Used on cygwin: assembler.
16031 # The name of the directory that contains temporary libtool files.
16034 # How to create reloadable object files.
16035 reload_flag=$lt_reload_flag
16036 reload_cmds=$lt_reload_cmds
16038 # How to pass a linker flag through the compiler.
16039 wl=$lt_lt_prog_compiler_wl_F77
16041 # Object file suffix (normally "o").
16042 objext="$ac_objext"
16044 # Old archive suffix (normally "a").
16047 # Shared library suffix (normally ".so").
16048 shrext_cmds='$shrext_cmds'
16050 # Executable file suffix (normally "").
16053 # Additional compiler flags for building library objects.
16054 pic_flag=$lt_lt_prog_compiler_pic_F77
16057 # What is the maximum length of a command?
16058 max_cmd_len=$lt_cv_sys_max_cmd_len
16060 # Does compiler simultaneously support -c and -o options?
16061 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16063 # Must we lock files when doing compilation?
16064 need_locks=$lt_need_locks
16066 # Do we need the lib prefix for modules?
16067 need_lib_prefix=$need_lib_prefix
16069 # Do we need a version for libraries?
16070 need_version=$need_version
16072 # Whether dlopen is supported.
16073 dlopen_support=$enable_dlopen
16075 # Whether dlopen of programs is supported.
16076 dlopen_self=$enable_dlopen_self
16078 # Whether dlopen of statically linked programs is supported.
16079 dlopen_self_static=$enable_dlopen_self_static
16081 # Compiler flag to prevent dynamic linking.
16082 link_static_flag=$lt_lt_prog_compiler_static_F77
16084 # Compiler flag to turn off builtin functions.
16085 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16087 # Compiler flag to allow reflexive dlopens.
16088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16090 # Compiler flag to generate shared objects directly from archives.
16091 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16093 # Compiler flag to generate thread-safe objects.
16094 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16096 # Library versioning type.
16097 version_type=$version_type
16099 # Format of library name prefix.
16100 libname_spec=$lt_libname_spec
16102 # List of archive names. First name is the real one, the rest are links.
16103 # The last name is the one that the linker finds with -lNAME.
16104 library_names_spec=$lt_library_names_spec
16106 # The coded name of the library, if different from the real name.
16107 soname_spec=$lt_soname_spec
16109 # Commands used to build and install an old-style archive.
16111 old_archive_cmds=$lt_old_archive_cmds_F77
16112 old_postinstall_cmds=$lt_old_postinstall_cmds
16113 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16115 # Create an old-style archive from a shared archive.
16116 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16118 # Create a temporary old-style archive to link instead of a shared archive.
16119 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16121 # Commands used to build and install a shared archive.
16122 archive_cmds=$lt_archive_cmds_F77
16123 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16124 postinstall_cmds=$lt_postinstall_cmds
16125 postuninstall_cmds=$lt_postuninstall_cmds
16127 # Commands used to build a loadable module (assumed same as above if empty)
16128 module_cmds=$lt_module_cmds_F77
16129 module_expsym_cmds=$lt_module_expsym_cmds_F77
16131 # Commands to strip libraries.
16132 old_striplib=$lt_old_striplib
16133 striplib=$lt_striplib
16135 # Dependencies to place before the objects being linked to create a
16137 predep_objects=$lt_predep_objects_F77
16139 # Dependencies to place after the objects being linked to create a
16141 postdep_objects=$lt_postdep_objects_F77
16143 # Dependencies to place before the objects being linked to create a
16145 predeps=$lt_predeps_F77
16147 # Dependencies to place after the objects being linked to create a
16149 postdeps=$lt_postdeps_F77
16151 # The directories searched by this compiler when creating a shared
16153 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16155 # The library search path used internally by the compiler when linking
16156 # a shared library.
16157 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16159 # Method to check whether dependent libraries are shared objects.
16160 deplibs_check_method=$lt_deplibs_check_method
16162 # Command to use when deplibs_check_method == file_magic.
16163 file_magic_cmd=$lt_file_magic_cmd
16165 # Flag that allows shared libraries with undefined symbols to be built.
16166 allow_undefined_flag=$lt_allow_undefined_flag_F77
16168 # Flag that forces no undefined symbols.
16169 no_undefined_flag=$lt_no_undefined_flag_F77
16171 # Commands used to finish a libtool library installation in a directory.
16172 finish_cmds=$lt_finish_cmds
16174 # Same as above, but a single script fragment to be evaled but not shown.
16175 finish_eval=$lt_finish_eval
16177 # Take the output of nm and produce a listing of raw symbols and C names.
16178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16180 # Transform the output of nm in a proper C declaration
16181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16183 # Transform the output of nm in a C name address pair
16184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16186 # This is the shared library runtime path variable.
16187 runpath_var=$runpath_var
16189 # This is the shared library path variable.
16190 shlibpath_var=$shlibpath_var
16192 # Is shlibpath searched before the hard-coded library search path?
16193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16195 # How to hardcode a shared library path into an executable.
16196 hardcode_action=$hardcode_action_F77
16198 # Whether we should hardcode library paths into libraries.
16199 hardcode_into_libs=$hardcode_into_libs
16201 # Flag to hardcode \$libdir into a binary during linking.
16202 # This must work even if \$libdir does not exist.
16203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16205 # If ld is used when linking, flag to hardcode \$libdir into
16206 # a binary during linking. This must work even if \$libdir does
16208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16210 # Whether we need a single -rpath flag with a separated argument.
16211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16214 # resulting binary.
16215 hardcode_direct=$hardcode_direct_F77
16217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16218 # resulting binary.
16219 hardcode_minus_L=$hardcode_minus_L_F77
16221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16222 # the resulting binary.
16223 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16225 # Set to yes if building a shared library automatically hardcodes DIR into the library
16226 # and all subsequent libraries and executables linked against it.
16227 hardcode_automatic=$hardcode_automatic_F77
16229 # Variables whose values should be saved in libtool wrapper scripts and
16230 # restored at relink time.
16231 variables_saved_for_relink="$variables_saved_for_relink"
16233 # Whether libtool must link a program against all its dependency libraries.
16234 link_all_deplibs=$link_all_deplibs_F77
16236 # Compile-time system search path for libraries
16237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16239 # Run-time system search path for libraries
16240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16242 # Fix the shell variable \$srcfile for the compiler.
16243 fix_srcfile_path=$lt_fix_srcfile_path
16245 # Set to yes if exported symbols are required.
16246 always_export_symbols=$always_export_symbols_F77
16248 # The commands to list exported symbols.
16249 export_symbols_cmds=$lt_export_symbols_cmds_F77
16251 # The commands to extract the exported symbol list from a shared archive.
16252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16254 # Symbols that should not be listed in the preloaded symbols.
16255 exclude_expsyms=$lt_exclude_expsyms_F77
16257 # Symbols that must always be exported.
16258 include_expsyms=$lt_include_expsyms_F77
16260 # ### END LIBTOOL TAG CONFIG: $tagname
16266 # If there is no Makefile yet, we rely on a make rule to execute
16267 # `config.status --recheck' to rerun these tests and create the
16268 # libtool script then.
16269 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16270 if test -f "$ltmain_in"; then
16271 test -f Makefile && make "$ltmain"
16277 ac_cpp='$CPP $CPPFLAGS'
16278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16290 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16293 # Source file extension for Java test sources.
16296 # Object file extension for compiled Java test sources.
16300 # Code to be used in simple compile tests
16301 lt_simple_compile_test_code="class foo {}"
16303 # Code to be used in simple link tests
16304 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16306 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16308 # If no C compiler was specified, use CC.
16311 # If no C compiler flags were specified, use CFLAGS.
16312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16314 # Allow CC to be a program name with arguments.
16318 # save warnings/boilerplate of simple test code
16319 ac_outfile=conftest.$ac_objext
16320 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16321 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16322 _lt_compiler_boilerplate=`cat conftest.err`
16325 ac_outfile=conftest.$ac_objext
16326 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16327 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16328 _lt_linker_boilerplate=`cat conftest.err`
16332 # Allow CC to be a program name with arguments.
16337 for cc_temp in $compiler""; do
16339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16345 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16348 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16349 archive_cmds_need_lc_GCJ=no
16351 old_archive_cmds_GCJ=$old_archive_cmds
16354 lt_prog_compiler_no_builtin_flag_GCJ=
16356 if test "$GCC" = yes; then
16357 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16361 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16362 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16363 $as_echo_n "(cached) " >&6
16365 lt_cv_prog_compiler_rtti_exceptions=no
16366 ac_outfile=conftest.$ac_objext
16367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16368 lt_compiler_flag="-fno-rtti -fno-exceptions"
16369 # Insert the option either (1) after the last *FLAGS variable, or
16370 # (2) before a word containing "conftest.", or (3) at the end.
16371 # Note that $ac_compile itself does not contain backslashes and begins
16372 # with a dollar sign (not a hyphen), so the echo should work correctly.
16373 # The option is referenced via a variable to avoid confusing sed.
16374 lt_compile=`echo "$ac_compile" | $SED \
16375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16377 -e 's:$: $lt_compiler_flag:'`
16378 (eval echo "\"\$as_me:16374: $lt_compile\"" >&5)
16379 (eval "$lt_compile" 2>conftest.err)
16381 cat conftest.err >&5
16382 echo "$as_me:16378: \$? = $ac_status" >&5
16383 if (exit $ac_status) && test -s "$ac_outfile"; then
16384 # The compiler can only warn and ignore the option if not recognized
16385 # So say no if there are warnings other than the usual output.
16386 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16389 lt_cv_prog_compiler_rtti_exceptions=yes
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16396 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16398 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16399 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16406 lt_prog_compiler_wl_GCJ=
16407 lt_prog_compiler_pic_GCJ=
16408 lt_prog_compiler_static_GCJ=
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16411 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16413 if test "$GCC" = yes; then
16414 lt_prog_compiler_wl_GCJ='-Wl,'
16415 lt_prog_compiler_static_GCJ='-static'
16419 # All AIX code is PIC.
16420 if test "$host_cpu" = ia64; then
16421 # AIX 5 now supports IA64 processor
16422 lt_prog_compiler_static_GCJ='-Bstatic'
16427 # FIXME: we need at least 68020 code to build shared libraries, but
16428 # adding the `-m68020' flag to GCC prevents building anything better,
16430 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16433 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16434 # PIC is the default for these OSes.
16437 mingw* | cygwin* | pw32* | os2*)
16438 # This hack is so that the source file can tell whether it is being
16439 # built for inclusion in a dll (and should export symbols for example).
16440 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16441 # (--disable-auto-import) libraries
16445 darwin* | rhapsody*)
16446 # PIC is the default on this platform
16447 # Common symbols not allowed in MH_DYLIB files
16448 lt_prog_compiler_pic_GCJ='-fno-common'
16452 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16453 # Instead, we relocate shared libraries at runtime.
16457 # Just because we use GCC doesn't mean we suddenly get shared libraries
16458 # on systems that don't support them.
16459 lt_prog_compiler_can_build_shared_GCJ=no
16464 if test -d /usr/nec; then
16465 lt_prog_compiler_pic_GCJ=-Kconform_pic
16470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16471 # not for PA HP-UX.
16477 lt_prog_compiler_pic_GCJ='-fPIC'
16483 lt_prog_compiler_pic_GCJ='-fPIC'
16487 # PORTME Check for flag to pass linker flags through the system compiler.
16490 lt_prog_compiler_wl_GCJ='-Wl,'
16491 if test "$host_cpu" = ia64; then
16492 # AIX 5 now supports IA64 processor
16493 lt_prog_compiler_static_GCJ='-Bstatic'
16495 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16499 # PIC is the default on this platform
16500 # Common symbols not allowed in MH_DYLIB files
16501 case $cc_basename in
16503 lt_prog_compiler_pic_GCJ='-qnocommon'
16504 lt_prog_compiler_wl_GCJ='-Wl,'
16509 mingw* | cygwin* | pw32* | os2*)
16510 # This hack is so that the source file can tell whether it is being
16511 # built for inclusion in a dll (and should export symbols for example).
16515 hpux9* | hpux10* | hpux11*)
16516 lt_prog_compiler_wl_GCJ='-Wl,'
16517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16518 # not for PA HP-UX.
16524 lt_prog_compiler_pic_GCJ='+Z'
16527 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16528 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16531 irix5* | irix6* | nonstopux*)
16532 lt_prog_compiler_wl_GCJ='-Wl,'
16533 # PIC (with -KPIC) is the default.
16534 lt_prog_compiler_static_GCJ='-non_shared'
16538 lt_prog_compiler_pic_GCJ='-KPIC'
16539 lt_prog_compiler_static_GCJ='-Bstatic'
16542 linux* | k*bsd*-gnu)
16543 case $cc_basename in
16545 lt_prog_compiler_wl_GCJ='-Wl,'
16546 lt_prog_compiler_pic_GCJ='-KPIC'
16547 lt_prog_compiler_static_GCJ='-static'
16549 pgcc* | pgf77* | pgf90* | pgf95*)
16550 # Portland Group compilers (*not* the Pentium gcc compiler,
16551 # which looks to be a dead project)
16552 lt_prog_compiler_wl_GCJ='-Wl,'
16553 lt_prog_compiler_pic_GCJ='-fpic'
16554 lt_prog_compiler_static_GCJ='-Bstatic'
16557 lt_prog_compiler_wl_GCJ='-Wl,'
16558 # All Alpha code is PIC.
16559 lt_prog_compiler_static_GCJ='-non_shared'
16562 case `$CC -V 2>&1 | sed 5q` in
16565 lt_prog_compiler_pic_GCJ='-KPIC'
16566 lt_prog_compiler_static_GCJ='-Bstatic'
16567 lt_prog_compiler_wl_GCJ='-Wl,'
16570 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16571 lt_prog_compiler_pic_GCJ='-KPIC'
16572 lt_prog_compiler_static_GCJ='-Bstatic'
16573 lt_prog_compiler_wl_GCJ=''
16580 osf3* | osf4* | osf5*)
16581 lt_prog_compiler_wl_GCJ='-Wl,'
16582 # All OSF/1 code is PIC.
16583 lt_prog_compiler_static_GCJ='-non_shared'
16587 lt_prog_compiler_static_GCJ='-non_shared'
16591 lt_prog_compiler_pic_GCJ='-KPIC'
16592 lt_prog_compiler_static_GCJ='-Bstatic'
16593 case $cc_basename in
16594 f77* | f90* | f95*)
16595 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16597 lt_prog_compiler_wl_GCJ='-Wl,';;
16602 lt_prog_compiler_wl_GCJ='-Qoption ld '
16603 lt_prog_compiler_pic_GCJ='-PIC'
16604 lt_prog_compiler_static_GCJ='-Bstatic'
16607 sysv4 | sysv4.2uw2* | sysv4.3*)
16608 lt_prog_compiler_wl_GCJ='-Wl,'
16609 lt_prog_compiler_pic_GCJ='-KPIC'
16610 lt_prog_compiler_static_GCJ='-Bstatic'
16614 if test -d /usr/nec ;then
16615 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16616 lt_prog_compiler_static_GCJ='-Bstatic'
16620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16621 lt_prog_compiler_wl_GCJ='-Wl,'
16622 lt_prog_compiler_pic_GCJ='-KPIC'
16623 lt_prog_compiler_static_GCJ='-Bstatic'
16627 lt_prog_compiler_wl_GCJ='-Wl,'
16628 lt_prog_compiler_can_build_shared_GCJ=no
16632 lt_prog_compiler_pic_GCJ='-pic'
16633 lt_prog_compiler_static_GCJ='-Bstatic'
16637 lt_prog_compiler_can_build_shared_GCJ=no
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16643 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16646 # Check to make sure the PIC flag actually works.
16648 if test -n "$lt_prog_compiler_pic_GCJ"; then
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16651 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16652 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16653 $as_echo_n "(cached) " >&6
16655 lt_cv_prog_compiler_pic_works_GCJ=no
16656 ac_outfile=conftest.$ac_objext
16657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16658 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16659 # Insert the option either (1) after the last *FLAGS variable, or
16660 # (2) before a word containing "conftest.", or (3) at the end.
16661 # Note that $ac_compile itself does not contain backslashes and begins
16662 # with a dollar sign (not a hyphen), so the echo should work correctly.
16663 # The option is referenced via a variable to avoid confusing sed.
16664 lt_compile=`echo "$ac_compile" | $SED \
16665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16667 -e 's:$: $lt_compiler_flag:'`
16668 (eval echo "\"\$as_me:16664: $lt_compile\"" >&5)
16669 (eval "$lt_compile" 2>conftest.err)
16671 cat conftest.err >&5
16672 echo "$as_me:16668: \$? = $ac_status" >&5
16673 if (exit $ac_status) && test -s "$ac_outfile"; then
16674 # The compiler can only warn and ignore the option if not recognized
16675 # So say no if there are warnings other than the usual output.
16676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16679 lt_cv_prog_compiler_pic_works_GCJ=yes
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16686 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16688 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16689 case $lt_prog_compiler_pic_GCJ in
16691 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16694 lt_prog_compiler_pic_GCJ=
16695 lt_prog_compiler_can_build_shared_GCJ=no
16700 # For platforms which do not support PIC, -DPIC is meaningless:
16702 lt_prog_compiler_pic_GCJ=
16705 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16710 # Check to make sure the static flag actually works.
16712 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16714 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16715 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16716 $as_echo_n "(cached) " >&6
16718 lt_cv_prog_compiler_static_works_GCJ=no
16719 save_LDFLAGS="$LDFLAGS"
16720 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16723 # The linker can only warn and ignore the option if not recognized
16724 # So say no if there are warnings
16725 if test -s conftest.err; then
16726 # Append any errors to the config.log.
16727 cat conftest.err 1>&5
16728 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16730 if diff conftest.exp conftest.er2 >/dev/null; then
16731 lt_cv_prog_compiler_static_works_GCJ=yes
16734 lt_cv_prog_compiler_static_works_GCJ=yes
16738 LDFLAGS="$save_LDFLAGS"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16742 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16744 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16747 lt_prog_compiler_static_GCJ=
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16752 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16753 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16754 $as_echo_n "(cached) " >&6
16756 lt_cv_prog_compiler_c_o_GCJ=no
16757 $rm -r conftest 2>/dev/null
16761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16763 lt_compiler_flag="-o out/conftest2.$ac_objext"
16764 # Insert the option either (1) after the last *FLAGS variable, or
16765 # (2) before a word containing "conftest.", or (3) at the end.
16766 # Note that $ac_compile itself does not contain backslashes and begins
16767 # with a dollar sign (not a hyphen), so the echo should work correctly.
16768 lt_compile=`echo "$ac_compile" | $SED \
16769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16771 -e 's:$: $lt_compiler_flag:'`
16772 (eval echo "\"\$as_me:16768: $lt_compile\"" >&5)
16773 (eval "$lt_compile" 2>out/conftest.err)
16775 cat out/conftest.err >&5
16776 echo "$as_me:16772: \$? = $ac_status" >&5
16777 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16779 # The compiler can only warn and ignore the option if not recognized
16780 # So say no if there are warnings
16781 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16784 lt_cv_prog_compiler_c_o_GCJ=yes
16789 # SGI C++ compiler will create directory out/ii_files/ for
16790 # template instantiation
16791 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16792 $rm out/* && rmdir out
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16799 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16802 hard_links="nottested"
16803 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16804 # do not overwrite the value of need_locks provided by the user
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16806 $as_echo_n "checking if we can lock with hard links... " >&6; }
16809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16811 ln conftest.a conftest.b 2>&5 || hard_links=no
16812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16814 $as_echo "$hard_links" >&6; }
16815 if test "$hard_links" = no; then
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16817 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16825 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16828 allow_undefined_flag_GCJ=
16829 enable_shared_with_static_runtimes_GCJ=no
16831 archive_expsym_cmds_GCJ=
16832 old_archive_From_new_cmds_GCJ=
16833 old_archive_from_expsyms_cmds_GCJ=
16834 export_dynamic_flag_spec_GCJ=
16835 whole_archive_flag_spec_GCJ=
16836 thread_safe_flag_spec_GCJ=
16837 hardcode_libdir_flag_spec_GCJ=
16838 hardcode_libdir_flag_spec_ld_GCJ=
16839 hardcode_libdir_separator_GCJ=
16840 hardcode_direct_GCJ=no
16841 hardcode_minus_L_GCJ=no
16842 hardcode_shlibpath_var_GCJ=unsupported
16843 link_all_deplibs_GCJ=unknown
16844 hardcode_automatic_GCJ=no
16846 module_expsym_cmds_GCJ=
16847 always_export_symbols_GCJ=no
16848 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16849 # include_expsyms should be a list of space-separated symbols to be *always*
16850 # included in the symbol list
16851 include_expsyms_GCJ=
16852 # exclude_expsyms can be an extended regexp of symbols to exclude
16853 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16855 # as well as any symbol that contains `d'.
16856 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16858 # platforms (ab)use it in PIC code, but their linkers get confused if
16859 # the symbol is explicitly referenced. Since portable code cannot
16860 # rely on this symbol name, it's probably fine to never include it in
16861 # preloaded symbol tables.
16862 # Exclude shared library initialization/finalization symbols.
16863 extract_expsyms_cmds=
16864 # Just being paranoid about ensuring that cc_basename is set.
16865 for cc_temp in $compiler""; do
16867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16873 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16876 cygwin* | mingw* | pw32*)
16877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16878 # When not using gcc, we currently assume that we are using
16879 # Microsoft Visual C++.
16880 if test "$GCC" != yes; then
16885 # we just hope/assume this is gcc and not c89 (= MSVC++)
16894 if test "$with_gnu_ld" = yes; then
16895 # If archive_cmds runs LD, not CC, wlarc should be empty
16898 # Set some defaults for GNU ld with shared library support. These
16899 # are reset later if shared libraries are not supported. Putting them
16900 # here allows them to be overridden if necessary.
16901 runpath_var=LD_RUN_PATH
16902 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16903 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16904 # ancient GNU ld didn't support --whole-archive et. al.
16905 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16906 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16908 whole_archive_flag_spec_GCJ=
16910 supports_anon_versioning=no
16911 case `$LD -v 2>/dev/null` in
16912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16913 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16914 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16915 *\ 2.11.*) ;; # other 2.11 versions
16916 *) supports_anon_versioning=yes ;;
16919 # See if GNU ld supports shared libraries.
16922 # On AIX/PPC, the GNU linker is very broken
16923 if test "$host_cpu" != ia64; then
16927 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16928 *** to be unable to reliably create shared libraries on AIX.
16929 *** Therefore, libtool is disabling shared libraries support. If you
16930 *** really care for shared libraries, you may want to modify your PATH
16931 *** so that a non-GNU linker is found, and then restart.
16938 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)'
16939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940 hardcode_minus_L_GCJ=yes
16942 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16943 # that the semantics of dynamic libraries on AmigaOS, at least up
16944 # to version 4, is to share data among multiple programs linked
16945 # with the same dynamic library. Since this doesn't match the
16946 # behavior of shared libraries on other platforms, we can't use
16952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16953 allow_undefined_flag_GCJ=unsupported
16954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16955 # support --undefined. This deserves some investigation. FIXME
16956 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16962 cygwin* | mingw* | pw32*)
16963 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16964 # as there is no search path for DLLs.
16965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16966 allow_undefined_flag_GCJ=unsupported
16967 always_export_symbols_GCJ=no
16968 enable_shared_with_static_runtimes_GCJ=yes
16969 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16971 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16972 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16973 # If the export-symbols file already is a .def file (1st line
16974 # is EXPORTS), use it as is; otherwise, prepend...
16975 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16976 cp $export_symbols $output_objdir/$soname.def;
16978 echo EXPORTS > $output_objdir/$soname.def;
16979 cat $export_symbols >> $output_objdir/$soname.def;
16981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16988 hardcode_direct_GCJ=no
16989 hardcode_shlibpath_var_GCJ=no
16990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16991 export_dynamic_flag_spec_GCJ='${wl}-E'
16992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16993 # Instead, shared libraries are loaded at an image base (0x10000000 by
16994 # default) and relocated if they conflict, which is a slow very memory
16995 # consuming and fragmenting process. To avoid this, we pick a random,
16996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16997 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16998 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'
16999 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'
17002 gnu* | linux* | k*bsd*-gnu)
17003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17005 case $cc_basename,$host_cpu in
17006 pgcc*) # Portland Group C compiler
17007 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'
17008 tmp_addflag=' $pic_flag'
17010 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17011 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'
17012 tmp_addflag=' $pic_flag -Mnomain' ;;
17013 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17014 tmp_addflag=' -i_dynamic' ;;
17015 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17016 tmp_addflag=' -i_dynamic -nofor_main' ;;
17017 ifc* | ifort*) # Intel Fortran compiler
17018 tmp_addflag=' -nofor_main' ;;
17020 case `$CC -V 2>&1 | sed 5q` in
17021 *Sun\ C*) # Sun C 5.9
17022 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'
17023 tmp_sharedflag='-G' ;;
17024 *Sun\ F*) # Sun Fortran 8.3
17025 tmp_sharedflag='-G' ;;
17027 tmp_sharedflag='-shared' ;;
17029 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17031 if test $supports_anon_versioning = yes; then
17032 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17034 $echo "local: *; };" >> $output_objdir/$libname.ver~
17035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17037 link_all_deplibs_GCJ=no
17043 netbsd* | netbsdelf*-gnu)
17044 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17045 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17048 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17049 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17054 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17058 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17059 *** create shared libraries on Solaris systems. Therefore, libtool
17060 *** is disabling shared libraries support. We urge you to upgrade GNU
17061 *** binutils to release 2.9.1 or newer. Another option is to modify
17062 *** your PATH or compiler configuration so that the native linker is
17063 *** used, and then restart.
17066 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17067 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17068 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17075 case `$LD -v 2>&1` in
17076 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17080 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17081 *** reliably create shared libraries on SCO systems. Therefore, libtool
17082 *** is disabling shared libraries support. We urge you to upgrade GNU
17083 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17084 *** your PATH or compiler configuration so that the native linker is
17085 *** used, and then restart.
17090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17091 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17092 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17093 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17102 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17104 hardcode_direct_GCJ=yes
17105 hardcode_shlibpath_var_GCJ=no
17109 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17110 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17111 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17118 if test "$ld_shlibs_GCJ" = no; then
17120 hardcode_libdir_flag_spec_GCJ=
17121 export_dynamic_flag_spec_GCJ=
17122 whole_archive_flag_spec_GCJ=
17125 # PORTME fill in a description of your system's linker (not GNU ld)
17128 allow_undefined_flag_GCJ=unsupported
17129 always_export_symbols_GCJ=yes
17130 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'
17131 # Note: this linker hardcodes the directories in LIBPATH if there
17132 # are no directories specified by -L.
17133 hardcode_minus_L_GCJ=yes
17134 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17135 # Neither direct hardcoding nor static linking is supported with a
17137 hardcode_direct_GCJ=unsupported
17142 if test "$host_cpu" = ia64; then
17143 # On IA64, the linker does run time linking by default, so we don't
17144 # have to do anything special.
17145 aix_use_runtimelinking=no
17146 exp_sym_flag='-Bexport'
17149 # If we're using GNU nm, then we don't want the "-C" option.
17150 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17151 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17152 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'
17154 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'
17156 aix_use_runtimelinking=no
17158 # Test if we are trying to use run time linking or normal
17159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17160 # need to do runtime linking.
17161 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17162 for ld_flag in $LDFLAGS; do
17163 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17164 aix_use_runtimelinking=yes
17171 exp_sym_flag='-bexport'
17172 no_entry_flag='-bnoentry'
17175 # When large executables or shared objects are built, AIX ld can
17176 # have problems creating the table of contents. If linking a library
17177 # or program results in "error TOC overflow" add -mminimal-toc to
17178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17181 archive_cmds_GCJ=''
17182 hardcode_direct_GCJ=yes
17183 hardcode_libdir_separator_GCJ=':'
17184 link_all_deplibs_GCJ=yes
17186 if test "$GCC" = yes; then
17187 case $host_os in aix4.[012]|aix4.[012].*)
17188 # We only want to do this on AIX 4.2 and lower, the check
17189 # below for broken collect2 doesn't work under 4.3+
17190 collect2name=`${CC} -print-prog-name=collect2`
17191 if test -f "$collect2name" && \
17192 strings "$collect2name" | grep resolve_lib_name >/dev/null
17194 # We have reworked collect2
17197 # We have old collect2
17198 hardcode_direct_GCJ=unsupported
17199 # It fails to find uninstalled libraries when the uninstalled
17200 # path is not listed in the libpath. Setting hardcode_minus_L
17201 # to unsupported forces relinking
17202 hardcode_minus_L_GCJ=yes
17203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17204 hardcode_libdir_separator_GCJ=
17208 shared_flag='-shared'
17209 if test "$aix_use_runtimelinking" = yes; then
17210 shared_flag="$shared_flag "'${wl}-G'
17214 if test "$host_cpu" = ia64; then
17215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17216 # chokes on -Wl,-G. The following line is correct:
17219 if test "$aix_use_runtimelinking" = yes; then
17220 shared_flag='${wl}-G'
17222 shared_flag='${wl}-bM:SRE'
17227 # It seems that -bexpall does not export symbols beginning with
17228 # underscore (_), so it is better to generate a list of symbols to export.
17229 always_export_symbols_GCJ=yes
17230 if test "$aix_use_runtimelinking" = yes; then
17231 # Warning - without using the other runtime loading flags (-brtl),
17232 # -berok will link without error, but may produce a broken library.
17233 allow_undefined_flag_GCJ='-berok'
17234 # Determine the default libpath from the value encoded in an empty executable.
17235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236 /* end confdefs.h. */
17246 if ac_fn_c_try_link "$LINENO"; then :
17248 lt_aix_libpath_sed='
17249 /Import File Strings/,/^$/ {
17255 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17256 # Check for a 64-bit object if we didn't find anything.
17257 if test -z "$aix_libpath"; then
17258 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17261 rm -f core conftest.err conftest.$ac_objext \
17262 conftest$ac_exeext conftest.$ac_ext
17263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17265 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17266 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"
17268 if test "$host_cpu" = ia64; then
17269 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17270 allow_undefined_flag_GCJ="-z nodefs"
17271 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"
17273 # Determine the default libpath from the value encoded in an empty executable.
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17285 if ac_fn_c_try_link "$LINENO"; then :
17287 lt_aix_libpath_sed='
17288 /Import File Strings/,/^$/ {
17294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17295 # Check for a 64-bit object if we didn't find anything.
17296 if test -z "$aix_libpath"; then
17297 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17300 rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17304 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17305 # Warning - without using the other run time loading flags,
17306 # -berok will link without error, but may produce a broken library.
17307 no_undefined_flag_GCJ=' ${wl}-bernotok'
17308 allow_undefined_flag_GCJ=' ${wl}-berok'
17309 # Exported symbols can be pulled into shared objects from archives
17310 whole_archive_flag_spec_GCJ='$convenience'
17311 archive_cmds_need_lc_GCJ=yes
17312 # This is similar to how AIX traditionally builds its shared libraries.
17313 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'
17319 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)'
17320 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17321 hardcode_minus_L_GCJ=yes
17322 # see comment about different semantics on the GNU ld section
17327 export_dynamic_flag_spec_GCJ=-rdynamic
17330 cygwin* | mingw* | pw32*)
17331 # When not using gcc, we currently assume that we are using
17332 # Microsoft Visual C++.
17333 # hardcode_libdir_flag_spec is actually meaningless, as there is
17334 # no search path for DLLs.
17335 hardcode_libdir_flag_spec_GCJ=' '
17336 allow_undefined_flag_GCJ=unsupported
17337 # Tell ltmain to make .lib files, not .a files.
17339 # Tell ltmain to make .dll files, not .so files.
17341 # FIXME: Setting linknames here is a bad hack.
17342 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17343 # The linker will automatically build a .lib file if we build a DLL.
17344 old_archive_From_new_cmds_GCJ='true'
17345 # FIXME: Should let the user specify the lib program.
17346 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17347 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17348 enable_shared_with_static_runtimes_GCJ=yes
17351 darwin* | rhapsody*)
17353 rhapsody* | darwin1.[012])
17354 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17357 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17358 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17360 case ${MACOSX_DEPLOYMENT_TARGET} in
17362 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17365 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17371 archive_cmds_need_lc_GCJ=no
17372 hardcode_direct_GCJ=no
17373 hardcode_automatic_GCJ=yes
17374 hardcode_shlibpath_var_GCJ=unsupported
17375 whole_archive_flag_spec_GCJ=''
17376 link_all_deplibs_GCJ=yes
17377 if test "$GCC" = yes ; then
17378 output_verbose_link_cmd='echo'
17379 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}"
17380 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17381 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}"
17382 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}"
17384 case $cc_basename in
17386 output_verbose_link_cmd='echo'
17387 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17388 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17389 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17390 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}'
17391 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}'
17401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17402 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17403 hardcode_shlibpath_var_GCJ=no
17410 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17411 # support. Future versions do this automatically, but an explicit c++rt0.o
17412 # does not break anything, and helps significantly (at the cost of a little
17415 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17416 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17417 hardcode_direct_GCJ=yes
17418 hardcode_shlibpath_var_GCJ=no
17421 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17423 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17424 hardcode_direct_GCJ=yes
17425 hardcode_minus_L_GCJ=yes
17426 hardcode_shlibpath_var_GCJ=no
17429 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17430 freebsd* | dragonfly*)
17431 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17432 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17433 hardcode_direct_GCJ=yes
17434 hardcode_shlibpath_var_GCJ=no
17438 if test "$GCC" = yes; then
17439 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'
17441 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'
17443 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17444 hardcode_libdir_separator_GCJ=:
17445 hardcode_direct_GCJ=yes
17447 # hardcode_minus_L: Not really in the search PATH,
17448 # but as the default location of the library.
17449 hardcode_minus_L_GCJ=yes
17450 export_dynamic_flag_spec_GCJ='${wl}-E'
17454 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17455 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17457 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17459 if test "$with_gnu_ld" = no; then
17460 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17461 hardcode_libdir_separator_GCJ=:
17463 hardcode_direct_GCJ=yes
17464 export_dynamic_flag_spec_GCJ='${wl}-E'
17466 # hardcode_minus_L: Not really in the search PATH,
17467 # but as the default location of the library.
17468 hardcode_minus_L_GCJ=yes
17473 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17476 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17479 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17482 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17488 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17491 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17494 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17498 if test "$with_gnu_ld" = no; then
17499 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17500 hardcode_libdir_separator_GCJ=:
17504 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17505 hardcode_direct_GCJ=no
17506 hardcode_shlibpath_var_GCJ=no
17509 hardcode_direct_GCJ=yes
17510 export_dynamic_flag_spec_GCJ='${wl}-E'
17512 # hardcode_minus_L: Not really in the search PATH,
17513 # but as the default location of the library.
17514 hardcode_minus_L_GCJ=yes
17520 irix5* | irix6* | nonstopux*)
17521 if test "$GCC" = yes; then
17522 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'
17524 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'
17525 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17527 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17528 hardcode_libdir_separator_GCJ=:
17529 link_all_deplibs_GCJ=yes
17532 netbsd* | netbsdelf*-gnu)
17533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17534 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17536 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17539 hardcode_direct_GCJ=yes
17540 hardcode_shlibpath_var_GCJ=no
17544 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545 hardcode_direct_GCJ=yes
17546 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17547 hardcode_libdir_separator_GCJ=:
17548 hardcode_shlibpath_var_GCJ=no
17552 if test -f /usr/libexec/ld.so; then
17553 hardcode_direct_GCJ=yes
17554 hardcode_shlibpath_var_GCJ=no
17555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17556 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17557 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17558 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17559 export_dynamic_flag_spec_GCJ='${wl}-E'
17562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17563 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17564 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17567 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17568 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17579 hardcode_minus_L_GCJ=yes
17580 allow_undefined_flag_GCJ=unsupported
17581 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'
17582 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17586 if test "$GCC" = yes; then
17587 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17588 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'
17590 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17591 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'
17593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17594 hardcode_libdir_separator_GCJ=:
17597 osf4* | osf5*) # as osf3* with the addition of -msym flag
17598 if test "$GCC" = yes; then
17599 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17600 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'
17601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17603 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17604 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'
17605 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~
17606 $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'
17608 # Both c and cxx compiler support -rpath directly
17609 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17611 hardcode_libdir_separator_GCJ=:
17615 no_undefined_flag_GCJ=' -z text'
17616 if test "$GCC" = yes; then
17618 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17620 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17623 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17625 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17627 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17628 hardcode_shlibpath_var_GCJ=no
17630 solaris2.[0-5] | solaris2.[0-5].*) ;;
17632 # The compiler driver will combine and reorder linker options,
17633 # but understands `-z linker_flag'. GCC discards it without `$wl',
17634 # but is careful enough not to reorder.
17635 # Supported since Solaris 2.6 (maybe 2.5.1?)
17636 if test "$GCC" = yes; then
17637 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17639 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17643 link_all_deplibs_GCJ=yes
17647 if test "x$host_vendor" = xsequent; then
17648 # Use $CC to link under sequent, because it throws in some extra .o
17649 # files that make .init and .fini sections work.
17650 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17652 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17654 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17655 hardcode_direct_GCJ=yes
17656 hardcode_minus_L_GCJ=yes
17657 hardcode_shlibpath_var_GCJ=no
17661 case $host_vendor in
17663 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17664 hardcode_direct_GCJ=yes # is this really true???
17667 ## LD is ld it makes a PLAMLIB
17668 ## CC just makes a GrossModule.
17669 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17670 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17671 hardcode_direct_GCJ=no
17674 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17675 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17678 runpath_var='LD_RUN_PATH'
17679 hardcode_shlibpath_var_GCJ=no
17683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17684 hardcode_shlibpath_var_GCJ=no
17685 export_dynamic_flag_spec_GCJ='-Bexport'
17689 if test -d /usr/nec; then
17690 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17691 hardcode_shlibpath_var_GCJ=no
17692 runpath_var=LD_RUN_PATH
17693 hardcode_runpath_var=yes
17698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17699 no_undefined_flag_GCJ='${wl}-z,text'
17700 archive_cmds_need_lc_GCJ=no
17701 hardcode_shlibpath_var_GCJ=no
17702 runpath_var='LD_RUN_PATH'
17704 if test "$GCC" = yes; then
17705 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17706 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17708 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17709 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17713 sysv5* | sco3.2v5* | sco5v6*)
17714 # Note: We can NOT use -z defs as we might desire, because we do not
17715 # link with -lc, and that would cause any symbols used from libc to
17716 # always be unresolved, which means just about no library would
17717 # ever link correctly. If we're not using GNU ld we use -z text
17718 # though, which does catch some bad symbols but isn't as heavy-handed
17720 no_undefined_flag_GCJ='${wl}-z,text'
17721 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17722 archive_cmds_need_lc_GCJ=no
17723 hardcode_shlibpath_var_GCJ=no
17724 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17725 hardcode_libdir_separator_GCJ=':'
17726 link_all_deplibs_GCJ=yes
17727 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17728 runpath_var='LD_RUN_PATH'
17730 if test "$GCC" = yes; then
17731 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17732 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17734 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17735 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742 hardcode_shlibpath_var_GCJ=no
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17752 $as_echo "$ld_shlibs_GCJ" >&6; }
17753 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17756 # Do we need to explicitly link libc?
17758 case "x$archive_cmds_need_lc_GCJ" in
17760 # Assume -lc should be added
17761 archive_cmds_need_lc_GCJ=yes
17763 if test "$enable_shared" = yes && test "$GCC" = yes; then
17764 case $archive_cmds_GCJ in
17766 # FIXME: we may have to deal with multi-command sequences.
17769 # Test whether the compiler implicitly links with -lc since on some
17770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17771 # to ld, don't add -lc before -lgcc.
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17778 (eval $ac_compile) 2>&5
17780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17781 test $ac_status = 0; } 2>conftest.err; then
17784 libobjs=conftest.$ac_objext
17786 wl=$lt_prog_compiler_wl_GCJ
17787 pic_flag=$lt_prog_compiler_pic_GCJ
17793 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17794 allow_undefined_flag_GCJ=
17795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17796 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17799 test $ac_status = 0; }
17801 archive_cmds_need_lc_GCJ=no
17803 archive_cmds_need_lc_GCJ=yes
17805 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17807 cat conftest.err 1>&5
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17811 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17820 library_names_spec=
17821 libname_spec='lib$name'
17825 postuninstall_cmds=
17829 shlibpath_overrides_runpath=unknown
17831 dynamic_linker="$host_os ld.so"
17832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17834 need_lib_prefix=unknown
17835 hardcode_into_libs=no
17837 # when you set need_version to no, make sure it does not cause -set_version
17838 # flags to be left without arguments
17839 need_version=unknown
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17845 shlibpath_var=LIBPATH
17847 # AIX 3 has no versioning support, so we append a major version to the name.
17848 soname_spec='${libname}${release}${shared_ext}$major'
17855 hardcode_into_libs=yes
17856 if test "$host_cpu" = ia64; then
17857 # AIX 5 supports IA64
17858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17859 shlibpath_var=LD_LIBRARY_PATH
17861 # With GCC up to 2.95.x, collect2 would create an import file
17862 # for dependence libraries. The import file would start with
17863 # the line `#! .'. This would cause the generated library to
17864 # depend on `.', always an invalid library. This was fixed in
17865 # development snapshots of GCC prior to 3.0.
17867 aix4 | aix4.[01] | aix4.[01].*)
17868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17870 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17873 can_build_shared=no
17877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17878 # soname into executable. Probably we can add versioning support to
17879 # collect2, so additional links can be useful in future.
17880 if test "$aix_use_runtimelinking" = yes; then
17881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17882 # instead of lib<name>.a to let people know that these are not
17883 # typical AIX shared libraries.
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 # We preserve .a as extension for shared libraries through AIX4.2
17887 # and later when we are not doing run time linking.
17888 library_names_spec='${libname}${release}.a $libname.a'
17889 soname_spec='${libname}${release}${shared_ext}$major'
17891 shlibpath_var=LIBPATH
17896 library_names_spec='$libname.ixlibrary $libname.a'
17897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17898 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'
17902 library_names_spec='${libname}${shared_ext}'
17903 dynamic_linker="$host_os ld.so"
17904 shlibpath_var=LIBRARY_PATH
17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911 soname_spec='${libname}${release}${shared_ext}$major'
17912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17916 # the default ld.so.conf also contains /usr/contrib/lib and
17917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17918 # libtool to hard-code these into programs
17921 cygwin* | mingw* | pw32*)
17922 version_type=windows
17927 case $GCC,$host_os in
17928 yes,cygwin* | yes,mingw* | yes,pw32*)
17929 library_names_spec='$libname.dll.a'
17930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17931 postinstall_cmds='base_file=`basename \${file}`~
17932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17933 dldir=$destdir/`dirname \$dlpath`~
17934 test -d \$dldir || mkdir -p \$dldir~
17935 $install_prog $dir/$dlname \$dldir/$dlname~
17936 chmod a+x \$dldir/$dlname'
17937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17938 dlpath=$dir/\$dldll~
17940 shlibpath_overrides_runpath=yes
17944 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17945 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17946 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17949 # MinGW DLLs use traditional 'lib' prefix
17950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17951 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17952 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17953 # It is most probably a Windows format PATH printed by
17954 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17955 # path with ; separators, and with drive letters. We can handle the
17956 # drive letters (cygwin fileutils understands them), so leave them,
17957 # especially as we might pass files found there to a mingw objdump,
17958 # which wouldn't understand a cygwinified path. Ahh.
17959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17965 # pw32 DLLs use 'pw' prefix rather than 'lib'
17966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17972 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17975 dynamic_linker='Win32 ld.exe'
17976 # FIXME: first we should search . and the directory the executable is in
17980 darwin* | rhapsody*)
17981 dynamic_linker="$host_os dyld"
17982 version_type=darwin
17985 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17986 soname_spec='${libname}${release}${major}$shared_ext'
17987 shlibpath_overrides_runpath=yes
17988 shlibpath_var=DYLD_LIBRARY_PATH
17989 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17999 soname_spec='${libname}${release}${shared_ext}$major'
18000 shlibpath_var=LD_LIBRARY_PATH
18007 freebsd* | dragonfly*)
18008 # DragonFly does not have aout. When/if they implement a new
18009 # versioning mechanism, adjust this.
18010 if test -x /usr/bin/objformat; then
18011 objformat=`/usr/bin/objformat`
18014 freebsd[123]*) objformat=aout ;;
18015 *) objformat=elf ;;
18018 version_type=freebsd-$objformat
18019 case $version_type in
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18030 shlibpath_var=LD_LIBRARY_PATH
18033 shlibpath_overrides_runpath=yes
18035 freebsd3.[01]* | freebsdelf3.[01]*)
18036 shlibpath_overrides_runpath=yes
18037 hardcode_into_libs=yes
18039 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18040 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18041 shlibpath_overrides_runpath=no
18042 hardcode_into_libs=yes
18044 *) # from 4.6 on, and DragonFly
18045 shlibpath_overrides_runpath=yes
18046 hardcode_into_libs=yes
18055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18056 soname_spec='${libname}${release}${shared_ext}$major'
18057 shlibpath_var=LD_LIBRARY_PATH
18058 hardcode_into_libs=yes
18061 hpux9* | hpux10* | hpux11*)
18062 # Give a soname corresponding to the major version so that dld.sl refuses to
18063 # link against other versions.
18070 hardcode_into_libs=yes
18071 dynamic_linker="$host_os dld.so"
18072 shlibpath_var=LD_LIBRARY_PATH
18073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075 soname_spec='${libname}${release}${shared_ext}$major'
18076 if test "X$HPUX_IA64_MODE" = X32; then
18077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18085 hardcode_into_libs=yes
18086 dynamic_linker="$host_os dld.sl"
18087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18090 soname_spec='${libname}${release}${shared_ext}$major'
18091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18096 dynamic_linker="$host_os dld.sl"
18097 shlibpath_var=SHLIB_PATH
18098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18103 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18104 postinstall_cmds='chmod 555 $lib'
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18112 soname_spec='${libname}${release}${shared_ext}$major'
18113 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18114 shlibpath_var=LD_LIBRARY_PATH
18115 shlibpath_overrides_runpath=no
18116 hardcode_into_libs=yes
18119 irix5* | irix6* | nonstopux*)
18121 nonstopux*) version_type=nonstopux ;;
18123 if test "$lt_cv_prog_gnu_ld" = yes; then
18131 soname_spec='${libname}${release}${shared_ext}$major'
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18134 irix5* | nonstopux*)
18135 libsuff= shlibsuff=
18138 case $LD in # libtool.m4 will add one of these switches to LD
18139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18140 libsuff= shlibsuff= libmagic=32-bit;;
18141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18142 libsuff=32 shlibsuff=N32 libmagic=N32;;
18143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18145 *) libsuff= shlibsuff= libmagic=never-match;;
18149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18150 shlibpath_overrides_runpath=no
18151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18153 hardcode_into_libs=yes
18156 # No shared lib support for Linux oldld, aout, or coff.
18157 linux*oldld* | linux*aout* | linux*coff*)
18161 # This must be Linux ELF.
18162 linux* | k*bsd*-gnu)
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167 soname_spec='${libname}${release}${shared_ext}$major'
18168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18169 shlibpath_var=LD_LIBRARY_PATH
18170 shlibpath_overrides_runpath=no
18171 # This implies no fast_install, which is unacceptable.
18172 # Some rework will be needed to allow for fast_install
18173 # before this can be enabled.
18174 hardcode_into_libs=yes
18176 # Append ld.so.conf contents to the search path
18177 if test -f /etc/ld.so.conf; then
18178 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' ' '`
18179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18182 # We used to test for /lib/ld.so.1 and disable shared libraries on
18183 # powerpc, because MkLinux only supported shared libraries with the
18184 # GNU dynamic linker. Since this was broken with cross compilers,
18185 # most powerpc-linux boxes support dynamic linking these days and
18186 # people can always --disable-shared, the test was removed, and we
18187 # assume the GNU/Linux dynamic linker is in use.
18188 dynamic_linker='GNU/Linux ld.so'
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath=no
18199 hardcode_into_libs=yes
18200 dynamic_linker='NetBSD ld.elf_so'
18207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18210 dynamic_linker='NetBSD (a.out) ld.so'
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 dynamic_linker='NetBSD ld.elf_so'
18216 shlibpath_var=LD_LIBRARY_PATH
18217 shlibpath_overrides_runpath=yes
18218 hardcode_into_libs=yes
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 shlibpath_overrides_runpath=yes
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=yes
18240 sys_lib_dlsearch_path_spec="/usr/lib"
18242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18245 *) need_version=no ;;
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18252 openbsd2.[89] | openbsd2.[89].*)
18253 shlibpath_overrides_runpath=no
18256 shlibpath_overrides_runpath=yes
18260 shlibpath_overrides_runpath=yes
18265 libname_spec='$name'
18268 library_names_spec='$libname${shared_ext} $libname.a'
18269 dynamic_linker='OS/2 ld.exe'
18270 shlibpath_var=LIBPATH
18273 osf3* | osf4* | osf5*)
18277 soname_spec='${libname}${release}${shared_ext}$major'
18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293 soname_spec='${libname}${release}${shared_ext}$major'
18294 shlibpath_var=LD_LIBRARY_PATH
18295 shlibpath_overrides_runpath=yes
18296 hardcode_into_libs=yes
18297 # ldd complains unless libraries are executable
18298 postinstall_cmds='chmod +x $lib'
18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18305 shlibpath_var=LD_LIBRARY_PATH
18306 shlibpath_overrides_runpath=yes
18307 if test "$with_gnu_ld" = yes; then
18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316 soname_spec='${libname}${release}${shared_ext}$major'
18317 shlibpath_var=LD_LIBRARY_PATH
18318 case $host_vendor in
18320 shlibpath_overrides_runpath=no
18322 export_dynamic_flag_spec='${wl}-Blargedynsym'
18323 runpath_var=LD_RUN_PATH
18331 shlibpath_overrides_runpath=no
18332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18338 if test -d /usr/nec ;then
18340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18341 soname_spec='$libname${shared_ext}.$major'
18342 shlibpath_var=LD_LIBRARY_PATH
18346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18347 version_type=freebsd-elf
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18351 soname_spec='${libname}${release}${shared_ext}$major'
18352 shlibpath_var=LD_LIBRARY_PATH
18353 hardcode_into_libs=yes
18354 if test "$with_gnu_ld" = yes; then
18355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18356 shlibpath_overrides_runpath=no
18358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18359 shlibpath_overrides_runpath=yes
18362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18366 sys_lib_dlsearch_path_spec='/usr/lib'
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 soname_spec='${libname}${release}${shared_ext}$major'
18373 shlibpath_var=LD_LIBRARY_PATH
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18381 $as_echo "$dynamic_linker" >&6; }
18382 test "$dynamic_linker" = no && can_build_shared=no
18384 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18385 $as_echo_n "(cached) " >&6
18387 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18390 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18391 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18392 $as_echo_n "(cached) " >&6
18394 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18397 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18399 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18400 if test "$GCC" = yes; then
18401 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18405 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18406 hardcode_action_GCJ=
18407 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18408 test -n "$runpath_var_GCJ" || \
18409 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18411 # We can hardcode non-existant directories.
18412 if test "$hardcode_direct_GCJ" != no &&
18413 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18414 # have to relink, otherwise we might link with an installed library
18415 # when we should be linking with a yet-to-be-installed one
18416 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18417 test "$hardcode_minus_L_GCJ" != no; then
18418 # Linking always hardcodes the temporary library directory.
18419 hardcode_action_GCJ=relink
18421 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18422 hardcode_action_GCJ=immediate
18425 # We cannot hardcode anything, or else we can only hardcode existing
18427 hardcode_action_GCJ=unsupported
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18430 $as_echo "$hardcode_action_GCJ" >&6; }
18432 if test "$hardcode_action_GCJ" = relink; then
18433 # Fast installation is not supported
18434 enable_fast_install=no
18435 elif test "$shlibpath_overrides_runpath" = yes ||
18436 test "$enable_shared" = no; then
18437 # Fast installation is not necessary
18438 enable_fast_install=needless
18442 # The else clause should only fire when bootstrapping the
18443 # libtool distribution, otherwise you forgot to ship ltmain.sh
18444 # with your package, and you will get complaints that there are
18445 # no rules to generate ltmain.sh.
18446 if test -f "$ltmain"; then
18447 # See if we are running on zsh, and set the options which allow our commands through
18448 # without removal of \ escapes.
18449 if test -n "${ZSH_VERSION+set}" ; then
18450 setopt NO_GLOB_SUBST
18452 # Now quote all the things that may contain metacharacters while being
18453 # careful not to overquote the AC_SUBSTed values. We take copies of the
18454 # variables and quote the copies for generation of the libtool script.
18455 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18459 deplibs_check_method reload_flag reload_cmds need_locks \
18460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18461 lt_cv_sys_global_symbol_to_c_name_address \
18462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18463 old_postinstall_cmds old_postuninstall_cmds \
18467 lt_prog_compiler_wl_GCJ \
18468 lt_prog_compiler_pic_GCJ \
18469 lt_prog_compiler_static_GCJ \
18470 lt_prog_compiler_no_builtin_flag_GCJ \
18471 export_dynamic_flag_spec_GCJ \
18472 thread_safe_flag_spec_GCJ \
18473 whole_archive_flag_spec_GCJ \
18474 enable_shared_with_static_runtimes_GCJ \
18475 old_archive_cmds_GCJ \
18476 old_archive_from_new_cmds_GCJ \
18477 predep_objects_GCJ \
18478 postdep_objects_GCJ \
18481 compiler_lib_search_path_GCJ \
18482 compiler_lib_search_dirs_GCJ \
18484 archive_expsym_cmds_GCJ \
18485 postinstall_cmds_GCJ \
18486 postuninstall_cmds_GCJ \
18487 old_archive_from_expsyms_cmds_GCJ \
18488 allow_undefined_flag_GCJ \
18489 no_undefined_flag_GCJ \
18490 export_symbols_cmds_GCJ \
18491 hardcode_libdir_flag_spec_GCJ \
18492 hardcode_libdir_flag_spec_ld_GCJ \
18493 hardcode_libdir_separator_GCJ \
18494 hardcode_automatic_GCJ \
18496 module_expsym_cmds_GCJ \
18497 lt_cv_prog_compiler_c_o_GCJ \
18498 fix_srcfile_path_GCJ \
18499 exclude_expsyms_GCJ \
18500 include_expsyms_GCJ; do
18503 old_archive_cmds_GCJ | \
18504 old_archive_from_new_cmds_GCJ | \
18505 archive_cmds_GCJ | \
18506 archive_expsym_cmds_GCJ | \
18507 module_cmds_GCJ | \
18508 module_expsym_cmds_GCJ | \
18509 old_archive_from_expsyms_cmds_GCJ | \
18510 export_symbols_cmds_GCJ | \
18511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18512 postinstall_cmds | postuninstall_cmds | \
18513 old_postinstall_cmds | old_postuninstall_cmds | \
18514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18515 # Double-quote double-evaled strings.
18516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18525 *'\$0 --fallback-echo"')
18526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18532 cat <<__EOF__ >> "$cfgfile"
18533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18537 # Shell to use when invoking shell scripts.
18540 # Whether or not to build shared libraries.
18541 build_libtool_libs=$enable_shared
18543 # Whether or not to build static libraries.
18544 build_old_libs=$enable_static
18546 # Whether or not to add -lc for building shared libraries.
18547 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18549 # Whether or not to disallow shared libs when runtime libs are static
18550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18552 # Whether or not to optimize for fast installation.
18553 fast_install=$enable_fast_install
18556 host_alias=$host_alias
18560 # The build system.
18561 build_alias=$build_alias
18565 # An echo program that does not interpret backslashes.
18570 AR_FLAGS=$lt_AR_FLAGS
18575 # LTCC compiler flags.
18576 LTCFLAGS=$lt_LTCFLAGS
18578 # A language-specific compiler.
18579 CC=$lt_compiler_GCJ
18581 # Is the compiler the GNU C compiler?
18587 # The linker used to build libraries.
18590 # Whether we need hard or soft links.
18593 # A BSD-compatible nm program.
18596 # A symbol stripping program
18599 # Used to examine libraries when file_magic_cmd begins "file"
18600 MAGIC_CMD=$MAGIC_CMD
18602 # Used on cygwin: DLL creation program.
18605 # Used on cygwin: object dumper.
18608 # Used on cygwin: assembler.
18611 # The name of the directory that contains temporary libtool files.
18614 # How to create reloadable object files.
18615 reload_flag=$lt_reload_flag
18616 reload_cmds=$lt_reload_cmds
18618 # How to pass a linker flag through the compiler.
18619 wl=$lt_lt_prog_compiler_wl_GCJ
18621 # Object file suffix (normally "o").
18622 objext="$ac_objext"
18624 # Old archive suffix (normally "a").
18627 # Shared library suffix (normally ".so").
18628 shrext_cmds='$shrext_cmds'
18630 # Executable file suffix (normally "").
18633 # Additional compiler flags for building library objects.
18634 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18637 # What is the maximum length of a command?
18638 max_cmd_len=$lt_cv_sys_max_cmd_len
18640 # Does compiler simultaneously support -c and -o options?
18641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18643 # Must we lock files when doing compilation?
18644 need_locks=$lt_need_locks
18646 # Do we need the lib prefix for modules?
18647 need_lib_prefix=$need_lib_prefix
18649 # Do we need a version for libraries?
18650 need_version=$need_version
18652 # Whether dlopen is supported.
18653 dlopen_support=$enable_dlopen
18655 # Whether dlopen of programs is supported.
18656 dlopen_self=$enable_dlopen_self
18658 # Whether dlopen of statically linked programs is supported.
18659 dlopen_self_static=$enable_dlopen_self_static
18661 # Compiler flag to prevent dynamic linking.
18662 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18664 # Compiler flag to turn off builtin functions.
18665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18667 # Compiler flag to allow reflexive dlopens.
18668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18670 # Compiler flag to generate shared objects directly from archives.
18671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18673 # Compiler flag to generate thread-safe objects.
18674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18676 # Library versioning type.
18677 version_type=$version_type
18679 # Format of library name prefix.
18680 libname_spec=$lt_libname_spec
18682 # List of archive names. First name is the real one, the rest are links.
18683 # The last name is the one that the linker finds with -lNAME.
18684 library_names_spec=$lt_library_names_spec
18686 # The coded name of the library, if different from the real name.
18687 soname_spec=$lt_soname_spec
18689 # Commands used to build and install an old-style archive.
18691 old_archive_cmds=$lt_old_archive_cmds_GCJ
18692 old_postinstall_cmds=$lt_old_postinstall_cmds
18693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18695 # Create an old-style archive from a shared archive.
18696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18698 # Create a temporary old-style archive to link instead of a shared archive.
18699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18701 # Commands used to build and install a shared archive.
18702 archive_cmds=$lt_archive_cmds_GCJ
18703 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18704 postinstall_cmds=$lt_postinstall_cmds
18705 postuninstall_cmds=$lt_postuninstall_cmds
18707 # Commands used to build a loadable module (assumed same as above if empty)
18708 module_cmds=$lt_module_cmds_GCJ
18709 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18711 # Commands to strip libraries.
18712 old_striplib=$lt_old_striplib
18713 striplib=$lt_striplib
18715 # Dependencies to place before the objects being linked to create a
18717 predep_objects=$lt_predep_objects_GCJ
18719 # Dependencies to place after the objects being linked to create a
18721 postdep_objects=$lt_postdep_objects_GCJ
18723 # Dependencies to place before the objects being linked to create a
18725 predeps=$lt_predeps_GCJ
18727 # Dependencies to place after the objects being linked to create a
18729 postdeps=$lt_postdeps_GCJ
18731 # The directories searched by this compiler when creating a shared
18733 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18735 # The library search path used internally by the compiler when linking
18736 # a shared library.
18737 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18739 # Method to check whether dependent libraries are shared objects.
18740 deplibs_check_method=$lt_deplibs_check_method
18742 # Command to use when deplibs_check_method == file_magic.
18743 file_magic_cmd=$lt_file_magic_cmd
18745 # Flag that allows shared libraries with undefined symbols to be built.
18746 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18748 # Flag that forces no undefined symbols.
18749 no_undefined_flag=$lt_no_undefined_flag_GCJ
18751 # Commands used to finish a libtool library installation in a directory.
18752 finish_cmds=$lt_finish_cmds
18754 # Same as above, but a single script fragment to be evaled but not shown.
18755 finish_eval=$lt_finish_eval
18757 # Take the output of nm and produce a listing of raw symbols and C names.
18758 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18760 # Transform the output of nm in a proper C declaration
18761 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18763 # Transform the output of nm in a C name address pair
18764 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18766 # This is the shared library runtime path variable.
18767 runpath_var=$runpath_var
18769 # This is the shared library path variable.
18770 shlibpath_var=$shlibpath_var
18772 # Is shlibpath searched before the hard-coded library search path?
18773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18775 # How to hardcode a shared library path into an executable.
18776 hardcode_action=$hardcode_action_GCJ
18778 # Whether we should hardcode library paths into libraries.
18779 hardcode_into_libs=$hardcode_into_libs
18781 # Flag to hardcode \$libdir into a binary during linking.
18782 # This must work even if \$libdir does not exist.
18783 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18785 # If ld is used when linking, flag to hardcode \$libdir into
18786 # a binary during linking. This must work even if \$libdir does
18788 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18790 # Whether we need a single -rpath flag with a separated argument.
18791 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18793 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18794 # resulting binary.
18795 hardcode_direct=$hardcode_direct_GCJ
18797 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18798 # resulting binary.
18799 hardcode_minus_L=$hardcode_minus_L_GCJ
18801 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18802 # the resulting binary.
18803 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18805 # Set to yes if building a shared library automatically hardcodes DIR into the library
18806 # and all subsequent libraries and executables linked against it.
18807 hardcode_automatic=$hardcode_automatic_GCJ
18809 # Variables whose values should be saved in libtool wrapper scripts and
18810 # restored at relink time.
18811 variables_saved_for_relink="$variables_saved_for_relink"
18813 # Whether libtool must link a program against all its dependency libraries.
18814 link_all_deplibs=$link_all_deplibs_GCJ
18816 # Compile-time system search path for libraries
18817 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18819 # Run-time system search path for libraries
18820 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18822 # Fix the shell variable \$srcfile for the compiler.
18823 fix_srcfile_path=$lt_fix_srcfile_path
18825 # Set to yes if exported symbols are required.
18826 always_export_symbols=$always_export_symbols_GCJ
18828 # The commands to list exported symbols.
18829 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18831 # The commands to extract the exported symbol list from a shared archive.
18832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18834 # Symbols that should not be listed in the preloaded symbols.
18835 exclude_expsyms=$lt_exclude_expsyms_GCJ
18837 # Symbols that must always be exported.
18838 include_expsyms=$lt_include_expsyms_GCJ
18840 # ### END LIBTOOL TAG CONFIG: $tagname
18846 # If there is no Makefile yet, we rely on a make rule to execute
18847 # `config.status --recheck' to rerun these tests and create the
18848 # libtool script then.
18849 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18850 if test -f "$ltmain_in"; then
18851 test -f Makefile && make "$ltmain"
18857 ac_cpp='$CPP $CPPFLAGS'
18858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18872 # Source file extension for RC test sources.
18875 # Object file extension for compiled RC test sources.
18879 # Code to be used in simple compile tests
18880 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18882 # Code to be used in simple link tests
18883 lt_simple_link_test_code="$lt_simple_compile_test_code"
18885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18887 # If no C compiler was specified, use CC.
18890 # If no C compiler flags were specified, use CFLAGS.
18891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18893 # Allow CC to be a program name with arguments.
18897 # save warnings/boilerplate of simple test code
18898 ac_outfile=conftest.$ac_objext
18899 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18901 _lt_compiler_boilerplate=`cat conftest.err`
18904 ac_outfile=conftest.$ac_objext
18905 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18907 _lt_linker_boilerplate=`cat conftest.err`
18911 # Allow CC to be a program name with arguments.
18916 for cc_temp in $compiler""; do
18918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18924 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18926 lt_cv_prog_compiler_c_o_RC=yes
18928 # The else clause should only fire when bootstrapping the
18929 # libtool distribution, otherwise you forgot to ship ltmain.sh
18930 # with your package, and you will get complaints that there are
18931 # no rules to generate ltmain.sh.
18932 if test -f "$ltmain"; then
18933 # See if we are running on zsh, and set the options which allow our commands through
18934 # without removal of \ escapes.
18935 if test -n "${ZSH_VERSION+set}" ; then
18936 setopt NO_GLOB_SUBST
18938 # Now quote all the things that may contain metacharacters while being
18939 # careful not to overquote the AC_SUBSTed values. We take copies of the
18940 # variables and quote the copies for generation of the libtool script.
18941 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18943 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18944 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18945 deplibs_check_method reload_flag reload_cmds need_locks \
18946 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18947 lt_cv_sys_global_symbol_to_c_name_address \
18948 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18949 old_postinstall_cmds old_postuninstall_cmds \
18953 lt_prog_compiler_wl_RC \
18954 lt_prog_compiler_pic_RC \
18955 lt_prog_compiler_static_RC \
18956 lt_prog_compiler_no_builtin_flag_RC \
18957 export_dynamic_flag_spec_RC \
18958 thread_safe_flag_spec_RC \
18959 whole_archive_flag_spec_RC \
18960 enable_shared_with_static_runtimes_RC \
18961 old_archive_cmds_RC \
18962 old_archive_from_new_cmds_RC \
18963 predep_objects_RC \
18964 postdep_objects_RC \
18967 compiler_lib_search_path_RC \
18968 compiler_lib_search_dirs_RC \
18970 archive_expsym_cmds_RC \
18971 postinstall_cmds_RC \
18972 postuninstall_cmds_RC \
18973 old_archive_from_expsyms_cmds_RC \
18974 allow_undefined_flag_RC \
18975 no_undefined_flag_RC \
18976 export_symbols_cmds_RC \
18977 hardcode_libdir_flag_spec_RC \
18978 hardcode_libdir_flag_spec_ld_RC \
18979 hardcode_libdir_separator_RC \
18980 hardcode_automatic_RC \
18982 module_expsym_cmds_RC \
18983 lt_cv_prog_compiler_c_o_RC \
18984 fix_srcfile_path_RC \
18985 exclude_expsyms_RC \
18986 include_expsyms_RC; do
18989 old_archive_cmds_RC | \
18990 old_archive_from_new_cmds_RC | \
18991 archive_cmds_RC | \
18992 archive_expsym_cmds_RC | \
18994 module_expsym_cmds_RC | \
18995 old_archive_from_expsyms_cmds_RC | \
18996 export_symbols_cmds_RC | \
18997 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18998 postinstall_cmds | postuninstall_cmds | \
18999 old_postinstall_cmds | old_postuninstall_cmds | \
19000 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19001 # Double-quote double-evaled strings.
19002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19011 *'\$0 --fallback-echo"')
19012 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19018 cat <<__EOF__ >> "$cfgfile"
19019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19023 # Shell to use when invoking shell scripts.
19026 # Whether or not to build shared libraries.
19027 build_libtool_libs=$enable_shared
19029 # Whether or not to build static libraries.
19030 build_old_libs=$enable_static
19032 # Whether or not to add -lc for building shared libraries.
19033 build_libtool_need_lc=$archive_cmds_need_lc_RC
19035 # Whether or not to disallow shared libs when runtime libs are static
19036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19038 # Whether or not to optimize for fast installation.
19039 fast_install=$enable_fast_install
19042 host_alias=$host_alias
19046 # The build system.
19047 build_alias=$build_alias
19051 # An echo program that does not interpret backslashes.
19056 AR_FLAGS=$lt_AR_FLAGS
19061 # LTCC compiler flags.
19062 LTCFLAGS=$lt_LTCFLAGS
19064 # A language-specific compiler.
19067 # Is the compiler the GNU C compiler?
19073 # The linker used to build libraries.
19076 # Whether we need hard or soft links.
19079 # A BSD-compatible nm program.
19082 # A symbol stripping program
19085 # Used to examine libraries when file_magic_cmd begins "file"
19086 MAGIC_CMD=$MAGIC_CMD
19088 # Used on cygwin: DLL creation program.
19091 # Used on cygwin: object dumper.
19094 # Used on cygwin: assembler.
19097 # The name of the directory that contains temporary libtool files.
19100 # How to create reloadable object files.
19101 reload_flag=$lt_reload_flag
19102 reload_cmds=$lt_reload_cmds
19104 # How to pass a linker flag through the compiler.
19105 wl=$lt_lt_prog_compiler_wl_RC
19107 # Object file suffix (normally "o").
19108 objext="$ac_objext"
19110 # Old archive suffix (normally "a").
19113 # Shared library suffix (normally ".so").
19114 shrext_cmds='$shrext_cmds'
19116 # Executable file suffix (normally "").
19119 # Additional compiler flags for building library objects.
19120 pic_flag=$lt_lt_prog_compiler_pic_RC
19123 # What is the maximum length of a command?
19124 max_cmd_len=$lt_cv_sys_max_cmd_len
19126 # Does compiler simultaneously support -c and -o options?
19127 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19129 # Must we lock files when doing compilation?
19130 need_locks=$lt_need_locks
19132 # Do we need the lib prefix for modules?
19133 need_lib_prefix=$need_lib_prefix
19135 # Do we need a version for libraries?
19136 need_version=$need_version
19138 # Whether dlopen is supported.
19139 dlopen_support=$enable_dlopen
19141 # Whether dlopen of programs is supported.
19142 dlopen_self=$enable_dlopen_self
19144 # Whether dlopen of statically linked programs is supported.
19145 dlopen_self_static=$enable_dlopen_self_static
19147 # Compiler flag to prevent dynamic linking.
19148 link_static_flag=$lt_lt_prog_compiler_static_RC
19150 # Compiler flag to turn off builtin functions.
19151 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19153 # Compiler flag to allow reflexive dlopens.
19154 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19156 # Compiler flag to generate shared objects directly from archives.
19157 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19159 # Compiler flag to generate thread-safe objects.
19160 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19162 # Library versioning type.
19163 version_type=$version_type
19165 # Format of library name prefix.
19166 libname_spec=$lt_libname_spec
19168 # List of archive names. First name is the real one, the rest are links.
19169 # The last name is the one that the linker finds with -lNAME.
19170 library_names_spec=$lt_library_names_spec
19172 # The coded name of the library, if different from the real name.
19173 soname_spec=$lt_soname_spec
19175 # Commands used to build and install an old-style archive.
19177 old_archive_cmds=$lt_old_archive_cmds_RC
19178 old_postinstall_cmds=$lt_old_postinstall_cmds
19179 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19181 # Create an old-style archive from a shared archive.
19182 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19184 # Create a temporary old-style archive to link instead of a shared archive.
19185 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19187 # Commands used to build and install a shared archive.
19188 archive_cmds=$lt_archive_cmds_RC
19189 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19190 postinstall_cmds=$lt_postinstall_cmds
19191 postuninstall_cmds=$lt_postuninstall_cmds
19193 # Commands used to build a loadable module (assumed same as above if empty)
19194 module_cmds=$lt_module_cmds_RC
19195 module_expsym_cmds=$lt_module_expsym_cmds_RC
19197 # Commands to strip libraries.
19198 old_striplib=$lt_old_striplib
19199 striplib=$lt_striplib
19201 # Dependencies to place before the objects being linked to create a
19203 predep_objects=$lt_predep_objects_RC
19205 # Dependencies to place after the objects being linked to create a
19207 postdep_objects=$lt_postdep_objects_RC
19209 # Dependencies to place before the objects being linked to create a
19211 predeps=$lt_predeps_RC
19213 # Dependencies to place after the objects being linked to create a
19215 postdeps=$lt_postdeps_RC
19217 # The directories searched by this compiler when creating a shared
19219 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19221 # The library search path used internally by the compiler when linking
19222 # a shared library.
19223 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19225 # Method to check whether dependent libraries are shared objects.
19226 deplibs_check_method=$lt_deplibs_check_method
19228 # Command to use when deplibs_check_method == file_magic.
19229 file_magic_cmd=$lt_file_magic_cmd
19231 # Flag that allows shared libraries with undefined symbols to be built.
19232 allow_undefined_flag=$lt_allow_undefined_flag_RC
19234 # Flag that forces no undefined symbols.
19235 no_undefined_flag=$lt_no_undefined_flag_RC
19237 # Commands used to finish a libtool library installation in a directory.
19238 finish_cmds=$lt_finish_cmds
19240 # Same as above, but a single script fragment to be evaled but not shown.
19241 finish_eval=$lt_finish_eval
19243 # Take the output of nm and produce a listing of raw symbols and C names.
19244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19246 # Transform the output of nm in a proper C declaration
19247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19249 # Transform the output of nm in a C name address pair
19250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19252 # This is the shared library runtime path variable.
19253 runpath_var=$runpath_var
19255 # This is the shared library path variable.
19256 shlibpath_var=$shlibpath_var
19258 # Is shlibpath searched before the hard-coded library search path?
19259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19261 # How to hardcode a shared library path into an executable.
19262 hardcode_action=$hardcode_action_RC
19264 # Whether we should hardcode library paths into libraries.
19265 hardcode_into_libs=$hardcode_into_libs
19267 # Flag to hardcode \$libdir into a binary during linking.
19268 # This must work even if \$libdir does not exist.
19269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19271 # If ld is used when linking, flag to hardcode \$libdir into
19272 # a binary during linking. This must work even if \$libdir does
19274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19276 # Whether we need a single -rpath flag with a separated argument.
19277 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19279 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19280 # resulting binary.
19281 hardcode_direct=$hardcode_direct_RC
19283 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19284 # resulting binary.
19285 hardcode_minus_L=$hardcode_minus_L_RC
19287 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19288 # the resulting binary.
19289 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19291 # Set to yes if building a shared library automatically hardcodes DIR into the library
19292 # and all subsequent libraries and executables linked against it.
19293 hardcode_automatic=$hardcode_automatic_RC
19295 # Variables whose values should be saved in libtool wrapper scripts and
19296 # restored at relink time.
19297 variables_saved_for_relink="$variables_saved_for_relink"
19299 # Whether libtool must link a program against all its dependency libraries.
19300 link_all_deplibs=$link_all_deplibs_RC
19302 # Compile-time system search path for libraries
19303 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19305 # Run-time system search path for libraries
19306 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19308 # Fix the shell variable \$srcfile for the compiler.
19309 fix_srcfile_path=$lt_fix_srcfile_path
19311 # Set to yes if exported symbols are required.
19312 always_export_symbols=$always_export_symbols_RC
19314 # The commands to list exported symbols.
19315 export_symbols_cmds=$lt_export_symbols_cmds_RC
19317 # The commands to extract the exported symbol list from a shared archive.
19318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19320 # Symbols that should not be listed in the preloaded symbols.
19321 exclude_expsyms=$lt_exclude_expsyms_RC
19323 # Symbols that must always be exported.
19324 include_expsyms=$lt_include_expsyms_RC
19326 # ### END LIBTOOL TAG CONFIG: $tagname
19332 # If there is no Makefile yet, we rely on a make rule to execute
19333 # `config.status --recheck' to rerun these tests and create the
19334 # libtool script then.
19335 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19336 if test -f "$ltmain_in"; then
19337 test -f Makefile && make "$ltmain"
19343 ac_cpp='$CPP $CPPFLAGS'
19344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19353 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19357 # Append the new tag name to the list of available tags.
19358 if test -n "$tagname" ; then
19359 available_tags="$available_tags $tagname"
19365 # Now substitute the updated list of available tags.
19366 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19367 mv "${ofile}T" "$ofile"
19371 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19377 # This can be used to rebuild libtool when needed
19378 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19380 # Always use our own libtool.
19381 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19383 # Prevent multiple expansion
19396 # Check whether --with-system-libtool was given.
19397 if test "${with_system_libtool+set}" = set; then :
19398 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19399 set dummy libtool; ac_word=$2
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19401 $as_echo_n "checking for $ac_word... " >&6; }
19402 if ${ac_cv_path_LIBTOOL+:} false; then :
19403 $as_echo_n "(cached) " >&6
19407 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19411 as_dummy="$PATH:/usr/local/bin"
19412 for as_dir in $as_dummy
19415 test -z "$as_dir" && as_dir=.
19416 for ac_exec_ext in '' $ac_executable_extensions; do
19417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19418 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19429 LIBTOOL=$ac_cv_path_LIBTOOL
19430 if test -n "$LIBTOOL"; then
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19432 $as_echo "$LIBTOOL" >&6; }
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19435 $as_echo "no" >&6; }
19451 LIBTOOL="`pwd`/libtool"
19463 # Check whether --enable-strict-dependencies was given.
19464 if test "${enable_strict_dependencies+set}" = set; then :
19465 enableval=$enable_strict_dependencies;
19469 docdir='${datadir}/doc/freeradius'
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19471 $as_echo_n "checking docdir... " >&6; }
19473 # Check whether --with-docdir was given.
19474 if test "${with_docdir+set}" = set; then :
19475 withval=$with_docdir; case "$withval" in
19481 [\\/$]* | ?:[\\/]* )
19485 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19493 $as_echo "$docdir" >&6; }
19494 if test "x$docdir" = xno; then
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19496 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19499 logdir='${localstatedir}/log/radius'
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19501 $as_echo_n "checking logdir... " >&6; }
19503 # Check whether --with-logdir was given.
19504 if test "${with_logdir+set}" = set; then :
19505 withval=$with_logdir; case "$withval" in
19507 as_fn_error $? "Need logdir" "$LINENO" 5
19511 [\\/$]* | ?:[\\/]* )
19515 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19523 $as_echo "$logdir" >&6; }
19525 radacctdir='${logdir}/radacct'
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19527 $as_echo_n "checking radacctdir... " >&6; }
19529 # Check whether --with-radacctdir was given.
19530 if test "${with_radacctdir+set}" = set; then :
19531 withval=$with_radacctdir; case "$withval" in
19533 as_fn_error $? "Need radacctdir" "$LINENO" 5
19537 [\\/$]* | ?:[\\/]* )
19538 radacctdir="$withval"
19541 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19549 $as_echo "$radacctdir" >&6; }
19551 raddbdir='${sysconfdir}/raddb'
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19553 $as_echo_n "checking raddbdir... " >&6; }
19555 # Check whether --with-raddbdir was given.
19556 if test "${with_raddbdir+set}" = set; then :
19557 withval=$with_raddbdir; case "$withval" in
19559 as_fn_error $? "Need raddbdir" "$LINENO" 5
19563 [\\/$]* | ?:[\\/]* )
19564 raddbdir="$withval"
19567 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19575 $as_echo "$raddbdir" >&6; }
19579 # Check whether --with-ascend-binary was given.
19580 if test "${with_ascend_binary+set}" = set; then :
19581 withval=$with_ascend_binary; case "$withval" in
19590 if test "X$ASCEND_BINARY" = "Xyes"; then
19592 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19598 # Check whether --with-threads was given.
19599 if test "${with_threads+set}" = set; then :
19600 withval=$with_threads; case "$withval" in
19612 # Check whether --with-vmps was given.
19613 if test "${with_vmps+set}" = set; then :
19614 withval=$with_vmps; case "$withval" in
19623 if test "x$WITH_VMPS" = "xyes"; then
19625 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19631 # Check whether --with-dhcp was given.
19632 if test "${with_dhcp+set}" = set; then :
19633 withval=$with_dhcp; case "$withval" in
19642 if test "x$WITH_DHCP" = "xyes"; then
19644 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19649 WITH_POST_PROXY_AUTHORIZE=
19651 # Check whether --with-post-proxy-authorize was given.
19652 if test "${with_post_proxy_authorize+set}" = set; then :
19653 withval=$with_post_proxy_authorize; case "$withval" in
19655 WITH_POST_PROXY_AUTHORIZE=""
19666 # Check whether --with-static_modules was given.
19667 if test "${with_static_modules+set}" = set; then :
19668 withval=$with_static_modules;
19669 for i in $withval; do
19670 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19678 # Check whether --with-modules was given.
19679 if test "${with_modules+set}" = set; then :
19680 withval=$with_modules;
19681 for i in $withval; do
19682 MODULES="$MODULES $i"
19688 # Check whether --enable-developer was given.
19689 if test "${enable_developer+set}" = set; then :
19690 enableval=$enable_developer; case "$enableval" in
19701 if test -d $srcdir/.git; then
19702 if test "x$developer" != "xno"; then
19706 if test "x$GIT" = "xyes"; then
19707 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19713 # Check whether --with-experimental-modules was given.
19714 if test "${with_experimental_modules+set}" = set; then :
19715 withval=$with_experimental_modules; case "$withval" in
19727 # Check whether --with-openssl was given.
19728 if test "${with_openssl+set}" = set; then :
19729 withval=$with_openssl; case "$withval" in
19741 OPENSSL_INCLUDE_DIR=
19743 # Check whether --with-openssl-includes was given.
19744 if test "${with_openssl_includes+set}" = set; then :
19745 withval=$with_openssl_includes; case "$withval" in
19746 *) OPENSSL_INCLUDE_DIR="$withval"
19755 # Check whether --with-openssl-libraries was given.
19756 if test "${with_openssl_libraries+set}" = set; then :
19757 withval=$with_openssl_libraries; case "$withval" in
19758 *) OPENSSL_LIB_DIR="$withval"
19765 # Check whether --enable-openssl-version-check was given.
19766 if test "${enable_openssl_version_check+set}" = set; then :
19767 enableval=$enable_openssl_version_check;
19770 if test "x$enable_openssl_version_check" != "xno"; then
19772 $as_echo "#define ENABLE_OPENSSL_VERSION_CHECK 1" >>confdefs.h
19774 openssl_version_check_config="\
19776 # allow_vulnerable_openssl: Allow the server to start with
19777 # versions of OpenSSL known to have critical vulnerabilities.
19779 # This check is based on the version number reported by libssl
19780 # and may not reflect patches applied to libssl by
19781 # distribution maintainers.
19783 allow_vulnerable_openssl = no"
19785 openssl_version_check_config=
19791 # Check whether --with-rlm-FOO-lib-dir was given.
19792 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19793 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19802 # Check whether --with-rlm-FOO-include-dir was given.
19803 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19804 withval=$with_rlm_FOO_include_dir; case "$withval" in
19815 # Check whether --with-udpfromto was given.
19816 if test "${with_udpfromto+set}" = set; then :
19817 withval=$with_udpfromto; case "$withval" in
19828 if test "x$WITH_UDPFROMTO" = "xyes"; then
19830 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19835 CHECKRAD=checkrad.pl
19836 # Extract the first word of "perl", so it can be a program name with args.
19837 set dummy perl; ac_word=$2
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19839 $as_echo_n "checking for $ac_word... " >&6; }
19840 if ${ac_cv_path_PERL+:} false; then :
19841 $as_echo_n "(cached) " >&6
19845 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19849 for as_dir in $PATH
19852 test -z "$as_dir" && as_dir=.
19853 for ac_exec_ext in '' $ac_executable_extensions; do
19854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19855 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19863 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19867 PERL=$ac_cv_path_PERL
19868 if test -n "$PERL"; then
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19870 $as_echo "$PERL" >&6; }
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19873 $as_echo "no" >&6; }
19877 if test "x$ac_cv_path_PERL" = "x"; then
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19879 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19881 # Extract the first word of "snmpget", so it can be a program name with args.
19882 set dummy snmpget; ac_word=$2
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19884 $as_echo_n "checking for $ac_word... " >&6; }
19885 if ${ac_cv_path_SNMPGET+:} false; then :
19886 $as_echo_n "(cached) " >&6
19890 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19894 for as_dir in $PATH
19897 test -z "$as_dir" && as_dir=.
19898 for ac_exec_ext in '' $ac_executable_extensions; do
19899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19900 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19911 SNMPGET=$ac_cv_path_SNMPGET
19912 if test -n "$SNMPGET"; then
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19914 $as_echo "$SNMPGET" >&6; }
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19917 $as_echo "no" >&6; }
19921 if test "x$ac_cv_path_SNMPGET" = "x"; then
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19923 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19926 # Extract the first word of "snmpwalk", so it can be a program name with args.
19927 set dummy snmpwalk; ac_word=$2
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19929 $as_echo_n "checking for $ac_word... " >&6; }
19930 if ${ac_cv_path_SNMPWALK+:} false; then :
19931 $as_echo_n "(cached) " >&6
19935 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19939 for as_dir in $PATH
19942 test -z "$as_dir" && as_dir=.
19943 for ac_exec_ext in '' $ac_executable_extensions; do
19944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19945 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19956 SNMPWALK=$ac_cv_path_SNMPWALK
19957 if test -n "$SNMPWALK"; then
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
19959 $as_echo "$SNMPWALK" >&6; }
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19962 $as_echo "no" >&6; }
19966 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19968 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19971 # Extract the first word of "rusers", so it can be a program name with args.
19972 set dummy rusers; ac_word=$2
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19974 $as_echo_n "checking for $ac_word... " >&6; }
19975 if ${ac_cv_path_RUSERS+:} false; then :
19976 $as_echo_n "(cached) " >&6
19980 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984 for as_dir in $PATH
19987 test -z "$as_dir" && as_dir=.
19988 for ac_exec_ext in '' $ac_executable_extensions; do
19989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19990 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19998 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20002 RUSERS=$ac_cv_path_RUSERS
20003 if test -n "$RUSERS"; then
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
20005 $as_echo "$RUSERS" >&6; }
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20008 $as_echo "no" >&6; }
20013 missing_dir=`cd $ac_aux_dir && pwd`
20014 # expand $ac_aux_dir to an absolute path
20015 am_aux_dir=`cd $ac_aux_dir && pwd`
20017 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20018 # Use eval to expand $SHELL
20019 if eval "$MISSING --run true"; then
20020 am_missing_run="$MISSING --run "
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
20024 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20028 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20031 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20034 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20037 # Extract the first word of "locate", so it can be a program name with args.
20038 set dummy locate; ac_word=$2
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20040 $as_echo_n "checking for $ac_word... " >&6; }
20041 if ${ac_cv_path_LOCATE+:} false; then :
20042 $as_echo_n "(cached) " >&6
20046 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20050 for as_dir in $PATH
20053 test -z "$as_dir" && as_dir=.
20054 for ac_exec_ext in '' $ac_executable_extensions; do
20055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20056 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20067 LOCATE=$ac_cv_path_LOCATE
20068 if test -n "$LOCATE"; then
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20070 $as_echo "$LOCATE" >&6; }
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20073 $as_echo "no" >&6; }
20077 # Extract the first word of "dirname", so it can be a program name with args.
20078 set dummy dirname; ac_word=$2
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20080 $as_echo_n "checking for $ac_word... " >&6; }
20081 if ${ac_cv_path_DIRNAME+:} false; then :
20082 $as_echo_n "(cached) " >&6
20086 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20090 for as_dir in $PATH
20093 test -z "$as_dir" && as_dir=.
20094 for ac_exec_ext in '' $ac_executable_extensions; do
20095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20096 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20107 DIRNAME=$ac_cv_path_DIRNAME
20108 if test -n "$DIRNAME"; then
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20110 $as_echo "$DIRNAME" >&6; }
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20113 $as_echo "no" >&6; }
20117 # Extract the first word of "grep", so it can be a program name with args.
20118 set dummy grep; ac_word=$2
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20120 $as_echo_n "checking for $ac_word... " >&6; }
20121 if ${ac_cv_path_GREP+:} false; then :
20122 $as_echo_n "(cached) " >&6
20126 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20130 for as_dir in $PATH
20133 test -z "$as_dir" && as_dir=.
20134 for ac_exec_ext in '' $ac_executable_extensions; do
20135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20136 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20147 GREP=$ac_cv_path_GREP
20148 if test -n "$GREP"; then
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20150 $as_echo "$GREP" >&6; }
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20153 $as_echo "no" >&6; }
20160 if test "x$WITH_THREADS" = "xyes"; then
20161 if test $ac_cv_prog_suncc = "yes"; then
20162 CFLAGS="$CFLAGS -mt"
20165 for ac_header in pthread.h
20167 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20168 if test "x$ac_cv_header_pthread_h" = xyes; then :
20169 cat >>confdefs.h <<_ACEOF
20170 #define HAVE_PTHREAD_H 1
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20181 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20182 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20183 $as_echo_n "(cached) " >&6
20185 ac_check_lib_save_LIBS=$LIBS
20186 LIBS="-lpthread $LIBS"
20187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188 /* end confdefs.h. */
20190 /* Override any GCC internal prototype to avoid an error.
20191 Use char because int might match the return type of a GCC
20192 builtin and then its argument prototype would still apply. */
20196 char pthread_create ();
20200 return pthread_create ();
20205 if ac_fn_c_try_link "$LINENO"; then :
20206 ac_cv_lib_pthread_pthread_create=yes
20208 ac_cv_lib_pthread_pthread_create=no
20210 rm -f core conftest.err conftest.$ac_objext \
20211 conftest$ac_exeext conftest.$ac_ext
20212 LIBS=$ac_check_lib_save_LIBS
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20215 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20216 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20217 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20218 LIBS="-lpthread $LIBS"
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20221 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20222 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20223 $as_echo_n "(cached) " >&6
20225 ac_check_lib_save_LIBS=$LIBS
20227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20228 /* end confdefs.h. */
20230 /* Override any GCC internal prototype to avoid an error.
20231 Use char because int might match the return type of a GCC
20232 builtin and then its argument prototype would still apply. */
20236 char pthread_create ();
20240 return pthread_create ();
20245 if ac_fn_c_try_link "$LINENO"; then :
20246 ac_cv_lib_c_r_pthread_create=yes
20248 ac_cv_lib_c_r_pthread_create=no
20250 rm -f core conftest.err conftest.$ac_objext \
20251 conftest$ac_exeext conftest.$ac_ext
20252 LIBS=$ac_check_lib_save_LIBS
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20255 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20256 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20257 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20268 if test "x$WITH_THREADS" != "xyes"; then
20270 ac_cv_header_pthread_h="no"
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20275 $as_echo_n "checking for library containing sem_init... " >&6; }
20276 if ${ac_cv_search_sem_init+:} false; then :
20277 $as_echo_n "(cached) " >&6
20279 ac_func_search_save_LIBS=$LIBS
20280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h. */
20283 /* Override any GCC internal prototype to avoid an error.
20284 Use char because int might match the return type of a GCC
20285 builtin and then its argument prototype would still apply. */
20293 return sem_init ();
20298 for ac_lib in '' pthread sem posix4 rt semaphore; do
20299 if test -z "$ac_lib"; then
20300 ac_res="none required"
20303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20305 if ac_fn_c_try_link "$LINENO"; then :
20306 ac_cv_search_sem_init=$ac_res
20308 rm -f core conftest.err conftest.$ac_objext \
20310 if ${ac_cv_search_sem_init+:} false; then :
20314 if ${ac_cv_search_sem_init+:} false; then :
20317 ac_cv_search_sem_init=no
20319 rm conftest.$ac_ext
20320 LIBS=$ac_func_search_save_LIBS
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20323 $as_echo "$ac_cv_search_sem_init" >&6; }
20324 ac_res=$ac_cv_search_sem_init
20325 if test "$ac_res" != no; then :
20326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20329 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
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20336 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20337 if ${ac_cv_lib_socket_getsockname+:} false; then :
20338 $as_echo_n "(cached) " >&6
20340 ac_check_lib_save_LIBS=$LIBS
20341 LIBS="-lsocket $LIBS"
20342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h. */
20345 /* Override any GCC internal prototype to avoid an error.
20346 Use char because int might match the return type of a GCC
20347 builtin and then its argument prototype would still apply. */
20351 char getsockname ();
20355 return getsockname ();
20360 if ac_fn_c_try_link "$LINENO"; then :
20361 ac_cv_lib_socket_getsockname=yes
20363 ac_cv_lib_socket_getsockname=no
20365 rm -f core conftest.err conftest.$ac_objext \
20366 conftest$ac_exeext conftest.$ac_ext
20367 LIBS=$ac_check_lib_save_LIBS
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20370 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20371 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20372 cat >>confdefs.h <<_ACEOF
20373 #define HAVE_LIBSOCKET 1
20376 LIBS="-lsocket $LIBS"
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20382 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20383 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20384 $as_echo_n "(cached) " >&6
20386 ac_check_lib_save_LIBS=$LIBS
20387 LIBS="-lresolv $LIBS"
20388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20389 /* end confdefs.h. */
20391 /* Override any GCC internal prototype to avoid an error.
20392 Use char because int might match the return type of a GCC
20393 builtin and then its argument prototype would still apply. */
20401 return inet_aton ();
20406 if ac_fn_c_try_link "$LINENO"; then :
20407 ac_cv_lib_resolv_inet_aton=yes
20409 ac_cv_lib_resolv_inet_aton=no
20411 rm -f core conftest.err conftest.$ac_objext \
20412 conftest$ac_exeext conftest.$ac_ext
20413 LIBS=$ac_check_lib_save_LIBS
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20416 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20417 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20418 cat >>confdefs.h <<_ACEOF
20419 #define HAVE_LIBRESOLV 1
20422 LIBS="-lresolv $LIBS"
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20428 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20429 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20430 $as_echo_n "(cached) " >&6
20432 ac_check_lib_save_LIBS=$LIBS
20434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435 /* end confdefs.h. */
20437 /* Override any GCC internal prototype to avoid an error.
20438 Use char because int might match the return type of a GCC
20439 builtin and then its argument prototype would still apply. */
20447 return inet_ntoa ();
20452 if ac_fn_c_try_link "$LINENO"; then :
20453 ac_cv_lib_nsl_inet_ntoa=yes
20455 ac_cv_lib_nsl_inet_ntoa=no
20457 rm -f core conftest.err conftest.$ac_objext \
20458 conftest$ac_exeext conftest.$ac_ext
20459 LIBS=$ac_check_lib_save_LIBS
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20462 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20463 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20464 cat >>confdefs.h <<_ACEOF
20465 #define HAVE_LIBNSL 1
20474 if test "x$WITH_OPENSSL" = xyes; then
20476 old_LDFLAGS="$LDFLAGS"
20477 if test "x$OPENSSL_LIB_DIR" != "x"; then
20478 LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20481 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20482 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20483 $as_echo_n "(cached) " >&6
20485 ac_check_lib_save_LIBS=$LIBS
20486 LIBS="-lcrypto $LIBS"
20487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20488 /* end confdefs.h. */
20490 /* Override any GCC internal prototype to avoid an error.
20491 Use char because int might match the return type of a GCC
20492 builtin and then its argument prototype would still apply. */
20505 if ac_fn_c_try_link "$LINENO"; then :
20506 ac_cv_lib_crypto_DH_new=yes
20508 ac_cv_lib_crypto_DH_new=no
20510 rm -f core conftest.err conftest.$ac_objext \
20511 conftest$ac_exeext conftest.$ac_ext
20512 LIBS=$ac_check_lib_save_LIBS
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20515 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20516 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20518 LIBS="-lcrypto $LIBS"
20520 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20523 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20524 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20525 $as_echo_n "(cached) " >&6
20527 ac_check_lib_save_LIBS=$LIBS
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20532 /* Override any GCC internal prototype to avoid an error.
20533 Use char because int might match the return type of a GCC
20534 builtin and then its argument prototype would still apply. */
20547 if ac_fn_c_try_link "$LINENO"; then :
20548 ac_cv_lib_ssl_SSL_new=yes
20550 ac_cv_lib_ssl_SSL_new=no
20552 rm -f core conftest.err conftest.$ac_objext \
20553 conftest$ac_exeext conftest.$ac_ext
20554 LIBS=$ac_check_lib_save_LIBS
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20557 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20558 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20561 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20563 if test "x$OPENSSL_LIB_DIR" != "x"; then
20564 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20566 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20574 LDFLAGS="$old_LDFLAGS"
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20578 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20579 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20580 $as_echo_n "(cached) " >&6
20582 ac_check_lib_save_LIBS=$LIBS
20583 LIBS="-lws2_32 $LIBS"
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20602 if ac_fn_c_try_link "$LINENO"; then :
20603 ac_cv_lib_ws2_32_htonl=yes
20605 ac_cv_lib_ws2_32_htonl=no
20607 rm -f core conftest.err conftest.$ac_objext \
20608 conftest$ac_exeext conftest.$ac_ext
20609 LIBS=$ac_check_lib_save_LIBS
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20612 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20613 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20614 cat >>confdefs.h <<_ACEOF
20615 #define HAVE_LIBWS2_32 1
20618 LIBS="-lws2_32 $LIBS"
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20625 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20626 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20627 $as_echo_n "(cached) " >&6
20629 ac_check_lib_save_LIBS=$LIBS
20630 LIBS="-lpcap $LIBS"
20631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20632 /* end confdefs.h. */
20634 /* Override any GCC internal prototype to avoid an error.
20635 Use char because int might match the return type of a GCC
20636 builtin and then its argument prototype would still apply. */
20640 char pcap_open_live ();
20644 return pcap_open_live ();
20649 if ac_fn_c_try_link "$LINENO"; then :
20650 ac_cv_lib_pcap_pcap_open_live=yes
20652 ac_cv_lib_pcap_pcap_open_live=no
20654 rm -f core conftest.err conftest.$ac_objext \
20655 conftest$ac_exeext conftest.$ac_ext
20656 LIBS=$ac_check_lib_save_LIBS
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20659 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20660 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20663 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20668 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20674 $as_echo_n "checking for a readline compatible library... " >&6; }
20675 if ${ac_cv_lib_readline+:} false; then :
20676 $as_echo_n "(cached) " >&6
20680 for readline_lib in readline edit editline; do
20681 for termcap_lib in "" termcap curses ncurses; do
20682 if test -z "$termcap_lib"; then
20683 TRY_LIB="-l$readline_lib"
20685 TRY_LIB="-l$readline_lib -l$termcap_lib"
20687 LIBS="$ORIG_LIBS $TRY_LIB"
20688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20689 /* end confdefs.h. */
20691 /* Override any GCC internal prototype to avoid an error.
20692 Use char because int might match the return type of a GCC
20693 builtin and then its argument prototype would still apply. */
20701 return readline ();
20706 if ac_fn_c_try_link "$LINENO"; then :
20707 ac_cv_lib_readline="$TRY_LIB"
20709 rm -f core conftest.err conftest.$ac_objext \
20710 conftest$ac_exeext conftest.$ac_ext
20711 if test -n "$ac_cv_lib_readline"; then
20715 if test -n "$ac_cv_lib_readline"; then
20719 if test -z "$ac_cv_lib_readline"; then
20720 ac_cv_lib_readline="no"
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20726 $as_echo "$ac_cv_lib_readline" >&6; }
20728 if test "$ac_cv_lib_readline" != "no"; then
20729 LIBREADLINE="$ac_cv_lib_readline"
20731 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20733 for ac_header in readline.h readline/readline.h
20735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20736 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20738 cat >>confdefs.h <<_ACEOF
20739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20747 $as_echo_n "checking whether readline supports history... " >&6; }
20748 if ${ac_cv_lib_readline_history+:} false; then :
20749 $as_echo_n "(cached) " >&6
20752 ac_cv_lib_readline_history="no"
20753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h. */
20756 /* Override any GCC internal prototype to avoid an error.
20757 Use char because int might match the return type of a GCC
20758 builtin and then its argument prototype would still apply. */
20762 char add_history ();
20766 return add_history ();
20771 if ac_fn_c_try_link "$LINENO"; then :
20772 ac_cv_lib_readline_history="yes"
20774 rm -f core conftest.err conftest.$ac_objext \
20775 conftest$ac_exeext conftest.$ac_ext
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20779 $as_echo "$ac_cv_lib_readline_history" >&6; }
20780 if test "$ac_cv_lib_readline_history" = "yes"; then
20782 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20784 for ac_header in history.h readline/history.h
20786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20787 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20788 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20789 cat >>confdefs.h <<_ACEOF
20790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20805 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20808 CFLAGS="$CFLAGS -DDARWIN"
20809 LIBS="-framework DirectoryService $LIBS"
20811 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
20816 ac_header_dirent=no
20817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20818 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20820 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20821 if eval \${$as_ac_Header+:} false; then :
20822 $as_echo_n "(cached) " >&6
20824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20825 /* end confdefs.h. */
20826 #include <sys/types.h>
20838 if ac_fn_c_try_compile "$LINENO"; then :
20839 eval "$as_ac_Header=yes"
20841 eval "$as_ac_Header=no"
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845 eval ac_res=\$$as_ac_Header
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20847 $as_echo "$ac_res" >&6; }
20848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20849 cat >>confdefs.h <<_ACEOF
20850 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20853 ac_header_dirent=$ac_hdr; break
20857 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20858 if test $ac_header_dirent = dirent.h; then
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20860 $as_echo_n "checking for library containing opendir... " >&6; }
20861 if ${ac_cv_search_opendir+:} false; then :
20862 $as_echo_n "(cached) " >&6
20864 ac_func_search_save_LIBS=$LIBS
20865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20866 /* end confdefs.h. */
20868 /* Override any GCC internal prototype to avoid an error.
20869 Use char because int might match the return type of a GCC
20870 builtin and then its argument prototype would still apply. */
20883 for ac_lib in '' dir; do
20884 if test -z "$ac_lib"; then
20885 ac_res="none required"
20888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20890 if ac_fn_c_try_link "$LINENO"; then :
20891 ac_cv_search_opendir=$ac_res
20893 rm -f core conftest.err conftest.$ac_objext \
20895 if ${ac_cv_search_opendir+:} false; then :
20899 if ${ac_cv_search_opendir+:} false; then :
20902 ac_cv_search_opendir=no
20904 rm conftest.$ac_ext
20905 LIBS=$ac_func_search_save_LIBS
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20908 $as_echo "$ac_cv_search_opendir" >&6; }
20909 ac_res=$ac_cv_search_opendir
20910 if test "$ac_res" != no; then :
20911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20917 $as_echo_n "checking for library containing opendir... " >&6; }
20918 if ${ac_cv_search_opendir+:} false; then :
20919 $as_echo_n "(cached) " >&6
20921 ac_func_search_save_LIBS=$LIBS
20922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20923 /* end confdefs.h. */
20925 /* Override any GCC internal prototype to avoid an error.
20926 Use char because int might match the return type of a GCC
20927 builtin and then its argument prototype would still apply. */
20940 for ac_lib in '' x; do
20941 if test -z "$ac_lib"; then
20942 ac_res="none required"
20945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20947 if ac_fn_c_try_link "$LINENO"; then :
20948 ac_cv_search_opendir=$ac_res
20950 rm -f core conftest.err conftest.$ac_objext \
20952 if ${ac_cv_search_opendir+:} false; then :
20956 if ${ac_cv_search_opendir+:} false; then :
20959 ac_cv_search_opendir=no
20961 rm conftest.$ac_ext
20962 LIBS=$ac_func_search_save_LIBS
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20965 $as_echo "$ac_cv_search_opendir" >&6; }
20966 ac_res=$ac_cv_search_opendir
20967 if test "$ac_res" != no; then :
20968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20975 $as_echo_n "checking for ANSI C header files... " >&6; }
20976 if ${ac_cv_header_stdc+:} false; then :
20977 $as_echo_n "(cached) " >&6
20979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980 /* end confdefs.h. */
20981 #include <stdlib.h>
20982 #include <stdarg.h>
20983 #include <string.h>
20994 if ac_fn_c_try_compile "$LINENO"; then :
20995 ac_cv_header_stdc=yes
20997 ac_cv_header_stdc=no
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21001 if test $ac_cv_header_stdc = yes; then
21002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21004 /* end confdefs.h. */
21005 #include <string.h>
21008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21009 $EGREP "memchr" >/dev/null 2>&1; then :
21012 ac_cv_header_stdc=no
21018 if test $ac_cv_header_stdc = yes; then
21019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h. */
21022 #include <stdlib.h>
21025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21026 $EGREP "free" >/dev/null 2>&1; then :
21029 ac_cv_header_stdc=no
21035 if test $ac_cv_header_stdc = yes; then
21036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21037 if test "$cross_compiling" = yes; then :
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21043 #include <stdlib.h>
21044 #if ((' ' & 0x0FF) == 0x020)
21045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21048 # define ISLOWER(c) \
21049 (('a' <= (c) && (c) <= 'i') \
21050 || ('j' <= (c) && (c) <= 'r') \
21051 || ('s' <= (c) && (c) <= 'z'))
21052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21060 for (i = 0; i < 256; i++)
21061 if (XOR (islower (i), ISLOWER (i))
21062 || toupper (i) != TOUPPER (i))
21067 if ac_fn_c_try_run "$LINENO"; then :
21070 ac_cv_header_stdc=no
21072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21073 conftest.$ac_objext conftest.beam conftest.$ac_ext
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21079 $as_echo "$ac_cv_header_stdc" >&6; }
21080 if test $ac_cv_header_stdc = yes; then
21082 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21087 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21088 if ${ac_cv_header_time+:} false; then :
21089 $as_echo_n "(cached) " >&6
21091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21092 /* end confdefs.h. */
21093 #include <sys/types.h>
21094 #include <sys/time.h>
21100 if ((struct tm *) 0)
21106 if ac_fn_c_try_compile "$LINENO"; then :
21107 ac_cv_header_time=yes
21109 ac_cv_header_time=no
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21114 $as_echo "$ac_cv_header_time" >&6; }
21115 if test $ac_cv_header_time = yes; then
21117 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21122 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21123 if ${ac_cv_header_sys_wait_h+:} false; then :
21124 $as_echo_n "(cached) " >&6
21126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21127 /* end confdefs.h. */
21128 #include <sys/types.h>
21129 #include <sys/wait.h>
21130 #ifndef WEXITSTATUS
21131 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21134 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21142 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21147 if ac_fn_c_try_compile "$LINENO"; then :
21148 ac_cv_header_sys_wait_h=yes
21150 ac_cv_header_sys_wait_h=no
21152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21155 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21156 if test $ac_cv_header_sys_wait_h = yes; then
21158 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21205 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21207 cat >>confdefs.h <<_ACEOF
21208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21216 for ac_header in net/if.h
21218 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21219 # include <sys/socket.h>
21223 if test "x$ac_cv_header_net_if_h" = xyes; then :
21224 cat >>confdefs.h <<_ACEOF
21225 #define HAVE_NET_IF_H 1
21234 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21235 if test "x$ac_cv_header_regex_h" = xyes; then :
21237 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21242 if test "x$ac_cv_header_regex_h" = "xyes"; then
21245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21246 /* end confdefs.h. */
21248 #ifdef REG_EXTENDED
21253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21254 $EGREP "yes" >/dev/null 2>&1; then :
21256 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21265 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21268 $as_echo "#define OSFC2 /**/" >>confdefs.h
21272 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21275 $as_echo "#define OSFSIA /**/" >>confdefs.h
21279 if test "x$WITH_OPENSSL" = xyes; then
21281 old_LDFLAGS="$LDFLAGS"
21283 OPENSSL_INCLUDE="-DNO_OPENSSL"
21285 if test "x$OPENSSL_LIB_DIR" != "x"; then
21286 LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
21290 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
21291 if ${ac_cv_lib_crypto_DH_new+:} false; then :
21292 $as_echo_n "(cached) " >&6
21294 ac_check_lib_save_LIBS=$LIBS
21295 LIBS="-lcrypto $LIBS"
21296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21297 /* end confdefs.h. */
21299 /* Override any GCC internal prototype to avoid an error.
21300 Use char because int might match the return type of a GCC
21301 builtin and then its argument prototype would still apply. */
21314 if ac_fn_c_try_link "$LINENO"; then :
21315 ac_cv_lib_crypto_DH_new=yes
21317 ac_cv_lib_crypto_DH_new=no
21319 rm -f core conftest.err conftest.$ac_objext \
21320 conftest$ac_exeext conftest.$ac_ext
21321 LIBS=$ac_check_lib_save_LIBS
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
21324 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
21325 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
21327 LIBS="-lcrypto $LIBS"
21329 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
21332 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
21333 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
21334 $as_echo_n "(cached) " >&6
21336 ac_check_lib_save_LIBS=$LIBS
21338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21339 /* end confdefs.h. */
21341 /* Override any GCC internal prototype to avoid an error.
21342 Use char because int might match the return type of a GCC
21343 builtin and then its argument prototype would still apply. */
21356 if ac_fn_c_try_link "$LINENO"; then :
21357 ac_cv_lib_ssl_SSL_new=yes
21359 ac_cv_lib_ssl_SSL_new=no
21361 rm -f core conftest.err conftest.$ac_objext \
21362 conftest$ac_exeext conftest.$ac_ext
21363 LIBS=$ac_check_lib_save_LIBS
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
21366 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
21367 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
21370 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
21372 if test "x$OPENSSL_LIB_DIR" != "x"; then
21373 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21375 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21376 LIBS="$OPENSSL_LIBS $LIBS"
21380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21382 as_fn_error $? "failed linking to libssl
21383 See \`config.log' for more details" "$LINENO" 5; }
21392 old_CPPFLAGS=$CPPFLAGS
21394 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21395 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21396 CFLAGS="-I$OPENSSL_INCLUDE_DIR $CFLAGS"
21399 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21412 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21414 cat >>confdefs.h <<_ACEOF
21415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21422 as_fn_error $? "failed locating OpenSSL headers
21423 See \`config.log' for more details" "$LINENO" 5; }
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21432 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h. */
21435 #include <openssl/crypto.h>
21436 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21442 $EGREP "yes" >/dev/null 2>&1; then :
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21445 $as_echo "yes" >&6; }
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21450 $as_echo "no" >&6; }
21451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21453 as_fn_error $? "OpenSSL version too old
21454 See \`config.log' for more details" "$LINENO" 5; }
21461 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21462 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21464 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
21468 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
21469 if test "$cross_compiling" = yes; then :
21470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21472 as_fn_error $? "cannot run test program while cross compiling
21473 See \`config.log' for more details" "$LINENO" 5; }
21475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21476 /* end confdefs.h. */
21479 #include <openssl/opensslv.h>
21480 #include <openssl/crypto.h>
21486 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
21489 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
21498 if ac_fn_c_try_run "$LINENO"; then :
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21501 $as_echo "yes" >&6; }
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21506 $as_echo "no" >&6; }
21507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21509 as_fn_error $? "OpenSSL library version does not match header version
21510 See \`config.log' for more details" "$LINENO" 5; }
21514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21515 conftest.$ac_objext conftest.beam conftest.$ac_ext
21519 if test "x$OPENSSL_LIBS" = x; then
21521 LDFLAGS="$old_LDFLAGS"
21523 if test "x$OPENSSL_INCLUDE" = x; then
21524 CPPFLAGS=$old_CPPFLAGS
21531 export OPENSSL_LIBS
21533 if test "x$PCAP_LIBS" = x; then
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21535 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21537 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21538 if test "x$ac_cv_header_pcap_h" = xyes; then :
21540 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21545 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21552 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21553 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21554 $as_echo_n "(cached) " >&6
21556 ac_check_lib_save_LIBS=$LIBS
21557 LIBS="-lpcap $LIBS"
21558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h. */
21561 /* Override any GCC internal prototype to avoid an error.
21562 Use char because int might match the return type of a GCC
21563 builtin and then its argument prototype would still apply. */
21567 char pcap_fopen_offline ();
21571 return pcap_fopen_offline ();
21576 if ac_fn_c_try_link "$LINENO"; then :
21577 ac_cv_lib_pcap_pcap_fopen_offline=yes
21579 ac_cv_lib_pcap_pcap_fopen_offline=no
21581 rm -f core conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21583 LIBS=$ac_check_lib_save_LIBS
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21586 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21587 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21589 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21595 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21596 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21597 $as_echo_n "(cached) " >&6
21599 ac_check_lib_save_LIBS=$LIBS
21600 LIBS="-lpcap $LIBS"
21601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21602 /* end confdefs.h. */
21604 /* Override any GCC internal prototype to avoid an error.
21605 Use char because int might match the return type of a GCC
21606 builtin and then its argument prototype would still apply. */
21610 char pcap_dump_fopen ();
21614 return pcap_dump_fopen ();
21619 if ac_fn_c_try_link "$LINENO"; then :
21620 ac_cv_lib_pcap_pcap_dump_fopen=yes
21622 ac_cv_lib_pcap_pcap_dump_fopen=no
21624 rm -f core conftest.err conftest.$ac_objext \
21625 conftest$ac_exeext conftest.$ac_ext
21626 LIBS=$ac_check_lib_save_LIBS
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21629 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21630 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21632 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21641 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21642 if test "x$ac_cv_type_off_t" = xyes; then :
21646 cat >>confdefs.h <<_ACEOF
21647 #define off_t long int
21652 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21653 if test "x$ac_cv_type_pid_t" = xyes; then :
21657 cat >>confdefs.h <<_ACEOF
21663 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21664 if test "x$ac_cv_type_size_t" = xyes; then :
21668 cat >>confdefs.h <<_ACEOF
21669 #define size_t unsigned int
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21675 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21676 if ${ac_cv_type_uid_t+:} false; then :
21677 $as_echo_n "(cached) " >&6
21679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21680 /* end confdefs.h. */
21681 #include <sys/types.h>
21684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21685 $EGREP "uid_t" >/dev/null 2>&1; then :
21686 ac_cv_type_uid_t=yes
21688 ac_cv_type_uid_t=no
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21694 $as_echo "$ac_cv_type_uid_t" >&6; }
21695 if test $ac_cv_type_uid_t = no; then
21697 $as_echo "#define uid_t int" >>confdefs.h
21700 $as_echo "#define gid_t int" >>confdefs.h
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21707 $as_echo_n "checking for socklen_t... " >&6; }
21708 if ${ac_cv_type_socklen_t+:} false; then :
21709 $as_echo_n "(cached) " >&6
21711 ac_cv_type_socklen_t=no
21712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713 /* end confdefs.h. */
21714 #ifdef HAVE_SYS_TYPES_H
21715 #include <sys/types.h>
21717 #ifdef HAVE_SYS_SOCKET_H
21718 #include <sys/socket.h>
21729 if ac_fn_c_try_compile "$LINENO"; then :
21730 ac_cv_type_socklen_t=yes
21732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21737 $as_echo "$ac_cv_type_socklen_t" >&6; }
21739 if test "$ac_cv_type_socklen_t" != "yes"; then
21741 $as_echo "#define socklen_t int" >>confdefs.h
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21748 $as_echo_n "checking for uint8_t... " >&6; }
21749 if ${ac_cv_type_uint8_t+:} false; then :
21750 $as_echo_n "(cached) " >&6
21752 ac_cv_type_uint8_t=no
21753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21754 /* end confdefs.h. */
21755 #ifdef HAVE_INTTYPES_H
21756 #include <inttypes.h>
21758 #ifdef HAVE_STDINT_H
21759 #include <stdint.h>
21770 if ac_fn_c_try_compile "$LINENO"; then :
21771 ac_cv_type_uint8_t=yes
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21778 $as_echo "$ac_cv_type_uint8_t" >&6; }
21780 if test "$ac_cv_type_uint8_t" != "yes"; then
21782 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21789 $as_echo_n "checking for uint16_t... " >&6; }
21790 if ${ac_cv_type_uint16_t+:} false; then :
21791 $as_echo_n "(cached) " >&6
21793 ac_cv_type_uint16_t=no
21794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h. */
21796 #ifdef HAVE_INTTYPES_H
21797 #include <inttypes.h>
21799 #ifdef HAVE_STDINT_H
21800 #include <stdint.h>
21811 if ac_fn_c_try_compile "$LINENO"; then :
21812 ac_cv_type_uint16_t=yes
21814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21819 $as_echo "$ac_cv_type_uint16_t" >&6; }
21821 if test "$ac_cv_type_uint16_t" != "yes"; then
21823 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21830 $as_echo_n "checking for uint32_t... " >&6; }
21831 if ${ac_cv_type_uint32_t+:} false; then :
21832 $as_echo_n "(cached) " >&6
21834 ac_cv_type_uint32_t=no
21835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21836 /* end confdefs.h. */
21837 #ifdef HAVE_INTTYPES_H
21838 #include <inttypes.h>
21840 #ifdef HAVE_STDINT_H
21841 #include <stdint.h>
21852 if ac_fn_c_try_compile "$LINENO"; then :
21853 ac_cv_type_uint32_t=yes
21855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21860 $as_echo "$ac_cv_type_uint32_t" >&6; }
21862 if test "$ac_cv_type_uint32_t" != "yes"; then
21864 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21869 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "
21870 #ifdef HAVE_SIGNAL_H
21871 # include <signal.h>
21875 if test "x$ac_cv_type_sig_t" = xyes; then :
21877 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
21882 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21883 #ifdef HAVE_NETINET_IN_H
21884 #include <netinet/in.h>
21888 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21890 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21895 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21896 #ifdef HAVE_NETINET_IN_H
21897 #include <netinet/in.h>
21899 #ifdef HAVE_SYS_SOCKET_H
21900 #include <sys/socket.h>
21904 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21906 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21911 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21912 #ifdef HAVE_NETINET_IN_H
21913 #include <netinet/in.h>
21917 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21919 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21924 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21925 #ifdef HAVE_SYS_TYPES_H
21926 #include <sys/types.h>
21928 #ifdef HAVE_SYS_SOCKET_H
21929 #include <sys/socket.h>
21931 #ifdef HAVE_NETDB_H
21936 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21938 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21981 cat >>confdefs.h <<_ACEOF
21982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21999 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
22000 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
22001 $as_echo_n "(cached) " >&6
22003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22004 /* end confdefs.h. */
22007 #include <string.h>
22008 #ifdef HAVE_UNISTD_H
22009 #include <unistd.h>
22011 #ifdef HAVE_CRYPT_H
22014 #ifdef HAVE_ERRNO_H
22017 #ifdef HAVE_RESOURCE_H
22018 #include <resource.h>
22020 #ifdef HAVE_GETOPT_H
22021 #include <getopt.h>
22023 #ifdef HAVE_MALLOC_H
22024 #include <malloc.h>
22029 #ifdef HAVE_UTMPX_H
22032 #ifdef HAVE_SYS_SELECT_H
22033 #include <sys/select.h>
22035 #ifdef HAVE_DLFCN_H
22038 #ifdef HAVE_REGEX_H
22041 #ifdef HAVE_SYSLOG_H
22042 #include <syslog.h>
22044 #ifdef HAVE_INTTYPES_H
22045 #include <inttypes.h>
22047 #ifdef HAVE_STDINT_H
22048 #include <stdint.h>
22050 #ifdef HAVE_ARPA_INET_H
22051 #include <arpa/inet.h>
22057 char *(*pfn) = (char *(*)) $ac_func
22062 if ac_fn_c_try_compile "$LINENO"; then :
22063 eval "radius_cv_decl_needed_$ac_func=no"
22065 eval "radius_cv_decl_needed_$ac_func=yes"
22067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22070 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22072 $as_echo "yes" >&6; }
22073 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22074 cat >>confdefs.h <<_ACEOF
22075 #define $radius_tr_decl 1
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22080 $as_echo "no" >&6; }
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22087 $as_echo_n "checking return type of signal handlers... " >&6; }
22088 if ${ac_cv_type_signal+:} false; then :
22089 $as_echo_n "(cached) " >&6
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22093 #include <sys/types.h>
22094 #include <signal.h>
22099 return *(signal (0, 0)) (0) == 1;
22104 if ac_fn_c_try_compile "$LINENO"; then :
22105 ac_cv_type_signal=int
22107 ac_cv_type_signal=void
22109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22112 $as_echo "$ac_cv_type_signal" >&6; }
22114 cat >>confdefs.h <<_ACEOF
22115 #define RETSIGTYPE $ac_cv_type_signal
22120 if test "x$ac_cv_header_utmpx_h" = "xyes"
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
22124 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
22127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128 /* end confdefs.h. */
22131 #ifdef HAVE_STDDEF_H
22132 #include <stddef.h>
22135 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22141 int foo = offsetof(struct utmpx, ut_xtime)
22146 if ac_fn_c_try_compile "$LINENO"; then :
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22154 if test "x$has_element" != "x"; then
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22156 $as_echo "yes" >&6; }
22157 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22160 $as_echo "no" >&6; }
22161 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22164 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22167 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
22174 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
22177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178 /* end confdefs.h. */
22180 #include <netinet/in.h>
22181 #ifdef HAVE_STDDEF_H
22182 #include <stddef.h>
22185 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22191 int foo = offsetof(struct in_pktinfo, ipi_addr)
22196 if ac_fn_c_try_compile "$LINENO"; then :
22201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22203 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22204 if test "x$has_element" != "x"; then
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22206 $as_echo "yes" >&6; }
22207 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22210 $as_echo "no" >&6; }
22211 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22214 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22217 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
22223 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h. */
22229 #include <netinet/in.h>
22230 #ifdef HAVE_STDDEF_H
22231 #include <stddef.h>
22234 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22240 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22245 if ac_fn_c_try_compile "$LINENO"; then :
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22253 if test "x$has_element" != "x"; then
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22255 $as_echo "yes" >&6; }
22256 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22259 $as_echo "no" >&6; }
22260 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22263 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22266 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22272 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22273 if ${ac_cv_c_const+:} false; then :
22274 $as_echo_n "(cached) " >&6
22276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22277 /* end confdefs.h. */
22283 #ifndef __cplusplus
22284 /* Ultrix mips cc rejects this sort of thing. */
22285 typedef int charset[2];
22286 const charset cs = { 0, 0 };
22287 /* SunOS 4.1.1 cc rejects this. */
22288 char const *const *pcpcc;
22290 /* NEC SVR4.0.2 mips cc rejects this. */
22291 struct point {int x, y;};
22292 static struct point const zero = {0,0};
22293 /* AIX XL C 1.02.0.0 rejects this.
22294 It does not let you subtract one const X* pointer from another in
22295 an arm of an if-expression whose if-part is not a constant
22297 const char *g = "string";
22298 pcpcc = &g + (g ? g-g : 0);
22299 /* HPUX 7.0 cc rejects these. */
22301 ppc = (char**) pcpcc;
22302 pcpcc = (char const *const *) ppc;
22303 { /* SCO 3.2v4 cc rejects this sort of thing. */
22306 char const *s = 0 ? (char *) 0 : (char const *) 0;
22311 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22312 int x[] = {25, 17};
22313 const int *foo = &x[0];
22316 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22317 typedef const int *iptr;
22321 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22322 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22323 struct s { int j; const int *ap[3]; } bx;
22324 struct s *b = &bx; b->j = 5;
22326 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22327 const int foo = 10;
22328 if (!foo) return 0;
22330 return !cs[0] && !zero.x;
22337 if ac_fn_c_try_compile "$LINENO"; then :
22342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22345 $as_echo "$ac_cv_c_const" >&6; }
22346 if test $ac_cv_c_const = no; then
22348 $as_echo "#define const /**/" >>confdefs.h
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22354 $as_echo_n "checking type of OS... " >&6; }
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22357 $as_echo "$OS" >&6; }
22358 if test "$OS" = "OS/2"; then
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22366 $as_echo_n "checking for developer gcc flags... " >&6; }
22367 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22368 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22369 CFLAGS="$CFLAGS $devflags"
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
22372 $as_echo "yes. Using $devflags" >&6; }
22375 CFLAGS="$CFLAGS -DNDEBUG"
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22378 $as_echo "no." >&6; }
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22383 $as_echo_n "checking for TLS... " >&6; }
22384 if test "$cross_compiling" = yes; then :
22387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388 /* end confdefs.h. */
22389 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22391 if ac_fn_c_try_run "$LINENO"; then :
22396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22397 conftest.$ac_objext conftest.beam conftest.$ac_ext
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22401 $as_echo "$have_tls" >&6; }
22402 if test "$have_tls" = "yes"; then
22404 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22411 LIBS="$LIBS $LIBLTDL"
22412 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22413 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22415 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22422 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22423 if ${ac_cv_lib_crypt_crypt+:} false; then :
22424 $as_echo_n "(cached) " >&6
22426 ac_check_lib_save_LIBS=$LIBS
22427 LIBS="-lcrypt $LIBS"
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429 /* end confdefs.h. */
22431 /* Override any GCC internal prototype to avoid an error.
22432 Use char because int might match the return type of a GCC
22433 builtin and then its argument prototype would still apply. */
22446 if ac_fn_c_try_link "$LINENO"; then :
22447 ac_cv_lib_crypt_crypt=yes
22449 ac_cv_lib_crypt_crypt=no
22451 rm -f core conftest.err conftest.$ac_objext \
22452 conftest$ac_exeext conftest.$ac_ext
22453 LIBS=$ac_check_lib_save_LIBS
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22456 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22457 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22462 if test "$CRYPTLIB" != ""; then
22464 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22467 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22468 if test "x$ac_cv_func_crypt" = xyes; then :
22470 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22477 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22478 if ${ac_cv_lib_cipher_setkey+:} false; then :
22479 $as_echo_n "(cached) " >&6
22481 ac_check_lib_save_LIBS=$LIBS
22482 LIBS="-lcipher $LIBS"
22483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484 /* end confdefs.h. */
22486 /* Override any GCC internal prototype to avoid an error.
22487 Use char because int might match the return type of a GCC
22488 builtin and then its argument prototype would still apply. */
22501 if ac_fn_c_try_link "$LINENO"; then :
22502 ac_cv_lib_cipher_setkey=yes
22504 ac_cv_lib_cipher_setkey=no
22506 rm -f core conftest.err conftest.$ac_objext \
22507 conftest$ac_exeext conftest.$ac_ext
22508 LIBS=$ac_check_lib_save_LIBS
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22511 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22512 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22513 CRYPTLIB="${CRYPTLIB} -lcipher"
22520 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22523 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22526 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22528 gethostbyaddrrstyle=""
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22530 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22533 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22534 #ifdef HAVE_NETDB_H
22539 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22545 cat >>confdefs.h <<_ACEOF
22546 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22548 if test $ac_have_decl = 1; then :
22553 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22555 gethostbyaddrrstyle=BSD
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22557 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22563 if test "x$gethostbyaddrrstyle" = "x"; then
22564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22565 /* end confdefs.h. */
22573 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22578 if ac_fn_c_try_link "$LINENO"; then :
22581 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22583 gethostbyaddrrstyle=GNU
22586 rm -f core conftest.err conftest.$ac_objext \
22587 conftest$ac_exeext conftest.$ac_ext
22589 if test "x$gethostbyaddrrstyle" = "x"; then
22590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22591 /* end confdefs.h. */
22599 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22604 if ac_fn_c_try_link "$LINENO"; then :
22607 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22609 gethostbyaddrrstyle=SYSV
22612 rm -f core conftest.err conftest.$ac_objext \
22613 conftest$ac_exeext conftest.$ac_ext
22615 if test "x$gethostbyaddrrstyle" = "x"; then
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22625 gethostbyaddr(NULL, 0, 0)
22630 if ac_fn_c_try_link "$LINENO"; then :
22633 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22635 gethostbyaddrrstyle=BSD
22638 rm -f core conftest.err conftest.$ac_objext \
22639 conftest$ac_exeext conftest.$ac_ext
22642 if test "x$gethostbyaddrrstyle" = "x"; then
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22644 $as_echo "none! It must not exist, here." >&6; }
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22647 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22650 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22652 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22655 gethostbynamerstyle=""
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22657 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22659 /* end confdefs.h. */
22667 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22672 if ac_fn_c_try_link "$LINENO"; then :
22675 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22677 gethostbynamerstyle=GNU
22680 rm -f core conftest.err conftest.$ac_objext \
22681 conftest$ac_exeext conftest.$ac_ext
22682 if test "x$gethostbynamerstyle" = "x"; then
22683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22684 /* end confdefs.h. */
22692 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22697 if ac_fn_c_try_link "$LINENO"; then :
22700 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22702 gethostbynamerstyle=SYSV
22705 rm -f core conftest.err conftest.$ac_objext \
22706 conftest$ac_exeext conftest.$ac_ext
22708 if test "x$gethostbynamerstyle" = "x"; then
22709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22710 /* end confdefs.h. */
22718 gethostbyname(NULL)
22723 if ac_fn_c_try_link "$LINENO"; then :
22726 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22728 gethostbynamerstyle=BSD
22731 rm -f core conftest.err conftest.$ac_objext \
22732 conftest$ac_exeext conftest.$ac_ext
22735 if test "x$gethostbynamerstyle" = "x"; then
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22737 $as_echo "none! It must not exist, here." >&6; }
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22740 $as_echo "${gethostbynamerstyle}-style" >&6; }
22743 if test "x$gethostbynamerstyle" = "xBSD"; then
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22745 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22749 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22752 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22756 $as_echo_n "checking ctime_r() syntax... " >&6; }
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h. */
22765 ctime_r(NULL, NULL, 0)
22770 if ac_fn_c_try_link "$LINENO"; then :
22773 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22775 ctimerstyle="SOLARIS"
22778 rm -f core conftest.err conftest.$ac_objext \
22779 conftest$ac_exeext conftest.$ac_ext
22780 if test "x$ctimerstyle" = "x"; then
22781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22782 /* end confdefs.h. */
22789 ctime_r(NULL, NULL)
22794 if ac_fn_c_try_link "$LINENO"; then :
22797 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22799 ctimerstyle="POSIX"
22802 rm -f core conftest.err conftest.$ac_objext \
22803 conftest$ac_exeext conftest.$ac_ext
22806 if test "x$ctimerstyle" = "x"; then
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22808 $as_echo "none! It must not exist, here." >&6; }
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22811 $as_echo "${ctimerstyle}-style" >&6; }
22817 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22819 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22825 export top_builddir
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22827 $as_echo "top_builddir=$top_builddir" >&6; }
22833 mysubdirs="$LIBLTDLPATH"
22834 if test "x$EXPERIMENTAL" = "xyes"; then
22835 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22836 mysubdirs=`echo $mysubdirs $bar`
22838 for bar in `cat "${srcdir}"/src/modules/stable`; do
22839 if test -f "${srcdir}"/src/modules/$bar/configure; then
22840 mysubdirs="$mysubdirs src/modules/$bar"
22845 if test "x$EXPERIMENTAL" = "xyes"; then
22846 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22847 MODULES="$MODULES $foo"
22850 for foo in `cat "${srcdir}"/src/modules/stable`; do
22851 MODULES="$MODULES $foo"
22857 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22862 ac_config_commands="$ac_config_commands stamp-h"
22864 ac_config_commands="$ac_config_commands build-radpaths-h"
22866 ac_config_commands="$ac_config_commands main-chmod"
22868 ac_config_commands="$ac_config_commands scripts-chmod"
22874 USE_SHARED_LIBS=$enable_shared
22876 USE_STATIC_LIBS=$enable_static
22887 unset ac_cv_env_LIBS_set
22888 unset ac_cv_env_LIBS_value
22890 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"
22892 cat >confcache <<\_ACEOF
22893 # This file is a shell script that caches the results of configure
22894 # tests run on this system so they can be shared between configure
22895 # scripts and configure runs, see configure's option --config-cache.
22896 # It is not useful on other systems. If it contains results you don't
22897 # want to keep, you may remove or edit it.
22899 # config.status only pays attention to the cache file if you give it
22900 # the --recheck option to rerun configure.
22902 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22903 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22904 # following values.
22908 # The following way of writing the cache mishandles newlines in values,
22909 # but we know of no workaround that is simple, portable, and efficient.
22910 # So, we kill variables containing newlines.
22911 # Ultrix sh set writes to stderr and can't be redirected directly,
22912 # and sets the high bit in the cache file unless we assign to the vars.
22914 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22915 eval ac_val=\$$ac_var
22919 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22923 _ | IFS | as_nl) ;; #(
22924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22925 *) { eval $ac_var=; unset $ac_var;} ;;
22931 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22932 *${as_nl}ac_space=\ *)
22933 # `set' does not quote correctly, so add quotes: double-quote
22934 # substitution turns \\\\ into \\, and sed turns \\ into \.
22937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22940 # `set' quotes correctly as required by POSIX, so do not add quotes.
22941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22950 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22952 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22954 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22955 if test -w "$cache_file"; then
22956 if test "x$cache_file" != "x/dev/null"; then
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22958 $as_echo "$as_me: updating cache $cache_file" >&6;}
22959 if test ! -f "$cache_file" || test -h "$cache_file"; then
22960 cat confcache >"$cache_file"
22962 case $cache_file in #(
22964 mv -f confcache "$cache_file"$$ &&
22965 mv -f "$cache_file"$$ "$cache_file" ;; #(
22967 mv -f confcache "$cache_file" ;;
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22973 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22978 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22979 # Let make expand exec_prefix.
22980 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22982 DEFS=-DHAVE_CONFIG_H
22987 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22988 # 1. Remove the extension, and $U if already installed.
22989 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22990 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22991 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22992 # will be set to the directory where LIBOBJS objects are built.
22993 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22994 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22996 LIBOBJS=$ac_libobjs
22998 LTLIBOBJS=$ac_ltlibobjs
23003 : "${CONFIG_STATUS=./config.status}"
23005 ac_clean_files_save=$ac_clean_files
23006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23008 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23010 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23012 # Generated by $as_me.
23013 # Run this file to recreate the current configuration.
23014 # Compiler output produced by configure, useful for debugging
23015 # configure, is in config.log if it exists.
23018 ac_cs_recheck=false
23021 SHELL=\${CONFIG_SHELL-$SHELL}
23024 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23025 ## -------------------- ##
23026 ## M4sh Initialization. ##
23027 ## -------------------- ##
23029 # Be more Bourne compatible
23030 DUALCASE=1; export DUALCASE # for MKS sh
23031 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23034 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23035 # is contrary to our usage. Disable this feature.
23036 alias -g '${1+"$@"}'='"$@"'
23037 setopt NO_GLOB_SUBST
23039 case `(set -o) 2>/dev/null` in #(
23051 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23052 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23055 # Prefer a ksh shell builtin over an external printf program on Solaris,
23056 # but without wasting forks for bash or zsh.
23057 if test -z "$BASH_VERSION$ZSH_VERSION" \
23058 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23059 as_echo='print -r --'
23060 as_echo_n='print -rn --'
23061 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23062 as_echo='printf %s\n'
23063 as_echo_n='printf %s'
23065 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23066 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23067 as_echo_n='/usr/ucb/echo -n'
23069 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23070 as_echo_n_body='eval
23074 expr "X$arg" : "X\\(.*\\)$as_nl";
23075 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23077 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23079 export as_echo_n_body
23080 as_echo_n='sh -c $as_echo_n_body as_echo'
23082 export as_echo_body
23083 as_echo='sh -c $as_echo_body as_echo'
23086 # The user is always right.
23087 if test "${PATH_SEPARATOR+set}" != set; then
23089 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23090 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23097 # We need space, tab and new line, in precisely that order. Quoting is
23098 # there to prevent editors from complaining about space-tab.
23099 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23100 # splitting by setting IFS to empty value.)
23103 # Find who we are. Look in the path if we contain no directory separator.
23106 *[\\/]* ) as_myself=$0 ;;
23107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23108 for as_dir in $PATH
23111 test -z "$as_dir" && as_dir=.
23112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23118 # We did not find ourselves, most probably we were run as `sh COMMAND'
23119 # in which case we are not to be found in the path.
23120 if test "x$as_myself" = x; then
23123 if test ! -f "$as_myself"; then
23124 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23128 # Unset variables that we do not need and which cause bugs (e.g. in
23129 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23130 # suppresses any "Segmentation fault" message there. '((' could
23131 # trigger a bug in pdksh 5.2.14.
23132 for as_var in BASH_ENV ENV MAIL MAILPATH
23133 do eval test x\${$as_var+set} = xset \
23134 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23147 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23150 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23151 # ----------------------------------------
23152 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23153 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23154 # script with STATUS, using 1 if that was 0.
23157 as_status=$1; test $as_status -eq 0 && as_status=1
23159 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23160 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23162 $as_echo "$as_me: error: $2" >&2
23163 as_fn_exit $as_status
23167 # as_fn_set_status STATUS
23168 # -----------------------
23169 # Set $? to STATUS, without forking.
23170 as_fn_set_status ()
23173 } # as_fn_set_status
23175 # as_fn_exit STATUS
23176 # -----------------
23177 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23181 as_fn_set_status $1
23187 # Portably unset VAR.
23190 { eval $1=; unset $1;}
23192 as_unset=as_fn_unset
23193 # as_fn_append VAR VALUE
23194 # ----------------------
23195 # Append the text in VALUE to the end of the definition contained in VAR. Take
23196 # advantage of any shell optimizations that allow amortized linear growth over
23197 # repeated appends, instead of the typical quadratic growth present in naive
23199 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23200 eval 'as_fn_append ()
23211 # as_fn_arith ARG...
23212 # ------------------
23213 # Perform arithmetic evaluation on the ARGs, and store the result in the
23214 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23215 # must be portable across $(()) and expr.
23216 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23217 eval 'as_fn_arith ()
23224 as_val=`expr "$@" || test $? -eq 1`
23229 if expr a : '\(a\)' >/dev/null 2>&1 &&
23230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23237 as_basename=basename
23242 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23248 as_me=`$as_basename -- "$0" ||
23249 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23250 X"$0" : 'X\(//\)$' \| \
23251 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23253 sed '/^.*\/\([^/][^/]*\)\/*$/{
23267 # Avoid depending upon Character Ranges.
23268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23271 as_cr_digits='0123456789'
23272 as_cr_alnum=$as_cr_Letters$as_cr_digits
23274 ECHO_C= ECHO_N= ECHO_T=
23275 case `echo -n x` in #(((((
23277 case `echo 'xy\c'` in
23278 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23280 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23287 rm -f conf$$ conf$$.exe conf$$.file
23288 if test -d conf$$.dir; then
23289 rm -f conf$$.dir/conf$$.file
23292 mkdir conf$$.dir 2>/dev/null
23294 if (echo >conf$$.file) 2>/dev/null; then
23295 if ln -s conf$$.file conf$$ 2>/dev/null; then
23297 # ... but there are two gotchas:
23298 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23299 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23300 # In both cases, we have to default to `cp -pR'.
23301 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23303 elif ln conf$$.file conf$$ 2>/dev/null; then
23311 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23312 rmdir conf$$.dir 2>/dev/null
23317 # Create "$as_dir" as a directory, including parents if necessary.
23322 -*) as_dir=./$as_dir;;
23324 test -d "$as_dir" || eval $as_mkdir_p || {
23328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23329 *) as_qdir=$as_dir;;
23331 as_dirs="'$as_qdir' $as_dirs"
23332 as_dir=`$as_dirname -- "$as_dir" ||
23333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23334 X"$as_dir" : 'X\(//\)[^/]' \| \
23335 X"$as_dir" : 'X\(//\)$' \| \
23336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23337 $as_echo X"$as_dir" |
23338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23342 /^X\(\/\/\)[^/].*/{
23355 test -d "$as_dir" && break
23357 test -z "$as_dirs" || eval "mkdir $as_dirs"
23358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23362 if mkdir -p . 2>/dev/null; then
23363 as_mkdir_p='mkdir -p "$as_dir"'
23365 test -d ./-p && rmdir ./-p
23370 # as_fn_executable_p FILE
23371 # -----------------------
23372 # Test if FILE is an executable regular file.
23373 as_fn_executable_p ()
23375 test -f "$1" && test -x "$1"
23376 } # as_fn_executable_p
23377 as_test_x='test -x'
23378 as_executable_p=as_fn_executable_p
23380 # Sed expression to map a string onto a valid CPP name.
23381 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23383 # Sed expression to map a string onto a valid variable name.
23384 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23388 ## ----------------------------------- ##
23389 ## Main body of $CONFIG_STATUS script. ##
23390 ## ----------------------------------- ##
23392 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23395 # Save the log message, to keep $0 and so on meaningful, and to
23396 # report actual input values of CONFIG_FILES etc. instead of their
23397 # values after options handling.
23399 This file was extended by $as_me, which was
23400 generated by GNU Autoconf 2.69. Invocation command line was
23402 CONFIG_FILES = $CONFIG_FILES
23403 CONFIG_HEADERS = $CONFIG_HEADERS
23404 CONFIG_LINKS = $CONFIG_LINKS
23405 CONFIG_COMMANDS = $CONFIG_COMMANDS
23408 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23413 case $ac_config_files in *"
23414 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23417 case $ac_config_headers in *"
23418 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23423 # Files that config.status was made for.
23424 config_files="$ac_config_files"
23425 config_headers="$ac_config_headers"
23426 config_commands="$ac_config_commands"
23430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23432 \`$as_me' instantiates files and other configuration actions
23433 from templates according to the current configuration. Unless the files
23434 and actions are specified as TAGs, all are instantiated by default.
23436 Usage: $0 [OPTION]... [TAG]...
23438 -h, --help print this help, then exit
23439 -V, --version print version number and configuration settings, then exit
23440 --config print configuration, then exit
23441 -q, --quiet, --silent
23442 do not print progress messages
23443 -d, --debug don't remove temporary files
23444 --recheck update $as_me by reconfiguring in the same conditions
23445 --file=FILE[:TEMPLATE]
23446 instantiate the configuration file FILE
23447 --header=FILE[:TEMPLATE]
23448 instantiate the configuration header FILE
23450 Configuration files:
23453 Configuration headers:
23456 Configuration commands:
23459 Report bugs to the package provider."
23462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23463 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23466 configured by $0, generated by GNU Autoconf 2.69,
23467 with options \\"\$ac_cs_config\\"
23469 Copyright (C) 2012 Free Software Foundation, Inc.
23470 This config.status script is free software; the Free Software Foundation
23471 gives unlimited permission to copy, distribute and modify it."
23475 test -n "\$AWK" || AWK=awk
23478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23479 # The default lists apply if the user does not specify any file.
23485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23502 # Handling of the options.
23503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23505 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23506 $as_echo "$ac_cs_version"; exit ;;
23507 --config | --confi | --conf | --con | --co | --c )
23508 $as_echo "$ac_cs_config"; exit ;;
23509 --debug | --debu | --deb | --de | --d | -d )
23511 --file | --fil | --fi | --f )
23514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23515 '') as_fn_error $? "missing file argument" ;;
23517 as_fn_append CONFIG_FILES " '$ac_optarg'"
23518 ac_need_defaults=false;;
23519 --header | --heade | --head | --hea )
23522 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23524 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23525 ac_need_defaults=false;;
23527 # Conflict between --help and --header
23528 as_fn_error $? "ambiguous option: \`$1'
23529 Try \`$0 --help' for more information.";;
23530 --help | --hel | -h )
23531 $as_echo "$ac_cs_usage"; exit ;;
23532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23533 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23536 # This is an error.
23537 -*) as_fn_error $? "unrecognized option: \`$1'
23538 Try \`$0 --help' for more information." ;;
23540 *) as_fn_append ac_config_targets " $1"
23541 ac_need_defaults=false ;;
23547 ac_configure_extra_args=
23549 if $ac_cs_silent; then
23551 ac_configure_extra_args="$ac_configure_extra_args --silent"
23555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23556 if \$ac_cs_recheck; then
23557 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23559 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23560 CONFIG_SHELL='$SHELL'
23561 export CONFIG_SHELL
23566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23570 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23571 ## Running $as_me. ##
23577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23582 # Handling of arguments.
23583 for ac_config_target in $ac_config_targets
23585 case $ac_config_target in
23586 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23587 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23588 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23589 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23590 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23591 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23592 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23593 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23594 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23595 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23596 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23597 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23598 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23599 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23600 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23601 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23602 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23603 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23604 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23606 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23611 # If the user did not use the arguments to specify the items to instantiate,
23612 # then the envvar interface is used. Set only those that are not.
23613 # We use the long form for the default assignment because of an extremely
23614 # bizarre bug on SunOS 4.1.3.
23615 if $ac_need_defaults; then
23616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23618 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23621 # Have a temporary directory for convenience. Make it in the build tree
23622 # simply because there is no reason against having it here, and in addition,
23623 # creating and moving files from /tmp can sometimes cause problems.
23624 # Hook for its removal unless debugging.
23625 # Note that there is a small window in which the directory will not be cleaned:
23626 # after its creation but before its name has been assigned to `$tmp'.
23630 trap 'exit_status=$?
23631 : "${ac_tmp:=$tmp}"
23632 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23634 trap 'as_fn_exit 1' 1 2 13 15
23636 # Create a (secure) tmp directory for tmp files.
23639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23643 tmp=./conf$$-$RANDOM
23644 (umask 077 && mkdir "$tmp")
23645 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23648 # Set up the scripts for CONFIG_FILES section.
23649 # No need to generate them if there are no CONFIG_FILES.
23650 # This happens for instance with `./config.status config.h'.
23651 if test -n "$CONFIG_FILES"; then
23654 ac_cr=`echo X | tr X '\015'`
23655 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23656 # But we know of no other shell where ac_cr would be empty at this
23657 # point, so we can use a bashism as a fallback.
23658 if test "x$ac_cr" = x; then
23659 eval ac_cr=\$\'\\r\'
23661 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23662 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23665 ac_cs_awk_cr=$ac_cr
23668 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23673 echo "cat >conf$$subs.awk <<_ACEOF" &&
23674 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23676 } >conf$$subs.sh ||
23677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23678 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23680 for ac_last_try in false false false false false :; do
23681 . ./conf$$subs.sh ||
23682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23684 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23685 if test $ac_delim_n = $ac_delim_num; then
23687 elif $ac_last_try; then
23688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23693 rm -f conf$$subs.sh
23695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23696 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23700 s/^/S["/; s/!.*/"]=/
23710 s/\(.\{148\}\)..*/\1/
23712 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23724 s/\(.\{148\}\)..*/\1/
23726 s/["\\]/\\&/g; s/^/"/; s/$/"/
23730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23735 ' <conf$$subs.awk | sed '
23740 ' >>$CONFIG_STATUS || ac_write_fail=1
23741 rm -f conf$$subs.awk
23742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23744 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23745 for (key in S) S_is_set[key] = 1
23751 nfields = split(line, field, "@")
23753 len = length(field[1])
23754 for (i = 2; i < nfields; i++) {
23756 keylen = length(key)
23757 if (S_is_set[key]) {
23759 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23760 len += length(value) + length(field[++i])
23771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23772 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23773 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23776 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23777 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23780 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23781 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23782 # trailing colons and then remove the whole line if VPATH becomes empty
23783 # (actually we leave an empty line to preserve line numbers).
23784 if test "x$srcdir" = x.; then
23785 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23804 fi # test -n "$CONFIG_FILES"
23806 # Set up the scripts for CONFIG_HEADERS section.
23807 # No need to generate them if there are no CONFIG_HEADERS.
23808 # This happens for instance with `./config.status Makefile'.
23809 if test -n "$CONFIG_HEADERS"; then
23810 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23814 # Transform confdefs.h into an awk script `defines.awk', embedded as
23815 # here-document in config.status, that substitutes the proper values into
23816 # config.h.in to produce config.h.
23818 # Create a delimiter string that does not exist in confdefs.h, to ease
23819 # handling of long lines.
23821 for ac_last_try in false false :; do
23822 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23823 if test -z "$ac_tt"; then
23825 elif $ac_last_try; then
23826 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23832 # For the awk script, D is an array of macro values keyed by name,
23833 # likewise P contains macro parameters if any. Preserve backslash
23834 # newline sequences.
23836 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23838 s/.\{148\}/&'"$ac_delim"'/g
23841 s/^[ ]*#[ ]*define[ ][ ]*/ /
23848 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23854 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23855 D["\1"]=" \3\\\\\\n"\\/p
23857 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23862 s/.\{148\}/&'"$ac_delim"'/g
23867 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23870 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23872 ' <confdefs.h | sed '
23873 s/'"$ac_delim"'/"\\\
23874 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23877 for (key in D) D_is_set[key] = 1
23880 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23882 split(line, arg, " ")
23883 if (arg[1] == "#") {
23887 defundef = substr(arg[1], 2)
23890 split(mac1, mac2, "(") #)
23892 prefix = substr(line, 1, index(line, defundef) - 1)
23893 if (D_is_set[macro]) {
23894 # Preserve the white space surrounding the "#".
23895 print prefix "define", macro P[macro] D[macro]
23898 # Replace #undef with comments. This is necessary, for example,
23899 # in the case of _POSIX_SOURCE, which is predefined and required
23900 # on some systems where configure will not decide to define it.
23901 if (defundef == "undef") {
23902 print "/*", prefix defundef, macro, "*/"
23910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23911 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23912 fi # test -n "$CONFIG_HEADERS"
23915 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23920 :[FHLC]) ac_mode=$ac_tag; continue;;
23922 case $ac_mode$ac_tag in
23924 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23925 :[FH]-) ac_tag=-:-;;
23926 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23943 -) ac_f="$ac_tmp/stdin";;
23944 *) # Look for the file first in the build tree, then in the source tree
23945 # (if the path is not absolute). The absolute path cannot be DOS-style,
23946 # because $ac_f cannot contain `:'.
23950 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23952 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23954 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23955 as_fn_append ac_file_inputs " '$ac_f'"
23958 # Let's still pretend it is `configure' which instantiates (i.e., don't
23959 # use $as_me), people would be surprised to read:
23960 # /* config.h. Generated by config.status. */
23961 configure_input='Generated from '`
23962 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23964 if test x"$ac_file" != x-; then
23965 configure_input="$ac_file. $configure_input"
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23967 $as_echo "$as_me: creating $ac_file" >&6;}
23969 # Neutralize special characters interpreted by sed in replacement strings.
23970 case $configure_input in #(
23971 *\&* | *\|* | *\\* )
23972 ac_sed_conf_input=`$as_echo "$configure_input" |
23973 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23974 *) ac_sed_conf_input=$configure_input;;
23978 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23984 ac_dir=`$as_dirname -- "$ac_file" ||
23985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23986 X"$ac_file" : 'X\(//\)[^/]' \| \
23987 X"$ac_file" : 'X\(//\)$' \| \
23988 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23989 $as_echo X"$ac_file" |
23990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23994 /^X\(\/\/\)[^/].*/{
24007 as_dir="$ac_dir"; as_fn_mkdir_p
24011 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24013 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24014 # A ".." for each directory in $ac_dir_suffix.
24015 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24016 case $ac_top_builddir_sub in
24017 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24018 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24021 ac_abs_top_builddir=$ac_pwd
24022 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24023 # for backward compatibility:
24024 ac_top_builddir=$ac_top_build_prefix
24027 .) # We are building in place.
24029 ac_top_srcdir=$ac_top_builddir_sub
24030 ac_abs_top_srcdir=$ac_pwd ;;
24031 [\\/]* | ?:[\\/]* ) # Absolute name.
24032 ac_srcdir=$srcdir$ac_dir_suffix;
24033 ac_top_srcdir=$srcdir
24034 ac_abs_top_srcdir=$srcdir ;;
24035 *) # Relative name.
24036 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24037 ac_top_srcdir=$ac_top_build_prefix$srcdir
24038 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24040 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24052 # If the template does not know about datarootdir, expand it.
24053 # FIXME: This hack should be removed a few years after 2.60.
24054 ac_datarootdir_hack=; ac_datarootdir_seen=
24065 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24066 *datarootdir*) ac_datarootdir_seen=yes;;
24067 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24069 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24072 ac_datarootdir_hack='
24073 s&@datadir@&$datadir&g
24074 s&@docdir@&$docdir&g
24075 s&@infodir@&$infodir&g
24076 s&@localedir@&$localedir&g
24077 s&@mandir@&$mandir&g
24078 s&\\\${datarootdir}&$datarootdir&g' ;;
24082 # Neutralize VPATH when `$srcdir' = `.'.
24083 # Shell code in configure.ac might set extrasub.
24084 # FIXME: do we really want to maintain this feature?
24085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24086 ac_sed_extra="$ac_vpsub
24089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24092 s|@configure_input@|$ac_sed_conf_input|;t t
24093 s&@top_builddir@&$ac_top_builddir_sub&;t t
24094 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24095 s&@srcdir@&$ac_srcdir&;t t
24096 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24097 s&@top_srcdir@&$ac_top_srcdir&;t t
24098 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24099 s&@builddir@&$ac_builddir&;t t
24100 s&@abs_builddir@&$ac_abs_builddir&;t t
24101 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24102 $ac_datarootdir_hack
24104 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24105 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24107 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24108 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24109 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24110 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24112 which seems to be undefined. Please make sure it is defined" >&5
24113 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24114 which seems to be undefined. Please make sure it is defined" >&2;}
24116 rm -f "$ac_tmp/stdin"
24118 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24119 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24127 if test x"$ac_file" != x-; then
24129 $as_echo "/* $configure_input */" \
24130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24131 } >"$ac_tmp/config.h" \
24132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24133 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24135 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24138 mv "$ac_tmp/config.h" "$ac_file" \
24139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24142 $as_echo "/* $configure_input */" \
24143 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24144 || as_fn_error $? "could not create -" "$LINENO" 5
24148 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24149 $as_echo "$as_me: executing $ac_file commands" >&6;}
24154 case $ac_file$ac_mode in
24155 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
24156 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
24157 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
24158 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
24166 ac_clean_files=$ac_clean_files_save
24168 test $ac_write_fail = 0 ||
24169 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24172 # configure is writing to config.log, and then calls config.status.
24173 # config.status does its own redirection, appending to config.log.
24174 # Unfortunately, on DOS this fails, as config.log is still kept open
24175 # by configure, so config.status won't be able to write to it; its
24176 # output is simply discarded. So we exec the FD to /dev/null,
24177 # effectively closing config.log, so it can be properly (re)opened and
24178 # appended to by config.status. When coming back to configure, we
24179 # need to make the FD available again.
24180 if test "$no_create" != yes; then
24182 ac_config_status_args=
24183 test "$silent" = yes &&
24184 ac_config_status_args="$ac_config_status_args --quiet"
24186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24189 # would make configure fail if this is the last instruction.
24190 $ac_cs_success || as_fn_exit 1
24194 # CONFIG_SUBDIRS section.
24196 if test "$no_recursion" != yes; then
24198 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24199 # so they do not pile up.
24200 ac_sub_configure_args=
24202 eval "set x $ac_configure_args"
24206 if test -n "$ac_prev"; then
24211 -cache-file | --cache-file | --cache-fil | --cache-fi \
24212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24213 ac_prev=cache_file ;;
24214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24218 --config-cache | -C)
24220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24224 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24226 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24228 --disable-option-checking)
24232 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24234 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24238 # Always prepend --prefix to ensure using the same prefix
24239 # in subdir configurations.
24240 ac_arg="--prefix=$prefix"
24242 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24244 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24247 if test "$silent" = yes; then
24248 ac_sub_configure_args="--silent $ac_sub_configure_args"
24251 # Always prepend --disable-option-checking to silence warnings, since
24252 # different subdirs can have different --enable and --with options.
24253 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24256 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24258 # Do not complain, so a configure script can configure whichever
24259 # parts of a large source tree are present.
24260 test -d "$srcdir/$ac_dir" || continue
24262 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24263 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24264 $as_echo "$ac_msg" >&6
24265 as_dir="$ac_dir"; as_fn_mkdir_p
24269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24272 # A ".." for each directory in $ac_dir_suffix.
24273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24274 case $ac_top_builddir_sub in
24275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24279 ac_abs_top_builddir=$ac_pwd
24280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24281 # for backward compatibility:
24282 ac_top_builddir=$ac_top_build_prefix
24285 .) # We are building in place.
24287 ac_top_srcdir=$ac_top_builddir_sub
24288 ac_abs_top_srcdir=$ac_pwd ;;
24289 [\\/]* | ?:[\\/]* ) # Absolute name.
24290 ac_srcdir=$srcdir$ac_dir_suffix;
24291 ac_top_srcdir=$srcdir
24292 ac_abs_top_srcdir=$srcdir ;;
24293 *) # Relative name.
24294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24295 ac_top_srcdir=$ac_top_build_prefix$srcdir
24296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24303 # Check for guested configure; otherwise get Cygnus style configure.
24304 if test -f "$ac_srcdir/configure.gnu"; then
24305 ac_sub_configure=$ac_srcdir/configure.gnu
24306 elif test -f "$ac_srcdir/configure"; then
24307 ac_sub_configure=$ac_srcdir/configure
24308 elif test -f "$ac_srcdir/configure.in"; then
24309 # This should be Cygnus configure.
24310 ac_sub_configure=$ac_aux_dir/configure
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24313 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24317 # The recursion is here.
24318 if test -n "$ac_sub_configure"; then
24319 # Make the cache file name correct relative to the subdirectory.
24320 case $cache_file in
24321 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24322 *) # Relative name.
24323 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24326 { $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
24327 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24328 # The eval makes quoting arguments work.
24329 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24330 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24331 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24337 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24339 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}