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
885 program_transform_name
898 enable_option_checking
909 enable_strict_dependencies
918 with_post_proxy_authorize
922 with_experimental_modules
924 with_openssl_includes
925 with_openssl_libraries
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.
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-system-libltdl Use the libltdl installed in your system (default=use our own)
1570 --with-system-libtool Use the libtool installed in your system (default=use our own)
1571 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1572 --with-pic try to use only PIC/non-PIC objects [default=use
1574 --with-tags[=TAGS] include additional configurations [automatic]
1575 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1576 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1577 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1578 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1579 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1580 --with-threads Use threads, if available. (default=yes)
1581 --with-vmps Compile in VMPS support. (default=yes)
1582 --with-dhcp Compile in DHCP support. (default=yes)
1583 --with-post-proxy-authorize 1.x compatibility (default=no)
1584 --with-static-modules=QUOTED-MODULE-LIST
1585 --with-modules=QUOTED-MODULE-LIST
1586 --with-experimental-modules Use experimental and unstable modules. (default=no)
1587 --with-openssl Use OpenSSL. (default=yes)
1588 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1589 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1590 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1591 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1592 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1602 CXX C++ compiler command
1603 CXXFLAGS C++ compiler flags
1605 CXXCPP C++ preprocessor
1606 F77 Fortran 77 compiler command
1607 FFLAGS Fortran 77 compiler flags
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1612 Report bugs to the package provider.
1617 if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1642 .) # We are building in place.
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
1647 ac_srcdir=$srcdir$ac_dir_suffix;
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1664 $SHELL "$ac_srcdir/configure" --help=recursive
1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668 cd "$ac_pwd" || { ac_status=$?; break; }
1672 test -n "$ac_init_help" && exit $ac_status
1673 if $ac_init_version; then
1676 generated by GNU Autoconf 2.69
1678 Copyright (C) 2012 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1685 ## ------------------------ ##
1686 ## Autoconf initialization. ##
1687 ## ------------------------ ##
1689 # ac_fn_c_try_compile LINENO
1690 # --------------------------
1691 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_compile ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext
1696 if { { ac_try="$ac_compile"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_compile") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest.$ac_objext; then :
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_compile
1727 # ac_fn_cxx_try_compile LINENO
1728 # ----------------------------
1729 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_cxx_try_compile ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext
1734 if { { ac_try="$ac_compile"
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_compile") 2>conftest.err
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_cxx_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest.$ac_objext; then :
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1763 } # ac_fn_cxx_try_compile
1765 # ac_fn_c_try_cpp LINENO
1766 # ----------------------
1767 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_cpp conftest.$ac_ext"
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } > conftest.i && {
1787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1802 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1803 # -------------------------------------------------------
1804 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1805 # the include files in INCLUDES and setting the cache variable VAR
1807 ac_fn_c_check_header_mongrel ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if eval \${$3+:} false; then :
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1820 # Is the header compilable?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1822 $as_echo_n "checking $2 usability... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829 ac_header_compiler=yes
1831 ac_header_compiler=no
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1835 $as_echo "$ac_header_compiler" >&6; }
1837 # Is the header present?
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1839 $as_echo_n "checking $2 presence... " >&6; }
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1844 if ac_fn_c_try_cpp "$LINENO"; then :
1845 ac_header_preproc=yes
1847 ac_header_preproc=no
1849 rm -f conftest.err conftest.i conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1851 $as_echo "$ac_header_preproc" >&6; }
1853 # So? What about this header?
1854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1857 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1863 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1865 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1867 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1869 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1879 eval "$3=\$ac_header_compiler"
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 } # ac_fn_c_check_header_mongrel
1889 # ac_fn_c_try_run LINENO
1890 # ----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1892 # that executables *can* be run.
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { { ac_try="$ac_link"
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>&5
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1907 { { case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_try") 2>&5
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; }; }; then :
1919 $as_echo "$as_me: program exited with status $ac_status" >&5
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=$ac_status
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_compile
1962 # ac_fn_c_try_link LINENO
1963 # -----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded.
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 rm -f conftest.$ac_objext conftest$ac_exeext
1969 if { { ac_try="$ac_link"
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>conftest.err
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } && {
1985 test -z "$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1987 } && test -s conftest$ac_exeext && {
1988 test "$cross_compiling" = yes ||
1989 test -x conftest$ac_exeext
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1998 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1999 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2000 # interfere with the next link command; also delete a directory that is
2001 # left behind by Apple's compiler. We do this before executing the actions.
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2006 } # ac_fn_c_try_link
2008 # ac_fn_c_check_func LINENO FUNC VAR
2009 # ----------------------------------
2010 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2011 ac_fn_c_check_func ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2023 #define $2 innocuous_$2
2025 /* System header to define __stub macros and hopefully few prototypes,
2026 which can conflict with char $2 (); below.
2027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2028 <limits.h> exists even on freestanding compilers. */
2031 # include <limits.h>
2033 # include <assert.h>
2038 /* Override any GCC internal prototype to avoid an error.
2039 Use char because int might match the return type of a GCC
2040 builtin and then its argument prototype would still apply. */
2045 /* The GNU C library defines this for functions which it implements
2046 to always fail with ENOSYS. Some functions are actually named
2047 something starting with __ and the normal name is an alias. */
2048 #if defined __stub_$2 || defined __stub___$2
2060 if ac_fn_c_try_link "$LINENO"; then :
2065 rm -f core conftest.err conftest.$ac_objext \
2066 conftest$ac_exeext conftest.$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 } # ac_fn_c_check_func
2075 # ac_fn_cxx_try_cpp LINENO
2076 # ------------------------
2077 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_cxx_try_cpp ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if { { ac_try="$ac_cpp conftest.$ac_ext"
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2090 if test -s conftest.err; then
2091 grep -v '^ *+' conftest.err >conftest.er1
2092 cat conftest.er1 >&5
2093 mv -f conftest.er1 conftest.err
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } > conftest.i && {
2097 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2098 test ! -s conftest.err
2102 $as_echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 as_fn_set_status $ac_retval
2110 } # ac_fn_cxx_try_cpp
2112 # ac_fn_cxx_try_link LINENO
2113 # -------------------------
2114 # Try to link conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_link ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 rm -f conftest.$ac_objext conftest$ac_exeext
2119 if { { ac_try="$ac_link"
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_link") 2>conftest.err
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } && {
2135 test -z "$ac_cxx_werror_flag" ||
2136 test ! -s conftest.err
2137 } && test -s conftest$ac_exeext && {
2138 test "$cross_compiling" = yes ||
2139 test -x conftest$ac_exeext
2143 $as_echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2148 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2149 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2150 # interfere with the next link command; also delete a directory that is
2151 # left behind by Apple's compiler. We do this before executing the actions.
2152 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154 as_fn_set_status $ac_retval
2156 } # ac_fn_cxx_try_link
2158 # ac_fn_f77_try_compile LINENO
2159 # ----------------------------
2160 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2161 ac_fn_f77_try_compile ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 rm -f conftest.$ac_objext
2165 if { { ac_try="$ac_compile"
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171 $as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_compile") 2>conftest.err
2174 if test -s conftest.err; then
2175 grep -v '^ *+' conftest.err >conftest.er1
2176 cat conftest.er1 >&5
2177 mv -f conftest.er1 conftest.err
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; } && {
2181 test -z "$ac_f77_werror_flag" ||
2182 test ! -s conftest.err
2183 } && test -s conftest.$ac_objext; then :
2186 $as_echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 as_fn_set_status $ac_retval
2194 } # ac_fn_f77_try_compile
2196 # ac_fn_f77_try_link LINENO
2197 # -------------------------
2198 # Try to link conftest.$ac_ext, and return whether this succeeded.
2199 ac_fn_f77_try_link ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 rm -f conftest.$ac_objext conftest$ac_exeext
2203 if { { ac_try="$ac_link"
2205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206 *) ac_try_echo=$ac_try;;
2208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2209 $as_echo "$ac_try_echo"; } >&5
2210 (eval "$ac_link") 2>conftest.err
2212 if test -s conftest.err; then
2213 grep -v '^ *+' conftest.err >conftest.er1
2214 cat conftest.er1 >&5
2215 mv -f conftest.er1 conftest.err
2217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218 test $ac_status = 0; } && {
2219 test -z "$ac_f77_werror_flag" ||
2220 test ! -s conftest.err
2221 } && test -s conftest$ac_exeext && {
2222 test "$cross_compiling" = yes ||
2223 test -x conftest$ac_exeext
2227 $as_echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2232 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2233 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2234 # interfere with the next link command; also delete a directory that is
2235 # left behind by Apple's compiler. We do this before executing the actions.
2236 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 as_fn_set_status $ac_retval
2240 } # ac_fn_f77_try_link
2242 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2243 # -------------------------------------------
2244 # Tests whether TYPE exists after having included INCLUDES, setting cache
2245 # variable VAR accordingly.
2246 ac_fn_c_check_type ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if eval \${$3+:} false; then :
2252 $as_echo_n "(cached) " >&6
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2280 if ac_fn_c_try_compile "$LINENO"; then :
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291 $as_echo "$ac_res" >&6; }
2292 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 } # ac_fn_c_check_type
2296 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2297 # ---------------------------------------------
2298 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2300 ac_fn_c_check_decl ()
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 as_decl_name=`echo $2|sed 's/ *(.*//'`
2304 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2306 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2307 if eval \${$3+:} false; then :
2308 $as_echo_n "(cached) " >&6
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2316 #ifndef $as_decl_name
2318 (void) $as_decl_use;
2320 (void) $as_decl_name;
2328 if ac_fn_c_try_compile "$LINENO"; then :
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340 } # ac_fn_c_check_decl
2341 cat >config.log <<_ACEOF
2342 This file contains any messages produced by compilers while
2343 running configure, to aid debugging if configure makes a mistake.
2345 It was created by $as_me, which was
2346 generated by GNU Autoconf 2.69. Invocation command line was
2358 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2359 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2360 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2361 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2362 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2364 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2365 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2367 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2368 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2369 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2370 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2371 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2372 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2373 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 $as_echo "PATH: $as_dir"
2398 # Keep a trace of the command line.
2399 # Strip out --no-create and --no-recursion so they do not pile up.
2400 # Strip out --silent because we don't want to record it for future runs.
2401 # Also quote any args containing shell meta-characters.
2402 # Make two passes to allow for proper duplicate-argument suppression.
2406 ac_must_keep_next=false
2412 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2414 | -silent | --silent | --silen | --sile | --sil)
2417 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2422 as_fn_append ac_configure_args1 " '$ac_arg'"
2423 if test $ac_must_keep_next = true; then
2424 ac_must_keep_next=false # Got value, back to normal.
2427 *=* | --config-cache | -C | -disable-* | --disable-* \
2428 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2429 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2430 | -with-* | --with-* | -without-* | --without-* | --x)
2431 case "$ac_configure_args0 " in
2432 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2435 -* ) ac_must_keep_next=true ;;
2438 as_fn_append ac_configure_args " '$ac_arg'"
2443 { ac_configure_args0=; unset ac_configure_args0;}
2444 { ac_configure_args1=; unset ac_configure_args1;}
2446 # When interrupted or exit'd, cleanup temporary files, and complete
2447 # config.log. We remove comments because anyway the quotes in there
2448 # would cause problems or look ugly.
2449 # WARNING: Use '\'' to represent an apostrophe within the trap.
2450 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2451 trap 'exit_status=$?
2452 # Save into config.log some information that might help in debugging.
2456 $as_echo "## ---------------- ##
2457 ## Cache variables. ##
2458 ## ---------------- ##"
2460 # The following way of writing the cache mishandles newlines in values,
2462 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2463 eval ac_val=\$$ac_var
2467 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2471 _ | IFS | as_nl) ;; #(
2472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2473 *) { eval $ac_var=; unset $ac_var;} ;;
2478 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2479 *${as_nl}ac_space=\ *)
2481 "s/'\''/'\''\\\\'\'''\''/g;
2482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2485 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2492 $as_echo "## ----------------- ##
2493 ## Output variables. ##
2494 ## ----------------- ##"
2496 for ac_var in $ac_subst_vars
2498 eval ac_val=\$$ac_var
2500 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2502 $as_echo "$ac_var='\''$ac_val'\''"
2506 if test -n "$ac_subst_files"; then
2507 $as_echo "## ------------------- ##
2508 ## File substitutions. ##
2509 ## ------------------- ##"
2511 for ac_var in $ac_subst_files
2513 eval ac_val=\$$ac_var
2515 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517 $as_echo "$ac_var='\''$ac_val'\''"
2522 if test -s confdefs.h; then
2523 $as_echo "## ----------- ##
2530 test "$ac_signal" != 0 &&
2531 $as_echo "$as_me: caught signal $ac_signal"
2532 $as_echo "$as_me: exit $exit_status"
2534 rm -f core *.core core.conftest.* &&
2535 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2538 for ac_signal in 1 2 13 15; do
2539 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2544 rm -f -r conftest* confdefs.h
2546 $as_echo "/* confdefs.h */" > confdefs.h
2548 # Predefined preprocessor variables.
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_NAME "$PACKAGE_NAME"
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_STRING "$PACKAGE_STRING"
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_URL "$PACKAGE_URL"
2575 # Let the site file select an alternate cache file if it wants to.
2576 # Prefer an explicitly selected file to automatically selected ones.
2579 if test -n "$CONFIG_SITE"; then
2580 # We do not want a PATH search for config.site.
2581 case $CONFIG_SITE in #((
2582 -*) ac_site_file1=./$CONFIG_SITE;;
2583 */*) ac_site_file1=$CONFIG_SITE;;
2584 *) ac_site_file1=./$CONFIG_SITE;;
2586 elif test "x$prefix" != xNONE; then
2587 ac_site_file1=$prefix/share/config.site
2588 ac_site_file2=$prefix/etc/config.site
2590 ac_site_file1=$ac_default_prefix/share/config.site
2591 ac_site_file2=$ac_default_prefix/etc/config.site
2593 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2595 test "x$ac_site_file" = xNONE && continue
2596 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2598 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2599 sed 's/^/| /' "$ac_site_file" >&5
2601 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 as_fn_error $? "failed to load site script $ac_site_file
2604 See \`config.log' for more details" "$LINENO" 5; }
2608 if test -r "$cache_file"; then
2609 # Some versions of bash will fail to source /dev/null (special files
2610 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2611 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2613 $as_echo "$as_me: loading cache $cache_file" >&6;}
2615 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2616 *) . "./$cache_file";;
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2621 $as_echo "$as_me: creating cache $cache_file" >&6;}
2625 # Check that the precious variables saved in the cache have kept the same
2627 ac_cache_corrupted=false
2628 for ac_var in $ac_precious_vars; do
2629 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2630 eval ac_new_set=\$ac_env_${ac_var}_set
2631 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2632 eval ac_new_val=\$ac_env_${ac_var}_value
2633 case $ac_old_set,$ac_new_set in
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2636 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2637 ac_cache_corrupted=: ;;
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2640 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2641 ac_cache_corrupted=: ;;
2644 if test "x$ac_old_val" != "x$ac_new_val"; then
2645 # differences in whitespace do not lead to failure.
2646 ac_old_val_w=`echo x $ac_old_val`
2647 ac_new_val_w=`echo x $ac_new_val`
2648 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2650 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2651 ac_cache_corrupted=:
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2654 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2655 eval $ac_var=\$ac_old_val
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2658 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2660 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2663 # Pass precious variables to config.status.
2664 if test "$ac_new_set" = set; then
2666 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2667 *) ac_arg=$ac_var=$ac_new_val ;;
2669 case " $ac_configure_args " in
2670 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2671 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2675 if $ac_cache_corrupted; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2679 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2680 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2682 ## -------------------- ##
2683 ## Main body of script. ##
2684 ## -------------------- ##
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2697 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2698 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2699 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2701 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2702 -v minor="$RADIUSD_MINOR_VERSION" \
2703 -v incrm="$RADIUSD_INCRM_VERSION" \
2704 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2706 RADIUSD_VERSION_STRING=`cat VERSION`
2711 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2712 if test -f "$ac_dir/install-sh"; then
2714 ac_install_sh="$ac_aux_dir/install-sh -c"
2716 elif test -f "$ac_dir/install.sh"; then
2718 ac_install_sh="$ac_aux_dir/install.sh -c"
2720 elif test -f "$ac_dir/shtool"; then
2722 ac_install_sh="$ac_aux_dir/shtool install -c"
2726 if test -z "$ac_aux_dir"; then
2727 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2730 # These three variables are undocumented and unsupported,
2731 # and are intended to be withdrawn in a future Autoconf release.
2732 # They can cause serious problems if a builder's source tree is in a directory
2733 # whose full name contains unusual characters.
2734 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2735 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2736 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if ${ac_cv_build+:} false; then :
2746 $as_echo_n "(cached) " >&6
2748 ac_build_alias=$build_alias
2749 test "x$ac_build_alias" = x &&
2750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x &&
2752 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2761 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2764 ac_save_IFS=$IFS; IFS='-'
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if ${ac_cv_host+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 if test "x$host_alias" = x; then
2783 ac_cv_host=$ac_cv_build
2785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2794 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2797 ac_save_IFS=$IFS; IFS='-'
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2811 $as_echo_n "checking target system type... " >&6; }
2812 if ${ac_cv_target+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 if test "x$target_alias" = x; then
2816 ac_cv_target=$ac_cv_host
2818 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2819 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2824 $as_echo "$ac_cv_target" >&6; }
2825 case $ac_cv_target in
2827 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2829 target=$ac_cv_target
2830 ac_save_IFS=$IFS; IFS='-'
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2840 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2843 # The aliases save the names the user supplied, while $host etc.
2844 # will get canonicalized.
2845 test -n "$target_alias" &&
2846 test "$program_prefix$program_suffix$program_transform_name" = \
2848 program_prefix=${target_alias}-
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cc is apple llvm" >&5
2854 $as_echo_n "checking if cc is apple llvm... " >&6; }
2855 if ! $CC --version 2>&1 | grep -I 'Apple LLVM' > /dev/null; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 # Extract the first word of "sw_vers", so it can be a program name with args.
2859 set dummy sw_vers; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_SW_VERS+:} false; then :
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$SW_VERS"; then
2866 ac_cv_prog_SW_VERS="$SW_VERS" # Let the user override the test.
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_SW_VERS="yes"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 test -z "$ac_cv_prog_SW_VERS" && ac_cv_prog_SW_VERS="no"
2886 SW_VERS=$ac_cv_prog_SW_VERS
2887 if test -n "$SW_VERS"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SW_VERS" >&5
2889 $as_echo "$SW_VERS" >&6; }
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2896 # Extract the first word of "xcodebuild", so it can be a program name with args.
2897 set dummy xcodebuild; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_XCODEBUILD+:} false; then :
2901 $as_echo_n "(cached) " >&6
2903 if test -n "$XCODEBUILD"; then
2904 ac_cv_prog_XCODEBUILD="$XCODEBUILD" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_XCODEBUILD="yes"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 test -z "$ac_cv_prog_XCODEBUILD" && ac_cv_prog_XCODEBUILD="no"
2924 XCODEBUILD=$ac_cv_prog_XCODEBUILD
2925 if test -n "$XCODEBUILD"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
2927 $as_echo "$XCODEBUILD" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2935 if test "x$SW_VERS" = "xyes" && test "x$XCODEBUILD" = "xyes"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: determining OSX SDK path" >&5
2937 $as_echo "$as_me: determining OSX SDK path" >&6;}
2938 osx_sdk_path=$(xcodebuild -version -sdk macosx$(sw_vers -productVersion | egrep -o '^[0-9]+\.[0-9]+') Path)
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $osx_sdk_path" >&5
2940 $as_echo "$osx_sdk_path" >&6; }
2942 export CFLAGS="$CFLAGS --sysroot=$osx_sdk_path "
2943 export CPPFLAGS="$CPPFLAGS --sysroot=$osx_sdk_path "
2944 export LDFLAGS="$LDFLAGS -L$osx_sdk_path/usr/lib/ "
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2954 ac_cpp='$CPP $CPPFLAGS'
2955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958 if test -n "$ac_tool_prefix"; then
2959 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_CC+:} false; then :
2964 $as_echo_n "(cached) " >&6
2966 if test -n "$CC"; then
2967 ac_cv_prog_CC="$CC" # Let the user override the test.
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 if test -n "$CC"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 $as_echo "$CC" >&6; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2997 if test -z "$ac_cv_prog_CC"; then
2999 # Extract the first word of "gcc", so it can be a program name with args.
3000 set dummy gcc; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3004 $as_echo_n "(cached) " >&6
3006 if test -n "$ac_ct_CC"; then
3007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_ac_ct_CC="gcc"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027 if test -n "$ac_ct_CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3029 $as_echo "$ac_ct_CC" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3035 if test "x$ac_ct_CC" = x; then
3038 case $cross_compiling:$ac_tool_warned in
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3050 if test -z "$CC"; then
3051 if test -n "$ac_tool_prefix"; then
3052 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3053 set dummy ${ac_tool_prefix}cc; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if ${ac_cv_prog_CC+:} false; then :
3057 $as_echo_n "(cached) " >&6
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 ac_cv_prog_CC="${ac_tool_prefix}cc"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3091 if test -z "$CC"; then
3092 # Extract the first word of "cc", so it can be a program name with args.
3093 set dummy cc; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if ${ac_cv_prog_CC+:} false; then :
3097 $as_echo_n "(cached) " >&6
3099 if test -n "$CC"; then
3100 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3111 ac_prog_rejected=yes
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 if test $ac_prog_rejected = yes; then
3123 # We found a bogon in the path, so make sure we never use it.
3124 set dummy $ac_cv_prog_CC
3126 if test $# != 0; then
3127 # We chose a different compiler from the bogus one.
3128 # However, it has the same basename, so the bogon will be chosen
3129 # first if we set CC to just the basename; use the full file name.
3131 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3137 if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 $as_echo "$CC" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3147 if test -z "$CC"; then
3148 if test -n "$ac_tool_prefix"; then
3149 for ac_prog in cl.exe
3151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_CC+:} false; then :
3156 $as_echo_n "(cached) " >&6
3158 if test -n "$CC"; then
3159 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3188 test -n "$CC" && break
3191 if test -z "$CC"; then
3193 for ac_prog in cl.exe
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy $ac_prog; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3200 $as_echo_n "(cached) " >&6
3202 if test -n "$ac_ct_CC"; then
3203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_ac_ct_CC="$ac_prog"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3223 if test -n "$ac_ct_CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3225 $as_echo "$ac_ct_CC" >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3232 test -n "$ac_ct_CC" && break
3235 if test "x$ac_ct_CC" = x; then
3238 case $cross_compiling:$ac_tool_warned in
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3251 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error $? "no acceptable C compiler found in \$PATH
3254 See \`config.log' for more details" "$LINENO" 5; }
3256 # Provide some information about the compiler.
3257 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3260 for ac_option in --version -v -V -qversion; do
3261 { { ac_try="$ac_compiler $ac_option >&5"
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3270 if test -s conftest.err; then
3272 ... rest of stderr output deleted ...
3273 10q' conftest.err >conftest.er1
3274 cat conftest.er1 >&5
3276 rm -f conftest.er1 conftest.err
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3298 $as_echo_n "checking whether the C compiler works... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3305 for ac_file in $ac_files
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314 if { { ac_try="$ac_link_default"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link_default") 2>&5
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }; then :
3325 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3330 for ac_file in $ac_files ''
3332 test -f "$ac_file" || continue
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3337 # We found the default executable, but exeext='' is most
3341 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 # We set ac_cv_exeext here because the later test for it is not
3346 # safe: cross compilers may not add the suffix if given an `-o'
3347 # argument, so we may need to know it at that point already.
3348 # Even if this section looks crufty: it has the advantage of
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360 if test -z "$ac_file"; then :
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 $as_echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error 77 "C compiler cannot create executables
3369 See \`config.log' for more details" "$LINENO" 5; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372 $as_echo "yes" >&6; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3375 $as_echo_n "checking for C compiler default output file name... " >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3377 $as_echo "$ac_file" >&6; }
3378 ac_exeext=$ac_cv_exeext
3380 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3381 ac_clean_files=$ac_clean_files_save
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3383 $as_echo_n "checking for suffix of executables... " >&6; }
3384 if { { ac_try="$ac_link"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; then :
3395 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3396 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3397 # work properly (i.e., refer to `conftest.exe'), while it won't with
3399 for ac_file in conftest.exe conftest conftest.*; do
3400 test -f "$ac_file" || continue
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3412 See \`config.log' for more details" "$LINENO" 5; }
3414 rm -f conftest conftest$ac_cv_exeext
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3427 FILE *f = fopen ("conftest.out", "w");
3428 return ferror (f) || fclose (f) != 0;
3434 ac_clean_files="$ac_clean_files conftest.out"
3435 # Check that the compiler produces executables we can run. If not, either
3436 # the compiler is broken, or we cross compile.
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3438 $as_echo_n "checking whether we are cross compiling... " >&6; }
3439 if test "$cross_compiling" != yes; then
3440 { { ac_try="$ac_link"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_link") 2>&5
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }
3451 if { ac_try='./conftest$ac_cv_exeext'
3452 { { case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_try") 2>&5
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }; }; then
3464 if test "$cross_compiling" = maybe; then
3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot run C compiled programs.
3470 If you meant to cross compile, use \`--host'.
3471 See \`config.log' for more details" "$LINENO" 5; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3476 $as_echo "$cross_compiling" >&6; }
3478 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3479 ac_clean_files=$ac_clean_files_save
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3481 $as_echo_n "checking for suffix of object files... " >&6; }
3482 if ${ac_cv_objext+:} false; then :
3483 $as_echo_n "(cached) " >&6
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3496 rm -f conftest.o conftest.obj
3497 if { { ac_try="$ac_compile"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compile") 2>&5
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }; then :
3508 for ac_file in conftest.o conftest.obj conftest.*; do
3509 test -f "$ac_file" || continue;
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3517 $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error $? "cannot compute suffix of object files: cannot compile
3523 See \`config.log' for more details" "$LINENO" 5; }
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if ${ac_cv_c_compiler_gnu+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3550 if ac_fn_c_try_compile "$LINENO"; then :
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3560 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3561 if test $ac_compiler_gnu = yes; then
3566 ac_test_CFLAGS=${CFLAGS+set}
3567 ac_save_CFLAGS=$CFLAGS
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3569 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3570 if ${ac_cv_prog_cc_g+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 ac_save_c_werror_flag=$ac_c_werror_flag
3574 ac_c_werror_flag=yes
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3588 if ac_fn_c_try_compile "$LINENO"; then :
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3603 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3619 if ac_fn_c_try_compile "$LINENO"; then :
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_c_werror_flag=$ac_save_c_werror_flag
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3630 $as_echo "$ac_cv_prog_cc_g" >&6; }
3631 if test "$ac_test_CFLAGS" = set; then
3632 CFLAGS=$ac_save_CFLAGS
3633 elif test $ac_cv_prog_cc_g = yes; then
3634 if test "$GCC" = yes; then
3640 if test "$GCC" = yes; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3647 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3648 if ${ac_cv_prog_cc_c89+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 ac_cv_prog_cc_c89=no
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3672 s = g (p, va_arg (v,int));
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3678 function prototypes and stuff, but not '\xHH' hex character constants.
3679 These don't provoke an error unfortunately, instead are silently treated
3680 as 'x'. The following induces an error, until -std is added to get
3681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3682 array size at least. It's necessary to write '\x00'==0 to get something
3683 that's true only with -std. */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687 inside strings and character constants. */
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 CC="$ac_save_CC $ac_arg"
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_c89=$ac_arg
3712 rm -f core conftest.err conftest.$ac_objext
3713 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715 rm -f conftest.$ac_ext
3720 case "x$ac_cv_prog_cc_c89" in
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723 $as_echo "none needed" >&6; } ;;
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726 $as_echo "unsupported" >&6; } ;;
3728 CC="$CC $ac_cv_prog_cc_c89"
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732 if test "x$ac_cv_prog_cc_c89" != xno; then :
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 ac_cpp='$CXXCPP $CPPFLAGS'
3744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3747 if test -z "$CXX"; then
3748 if test -n "$CCC"; then
3751 if test -n "$ac_tool_prefix"; then
3752 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_CXX+:} false; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$CXX"; then
3762 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 if test -n "$CXX"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3784 $as_echo "$CXX" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$CXX" && break
3794 if test -z "$CXX"; then
3796 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3798 # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 $as_echo_n "checking for $ac_word... " >&6; }
3802 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3803 $as_echo_n "(cached) " >&6
3805 if test -n "$ac_ct_CXX"; then
3806 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815 ac_cv_prog_ac_ct_CXX="$ac_prog"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3826 if test -n "$ac_ct_CXX"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3828 $as_echo "$ac_ct_CXX" >&6; }
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3835 test -n "$ac_ct_CXX" && break
3838 if test "x$ac_ct_CXX" = x; then
3841 case $cross_compiling:$ac_tool_warned in
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned=yes ;;
3853 # Provide some information about the compiler.
3854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3857 for ac_option in --version -v -V -qversion; do
3858 { { ac_try="$ac_compiler $ac_option >&5"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3867 if test -s conftest.err; then
3869 ... rest of stderr output deleted ...
3870 10q' conftest.err >conftest.er1
3871 cat conftest.er1 >&5
3873 rm -f conftest.er1 conftest.err
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3879 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3880 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3881 $as_echo_n "(cached) " >&6
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3897 if ac_fn_cxx_try_compile "$LINENO"; then :
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3907 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3908 if test $ac_compiler_gnu = yes; then
3913 ac_test_CXXFLAGS=${CXXFLAGS+set}
3914 ac_save_CXXFLAGS=$CXXFLAGS
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3916 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3917 if ${ac_cv_prog_cxx_g+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3921 ac_cxx_werror_flag=yes
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3935 if ac_fn_cxx_try_compile "$LINENO"; then :
3936 ac_cv_prog_cxx_g=yes
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3950 if ac_fn_cxx_try_compile "$LINENO"; then :
3953 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3966 if ac_fn_cxx_try_compile "$LINENO"; then :
3967 ac_cv_prog_cxx_g=yes
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3977 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3978 if test "$ac_test_CXXFLAGS" = set; then
3979 CXXFLAGS=$ac_save_CXXFLAGS
3980 elif test $ac_cv_prog_cxx_g = yes; then
3981 if test "$GXX" = yes; then
3987 if test "$GXX" = yes; then
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4007 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4008 # On Suns, sometimes $CPP names a directory.
4009 if test -n "$CPP" && test -d "$CPP"; then
4012 if test -z "$CPP"; then
4013 if ${ac_cv_prog_CPP+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 # Double quotes because CPP needs to be expanded
4017 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020 for ac_c_preproc_warn_flag in '' yes
4022 # Use a header file that comes with gcc, so configuring glibc
4023 # with a fresh cross-compiler works.
4024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025 # <limits.h> exists even on freestanding compilers.
4026 # On the NeXT, cc -E runs the code through the compiler's parser,
4027 # not just through cpp. "Syntax error" is here to catch this case.
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4031 # include <limits.h>
4033 # include <assert.h>
4037 if ac_fn_c_try_cpp "$LINENO"; then :
4040 # Broken: fails on valid input.
4043 rm -f conftest.err conftest.i conftest.$ac_ext
4045 # OK, works on sane cases. Now check whether nonexistent headers
4046 # can be detected and how.
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <ac_nonexistent.h>
4051 if ac_fn_c_try_cpp "$LINENO"; then :
4052 # Broken: success on invalid input.
4055 # Passes both tests.
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063 rm -f conftest.i conftest.err conftest.$ac_ext
4064 if $ac_preproc_ok; then :
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4077 $as_echo "$CPP" >&6; }
4079 for ac_c_preproc_warn_flag in '' yes
4081 # Use a header file that comes with gcc, so configuring glibc
4082 # with a fresh cross-compiler works.
4083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084 # <limits.h> exists even on freestanding compilers.
4085 # On the NeXT, cc -E runs the code through the compiler's parser,
4086 # not just through cpp. "Syntax error" is here to catch this case.
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4090 # include <limits.h>
4092 # include <assert.h>
4096 if ac_fn_c_try_cpp "$LINENO"; then :
4099 # Broken: fails on valid input.
4102 rm -f conftest.err conftest.i conftest.$ac_ext
4104 # OK, works on sane cases. Now check whether nonexistent headers
4105 # can be detected and how.
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #include <ac_nonexistent.h>
4110 if ac_fn_c_try_cpp "$LINENO"; then :
4111 # Broken: success on invalid input.
4114 # Passes both tests.
4118 rm -f conftest.err conftest.i conftest.$ac_ext
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.i conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then :
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4129 See \`config.log' for more details" "$LINENO" 5; }
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4140 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4141 if ${ac_cv_path_GREP+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -z "$GREP"; then
4145 ac_path_GREP_found=false
4146 # Loop through the user's path and test for each of PROGNAME-LIST
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151 test -z "$as_dir" && as_dir=.
4152 for ac_prog in grep ggrep; do
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4155 as_fn_executable_p "$ac_path_GREP" || continue
4156 # Check for GNU ac_path_GREP and select it if it is found.
4157 # Check for GNU $ac_path_GREP
4158 case `"$ac_path_GREP" --version 2>&1` in
4160 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4163 $as_echo_n 0123456789 >"conftest.in"
4166 cat "conftest.in" "conftest.in" >"conftest.tmp"
4167 mv "conftest.tmp" "conftest.in"
4168 cp "conftest.in" "conftest.nl"
4169 $as_echo 'GREP' >> "conftest.nl"
4170 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4172 as_fn_arith $ac_count + 1 && ac_count=$as_val
4173 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4174 # Best one so far, save it but keep looking for a better one
4175 ac_cv_path_GREP="$ac_path_GREP"
4176 ac_path_GREP_max=$ac_count
4178 # 10*(2^10) chars as input seems more than enough
4179 test $ac_count -gt 10 && break
4181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184 $ac_path_GREP_found && break 3
4189 if test -z "$ac_cv_path_GREP"; then
4190 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193 ac_cv_path_GREP=$GREP
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4198 $as_echo "$ac_cv_path_GREP" >&6; }
4199 GREP="$ac_cv_path_GREP"
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4203 $as_echo_n "checking for egrep... " >&6; }
4204 if ${ac_cv_path_EGREP+:} false; then :
4205 $as_echo_n "(cached) " >&6
4207 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4208 then ac_cv_path_EGREP="$GREP -E"
4210 if test -z "$EGREP"; then
4211 ac_path_EGREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in egrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4221 as_fn_executable_p "$ac_path_EGREP" || continue
4222 # Check for GNU ac_path_EGREP and select it if it is found.
4223 # Check for GNU $ac_path_EGREP
4224 case `"$ac_path_EGREP" --version 2>&1` in
4226 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4229 $as_echo_n 0123456789 >"conftest.in"
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 $as_echo 'EGREP' >> "conftest.nl"
4236 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 as_fn_arith $ac_count + 1 && ac_count=$as_val
4239 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_EGREP="$ac_path_EGREP"
4242 ac_path_EGREP_max=$ac_count
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 $ac_path_EGREP_found && break 3
4255 if test -z "$ac_cv_path_EGREP"; then
4256 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 ac_cv_path_EGREP=$EGREP
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4265 $as_echo "$ac_cv_path_EGREP" >&6; }
4266 EGREP="$ac_cv_path_EGREP"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4270 $as_echo_n "checking for ANSI C header files... " >&6; }
4271 if ${ac_cv_header_stdc+:} false; then :
4272 $as_echo_n "(cached) " >&6
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 ac_cv_header_stdc=yes
4292 ac_cv_header_stdc=no
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 if test $ac_cv_header_stdc = yes; then
4297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304 $EGREP "memchr" >/dev/null 2>&1; then :
4307 ac_cv_header_stdc=no
4313 if test $ac_cv_header_stdc = yes; then
4314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "free" >/dev/null 2>&1; then :
4324 ac_cv_header_stdc=no
4330 if test $ac_cv_header_stdc = yes; then
4331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4332 if test "$cross_compiling" = yes; then :
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4339 #if ((' ' & 0x0FF) == 0x020)
4340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4343 # define ISLOWER(c) \
4344 (('a' <= (c) && (c) <= 'i') \
4345 || ('j' <= (c) && (c) <= 'r') \
4346 || ('s' <= (c) && (c) <= 'z'))
4347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4355 for (i = 0; i < 256; i++)
4356 if (XOR (islower (i), ISLOWER (i))
4357 || toupper (i) != TOUPPER (i))
4362 if ac_fn_c_try_run "$LINENO"; then :
4365 ac_cv_header_stdc=no
4367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4368 conftest.$ac_objext conftest.beam conftest.$ac_ext
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4374 $as_echo "$ac_cv_header_stdc" >&6; }
4375 if test $ac_cv_header_stdc = yes; then
4377 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383 inttypes.h stdint.h unistd.h
4385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4389 cat >>confdefs.h <<_ACEOF
4390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4399 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4400 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4407 if test "$MINIX" = yes; then
4409 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4412 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4415 $as_echo "#define _MINIX 1" >>confdefs.h
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4421 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4422 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4423 $as_echo_n "(cached) " >&6
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4428 # define __EXTENSIONS__ 1
4429 $ac_includes_default
4438 if ac_fn_c_try_compile "$LINENO"; then :
4439 ac_cv_safe_to_define___extensions__=yes
4441 ac_cv_safe_to_define___extensions__=no
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4446 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4447 test $ac_cv_safe_to_define___extensions__ = yes &&
4448 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4450 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4452 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4454 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4456 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4461 if test $ac_cv_c_compiler_gnu = yes; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4463 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4464 if ${ac_cv_prog_gcc_traditional+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 ac_pattern="Autoconf.*'x'"
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4475 ac_cv_prog_gcc_traditional=yes
4477 ac_cv_prog_gcc_traditional=no
4482 if test $ac_cv_prog_gcc_traditional = no; then
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4490 ac_cv_prog_gcc_traditional=yes
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4497 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4498 if test $ac_cv_prog_gcc_traditional = yes; then
4499 CC="$CC -traditional"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4504 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4505 if ${ac_cv_prog_suncc+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 cat > conftest.c <<EOF
4513 if { ac_try='${CC-cc} -E conftest.c'
4514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4519 ac_cv_prog_suncc=yes
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4525 $as_echo "$ac_cv_prog_suncc" >&6; }
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_prog_RANLIB+:} false; then :
4532 $as_echo_n "(cached) " >&6
4534 if test -n "$RANLIB"; then
4535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 RANLIB=$ac_cv_prog_RANLIB
4555 if test -n "$RANLIB"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4557 $as_echo "$RANLIB" >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4565 if test -z "$ac_cv_prog_RANLIB"; then
4566 ac_ct_RANLIB=$RANLIB
4567 # Extract the first word of "ranlib", so it can be a program name with args.
4568 set dummy ranlib; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4572 $as_echo_n "(cached) " >&6
4574 if test -n "$ac_ct_RANLIB"; then
4575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_prog_ac_ct_RANLIB="ranlib"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4595 if test -n "$ac_ct_RANLIB"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4597 $as_echo "$ac_ct_RANLIB" >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4603 if test "x$ac_ct_RANLIB" = x; then
4606 case $cross_compiling:$ac_tool_warned in
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned=yes ;;
4612 RANLIB=$ac_ct_RANLIB
4615 RANLIB="$ac_cv_prog_RANLIB"
4619 if test "x$GCC" = "xyes"; then
4620 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4623 # Check whether --enable-largefile was given.
4624 if test "${enable_largefile+set}" = set; then :
4625 enableval=$enable_largefile;
4628 if test "$enable_largefile" != no; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4631 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4632 if ${ac_cv_sys_largefile_CC+:} false; then :
4633 $as_echo_n "(cached) " >&6
4635 ac_cv_sys_largefile_CC=no
4636 if test "$GCC" != yes; then
4639 # IRIX 6.2 and later do not support large files by default,
4640 # so use the C compiler's -n32 option if that helps.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <sys/types.h>
4644 /* Check that off_t can represent 2**63 - 1 correctly.
4645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4646 since some C++ compilers masquerading as C compilers
4647 incorrectly reject 9223372036854775807. */
4648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4650 && LARGE_OFF_T % 2147483647 == 1)
4660 if ac_fn_c_try_compile "$LINENO"; then :
4663 rm -f core conftest.err conftest.$ac_objext
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 ac_cv_sys_largefile_CC=' -n32'; break
4668 rm -f core conftest.err conftest.$ac_objext
4672 rm -f conftest.$ac_ext
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4676 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4677 if test "$ac_cv_sys_largefile_CC" != no; then
4678 CC=$CC$ac_cv_sys_largefile_CC
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4682 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4683 if ${ac_cv_sys_file_offset_bits+:} false; then :
4684 $as_echo_n "(cached) " >&6
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #include <sys/types.h>
4690 /* Check that off_t can represent 2**63 - 1 correctly.
4691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4692 since some C++ compilers masquerading as C compilers
4693 incorrectly reject 9223372036854775807. */
4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4696 && LARGE_OFF_T % 2147483647 == 1)
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_sys_file_offset_bits=no; break
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #define _FILE_OFFSET_BITS 64
4713 #include <sys/types.h>
4714 /* Check that off_t can represent 2**63 - 1 correctly.
4715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4716 since some C++ compilers masquerading as C compilers
4717 incorrectly reject 9223372036854775807. */
4718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4720 && LARGE_OFF_T % 2147483647 == 1)
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_cv_sys_file_offset_bits=64; break
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_cv_sys_file_offset_bits=unknown
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4739 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4740 case $ac_cv_sys_file_offset_bits in #(
4743 cat >>confdefs.h <<_ACEOF
4744 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4749 if test $ac_cv_sys_file_offset_bits = unknown; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4751 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4752 if ${ac_cv_sys_large_files+:} false; then :
4753 $as_echo_n "(cached) " >&6
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 #include <sys/types.h>
4759 /* Check that off_t can represent 2**63 - 1 correctly.
4760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4761 since some C++ compilers masquerading as C compilers
4762 incorrectly reject 9223372036854775807. */
4763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4765 && LARGE_OFF_T % 2147483647 == 1)
4775 if ac_fn_c_try_compile "$LINENO"; then :
4776 ac_cv_sys_large_files=no; break
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 #define _LARGE_FILES 1
4782 #include <sys/types.h>
4783 /* Check that off_t can represent 2**63 - 1 correctly.
4784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4785 since some C++ compilers masquerading as C compilers
4786 incorrectly reject 9223372036854775807. */
4787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4789 && LARGE_OFF_T % 2147483647 == 1)
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_sys_large_files=1; break
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 ac_cv_sys_large_files=unknown
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4808 $as_echo "$ac_cv_sys_large_files" >&6; }
4809 case $ac_cv_sys_large_files in #(
4812 cat >>confdefs.h <<_ACEOF
4813 #define _LARGE_FILES $ac_cv_sys_large_files
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4825 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4826 if ${ac_cv_c_bigendian+:} false; then :
4827 $as_echo_n "(cached) " >&6
4829 ac_cv_c_bigendian=unknown
4830 # See if we're dealing with a universal compiler.
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #ifndef __APPLE_CC__
4834 not a universal capable compiler
4839 if ac_fn_c_try_compile "$LINENO"; then :
4841 # Check for potential -arch flags. It is not universal unless
4842 # there are at least two -arch flags with different values.
4845 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4846 if test -n "$ac_prev"; then
4848 i?86 | x86_64 | ppc | ppc64)
4849 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4852 ac_cv_c_bigendian=universal
4858 elif test "x$ac_word" = "x-arch"; then
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 if test $ac_cv_c_bigendian = unknown; then
4865 # See if sys/param.h defines the BYTE_ORDER macro.
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 #include <sys/types.h>
4869 #include <sys/param.h>
4874 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4875 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4884 if ac_fn_c_try_compile "$LINENO"; then :
4885 # It does; now see whether it defined to BIG_ENDIAN or not.
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 #include <sys/types.h>
4889 #include <sys/param.h>
4894 #if BYTE_ORDER != BIG_ENDIAN
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_c_bigendian=yes
4905 ac_cv_c_bigendian=no
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 if test $ac_cv_c_bigendian = unknown; then
4912 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4920 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929 # It does; now see whether it defined to _BIG_ENDIAN or not.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_c_bigendian=yes
4948 ac_cv_c_bigendian=no
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 if test $ac_cv_c_bigendian = unknown; then
4955 # Compile a test program.
4956 if test "$cross_compiling" = yes; then :
4957 # Try to guess by grepping values from an object file.
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 short int ascii_mm[] =
4961 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4962 short int ascii_ii[] =
4963 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4964 int use_ascii (int i) {
4965 return ascii_mm[i] + ascii_ii[i];
4967 short int ebcdic_ii[] =
4968 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4969 short int ebcdic_mm[] =
4970 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4971 int use_ebcdic (int i) {
4972 return ebcdic_mm[i] + ebcdic_ii[i];
4979 return use_ascii (foo) == use_ebcdic (foo);
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4986 ac_cv_c_bigendian=yes
4988 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4989 if test "$ac_cv_c_bigendian" = unknown; then
4990 ac_cv_c_bigendian=no
4992 # finding both strings is unlikely to happen, but who knows?
4993 ac_cv_c_bigendian=unknown
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 $ac_includes_default
5006 /* Are we little or big endian? From Harbison&Steele. */
5010 char c[sizeof (long int)];
5013 return u.c[sizeof (long int) - 1] == 1;
5019 if ac_fn_c_try_run "$LINENO"; then :
5020 ac_cv_c_bigendian=no
5022 ac_cv_c_bigendian=yes
5024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5025 conftest.$ac_objext conftest.beam conftest.$ac_ext
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5031 $as_echo "$ac_cv_c_bigendian" >&6; }
5032 case $ac_cv_c_bigendian in #(
5034 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5040 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5044 as_fn_error $? "unknown endianness
5045 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5049 # Extract the first word of "gmake", so it can be a program name with args.
5050 set dummy gmake; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_GMAKE+:} false; then :
5054 $as_echo_n "(cached) " >&6
5056 if test -n "$GMAKE"; then
5057 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_GMAKE="yes"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
5077 GMAKE=$ac_cv_prog_GMAKE
5078 if test -n "$GMAKE"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5080 $as_echo "$GMAKE" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5087 if test $GMAKE = no; then
5088 # Extract the first word of "make", so it can be a program name with args.
5089 set dummy make; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_path_MAKE+:} false; then :
5093 $as_echo_n "(cached) " >&6
5097 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5119 MAKE=$ac_cv_path_MAKE
5120 if test -n "$MAKE"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5122 $as_echo "$MAKE" >&6; }
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5130 # Extract the first word of "gmake", so it can be a program name with args.
5131 set dummy gmake; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_path_MAKE+:} false; then :
5135 $as_echo_n "(cached) " >&6
5139 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5161 MAKE=$ac_cv_path_MAKE
5162 if test -n "$MAKE"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5164 $as_echo "$MAKE" >&6; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5172 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5173 if test -z "$makever"; then
5174 as_fn_error $? "GNU Make is not installed. Please download and install it
5175 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
5178 # Extract the first word of "git", so it can be a program name with args.
5179 set dummy git; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_GIT+:} false; then :
5183 $as_echo_n "(cached) " >&6
5185 if test -n "$GIT"; then
5186 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_GIT="yes"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5207 if test -n "$GIT"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5209 $as_echo "$GIT" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5218 # Check whether --with-system-libltdl was given.
5219 if test "${with_system_libltdl+set}" = set; then :
5220 withval=$with_system_libltdl;
5222 INCLTDL=-DWITH_SYSTEM_LTDL
5227 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
5229 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
5230 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
5231 $as_echo_n "(cached) " >&6
5233 ac_check_lib_save_LIBS=$LIBS
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5238 /* Override any GCC internal prototype to avoid an error.
5239 Use char because int might match the return type of a GCC
5240 builtin and then its argument prototype would still apply. */
5248 return lt_dlinit ();
5253 if ac_fn_c_try_link "$LINENO"; then :
5254 ac_cv_lib_ltdl_lt_dlinit=yes
5256 ac_cv_lib_ltdl_lt_dlinit=no
5258 rm -f core conftest.err conftest.$ac_objext \
5259 conftest$ac_exeext conftest.$ac_ext
5260 LIBS=$ac_check_lib_save_LIBS
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5263 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5264 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5265 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5267 if test x"$enable_ltdl_install" = xno; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5269 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5271 enable_ltdl_install=yes
5276 if test x"$enable_ltdl_install" = x"yes"; then
5277 ac_configure_args="$ac_configure_args --enable-ltdl-install"
5278 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5279 LTDLINCL='-I${top_srcdir}/''libltdl'
5281 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5285 # For backwards non-gettext consistent compatibility...
5289 if test x"$enable_ltdl_install" = x"yes"; then
5290 LTDL_SUBDIRS=libltdl
5297 # Check whether --enable-shared was given.
5298 if test "${enable_shared+set}" = set; then :
5299 enableval=$enable_shared; p=${PACKAGE-default}
5301 yes) enable_shared=yes ;;
5302 no) enable_shared=no ;;
5305 # Look at the argument we got. We use all the common list separators.
5306 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5307 for pkg in $enableval; do
5309 if test "X$pkg" = "X$p"; then
5321 # Check whether --enable-static was given.
5322 if test "${enable_static+set}" = set; then :
5323 enableval=$enable_static; p=${PACKAGE-default}
5325 yes) enable_static=yes ;;
5326 no) enable_static=no ;;
5329 # Look at the argument we got. We use all the common list separators.
5330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5331 for pkg in $enableval; do
5333 if test "X$pkg" = "X$p"; then
5345 # Check whether --enable-fast-install was given.
5346 if test "${enable_fast_install+set}" = set; then :
5347 enableval=$enable_fast_install; p=${PACKAGE-default}
5349 yes) enable_fast_install=yes ;;
5350 no) enable_fast_install=no ;;
5352 enable_fast_install=no
5353 # Look at the argument we got. We use all the common list separators.
5354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5355 for pkg in $enableval; do
5357 if test "X$pkg" = "X$p"; then
5358 enable_fast_install=yes
5365 enable_fast_install=yes
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5370 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5371 if ${lt_cv_path_SED+:} false; then :
5372 $as_echo_n "(cached) " >&6
5374 # Loop through the user's path and test for sed and gsed.
5375 # Then use that list of sed's as ones to test for truncation.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir=.
5381 for lt_ac_prog in sed gsed; do
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5384 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5392 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5393 # along with /bin/sed that truncates output.
5394 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5395 test ! -f $lt_ac_sed && continue
5396 cat /dev/null > conftest.in
5398 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5399 # Check for GNU sed and select it if it is found.
5400 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5401 lt_cv_path_SED=$lt_ac_sed
5405 cat conftest.in conftest.in >conftest.tmp
5406 mv conftest.tmp conftest.in
5407 cp conftest.in conftest.nl
5409 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5410 cmp -s conftest.out conftest.nl || break
5411 # 10000 chars as input seems more than enough
5412 test $lt_ac_count -gt 10 && break
5413 lt_ac_count=`expr $lt_ac_count + 1`
5414 if test $lt_ac_count -gt $lt_ac_max; then
5415 lt_ac_max=$lt_ac_count
5416 lt_cv_path_SED=$lt_ac_sed
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5426 $as_echo "$SED" >&6; }
5429 # Check whether --with-gnu-ld was given.
5430 if test "${with_gnu_ld+set}" = set; then :
5431 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5437 if test "$GCC" = yes; then
5438 # Check if gcc -print-prog-name=ld gives a path.
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5440 $as_echo_n "checking for ld used by $CC... " >&6; }
5443 # gcc leaves a trailing carriage return which upsets mingw
5444 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5446 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5449 # Accept absolute paths.
5451 re_direlt='/[^/][^/]*/\.\./'
5452 # Canonicalize the pathname of ld
5453 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5454 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5455 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5457 test -z "$LD" && LD="$ac_prog"
5460 # If it fails, then pretend we aren't using GCC.
5464 # If it is relative, then search for the first ld in PATH.
5468 elif test "$with_gnu_ld" = yes; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5470 $as_echo_n "checking for GNU ld... " >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5473 $as_echo_n "checking for non-GNU ld... " >&6; }
5475 if ${lt_cv_path_LD+:} false; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -z "$LD"; then
5479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5480 for ac_dir in $PATH; do
5482 test -z "$ac_dir" && ac_dir=.
5483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5484 lt_cv_path_LD="$ac_dir/$ac_prog"
5485 # Check to see if the program is GNU ld. I'd rather use --version,
5486 # but apparently some variants of GNU ld only accept -v.
5487 # Break only if it was the GNU/non-GNU ld that we prefer.
5488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5489 *GNU* | *'with BFD'*)
5490 test "$with_gnu_ld" != no && break
5493 test "$with_gnu_ld" != yes && break
5500 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5505 if test -n "$LD"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5507 $as_echo "$LD" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5512 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5514 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5515 if ${lt_cv_prog_gnu_ld+:} false; then :
5516 $as_echo_n "(cached) " >&6
5518 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5519 case `$LD -v 2>&1 </dev/null` in
5520 *GNU* | *'with BFD'*)
5521 lt_cv_prog_gnu_ld=yes
5524 lt_cv_prog_gnu_ld=no
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5529 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5530 with_gnu_ld=$lt_cv_prog_gnu_ld
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5534 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5535 if ${lt_cv_ld_reload_flag+:} false; then :
5536 $as_echo_n "(cached) " >&6
5538 lt_cv_ld_reload_flag='-r'
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5541 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5542 reload_flag=$lt_cv_ld_reload_flag
5543 case $reload_flag in
5545 *) reload_flag=" $reload_flag" ;;
5547 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5550 if test "$GCC" = yes; then
5551 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5553 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5559 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5560 if ${lt_cv_path_NM+:} false; then :
5561 $as_echo_n "(cached) " >&6
5563 if test -n "$NM"; then
5564 # Let the user override the test.
5567 lt_nm_to_check="${ac_tool_prefix}nm"
5568 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5569 lt_nm_to_check="$lt_nm_to_check nm"
5571 for lt_tmp_nm in $lt_nm_to_check; do
5572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5573 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5575 test -z "$ac_dir" && ac_dir=.
5576 tmp_nm="$ac_dir/$lt_tmp_nm"
5577 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5578 # Check to see if the nm accepts a BSD-compat flag.
5579 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5580 # nm: unknown option "B" ignored
5581 # Tru64's nm complains that /dev/null is an invalid object file
5582 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5583 */dev/null* | *'Invalid file or object type'*)
5584 lt_cv_path_NM="$tmp_nm -B"
5588 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5590 lt_cv_path_NM="$tmp_nm -p"
5594 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5595 continue # so that we can try to find one that supports BSD flags
5604 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5608 $as_echo "$lt_cv_path_NM" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5612 $as_echo_n "checking whether ln -s works... " >&6; }
5614 if test "$LN_S" = "ln -s"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5616 $as_echo "yes" >&6; }
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5619 $as_echo "no, using $LN_S" >&6; }
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5623 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5624 if ${lt_cv_deplibs_check_method+:} false; then :
5625 $as_echo_n "(cached) " >&6
5627 lt_cv_file_magic_cmd='$MAGIC_CMD'
5628 lt_cv_file_magic_test_file=
5629 lt_cv_deplibs_check_method='unknown'
5630 # Need to set the preceding variable on all platforms that support
5631 # interlibrary dependencies.
5632 # 'none' -- dependencies not supported.
5633 # `unknown' -- same as none, but documents that we really don't know.
5634 # 'pass_all' -- all dependencies passed with no checks.
5635 # 'test_compile' -- check by making test program.
5636 # 'file_magic [[regex]]' -- check by looking for files in library path
5637 # which responds to the $file_magic_cmd with a given extended regex.
5638 # If you have `file' or equivalent on your system and you're not sure
5639 # whether `pass_all' will *always* work, you probably want this one.
5643 lt_cv_deplibs_check_method=pass_all
5647 lt_cv_deplibs_check_method=pass_all
5651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5652 lt_cv_file_magic_cmd='/usr/bin/file -L'
5653 lt_cv_file_magic_test_file=/shlib/libc.so
5657 # func_win32_libid is a shell function defined in ltmain.sh
5658 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5659 lt_cv_file_magic_cmd='func_win32_libid'
5663 # Base MSYS/MinGW do not provide the 'file' command needed by
5664 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5665 # unless we find 'file', for example because we are cross-compiling.
5666 if ( file / ) >/dev/null 2>&1; then
5667 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5668 lt_cv_file_magic_cmd='func_win32_libid'
5670 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5671 lt_cv_file_magic_cmd='$OBJDUMP -f'
5675 darwin* | rhapsody*)
5676 lt_cv_deplibs_check_method=pass_all
5679 freebsd* | dragonfly*)
5680 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5683 # Not sure whether the presence of OpenBSD here was a mistake.
5684 # Let's accept both of them until this is cleared up.
5685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5686 lt_cv_file_magic_cmd=/usr/bin/file
5687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5691 lt_cv_deplibs_check_method=pass_all
5696 lt_cv_deplibs_check_method=pass_all
5699 hpux10.20* | hpux11*)
5700 lt_cv_file_magic_cmd=/usr/bin/file
5703 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5704 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5707 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]'
5708 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5711 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5712 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5718 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5722 irix5* | irix6* | nonstopux*)
5724 *-32|*"-32 ") libmagic=32-bit;;
5725 *-n32|*"-n32 ") libmagic=N32;;
5726 *-64|*"-64 ") libmagic=64-bit;;
5727 *) libmagic=never-match;;
5729 lt_cv_deplibs_check_method=pass_all
5732 # This must be Linux ELF.
5733 linux* | k*bsd*-gnu)
5734 lt_cv_deplibs_check_method=pass_all
5737 netbsd* | netbsdelf*-gnu)
5738 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5746 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5747 lt_cv_file_magic_cmd=/usr/bin/file
5748 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5752 lt_cv_deplibs_check_method=unknown
5756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5763 osf3* | osf4* | osf5*)
5764 lt_cv_deplibs_check_method=pass_all
5768 lt_cv_deplibs_check_method=pass_all
5772 lt_cv_deplibs_check_method=pass_all
5776 case $host_vendor in
5778 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]'
5779 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5782 lt_cv_deplibs_check_method=pass_all
5785 lt_cv_file_magic_cmd='/bin/file'
5786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5789 lt_cv_file_magic_cmd='/bin/file'
5790 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5791 lt_cv_file_magic_test_file=/lib/libc.so
5794 lt_cv_deplibs_check_method=pass_all
5797 lt_cv_deplibs_check_method=pass_all
5802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5803 lt_cv_deplibs_check_method=pass_all
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5809 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5810 file_magic_cmd=$lt_cv_file_magic_cmd
5811 deplibs_check_method=$lt_cv_deplibs_check_method
5812 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5817 # If no C compiler was specified, use CC.
5820 # If no C compiler flags were specified, use CFLAGS.
5821 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5823 # Allow CC to be a program name with arguments.
5826 # Check whether --enable-libtool-lock was given.
5827 if test "${enable_libtool_lock+set}" = set; then :
5828 enableval=$enable_libtool_lock;
5831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5833 # Some flags need to be propagated to the compiler or linker for good
5837 # Find out which ABI we are using.
5838 echo 'int i;' > conftest.$ac_ext
5839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5840 (eval $ac_compile) 2>&5
5842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5843 test $ac_status = 0; }; then
5844 case `/usr/bin/file conftest.$ac_objext` in
5856 # Find out which ABI we are using.
5857 echo '#line 5857 "configure"' > conftest.$ac_ext
5858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5859 (eval $ac_compile) 2>&5
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862 test $ac_status = 0; }; then
5863 if test "$lt_cv_prog_gnu_ld" = yes; then
5864 case `/usr/bin/file conftest.$ac_objext` in
5866 LD="${LD-ld} -melf32bsmip"
5869 LD="${LD-ld} -melf32bmipn32"
5872 LD="${LD-ld} -melf64bmip"
5876 case `/usr/bin/file conftest.$ac_objext` in
5892 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5893 s390*-*linux*|sparc*-*linux*)
5894 # Find out which ABI we are using.
5895 echo 'int i;' > conftest.$ac_ext
5896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5897 (eval $ac_compile) 2>&5
5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900 test $ac_status = 0; }; then
5901 case `/usr/bin/file conftest.o` in
5904 x86_64-*kfreebsd*-gnu)
5905 LD="${LD-ld} -m elf_i386_fbsd"
5908 LD="${LD-ld} -m elf_i386"
5910 ppc64-*linux*|powerpc64-*linux*)
5911 LD="${LD-ld} -m elf32ppclinux"
5914 LD="${LD-ld} -m elf_s390"
5917 LD="${LD-ld} -m elf32_sparc"
5923 x86_64-*kfreebsd*-gnu)
5924 LD="${LD-ld} -m elf_x86_64_fbsd"
5927 LD="${LD-ld} -m elf_x86_64"
5929 ppc*-*linux*|powerpc*-*linux*)
5930 LD="${LD-ld} -m elf64ppc"
5933 LD="${LD-ld} -m elf64_s390"
5936 LD="${LD-ld} -m elf64_sparc"
5946 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5947 SAVE_CFLAGS="$CFLAGS"
5948 CFLAGS="$CFLAGS -belf"
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5950 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5951 if ${lt_cv_cc_needs_belf+:} false; then :
5952 $as_echo_n "(cached) " >&6
5955 ac_cpp='$CPP $CPPFLAGS'
5956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5971 if ac_fn_c_try_link "$LINENO"; then :
5972 lt_cv_cc_needs_belf=yes
5974 lt_cv_cc_needs_belf=no
5976 rm -f core conftest.err conftest.$ac_objext \
5977 conftest$ac_exeext conftest.$ac_ext
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5986 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5989 CFLAGS="$SAVE_CFLAGS"
5993 # Find out which ABI we are using.
5994 echo 'int i;' > conftest.$ac_ext
5995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5996 (eval $ac_compile) 2>&5
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }; then
6000 case `/usr/bin/file conftest.o` in
6002 case $lt_cv_prog_gnu_ld in
6003 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6005 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6019 need_locks="$enable_libtool_lock"
6022 for ac_header in dlfcn.h
6024 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6025 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6026 cat >>confdefs.h <<_ACEOF
6027 #define HAVE_DLFCN_H 1
6036 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6037 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6038 (test "X$CXX" != "Xg++"))) ; then
6040 ac_cpp='$CXXCPP $CPPFLAGS'
6041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6045 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6046 if test -z "$CXXCPP"; then
6047 if ${ac_cv_prog_CXXCPP+:} false; then :
6048 $as_echo_n "(cached) " >&6
6050 # Double quotes because CXXCPP needs to be expanded
6051 for CXXCPP in "$CXX -E" "/lib/cpp"
6054 for ac_cxx_preproc_warn_flag in '' yes
6056 # Use a header file that comes with gcc, so configuring glibc
6057 # with a fresh cross-compiler works.
6058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6059 # <limits.h> exists even on freestanding compilers.
6060 # On the NeXT, cc -E runs the code through the compiler's parser,
6061 # not just through cpp. "Syntax error" is here to catch this case.
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6065 # include <limits.h>
6067 # include <assert.h>
6071 if ac_fn_cxx_try_cpp "$LINENO"; then :
6074 # Broken: fails on valid input.
6077 rm -f conftest.err conftest.i conftest.$ac_ext
6079 # OK, works on sane cases. Now check whether nonexistent headers
6080 # can be detected and how.
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 #include <ac_nonexistent.h>
6085 if ac_fn_cxx_try_cpp "$LINENO"; then :
6086 # Broken: success on invalid input.
6089 # Passes both tests.
6093 rm -f conftest.err conftest.i conftest.$ac_ext
6096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6097 rm -f conftest.i conftest.err conftest.$ac_ext
6098 if $ac_preproc_ok; then :
6103 ac_cv_prog_CXXCPP=$CXXCPP
6106 CXXCPP=$ac_cv_prog_CXXCPP
6108 ac_cv_prog_CXXCPP=$CXXCPP
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6111 $as_echo "$CXXCPP" >&6; }
6113 for ac_cxx_preproc_warn_flag in '' yes
6115 # Use a header file that comes with gcc, so configuring glibc
6116 # with a fresh cross-compiler works.
6117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6118 # <limits.h> exists even on freestanding compilers.
6119 # On the NeXT, cc -E runs the code through the compiler's parser,
6120 # not just through cpp. "Syntax error" is here to catch this case.
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6124 # include <limits.h>
6126 # include <assert.h>
6130 if ac_fn_cxx_try_cpp "$LINENO"; then :
6133 # Broken: fails on valid input.
6136 rm -f conftest.err conftest.i conftest.$ac_ext
6138 # OK, works on sane cases. Now check whether nonexistent headers
6139 # can be detected and how.
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 #include <ac_nonexistent.h>
6144 if ac_fn_cxx_try_cpp "$LINENO"; then :
6145 # Broken: success on invalid input.
6148 # Passes both tests.
6152 rm -f conftest.err conftest.i conftest.$ac_ext
6155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6156 rm -f conftest.i conftest.err conftest.$ac_ext
6157 if $ac_preproc_ok; then :
6160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6162 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6163 See \`config.log' for more details" "$LINENO" 5; }
6167 ac_cpp='$CXXCPP $CPPFLAGS'
6168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6176 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6177 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6179 if test -n "$ac_tool_prefix"; then
6180 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
6182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if ${ac_cv_prog_F77+:} false; then :
6187 $as_echo_n "(cached) " >&6
6189 if test -n "$F77"; then
6190 ac_cv_prog_F77="$F77" # Let the user override the test.
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6199 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 if test -n "$F77"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6212 $as_echo "$F77" >&6; }
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6219 test -n "$F77" && break
6222 if test -z "$F77"; then
6224 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
6226 # Extract the first word of "$ac_prog", so it can be a program name with args.
6227 set dummy $ac_prog; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6231 $as_echo_n "(cached) " >&6
6233 if test -n "$ac_ct_F77"; then
6234 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_ac_ct_F77="$ac_prog"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6254 if test -n "$ac_ct_F77"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6256 $as_echo "$ac_ct_F77" >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6263 test -n "$ac_ct_F77" && break
6266 if test "x$ac_ct_F77" = x; then
6269 case $cross_compiling:$ac_tool_warned in
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273 ac_tool_warned=yes ;;
6280 # Provide some information about the compiler.
6281 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6284 for ac_option in --version -v -V -qversion; do
6285 { { ac_try="$ac_compiler $ac_option >&5"
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6291 $as_echo "$ac_try_echo"; } >&5
6292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6294 if test -s conftest.err; then
6296 ... rest of stderr output deleted ...
6297 10q' conftest.err >conftest.er1
6298 cat conftest.er1 >&5
6300 rm -f conftest.er1 conftest.err
6301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302 test $ac_status = 0; }
6306 # If we don't use `.F' as extension, the preprocessor is not run on the
6307 # input file. (Note that this only needs to work for GNU compilers.)
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6311 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6312 if ${ac_cv_f77_compiler_gnu+:} false; then :
6313 $as_echo_n "(cached) " >&6
6315 cat > conftest.$ac_ext <<_ACEOF
6323 if ac_fn_f77_try_compile "$LINENO"; then :
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6333 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6335 ac_test_FFLAGS=${FFLAGS+set}
6336 ac_save_FFLAGS=$FFLAGS
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6339 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6340 if ${ac_cv_prog_f77_g+:} false; then :
6341 $as_echo_n "(cached) " >&6
6344 cat > conftest.$ac_ext <<_ACEOF
6349 if ac_fn_f77_try_compile "$LINENO"; then :
6350 ac_cv_prog_f77_g=yes
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6358 $as_echo "$ac_cv_prog_f77_g" >&6; }
6359 if test "$ac_test_FFLAGS" = set; then
6360 FFLAGS=$ac_save_FFLAGS
6361 elif test $ac_cv_prog_f77_g = yes; then
6362 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6368 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6375 if test $ac_compiler_gnu = yes; then
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6389 # find the maximum length of command line arguments
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6391 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6392 if ${lt_cv_sys_max_cmd_len+:} false; then :
6393 $as_echo_n "(cached) " >&6
6400 # On DJGPP, this test can blow up pretty badly due to problems in libc
6401 # (any single argument exceeding 2000 bytes causes a buffer overrun
6402 # during glob expansion). Even if it were fixed, the result of this
6403 # check would be larger than it should be.
6404 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6408 # Under GNU Hurd, this test is not required because there is
6409 # no limit to the length of command line arguments.
6410 # Libtool will interpret -1 as no limit whatsoever
6411 lt_cv_sys_max_cmd_len=-1;
6415 # On Win9x/ME, this test blows up -- it succeeds, but takes
6416 # about 5 minutes as the teststring grows exponentially.
6417 # Worse, since 9x/ME are not pre-emptively multitasking,
6418 # you end up with a "frozen" computer, even though with patience
6419 # the test eventually succeeds (with a max line length of 256k).
6420 # Instead, let's just punt: use the minimum linelength reported by
6421 # all of the supported platforms: 8192 (on NT/2K/XP).
6422 lt_cv_sys_max_cmd_len=8192;
6426 # On AmigaOS with pdksh, this test takes hours, literally.
6427 # So we just punt and use a minimum line length of 8192.
6428 lt_cv_sys_max_cmd_len=8192;
6431 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6432 # This has been around since 386BSD, at least. Likely further.
6433 if test -x /sbin/sysctl; then
6434 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6435 elif test -x /usr/sbin/sysctl; then
6436 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6438 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6440 # And add a safety zone
6441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6446 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6447 lt_cv_sys_max_cmd_len=196608
6451 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6452 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6453 # nice to cause kernel panics so lets avoid the loop below.
6454 # First set a reasonable default.
6455 lt_cv_sys_max_cmd_len=16384
6457 if test -x /sbin/sysconfig; then
6458 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6459 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6464 lt_cv_sys_max_cmd_len=102400
6466 sysv5* | sco5v6* | sysv4.2uw2*)
6467 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6468 if test -n "$kargmax"; then
6469 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6471 lt_cv_sys_max_cmd_len=32768
6475 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6476 if test -n "$lt_cv_sys_max_cmd_len"; then
6477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6480 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6481 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6482 = "XX$teststring") >/dev/null 2>&1 &&
6483 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6484 lt_cv_sys_max_cmd_len=$new_result &&
6485 test $i != 17 # 1/2 MB should be enough
6488 teststring=$teststring$teststring
6491 # Add a significant safety factor because C++ compilers can tack on massive
6492 # amounts of additional arguments before passing them to the linker.
6493 # It appears as though 1/2 is a usable value.
6494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6501 if test -n $lt_cv_sys_max_cmd_len ; then
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6503 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6506 $as_echo "none" >&6; }
6513 # Check for command to grab the raw symbol name followed by C symbol from nm.
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6515 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6516 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6517 $as_echo_n "(cached) " >&6
6520 # These are sane defaults that work on at least a few old systems.
6521 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6523 # Character class describing NM global symbol codes.
6524 symcode='[BCDEGRST]'
6526 # Regexp to match symbols that can be accessed directly from C.
6527 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6529 # Transform an extracted symbol line into a proper C declaration
6530 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6532 # Transform an extracted symbol line into symbol name and symbol address
6533 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'"
6535 # Define system-specific variables.
6540 cygwin* | mingw* | pw32*)
6541 symcode='[ABCDGISTW]'
6543 hpux*) # Its linker distinguishes data from code symbols
6544 if test "$host_cpu" = ia64; then
6545 symcode='[ABCDEGRST]'
6547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6548 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'"
6550 linux* | k*bsd*-gnu)
6551 if test "$host_cpu" = ia64; then
6552 symcode='[ABCDGIRSTW]'
6553 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6554 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'"
6558 symcode='[BCDEGRST]'
6561 symcode='[BCDEGQRST]'
6572 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6580 # Handle CRLF in mingw tool chain
6584 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6588 # If we're using GNU nm, then use its standard symbol codes.
6589 case `$NM -V 2>&1` in
6590 *GNU* | *'with BFD'*)
6591 symcode='[ABCDGIRSTW]' ;;
6594 # Try without a prefix undercore, then with it.
6595 for ac_symprfx in "" "_"; do
6597 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6598 symxfrm="\\1 $ac_symprfx\\2 \\2"
6600 # Write the raw and C identifiers.
6601 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6603 # Check to see that the pipe works correctly.
6607 cat > conftest.$ac_ext <<EOF
6612 void nm_test_func(){}
6616 int main(){nm_test_var='a';nm_test_func();return(0);}
6619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6620 (eval $ac_compile) 2>&5
6622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6623 test $ac_status = 0; }; then
6624 # Now try to grab the symbols.
6626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6627 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630 test $ac_status = 0; } && test -s "$nlist"; then
6631 # Try sorting and uniquifying the output.
6632 if sort "$nlist" | uniq > "$nlist"T; then
6633 mv -f "$nlist"T "$nlist"
6638 # Make sure that we snagged all the symbols we need.
6639 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6640 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6641 cat <<EOF > conftest.$ac_ext
6647 # Now generate the symbol file.
6648 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6650 cat <<EOF >> conftest.$ac_ext
6651 #if defined (__STDC__) && __STDC__
6652 # define lt_ptr_t void *
6654 # define lt_ptr_t char *
6658 /* The mapping between symbol names and symbols. */
6663 lt_preloaded_symbols[] =
6666 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6667 cat <<\EOF >> conftest.$ac_ext
6675 # Now try linking the two files.
6676 mv conftest.$ac_objext conftstm.$ac_objext
6677 lt_save_LIBS="$LIBS"
6678 lt_save_CFLAGS="$CFLAGS"
6679 LIBS="conftstm.$ac_objext"
6680 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6682 (eval $ac_link) 2>&5
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6688 LIBS="$lt_save_LIBS"
6689 CFLAGS="$lt_save_CFLAGS"
6691 echo "cannot find nm_test_func in $nlist" >&5
6694 echo "cannot find nm_test_var in $nlist" >&5
6697 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6700 echo "$progname: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6703 rm -rf conftest* conftst*
6705 # Do not use the global_symbol_pipe unless it works.
6706 if test "$pipe_works" = yes; then
6709 lt_cv_sys_global_symbol_pipe=
6715 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6716 lt_cv_sys_global_symbol_to_cdecl=
6718 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6720 $as_echo "failed" >&6; }
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6723 $as_echo "ok" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6727 $as_echo_n "checking for objdir... " >&6; }
6728 if ${lt_cv_objdir+:} false; then :
6729 $as_echo_n "(cached) " >&6
6731 rm -f .libs 2>/dev/null
6732 mkdir .libs 2>/dev/null
6733 if test -d .libs; then
6736 # MS-DOS does not allow filenames that begin with a dot.
6739 rmdir .libs 2>/dev/null
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6742 $as_echo "$lt_cv_objdir" >&6; }
6743 objdir=$lt_cv_objdir
6751 # AIX sometimes has problems with the GCC collect2 program. For some
6752 # reason, if we set the COLLECT_NAMES environment variable, the problems
6753 # vanish in a puff of smoke.
6754 if test "X${COLLECT_NAMES+set}" != Xset; then
6756 export COLLECT_NAMES
6761 # Sed substitution that helps us do robust quoting. It backslashifies
6762 # metacharacters that are still active within double-quoted strings.
6763 Xsed='sed -e 1s/^X//'
6764 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6766 # Same as above, but do not quote variable references.
6767 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6769 # Sed substitution to delay expansion of an escaped shell variable in a
6770 # double_quote_subst'ed string.
6771 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6773 # Sed substitution to avoid accidental globbing in evaled expressions
6774 no_glob_subst='s/\*/\\\*/g'
6780 default_ofile=libtool
6781 can_build_shared=yes
6783 # All known linkers require a `.a' archive for static linking (except MSVC,
6784 # which needs '.lib').
6786 ltmain="$ac_aux_dir/ltmain.sh"
6787 ofile="$default_ofile"
6788 with_gnu_ld="$lt_cv_prog_gnu_ld"
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}ar; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_AR+:} false; then :
6796 $as_echo_n "(cached) " >&6
6798 if test -n "$AR"; then
6799 ac_cv_prog_AR="$AR" # Let the user override the test.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_AR="${ac_tool_prefix}ar"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 if test -n "$AR"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6821 $as_echo "$AR" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6829 if test -z "$ac_cv_prog_AR"; then
6831 # Extract the first word of "ar", so it can be a program name with args.
6832 set dummy ar; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6836 $as_echo_n "(cached) " >&6
6838 if test -n "$ac_ct_AR"; then
6839 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_AR="ar"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6859 if test -n "$ac_ct_AR"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6861 $as_echo "$ac_ct_AR" >&6; }
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6867 if test "x$ac_ct_AR" = x; then
6870 case $cross_compiling:$ac_tool_warned in
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_RANLIB+:} false; then :
6888 $as_echo_n "(cached) " >&6
6890 if test -n "$RANLIB"; then
6891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 RANLIB=$ac_cv_prog_RANLIB
6911 if test -n "$RANLIB"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6913 $as_echo "$RANLIB" >&6; }
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6921 if test -z "$ac_cv_prog_RANLIB"; then
6922 ac_ct_RANLIB=$RANLIB
6923 # Extract the first word of "ranlib", so it can be a program name with args.
6924 set dummy ranlib; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6928 $as_echo_n "(cached) " >&6
6930 if test -n "$ac_ct_RANLIB"; then
6931 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_ac_ct_RANLIB="ranlib"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6951 if test -n "$ac_ct_RANLIB"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6953 $as_echo "$ac_ct_RANLIB" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6959 if test "x$ac_ct_RANLIB" = x; then
6962 case $cross_compiling:$ac_tool_warned in
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6968 RANLIB=$ac_ct_RANLIB
6971 RANLIB="$ac_cv_prog_RANLIB"
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6976 set dummy ${ac_tool_prefix}strip; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_STRIP+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 if test -n "$STRIP"; then
6983 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 STRIP=$ac_cv_prog_STRIP
7003 if test -n "$STRIP"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7005 $as_echo "$STRIP" >&6; }
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7013 if test -z "$ac_cv_prog_STRIP"; then
7015 # Extract the first word of "strip", so it can be a program name with args.
7016 set dummy strip; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 if test -n "$ac_ct_STRIP"; then
7023 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_ac_ct_STRIP="strip"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7043 if test -n "$ac_ct_STRIP"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7045 $as_echo "$ac_ct_STRIP" >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7051 if test "x$ac_ct_STRIP" = x; then
7054 case $cross_compiling:$ac_tool_warned in
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7063 STRIP="$ac_cv_prog_STRIP"
7068 old_CFLAGS="$CFLAGS"
7070 # Set sane defaults for various variables
7071 test -z "$AR" && AR=ar
7072 test -z "$AR_FLAGS" && AR_FLAGS=cru
7073 test -z "$AS" && AS=as
7074 test -z "$CC" && CC=cc
7075 test -z "$LTCC" && LTCC=$CC
7076 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7077 test -z "$DLLTOOL" && DLLTOOL=dlltool
7078 test -z "$LD" && LD=ld
7079 test -z "$LN_S" && LN_S="ln -s"
7080 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7081 test -z "$NM" && NM=nm
7082 test -z "$SED" && SED=sed
7083 test -z "$OBJDUMP" && OBJDUMP=objdump
7084 test -z "$RANLIB" && RANLIB=:
7085 test -z "$STRIP" && STRIP=:
7086 test -z "$ac_objext" && ac_objext=o
7088 # Determine commands to create old-style static archives.
7089 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7090 old_postinstall_cmds='chmod 644 $oldlib'
7091 old_postuninstall_cmds=
7093 if test -n "$RANLIB"; then
7096 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7099 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7102 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7105 for cc_temp in $compiler""; do
7107 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7108 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7113 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7116 # Only perform the check for file, if the check method requires it
7117 case $deplibs_check_method in
7119 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7121 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7122 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7123 $as_echo_n "(cached) " >&6
7127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7130 lt_save_MAGIC_CMD="$MAGIC_CMD"
7131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7132 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7133 for ac_dir in $ac_dummy; do
7135 test -z "$ac_dir" && ac_dir=.
7136 if test -f $ac_dir/${ac_tool_prefix}file; then
7137 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7138 if test -n "$file_magic_test_file"; then
7139 case $deplibs_check_method in
7141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7144 $EGREP "$file_magic_regex" > /dev/null; then
7149 *** Warning: the command libtool uses to detect shared libraries,
7150 *** $file_magic_cmd, produces output that libtool cannot recognize.
7151 *** The result is that libtool may fail to recognize shared libraries
7152 *** as such. This will affect the creation of libtool libraries that
7153 *** depend on shared libraries, but programs linked with such libtool
7154 *** libraries will work regardless of this problem. Nevertheless, you
7155 *** may want to report the problem to your system manager and/or to
7156 *** bug-libtool@gnu.org
7166 MAGIC_CMD="$lt_save_MAGIC_CMD"
7171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7172 if test -n "$MAGIC_CMD"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7174 $as_echo "$MAGIC_CMD" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7180 if test -z "$lt_cv_path_MAGIC_CMD"; then
7181 if test -n "$ac_tool_prefix"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7183 $as_echo_n "checking for file... " >&6; }
7184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7185 $as_echo_n "(cached) " >&6
7189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7192 lt_save_MAGIC_CMD="$MAGIC_CMD"
7193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7195 for ac_dir in $ac_dummy; do
7197 test -z "$ac_dir" && ac_dir=.
7198 if test -f $ac_dir/file; then
7199 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7200 if test -n "$file_magic_test_file"; then
7201 case $deplibs_check_method in
7203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7206 $EGREP "$file_magic_regex" > /dev/null; then
7211 *** Warning: the command libtool uses to detect shared libraries,
7212 *** $file_magic_cmd, produces output that libtool cannot recognize.
7213 *** The result is that libtool may fail to recognize shared libraries
7214 *** as such. This will affect the creation of libtool libraries that
7215 *** depend on shared libraries, but programs linked with such libtool
7216 *** libraries will work regardless of this problem. Nevertheless, you
7217 *** may want to report the problem to your system manager and/or to
7218 *** bug-libtool@gnu.org
7228 MAGIC_CMD="$lt_save_MAGIC_CMD"
7233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7234 if test -n "$MAGIC_CMD"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7236 $as_echo "$MAGIC_CMD" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7253 rhapsody* | darwin*)
7254 if test -n "$ac_tool_prefix"; then
7255 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7260 $as_echo_n "(cached) " >&6
7262 if test -n "$DSYMUTIL"; then
7263 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7283 if test -n "$DSYMUTIL"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7285 $as_echo "$DSYMUTIL" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7293 if test -z "$ac_cv_prog_DSYMUTIL"; then
7294 ac_ct_DSYMUTIL=$DSYMUTIL
7295 # Extract the first word of "dsymutil", so it can be a program name with args.
7296 set dummy dsymutil; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298 $as_echo_n "checking for $ac_word... " >&6; }
7299 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7300 $as_echo_n "(cached) " >&6
7302 if test -n "$ac_ct_DSYMUTIL"; then
7303 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7323 if test -n "$ac_ct_DSYMUTIL"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7325 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7331 if test "x$ac_ct_DSYMUTIL" = x; then
7334 case $cross_compiling:$ac_tool_warned in
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338 ac_tool_warned=yes ;;
7340 DSYMUTIL=$ac_ct_DSYMUTIL
7343 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_NMEDIT+:} false; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$NMEDIT"; then
7355 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 NMEDIT=$ac_cv_prog_NMEDIT
7375 if test -n "$NMEDIT"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7377 $as_echo "$NMEDIT" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7385 if test -z "$ac_cv_prog_NMEDIT"; then
7386 ac_ct_NMEDIT=$NMEDIT
7387 # Extract the first word of "nmedit", so it can be a program name with args.
7388 set dummy nmedit; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$ac_ct_NMEDIT"; then
7395 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7415 if test -n "$ac_ct_NMEDIT"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7417 $as_echo "$ac_ct_NMEDIT" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7423 if test "x$ac_ct_NMEDIT" = x; then
7426 case $cross_compiling:$ac_tool_warned in
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7432 NMEDIT=$ac_ct_NMEDIT
7435 NMEDIT="$ac_cv_prog_NMEDIT"
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7440 $as_echo_n "checking for -single_module linker flag... " >&6; }
7441 if ${lt_cv_apple_cc_single_mod+:} false; then :
7442 $as_echo_n "(cached) " >&6
7444 lt_cv_apple_cc_single_mod=no
7445 if test -z "${LT_MULTI_MODULE}"; then
7446 # By default we will add the -single_module flag. You can override
7447 # by either setting the environment variable LT_MULTI_MODULE
7448 # non-empty at configure time, or by adding -multi_module to the
7450 echo "int foo(void){return 1;}" > conftest.c
7451 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7452 -dynamiclib ${wl}-single_module conftest.c
7453 if test -f libconftest.dylib; then
7454 lt_cv_apple_cc_single_mod=yes
7455 rm -rf libconftest.dylib*
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7461 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7463 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7464 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7465 $as_echo_n "(cached) " >&6
7467 lt_cv_ld_exported_symbols_list=no
7468 save_LDFLAGS=$LDFLAGS
7469 echo "_main" > conftest.sym
7470 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7482 if ac_fn_c_try_link "$LINENO"; then :
7483 lt_cv_ld_exported_symbols_list=yes
7485 lt_cv_ld_exported_symbols_list=no
7487 rm -f core conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489 LDFLAGS="$save_LDFLAGS"
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7493 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7495 rhapsody* | darwin1.[0123])
7496 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7498 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7500 # if running on 10.5 or later, the deployment target defaults
7501 # to the OS version, if on x86, and 10.4, the deployment
7502 # target defaults to 10.4. Don't you love it?
7503 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7504 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7513 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7514 _lt_dar_single_mod='$single_module'
7516 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7517 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7519 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7521 if test "$DSYMUTIL" != ":"; then
7522 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7533 # Check whether --enable-libtool-lock was given.
7534 if test "${enable_libtool_lock+set}" = set; then :
7535 enableval=$enable_libtool_lock;
7538 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7541 # Check whether --with-pic was given.
7542 if test "${with_pic+set}" = set; then :
7543 withval=$with_pic; pic_mode="$withval"
7548 test -z "$pic_mode" && pic_mode=default
7550 # Use C for the default configuration in the libtool script
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7560 # Source file extension for C test sources.
7563 # Object file extension for compiled C test sources.
7567 # Code to be used in simple compile tests
7568 lt_simple_compile_test_code="int some_variable = 0;"
7570 # Code to be used in simple link tests
7571 lt_simple_link_test_code='int main(){return(0);}'
7574 # If no C compiler was specified, use CC.
7577 # If no C compiler flags were specified, use CFLAGS.
7578 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7580 # Allow CC to be a program name with arguments.
7584 # save warnings/boilerplate of simple test code
7585 ac_outfile=conftest.$ac_objext
7586 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7588 _lt_compiler_boilerplate=`cat conftest.err`
7591 ac_outfile=conftest.$ac_objext
7592 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7594 _lt_linker_boilerplate=`cat conftest.err`
7599 lt_prog_compiler_no_builtin_flag=
7601 if test "$GCC" = yes; then
7602 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7606 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7607 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7608 $as_echo_n "(cached) " >&6
7610 lt_cv_prog_compiler_rtti_exceptions=no
7611 ac_outfile=conftest.$ac_objext
7612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7613 lt_compiler_flag="-fno-rtti -fno-exceptions"
7614 # Insert the option either (1) after the last *FLAGS variable, or
7615 # (2) before a word containing "conftest.", or (3) at the end.
7616 # Note that $ac_compile itself does not contain backslashes and begins
7617 # with a dollar sign (not a hyphen), so the echo should work correctly.
7618 # The option is referenced via a variable to avoid confusing sed.
7619 lt_compile=`echo "$ac_compile" | $SED \
7620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622 -e 's:$: $lt_compiler_flag:'`
7623 (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7624 (eval "$lt_compile" 2>conftest.err)
7626 cat conftest.err >&5
7627 echo "$as_me:7627: \$? = $ac_status" >&5
7628 if (exit $ac_status) && test -s "$ac_outfile"; then
7629 # The compiler can only warn and ignore the option if not recognized
7630 # So say no if there are warnings other than the usual output.
7631 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7634 lt_cv_prog_compiler_rtti_exceptions=yes
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7641 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7643 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7644 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7651 lt_prog_compiler_wl=
7652 lt_prog_compiler_pic=
7653 lt_prog_compiler_static=
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7658 if test "$GCC" = yes; then
7659 lt_prog_compiler_wl='-Wl,'
7660 lt_prog_compiler_static='-static'
7664 # All AIX code is PIC.
7665 if test "$host_cpu" = ia64; then
7666 # AIX 5 now supports IA64 processor
7667 lt_prog_compiler_static='-Bstatic'
7672 # FIXME: we need at least 68020 code to build shared libraries, but
7673 # adding the `-m68020' flag to GCC prevents building anything better,
7675 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7678 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7679 # PIC is the default for these OSes.
7682 mingw* | cygwin* | pw32* | os2*)
7683 # This hack is so that the source file can tell whether it is being
7684 # built for inclusion in a dll (and should export symbols for example).
7685 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7686 # (--disable-auto-import) libraries
7687 lt_prog_compiler_pic='-DDLL_EXPORT'
7690 darwin* | rhapsody*)
7691 # PIC is the default on this platform
7692 # Common symbols not allowed in MH_DYLIB files
7693 lt_prog_compiler_pic='-fno-common'
7697 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7698 # Instead, we relocate shared libraries at runtime.
7702 # Just because we use GCC doesn't mean we suddenly get shared libraries
7703 # on systems that don't support them.
7704 lt_prog_compiler_can_build_shared=no
7709 if test -d /usr/nec; then
7710 lt_prog_compiler_pic=-Kconform_pic
7715 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7722 lt_prog_compiler_pic='-fPIC'
7728 lt_prog_compiler_pic='-fPIC'
7732 # PORTME Check for flag to pass linker flags through the system compiler.
7735 lt_prog_compiler_wl='-Wl,'
7736 if test "$host_cpu" = ia64; then
7737 # AIX 5 now supports IA64 processor
7738 lt_prog_compiler_static='-Bstatic'
7740 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7744 # PIC is the default on this platform
7745 # Common symbols not allowed in MH_DYLIB files
7746 case $cc_basename in
7748 lt_prog_compiler_pic='-qnocommon'
7749 lt_prog_compiler_wl='-Wl,'
7754 mingw* | cygwin* | pw32* | os2*)
7755 # This hack is so that the source file can tell whether it is being
7756 # built for inclusion in a dll (and should export symbols for example).
7757 lt_prog_compiler_pic='-DDLL_EXPORT'
7760 hpux9* | hpux10* | hpux11*)
7761 lt_prog_compiler_wl='-Wl,'
7762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7769 lt_prog_compiler_pic='+Z'
7772 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7773 lt_prog_compiler_static='${wl}-a ${wl}archive'
7776 irix5* | irix6* | nonstopux*)
7777 lt_prog_compiler_wl='-Wl,'
7778 # PIC (with -KPIC) is the default.
7779 lt_prog_compiler_static='-non_shared'
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7787 linux* | k*bsd*-gnu)
7788 case $cc_basename in
7790 lt_prog_compiler_wl='-Wl,'
7791 lt_prog_compiler_pic='-KPIC'
7792 lt_prog_compiler_static='-static'
7794 pgcc* | pgf77* | pgf90* | pgf95*)
7795 # Portland Group compilers (*not* the Pentium gcc compiler,
7796 # which looks to be a dead project)
7797 lt_prog_compiler_wl='-Wl,'
7798 lt_prog_compiler_pic='-fpic'
7799 lt_prog_compiler_static='-Bstatic'
7802 lt_prog_compiler_wl='-Wl,'
7803 # All Alpha code is PIC.
7804 lt_prog_compiler_static='-non_shared'
7807 case `$CC -V 2>&1 | sed 5q` in
7810 lt_prog_compiler_pic='-KPIC'
7811 lt_prog_compiler_static='-Bstatic'
7812 lt_prog_compiler_wl='-Wl,'
7815 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7816 lt_prog_compiler_pic='-KPIC'
7817 lt_prog_compiler_static='-Bstatic'
7818 lt_prog_compiler_wl=''
7825 osf3* | osf4* | osf5*)
7826 lt_prog_compiler_wl='-Wl,'
7827 # All OSF/1 code is PIC.
7828 lt_prog_compiler_static='-non_shared'
7832 lt_prog_compiler_static='-non_shared'
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7838 case $cc_basename in
7840 lt_prog_compiler_wl='-Qoption ld ';;
7842 lt_prog_compiler_wl='-Wl,';;
7847 lt_prog_compiler_wl='-Qoption ld '
7848 lt_prog_compiler_pic='-PIC'
7849 lt_prog_compiler_static='-Bstatic'
7852 sysv4 | sysv4.2uw2* | sysv4.3*)
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_pic='-KPIC'
7855 lt_prog_compiler_static='-Bstatic'
7859 if test -d /usr/nec ;then
7860 lt_prog_compiler_pic='-Kconform_pic'
7861 lt_prog_compiler_static='-Bstatic'
7865 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7866 lt_prog_compiler_wl='-Wl,'
7867 lt_prog_compiler_pic='-KPIC'
7868 lt_prog_compiler_static='-Bstatic'
7872 lt_prog_compiler_wl='-Wl,'
7873 lt_prog_compiler_can_build_shared=no
7877 lt_prog_compiler_pic='-pic'
7878 lt_prog_compiler_static='-Bstatic'
7882 lt_prog_compiler_can_build_shared=no
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7888 $as_echo "$lt_prog_compiler_pic" >&6; }
7891 # Check to make sure the PIC flag actually works.
7893 if test -n "$lt_prog_compiler_pic"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7896 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7897 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7898 $as_echo_n "(cached) " >&6
7900 lt_cv_prog_compiler_pic_works=no
7901 ac_outfile=conftest.$ac_objext
7902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7903 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7904 # Insert the option either (1) after the last *FLAGS variable, or
7905 # (2) before a word containing "conftest.", or (3) at the end.
7906 # Note that $ac_compile itself does not contain backslashes and begins
7907 # with a dollar sign (not a hyphen), so the echo should work correctly.
7908 # The option is referenced via a variable to avoid confusing sed.
7909 lt_compile=`echo "$ac_compile" | $SED \
7910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7912 -e 's:$: $lt_compiler_flag:'`
7913 (eval echo "\"\$as_me:7913: $lt_compile\"" >&5)
7914 (eval "$lt_compile" 2>conftest.err)
7916 cat conftest.err >&5
7917 echo "$as_me:7917: \$? = $ac_status" >&5
7918 if (exit $ac_status) && test -s "$ac_outfile"; then
7919 # The compiler can only warn and ignore the option if not recognized
7920 # So say no if there are warnings other than the usual output.
7921 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7924 lt_cv_prog_compiler_pic_works=yes
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7931 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7933 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7934 case $lt_prog_compiler_pic in
7936 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7939 lt_prog_compiler_pic=
7940 lt_prog_compiler_can_build_shared=no
7945 # For platforms which do not support PIC, -DPIC is meaningless:
7947 lt_prog_compiler_pic=
7950 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7955 # Check to make sure the static flag actually works.
7957 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7959 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7960 if ${lt_cv_prog_compiler_static_works+:} false; then :
7961 $as_echo_n "(cached) " >&6
7963 lt_cv_prog_compiler_static_works=no
7964 save_LDFLAGS="$LDFLAGS"
7965 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7966 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7967 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7968 # The linker can only warn and ignore the option if not recognized
7969 # So say no if there are warnings
7970 if test -s conftest.err; then
7971 # Append any errors to the config.log.
7972 cat conftest.err 1>&5
7973 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7975 if diff conftest.exp conftest.er2 >/dev/null; then
7976 lt_cv_prog_compiler_static_works=yes
7979 lt_cv_prog_compiler_static_works=yes
7983 LDFLAGS="$save_LDFLAGS"
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7987 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7989 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7992 lt_prog_compiler_static=
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7998 if ${lt_cv_prog_compiler_c_o+:} false; then :
7999 $as_echo_n "(cached) " >&6
8001 lt_cv_prog_compiler_c_o=no
8002 $rm -r conftest 2>/dev/null
8006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8008 lt_compiler_flag="-o out/conftest2.$ac_objext"
8009 # Insert the option either (1) after the last *FLAGS variable, or
8010 # (2) before a word containing "conftest.", or (3) at the end.
8011 # Note that $ac_compile itself does not contain backslashes and begins
8012 # with a dollar sign (not a hyphen), so the echo should work correctly.
8013 lt_compile=`echo "$ac_compile" | $SED \
8014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8016 -e 's:$: $lt_compiler_flag:'`
8017 (eval echo "\"\$as_me:8017: $lt_compile\"" >&5)
8018 (eval "$lt_compile" 2>out/conftest.err)
8020 cat out/conftest.err >&5
8021 echo "$as_me:8021: \$? = $ac_status" >&5
8022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8024 # The compiler can only warn and ignore the option if not recognized
8025 # So say no if there are warnings
8026 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8029 lt_cv_prog_compiler_c_o=yes
8034 # SGI C++ compiler will create directory out/ii_files/ for
8035 # template instantiation
8036 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8037 $rm out/* && rmdir out
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8044 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8047 hard_links="nottested"
8048 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8049 # do not overwrite the value of need_locks provided by the user
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8051 $as_echo_n "checking if we can lock with hard links... " >&6; }
8054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8056 ln conftest.a conftest.b 2>&5 || hard_links=no
8057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8059 $as_echo "$hard_links" >&6; }
8060 if test "$hard_links" = no; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8062 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8070 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8073 allow_undefined_flag=
8074 enable_shared_with_static_runtimes=no
8076 archive_expsym_cmds=
8077 old_archive_From_new_cmds=
8078 old_archive_from_expsyms_cmds=
8079 export_dynamic_flag_spec=
8080 whole_archive_flag_spec=
8081 thread_safe_flag_spec=
8082 hardcode_libdir_flag_spec=
8083 hardcode_libdir_flag_spec_ld=
8084 hardcode_libdir_separator=
8087 hardcode_shlibpath_var=unsupported
8088 link_all_deplibs=unknown
8089 hardcode_automatic=no
8092 always_export_symbols=no
8093 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8094 # include_expsyms should be a list of space-separated symbols to be *always*
8095 # included in the symbol list
8097 # exclude_expsyms can be an extended regexp of symbols to exclude
8098 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8099 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8100 # as well as any symbol that contains `d'.
8101 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8102 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8103 # platforms (ab)use it in PIC code, but their linkers get confused if
8104 # the symbol is explicitly referenced. Since portable code cannot
8105 # rely on this symbol name, it's probably fine to never include it in
8106 # preloaded symbol tables.
8107 # Exclude shared library initialization/finalization symbols.
8108 extract_expsyms_cmds=
8109 # Just being paranoid about ensuring that cc_basename is set.
8110 for cc_temp in $compiler""; do
8112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8121 cygwin* | mingw* | pw32*)
8122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8123 # When not using gcc, we currently assume that we are using
8124 # Microsoft Visual C++.
8125 if test "$GCC" != yes; then
8130 # we just hope/assume this is gcc and not c89 (= MSVC++)
8139 if test "$with_gnu_ld" = yes; then
8140 # If archive_cmds runs LD, not CC, wlarc should be empty
8143 # Set some defaults for GNU ld with shared library support. These
8144 # are reset later if shared libraries are not supported. Putting them
8145 # here allows them to be overridden if necessary.
8146 runpath_var=LD_RUN_PATH
8147 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8148 export_dynamic_flag_spec='${wl}--export-dynamic'
8149 # ancient GNU ld didn't support --whole-archive et. al.
8150 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8151 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8153 whole_archive_flag_spec=
8155 supports_anon_versioning=no
8156 case `$LD -v 2>/dev/null` in
8157 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8158 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8159 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8160 *\ 2.11.*) ;; # other 2.11 versions
8161 *) supports_anon_versioning=yes ;;
8164 # See if GNU ld supports shared libraries.
8167 # On AIX/PPC, the GNU linker is very broken
8168 if test "$host_cpu" != ia64; then
8172 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8173 *** to be unable to reliably create shared libraries on AIX.
8174 *** Therefore, libtool is disabling shared libraries support. If you
8175 *** really care for shared libraries, you may want to modify your PATH
8176 *** so that a non-GNU linker is found, and then restart.
8183 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)'
8184 hardcode_libdir_flag_spec='-L$libdir'
8185 hardcode_minus_L=yes
8187 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8188 # that the semantics of dynamic libraries on AmigaOS, at least up
8189 # to version 4, is to share data among multiple programs linked
8190 # with the same dynamic library. Since this doesn't match the
8191 # behavior of shared libraries on other platforms, we can't use
8197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8198 allow_undefined_flag=unsupported
8199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8200 # support --undefined. This deserves some investigation. FIXME
8201 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 cygwin* | mingw* | pw32*)
8208 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8209 # as there is no search path for DLLs.
8210 hardcode_libdir_flag_spec='-L$libdir'
8211 allow_undefined_flag=unsupported
8212 always_export_symbols=no
8213 enable_shared_with_static_runtimes=yes
8214 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8216 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8218 # If the export-symbols file already is a .def file (1st line
8219 # is EXPORTS), use it as is; otherwise, prepend...
8220 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8221 cp $export_symbols $output_objdir/$soname.def;
8223 echo EXPORTS > $output_objdir/$soname.def;
8224 cat $export_symbols >> $output_objdir/$soname.def;
8226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8234 hardcode_shlibpath_var=no
8235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8236 export_dynamic_flag_spec='${wl}-E'
8237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8238 # Instead, shared libraries are loaded at an image base (0x10000000 by
8239 # default) and relocated if they conflict, which is a slow very memory
8240 # consuming and fragmenting process. To avoid this, we pick a random,
8241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8244 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'
8247 gnu* | linux* | k*bsd*-gnu)
8248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8250 case $cc_basename,$host_cpu in
8251 pgcc*) # Portland Group C compiler
8252 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'
8253 tmp_addflag=' $pic_flag'
8255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8256 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'
8257 tmp_addflag=' $pic_flag -Mnomain' ;;
8258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8259 tmp_addflag=' -i_dynamic' ;;
8260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8261 tmp_addflag=' -i_dynamic -nofor_main' ;;
8262 ifc* | ifort*) # Intel Fortran compiler
8263 tmp_addflag=' -nofor_main' ;;
8265 case `$CC -V 2>&1 | sed 5q` in
8266 *Sun\ C*) # Sun C 5.9
8267 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'
8268 tmp_sharedflag='-G' ;;
8269 *Sun\ F*) # Sun Fortran 8.3
8270 tmp_sharedflag='-G' ;;
8272 tmp_sharedflag='-shared' ;;
8274 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276 if test $supports_anon_versioning = yes; then
8277 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8278 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8279 $echo "local: *; };" >> $output_objdir/$libname.ver~
8280 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8288 netbsd* | netbsdelf*-gnu)
8289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8299 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8304 *** create shared libraries on Solaris systems. Therefore, libtool
8305 *** is disabling shared libraries support. We urge you to upgrade GNU
8306 *** binutils to release 2.9.1 or newer. Another option is to modify
8307 *** your PATH or compiler configuration so that the native linker is
8308 *** used, and then restart.
8311 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8320 case `$LD -v 2>&1` in
8321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8326 *** reliably create shared libraries on SCO systems. Therefore, libtool
8327 *** is disabling shared libraries support. We urge you to upgrade GNU
8328 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8329 *** your PATH or compiler configuration so that the native linker is
8330 *** used, and then restart.
8335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8336 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8347 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8350 hardcode_shlibpath_var=no
8354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8363 if test "$ld_shlibs" = no; then
8365 hardcode_libdir_flag_spec=
8366 export_dynamic_flag_spec=
8367 whole_archive_flag_spec=
8370 # PORTME fill in a description of your system's linker (not GNU ld)
8373 allow_undefined_flag=unsupported
8374 always_export_symbols=yes
8375 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'
8376 # Note: this linker hardcodes the directories in LIBPATH if there
8377 # are no directories specified by -L.
8378 hardcode_minus_L=yes
8379 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8380 # Neither direct hardcoding nor static linking is supported with a
8382 hardcode_direct=unsupported
8387 if test "$host_cpu" = ia64; then
8388 # On IA64, the linker does run time linking by default, so we don't
8389 # have to do anything special.
8390 aix_use_runtimelinking=no
8391 exp_sym_flag='-Bexport'
8394 # If we're using GNU nm, then we don't want the "-C" option.
8395 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8396 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8397 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'
8399 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'
8401 aix_use_runtimelinking=no
8403 # Test if we are trying to use run time linking or normal
8404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8405 # need to do runtime linking.
8406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8407 for ld_flag in $LDFLAGS; do
8408 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8409 aix_use_runtimelinking=yes
8416 exp_sym_flag='-bexport'
8417 no_entry_flag='-bnoentry'
8420 # When large executables or shared objects are built, AIX ld can
8421 # have problems creating the table of contents. If linking a library
8422 # or program results in "error TOC overflow" add -mminimal-toc to
8423 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8424 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8428 hardcode_libdir_separator=':'
8429 link_all_deplibs=yes
8431 if test "$GCC" = yes; then
8432 case $host_os in aix4.[012]|aix4.[012].*)
8433 # We only want to do this on AIX 4.2 and lower, the check
8434 # below for broken collect2 doesn't work under 4.3+
8435 collect2name=`${CC} -print-prog-name=collect2`
8436 if test -f "$collect2name" && \
8437 strings "$collect2name" | grep resolve_lib_name >/dev/null
8439 # We have reworked collect2
8442 # We have old collect2
8443 hardcode_direct=unsupported
8444 # It fails to find uninstalled libraries when the uninstalled
8445 # path is not listed in the libpath. Setting hardcode_minus_L
8446 # to unsupported forces relinking
8447 hardcode_minus_L=yes
8448 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_libdir_separator=
8453 shared_flag='-shared'
8454 if test "$aix_use_runtimelinking" = yes; then
8455 shared_flag="$shared_flag "'${wl}-G'
8459 if test "$host_cpu" = ia64; then
8460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8461 # chokes on -Wl,-G. The following line is correct:
8464 if test "$aix_use_runtimelinking" = yes; then
8465 shared_flag='${wl}-G'
8467 shared_flag='${wl}-bM:SRE'
8472 # It seems that -bexpall does not export symbols beginning with
8473 # underscore (_), so it is better to generate a list of symbols to export.
8474 always_export_symbols=yes
8475 if test "$aix_use_runtimelinking" = yes; then
8476 # Warning - without using the other runtime loading flags (-brtl),
8477 # -berok will link without error, but may produce a broken library.
8478 allow_undefined_flag='-berok'
8479 # Determine the default libpath from the value encoded in an empty executable.
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8491 if ac_fn_c_try_link "$LINENO"; then :
8493 lt_aix_libpath_sed='
8494 /Import File Strings/,/^$/ {
8500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8501 # Check for a 64-bit object if we didn't find anything.
8502 if test -z "$aix_libpath"; then
8503 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8506 rm -f core conftest.err conftest.$ac_objext \
8507 conftest$ac_exeext conftest.$ac_ext
8508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8510 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8511 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"
8513 if test "$host_cpu" = ia64; then
8514 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8515 allow_undefined_flag="-z nodefs"
8516 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"
8518 # Determine the default libpath from the value encoded in an empty executable.
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8530 if ac_fn_c_try_link "$LINENO"; then :
8532 lt_aix_libpath_sed='
8533 /Import File Strings/,/^$/ {
8539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8540 # Check for a 64-bit object if we didn't find anything.
8541 if test -z "$aix_libpath"; then
8542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8550 # Warning - without using the other run time loading flags,
8551 # -berok will link without error, but may produce a broken library.
8552 no_undefined_flag=' ${wl}-bernotok'
8553 allow_undefined_flag=' ${wl}-berok'
8554 # Exported symbols can be pulled into shared objects from archives
8555 whole_archive_flag_spec='$convenience'
8556 archive_cmds_need_lc=yes
8557 # This is similar to how AIX traditionally builds its shared libraries.
8558 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'
8564 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)'
8565 hardcode_libdir_flag_spec='-L$libdir'
8566 hardcode_minus_L=yes
8567 # see comment about different semantics on the GNU ld section
8572 export_dynamic_flag_spec=-rdynamic
8575 cygwin* | mingw* | pw32*)
8576 # When not using gcc, we currently assume that we are using
8577 # Microsoft Visual C++.
8578 # hardcode_libdir_flag_spec is actually meaningless, as there is
8579 # no search path for DLLs.
8580 hardcode_libdir_flag_spec=' '
8581 allow_undefined_flag=unsupported
8582 # Tell ltmain to make .lib files, not .a files.
8584 # Tell ltmain to make .dll files, not .so files.
8586 # FIXME: Setting linknames here is a bad hack.
8587 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8588 # The linker will automatically build a .lib file if we build a DLL.
8589 old_archive_From_new_cmds='true'
8590 # FIXME: Should let the user specify the lib program.
8591 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8592 fix_srcfile_path='`cygpath -w "$srcfile"`'
8593 enable_shared_with_static_runtimes=yes
8596 darwin* | rhapsody*)
8598 rhapsody* | darwin1.[012])
8599 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8602 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8603 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8605 case ${MACOSX_DEPLOYMENT_TARGET} in
8607 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8610 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8616 archive_cmds_need_lc=no
8618 hardcode_automatic=yes
8619 hardcode_shlibpath_var=unsupported
8620 whole_archive_flag_spec=''
8621 link_all_deplibs=yes
8622 if test "$GCC" = yes ; then
8623 output_verbose_link_cmd='echo'
8624 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8625 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8626 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}"
8627 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}"
8629 case $cc_basename in
8631 output_verbose_link_cmd='echo'
8632 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8633 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8634 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8635 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}'
8636 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}'
8646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647 hardcode_libdir_flag_spec='-L$libdir'
8648 hardcode_shlibpath_var=no
8655 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8656 # support. Future versions do this automatically, but an explicit c++rt0.o
8657 # does not break anything, and helps significantly (at the cost of a little
8660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8661 hardcode_libdir_flag_spec='-R$libdir'
8663 hardcode_shlibpath_var=no
8666 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_minus_L=yes
8671 hardcode_shlibpath_var=no
8674 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8675 freebsd* | dragonfly*)
8676 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8677 hardcode_libdir_flag_spec='-R$libdir'
8679 hardcode_shlibpath_var=no
8683 if test "$GCC" = yes; then
8684 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'
8686 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'
8688 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8689 hardcode_libdir_separator=:
8692 # hardcode_minus_L: Not really in the search PATH,
8693 # but as the default location of the library.
8694 hardcode_minus_L=yes
8695 export_dynamic_flag_spec='${wl}-E'
8699 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8700 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8704 if test "$with_gnu_ld" = no; then
8705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8706 hardcode_libdir_separator=:
8709 export_dynamic_flag_spec='${wl}-E'
8711 # hardcode_minus_L: Not really in the search PATH,
8712 # but as the default location of the library.
8713 hardcode_minus_L=yes
8718 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8721 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8724 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8733 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8739 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8743 if test "$with_gnu_ld" = no; then
8744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8745 hardcode_libdir_separator=:
8749 hardcode_libdir_flag_spec_ld='+b $libdir'
8751 hardcode_shlibpath_var=no
8755 export_dynamic_flag_spec='${wl}-E'
8757 # hardcode_minus_L: Not really in the search PATH,
8758 # but as the default location of the library.
8759 hardcode_minus_L=yes
8765 irix5* | irix6* | nonstopux*)
8766 if test "$GCC" = yes; then
8767 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'
8769 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'
8770 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8773 hardcode_libdir_separator=:
8774 link_all_deplibs=yes
8777 netbsd* | netbsdelf*-gnu)
8778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8781 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8783 hardcode_libdir_flag_spec='-R$libdir'
8785 hardcode_shlibpath_var=no
8789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792 hardcode_libdir_separator=:
8793 hardcode_shlibpath_var=no
8797 if test -f /usr/libexec/ld.so; then
8799 hardcode_shlibpath_var=no
8800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8802 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8803 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8804 export_dynamic_flag_spec='${wl}-E'
8807 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_libdir_flag_spec='-R$libdir'
8812 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8823 hardcode_libdir_flag_spec='-L$libdir'
8824 hardcode_minus_L=yes
8825 allow_undefined_flag=unsupported
8826 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'
8827 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8831 if test "$GCC" = yes; then
8832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8833 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'
8835 allow_undefined_flag=' -expect_unresolved \*'
8836 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'
8838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8839 hardcode_libdir_separator=:
8842 osf4* | osf5*) # as osf3* with the addition of -msym flag
8843 if test "$GCC" = yes; then
8844 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8845 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'
8846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8848 allow_undefined_flag=' -expect_unresolved \*'
8849 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'
8850 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8851 $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'
8853 # Both c and cxx compiler support -rpath directly
8854 hardcode_libdir_flag_spec='-rpath $libdir'
8856 hardcode_libdir_separator=:
8860 no_undefined_flag=' -z text'
8861 if test "$GCC" = yes; then
8863 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8864 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8865 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8868 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8869 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8870 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8872 hardcode_libdir_flag_spec='-R$libdir'
8873 hardcode_shlibpath_var=no
8875 solaris2.[0-5] | solaris2.[0-5].*) ;;
8877 # The compiler driver will combine and reorder linker options,
8878 # but understands `-z linker_flag'. GCC discards it without `$wl',
8879 # but is careful enough not to reorder.
8880 # Supported since Solaris 2.6 (maybe 2.5.1?)
8881 if test "$GCC" = yes; then
8882 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8884 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8888 link_all_deplibs=yes
8892 if test "x$host_vendor" = xsequent; then
8893 # Use $CC to link under sequent, because it throws in some extra .o
8894 # files that make .init and .fini sections work.
8895 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8897 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8899 hardcode_libdir_flag_spec='-L$libdir'
8901 hardcode_minus_L=yes
8902 hardcode_shlibpath_var=no
8906 case $host_vendor in
8908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8909 hardcode_direct=yes # is this really true???
8912 ## LD is ld it makes a PLAMLIB
8913 ## CC just makes a GrossModule.
8914 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8915 reload_cmds='$CC -r -o $output$reload_objs'
8919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8923 runpath_var='LD_RUN_PATH'
8924 hardcode_shlibpath_var=no
8928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8929 hardcode_shlibpath_var=no
8930 export_dynamic_flag_spec='-Bexport'
8934 if test -d /usr/nec; then
8935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936 hardcode_shlibpath_var=no
8937 runpath_var=LD_RUN_PATH
8938 hardcode_runpath_var=yes
8943 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8944 no_undefined_flag='${wl}-z,text'
8945 archive_cmds_need_lc=no
8946 hardcode_shlibpath_var=no
8947 runpath_var='LD_RUN_PATH'
8949 if test "$GCC" = yes; then
8950 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8954 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8958 sysv5* | sco3.2v5* | sco5v6*)
8959 # Note: We can NOT use -z defs as we might desire, because we do not
8960 # link with -lc, and that would cause any symbols used from libc to
8961 # always be unresolved, which means just about no library would
8962 # ever link correctly. If we're not using GNU ld we use -z text
8963 # though, which does catch some bad symbols but isn't as heavy-handed
8965 no_undefined_flag='${wl}-z,text'
8966 allow_undefined_flag='${wl}-z,nodefs'
8967 archive_cmds_need_lc=no
8968 hardcode_shlibpath_var=no
8969 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8970 hardcode_libdir_separator=':'
8971 link_all_deplibs=yes
8972 export_dynamic_flag_spec='${wl}-Bexport'
8973 runpath_var='LD_RUN_PATH'
8975 if test "$GCC" = yes; then
8976 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8979 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8980 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 hardcode_shlibpath_var=no
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8997 $as_echo "$ld_shlibs" >&6; }
8998 test "$ld_shlibs" = no && can_build_shared=no
9001 # Do we need to explicitly link libc?
9003 case "x$archive_cmds_need_lc" in
9005 # Assume -lc should be added
9006 archive_cmds_need_lc=yes
9008 if test "$enable_shared" = yes && test "$GCC" = yes; then
9009 case $archive_cmds in
9011 # FIXME: we may have to deal with multi-command sequences.
9014 # Test whether the compiler implicitly links with -lc since on some
9015 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9016 # to ld, don't add -lc before -lgcc.
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9018 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9023 (eval $ac_compile) 2>&5
9025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9026 test $ac_status = 0; } 2>conftest.err; then
9029 libobjs=conftest.$ac_objext
9031 wl=$lt_prog_compiler_wl
9032 pic_flag=$lt_prog_compiler_pic
9038 lt_save_allow_undefined_flag=$allow_undefined_flag
9039 allow_undefined_flag=
9040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9041 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9044 test $ac_status = 0; }
9046 archive_cmds_need_lc=no
9048 archive_cmds_need_lc=yes
9050 allow_undefined_flag=$lt_save_allow_undefined_flag
9052 cat conftest.err 1>&5
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9056 $as_echo "$archive_cmds_need_lc" >&6; }
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9064 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9066 libname_spec='lib$name'
9074 shlibpath_overrides_runpath=unknown
9076 dynamic_linker="$host_os ld.so"
9077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9079 if test "$GCC" = yes; then
9081 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9082 *) lt_awk_arg="/^libraries:/" ;;
9084 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9085 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9086 # if the path contains ";" then we assume it to be the separator
9087 # otherwise default to the standard path separator (i.e. ":") - it is
9088 # assumed that no part of a normal pathname contains ";" but that should
9089 # okay in the real world where ";" in dirpaths is itself problematic.
9090 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9092 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9094 # Ok, now we have the path, separated by spaces, we can step through it
9095 # and add multilib dir if necessary.
9096 lt_tmp_lt_search_path_spec=
9097 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9098 for lt_sys_path in $lt_search_path_spec; do
9099 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9100 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9102 test -d "$lt_sys_path" && \
9103 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9106 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9107 BEGIN {RS=" "; FS="/|\n";} {
9110 for (lt_i = NF; lt_i > 0; lt_i--) {
9111 if ($lt_i != "" && $lt_i != ".") {
9112 if ($lt_i == "..") {
9115 if (lt_count == 0) {
9116 lt_foo="/" $lt_i lt_foo;
9123 if (lt_foo != "") { lt_freq[lt_foo]++; }
9124 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9126 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9128 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9130 need_lib_prefix=unknown
9131 hardcode_into_libs=no
9133 # when you set need_version to no, make sure it does not cause -set_version
9134 # flags to be left without arguments
9135 need_version=unknown
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9141 shlibpath_var=LIBPATH
9143 # AIX 3 has no versioning support, so we append a major version to the name.
9144 soname_spec='${libname}${release}${shared_ext}$major'
9151 hardcode_into_libs=yes
9152 if test "$host_cpu" = ia64; then
9153 # AIX 5 supports IA64
9154 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9155 shlibpath_var=LD_LIBRARY_PATH
9157 # With GCC up to 2.95.x, collect2 would create an import file
9158 # for dependence libraries. The import file would start with
9159 # the line `#! .'. This would cause the generated library to
9160 # depend on `.', always an invalid library. This was fixed in
9161 # development snapshots of GCC prior to 3.0.
9163 aix4 | aix4.[01] | aix4.[01].*)
9164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9166 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9173 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9174 # soname into executable. Probably we can add versioning support to
9175 # collect2, so additional links can be useful in future.
9176 if test "$aix_use_runtimelinking" = yes; then
9177 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9178 # instead of lib<name>.a to let people know that these are not
9179 # typical AIX shared libraries.
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9182 # We preserve .a as extension for shared libraries through AIX4.2
9183 # and later when we are not doing run time linking.
9184 library_names_spec='${libname}${release}.a $libname.a'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9187 shlibpath_var=LIBPATH
9192 library_names_spec='$libname.ixlibrary $libname.a'
9193 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9194 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'
9198 library_names_spec='${libname}${shared_ext}'
9199 dynamic_linker="$host_os ld.so"
9200 shlibpath_var=LIBRARY_PATH
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9211 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9212 # the default ld.so.conf also contains /usr/contrib/lib and
9213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9214 # libtool to hard-code these into programs
9217 cygwin* | mingw* | pw32*)
9218 version_type=windows
9223 case $GCC,$host_os in
9224 yes,cygwin* | yes,mingw* | yes,pw32*)
9225 library_names_spec='$libname.dll.a'
9226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9227 postinstall_cmds='base_file=`basename \${file}`~
9228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9229 dldir=$destdir/`dirname \$dlpath`~
9230 test -d \$dldir || mkdir -p \$dldir~
9231 $install_prog $dir/$dlname \$dldir/$dlname~
9232 chmod a+x \$dldir/$dlname'
9233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9234 dlpath=$dir/\$dldll~
9236 shlibpath_overrides_runpath=yes
9240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9241 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9242 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9245 # MinGW DLLs use traditional 'lib' prefix
9246 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9247 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9248 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9249 # It is most probably a Windows format PATH printed by
9250 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9251 # path with ; separators, and with drive letters. We can handle the
9252 # drive letters (cygwin fileutils understands them), so leave them,
9253 # especially as we might pass files found there to a mingw objdump,
9254 # which wouldn't understand a cygwinified path. Ahh.
9255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9261 # pw32 DLLs use 'pw' prefix rather than 'lib'
9262 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9268 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9271 dynamic_linker='Win32 ld.exe'
9272 # FIXME: first we should search . and the directory the executable is in
9276 darwin* | rhapsody*)
9277 dynamic_linker="$host_os dyld"
9281 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9282 soname_spec='${libname}${release}${major}$shared_ext'
9283 shlibpath_overrides_runpath=yes
9284 shlibpath_var=DYLD_LIBRARY_PATH
9285 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9287 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9288 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9304 freebsd* | dragonfly*)
9305 # DragonFly does not have aout. When/if they implement a new
9306 # versioning mechanism, adjust this.
9307 if test -x /usr/bin/objformat; then
9308 objformat=`/usr/bin/objformat`
9311 freebsd[123]*) objformat=aout ;;
9315 version_type=freebsd-$objformat
9316 case $version_type in
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9327 shlibpath_var=LD_LIBRARY_PATH
9330 shlibpath_overrides_runpath=yes
9332 freebsd3.[01]* | freebsdelf3.[01]*)
9333 shlibpath_overrides_runpath=yes
9334 hardcode_into_libs=yes
9336 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9337 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9338 shlibpath_overrides_runpath=no
9339 hardcode_into_libs=yes
9341 *) # from 4.6 on, and DragonFly
9342 shlibpath_overrides_runpath=yes
9343 hardcode_into_libs=yes
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9353 soname_spec='${libname}${release}${shared_ext}$major'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 hardcode_into_libs=yes
9358 hpux9* | hpux10* | hpux11*)
9359 # Give a soname corresponding to the major version so that dld.sl refuses to
9360 # link against other versions.
9367 hardcode_into_libs=yes
9368 dynamic_linker="$host_os dld.so"
9369 shlibpath_var=LD_LIBRARY_PATH
9370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 if test "X$HPUX_IA64_MODE" = X32; then
9374 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9382 hardcode_into_libs=yes
9383 dynamic_linker="$host_os dld.sl"
9384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9393 dynamic_linker="$host_os dld.sl"
9394 shlibpath_var=SHLIB_PATH
9395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9400 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9401 postinstall_cmds='chmod 555 $lib'
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9411 shlibpath_var=LD_LIBRARY_PATH
9412 shlibpath_overrides_runpath=no
9413 hardcode_into_libs=yes
9416 irix5* | irix6* | nonstopux*)
9418 nonstopux*) version_type=nonstopux ;;
9420 if test "$lt_cv_prog_gnu_ld" = yes; then
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9431 irix5* | nonstopux*)
9435 case $LD in # libtool.m4 will add one of these switches to LD
9436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9437 libsuff= shlibsuff= libmagic=32-bit;;
9438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9439 libsuff=32 shlibsuff=N32 libmagic=N32;;
9440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9441 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9442 *) libsuff= shlibsuff= libmagic=never-match;;
9446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9447 shlibpath_overrides_runpath=no
9448 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9449 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9450 hardcode_into_libs=yes
9453 # No shared lib support for Linux oldld, aout, or coff.
9454 linux*oldld* | linux*aout* | linux*coff*)
9458 # This must be Linux ELF.
9459 linux* | k*bsd*-gnu)
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=no
9468 # This implies no fast_install, which is unacceptable.
9469 # Some rework will be needed to allow for fast_install
9470 # before this can be enabled.
9471 hardcode_into_libs=yes
9473 # Append ld.so.conf contents to the search path
9474 if test -f /etc/ld.so.conf; then
9475 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' ' '`
9476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9479 # We used to test for /lib/ld.so.1 and disable shared libraries on
9480 # powerpc, because MkLinux only supported shared libraries with the
9481 # GNU dynamic linker. Since this was broken with cross compilers,
9482 # most powerpc-linux boxes support dynamic linking these days and
9483 # people can always --disable-shared, the test was removed, and we
9484 # assume the GNU/Linux dynamic linker is in use.
9485 dynamic_linker='GNU/Linux ld.so'
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 shlibpath_var=LD_LIBRARY_PATH
9495 shlibpath_overrides_runpath=no
9496 hardcode_into_libs=yes
9497 dynamic_linker='NetBSD ld.elf_so'
9504 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9507 dynamic_linker='NetBSD (a.out) ld.so'
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 dynamic_linker='NetBSD ld.elf_so'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 shlibpath_overrides_runpath=yes
9515 hardcode_into_libs=yes
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521 shlibpath_var=LD_LIBRARY_PATH
9522 shlibpath_overrides_runpath=yes
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 shlibpath_overrides_runpath=yes
9537 sys_lib_dlsearch_path_spec="/usr/lib"
9539 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9541 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9542 *) need_version=no ;;
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9549 openbsd2.[89] | openbsd2.[89].*)
9550 shlibpath_overrides_runpath=no
9553 shlibpath_overrides_runpath=yes
9557 shlibpath_overrides_runpath=yes
9562 libname_spec='$name'
9565 library_names_spec='$libname${shared_ext} $libname.a'
9566 dynamic_linker='OS/2 ld.exe'
9567 shlibpath_var=LIBPATH
9570 osf3* | osf4* | osf5*)
9574 soname_spec='${libname}${release}${shared_ext}$major'
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 shlibpath_var=LD_LIBRARY_PATH
9577 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9578 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 shlibpath_var=LD_LIBRARY_PATH
9592 shlibpath_overrides_runpath=yes
9593 hardcode_into_libs=yes
9594 # ldd complains unless libraries are executable
9595 postinstall_cmds='chmod +x $lib'
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9601 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 shlibpath_overrides_runpath=yes
9604 if test "$with_gnu_ld" = yes; then
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 case $host_vendor in
9617 shlibpath_overrides_runpath=no
9619 export_dynamic_flag_spec='${wl}-Blargedynsym'
9620 runpath_var=LD_RUN_PATH
9628 shlibpath_overrides_runpath=no
9629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9635 if test -d /usr/nec ;then
9637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9638 soname_spec='$libname${shared_ext}.$major'
9639 shlibpath_var=LD_LIBRARY_PATH
9643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9644 version_type=freebsd-elf
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 hardcode_into_libs=yes
9651 if test "$with_gnu_ld" = yes; then
9652 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9653 shlibpath_overrides_runpath=no
9655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9656 shlibpath_overrides_runpath=yes
9659 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9663 sys_lib_dlsearch_path_spec='/usr/lib'
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 shlibpath_var=LD_LIBRARY_PATH
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9678 $as_echo "$dynamic_linker" >&6; }
9679 test "$dynamic_linker" = no && can_build_shared=no
9681 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9682 $as_echo_n "(cached) " >&6
9684 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9688 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9689 $as_echo_n "(cached) " >&6
9691 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9694 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9697 if test "$GCC" = yes; then
9698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9702 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9704 if test -n "$hardcode_libdir_flag_spec" || \
9705 test -n "$runpath_var" || \
9706 test "X$hardcode_automatic" = "Xyes" ; then
9708 # We can hardcode non-existant directories.
9709 if test "$hardcode_direct" != no &&
9710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9711 # have to relink, otherwise we might link with an installed library
9712 # when we should be linking with a yet-to-be-installed one
9713 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9714 test "$hardcode_minus_L" != no; then
9715 # Linking always hardcodes the temporary library directory.
9716 hardcode_action=relink
9718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9719 hardcode_action=immediate
9722 # We cannot hardcode anything, or else we can only hardcode existing
9724 hardcode_action=unsupported
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9727 $as_echo "$hardcode_action" >&6; }
9729 if test "$hardcode_action" = relink; then
9730 # Fast installation is not supported
9731 enable_fast_install=no
9732 elif test "$shlibpath_overrides_runpath" = yes ||
9733 test "$enable_shared" = no; then
9734 # Fast installation is not necessary
9735 enable_fast_install=needless
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9741 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9742 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9743 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9744 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9746 $as_echo "yes" >&6; }
9748 # FIXME - insert some real tests, host_os isn't really good enough
9751 if test -n "$STRIP" ; then
9752 striplib="$STRIP -x"
9753 old_striplib="$STRIP -S"
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9755 $as_echo "yes" >&6; }
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758 $as_echo "no" >&6; }
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9768 if test "x$enable_dlopen" != xyes; then
9769 enable_dlopen=unknown
9770 enable_dlopen_self=unknown
9771 enable_dlopen_self_static=unknown
9778 lt_cv_dlopen="load_add_on"
9780 lt_cv_dlopen_self=yes
9784 lt_cv_dlopen="LoadLibrary"
9789 lt_cv_dlopen="dlopen"
9794 # if libdl is installed we need to link against it
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9796 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9797 if ${ac_cv_lib_dl_dlopen+:} false; then :
9798 $as_echo_n "(cached) " >&6
9800 ac_check_lib_save_LIBS=$LIBS
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9805 /* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
9820 if ac_fn_c_try_link "$LINENO"; then :
9821 ac_cv_lib_dl_dlopen=yes
9823 ac_cv_lib_dl_dlopen=no
9825 rm -f core conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9827 LIBS=$ac_check_lib_save_LIBS
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9830 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9831 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9832 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9837 lt_cv_dlopen_self=yes
9844 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9845 if test "x$ac_cv_func_shl_load" = xyes; then :
9846 lt_cv_dlopen="shl_load"
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9849 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9850 if ${ac_cv_lib_dld_shl_load+:} false; then :
9851 $as_echo_n "(cached) " >&6
9853 ac_check_lib_save_LIBS=$LIBS
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9873 if ac_fn_c_try_link "$LINENO"; then :
9874 ac_cv_lib_dld_shl_load=yes
9876 ac_cv_lib_dld_shl_load=no
9878 rm -f core conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9883 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9884 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9885 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9887 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9888 if test "x$ac_cv_func_dlopen" = xyes; then :
9889 lt_cv_dlopen="dlopen"
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9892 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9893 if ${ac_cv_lib_dl_dlopen+:} false; then :
9894 $as_echo_n "(cached) " >&6
9896 ac_check_lib_save_LIBS=$LIBS
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9901 /* Override any GCC internal prototype to avoid an error.
9902 Use char because int might match the return type of a GCC
9903 builtin and then its argument prototype would still apply. */
9916 if ac_fn_c_try_link "$LINENO"; then :
9917 ac_cv_lib_dl_dlopen=yes
9919 ac_cv_lib_dl_dlopen=no
9921 rm -f core conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9926 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9927 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9931 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9932 if ${ac_cv_lib_svld_dlopen+:} false; then :
9933 $as_echo_n "(cached) " >&6
9935 ac_check_lib_save_LIBS=$LIBS
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9940 /* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9955 if ac_fn_c_try_link "$LINENO"; then :
9956 ac_cv_lib_svld_dlopen=yes
9958 ac_cv_lib_svld_dlopen=no
9960 rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 LIBS=$ac_check_lib_save_LIBS
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9965 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9966 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9970 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9971 if ${ac_cv_lib_dld_dld_link+:} false; then :
9972 $as_echo_n "(cached) " >&6
9974 ac_check_lib_save_LIBS=$LIBS
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9979 /* Override any GCC internal prototype to avoid an error.
9980 Use char because int might match the return type of a GCC
9981 builtin and then its argument prototype would still apply. */
9994 if ac_fn_c_try_link "$LINENO"; then :
9995 ac_cv_lib_dld_dld_link=yes
9997 ac_cv_lib_dld_dld_link=no
9999 rm -f core conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10004 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10005 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10006 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10027 if test "x$lt_cv_dlopen" != xno; then
10033 case $lt_cv_dlopen in
10035 save_CPPFLAGS="$CPPFLAGS"
10036 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10038 save_LDFLAGS="$LDFLAGS"
10039 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10042 LIBS="$lt_cv_dlopen_libs $LIBS"
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10045 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10046 if ${lt_cv_dlopen_self+:} false; then :
10047 $as_echo_n "(cached) " >&6
10049 if test "$cross_compiling" = yes; then :
10050 lt_cv_dlopen_self=cross
10052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10053 lt_status=$lt_dlunknown
10054 cat > conftest.$ac_ext <<EOF
10055 #line 10055 "configure"
10056 #include "confdefs.h"
10065 # define LT_DLGLOBAL RTLD_GLOBAL
10068 # define LT_DLGLOBAL DL_GLOBAL
10070 # define LT_DLGLOBAL 0
10074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10075 find out it does not work in some platform. */
10076 #ifndef LT_DLLAZY_OR_NOW
10078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10081 # define LT_DLLAZY_OR_NOW DL_LAZY
10084 # define LT_DLLAZY_OR_NOW RTLD_NOW
10087 # define LT_DLLAZY_OR_NOW DL_NOW
10089 # define LT_DLLAZY_OR_NOW 0
10097 extern "C" void exit (int);
10100 void fnord() { int i=42;}
10103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10104 int status = $lt_dlunknown;
10108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10110 /* dlclose (self); */
10118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10119 (eval $ac_link) 2>&5
10121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10122 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10123 (./conftest; exit; ) >&5 2>/dev/null
10125 case x$lt_status in
10126 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10127 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10128 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10131 # compilation failed
10132 lt_cv_dlopen_self=no
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10140 $as_echo "$lt_cv_dlopen_self" >&6; }
10142 if test "x$lt_cv_dlopen_self" = xyes; then
10143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10145 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10146 if ${lt_cv_dlopen_self_static+:} false; then :
10147 $as_echo_n "(cached) " >&6
10149 if test "$cross_compiling" = yes; then :
10150 lt_cv_dlopen_self_static=cross
10152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10153 lt_status=$lt_dlunknown
10154 cat > conftest.$ac_ext <<EOF
10155 #line 10155 "configure"
10156 #include "confdefs.h"
10165 # define LT_DLGLOBAL RTLD_GLOBAL
10168 # define LT_DLGLOBAL DL_GLOBAL
10170 # define LT_DLGLOBAL 0
10174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10175 find out it does not work in some platform. */
10176 #ifndef LT_DLLAZY_OR_NOW
10178 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10181 # define LT_DLLAZY_OR_NOW DL_LAZY
10184 # define LT_DLLAZY_OR_NOW RTLD_NOW
10187 # define LT_DLLAZY_OR_NOW DL_NOW
10189 # define LT_DLLAZY_OR_NOW 0
10197 extern "C" void exit (int);
10200 void fnord() { int i=42;}
10203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10204 int status = $lt_dlunknown;
10208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10209 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10210 /* dlclose (self); */
10218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10219 (eval $ac_link) 2>&5
10221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10222 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10223 (./conftest; exit; ) >&5 2>/dev/null
10225 case x$lt_status in
10226 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10227 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10228 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10231 # compilation failed
10232 lt_cv_dlopen_self_static=no
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10240 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10243 CPPFLAGS="$save_CPPFLAGS"
10244 LDFLAGS="$save_LDFLAGS"
10249 case $lt_cv_dlopen_self in
10250 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10251 *) enable_dlopen_self=unknown ;;
10254 case $lt_cv_dlopen_self_static in
10255 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10256 *) enable_dlopen_self_static=unknown ;;
10261 # Report which library types will actually be built
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10263 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10265 $as_echo "$can_build_shared" >&6; }
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10268 $as_echo_n "checking whether to build shared libraries... " >&6; }
10269 test "$can_build_shared" = "no" && enable_shared=no
10271 # On AIX, shared libraries and static libraries use the same namespace, and
10272 # are all built from PIC.
10275 test "$enable_shared" = yes && enable_static=no
10276 if test -n "$RANLIB"; then
10277 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10278 postinstall_cmds='$RANLIB $lib'
10283 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10284 test "$enable_shared" = yes && enable_static=no
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10289 $as_echo "$enable_shared" >&6; }
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10292 $as_echo_n "checking whether to build static libraries... " >&6; }
10293 # Make sure either enable_shared or enable_static is yes.
10294 test "$enable_shared" = yes || enable_static=yes
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10296 $as_echo "$enable_static" >&6; }
10298 # The else clause should only fire when bootstrapping the
10299 # libtool distribution, otherwise you forgot to ship ltmain.sh
10300 # with your package, and you will get complaints that there are
10301 # no rules to generate ltmain.sh.
10302 if test -f "$ltmain"; then
10303 # See if we are running on zsh, and set the options which allow our commands through
10304 # without removal of \ escapes.
10305 if test -n "${ZSH_VERSION+set}" ; then
10306 setopt NO_GLOB_SUBST
10308 # Now quote all the things that may contain metacharacters while being
10309 # careful not to overquote the AC_SUBSTed values. We take copies of the
10310 # variables and quote the copies for generation of the libtool script.
10311 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10313 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10314 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10315 deplibs_check_method reload_flag reload_cmds need_locks \
10316 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10317 lt_cv_sys_global_symbol_to_c_name_address \
10318 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10319 old_postinstall_cmds old_postuninstall_cmds \
10323 lt_prog_compiler_wl \
10324 lt_prog_compiler_pic \
10325 lt_prog_compiler_static \
10326 lt_prog_compiler_no_builtin_flag \
10327 export_dynamic_flag_spec \
10328 thread_safe_flag_spec \
10329 whole_archive_flag_spec \
10330 enable_shared_with_static_runtimes \
10332 old_archive_from_new_cmds \
10337 compiler_lib_search_path \
10338 compiler_lib_search_dirs \
10340 archive_expsym_cmds \
10342 postuninstall_cmds \
10343 old_archive_from_expsyms_cmds \
10344 allow_undefined_flag \
10345 no_undefined_flag \
10346 export_symbols_cmds \
10347 hardcode_libdir_flag_spec \
10348 hardcode_libdir_flag_spec_ld \
10349 hardcode_libdir_separator \
10350 hardcode_automatic \
10352 module_expsym_cmds \
10353 lt_cv_prog_compiler_c_o \
10356 include_expsyms; do
10359 old_archive_cmds | \
10360 old_archive_from_new_cmds | \
10362 archive_expsym_cmds | \
10364 module_expsym_cmds | \
10365 old_archive_from_expsyms_cmds | \
10366 export_symbols_cmds | \
10367 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10368 postinstall_cmds | postuninstall_cmds | \
10369 old_postinstall_cmds | old_postuninstall_cmds | \
10370 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10371 # Double-quote double-evaled strings.
10372 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10381 *'\$0 --fallback-echo"')
10382 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10386 cfgfile="${ofile}T"
10387 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10390 $as_echo "$as_me: creating $ofile" >&6;}
10392 cat <<__EOF__ >> "$cfgfile"
10395 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10396 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10397 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10399 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10400 # Free Software Foundation, Inc.
10402 # This file is part of GNU Libtool:
10403 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10405 # This program is free software; you can redistribute it and/or modify
10406 # it under the terms of the GNU General Public License as published by
10407 # the Free Software Foundation; either version 2 of the License, or
10408 # (at your option) any later version.
10410 # This program is distributed in the hope that it will be useful, but
10411 # WITHOUT ANY WARRANTY; without even the implied warranty of
10412 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10413 # General Public License for more details.
10415 # You should have received a copy of the GNU General Public License
10416 # along with this program; if not, write to the Free Software
10417 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10419 # As a special exception to the GNU General Public License, if you
10420 # distribute this file as part of a program that contains a
10421 # configuration script generated by Autoconf, you may include it under
10422 # the same distribution terms that you use for the rest of that program.
10424 # A sed program that does not truncate output.
10427 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10428 Xsed="$SED -e 1s/^X//"
10430 # The HP-UX ksh and POSIX shell print the target directory to stdout
10431 # if CDPATH is set.
10432 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10434 # The names of the tagged configurations supported by this script.
10437 # ### BEGIN LIBTOOL CONFIG
10439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10441 # Shell to use when invoking shell scripts.
10444 # Whether or not to build shared libraries.
10445 build_libtool_libs=$enable_shared
10447 # Whether or not to build static libraries.
10448 build_old_libs=$enable_static
10450 # Whether or not to add -lc for building shared libraries.
10451 build_libtool_need_lc=$archive_cmds_need_lc
10453 # Whether or not to disallow shared libs when runtime libs are static
10454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10456 # Whether or not to optimize for fast installation.
10457 fast_install=$enable_fast_install
10460 host_alias=$host_alias
10464 # The build system.
10465 build_alias=$build_alias
10469 # An echo program that does not interpret backslashes.
10474 AR_FLAGS=$lt_AR_FLAGS
10479 # LTCC compiler flags.
10480 LTCFLAGS=$lt_LTCFLAGS
10482 # A language-specific compiler.
10485 # Is the compiler the GNU C compiler?
10491 # The linker used to build libraries.
10494 # Whether we need hard or soft links.
10497 # A BSD-compatible nm program.
10500 # A symbol stripping program
10503 # Used to examine libraries when file_magic_cmd begins "file"
10504 MAGIC_CMD=$MAGIC_CMD
10506 # Used on cygwin: DLL creation program.
10509 # Used on cygwin: object dumper.
10512 # Used on cygwin: assembler.
10515 # The name of the directory that contains temporary libtool files.
10518 # How to create reloadable object files.
10519 reload_flag=$lt_reload_flag
10520 reload_cmds=$lt_reload_cmds
10522 # How to pass a linker flag through the compiler.
10523 wl=$lt_lt_prog_compiler_wl
10525 # Object file suffix (normally "o").
10526 objext="$ac_objext"
10528 # Old archive suffix (normally "a").
10531 # Shared library suffix (normally ".so").
10532 shrext_cmds='$shrext_cmds'
10534 # Executable file suffix (normally "").
10537 # Additional compiler flags for building library objects.
10538 pic_flag=$lt_lt_prog_compiler_pic
10541 # What is the maximum length of a command?
10542 max_cmd_len=$lt_cv_sys_max_cmd_len
10544 # Does compiler simultaneously support -c and -o options?
10545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10547 # Must we lock files when doing compilation?
10548 need_locks=$lt_need_locks
10550 # Do we need the lib prefix for modules?
10551 need_lib_prefix=$need_lib_prefix
10553 # Do we need a version for libraries?
10554 need_version=$need_version
10556 # Whether dlopen is supported.
10557 dlopen_support=$enable_dlopen
10559 # Whether dlopen of programs is supported.
10560 dlopen_self=$enable_dlopen_self
10562 # Whether dlopen of statically linked programs is supported.
10563 dlopen_self_static=$enable_dlopen_self_static
10565 # Compiler flag to prevent dynamic linking.
10566 link_static_flag=$lt_lt_prog_compiler_static
10568 # Compiler flag to turn off builtin functions.
10569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10571 # Compiler flag to allow reflexive dlopens.
10572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10574 # Compiler flag to generate shared objects directly from archives.
10575 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10577 # Compiler flag to generate thread-safe objects.
10578 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10580 # Library versioning type.
10581 version_type=$version_type
10583 # Format of library name prefix.
10584 libname_spec=$lt_libname_spec
10586 # List of archive names. First name is the real one, the rest are links.
10587 # The last name is the one that the linker finds with -lNAME.
10588 library_names_spec=$lt_library_names_spec
10590 # The coded name of the library, if different from the real name.
10591 soname_spec=$lt_soname_spec
10593 # Commands used to build and install an old-style archive.
10595 old_archive_cmds=$lt_old_archive_cmds
10596 old_postinstall_cmds=$lt_old_postinstall_cmds
10597 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10599 # Create an old-style archive from a shared archive.
10600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10602 # Create a temporary old-style archive to link instead of a shared archive.
10603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10605 # Commands used to build and install a shared archive.
10606 archive_cmds=$lt_archive_cmds
10607 archive_expsym_cmds=$lt_archive_expsym_cmds
10608 postinstall_cmds=$lt_postinstall_cmds
10609 postuninstall_cmds=$lt_postuninstall_cmds
10611 # Commands used to build a loadable module (assumed same as above if empty)
10612 module_cmds=$lt_module_cmds
10613 module_expsym_cmds=$lt_module_expsym_cmds
10615 # Commands to strip libraries.
10616 old_striplib=$lt_old_striplib
10617 striplib=$lt_striplib
10619 # Dependencies to place before the objects being linked to create a
10621 predep_objects=$lt_predep_objects
10623 # Dependencies to place after the objects being linked to create a
10625 postdep_objects=$lt_postdep_objects
10627 # Dependencies to place before the objects being linked to create a
10629 predeps=$lt_predeps
10631 # Dependencies to place after the objects being linked to create a
10633 postdeps=$lt_postdeps
10635 # The directories searched by this compiler when creating a shared
10637 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10639 # The library search path used internally by the compiler when linking
10640 # a shared library.
10641 compiler_lib_search_path=$lt_compiler_lib_search_path
10643 # Method to check whether dependent libraries are shared objects.
10644 deplibs_check_method=$lt_deplibs_check_method
10646 # Command to use when deplibs_check_method == file_magic.
10647 file_magic_cmd=$lt_file_magic_cmd
10649 # Flag that allows shared libraries with undefined symbols to be built.
10650 allow_undefined_flag=$lt_allow_undefined_flag
10652 # Flag that forces no undefined symbols.
10653 no_undefined_flag=$lt_no_undefined_flag
10655 # Commands used to finish a libtool library installation in a directory.
10656 finish_cmds=$lt_finish_cmds
10658 # Same as above, but a single script fragment to be evaled but not shown.
10659 finish_eval=$lt_finish_eval
10661 # Take the output of nm and produce a listing of raw symbols and C names.
10662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10664 # Transform the output of nm in a proper C declaration
10665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10667 # Transform the output of nm in a C name address pair
10668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10670 # This is the shared library runtime path variable.
10671 runpath_var=$runpath_var
10673 # This is the shared library path variable.
10674 shlibpath_var=$shlibpath_var
10676 # Is shlibpath searched before the hard-coded library search path?
10677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10679 # How to hardcode a shared library path into an executable.
10680 hardcode_action=$hardcode_action
10682 # Whether we should hardcode library paths into libraries.
10683 hardcode_into_libs=$hardcode_into_libs
10685 # Flag to hardcode \$libdir into a binary during linking.
10686 # This must work even if \$libdir does not exist.
10687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10689 # If ld is used when linking, flag to hardcode \$libdir into
10690 # a binary during linking. This must work even if \$libdir does
10692 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10694 # Whether we need a single -rpath flag with a separated argument.
10695 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10697 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10698 # resulting binary.
10699 hardcode_direct=$hardcode_direct
10701 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10702 # resulting binary.
10703 hardcode_minus_L=$hardcode_minus_L
10705 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10706 # the resulting binary.
10707 hardcode_shlibpath_var=$hardcode_shlibpath_var
10709 # Set to yes if building a shared library automatically hardcodes DIR into the library
10710 # and all subsequent libraries and executables linked against it.
10711 hardcode_automatic=$hardcode_automatic
10713 # Variables whose values should be saved in libtool wrapper scripts and
10714 # restored at relink time.
10715 variables_saved_for_relink="$variables_saved_for_relink"
10717 # Whether libtool must link a program against all its dependency libraries.
10718 link_all_deplibs=$link_all_deplibs
10720 # Compile-time system search path for libraries
10721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10723 # Run-time system search path for libraries
10724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10726 # Fix the shell variable \$srcfile for the compiler.
10727 fix_srcfile_path=$lt_fix_srcfile_path
10729 # Set to yes if exported symbols are required.
10730 always_export_symbols=$always_export_symbols
10732 # The commands to list exported symbols.
10733 export_symbols_cmds=$lt_export_symbols_cmds
10735 # The commands to extract the exported symbol list from a shared archive.
10736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10738 # Symbols that should not be listed in the preloaded symbols.
10739 exclude_expsyms=$lt_exclude_expsyms
10741 # Symbols that must always be exported.
10742 include_expsyms=$lt_include_expsyms
10744 # ### END LIBTOOL CONFIG
10751 cat <<\EOF >> "$cfgfile"
10753 # AIX sometimes has problems with the GCC collect2 program. For some
10754 # reason, if we set the COLLECT_NAMES environment variable, the problems
10755 # vanish in a puff of smoke.
10756 if test "X${COLLECT_NAMES+set}" != Xset; then
10758 export COLLECT_NAMES
10764 # We use sed instead of cat because bash on DJGPP gets confused if
10765 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10766 # text mode, it properly converts lines to CR/LF. This bash problem
10767 # is reportedly fixed, but why not run on old versions too?
10768 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10770 mv -f "$cfgfile" "$ofile" || \
10771 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10775 # If there is no Makefile yet, we rely on a make rule to execute
10776 # `config.status --recheck' to rerun these tests and create the
10777 # libtool script then.
10778 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10779 if test -f "$ltmain_in"; then
10780 test -f Makefile && make "$ltmain"
10786 ac_cpp='$CPP $CPPFLAGS'
10787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10794 # Check whether --with-tags was given.
10795 if test "${with_tags+set}" = set; then :
10796 withval=$with_tags; tagnames="$withval"
10800 if test -f "$ltmain" && test -n "$tagnames"; then
10801 if test ! -f "${ofile}"; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10803 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10806 if test -z "$LTCC"; then
10807 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10808 if test -z "$LTCC"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10810 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10813 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10816 if test -z "$LTCFLAGS"; then
10817 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10820 # Extract list of available tagged configurations in $ofile.
10821 # Note that this assumes the entire list is on one line.
10822 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10825 for tagname in $tagnames; do
10827 # Check whether tagname contains only valid characters
10828 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10830 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10834 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10836 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10839 # Update the list of available tags.
10840 if test -n "$tagname"; then
10841 echo appending configuration tag \"$tagname\" to $ofile
10845 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10846 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10847 (test "X$CXX" != "Xg++"))) ; then
10849 ac_cpp='$CXXCPP $CPPFLAGS'
10850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10857 archive_cmds_need_lc_CXX=no
10858 allow_undefined_flag_CXX=
10859 always_export_symbols_CXX=no
10860 archive_expsym_cmds_CXX=
10861 export_dynamic_flag_spec_CXX=
10862 hardcode_direct_CXX=no
10863 hardcode_libdir_flag_spec_CXX=
10864 hardcode_libdir_flag_spec_ld_CXX=
10865 hardcode_libdir_separator_CXX=
10866 hardcode_minus_L_CXX=no
10867 hardcode_shlibpath_var_CXX=unsupported
10868 hardcode_automatic_CXX=no
10870 module_expsym_cmds_CXX=
10871 link_all_deplibs_CXX=unknown
10872 old_archive_cmds_CXX=$old_archive_cmds
10873 no_undefined_flag_CXX=
10874 whole_archive_flag_spec_CXX=
10875 enable_shared_with_static_runtimes_CXX=no
10877 # Dependencies to place before and after the object being linked:
10878 predep_objects_CXX=
10879 postdep_objects_CXX=
10882 compiler_lib_search_path_CXX=
10883 compiler_lib_search_dirs_CXX=
10885 # Source file extension for C++ test sources.
10888 # Object file extension for compiled C++ test sources.
10892 # Code to be used in simple compile tests
10893 lt_simple_compile_test_code="int some_variable = 0;"
10895 # Code to be used in simple link tests
10896 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10900 # If no C compiler was specified, use CC.
10903 # If no C compiler flags were specified, use CFLAGS.
10904 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10906 # Allow CC to be a program name with arguments.
10910 # save warnings/boilerplate of simple test code
10911 ac_outfile=conftest.$ac_objext
10912 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10913 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10914 _lt_compiler_boilerplate=`cat conftest.err`
10917 ac_outfile=conftest.$ac_objext
10918 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10919 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10920 _lt_linker_boilerplate=`cat conftest.err`
10924 # Allow CC to be a program name with arguments.
10929 lt_save_with_gnu_ld=$with_gnu_ld
10930 lt_save_path_LD=$lt_cv_path_LD
10931 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10932 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10934 $as_unset lt_cv_prog_gnu_ld
10936 if test -n "${lt_cv_path_LDCXX+set}"; then
10937 lt_cv_path_LD=$lt_cv_path_LDCXX
10939 $as_unset lt_cv_path_LD
10941 test -z "${LDCXX+set}" || LD=$LDCXX
10945 for cc_temp in $compiler""; do
10947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10953 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10956 # We don't want -fno-exception wen compiling C++ code, so set the
10957 # no_builtin_flag separately
10958 if test "$GXX" = yes; then
10959 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10961 lt_prog_compiler_no_builtin_flag_CXX=
10964 if test "$GXX" = yes; then
10965 # Set up default GNU C++ configuration
10968 # Check whether --with-gnu-ld was given.
10969 if test "${with_gnu_ld+set}" = set; then :
10970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10976 if test "$GCC" = yes; then
10977 # Check if gcc -print-prog-name=ld gives a path.
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10979 $as_echo_n "checking for ld used by $CC... " >&6; }
10982 # gcc leaves a trailing carriage return which upsets mingw
10983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10988 # Accept absolute paths.
10990 re_direlt='/[^/][^/]*/\.\./'
10991 # Canonicalize the pathname of ld
10992 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10993 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10994 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10996 test -z "$LD" && LD="$ac_prog"
10999 # If it fails, then pretend we aren't using GCC.
11003 # If it is relative, then search for the first ld in PATH.
11004 with_gnu_ld=unknown
11007 elif test "$with_gnu_ld" = yes; then
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11009 $as_echo_n "checking for GNU ld... " >&6; }
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11012 $as_echo_n "checking for non-GNU ld... " >&6; }
11014 if ${lt_cv_path_LD+:} false; then :
11015 $as_echo_n "(cached) " >&6
11017 if test -z "$LD"; then
11018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11019 for ac_dir in $PATH; do
11021 test -z "$ac_dir" && ac_dir=.
11022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11023 lt_cv_path_LD="$ac_dir/$ac_prog"
11024 # Check to see if the program is GNU ld. I'd rather use --version,
11025 # but apparently some variants of GNU ld only accept -v.
11026 # Break only if it was the GNU/non-GNU ld that we prefer.
11027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11028 *GNU* | *'with BFD'*)
11029 test "$with_gnu_ld" != no && break
11032 test "$with_gnu_ld" != yes && break
11039 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11043 LD="$lt_cv_path_LD"
11044 if test -n "$LD"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11046 $as_echo "$LD" >&6; }
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11051 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11053 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11054 if ${lt_cv_prog_gnu_ld+:} false; then :
11055 $as_echo_n "(cached) " >&6
11057 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11058 case `$LD -v 2>&1 </dev/null` in
11059 *GNU* | *'with BFD'*)
11060 lt_cv_prog_gnu_ld=yes
11063 lt_cv_prog_gnu_ld=no
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11068 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11069 with_gnu_ld=$lt_cv_prog_gnu_ld
11073 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11074 # archiving commands below assume that GNU ld is being used.
11075 if test "$with_gnu_ld" = yes; then
11076 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11077 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'
11079 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11080 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11082 # If archive_cmds runs LD, not CC, wlarc should be empty
11083 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11084 # investigate it a little bit more. (MM)
11087 # ancient GNU ld didn't support --whole-archive et. al.
11088 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11089 grep 'no-whole-archive' > /dev/null; then
11090 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11092 whole_archive_flag_spec_CXX=
11098 # A generic and very simple default shared library creation
11099 # command for GNU C++ for the case where it uses the native
11100 # linker, instead of GNU ld. If possible, this setting should
11101 # overridden to take advantage of the native linker features on
11102 # the platform it is being used on.
11103 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11106 # Commands to make compiler produce verbose output that lists
11107 # what "hidden" libraries, object files and flags are used when
11108 # linking a shared library.
11109 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11117 # PORTME: fill in a description of your system's C++ link characteristics
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11119 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11123 # FIXME: insert proper C++ library support
11127 if test "$host_cpu" = ia64; then
11128 # On IA64, the linker does run time linking by default, so we don't
11129 # have to do anything special.
11130 aix_use_runtimelinking=no
11131 exp_sym_flag='-Bexport'
11134 aix_use_runtimelinking=no
11136 # Test if we are trying to use run time linking or normal
11137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11138 # need to do runtime linking.
11139 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11140 for ld_flag in $LDFLAGS; do
11143 aix_use_runtimelinking=yes
11151 exp_sym_flag='-bexport'
11152 no_entry_flag='-bnoentry'
11155 # When large executables or shared objects are built, AIX ld can
11156 # have problems creating the table of contents. If linking a library
11157 # or program results in "error TOC overflow" add -mminimal-toc to
11158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11161 archive_cmds_CXX=''
11162 hardcode_direct_CXX=yes
11163 hardcode_libdir_separator_CXX=':'
11164 link_all_deplibs_CXX=yes
11166 if test "$GXX" = yes; then
11167 case $host_os in aix4.[012]|aix4.[012].*)
11168 # We only want to do this on AIX 4.2 and lower, the check
11169 # below for broken collect2 doesn't work under 4.3+
11170 collect2name=`${CC} -print-prog-name=collect2`
11171 if test -f "$collect2name" && \
11172 strings "$collect2name" | grep resolve_lib_name >/dev/null
11174 # We have reworked collect2
11177 # We have old collect2
11178 hardcode_direct_CXX=unsupported
11179 # It fails to find uninstalled libraries when the uninstalled
11180 # path is not listed in the libpath. Setting hardcode_minus_L
11181 # to unsupported forces relinking
11182 hardcode_minus_L_CXX=yes
11183 hardcode_libdir_flag_spec_CXX='-L$libdir'
11184 hardcode_libdir_separator_CXX=
11188 shared_flag='-shared'
11189 if test "$aix_use_runtimelinking" = yes; then
11190 shared_flag="$shared_flag "'${wl}-G'
11194 if test "$host_cpu" = ia64; then
11195 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11196 # chokes on -Wl,-G. The following line is correct:
11199 if test "$aix_use_runtimelinking" = yes; then
11200 shared_flag='${wl}-G'
11202 shared_flag='${wl}-bM:SRE'
11207 # It seems that -bexpall does not export symbols beginning with
11208 # underscore (_), so it is better to generate a list of symbols to export.
11209 always_export_symbols_CXX=yes
11210 if test "$aix_use_runtimelinking" = yes; then
11211 # Warning - without using the other runtime loading flags (-brtl),
11212 # -berok will link without error, but may produce a broken library.
11213 allow_undefined_flag_CXX='-berok'
11214 # Determine the default libpath from the value encoded in an empty executable.
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11226 if ac_fn_cxx_try_link "$LINENO"; then :
11228 lt_aix_libpath_sed='
11229 /Import File Strings/,/^$/ {
11235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11236 # Check for a 64-bit object if we didn't find anything.
11237 if test -z "$aix_libpath"; then
11238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11241 rm -f core conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11245 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11247 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"
11249 if test "$host_cpu" = ia64; then
11250 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11251 allow_undefined_flag_CXX="-z nodefs"
11252 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"
11254 # Determine the default libpath from the value encoded in an empty executable.
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11266 if ac_fn_cxx_try_link "$LINENO"; then :
11268 lt_aix_libpath_sed='
11269 /Import File Strings/,/^$/ {
11275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11276 # Check for a 64-bit object if we didn't find anything.
11277 if test -z "$aix_libpath"; then
11278 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11281 rm -f core conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext conftest.$ac_ext
11283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11285 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11286 # Warning - without using the other run time loading flags,
11287 # -berok will link without error, but may produce a broken library.
11288 no_undefined_flag_CXX=' ${wl}-bernotok'
11289 allow_undefined_flag_CXX=' ${wl}-berok'
11290 # Exported symbols can be pulled into shared objects from archives
11291 whole_archive_flag_spec_CXX='$convenience'
11292 archive_cmds_need_lc_CXX=yes
11293 # This is similar to how AIX traditionally builds its shared libraries.
11294 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'
11300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11301 allow_undefined_flag_CXX=unsupported
11302 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11303 # support --undefined. This deserves some investigation. FIXME
11304 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11311 case $cc_basename in
11313 # FIXME: insert proper C++ library support
11319 cygwin* | mingw* | pw32*)
11320 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11321 # as there is no search path for DLLs.
11322 hardcode_libdir_flag_spec_CXX='-L$libdir'
11323 allow_undefined_flag_CXX=unsupported
11324 always_export_symbols_CXX=no
11325 enable_shared_with_static_runtimes_CXX=yes
11327 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11328 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'
11329 # If the export-symbols file already is a .def file (1st line
11330 # is EXPORTS), use it as is; otherwise, prepend...
11331 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11332 cp $export_symbols $output_objdir/$soname.def;
11334 echo EXPORTS > $output_objdir/$soname.def;
11335 cat $export_symbols >> $output_objdir/$soname.def;
11337 $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'
11342 darwin* | rhapsody*)
11343 archive_cmds_need_lc_CXX=no
11344 hardcode_direct_CXX=no
11345 hardcode_automatic_CXX=yes
11346 hardcode_shlibpath_var_CXX=unsupported
11347 whole_archive_flag_spec_CXX=''
11348 link_all_deplibs_CXX=yes
11349 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11350 if test "$GXX" = yes ; then
11351 output_verbose_link_cmd='echo'
11352 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}"
11353 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11354 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}"
11355 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}"
11356 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11357 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}"
11358 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}"
11361 case $cc_basename in
11363 output_verbose_link_cmd='echo'
11364 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'
11365 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11367 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}'
11368 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}'
11378 case $cc_basename in
11380 # FIXME: insert proper C++ library support
11384 # Green Hills C++ Compiler
11385 # FIXME: insert proper C++ library support
11389 # FIXME: insert proper C++ library support
11395 # C++ shared libraries reported to be fairly broken before switch to ELF
11399 archive_cmds_need_lc_CXX=no
11401 freebsd* | dragonfly*)
11402 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11409 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11410 hardcode_libdir_separator_CXX=:
11411 export_dynamic_flag_spec_CXX='${wl}-E'
11412 hardcode_direct_CXX=yes
11413 hardcode_minus_L_CXX=yes # Not in the search PATH,
11414 # but as the default
11415 # location of the library.
11417 case $cc_basename in
11419 # FIXME: insert proper C++ library support
11423 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'
11424 # Commands to make compiler produce verbose output that lists
11425 # what "hidden" libraries, object files and flags are used when
11426 # linking a shared library.
11428 # There doesn't appear to be a way to prevent this compiler from
11429 # explicitly linking system object files so we need to strip them
11430 # from the output so that they don't get included in the library
11432 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'
11435 if test "$GXX" = yes; then
11436 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'
11438 # FIXME: insert proper C++ library support
11445 if test $with_gnu_ld = no; then
11446 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11447 hardcode_libdir_separator_CXX=:
11452 export_dynamic_flag_spec_CXX='${wl}-E'
11458 hardcode_direct_CXX=no
11459 hardcode_shlibpath_var_CXX=no
11462 hardcode_direct_CXX=yes
11463 hardcode_minus_L_CXX=yes # Not in the search PATH,
11464 # but as the default
11465 # location of the library.
11469 case $cc_basename in
11471 # FIXME: insert proper C++ library support
11477 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11480 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11483 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11486 # Commands to make compiler produce verbose output that lists
11487 # what "hidden" libraries, object files and flags are used when
11488 # linking a shared library.
11490 # There doesn't appear to be a way to prevent this compiler from
11491 # explicitly linking system object files so we need to strip them
11492 # from the output so that they don't get included in the library
11494 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'
11497 if test "$GXX" = yes; then
11498 if test $with_gnu_ld = no; then
11501 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11504 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11507 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'
11512 # FIXME: insert proper C++ library support
11519 hardcode_direct_CXX=no
11520 hardcode_shlibpath_var_CXX=no
11521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11522 export_dynamic_flag_spec_CXX='${wl}-E'
11523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11524 # Instead, shared libraries are loaded at an image base (0x10000000 by
11525 # default) and relocated if they conflict, which is a slow very memory
11526 # consuming and fragmenting process. To avoid this, we pick a random,
11527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11528 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11529 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'
11530 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'
11533 case $cc_basename in
11536 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'
11538 # Archives containing C++ object files must be created using
11539 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11540 # necessary to make sure instantiated templates are included
11542 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11545 if test "$GXX" = yes; then
11546 if test "$with_gnu_ld" = no; then
11547 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'
11549 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'
11552 link_all_deplibs_CXX=yes
11555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11556 hardcode_libdir_separator_CXX=:
11558 linux* | k*bsd*-gnu)
11559 case $cc_basename in
11561 # Kuck and Associates, Inc. (KAI) C++ Compiler
11563 # KCC will only create a shared library if the output file
11564 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11565 # to its proper name (with version) after linking.
11566 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'
11567 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'
11568 # Commands to make compiler produce verbose output that lists
11569 # what "hidden" libraries, object files and flags are used when
11570 # linking a shared library.
11572 # There doesn't appear to be a way to prevent this compiler from
11573 # explicitly linking system object files so we need to strip them
11574 # from the output so that they don't get included in the library
11576 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'
11578 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11581 # Archives containing C++ object files must be created using
11582 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11583 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11588 # version 8.0 and above of icpc choke on multiply defined symbols
11589 # if we add $predep_objects and $postdep_objects, however 7.1 and
11590 # earlier do not add the objects themselves.
11591 case `$CC -V 2>&1` in
11593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11594 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'
11596 *) # Version 8.0 or newer
11599 ia64*) tmp_idyn=' -i_dynamic';;
11601 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11602 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'
11605 archive_cmds_need_lc_CXX=no
11606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11607 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11608 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11611 # Portland Group C++ compiler
11612 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11613 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'
11615 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11616 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11617 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'
11621 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11622 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'
11624 runpath_var=LD_RUN_PATH
11625 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11626 hardcode_libdir_separator_CXX=:
11628 # Commands to make compiler produce verbose output that lists
11629 # what "hidden" libraries, object files and flags are used when
11630 # linking a shared library.
11632 # There doesn't appear to be a way to prevent this compiler from
11633 # explicitly linking system object files so we need to strip them
11634 # from the output so that they don't get included in the library
11636 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'
11639 case `$CC -V 2>&1 | sed 5q` in
11642 no_undefined_flag_CXX=' -zdefs'
11643 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11644 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'
11645 hardcode_libdir_flag_spec_CXX='-R$libdir'
11646 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'
11648 # Not sure whether something based on
11649 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11651 output_verbose_link_cmd='echo'
11653 # Archives containing C++ object files must be created using
11654 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11655 # necessary to make sure instantiated templates are included
11657 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11664 # FIXME: insert proper C++ library support
11668 # FIXME: insert proper C++ library support
11672 case $cc_basename in
11674 # FIXME: insert proper C++ library support
11678 # FIXME: insert proper C++ library support
11683 netbsd* | netbsdelf*-gnu)
11684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11685 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11687 hardcode_libdir_flag_spec_CXX='-R$libdir'
11688 hardcode_direct_CXX=yes
11689 hardcode_shlibpath_var_CXX=no
11691 # Workaround some broken pre-1.5 toolchains
11692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11695 # C++ shared libraries are fairly broken
11699 if test -f /usr/libexec/ld.so; then
11700 hardcode_direct_CXX=yes
11701 hardcode_shlibpath_var_CXX=no
11702 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11705 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11706 export_dynamic_flag_spec_CXX='${wl}-E'
11707 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11709 output_verbose_link_cmd='echo'
11715 case $cc_basename in
11717 # Kuck and Associates, Inc. (KAI) C++ Compiler
11719 # KCC will only create a shared library if the output file
11720 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11721 # to its proper name (with version) after linking.
11722 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'
11724 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11725 hardcode_libdir_separator_CXX=:
11727 # Archives containing C++ object files must be created using
11728 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11729 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11733 # Rational C++ 2.4.1
11734 # FIXME: insert proper C++ library support
11738 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11739 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'
11741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11742 hardcode_libdir_separator_CXX=:
11744 # Commands to make compiler produce verbose output that lists
11745 # what "hidden" libraries, object files and flags are used when
11746 # linking a shared library.
11748 # There doesn't appear to be a way to prevent this compiler from
11749 # explicitly linking system object files so we need to strip them
11750 # from the output so that they don't get included in the library
11752 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'
11755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11756 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11757 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'
11759 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11760 hardcode_libdir_separator_CXX=:
11762 # Commands to make compiler produce verbose output that lists
11763 # what "hidden" libraries, object files and flags are used when
11764 # linking a shared library.
11765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11768 # FIXME: insert proper C++ library support
11775 case $cc_basename in
11777 # Kuck and Associates, Inc. (KAI) C++ Compiler
11779 # KCC will only create a shared library if the output file
11780 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11781 # to its proper name (with version) after linking.
11782 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'
11784 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11785 hardcode_libdir_separator_CXX=:
11787 # Archives containing C++ object files must be created using
11788 # the KAI C++ compiler.
11789 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11792 # Rational C++ 2.4.1
11793 # FIXME: insert proper C++ library support
11797 allow_undefined_flag_CXX=' -expect_unresolved \*'
11798 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'
11799 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11800 echo "-hidden">> $lib.exp~
11801 $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~
11804 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11805 hardcode_libdir_separator_CXX=:
11807 # Commands to make compiler produce verbose output that lists
11808 # what "hidden" libraries, object files and flags are used when
11809 # linking a shared library.
11811 # There doesn't appear to be a way to prevent this compiler from
11812 # explicitly linking system object files so we need to strip them
11813 # from the output so that they don't get included in the library
11815 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'
11818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11820 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'
11822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11823 hardcode_libdir_separator_CXX=:
11825 # Commands to make compiler produce verbose output that lists
11826 # what "hidden" libraries, object files and flags are used when
11827 # linking a shared library.
11828 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11831 # FIXME: insert proper C++ library support
11838 # FIXME: insert proper C++ library support
11842 case $cc_basename in
11845 # FIXME: insert proper C++ library support
11850 # FIXME: insert proper C++ library support
11854 # FIXME: insert proper C++ library support
11860 case $cc_basename in
11862 # Sun C++ 4.2, 5.x and Centerline C++
11863 archive_cmds_need_lc_CXX=yes
11864 no_undefined_flag_CXX=' -zdefs'
11865 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11866 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11867 $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'
11869 hardcode_libdir_flag_spec_CXX='-R$libdir'
11870 hardcode_shlibpath_var_CXX=no
11872 solaris2.[0-5] | solaris2.[0-5].*) ;;
11874 # The compiler driver will combine and reorder linker options,
11875 # but understands `-z linker_flag'.
11876 # Supported since Solaris 2.6 (maybe 2.5.1?)
11877 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11880 link_all_deplibs_CXX=yes
11882 output_verbose_link_cmd='echo'
11884 # Archives containing C++ object files must be created using
11885 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11886 # necessary to make sure instantiated templates are included
11888 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11891 # Green Hills C++ Compiler
11892 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11894 # The C++ compiler must be used to create the archive.
11895 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11898 # GNU C++ compiler with Solaris linker
11899 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11901 if $CC --version | grep -v '^2\.7' > /dev/null; then
11902 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11903 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11904 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11906 # Commands to make compiler produce verbose output that lists
11907 # what "hidden" libraries, object files and flags are used when
11908 # linking a shared library.
11909 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11911 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11913 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11914 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11915 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11917 # Commands to make compiler produce verbose output that lists
11918 # what "hidden" libraries, object files and flags are used when
11919 # linking a shared library.
11920 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11923 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11925 solaris2.[0-5] | solaris2.[0-5].*) ;;
11927 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11934 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11935 no_undefined_flag_CXX='${wl}-z,text'
11936 archive_cmds_need_lc_CXX=no
11937 hardcode_shlibpath_var_CXX=no
11938 runpath_var='LD_RUN_PATH'
11940 case $cc_basename in
11942 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11943 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11946 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11947 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11951 sysv5* | sco3.2v5* | sco5v6*)
11952 # Note: We can NOT use -z defs as we might desire, because we do not
11953 # link with -lc, and that would cause any symbols used from libc to
11954 # always be unresolved, which means just about no library would
11955 # ever link correctly. If we're not using GNU ld we use -z text
11956 # though, which does catch some bad symbols but isn't as heavy-handed
11958 # For security reasons, it is highly recommended that you always
11959 # use absolute paths for naming shared libraries, and exclude the
11960 # DT_RUNPATH tag from executables and libraries. But doing so
11961 # requires that you compile everything twice, which is a pain.
11962 # So that behaviour is only enabled if SCOABSPATH is set to a
11963 # non-empty value in the environment. Most likely only useful for
11964 # creating official distributions of packages.
11965 # This is a hack until libtool officially supports absolute path
11966 # names for shared libraries.
11967 no_undefined_flag_CXX='${wl}-z,text'
11968 allow_undefined_flag_CXX='${wl}-z,nodefs'
11969 archive_cmds_need_lc_CXX=no
11970 hardcode_shlibpath_var_CXX=no
11971 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11972 hardcode_libdir_separator_CXX=':'
11973 link_all_deplibs_CXX=yes
11974 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11975 runpath_var='LD_RUN_PATH'
11977 case $cc_basename in
11979 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11980 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11983 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11984 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11989 case $cc_basename in
11991 # NonStop-UX NCC 3.20
11992 # FIXME: insert proper C++ library support
11996 # FIXME: insert proper C++ library support
12002 # FIXME: insert proper C++ library support
12006 # FIXME: insert proper C++ library support
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12011 $as_echo "$ld_shlibs_CXX" >&6; }
12012 test "$ld_shlibs_CXX" = no && can_build_shared=no
12017 cat > conftest.$ac_ext <<EOF
12021 Foo (void) { a = 0; }
12027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12028 (eval $ac_compile) 2>&5
12030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12031 test $ac_status = 0; }; then
12032 # Parse the compiler output and extract the necessary
12033 # objects, libraries and library flags.
12035 # Sentinel used to keep track of whether or not we are before
12036 # the conftest object file.
12037 pre_test_object_deps_done=no
12039 # The `*' in the case matches for architectures that use `case' in
12040 # $output_verbose_cmd can trigger glob expansion during the loop
12041 # eval without this substitution.
12042 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12044 for p in `eval $output_verbose_link_cmd`; do
12048 # Some compilers place space between "-{L,R}" and the path.
12049 # Remove the space.
12050 if test $p = "-L" \
12051 || test $p = "-R"; then
12058 if test "$pre_test_object_deps_done" = no; then
12061 # Internal compiler library paths should come after those
12062 # provided the user. The postdeps already come after the
12063 # user supplied libs so there is no need to process them.
12064 if test -z "$compiler_lib_search_path_CXX"; then
12065 compiler_lib_search_path_CXX="${prev}${p}"
12067 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12070 # The "-l" case would never come before the object being
12071 # linked, so don't bother handling this case.
12074 if test -z "$postdeps_CXX"; then
12075 postdeps_CXX="${prev}${p}"
12077 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12083 # This assumes that the test object file only shows up
12084 # once in the compiler output.
12085 if test "$p" = "conftest.$objext"; then
12086 pre_test_object_deps_done=yes
12090 if test "$pre_test_object_deps_done" = no; then
12091 if test -z "$predep_objects_CXX"; then
12092 predep_objects_CXX="$p"
12094 predep_objects_CXX="$predep_objects_CXX $p"
12097 if test -z "$postdep_objects_CXX"; then
12098 postdep_objects_CXX="$p"
12100 postdep_objects_CXX="$postdep_objects_CXX $p"
12105 *) ;; # Ignore the rest.
12113 echo "libtool.m4: error: problem compiling CXX test program"
12116 $rm -f confest.$objext
12118 compiler_lib_search_dirs_CXX=
12119 if test -n "$compiler_lib_search_path_CXX"; then
12120 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12123 # PORTME: override above test on systems where it is broken
12126 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12127 # hack all around it, let's just trust "g++" to DTRT.
12128 predep_objects_CXX=
12129 postdep_objects_CXX=
12134 case `$CC -V 2>&1 | sed 5q` in
12138 # The more standards-conforming stlport4 library is
12139 # incompatible with the Cstd library. Avoid specifying
12140 # it if it's in CXXFLAGS. Ignore libCrun as
12141 # -library=stlport4 depends on it.
12142 case " $CXX $CXXFLAGS " in
12143 *" -library=stlport4 "*)
12144 solaris_use_stlport4=yes
12147 if test "$solaris_use_stlport4" != yes; then
12148 postdeps_CXX='-library=Cstd -library=Crun'
12155 case $cc_basename in
12157 # The more standards-conforming stlport4 library is
12158 # incompatible with the Cstd library. Avoid specifying
12159 # it if it's in CXXFLAGS. Ignore libCrun as
12160 # -library=stlport4 depends on it.
12161 case " $CXX $CXXFLAGS " in
12162 *" -library=stlport4 "*)
12163 solaris_use_stlport4=yes
12167 # Adding this requires a known-good setup of shared libraries for
12168 # Sun compiler versions before 5.6, else PIC objects from an old
12169 # archive will be linked into the output, leading to subtle bugs.
12170 if test "$solaris_use_stlport4" != yes; then
12171 postdeps_CXX='-library=Cstd -library=Crun'
12178 case " $postdeps_CXX " in
12179 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12182 lt_prog_compiler_wl_CXX=
12183 lt_prog_compiler_pic_CXX=
12184 lt_prog_compiler_static_CXX=
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12187 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12189 # C++ specific cases for pic, static, wl, etc.
12190 if test "$GXX" = yes; then
12191 lt_prog_compiler_wl_CXX='-Wl,'
12192 lt_prog_compiler_static_CXX='-static'
12196 # All AIX code is PIC.
12197 if test "$host_cpu" = ia64; then
12198 # AIX 5 now supports IA64 processor
12199 lt_prog_compiler_static_CXX='-Bstatic'
12203 # FIXME: we need at least 68020 code to build shared libraries, but
12204 # adding the `-m68020' flag to GCC prevents building anything better,
12206 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12208 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12209 # PIC is the default for these OSes.
12211 mingw* | cygwin* | os2* | pw32*)
12212 # This hack is so that the source file can tell whether it is being
12213 # built for inclusion in a dll (and should export symbols for example).
12214 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12215 # (--disable-auto-import) libraries
12216 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12218 darwin* | rhapsody*)
12219 # PIC is the default on this platform
12220 # Common symbols not allowed in MH_DYLIB files
12221 lt_prog_compiler_pic_CXX='-fno-common'
12224 # DJGPP does not support shared libraries at all
12225 lt_prog_compiler_pic_CXX=
12228 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12229 # Instead, we relocate shared libraries at runtime.
12232 if test -d /usr/nec; then
12233 lt_prog_compiler_pic_CXX=-Kconform_pic
12237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12238 # not for PA HP-UX.
12243 lt_prog_compiler_pic_CXX='-fPIC'
12248 lt_prog_compiler_pic_CXX='-fPIC'
12254 # All AIX code is PIC.
12255 if test "$host_cpu" = ia64; then
12256 # AIX 5 now supports IA64 processor
12257 lt_prog_compiler_static_CXX='-Bstatic'
12259 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12263 case $cc_basename in
12265 # Green Hills C++ Compiler
12266 # _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"
12271 # PIC is the default on this platform
12272 # Common symbols not allowed in MH_DYLIB files
12273 case $cc_basename in
12275 lt_prog_compiler_pic_CXX='-qnocommon'
12276 lt_prog_compiler_wl_CXX='-Wl,'
12281 case $cc_basename in
12283 lt_prog_compiler_pic_CXX='-KPIC'
12286 # Green Hills C++ Compiler
12287 lt_prog_compiler_pic_CXX='-pic'
12293 freebsd* | dragonfly*)
12294 # FreeBSD uses GNU C++
12296 hpux9* | hpux10* | hpux11*)
12297 case $cc_basename in
12299 lt_prog_compiler_wl_CXX='-Wl,'
12300 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12301 if test "$host_cpu" != ia64; then
12302 lt_prog_compiler_pic_CXX='+Z'
12306 lt_prog_compiler_wl_CXX='-Wl,'
12307 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12313 lt_prog_compiler_pic_CXX='+Z'
12322 # This is c89, which is MS Visual C++ (no shared libs)
12323 # Anyone wants to do a port?
12325 irix5* | irix6* | nonstopux*)
12326 case $cc_basename in
12328 lt_prog_compiler_wl_CXX='-Wl,'
12329 lt_prog_compiler_static_CXX='-non_shared'
12330 # CC pic flag -KPIC is the default.
12336 linux* | k*bsd*-gnu)
12337 case $cc_basename in
12340 lt_prog_compiler_wl_CXX='--backend -Wl,'
12341 lt_prog_compiler_pic_CXX='-fPIC'
12345 lt_prog_compiler_wl_CXX='-Wl,'
12346 lt_prog_compiler_pic_CXX='-KPIC'
12347 lt_prog_compiler_static_CXX='-static'
12350 # Portland Group C++ compiler.
12351 lt_prog_compiler_wl_CXX='-Wl,'
12352 lt_prog_compiler_pic_CXX='-fpic'
12353 lt_prog_compiler_static_CXX='-Bstatic'
12357 # Make sure the PIC flag is empty. It appears that all Alpha
12358 # Linux and Compaq Tru64 Unix objects are PIC.
12359 lt_prog_compiler_pic_CXX=
12360 lt_prog_compiler_static_CXX='-non_shared'
12363 case `$CC -V 2>&1 | sed 5q` in
12366 lt_prog_compiler_pic_CXX='-KPIC'
12367 lt_prog_compiler_static_CXX='-Bstatic'
12368 lt_prog_compiler_wl_CXX='-Qoption ld '
12379 case $cc_basename in
12381 lt_prog_compiler_pic_CXX='-W c,exportall'
12387 netbsd* | netbsdelf*-gnu)
12389 osf3* | osf4* | osf5*)
12390 case $cc_basename in
12392 lt_prog_compiler_wl_CXX='--backend -Wl,'
12395 # Rational C++ 2.4.1
12396 lt_prog_compiler_pic_CXX='-pic'
12399 # Digital/Compaq C++
12400 lt_prog_compiler_wl_CXX='-Wl,'
12401 # Make sure the PIC flag is empty. It appears that all Alpha
12402 # Linux and Compaq Tru64 Unix objects are PIC.
12403 lt_prog_compiler_pic_CXX=
12404 lt_prog_compiler_static_CXX='-non_shared'
12413 case $cc_basename in
12415 # Sun C++ 4.2, 5.x and Centerline C++
12416 lt_prog_compiler_pic_CXX='-KPIC'
12417 lt_prog_compiler_static_CXX='-Bstatic'
12418 lt_prog_compiler_wl_CXX='-Qoption ld '
12421 # Green Hills C++ Compiler
12422 lt_prog_compiler_pic_CXX='-PIC'
12429 case $cc_basename in
12432 lt_prog_compiler_pic_CXX='-pic'
12433 lt_prog_compiler_static_CXX='-Bstatic'
12437 lt_prog_compiler_pic_CXX='-pic'
12444 case $cc_basename in
12446 # NonStop-UX NCC 3.20
12447 lt_prog_compiler_pic_CXX='-KPIC'
12453 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12454 case $cc_basename in
12456 lt_prog_compiler_wl_CXX='-Wl,'
12457 lt_prog_compiler_pic_CXX='-KPIC'
12458 lt_prog_compiler_static_CXX='-Bstatic'
12465 lt_prog_compiler_can_build_shared_CXX=no
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12471 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12474 # Check to make sure the PIC flag actually works.
12476 if test -n "$lt_prog_compiler_pic_CXX"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12479 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12480 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12481 $as_echo_n "(cached) " >&6
12483 lt_cv_prog_compiler_pic_works_CXX=no
12484 ac_outfile=conftest.$ac_objext
12485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12486 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12487 # Insert the option either (1) after the last *FLAGS variable, or
12488 # (2) before a word containing "conftest.", or (3) at the end.
12489 # Note that $ac_compile itself does not contain backslashes and begins
12490 # with a dollar sign (not a hyphen), so the echo should work correctly.
12491 # The option is referenced via a variable to avoid confusing sed.
12492 lt_compile=`echo "$ac_compile" | $SED \
12493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12495 -e 's:$: $lt_compiler_flag:'`
12496 (eval echo "\"\$as_me:12496: $lt_compile\"" >&5)
12497 (eval "$lt_compile" 2>conftest.err)
12499 cat conftest.err >&5
12500 echo "$as_me:12500: \$? = $ac_status" >&5
12501 if (exit $ac_status) && test -s "$ac_outfile"; then
12502 # The compiler can only warn and ignore the option if not recognized
12503 # So say no if there are warnings other than the usual output.
12504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12507 lt_cv_prog_compiler_pic_works_CXX=yes
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12514 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12516 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12517 case $lt_prog_compiler_pic_CXX in
12519 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12522 lt_prog_compiler_pic_CXX=
12523 lt_prog_compiler_can_build_shared_CXX=no
12528 # For platforms which do not support PIC, -DPIC is meaningless:
12530 lt_prog_compiler_pic_CXX=
12533 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12538 # Check to make sure the static flag actually works.
12540 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12542 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12543 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12544 $as_echo_n "(cached) " >&6
12546 lt_cv_prog_compiler_static_works_CXX=no
12547 save_LDFLAGS="$LDFLAGS"
12548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12551 # The linker can only warn and ignore the option if not recognized
12552 # So say no if there are warnings
12553 if test -s conftest.err; then
12554 # Append any errors to the config.log.
12555 cat conftest.err 1>&5
12556 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12558 if diff conftest.exp conftest.er2 >/dev/null; then
12559 lt_cv_prog_compiler_static_works_CXX=yes
12562 lt_cv_prog_compiler_static_works_CXX=yes
12566 LDFLAGS="$save_LDFLAGS"
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12570 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12572 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12575 lt_prog_compiler_static_CXX=
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12580 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12581 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12582 $as_echo_n "(cached) " >&6
12584 lt_cv_prog_compiler_c_o_CXX=no
12585 $rm -r conftest 2>/dev/null
12589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12591 lt_compiler_flag="-o out/conftest2.$ac_objext"
12592 # Insert the option either (1) after the last *FLAGS variable, or
12593 # (2) before a word containing "conftest.", or (3) at the end.
12594 # Note that $ac_compile itself does not contain backslashes and begins
12595 # with a dollar sign (not a hyphen), so the echo should work correctly.
12596 lt_compile=`echo "$ac_compile" | $SED \
12597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12599 -e 's:$: $lt_compiler_flag:'`
12600 (eval echo "\"\$as_me:12600: $lt_compile\"" >&5)
12601 (eval "$lt_compile" 2>out/conftest.err)
12603 cat out/conftest.err >&5
12604 echo "$as_me:12604: \$? = $ac_status" >&5
12605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12607 # The compiler can only warn and ignore the option if not recognized
12608 # So say no if there are warnings
12609 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12612 lt_cv_prog_compiler_c_o_CXX=yes
12617 # SGI C++ compiler will create directory out/ii_files/ for
12618 # template instantiation
12619 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12620 $rm out/* && rmdir out
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12627 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12630 hard_links="nottested"
12631 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12632 # do not overwrite the value of need_locks provided by the user
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12634 $as_echo_n "checking if we can lock with hard links... " >&6; }
12637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12639 ln conftest.a conftest.b 2>&5 || hard_links=no
12640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12642 $as_echo "$hard_links" >&6; }
12643 if test "$hard_links" = no; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12645 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12653 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12655 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12658 # If we're using GNU nm, then we don't want the "-C" option.
12659 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12660 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12661 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'
12663 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'
12667 export_symbols_cmds_CXX="$ltdll_cmds"
12670 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'
12672 linux* | k*bsd*-gnu)
12673 link_all_deplibs_CXX=no
12676 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12679 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12682 $as_echo "$ld_shlibs_CXX" >&6; }
12683 test "$ld_shlibs_CXX" = no && can_build_shared=no
12686 # Do we need to explicitly link libc?
12688 case "x$archive_cmds_need_lc_CXX" in
12690 # Assume -lc should be added
12691 archive_cmds_need_lc_CXX=yes
12693 if test "$enable_shared" = yes && test "$GCC" = yes; then
12694 case $archive_cmds_CXX in
12696 # FIXME: we may have to deal with multi-command sequences.
12699 # Test whether the compiler implicitly links with -lc since on some
12700 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12701 # to ld, don't add -lc before -lgcc.
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12703 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12708 (eval $ac_compile) 2>&5
12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711 test $ac_status = 0; } 2>conftest.err; then
12714 libobjs=conftest.$ac_objext
12716 wl=$lt_prog_compiler_wl_CXX
12717 pic_flag=$lt_prog_compiler_pic_CXX
12723 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12724 allow_undefined_flag_CXX=
12725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12726 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12729 test $ac_status = 0; }
12731 archive_cmds_need_lc_CXX=no
12733 archive_cmds_need_lc_CXX=yes
12735 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12737 cat conftest.err 1>&5
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12741 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12750 library_names_spec=
12751 libname_spec='lib$name'
12755 postuninstall_cmds=
12759 shlibpath_overrides_runpath=unknown
12761 dynamic_linker="$host_os ld.so"
12762 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12764 need_lib_prefix=unknown
12765 hardcode_into_libs=no
12767 # when you set need_version to no, make sure it does not cause -set_version
12768 # flags to be left without arguments
12769 need_version=unknown
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12775 shlibpath_var=LIBPATH
12777 # AIX 3 has no versioning support, so we append a major version to the name.
12778 soname_spec='${libname}${release}${shared_ext}$major'
12785 hardcode_into_libs=yes
12786 if test "$host_cpu" = ia64; then
12787 # AIX 5 supports IA64
12788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12789 shlibpath_var=LD_LIBRARY_PATH
12791 # With GCC up to 2.95.x, collect2 would create an import file
12792 # for dependence libraries. The import file would start with
12793 # the line `#! .'. This would cause the generated library to
12794 # depend on `.', always an invalid library. This was fixed in
12795 # development snapshots of GCC prior to 3.0.
12797 aix4 | aix4.[01] | aix4.[01].*)
12798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12800 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12803 can_build_shared=no
12807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12808 # soname into executable. Probably we can add versioning support to
12809 # collect2, so additional links can be useful in future.
12810 if test "$aix_use_runtimelinking" = yes; then
12811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12812 # instead of lib<name>.a to let people know that these are not
12813 # typical AIX shared libraries.
12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12816 # We preserve .a as extension for shared libraries through AIX4.2
12817 # and later when we are not doing run time linking.
12818 library_names_spec='${libname}${release}.a $libname.a'
12819 soname_spec='${libname}${release}${shared_ext}$major'
12821 shlibpath_var=LIBPATH
12826 library_names_spec='$libname.ixlibrary $libname.a'
12827 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12828 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'
12832 library_names_spec='${libname}${shared_ext}'
12833 dynamic_linker="$host_os ld.so"
12834 shlibpath_var=LIBRARY_PATH
12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12841 soname_spec='${libname}${release}${shared_ext}$major'
12842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12843 shlibpath_var=LD_LIBRARY_PATH
12844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12846 # the default ld.so.conf also contains /usr/contrib/lib and
12847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12848 # libtool to hard-code these into programs
12851 cygwin* | mingw* | pw32*)
12852 version_type=windows
12857 case $GCC,$host_os in
12858 yes,cygwin* | yes,mingw* | yes,pw32*)
12859 library_names_spec='$libname.dll.a'
12860 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12861 postinstall_cmds='base_file=`basename \${file}`~
12862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12863 dldir=$destdir/`dirname \$dlpath`~
12864 test -d \$dldir || mkdir -p \$dldir~
12865 $install_prog $dir/$dlname \$dldir/$dlname~
12866 chmod a+x \$dldir/$dlname'
12867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12868 dlpath=$dir/\$dldll~
12870 shlibpath_overrides_runpath=yes
12874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12876 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12879 # MinGW DLLs use traditional 'lib' prefix
12880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12881 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12882 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12883 # It is most probably a Windows format PATH printed by
12884 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12885 # path with ; separators, and with drive letters. We can handle the
12886 # drive letters (cygwin fileutils understands them), so leave them,
12887 # especially as we might pass files found there to a mingw objdump,
12888 # which wouldn't understand a cygwinified path. Ahh.
12889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12895 # pw32 DLLs use 'pw' prefix rather than 'lib'
12896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12905 dynamic_linker='Win32 ld.exe'
12906 # FIXME: first we should search . and the directory the executable is in
12910 darwin* | rhapsody*)
12911 dynamic_linker="$host_os dyld"
12912 version_type=darwin
12915 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12916 soname_spec='${libname}${release}${major}$shared_ext'
12917 shlibpath_overrides_runpath=yes
12918 shlibpath_var=DYLD_LIBRARY_PATH
12919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12929 soname_spec='${libname}${release}${shared_ext}$major'
12930 shlibpath_var=LD_LIBRARY_PATH
12937 freebsd* | dragonfly*)
12938 # DragonFly does not have aout. When/if they implement a new
12939 # versioning mechanism, adjust this.
12940 if test -x /usr/bin/objformat; then
12941 objformat=`/usr/bin/objformat`
12944 freebsd[123]*) objformat=aout ;;
12945 *) objformat=elf ;;
12948 version_type=freebsd-$objformat
12949 case $version_type in
12951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12960 shlibpath_var=LD_LIBRARY_PATH
12963 shlibpath_overrides_runpath=yes
12965 freebsd3.[01]* | freebsdelf3.[01]*)
12966 shlibpath_overrides_runpath=yes
12967 hardcode_into_libs=yes
12969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12971 shlibpath_overrides_runpath=no
12972 hardcode_into_libs=yes
12974 *) # from 4.6 on, and DragonFly
12975 shlibpath_overrides_runpath=yes
12976 hardcode_into_libs=yes
12985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12986 soname_spec='${libname}${release}${shared_ext}$major'
12987 shlibpath_var=LD_LIBRARY_PATH
12988 hardcode_into_libs=yes
12991 hpux9* | hpux10* | hpux11*)
12992 # Give a soname corresponding to the major version so that dld.sl refuses to
12993 # link against other versions.
13000 hardcode_into_libs=yes
13001 dynamic_linker="$host_os dld.so"
13002 shlibpath_var=LD_LIBRARY_PATH
13003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 if test "X$HPUX_IA64_MODE" = X32; then
13007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13015 hardcode_into_libs=yes
13016 dynamic_linker="$host_os dld.sl"
13017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13020 soname_spec='${libname}${release}${shared_ext}$major'
13021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13026 dynamic_linker="$host_os dld.sl"
13027 shlibpath_var=SHLIB_PATH
13028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030 soname_spec='${libname}${release}${shared_ext}$major'
13033 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13034 postinstall_cmds='chmod 555 $lib'
13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13042 soname_spec='${libname}${release}${shared_ext}$major'
13043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=no
13046 hardcode_into_libs=yes
13049 irix5* | irix6* | nonstopux*)
13051 nonstopux*) version_type=nonstopux ;;
13053 if test "$lt_cv_prog_gnu_ld" = yes; then
13061 soname_spec='${libname}${release}${shared_ext}$major'
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13064 irix5* | nonstopux*)
13065 libsuff= shlibsuff=
13068 case $LD in # libtool.m4 will add one of these switches to LD
13069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13070 libsuff= shlibsuff= libmagic=32-bit;;
13071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13072 libsuff=32 shlibsuff=N32 libmagic=N32;;
13073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13075 *) libsuff= shlibsuff= libmagic=never-match;;
13079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13080 shlibpath_overrides_runpath=no
13081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13083 hardcode_into_libs=yes
13086 # No shared lib support for Linux oldld, aout, or coff.
13087 linux*oldld* | linux*aout* | linux*coff*)
13091 # This must be Linux ELF.
13092 linux* | k*bsd*-gnu)
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097 soname_spec='${libname}${release}${shared_ext}$major'
13098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13099 shlibpath_var=LD_LIBRARY_PATH
13100 shlibpath_overrides_runpath=no
13101 # This implies no fast_install, which is unacceptable.
13102 # Some rework will be needed to allow for fast_install
13103 # before this can be enabled.
13104 hardcode_into_libs=yes
13106 # Append ld.so.conf contents to the search path
13107 if test -f /etc/ld.so.conf; then
13108 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' ' '`
13109 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13112 # We used to test for /lib/ld.so.1 and disable shared libraries on
13113 # powerpc, because MkLinux only supported shared libraries with the
13114 # GNU dynamic linker. Since this was broken with cross compilers,
13115 # most powerpc-linux boxes support dynamic linking these days and
13116 # people can always --disable-shared, the test was removed, and we
13117 # assume the GNU/Linux dynamic linker is in use.
13118 dynamic_linker='GNU/Linux ld.so'
13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13126 soname_spec='${libname}${release}${shared_ext}$major'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 shlibpath_overrides_runpath=no
13129 hardcode_into_libs=yes
13130 dynamic_linker='NetBSD ld.elf_so'
13137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13140 dynamic_linker='NetBSD (a.out) ld.so'
13142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13143 soname_spec='${libname}${release}${shared_ext}$major'
13144 dynamic_linker='NetBSD ld.elf_so'
13146 shlibpath_var=LD_LIBRARY_PATH
13147 shlibpath_overrides_runpath=yes
13148 hardcode_into_libs=yes
13153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13154 shlibpath_var=LD_LIBRARY_PATH
13155 shlibpath_overrides_runpath=yes
13162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13163 soname_spec='${libname}${release}${shared_ext}$major'
13164 shlibpath_var=LD_LIBRARY_PATH
13165 shlibpath_overrides_runpath=yes
13170 sys_lib_dlsearch_path_spec="/usr/lib"
13172 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13174 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13175 *) need_version=no ;;
13177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13179 shlibpath_var=LD_LIBRARY_PATH
13180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13182 openbsd2.[89] | openbsd2.[89].*)
13183 shlibpath_overrides_runpath=no
13186 shlibpath_overrides_runpath=yes
13190 shlibpath_overrides_runpath=yes
13195 libname_spec='$name'
13198 library_names_spec='$libname${shared_ext} $libname.a'
13199 dynamic_linker='OS/2 ld.exe'
13200 shlibpath_var=LIBPATH
13203 osf3* | osf4* | osf5*)
13207 soname_spec='${libname}${release}${shared_ext}$major'
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13209 shlibpath_var=LD_LIBRARY_PATH
13210 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13211 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223 soname_spec='${libname}${release}${shared_ext}$major'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 shlibpath_overrides_runpath=yes
13226 hardcode_into_libs=yes
13227 # ldd complains unless libraries are executable
13228 postinstall_cmds='chmod +x $lib'
13233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13235 shlibpath_var=LD_LIBRARY_PATH
13236 shlibpath_overrides_runpath=yes
13237 if test "$with_gnu_ld" = yes; then
13245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13246 soname_spec='${libname}${release}${shared_ext}$major'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 case $host_vendor in
13250 shlibpath_overrides_runpath=no
13252 export_dynamic_flag_spec='${wl}-Blargedynsym'
13253 runpath_var=LD_RUN_PATH
13261 shlibpath_overrides_runpath=no
13262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13268 if test -d /usr/nec ;then
13270 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13271 soname_spec='$libname${shared_ext}.$major'
13272 shlibpath_var=LD_LIBRARY_PATH
13276 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13277 version_type=freebsd-elf
13280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13281 soname_spec='${libname}${release}${shared_ext}$major'
13282 shlibpath_var=LD_LIBRARY_PATH
13283 hardcode_into_libs=yes
13284 if test "$with_gnu_ld" = yes; then
13285 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13286 shlibpath_overrides_runpath=no
13288 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13289 shlibpath_overrides_runpath=yes
13292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13296 sys_lib_dlsearch_path_spec='/usr/lib'
13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13302 soname_spec='${libname}${release}${shared_ext}$major'
13303 shlibpath_var=LD_LIBRARY_PATH
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13311 $as_echo "$dynamic_linker" >&6; }
13312 test "$dynamic_linker" = no && can_build_shared=no
13314 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13315 $as_echo_n "(cached) " >&6
13317 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13320 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13321 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13322 $as_echo_n "(cached) " >&6
13324 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13327 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13329 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13330 if test "$GCC" = yes; then
13331 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13335 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13336 hardcode_action_CXX=
13337 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13338 test -n "$runpath_var_CXX" || \
13339 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13341 # We can hardcode non-existant directories.
13342 if test "$hardcode_direct_CXX" != no &&
13343 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13344 # have to relink, otherwise we might link with an installed library
13345 # when we should be linking with a yet-to-be-installed one
13346 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13347 test "$hardcode_minus_L_CXX" != no; then
13348 # Linking always hardcodes the temporary library directory.
13349 hardcode_action_CXX=relink
13351 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13352 hardcode_action_CXX=immediate
13355 # We cannot hardcode anything, or else we can only hardcode existing
13357 hardcode_action_CXX=unsupported
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13360 $as_echo "$hardcode_action_CXX" >&6; }
13362 if test "$hardcode_action_CXX" = relink; then
13363 # Fast installation is not supported
13364 enable_fast_install=no
13365 elif test "$shlibpath_overrides_runpath" = yes ||
13366 test "$enable_shared" = no; then
13367 # Fast installation is not necessary
13368 enable_fast_install=needless
13372 # The else clause should only fire when bootstrapping the
13373 # libtool distribution, otherwise you forgot to ship ltmain.sh
13374 # with your package, and you will get complaints that there are
13375 # no rules to generate ltmain.sh.
13376 if test -f "$ltmain"; then
13377 # See if we are running on zsh, and set the options which allow our commands through
13378 # without removal of \ escapes.
13379 if test -n "${ZSH_VERSION+set}" ; then
13380 setopt NO_GLOB_SUBST
13382 # Now quote all the things that may contain metacharacters while being
13383 # careful not to overquote the AC_SUBSTed values. We take copies of the
13384 # variables and quote the copies for generation of the libtool script.
13385 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13387 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13388 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13389 deplibs_check_method reload_flag reload_cmds need_locks \
13390 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13391 lt_cv_sys_global_symbol_to_c_name_address \
13392 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13393 old_postinstall_cmds old_postuninstall_cmds \
13397 lt_prog_compiler_wl_CXX \
13398 lt_prog_compiler_pic_CXX \
13399 lt_prog_compiler_static_CXX \
13400 lt_prog_compiler_no_builtin_flag_CXX \
13401 export_dynamic_flag_spec_CXX \
13402 thread_safe_flag_spec_CXX \
13403 whole_archive_flag_spec_CXX \
13404 enable_shared_with_static_runtimes_CXX \
13405 old_archive_cmds_CXX \
13406 old_archive_from_new_cmds_CXX \
13407 predep_objects_CXX \
13408 postdep_objects_CXX \
13411 compiler_lib_search_path_CXX \
13412 compiler_lib_search_dirs_CXX \
13414 archive_expsym_cmds_CXX \
13415 postinstall_cmds_CXX \
13416 postuninstall_cmds_CXX \
13417 old_archive_from_expsyms_cmds_CXX \
13418 allow_undefined_flag_CXX \
13419 no_undefined_flag_CXX \
13420 export_symbols_cmds_CXX \
13421 hardcode_libdir_flag_spec_CXX \
13422 hardcode_libdir_flag_spec_ld_CXX \
13423 hardcode_libdir_separator_CXX \
13424 hardcode_automatic_CXX \
13426 module_expsym_cmds_CXX \
13427 lt_cv_prog_compiler_c_o_CXX \
13428 fix_srcfile_path_CXX \
13429 exclude_expsyms_CXX \
13430 include_expsyms_CXX; do
13433 old_archive_cmds_CXX | \
13434 old_archive_from_new_cmds_CXX | \
13435 archive_cmds_CXX | \
13436 archive_expsym_cmds_CXX | \
13437 module_cmds_CXX | \
13438 module_expsym_cmds_CXX | \
13439 old_archive_from_expsyms_cmds_CXX | \
13440 export_symbols_cmds_CXX | \
13441 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13442 postinstall_cmds | postuninstall_cmds | \
13443 old_postinstall_cmds | old_postuninstall_cmds | \
13444 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13445 # Double-quote double-evaled strings.
13446 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13449 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13455 *'\$0 --fallback-echo"')
13456 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13462 cat <<__EOF__ >> "$cfgfile"
13463 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13465 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13467 # Shell to use when invoking shell scripts.
13470 # Whether or not to build shared libraries.
13471 build_libtool_libs=$enable_shared
13473 # Whether or not to build static libraries.
13474 build_old_libs=$enable_static
13476 # Whether or not to add -lc for building shared libraries.
13477 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13479 # Whether or not to disallow shared libs when runtime libs are static
13480 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13482 # Whether or not to optimize for fast installation.
13483 fast_install=$enable_fast_install
13486 host_alias=$host_alias
13490 # The build system.
13491 build_alias=$build_alias
13495 # An echo program that does not interpret backslashes.
13500 AR_FLAGS=$lt_AR_FLAGS
13505 # LTCC compiler flags.
13506 LTCFLAGS=$lt_LTCFLAGS
13508 # A language-specific compiler.
13509 CC=$lt_compiler_CXX
13511 # Is the compiler the GNU C compiler?
13517 # The linker used to build libraries.
13520 # Whether we need hard or soft links.
13523 # A BSD-compatible nm program.
13526 # A symbol stripping program
13529 # Used to examine libraries when file_magic_cmd begins "file"
13530 MAGIC_CMD=$MAGIC_CMD
13532 # Used on cygwin: DLL creation program.
13535 # Used on cygwin: object dumper.
13538 # Used on cygwin: assembler.
13541 # The name of the directory that contains temporary libtool files.
13544 # How to create reloadable object files.
13545 reload_flag=$lt_reload_flag
13546 reload_cmds=$lt_reload_cmds
13548 # How to pass a linker flag through the compiler.
13549 wl=$lt_lt_prog_compiler_wl_CXX
13551 # Object file suffix (normally "o").
13552 objext="$ac_objext"
13554 # Old archive suffix (normally "a").
13557 # Shared library suffix (normally ".so").
13558 shrext_cmds='$shrext_cmds'
13560 # Executable file suffix (normally "").
13563 # Additional compiler flags for building library objects.
13564 pic_flag=$lt_lt_prog_compiler_pic_CXX
13567 # What is the maximum length of a command?
13568 max_cmd_len=$lt_cv_sys_max_cmd_len
13570 # Does compiler simultaneously support -c and -o options?
13571 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13573 # Must we lock files when doing compilation?
13574 need_locks=$lt_need_locks
13576 # Do we need the lib prefix for modules?
13577 need_lib_prefix=$need_lib_prefix
13579 # Do we need a version for libraries?
13580 need_version=$need_version
13582 # Whether dlopen is supported.
13583 dlopen_support=$enable_dlopen
13585 # Whether dlopen of programs is supported.
13586 dlopen_self=$enable_dlopen_self
13588 # Whether dlopen of statically linked programs is supported.
13589 dlopen_self_static=$enable_dlopen_self_static
13591 # Compiler flag to prevent dynamic linking.
13592 link_static_flag=$lt_lt_prog_compiler_static_CXX
13594 # Compiler flag to turn off builtin functions.
13595 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13597 # Compiler flag to allow reflexive dlopens.
13598 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13600 # Compiler flag to generate shared objects directly from archives.
13601 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13603 # Compiler flag to generate thread-safe objects.
13604 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13606 # Library versioning type.
13607 version_type=$version_type
13609 # Format of library name prefix.
13610 libname_spec=$lt_libname_spec
13612 # List of archive names. First name is the real one, the rest are links.
13613 # The last name is the one that the linker finds with -lNAME.
13614 library_names_spec=$lt_library_names_spec
13616 # The coded name of the library, if different from the real name.
13617 soname_spec=$lt_soname_spec
13619 # Commands used to build and install an old-style archive.
13621 old_archive_cmds=$lt_old_archive_cmds_CXX
13622 old_postinstall_cmds=$lt_old_postinstall_cmds
13623 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13625 # Create an old-style archive from a shared archive.
13626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13628 # Create a temporary old-style archive to link instead of a shared archive.
13629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13631 # Commands used to build and install a shared archive.
13632 archive_cmds=$lt_archive_cmds_CXX
13633 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13634 postinstall_cmds=$lt_postinstall_cmds
13635 postuninstall_cmds=$lt_postuninstall_cmds
13637 # Commands used to build a loadable module (assumed same as above if empty)
13638 module_cmds=$lt_module_cmds_CXX
13639 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13641 # Commands to strip libraries.
13642 old_striplib=$lt_old_striplib
13643 striplib=$lt_striplib
13645 # Dependencies to place before the objects being linked to create a
13647 predep_objects=$lt_predep_objects_CXX
13649 # Dependencies to place after the objects being linked to create a
13651 postdep_objects=$lt_postdep_objects_CXX
13653 # Dependencies to place before the objects being linked to create a
13655 predeps=$lt_predeps_CXX
13657 # Dependencies to place after the objects being linked to create a
13659 postdeps=$lt_postdeps_CXX
13661 # The directories searched by this compiler when creating a shared
13663 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13665 # The library search path used internally by the compiler when linking
13666 # a shared library.
13667 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13669 # Method to check whether dependent libraries are shared objects.
13670 deplibs_check_method=$lt_deplibs_check_method
13672 # Command to use when deplibs_check_method == file_magic.
13673 file_magic_cmd=$lt_file_magic_cmd
13675 # Flag that allows shared libraries with undefined symbols to be built.
13676 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13678 # Flag that forces no undefined symbols.
13679 no_undefined_flag=$lt_no_undefined_flag_CXX
13681 # Commands used to finish a libtool library installation in a directory.
13682 finish_cmds=$lt_finish_cmds
13684 # Same as above, but a single script fragment to be evaled but not shown.
13685 finish_eval=$lt_finish_eval
13687 # Take the output of nm and produce a listing of raw symbols and C names.
13688 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13690 # Transform the output of nm in a proper C declaration
13691 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13693 # Transform the output of nm in a C name address pair
13694 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13696 # This is the shared library runtime path variable.
13697 runpath_var=$runpath_var
13699 # This is the shared library path variable.
13700 shlibpath_var=$shlibpath_var
13702 # Is shlibpath searched before the hard-coded library search path?
13703 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13705 # How to hardcode a shared library path into an executable.
13706 hardcode_action=$hardcode_action_CXX
13708 # Whether we should hardcode library paths into libraries.
13709 hardcode_into_libs=$hardcode_into_libs
13711 # Flag to hardcode \$libdir into a binary during linking.
13712 # This must work even if \$libdir does not exist.
13713 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13715 # If ld is used when linking, flag to hardcode \$libdir into
13716 # a binary during linking. This must work even if \$libdir does
13718 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13720 # Whether we need a single -rpath flag with a separated argument.
13721 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13723 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13724 # resulting binary.
13725 hardcode_direct=$hardcode_direct_CXX
13727 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13728 # resulting binary.
13729 hardcode_minus_L=$hardcode_minus_L_CXX
13731 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13732 # the resulting binary.
13733 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13735 # Set to yes if building a shared library automatically hardcodes DIR into the library
13736 # and all subsequent libraries and executables linked against it.
13737 hardcode_automatic=$hardcode_automatic_CXX
13739 # Variables whose values should be saved in libtool wrapper scripts and
13740 # restored at relink time.
13741 variables_saved_for_relink="$variables_saved_for_relink"
13743 # Whether libtool must link a program against all its dependency libraries.
13744 link_all_deplibs=$link_all_deplibs_CXX
13746 # Compile-time system search path for libraries
13747 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13749 # Run-time system search path for libraries
13750 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13752 # Fix the shell variable \$srcfile for the compiler.
13753 fix_srcfile_path=$lt_fix_srcfile_path
13755 # Set to yes if exported symbols are required.
13756 always_export_symbols=$always_export_symbols_CXX
13758 # The commands to list exported symbols.
13759 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13761 # The commands to extract the exported symbol list from a shared archive.
13762 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13764 # Symbols that should not be listed in the preloaded symbols.
13765 exclude_expsyms=$lt_exclude_expsyms_CXX
13767 # Symbols that must always be exported.
13768 include_expsyms=$lt_include_expsyms_CXX
13770 # ### END LIBTOOL TAG CONFIG: $tagname
13776 # If there is no Makefile yet, we rely on a make rule to execute
13777 # `config.status --recheck' to rerun these tests and create the
13778 # libtool script then.
13779 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13780 if test -f "$ltmain_in"; then
13781 test -f Makefile && make "$ltmain"
13787 ac_cpp='$CPP $CPPFLAGS'
13788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13796 with_gnu_ldcxx=$with_gnu_ld
13797 with_gnu_ld=$lt_save_with_gnu_ld
13798 lt_cv_path_LDCXX=$lt_cv_path_LD
13799 lt_cv_path_LD=$lt_save_path_LD
13800 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13801 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13809 if test -n "$F77" && test "X$F77" != "Xno"; then
13812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13817 archive_cmds_need_lc_F77=no
13818 allow_undefined_flag_F77=
13819 always_export_symbols_F77=no
13820 archive_expsym_cmds_F77=
13821 export_dynamic_flag_spec_F77=
13822 hardcode_direct_F77=no
13823 hardcode_libdir_flag_spec_F77=
13824 hardcode_libdir_flag_spec_ld_F77=
13825 hardcode_libdir_separator_F77=
13826 hardcode_minus_L_F77=no
13827 hardcode_automatic_F77=no
13829 module_expsym_cmds_F77=
13830 link_all_deplibs_F77=unknown
13831 old_archive_cmds_F77=$old_archive_cmds
13832 no_undefined_flag_F77=
13833 whole_archive_flag_spec_F77=
13834 enable_shared_with_static_runtimes_F77=no
13836 # Source file extension for f77 test sources.
13839 # Object file extension for compiled f77 test sources.
13843 # Code to be used in simple compile tests
13844 lt_simple_compile_test_code="\
13850 # Code to be used in simple link tests
13851 lt_simple_link_test_code="\
13856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13858 # If no C compiler was specified, use CC.
13861 # If no C compiler flags were specified, use CFLAGS.
13862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13864 # Allow CC to be a program name with arguments.
13868 # save warnings/boilerplate of simple test code
13869 ac_outfile=conftest.$ac_objext
13870 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13872 _lt_compiler_boilerplate=`cat conftest.err`
13875 ac_outfile=conftest.$ac_objext
13876 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13878 _lt_linker_boilerplate=`cat conftest.err`
13882 # Allow CC to be a program name with arguments.
13887 for cc_temp in $compiler""; do
13889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13895 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13899 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13901 $as_echo "$can_build_shared" >&6; }
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13904 $as_echo_n "checking whether to build shared libraries... " >&6; }
13905 test "$can_build_shared" = "no" && enable_shared=no
13907 # On AIX, shared libraries and static libraries use the same namespace, and
13908 # are all built from PIC.
13911 test "$enable_shared" = yes && enable_static=no
13912 if test -n "$RANLIB"; then
13913 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13914 postinstall_cmds='$RANLIB $lib'
13918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13919 test "$enable_shared" = yes && enable_static=no
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13924 $as_echo "$enable_shared" >&6; }
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13927 $as_echo_n "checking whether to build static libraries... " >&6; }
13928 # Make sure either enable_shared or enable_static is yes.
13929 test "$enable_shared" = yes || enable_static=yes
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13931 $as_echo "$enable_static" >&6; }
13936 lt_prog_compiler_wl_F77=
13937 lt_prog_compiler_pic_F77=
13938 lt_prog_compiler_static_F77=
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13941 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13943 if test "$GCC" = yes; then
13944 lt_prog_compiler_wl_F77='-Wl,'
13945 lt_prog_compiler_static_F77='-static'
13949 # All AIX code is PIC.
13950 if test "$host_cpu" = ia64; then
13951 # AIX 5 now supports IA64 processor
13952 lt_prog_compiler_static_F77='-Bstatic'
13957 # FIXME: we need at least 68020 code to build shared libraries, but
13958 # adding the `-m68020' flag to GCC prevents building anything better,
13960 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13964 # PIC is the default for these OSes.
13967 mingw* | cygwin* | pw32* | os2*)
13968 # This hack is so that the source file can tell whether it is being
13969 # built for inclusion in a dll (and should export symbols for example).
13970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13971 # (--disable-auto-import) libraries
13972 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13975 darwin* | rhapsody*)
13976 # PIC is the default on this platform
13977 # Common symbols not allowed in MH_DYLIB files
13978 lt_prog_compiler_pic_F77='-fno-common'
13982 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13983 # Instead, we relocate shared libraries at runtime.
13987 # Just because we use GCC doesn't mean we suddenly get shared libraries
13988 # on systems that don't support them.
13989 lt_prog_compiler_can_build_shared_F77=no
13994 if test -d /usr/nec; then
13995 lt_prog_compiler_pic_F77=-Kconform_pic
14000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14001 # not for PA HP-UX.
14007 lt_prog_compiler_pic_F77='-fPIC'
14013 lt_prog_compiler_pic_F77='-fPIC'
14017 # PORTME Check for flag to pass linker flags through the system compiler.
14020 lt_prog_compiler_wl_F77='-Wl,'
14021 if test "$host_cpu" = ia64; then
14022 # AIX 5 now supports IA64 processor
14023 lt_prog_compiler_static_F77='-Bstatic'
14025 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14029 # PIC is the default on this platform
14030 # Common symbols not allowed in MH_DYLIB files
14031 case $cc_basename in
14033 lt_prog_compiler_pic_F77='-qnocommon'
14034 lt_prog_compiler_wl_F77='-Wl,'
14039 mingw* | cygwin* | pw32* | os2*)
14040 # This hack is so that the source file can tell whether it is being
14041 # built for inclusion in a dll (and should export symbols for example).
14042 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14045 hpux9* | hpux10* | hpux11*)
14046 lt_prog_compiler_wl_F77='-Wl,'
14047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14048 # not for PA HP-UX.
14054 lt_prog_compiler_pic_F77='+Z'
14057 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14058 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14061 irix5* | irix6* | nonstopux*)
14062 lt_prog_compiler_wl_F77='-Wl,'
14063 # PIC (with -KPIC) is the default.
14064 lt_prog_compiler_static_F77='-non_shared'
14068 lt_prog_compiler_pic_F77='-KPIC'
14069 lt_prog_compiler_static_F77='-Bstatic'
14072 linux* | k*bsd*-gnu)
14073 case $cc_basename in
14075 lt_prog_compiler_wl_F77='-Wl,'
14076 lt_prog_compiler_pic_F77='-KPIC'
14077 lt_prog_compiler_static_F77='-static'
14079 pgcc* | pgf77* | pgf90* | pgf95*)
14080 # Portland Group compilers (*not* the Pentium gcc compiler,
14081 # which looks to be a dead project)
14082 lt_prog_compiler_wl_F77='-Wl,'
14083 lt_prog_compiler_pic_F77='-fpic'
14084 lt_prog_compiler_static_F77='-Bstatic'
14087 lt_prog_compiler_wl_F77='-Wl,'
14088 # All Alpha code is PIC.
14089 lt_prog_compiler_static_F77='-non_shared'
14092 case `$CC -V 2>&1 | sed 5q` in
14095 lt_prog_compiler_pic_F77='-KPIC'
14096 lt_prog_compiler_static_F77='-Bstatic'
14097 lt_prog_compiler_wl_F77='-Wl,'
14100 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14101 lt_prog_compiler_pic_F77='-KPIC'
14102 lt_prog_compiler_static_F77='-Bstatic'
14103 lt_prog_compiler_wl_F77=''
14110 osf3* | osf4* | osf5*)
14111 lt_prog_compiler_wl_F77='-Wl,'
14112 # All OSF/1 code is PIC.
14113 lt_prog_compiler_static_F77='-non_shared'
14117 lt_prog_compiler_static_F77='-non_shared'
14121 lt_prog_compiler_pic_F77='-KPIC'
14122 lt_prog_compiler_static_F77='-Bstatic'
14123 case $cc_basename in
14124 f77* | f90* | f95*)
14125 lt_prog_compiler_wl_F77='-Qoption ld ';;
14127 lt_prog_compiler_wl_F77='-Wl,';;
14132 lt_prog_compiler_wl_F77='-Qoption ld '
14133 lt_prog_compiler_pic_F77='-PIC'
14134 lt_prog_compiler_static_F77='-Bstatic'
14137 sysv4 | sysv4.2uw2* | sysv4.3*)
14138 lt_prog_compiler_wl_F77='-Wl,'
14139 lt_prog_compiler_pic_F77='-KPIC'
14140 lt_prog_compiler_static_F77='-Bstatic'
14144 if test -d /usr/nec ;then
14145 lt_prog_compiler_pic_F77='-Kconform_pic'
14146 lt_prog_compiler_static_F77='-Bstatic'
14150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14151 lt_prog_compiler_wl_F77='-Wl,'
14152 lt_prog_compiler_pic_F77='-KPIC'
14153 lt_prog_compiler_static_F77='-Bstatic'
14157 lt_prog_compiler_wl_F77='-Wl,'
14158 lt_prog_compiler_can_build_shared_F77=no
14162 lt_prog_compiler_pic_F77='-pic'
14163 lt_prog_compiler_static_F77='-Bstatic'
14167 lt_prog_compiler_can_build_shared_F77=no
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14173 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14176 # Check to make sure the PIC flag actually works.
14178 if test -n "$lt_prog_compiler_pic_F77"; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14181 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14182 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14183 $as_echo_n "(cached) " >&6
14185 lt_cv_prog_compiler_pic_works_F77=no
14186 ac_outfile=conftest.$ac_objext
14187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14188 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14189 # Insert the option either (1) after the last *FLAGS variable, or
14190 # (2) before a word containing "conftest.", or (3) at the end.
14191 # Note that $ac_compile itself does not contain backslashes and begins
14192 # with a dollar sign (not a hyphen), so the echo should work correctly.
14193 # The option is referenced via a variable to avoid confusing sed.
14194 lt_compile=`echo "$ac_compile" | $SED \
14195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14197 -e 's:$: $lt_compiler_flag:'`
14198 (eval echo "\"\$as_me:14198: $lt_compile\"" >&5)
14199 (eval "$lt_compile" 2>conftest.err)
14201 cat conftest.err >&5
14202 echo "$as_me:14202: \$? = $ac_status" >&5
14203 if (exit $ac_status) && test -s "$ac_outfile"; then
14204 # The compiler can only warn and ignore the option if not recognized
14205 # So say no if there are warnings other than the usual output.
14206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14209 lt_cv_prog_compiler_pic_works_F77=yes
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14216 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14218 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14219 case $lt_prog_compiler_pic_F77 in
14221 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14224 lt_prog_compiler_pic_F77=
14225 lt_prog_compiler_can_build_shared_F77=no
14230 # For platforms which do not support PIC, -DPIC is meaningless:
14232 lt_prog_compiler_pic_F77=
14235 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14240 # Check to make sure the static flag actually works.
14242 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14244 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14245 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14246 $as_echo_n "(cached) " >&6
14248 lt_cv_prog_compiler_static_works_F77=no
14249 save_LDFLAGS="$LDFLAGS"
14250 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14251 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14253 # The linker can only warn and ignore the option if not recognized
14254 # So say no if there are warnings
14255 if test -s conftest.err; then
14256 # Append any errors to the config.log.
14257 cat conftest.err 1>&5
14258 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14260 if diff conftest.exp conftest.er2 >/dev/null; then
14261 lt_cv_prog_compiler_static_works_F77=yes
14264 lt_cv_prog_compiler_static_works_F77=yes
14268 LDFLAGS="$save_LDFLAGS"
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14272 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14274 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14277 lt_prog_compiler_static_F77=
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14283 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14284 $as_echo_n "(cached) " >&6
14286 lt_cv_prog_compiler_c_o_F77=no
14287 $rm -r conftest 2>/dev/null
14291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14293 lt_compiler_flag="-o out/conftest2.$ac_objext"
14294 # Insert the option either (1) after the last *FLAGS variable, or
14295 # (2) before a word containing "conftest.", or (3) at the end.
14296 # Note that $ac_compile itself does not contain backslashes and begins
14297 # with a dollar sign (not a hyphen), so the echo should work correctly.
14298 lt_compile=`echo "$ac_compile" | $SED \
14299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14301 -e 's:$: $lt_compiler_flag:'`
14302 (eval echo "\"\$as_me:14302: $lt_compile\"" >&5)
14303 (eval "$lt_compile" 2>out/conftest.err)
14305 cat out/conftest.err >&5
14306 echo "$as_me:14306: \$? = $ac_status" >&5
14307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14309 # The compiler can only warn and ignore the option if not recognized
14310 # So say no if there are warnings
14311 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14314 lt_cv_prog_compiler_c_o_F77=yes
14319 # SGI C++ compiler will create directory out/ii_files/ for
14320 # template instantiation
14321 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14322 $rm out/* && rmdir out
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14329 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14332 hard_links="nottested"
14333 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14334 # do not overwrite the value of need_locks provided by the user
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14336 $as_echo_n "checking if we can lock with hard links... " >&6; }
14339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14341 ln conftest.a conftest.b 2>&5 || hard_links=no
14342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14344 $as_echo "$hard_links" >&6; }
14345 if test "$hard_links" = no; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14347 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14355 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14358 allow_undefined_flag_F77=
14359 enable_shared_with_static_runtimes_F77=no
14361 archive_expsym_cmds_F77=
14362 old_archive_From_new_cmds_F77=
14363 old_archive_from_expsyms_cmds_F77=
14364 export_dynamic_flag_spec_F77=
14365 whole_archive_flag_spec_F77=
14366 thread_safe_flag_spec_F77=
14367 hardcode_libdir_flag_spec_F77=
14368 hardcode_libdir_flag_spec_ld_F77=
14369 hardcode_libdir_separator_F77=
14370 hardcode_direct_F77=no
14371 hardcode_minus_L_F77=no
14372 hardcode_shlibpath_var_F77=unsupported
14373 link_all_deplibs_F77=unknown
14374 hardcode_automatic_F77=no
14376 module_expsym_cmds_F77=
14377 always_export_symbols_F77=no
14378 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14379 # include_expsyms should be a list of space-separated symbols to be *always*
14380 # included in the symbol list
14381 include_expsyms_F77=
14382 # exclude_expsyms can be an extended regexp of symbols to exclude
14383 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14384 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14385 # as well as any symbol that contains `d'.
14386 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14387 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14388 # platforms (ab)use it in PIC code, but their linkers get confused if
14389 # the symbol is explicitly referenced. Since portable code cannot
14390 # rely on this symbol name, it's probably fine to never include it in
14391 # preloaded symbol tables.
14392 # Exclude shared library initialization/finalization symbols.
14393 extract_expsyms_cmds=
14394 # Just being paranoid about ensuring that cc_basename is set.
14395 for cc_temp in $compiler""; do
14397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14406 cygwin* | mingw* | pw32*)
14407 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14408 # When not using gcc, we currently assume that we are using
14409 # Microsoft Visual C++.
14410 if test "$GCC" != yes; then
14415 # we just hope/assume this is gcc and not c89 (= MSVC++)
14424 if test "$with_gnu_ld" = yes; then
14425 # If archive_cmds runs LD, not CC, wlarc should be empty
14428 # Set some defaults for GNU ld with shared library support. These
14429 # are reset later if shared libraries are not supported. Putting them
14430 # here allows them to be overridden if necessary.
14431 runpath_var=LD_RUN_PATH
14432 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14433 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14434 # ancient GNU ld didn't support --whole-archive et. al.
14435 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14436 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14438 whole_archive_flag_spec_F77=
14440 supports_anon_versioning=no
14441 case `$LD -v 2>/dev/null` in
14442 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14443 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14444 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14445 *\ 2.11.*) ;; # other 2.11 versions
14446 *) supports_anon_versioning=yes ;;
14449 # See if GNU ld supports shared libraries.
14452 # On AIX/PPC, the GNU linker is very broken
14453 if test "$host_cpu" != ia64; then
14457 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14458 *** to be unable to reliably create shared libraries on AIX.
14459 *** Therefore, libtool is disabling shared libraries support. If you
14460 *** really care for shared libraries, you may want to modify your PATH
14461 *** so that a non-GNU linker is found, and then restart.
14468 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)'
14469 hardcode_libdir_flag_spec_F77='-L$libdir'
14470 hardcode_minus_L_F77=yes
14472 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14473 # that the semantics of dynamic libraries on AmigaOS, at least up
14474 # to version 4, is to share data among multiple programs linked
14475 # with the same dynamic library. Since this doesn't match the
14476 # behavior of shared libraries on other platforms, we can't use
14482 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14483 allow_undefined_flag_F77=unsupported
14484 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14485 # support --undefined. This deserves some investigation. FIXME
14486 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14492 cygwin* | mingw* | pw32*)
14493 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14494 # as there is no search path for DLLs.
14495 hardcode_libdir_flag_spec_F77='-L$libdir'
14496 allow_undefined_flag_F77=unsupported
14497 always_export_symbols_F77=no
14498 enable_shared_with_static_runtimes_F77=yes
14499 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14501 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14502 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14503 # If the export-symbols file already is a .def file (1st line
14504 # is EXPORTS), use it as is; otherwise, prepend...
14505 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14506 cp $export_symbols $output_objdir/$soname.def;
14508 echo EXPORTS > $output_objdir/$soname.def;
14509 cat $export_symbols >> $output_objdir/$soname.def;
14511 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14518 hardcode_direct_F77=no
14519 hardcode_shlibpath_var_F77=no
14520 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14521 export_dynamic_flag_spec_F77='${wl}-E'
14522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14523 # Instead, shared libraries are loaded at an image base (0x10000000 by
14524 # default) and relocated if they conflict, which is a slow very memory
14525 # consuming and fragmenting process. To avoid this, we pick a random,
14526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14528 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'
14529 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'
14532 gnu* | linux* | k*bsd*-gnu)
14533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14535 case $cc_basename,$host_cpu in
14536 pgcc*) # Portland Group C compiler
14537 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'
14538 tmp_addflag=' $pic_flag'
14540 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14541 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'
14542 tmp_addflag=' $pic_flag -Mnomain' ;;
14543 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14544 tmp_addflag=' -i_dynamic' ;;
14545 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14546 tmp_addflag=' -i_dynamic -nofor_main' ;;
14547 ifc* | ifort*) # Intel Fortran compiler
14548 tmp_addflag=' -nofor_main' ;;
14550 case `$CC -V 2>&1 | sed 5q` in
14551 *Sun\ C*) # Sun C 5.9
14552 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'
14553 tmp_sharedflag='-G' ;;
14554 *Sun\ F*) # Sun Fortran 8.3
14555 tmp_sharedflag='-G' ;;
14557 tmp_sharedflag='-shared' ;;
14559 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14561 if test $supports_anon_versioning = yes; then
14562 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14564 $echo "local: *; };" >> $output_objdir/$libname.ver~
14565 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14567 link_all_deplibs_F77=no
14573 netbsd* | netbsdelf*-gnu)
14574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14575 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14579 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14584 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14589 *** create shared libraries on Solaris systems. Therefore, libtool
14590 *** is disabling shared libraries support. We urge you to upgrade GNU
14591 *** binutils to release 2.9.1 or newer. Another option is to modify
14592 *** your PATH or compiler configuration so that the native linker is
14593 *** used, and then restart.
14596 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14597 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14598 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14605 case `$LD -v 2>&1` in
14606 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14610 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14611 *** reliably create shared libraries on SCO systems. Therefore, libtool
14612 *** is disabling shared libraries support. We urge you to upgrade GNU
14613 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14614 *** your PATH or compiler configuration so that the native linker is
14615 *** used, and then restart.
14620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14621 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14623 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14632 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14634 hardcode_direct_F77=yes
14635 hardcode_shlibpath_var_F77=no
14639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14640 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14641 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14648 if test "$ld_shlibs_F77" = no; then
14650 hardcode_libdir_flag_spec_F77=
14651 export_dynamic_flag_spec_F77=
14652 whole_archive_flag_spec_F77=
14655 # PORTME fill in a description of your system's linker (not GNU ld)
14658 allow_undefined_flag_F77=unsupported
14659 always_export_symbols_F77=yes
14660 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'
14661 # Note: this linker hardcodes the directories in LIBPATH if there
14662 # are no directories specified by -L.
14663 hardcode_minus_L_F77=yes
14664 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14665 # Neither direct hardcoding nor static linking is supported with a
14667 hardcode_direct_F77=unsupported
14672 if test "$host_cpu" = ia64; then
14673 # On IA64, the linker does run time linking by default, so we don't
14674 # have to do anything special.
14675 aix_use_runtimelinking=no
14676 exp_sym_flag='-Bexport'
14679 # If we're using GNU nm, then we don't want the "-C" option.
14680 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14681 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14682 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'
14684 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'
14686 aix_use_runtimelinking=no
14688 # Test if we are trying to use run time linking or normal
14689 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14690 # need to do runtime linking.
14691 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14692 for ld_flag in $LDFLAGS; do
14693 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14694 aix_use_runtimelinking=yes
14701 exp_sym_flag='-bexport'
14702 no_entry_flag='-bnoentry'
14705 # When large executables or shared objects are built, AIX ld can
14706 # have problems creating the table of contents. If linking a library
14707 # or program results in "error TOC overflow" add -mminimal-toc to
14708 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14709 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14711 archive_cmds_F77=''
14712 hardcode_direct_F77=yes
14713 hardcode_libdir_separator_F77=':'
14714 link_all_deplibs_F77=yes
14716 if test "$GCC" = yes; then
14717 case $host_os in aix4.[012]|aix4.[012].*)
14718 # We only want to do this on AIX 4.2 and lower, the check
14719 # below for broken collect2 doesn't work under 4.3+
14720 collect2name=`${CC} -print-prog-name=collect2`
14721 if test -f "$collect2name" && \
14722 strings "$collect2name" | grep resolve_lib_name >/dev/null
14724 # We have reworked collect2
14727 # We have old collect2
14728 hardcode_direct_F77=unsupported
14729 # It fails to find uninstalled libraries when the uninstalled
14730 # path is not listed in the libpath. Setting hardcode_minus_L
14731 # to unsupported forces relinking
14732 hardcode_minus_L_F77=yes
14733 hardcode_libdir_flag_spec_F77='-L$libdir'
14734 hardcode_libdir_separator_F77=
14738 shared_flag='-shared'
14739 if test "$aix_use_runtimelinking" = yes; then
14740 shared_flag="$shared_flag "'${wl}-G'
14744 if test "$host_cpu" = ia64; then
14745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14746 # chokes on -Wl,-G. The following line is correct:
14749 if test "$aix_use_runtimelinking" = yes; then
14750 shared_flag='${wl}-G'
14752 shared_flag='${wl}-bM:SRE'
14757 # It seems that -bexpall does not export symbols beginning with
14758 # underscore (_), so it is better to generate a list of symbols to export.
14759 always_export_symbols_F77=yes
14760 if test "$aix_use_runtimelinking" = yes; then
14761 # Warning - without using the other runtime loading flags (-brtl),
14762 # -berok will link without error, but may produce a broken library.
14763 allow_undefined_flag_F77='-berok'
14764 # Determine the default libpath from the value encoded in an empty executable.
14765 cat > conftest.$ac_ext <<_ACEOF
14770 if ac_fn_f77_try_link "$LINENO"; then :
14772 lt_aix_libpath_sed='
14773 /Import File Strings/,/^$/ {
14779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14780 # Check for a 64-bit object if we didn't find anything.
14781 if test -z "$aix_libpath"; then
14782 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14785 rm -f core conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
14787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14789 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14790 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"
14792 if test "$host_cpu" = ia64; then
14793 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14794 allow_undefined_flag_F77="-z nodefs"
14795 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"
14797 # Determine the default libpath from the value encoded in an empty executable.
14798 cat > conftest.$ac_ext <<_ACEOF
14803 if ac_fn_f77_try_link "$LINENO"; then :
14805 lt_aix_libpath_sed='
14806 /Import File Strings/,/^$/ {
14812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14813 # Check for a 64-bit object if we didn't find anything.
14814 if test -z "$aix_libpath"; then
14815 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14818 rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14822 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14823 # Warning - without using the other run time loading flags,
14824 # -berok will link without error, but may produce a broken library.
14825 no_undefined_flag_F77=' ${wl}-bernotok'
14826 allow_undefined_flag_F77=' ${wl}-berok'
14827 # Exported symbols can be pulled into shared objects from archives
14828 whole_archive_flag_spec_F77='$convenience'
14829 archive_cmds_need_lc_F77=yes
14830 # This is similar to how AIX traditionally builds its shared libraries.
14831 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'
14837 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)'
14838 hardcode_libdir_flag_spec_F77='-L$libdir'
14839 hardcode_minus_L_F77=yes
14840 # see comment about different semantics on the GNU ld section
14845 export_dynamic_flag_spec_F77=-rdynamic
14848 cygwin* | mingw* | pw32*)
14849 # When not using gcc, we currently assume that we are using
14850 # Microsoft Visual C++.
14851 # hardcode_libdir_flag_spec is actually meaningless, as there is
14852 # no search path for DLLs.
14853 hardcode_libdir_flag_spec_F77=' '
14854 allow_undefined_flag_F77=unsupported
14855 # Tell ltmain to make .lib files, not .a files.
14857 # Tell ltmain to make .dll files, not .so files.
14859 # FIXME: Setting linknames here is a bad hack.
14860 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14861 # The linker will automatically build a .lib file if we build a DLL.
14862 old_archive_From_new_cmds_F77='true'
14863 # FIXME: Should let the user specify the lib program.
14864 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14865 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14866 enable_shared_with_static_runtimes_F77=yes
14869 darwin* | rhapsody*)
14871 rhapsody* | darwin1.[012])
14872 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14875 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14876 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14878 case ${MACOSX_DEPLOYMENT_TARGET} in
14880 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14883 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14889 archive_cmds_need_lc_F77=no
14890 hardcode_direct_F77=no
14891 hardcode_automatic_F77=yes
14892 hardcode_shlibpath_var_F77=unsupported
14893 whole_archive_flag_spec_F77=''
14894 link_all_deplibs_F77=yes
14895 if test "$GCC" = yes ; then
14896 output_verbose_link_cmd='echo'
14897 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}"
14898 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14899 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}"
14900 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}"
14902 case $cc_basename in
14904 output_verbose_link_cmd='echo'
14905 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14906 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14907 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14908 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}'
14909 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}'
14919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14920 hardcode_libdir_flag_spec_F77='-L$libdir'
14921 hardcode_shlibpath_var_F77=no
14928 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14929 # support. Future versions do this automatically, but an explicit c++rt0.o
14930 # does not break anything, and helps significantly (at the cost of a little
14933 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14934 hardcode_libdir_flag_spec_F77='-R$libdir'
14935 hardcode_direct_F77=yes
14936 hardcode_shlibpath_var_F77=no
14939 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14941 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942 hardcode_direct_F77=yes
14943 hardcode_minus_L_F77=yes
14944 hardcode_shlibpath_var_F77=no
14947 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14948 freebsd* | dragonfly*)
14949 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14950 hardcode_libdir_flag_spec_F77='-R$libdir'
14951 hardcode_direct_F77=yes
14952 hardcode_shlibpath_var_F77=no
14956 if test "$GCC" = yes; then
14957 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'
14959 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'
14961 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14962 hardcode_libdir_separator_F77=:
14963 hardcode_direct_F77=yes
14965 # hardcode_minus_L: Not really in the search PATH,
14966 # but as the default location of the library.
14967 hardcode_minus_L_F77=yes
14968 export_dynamic_flag_spec_F77='${wl}-E'
14972 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14973 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14975 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14977 if test "$with_gnu_ld" = no; then
14978 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14979 hardcode_libdir_separator_F77=:
14981 hardcode_direct_F77=yes
14982 export_dynamic_flag_spec_F77='${wl}-E'
14984 # hardcode_minus_L: Not really in the search PATH,
14985 # but as the default location of the library.
14986 hardcode_minus_L_F77=yes
14991 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14994 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14997 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15000 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15006 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15012 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15016 if test "$with_gnu_ld" = no; then
15017 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15018 hardcode_libdir_separator_F77=:
15022 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15023 hardcode_direct_F77=no
15024 hardcode_shlibpath_var_F77=no
15027 hardcode_direct_F77=yes
15028 export_dynamic_flag_spec_F77='${wl}-E'
15030 # hardcode_minus_L: Not really in the search PATH,
15031 # but as the default location of the library.
15032 hardcode_minus_L_F77=yes
15038 irix5* | irix6* | nonstopux*)
15039 if test "$GCC" = yes; then
15040 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'
15042 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'
15043 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15045 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15046 hardcode_libdir_separator_F77=:
15047 link_all_deplibs_F77=yes
15050 netbsd* | netbsdelf*-gnu)
15051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15052 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15054 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15056 hardcode_libdir_flag_spec_F77='-R$libdir'
15057 hardcode_direct_F77=yes
15058 hardcode_shlibpath_var_F77=no
15062 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063 hardcode_direct_F77=yes
15064 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15065 hardcode_libdir_separator_F77=:
15066 hardcode_shlibpath_var_F77=no
15070 if test -f /usr/libexec/ld.so; then
15071 hardcode_direct_F77=yes
15072 hardcode_shlibpath_var_F77=no
15073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15074 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15075 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15076 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15077 export_dynamic_flag_spec_F77='${wl}-E'
15080 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15081 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15082 hardcode_libdir_flag_spec_F77='-R$libdir'
15085 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15086 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15096 hardcode_libdir_flag_spec_F77='-L$libdir'
15097 hardcode_minus_L_F77=yes
15098 allow_undefined_flag_F77=unsupported
15099 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'
15100 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15104 if test "$GCC" = yes; then
15105 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15106 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'
15108 allow_undefined_flag_F77=' -expect_unresolved \*'
15109 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'
15111 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15112 hardcode_libdir_separator_F77=:
15115 osf4* | osf5*) # as osf3* with the addition of -msym flag
15116 if test "$GCC" = yes; then
15117 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15118 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'
15119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15121 allow_undefined_flag_F77=' -expect_unresolved \*'
15122 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'
15123 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~
15124 $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'
15126 # Both c and cxx compiler support -rpath directly
15127 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15129 hardcode_libdir_separator_F77=:
15133 no_undefined_flag_F77=' -z text'
15134 if test "$GCC" = yes; then
15136 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15137 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15138 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15141 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15142 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15143 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15145 hardcode_libdir_flag_spec_F77='-R$libdir'
15146 hardcode_shlibpath_var_F77=no
15148 solaris2.[0-5] | solaris2.[0-5].*) ;;
15150 # The compiler driver will combine and reorder linker options,
15151 # but understands `-z linker_flag'. GCC discards it without `$wl',
15152 # but is careful enough not to reorder.
15153 # Supported since Solaris 2.6 (maybe 2.5.1?)
15154 if test "$GCC" = yes; then
15155 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15157 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15161 link_all_deplibs_F77=yes
15165 if test "x$host_vendor" = xsequent; then
15166 # Use $CC to link under sequent, because it throws in some extra .o
15167 # files that make .init and .fini sections work.
15168 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15170 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15172 hardcode_libdir_flag_spec_F77='-L$libdir'
15173 hardcode_direct_F77=yes
15174 hardcode_minus_L_F77=yes
15175 hardcode_shlibpath_var_F77=no
15179 case $host_vendor in
15181 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15182 hardcode_direct_F77=yes # is this really true???
15185 ## LD is ld it makes a PLAMLIB
15186 ## CC just makes a GrossModule.
15187 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15188 reload_cmds_F77='$CC -r -o $output$reload_objs'
15189 hardcode_direct_F77=no
15192 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15193 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15196 runpath_var='LD_RUN_PATH'
15197 hardcode_shlibpath_var_F77=no
15201 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202 hardcode_shlibpath_var_F77=no
15203 export_dynamic_flag_spec_F77='-Bexport'
15207 if test -d /usr/nec; then
15208 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15209 hardcode_shlibpath_var_F77=no
15210 runpath_var=LD_RUN_PATH
15211 hardcode_runpath_var=yes
15216 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15217 no_undefined_flag_F77='${wl}-z,text'
15218 archive_cmds_need_lc_F77=no
15219 hardcode_shlibpath_var_F77=no
15220 runpath_var='LD_RUN_PATH'
15222 if test "$GCC" = yes; then
15223 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15224 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15226 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15227 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15231 sysv5* | sco3.2v5* | sco5v6*)
15232 # Note: We can NOT use -z defs as we might desire, because we do not
15233 # link with -lc, and that would cause any symbols used from libc to
15234 # always be unresolved, which means just about no library would
15235 # ever link correctly. If we're not using GNU ld we use -z text
15236 # though, which does catch some bad symbols but isn't as heavy-handed
15238 no_undefined_flag_F77='${wl}-z,text'
15239 allow_undefined_flag_F77='${wl}-z,nodefs'
15240 archive_cmds_need_lc_F77=no
15241 hardcode_shlibpath_var_F77=no
15242 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15243 hardcode_libdir_separator_F77=':'
15244 link_all_deplibs_F77=yes
15245 export_dynamic_flag_spec_F77='${wl}-Bexport'
15246 runpath_var='LD_RUN_PATH'
15248 if test "$GCC" = yes; then
15249 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15250 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15252 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15253 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15259 hardcode_libdir_flag_spec_F77='-L$libdir'
15260 hardcode_shlibpath_var_F77=no
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15270 $as_echo "$ld_shlibs_F77" >&6; }
15271 test "$ld_shlibs_F77" = no && can_build_shared=no
15274 # Do we need to explicitly link libc?
15276 case "x$archive_cmds_need_lc_F77" in
15278 # Assume -lc should be added
15279 archive_cmds_need_lc_F77=yes
15281 if test "$enable_shared" = yes && test "$GCC" = yes; then
15282 case $archive_cmds_F77 in
15284 # FIXME: we may have to deal with multi-command sequences.
15287 # Test whether the compiler implicitly links with -lc since on some
15288 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15289 # to ld, don't add -lc before -lgcc.
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15291 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15296 (eval $ac_compile) 2>&5
15298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15299 test $ac_status = 0; } 2>conftest.err; then
15302 libobjs=conftest.$ac_objext
15304 wl=$lt_prog_compiler_wl_F77
15305 pic_flag=$lt_prog_compiler_pic_F77
15311 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15312 allow_undefined_flag_F77=
15313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15314 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15317 test $ac_status = 0; }
15319 archive_cmds_need_lc_F77=no
15321 archive_cmds_need_lc_F77=yes
15323 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15325 cat conftest.err 1>&5
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15329 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15337 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15338 library_names_spec=
15339 libname_spec='lib$name'
15343 postuninstall_cmds=
15347 shlibpath_overrides_runpath=unknown
15349 dynamic_linker="$host_os ld.so"
15350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15352 need_lib_prefix=unknown
15353 hardcode_into_libs=no
15355 # when you set need_version to no, make sure it does not cause -set_version
15356 # flags to be left without arguments
15357 need_version=unknown
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15363 shlibpath_var=LIBPATH
15365 # AIX 3 has no versioning support, so we append a major version to the name.
15366 soname_spec='${libname}${release}${shared_ext}$major'
15373 hardcode_into_libs=yes
15374 if test "$host_cpu" = ia64; then
15375 # AIX 5 supports IA64
15376 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15377 shlibpath_var=LD_LIBRARY_PATH
15379 # With GCC up to 2.95.x, collect2 would create an import file
15380 # for dependence libraries. The import file would start with
15381 # the line `#! .'. This would cause the generated library to
15382 # depend on `.', always an invalid library. This was fixed in
15383 # development snapshots of GCC prior to 3.0.
15385 aix4 | aix4.[01] | aix4.[01].*)
15386 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15388 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15391 can_build_shared=no
15395 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15396 # soname into executable. Probably we can add versioning support to
15397 # collect2, so additional links can be useful in future.
15398 if test "$aix_use_runtimelinking" = yes; then
15399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15400 # instead of lib<name>.a to let people know that these are not
15401 # typical AIX shared libraries.
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 # We preserve .a as extension for shared libraries through AIX4.2
15405 # and later when we are not doing run time linking.
15406 library_names_spec='${libname}${release}.a $libname.a'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15409 shlibpath_var=LIBPATH
15414 library_names_spec='$libname.ixlibrary $libname.a'
15415 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15416 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'
15420 library_names_spec='${libname}${shared_ext}'
15421 dynamic_linker="$host_os ld.so"
15422 shlibpath_var=LIBRARY_PATH
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15433 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15434 # the default ld.so.conf also contains /usr/contrib/lib and
15435 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15436 # libtool to hard-code these into programs
15439 cygwin* | mingw* | pw32*)
15440 version_type=windows
15445 case $GCC,$host_os in
15446 yes,cygwin* | yes,mingw* | yes,pw32*)
15447 library_names_spec='$libname.dll.a'
15448 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15449 postinstall_cmds='base_file=`basename \${file}`~
15450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15451 dldir=$destdir/`dirname \$dlpath`~
15452 test -d \$dldir || mkdir -p \$dldir~
15453 $install_prog $dir/$dlname \$dldir/$dlname~
15454 chmod a+x \$dldir/$dlname'
15455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15456 dlpath=$dir/\$dldll~
15458 shlibpath_overrides_runpath=yes
15462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15463 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15464 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15467 # MinGW DLLs use traditional 'lib' prefix
15468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15469 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15470 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15471 # It is most probably a Windows format PATH printed by
15472 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15473 # path with ; separators, and with drive letters. We can handle the
15474 # drive letters (cygwin fileutils understands them), so leave them,
15475 # especially as we might pass files found there to a mingw objdump,
15476 # which wouldn't understand a cygwinified path. Ahh.
15477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15483 # pw32 DLLs use 'pw' prefix rather than 'lib'
15484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15493 dynamic_linker='Win32 ld.exe'
15494 # FIXME: first we should search . and the directory the executable is in
15498 darwin* | rhapsody*)
15499 dynamic_linker="$host_os dyld"
15500 version_type=darwin
15503 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15504 soname_spec='${libname}${release}${major}$shared_ext'
15505 shlibpath_overrides_runpath=yes
15506 shlibpath_var=DYLD_LIBRARY_PATH
15507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 shlibpath_var=LD_LIBRARY_PATH
15525 freebsd* | dragonfly*)
15526 # DragonFly does not have aout. When/if they implement a new
15527 # versioning mechanism, adjust this.
15528 if test -x /usr/bin/objformat; then
15529 objformat=`/usr/bin/objformat`
15532 freebsd[123]*) objformat=aout ;;
15533 *) objformat=elf ;;
15536 version_type=freebsd-$objformat
15537 case $version_type in
15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15548 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes
15553 freebsd3.[01]* | freebsdelf3.[01]*)
15554 shlibpath_overrides_runpath=yes
15555 hardcode_into_libs=yes
15557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15559 shlibpath_overrides_runpath=no
15560 hardcode_into_libs=yes
15562 *) # from 4.6 on, and DragonFly
15563 shlibpath_overrides_runpath=yes
15564 hardcode_into_libs=yes
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 hardcode_into_libs=yes
15579 hpux9* | hpux10* | hpux11*)
15580 # Give a soname corresponding to the major version so that dld.sl refuses to
15581 # link against other versions.
15588 hardcode_into_libs=yes
15589 dynamic_linker="$host_os dld.so"
15590 shlibpath_var=LD_LIBRARY_PATH
15591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593 soname_spec='${libname}${release}${shared_ext}$major'
15594 if test "X$HPUX_IA64_MODE" = X32; then
15595 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15597 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15603 hardcode_into_libs=yes
15604 dynamic_linker="$host_os dld.sl"
15605 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15608 soname_spec='${libname}${release}${shared_ext}$major'
15609 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15614 dynamic_linker="$host_os dld.sl"
15615 shlibpath_var=SHLIB_PATH
15616 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 soname_spec='${libname}${release}${shared_ext}$major'
15621 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15622 postinstall_cmds='chmod 555 $lib'
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15630 soname_spec='${libname}${release}${shared_ext}$major'
15631 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 shlibpath_overrides_runpath=no
15634 hardcode_into_libs=yes
15637 irix5* | irix6* | nonstopux*)
15639 nonstopux*) version_type=nonstopux ;;
15641 if test "$lt_cv_prog_gnu_ld" = yes; then
15649 soname_spec='${libname}${release}${shared_ext}$major'
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15652 irix5* | nonstopux*)
15653 libsuff= shlibsuff=
15656 case $LD in # libtool.m4 will add one of these switches to LD
15657 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15658 libsuff= shlibsuff= libmagic=32-bit;;
15659 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15660 libsuff=32 shlibsuff=N32 libmagic=N32;;
15661 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15662 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15663 *) libsuff= shlibsuff= libmagic=never-match;;
15667 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15668 shlibpath_overrides_runpath=no
15669 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15670 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15671 hardcode_into_libs=yes
15674 # No shared lib support for Linux oldld, aout, or coff.
15675 linux*oldld* | linux*aout* | linux*coff*)
15679 # This must be Linux ELF.
15680 linux* | k*bsd*-gnu)
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 shlibpath_overrides_runpath=no
15689 # This implies no fast_install, which is unacceptable.
15690 # Some rework will be needed to allow for fast_install
15691 # before this can be enabled.
15692 hardcode_into_libs=yes
15694 # Append ld.so.conf contents to the search path
15695 if test -f /etc/ld.so.conf; then
15696 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' ' '`
15697 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15700 # We used to test for /lib/ld.so.1 and disable shared libraries on
15701 # powerpc, because MkLinux only supported shared libraries with the
15702 # GNU dynamic linker. Since this was broken with cross compilers,
15703 # most powerpc-linux boxes support dynamic linking these days and
15704 # people can always --disable-shared, the test was removed, and we
15705 # assume the GNU/Linux dynamic linker is in use.
15706 dynamic_linker='GNU/Linux ld.so'
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 shlibpath_overrides_runpath=no
15717 hardcode_into_libs=yes
15718 dynamic_linker='NetBSD ld.elf_so'
15725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15728 dynamic_linker='NetBSD (a.out) ld.so'
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15731 soname_spec='${libname}${release}${shared_ext}$major'
15732 dynamic_linker='NetBSD ld.elf_so'
15734 shlibpath_var=LD_LIBRARY_PATH
15735 shlibpath_overrides_runpath=yes
15736 hardcode_into_libs=yes
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath=yes
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751 soname_spec='${libname}${release}${shared_ext}$major'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 shlibpath_overrides_runpath=yes
15758 sys_lib_dlsearch_path_spec="/usr/lib"
15760 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15762 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15763 *) need_version=no ;;
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15767 shlibpath_var=LD_LIBRARY_PATH
15768 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15770 openbsd2.[89] | openbsd2.[89].*)
15771 shlibpath_overrides_runpath=no
15774 shlibpath_overrides_runpath=yes
15778 shlibpath_overrides_runpath=yes
15783 libname_spec='$name'
15786 library_names_spec='$libname${shared_ext} $libname.a'
15787 dynamic_linker='OS/2 ld.exe'
15788 shlibpath_var=LIBPATH
15791 osf3* | osf4* | osf5*)
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797 shlibpath_var=LD_LIBRARY_PATH
15798 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15799 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811 soname_spec='${libname}${release}${shared_ext}$major'
15812 shlibpath_var=LD_LIBRARY_PATH
15813 shlibpath_overrides_runpath=yes
15814 hardcode_into_libs=yes
15815 # ldd complains unless libraries are executable
15816 postinstall_cmds='chmod +x $lib'
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15822 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15823 shlibpath_var=LD_LIBRARY_PATH
15824 shlibpath_overrides_runpath=yes
15825 if test "$with_gnu_ld" = yes; then
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 case $host_vendor in
15838 shlibpath_overrides_runpath=no
15840 export_dynamic_flag_spec='${wl}-Blargedynsym'
15841 runpath_var=LD_RUN_PATH
15849 shlibpath_overrides_runpath=no
15850 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15856 if test -d /usr/nec ;then
15858 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15859 soname_spec='$libname${shared_ext}.$major'
15860 shlibpath_var=LD_LIBRARY_PATH
15864 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15865 version_type=freebsd-elf
15868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15869 soname_spec='${libname}${release}${shared_ext}$major'
15870 shlibpath_var=LD_LIBRARY_PATH
15871 hardcode_into_libs=yes
15872 if test "$with_gnu_ld" = yes; then
15873 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15874 shlibpath_overrides_runpath=no
15876 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15877 shlibpath_overrides_runpath=yes
15880 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15884 sys_lib_dlsearch_path_spec='/usr/lib'
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 soname_spec='${libname}${release}${shared_ext}$major'
15891 shlibpath_var=LD_LIBRARY_PATH
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15899 $as_echo "$dynamic_linker" >&6; }
15900 test "$dynamic_linker" = no && can_build_shared=no
15902 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15903 $as_echo_n "(cached) " >&6
15905 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15908 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15909 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15910 $as_echo_n "(cached) " >&6
15912 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15915 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15917 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15918 if test "$GCC" = yes; then
15919 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15923 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15924 hardcode_action_F77=
15925 if test -n "$hardcode_libdir_flag_spec_F77" || \
15926 test -n "$runpath_var_F77" || \
15927 test "X$hardcode_automatic_F77" = "Xyes" ; then
15929 # We can hardcode non-existant directories.
15930 if test "$hardcode_direct_F77" != no &&
15931 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15932 # have to relink, otherwise we might link with an installed library
15933 # when we should be linking with a yet-to-be-installed one
15934 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15935 test "$hardcode_minus_L_F77" != no; then
15936 # Linking always hardcodes the temporary library directory.
15937 hardcode_action_F77=relink
15939 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15940 hardcode_action_F77=immediate
15943 # We cannot hardcode anything, or else we can only hardcode existing
15945 hardcode_action_F77=unsupported
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15948 $as_echo "$hardcode_action_F77" >&6; }
15950 if test "$hardcode_action_F77" = relink; then
15951 # Fast installation is not supported
15952 enable_fast_install=no
15953 elif test "$shlibpath_overrides_runpath" = yes ||
15954 test "$enable_shared" = no; then
15955 # Fast installation is not necessary
15956 enable_fast_install=needless
15960 # The else clause should only fire when bootstrapping the
15961 # libtool distribution, otherwise you forgot to ship ltmain.sh
15962 # with your package, and you will get complaints that there are
15963 # no rules to generate ltmain.sh.
15964 if test -f "$ltmain"; then
15965 # See if we are running on zsh, and set the options which allow our commands through
15966 # without removal of \ escapes.
15967 if test -n "${ZSH_VERSION+set}" ; then
15968 setopt NO_GLOB_SUBST
15970 # Now quote all the things that may contain metacharacters while being
15971 # careful not to overquote the AC_SUBSTed values. We take copies of the
15972 # variables and quote the copies for generation of the libtool script.
15973 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15975 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15976 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15977 deplibs_check_method reload_flag reload_cmds need_locks \
15978 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15979 lt_cv_sys_global_symbol_to_c_name_address \
15980 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15981 old_postinstall_cmds old_postuninstall_cmds \
15985 lt_prog_compiler_wl_F77 \
15986 lt_prog_compiler_pic_F77 \
15987 lt_prog_compiler_static_F77 \
15988 lt_prog_compiler_no_builtin_flag_F77 \
15989 export_dynamic_flag_spec_F77 \
15990 thread_safe_flag_spec_F77 \
15991 whole_archive_flag_spec_F77 \
15992 enable_shared_with_static_runtimes_F77 \
15993 old_archive_cmds_F77 \
15994 old_archive_from_new_cmds_F77 \
15995 predep_objects_F77 \
15996 postdep_objects_F77 \
15999 compiler_lib_search_path_F77 \
16000 compiler_lib_search_dirs_F77 \
16002 archive_expsym_cmds_F77 \
16003 postinstall_cmds_F77 \
16004 postuninstall_cmds_F77 \
16005 old_archive_from_expsyms_cmds_F77 \
16006 allow_undefined_flag_F77 \
16007 no_undefined_flag_F77 \
16008 export_symbols_cmds_F77 \
16009 hardcode_libdir_flag_spec_F77 \
16010 hardcode_libdir_flag_spec_ld_F77 \
16011 hardcode_libdir_separator_F77 \
16012 hardcode_automatic_F77 \
16014 module_expsym_cmds_F77 \
16015 lt_cv_prog_compiler_c_o_F77 \
16016 fix_srcfile_path_F77 \
16017 exclude_expsyms_F77 \
16018 include_expsyms_F77; do
16021 old_archive_cmds_F77 | \
16022 old_archive_from_new_cmds_F77 | \
16023 archive_cmds_F77 | \
16024 archive_expsym_cmds_F77 | \
16025 module_cmds_F77 | \
16026 module_expsym_cmds_F77 | \
16027 old_archive_from_expsyms_cmds_F77 | \
16028 export_symbols_cmds_F77 | \
16029 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16030 postinstall_cmds | postuninstall_cmds | \
16031 old_postinstall_cmds | old_postuninstall_cmds | \
16032 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16033 # Double-quote double-evaled strings.
16034 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16037 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16043 *'\$0 --fallback-echo"')
16044 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16050 cat <<__EOF__ >> "$cfgfile"
16051 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16053 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16055 # Shell to use when invoking shell scripts.
16058 # Whether or not to build shared libraries.
16059 build_libtool_libs=$enable_shared
16061 # Whether or not to build static libraries.
16062 build_old_libs=$enable_static
16064 # Whether or not to add -lc for building shared libraries.
16065 build_libtool_need_lc=$archive_cmds_need_lc_F77
16067 # Whether or not to disallow shared libs when runtime libs are static
16068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16070 # Whether or not to optimize for fast installation.
16071 fast_install=$enable_fast_install
16074 host_alias=$host_alias
16078 # The build system.
16079 build_alias=$build_alias
16083 # An echo program that does not interpret backslashes.
16088 AR_FLAGS=$lt_AR_FLAGS
16093 # LTCC compiler flags.
16094 LTCFLAGS=$lt_LTCFLAGS
16096 # A language-specific compiler.
16097 CC=$lt_compiler_F77
16099 # Is the compiler the GNU C compiler?
16105 # The linker used to build libraries.
16108 # Whether we need hard or soft links.
16111 # A BSD-compatible nm program.
16114 # A symbol stripping program
16117 # Used to examine libraries when file_magic_cmd begins "file"
16118 MAGIC_CMD=$MAGIC_CMD
16120 # Used on cygwin: DLL creation program.
16123 # Used on cygwin: object dumper.
16126 # Used on cygwin: assembler.
16129 # The name of the directory that contains temporary libtool files.
16132 # How to create reloadable object files.
16133 reload_flag=$lt_reload_flag
16134 reload_cmds=$lt_reload_cmds
16136 # How to pass a linker flag through the compiler.
16137 wl=$lt_lt_prog_compiler_wl_F77
16139 # Object file suffix (normally "o").
16140 objext="$ac_objext"
16142 # Old archive suffix (normally "a").
16145 # Shared library suffix (normally ".so").
16146 shrext_cmds='$shrext_cmds'
16148 # Executable file suffix (normally "").
16151 # Additional compiler flags for building library objects.
16152 pic_flag=$lt_lt_prog_compiler_pic_F77
16155 # What is the maximum length of a command?
16156 max_cmd_len=$lt_cv_sys_max_cmd_len
16158 # Does compiler simultaneously support -c and -o options?
16159 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16161 # Must we lock files when doing compilation?
16162 need_locks=$lt_need_locks
16164 # Do we need the lib prefix for modules?
16165 need_lib_prefix=$need_lib_prefix
16167 # Do we need a version for libraries?
16168 need_version=$need_version
16170 # Whether dlopen is supported.
16171 dlopen_support=$enable_dlopen
16173 # Whether dlopen of programs is supported.
16174 dlopen_self=$enable_dlopen_self
16176 # Whether dlopen of statically linked programs is supported.
16177 dlopen_self_static=$enable_dlopen_self_static
16179 # Compiler flag to prevent dynamic linking.
16180 link_static_flag=$lt_lt_prog_compiler_static_F77
16182 # Compiler flag to turn off builtin functions.
16183 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16185 # Compiler flag to allow reflexive dlopens.
16186 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16188 # Compiler flag to generate shared objects directly from archives.
16189 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16191 # Compiler flag to generate thread-safe objects.
16192 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16194 # Library versioning type.
16195 version_type=$version_type
16197 # Format of library name prefix.
16198 libname_spec=$lt_libname_spec
16200 # List of archive names. First name is the real one, the rest are links.
16201 # The last name is the one that the linker finds with -lNAME.
16202 library_names_spec=$lt_library_names_spec
16204 # The coded name of the library, if different from the real name.
16205 soname_spec=$lt_soname_spec
16207 # Commands used to build and install an old-style archive.
16209 old_archive_cmds=$lt_old_archive_cmds_F77
16210 old_postinstall_cmds=$lt_old_postinstall_cmds
16211 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16213 # Create an old-style archive from a shared archive.
16214 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16216 # Create a temporary old-style archive to link instead of a shared archive.
16217 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16219 # Commands used to build and install a shared archive.
16220 archive_cmds=$lt_archive_cmds_F77
16221 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16222 postinstall_cmds=$lt_postinstall_cmds
16223 postuninstall_cmds=$lt_postuninstall_cmds
16225 # Commands used to build a loadable module (assumed same as above if empty)
16226 module_cmds=$lt_module_cmds_F77
16227 module_expsym_cmds=$lt_module_expsym_cmds_F77
16229 # Commands to strip libraries.
16230 old_striplib=$lt_old_striplib
16231 striplib=$lt_striplib
16233 # Dependencies to place before the objects being linked to create a
16235 predep_objects=$lt_predep_objects_F77
16237 # Dependencies to place after the objects being linked to create a
16239 postdep_objects=$lt_postdep_objects_F77
16241 # Dependencies to place before the objects being linked to create a
16243 predeps=$lt_predeps_F77
16245 # Dependencies to place after the objects being linked to create a
16247 postdeps=$lt_postdeps_F77
16249 # The directories searched by this compiler when creating a shared
16251 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16253 # The library search path used internally by the compiler when linking
16254 # a shared library.
16255 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16257 # Method to check whether dependent libraries are shared objects.
16258 deplibs_check_method=$lt_deplibs_check_method
16260 # Command to use when deplibs_check_method == file_magic.
16261 file_magic_cmd=$lt_file_magic_cmd
16263 # Flag that allows shared libraries with undefined symbols to be built.
16264 allow_undefined_flag=$lt_allow_undefined_flag_F77
16266 # Flag that forces no undefined symbols.
16267 no_undefined_flag=$lt_no_undefined_flag_F77
16269 # Commands used to finish a libtool library installation in a directory.
16270 finish_cmds=$lt_finish_cmds
16272 # Same as above, but a single script fragment to be evaled but not shown.
16273 finish_eval=$lt_finish_eval
16275 # Take the output of nm and produce a listing of raw symbols and C names.
16276 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16278 # Transform the output of nm in a proper C declaration
16279 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16281 # Transform the output of nm in a C name address pair
16282 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16284 # This is the shared library runtime path variable.
16285 runpath_var=$runpath_var
16287 # This is the shared library path variable.
16288 shlibpath_var=$shlibpath_var
16290 # Is shlibpath searched before the hard-coded library search path?
16291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16293 # How to hardcode a shared library path into an executable.
16294 hardcode_action=$hardcode_action_F77
16296 # Whether we should hardcode library paths into libraries.
16297 hardcode_into_libs=$hardcode_into_libs
16299 # Flag to hardcode \$libdir into a binary during linking.
16300 # This must work even if \$libdir does not exist.
16301 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16303 # If ld is used when linking, flag to hardcode \$libdir into
16304 # a binary during linking. This must work even if \$libdir does
16306 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16308 # Whether we need a single -rpath flag with a separated argument.
16309 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16311 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16312 # resulting binary.
16313 hardcode_direct=$hardcode_direct_F77
16315 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16316 # resulting binary.
16317 hardcode_minus_L=$hardcode_minus_L_F77
16319 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16320 # the resulting binary.
16321 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16323 # Set to yes if building a shared library automatically hardcodes DIR into the library
16324 # and all subsequent libraries and executables linked against it.
16325 hardcode_automatic=$hardcode_automatic_F77
16327 # Variables whose values should be saved in libtool wrapper scripts and
16328 # restored at relink time.
16329 variables_saved_for_relink="$variables_saved_for_relink"
16331 # Whether libtool must link a program against all its dependency libraries.
16332 link_all_deplibs=$link_all_deplibs_F77
16334 # Compile-time system search path for libraries
16335 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16337 # Run-time system search path for libraries
16338 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16340 # Fix the shell variable \$srcfile for the compiler.
16341 fix_srcfile_path=$lt_fix_srcfile_path
16343 # Set to yes if exported symbols are required.
16344 always_export_symbols=$always_export_symbols_F77
16346 # The commands to list exported symbols.
16347 export_symbols_cmds=$lt_export_symbols_cmds_F77
16349 # The commands to extract the exported symbol list from a shared archive.
16350 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16352 # Symbols that should not be listed in the preloaded symbols.
16353 exclude_expsyms=$lt_exclude_expsyms_F77
16355 # Symbols that must always be exported.
16356 include_expsyms=$lt_include_expsyms_F77
16358 # ### END LIBTOOL TAG CONFIG: $tagname
16364 # If there is no Makefile yet, we rely on a make rule to execute
16365 # `config.status --recheck' to rerun these tests and create the
16366 # libtool script then.
16367 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16368 if test -f "$ltmain_in"; then
16369 test -f Makefile && make "$ltmain"
16375 ac_cpp='$CPP $CPPFLAGS'
16376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16388 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16391 # Source file extension for Java test sources.
16394 # Object file extension for compiled Java test sources.
16398 # Code to be used in simple compile tests
16399 lt_simple_compile_test_code="class foo {}"
16401 # Code to be used in simple link tests
16402 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16404 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16406 # If no C compiler was specified, use CC.
16409 # If no C compiler flags were specified, use CFLAGS.
16410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16412 # Allow CC to be a program name with arguments.
16416 # save warnings/boilerplate of simple test code
16417 ac_outfile=conftest.$ac_objext
16418 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16419 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16420 _lt_compiler_boilerplate=`cat conftest.err`
16423 ac_outfile=conftest.$ac_objext
16424 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16425 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16426 _lt_linker_boilerplate=`cat conftest.err`
16430 # Allow CC to be a program name with arguments.
16435 for cc_temp in $compiler""; do
16437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16443 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16446 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16447 archive_cmds_need_lc_GCJ=no
16449 old_archive_cmds_GCJ=$old_archive_cmds
16452 lt_prog_compiler_no_builtin_flag_GCJ=
16454 if test "$GCC" = yes; then
16455 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16459 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16460 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16461 $as_echo_n "(cached) " >&6
16463 lt_cv_prog_compiler_rtti_exceptions=no
16464 ac_outfile=conftest.$ac_objext
16465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16466 lt_compiler_flag="-fno-rtti -fno-exceptions"
16467 # Insert the option either (1) after the last *FLAGS variable, or
16468 # (2) before a word containing "conftest.", or (3) at the end.
16469 # Note that $ac_compile itself does not contain backslashes and begins
16470 # with a dollar sign (not a hyphen), so the echo should work correctly.
16471 # The option is referenced via a variable to avoid confusing sed.
16472 lt_compile=`echo "$ac_compile" | $SED \
16473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16475 -e 's:$: $lt_compiler_flag:'`
16476 (eval echo "\"\$as_me:16476: $lt_compile\"" >&5)
16477 (eval "$lt_compile" 2>conftest.err)
16479 cat conftest.err >&5
16480 echo "$as_me:16480: \$? = $ac_status" >&5
16481 if (exit $ac_status) && test -s "$ac_outfile"; then
16482 # The compiler can only warn and ignore the option if not recognized
16483 # So say no if there are warnings other than the usual output.
16484 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16487 lt_cv_prog_compiler_rtti_exceptions=yes
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16494 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16496 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16497 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16504 lt_prog_compiler_wl_GCJ=
16505 lt_prog_compiler_pic_GCJ=
16506 lt_prog_compiler_static_GCJ=
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16509 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16511 if test "$GCC" = yes; then
16512 lt_prog_compiler_wl_GCJ='-Wl,'
16513 lt_prog_compiler_static_GCJ='-static'
16517 # All AIX code is PIC.
16518 if test "$host_cpu" = ia64; then
16519 # AIX 5 now supports IA64 processor
16520 lt_prog_compiler_static_GCJ='-Bstatic'
16525 # FIXME: we need at least 68020 code to build shared libraries, but
16526 # adding the `-m68020' flag to GCC prevents building anything better,
16528 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16531 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16532 # PIC is the default for these OSes.
16535 mingw* | cygwin* | pw32* | os2*)
16536 # This hack is so that the source file can tell whether it is being
16537 # built for inclusion in a dll (and should export symbols for example).
16538 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16539 # (--disable-auto-import) libraries
16543 darwin* | rhapsody*)
16544 # PIC is the default on this platform
16545 # Common symbols not allowed in MH_DYLIB files
16546 lt_prog_compiler_pic_GCJ='-fno-common'
16550 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16551 # Instead, we relocate shared libraries at runtime.
16555 # Just because we use GCC doesn't mean we suddenly get shared libraries
16556 # on systems that don't support them.
16557 lt_prog_compiler_can_build_shared_GCJ=no
16562 if test -d /usr/nec; then
16563 lt_prog_compiler_pic_GCJ=-Kconform_pic
16568 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16569 # not for PA HP-UX.
16575 lt_prog_compiler_pic_GCJ='-fPIC'
16581 lt_prog_compiler_pic_GCJ='-fPIC'
16585 # PORTME Check for flag to pass linker flags through the system compiler.
16588 lt_prog_compiler_wl_GCJ='-Wl,'
16589 if test "$host_cpu" = ia64; then
16590 # AIX 5 now supports IA64 processor
16591 lt_prog_compiler_static_GCJ='-Bstatic'
16593 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16597 # PIC is the default on this platform
16598 # Common symbols not allowed in MH_DYLIB files
16599 case $cc_basename in
16601 lt_prog_compiler_pic_GCJ='-qnocommon'
16602 lt_prog_compiler_wl_GCJ='-Wl,'
16607 mingw* | cygwin* | pw32* | os2*)
16608 # This hack is so that the source file can tell whether it is being
16609 # built for inclusion in a dll (and should export symbols for example).
16613 hpux9* | hpux10* | hpux11*)
16614 lt_prog_compiler_wl_GCJ='-Wl,'
16615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16616 # not for PA HP-UX.
16622 lt_prog_compiler_pic_GCJ='+Z'
16625 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16626 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16629 irix5* | irix6* | nonstopux*)
16630 lt_prog_compiler_wl_GCJ='-Wl,'
16631 # PIC (with -KPIC) is the default.
16632 lt_prog_compiler_static_GCJ='-non_shared'
16636 lt_prog_compiler_pic_GCJ='-KPIC'
16637 lt_prog_compiler_static_GCJ='-Bstatic'
16640 linux* | k*bsd*-gnu)
16641 case $cc_basename in
16643 lt_prog_compiler_wl_GCJ='-Wl,'
16644 lt_prog_compiler_pic_GCJ='-KPIC'
16645 lt_prog_compiler_static_GCJ='-static'
16647 pgcc* | pgf77* | pgf90* | pgf95*)
16648 # Portland Group compilers (*not* the Pentium gcc compiler,
16649 # which looks to be a dead project)
16650 lt_prog_compiler_wl_GCJ='-Wl,'
16651 lt_prog_compiler_pic_GCJ='-fpic'
16652 lt_prog_compiler_static_GCJ='-Bstatic'
16655 lt_prog_compiler_wl_GCJ='-Wl,'
16656 # All Alpha code is PIC.
16657 lt_prog_compiler_static_GCJ='-non_shared'
16660 case `$CC -V 2>&1 | sed 5q` in
16663 lt_prog_compiler_pic_GCJ='-KPIC'
16664 lt_prog_compiler_static_GCJ='-Bstatic'
16665 lt_prog_compiler_wl_GCJ='-Wl,'
16668 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16669 lt_prog_compiler_pic_GCJ='-KPIC'
16670 lt_prog_compiler_static_GCJ='-Bstatic'
16671 lt_prog_compiler_wl_GCJ=''
16678 osf3* | osf4* | osf5*)
16679 lt_prog_compiler_wl_GCJ='-Wl,'
16680 # All OSF/1 code is PIC.
16681 lt_prog_compiler_static_GCJ='-non_shared'
16685 lt_prog_compiler_static_GCJ='-non_shared'
16689 lt_prog_compiler_pic_GCJ='-KPIC'
16690 lt_prog_compiler_static_GCJ='-Bstatic'
16691 case $cc_basename in
16692 f77* | f90* | f95*)
16693 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16695 lt_prog_compiler_wl_GCJ='-Wl,';;
16700 lt_prog_compiler_wl_GCJ='-Qoption ld '
16701 lt_prog_compiler_pic_GCJ='-PIC'
16702 lt_prog_compiler_static_GCJ='-Bstatic'
16705 sysv4 | sysv4.2uw2* | sysv4.3*)
16706 lt_prog_compiler_wl_GCJ='-Wl,'
16707 lt_prog_compiler_pic_GCJ='-KPIC'
16708 lt_prog_compiler_static_GCJ='-Bstatic'
16712 if test -d /usr/nec ;then
16713 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16714 lt_prog_compiler_static_GCJ='-Bstatic'
16718 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16719 lt_prog_compiler_wl_GCJ='-Wl,'
16720 lt_prog_compiler_pic_GCJ='-KPIC'
16721 lt_prog_compiler_static_GCJ='-Bstatic'
16725 lt_prog_compiler_wl_GCJ='-Wl,'
16726 lt_prog_compiler_can_build_shared_GCJ=no
16730 lt_prog_compiler_pic_GCJ='-pic'
16731 lt_prog_compiler_static_GCJ='-Bstatic'
16735 lt_prog_compiler_can_build_shared_GCJ=no
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16741 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16744 # Check to make sure the PIC flag actually works.
16746 if test -n "$lt_prog_compiler_pic_GCJ"; then
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16749 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16750 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16751 $as_echo_n "(cached) " >&6
16753 lt_cv_prog_compiler_pic_works_GCJ=no
16754 ac_outfile=conftest.$ac_objext
16755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16756 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16757 # Insert the option either (1) after the last *FLAGS variable, or
16758 # (2) before a word containing "conftest.", or (3) at the end.
16759 # Note that $ac_compile itself does not contain backslashes and begins
16760 # with a dollar sign (not a hyphen), so the echo should work correctly.
16761 # The option is referenced via a variable to avoid confusing sed.
16762 lt_compile=`echo "$ac_compile" | $SED \
16763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16765 -e 's:$: $lt_compiler_flag:'`
16766 (eval echo "\"\$as_me:16766: $lt_compile\"" >&5)
16767 (eval "$lt_compile" 2>conftest.err)
16769 cat conftest.err >&5
16770 echo "$as_me:16770: \$? = $ac_status" >&5
16771 if (exit $ac_status) && test -s "$ac_outfile"; then
16772 # The compiler can only warn and ignore the option if not recognized
16773 # So say no if there are warnings other than the usual output.
16774 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16777 lt_cv_prog_compiler_pic_works_GCJ=yes
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16784 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16786 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16787 case $lt_prog_compiler_pic_GCJ in
16789 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16792 lt_prog_compiler_pic_GCJ=
16793 lt_prog_compiler_can_build_shared_GCJ=no
16798 # For platforms which do not support PIC, -DPIC is meaningless:
16800 lt_prog_compiler_pic_GCJ=
16803 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16808 # Check to make sure the static flag actually works.
16810 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16812 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16813 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16814 $as_echo_n "(cached) " >&6
16816 lt_cv_prog_compiler_static_works_GCJ=no
16817 save_LDFLAGS="$LDFLAGS"
16818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16819 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16821 # The linker can only warn and ignore the option if not recognized
16822 # So say no if there are warnings
16823 if test -s conftest.err; then
16824 # Append any errors to the config.log.
16825 cat conftest.err 1>&5
16826 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16828 if diff conftest.exp conftest.er2 >/dev/null; then
16829 lt_cv_prog_compiler_static_works_GCJ=yes
16832 lt_cv_prog_compiler_static_works_GCJ=yes
16836 LDFLAGS="$save_LDFLAGS"
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16840 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16842 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16845 lt_prog_compiler_static_GCJ=
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16851 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16852 $as_echo_n "(cached) " >&6
16854 lt_cv_prog_compiler_c_o_GCJ=no
16855 $rm -r conftest 2>/dev/null
16859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16861 lt_compiler_flag="-o out/conftest2.$ac_objext"
16862 # Insert the option either (1) after the last *FLAGS variable, or
16863 # (2) before a word containing "conftest.", or (3) at the end.
16864 # Note that $ac_compile itself does not contain backslashes and begins
16865 # with a dollar sign (not a hyphen), so the echo should work correctly.
16866 lt_compile=`echo "$ac_compile" | $SED \
16867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16869 -e 's:$: $lt_compiler_flag:'`
16870 (eval echo "\"\$as_me:16870: $lt_compile\"" >&5)
16871 (eval "$lt_compile" 2>out/conftest.err)
16873 cat out/conftest.err >&5
16874 echo "$as_me:16874: \$? = $ac_status" >&5
16875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16877 # The compiler can only warn and ignore the option if not recognized
16878 # So say no if there are warnings
16879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16882 lt_cv_prog_compiler_c_o_GCJ=yes
16887 # SGI C++ compiler will create directory out/ii_files/ for
16888 # template instantiation
16889 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16890 $rm out/* && rmdir out
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16897 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16900 hard_links="nottested"
16901 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16902 # do not overwrite the value of need_locks provided by the user
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16904 $as_echo_n "checking if we can lock with hard links... " >&6; }
16907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16909 ln conftest.a conftest.b 2>&5 || hard_links=no
16910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16912 $as_echo "$hard_links" >&6; }
16913 if test "$hard_links" = no; then
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16915 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16923 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16926 allow_undefined_flag_GCJ=
16927 enable_shared_with_static_runtimes_GCJ=no
16929 archive_expsym_cmds_GCJ=
16930 old_archive_From_new_cmds_GCJ=
16931 old_archive_from_expsyms_cmds_GCJ=
16932 export_dynamic_flag_spec_GCJ=
16933 whole_archive_flag_spec_GCJ=
16934 thread_safe_flag_spec_GCJ=
16935 hardcode_libdir_flag_spec_GCJ=
16936 hardcode_libdir_flag_spec_ld_GCJ=
16937 hardcode_libdir_separator_GCJ=
16938 hardcode_direct_GCJ=no
16939 hardcode_minus_L_GCJ=no
16940 hardcode_shlibpath_var_GCJ=unsupported
16941 link_all_deplibs_GCJ=unknown
16942 hardcode_automatic_GCJ=no
16944 module_expsym_cmds_GCJ=
16945 always_export_symbols_GCJ=no
16946 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16947 # include_expsyms should be a list of space-separated symbols to be *always*
16948 # included in the symbol list
16949 include_expsyms_GCJ=
16950 # exclude_expsyms can be an extended regexp of symbols to exclude
16951 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16953 # as well as any symbol that contains `d'.
16954 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16956 # platforms (ab)use it in PIC code, but their linkers get confused if
16957 # the symbol is explicitly referenced. Since portable code cannot
16958 # rely on this symbol name, it's probably fine to never include it in
16959 # preloaded symbol tables.
16960 # Exclude shared library initialization/finalization symbols.
16961 extract_expsyms_cmds=
16962 # Just being paranoid about ensuring that cc_basename is set.
16963 for cc_temp in $compiler""; do
16965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16974 cygwin* | mingw* | pw32*)
16975 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16976 # When not using gcc, we currently assume that we are using
16977 # Microsoft Visual C++.
16978 if test "$GCC" != yes; then
16983 # we just hope/assume this is gcc and not c89 (= MSVC++)
16992 if test "$with_gnu_ld" = yes; then
16993 # If archive_cmds runs LD, not CC, wlarc should be empty
16996 # Set some defaults for GNU ld with shared library support. These
16997 # are reset later if shared libraries are not supported. Putting them
16998 # here allows them to be overridden if necessary.
16999 runpath_var=LD_RUN_PATH
17000 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17001 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17002 # ancient GNU ld didn't support --whole-archive et. al.
17003 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17004 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17006 whole_archive_flag_spec_GCJ=
17008 supports_anon_versioning=no
17009 case `$LD -v 2>/dev/null` in
17010 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17011 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17012 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17013 *\ 2.11.*) ;; # other 2.11 versions
17014 *) supports_anon_versioning=yes ;;
17017 # See if GNU ld supports shared libraries.
17020 # On AIX/PPC, the GNU linker is very broken
17021 if test "$host_cpu" != ia64; then
17025 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17026 *** to be unable to reliably create shared libraries on AIX.
17027 *** Therefore, libtool is disabling shared libraries support. If you
17028 *** really care for shared libraries, you may want to modify your PATH
17029 *** so that a non-GNU linker is found, and then restart.
17036 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)'
17037 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17038 hardcode_minus_L_GCJ=yes
17040 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17041 # that the semantics of dynamic libraries on AmigaOS, at least up
17042 # to version 4, is to share data among multiple programs linked
17043 # with the same dynamic library. Since this doesn't match the
17044 # behavior of shared libraries on other platforms, we can't use
17050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17051 allow_undefined_flag_GCJ=unsupported
17052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17053 # support --undefined. This deserves some investigation. FIXME
17054 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17060 cygwin* | mingw* | pw32*)
17061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17062 # as there is no search path for DLLs.
17063 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17064 allow_undefined_flag_GCJ=unsupported
17065 always_export_symbols_GCJ=no
17066 enable_shared_with_static_runtimes_GCJ=yes
17067 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17069 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17070 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17071 # If the export-symbols file already is a .def file (1st line
17072 # is EXPORTS), use it as is; otherwise, prepend...
17073 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17074 cp $export_symbols $output_objdir/$soname.def;
17076 echo EXPORTS > $output_objdir/$soname.def;
17077 cat $export_symbols >> $output_objdir/$soname.def;
17079 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17086 hardcode_direct_GCJ=no
17087 hardcode_shlibpath_var_GCJ=no
17088 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17089 export_dynamic_flag_spec_GCJ='${wl}-E'
17090 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17091 # Instead, shared libraries are loaded at an image base (0x10000000 by
17092 # default) and relocated if they conflict, which is a slow very memory
17093 # consuming and fragmenting process. To avoid this, we pick a random,
17094 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17095 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17096 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'
17097 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'
17100 gnu* | linux* | k*bsd*-gnu)
17101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17103 case $cc_basename,$host_cpu in
17104 pgcc*) # Portland Group C compiler
17105 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'
17106 tmp_addflag=' $pic_flag'
17108 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17109 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'
17110 tmp_addflag=' $pic_flag -Mnomain' ;;
17111 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17112 tmp_addflag=' -i_dynamic' ;;
17113 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17114 tmp_addflag=' -i_dynamic -nofor_main' ;;
17115 ifc* | ifort*) # Intel Fortran compiler
17116 tmp_addflag=' -nofor_main' ;;
17118 case `$CC -V 2>&1 | sed 5q` in
17119 *Sun\ C*) # Sun C 5.9
17120 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'
17121 tmp_sharedflag='-G' ;;
17122 *Sun\ F*) # Sun Fortran 8.3
17123 tmp_sharedflag='-G' ;;
17125 tmp_sharedflag='-shared' ;;
17127 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17129 if test $supports_anon_versioning = yes; then
17130 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17131 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17132 $echo "local: *; };" >> $output_objdir/$libname.ver~
17133 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17135 link_all_deplibs_GCJ=no
17141 netbsd* | netbsdelf*-gnu)
17142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17143 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17147 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17152 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17157 *** create shared libraries on Solaris systems. Therefore, libtool
17158 *** is disabling shared libraries support. We urge you to upgrade GNU
17159 *** binutils to release 2.9.1 or newer. Another option is to modify
17160 *** your PATH or compiler configuration so that the native linker is
17161 *** used, and then restart.
17164 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17165 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17166 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17173 case `$LD -v 2>&1` in
17174 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17178 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17179 *** reliably create shared libraries on SCO systems. Therefore, libtool
17180 *** is disabling shared libraries support. We urge you to upgrade GNU
17181 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17182 *** your PATH or compiler configuration so that the native linker is
17183 *** used, and then restart.
17188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17189 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17190 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17191 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17200 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17202 hardcode_direct_GCJ=yes
17203 hardcode_shlibpath_var_GCJ=no
17207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17208 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17209 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17216 if test "$ld_shlibs_GCJ" = no; then
17218 hardcode_libdir_flag_spec_GCJ=
17219 export_dynamic_flag_spec_GCJ=
17220 whole_archive_flag_spec_GCJ=
17223 # PORTME fill in a description of your system's linker (not GNU ld)
17226 allow_undefined_flag_GCJ=unsupported
17227 always_export_symbols_GCJ=yes
17228 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'
17229 # Note: this linker hardcodes the directories in LIBPATH if there
17230 # are no directories specified by -L.
17231 hardcode_minus_L_GCJ=yes
17232 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17233 # Neither direct hardcoding nor static linking is supported with a
17235 hardcode_direct_GCJ=unsupported
17240 if test "$host_cpu" = ia64; then
17241 # On IA64, the linker does run time linking by default, so we don't
17242 # have to do anything special.
17243 aix_use_runtimelinking=no
17244 exp_sym_flag='-Bexport'
17247 # If we're using GNU nm, then we don't want the "-C" option.
17248 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17249 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17250 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'
17252 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'
17254 aix_use_runtimelinking=no
17256 # Test if we are trying to use run time linking or normal
17257 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17258 # need to do runtime linking.
17259 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17260 for ld_flag in $LDFLAGS; do
17261 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17262 aix_use_runtimelinking=yes
17269 exp_sym_flag='-bexport'
17270 no_entry_flag='-bnoentry'
17273 # When large executables or shared objects are built, AIX ld can
17274 # have problems creating the table of contents. If linking a library
17275 # or program results in "error TOC overflow" add -mminimal-toc to
17276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17279 archive_cmds_GCJ=''
17280 hardcode_direct_GCJ=yes
17281 hardcode_libdir_separator_GCJ=':'
17282 link_all_deplibs_GCJ=yes
17284 if test "$GCC" = yes; then
17285 case $host_os in aix4.[012]|aix4.[012].*)
17286 # We only want to do this on AIX 4.2 and lower, the check
17287 # below for broken collect2 doesn't work under 4.3+
17288 collect2name=`${CC} -print-prog-name=collect2`
17289 if test -f "$collect2name" && \
17290 strings "$collect2name" | grep resolve_lib_name >/dev/null
17292 # We have reworked collect2
17295 # We have old collect2
17296 hardcode_direct_GCJ=unsupported
17297 # It fails to find uninstalled libraries when the uninstalled
17298 # path is not listed in the libpath. Setting hardcode_minus_L
17299 # to unsupported forces relinking
17300 hardcode_minus_L_GCJ=yes
17301 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17302 hardcode_libdir_separator_GCJ=
17306 shared_flag='-shared'
17307 if test "$aix_use_runtimelinking" = yes; then
17308 shared_flag="$shared_flag "'${wl}-G'
17312 if test "$host_cpu" = ia64; then
17313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17314 # chokes on -Wl,-G. The following line is correct:
17317 if test "$aix_use_runtimelinking" = yes; then
17318 shared_flag='${wl}-G'
17320 shared_flag='${wl}-bM:SRE'
17325 # It seems that -bexpall does not export symbols beginning with
17326 # underscore (_), so it is better to generate a list of symbols to export.
17327 always_export_symbols_GCJ=yes
17328 if test "$aix_use_runtimelinking" = yes; then
17329 # Warning - without using the other runtime loading flags (-brtl),
17330 # -berok will link without error, but may produce a broken library.
17331 allow_undefined_flag_GCJ='-berok'
17332 # Determine the default libpath from the value encoded in an empty executable.
17333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h. */
17344 if ac_fn_c_try_link "$LINENO"; then :
17346 lt_aix_libpath_sed='
17347 /Import File Strings/,/^$/ {
17353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17354 # Check for a 64-bit object if we didn't find anything.
17355 if test -z "$aix_libpath"; then
17356 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17359 rm -f core conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
17361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17363 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17364 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"
17366 if test "$host_cpu" = ia64; then
17367 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17368 allow_undefined_flag_GCJ="-z nodefs"
17369 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"
17371 # Determine the default libpath from the value encoded in an empty executable.
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17383 if ac_fn_c_try_link "$LINENO"; then :
17385 lt_aix_libpath_sed='
17386 /Import File Strings/,/^$/ {
17392 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17393 # Check for a 64-bit object if we didn't find anything.
17394 if test -z "$aix_libpath"; then
17395 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17398 rm -f core conftest.err conftest.$ac_objext \
17399 conftest$ac_exeext conftest.$ac_ext
17400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17402 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17403 # Warning - without using the other run time loading flags,
17404 # -berok will link without error, but may produce a broken library.
17405 no_undefined_flag_GCJ=' ${wl}-bernotok'
17406 allow_undefined_flag_GCJ=' ${wl}-berok'
17407 # Exported symbols can be pulled into shared objects from archives
17408 whole_archive_flag_spec_GCJ='$convenience'
17409 archive_cmds_need_lc_GCJ=yes
17410 # This is similar to how AIX traditionally builds its shared libraries.
17411 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'
17417 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)'
17418 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17419 hardcode_minus_L_GCJ=yes
17420 # see comment about different semantics on the GNU ld section
17425 export_dynamic_flag_spec_GCJ=-rdynamic
17428 cygwin* | mingw* | pw32*)
17429 # When not using gcc, we currently assume that we are using
17430 # Microsoft Visual C++.
17431 # hardcode_libdir_flag_spec is actually meaningless, as there is
17432 # no search path for DLLs.
17433 hardcode_libdir_flag_spec_GCJ=' '
17434 allow_undefined_flag_GCJ=unsupported
17435 # Tell ltmain to make .lib files, not .a files.
17437 # Tell ltmain to make .dll files, not .so files.
17439 # FIXME: Setting linknames here is a bad hack.
17440 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17441 # The linker will automatically build a .lib file if we build a DLL.
17442 old_archive_From_new_cmds_GCJ='true'
17443 # FIXME: Should let the user specify the lib program.
17444 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17445 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17446 enable_shared_with_static_runtimes_GCJ=yes
17449 darwin* | rhapsody*)
17451 rhapsody* | darwin1.[012])
17452 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17455 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17456 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17458 case ${MACOSX_DEPLOYMENT_TARGET} in
17460 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17463 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17469 archive_cmds_need_lc_GCJ=no
17470 hardcode_direct_GCJ=no
17471 hardcode_automatic_GCJ=yes
17472 hardcode_shlibpath_var_GCJ=unsupported
17473 whole_archive_flag_spec_GCJ=''
17474 link_all_deplibs_GCJ=yes
17475 if test "$GCC" = yes ; then
17476 output_verbose_link_cmd='echo'
17477 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}"
17478 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17479 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}"
17480 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}"
17482 case $cc_basename in
17484 output_verbose_link_cmd='echo'
17485 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17486 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17488 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}'
17489 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}'
17499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17501 hardcode_shlibpath_var_GCJ=no
17508 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17509 # support. Future versions do this automatically, but an explicit c++rt0.o
17510 # does not break anything, and helps significantly (at the cost of a little
17513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17514 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17515 hardcode_direct_GCJ=yes
17516 hardcode_shlibpath_var_GCJ=no
17519 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17521 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17522 hardcode_direct_GCJ=yes
17523 hardcode_minus_L_GCJ=yes
17524 hardcode_shlibpath_var_GCJ=no
17527 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17528 freebsd* | dragonfly*)
17529 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17530 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17531 hardcode_direct_GCJ=yes
17532 hardcode_shlibpath_var_GCJ=no
17536 if test "$GCC" = yes; then
17537 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'
17539 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'
17541 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17542 hardcode_libdir_separator_GCJ=:
17543 hardcode_direct_GCJ=yes
17545 # hardcode_minus_L: Not really in the search PATH,
17546 # but as the default location of the library.
17547 hardcode_minus_L_GCJ=yes
17548 export_dynamic_flag_spec_GCJ='${wl}-E'
17552 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17553 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17555 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17557 if test "$with_gnu_ld" = no; then
17558 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17559 hardcode_libdir_separator_GCJ=:
17561 hardcode_direct_GCJ=yes
17562 export_dynamic_flag_spec_GCJ='${wl}-E'
17564 # hardcode_minus_L: Not really in the search PATH,
17565 # but as the default location of the library.
17566 hardcode_minus_L_GCJ=yes
17571 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17574 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17577 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17580 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17586 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17589 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17592 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17596 if test "$with_gnu_ld" = no; then
17597 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17598 hardcode_libdir_separator_GCJ=:
17602 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17603 hardcode_direct_GCJ=no
17604 hardcode_shlibpath_var_GCJ=no
17607 hardcode_direct_GCJ=yes
17608 export_dynamic_flag_spec_GCJ='${wl}-E'
17610 # hardcode_minus_L: Not really in the search PATH,
17611 # but as the default location of the library.
17612 hardcode_minus_L_GCJ=yes
17618 irix5* | irix6* | nonstopux*)
17619 if test "$GCC" = yes; then
17620 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'
17622 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'
17623 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17626 hardcode_libdir_separator_GCJ=:
17627 link_all_deplibs_GCJ=yes
17630 netbsd* | netbsdelf*-gnu)
17631 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17632 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17634 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17636 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17637 hardcode_direct_GCJ=yes
17638 hardcode_shlibpath_var_GCJ=no
17642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643 hardcode_direct_GCJ=yes
17644 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17645 hardcode_libdir_separator_GCJ=:
17646 hardcode_shlibpath_var_GCJ=no
17650 if test -f /usr/libexec/ld.so; then
17651 hardcode_direct_GCJ=yes
17652 hardcode_shlibpath_var_GCJ=no
17653 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17654 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17655 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17656 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17657 export_dynamic_flag_spec_GCJ='${wl}-E'
17660 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17661 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17662 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17665 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17666 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17676 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17677 hardcode_minus_L_GCJ=yes
17678 allow_undefined_flag_GCJ=unsupported
17679 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'
17680 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17684 if test "$GCC" = yes; then
17685 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17686 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'
17688 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17689 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'
17691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17692 hardcode_libdir_separator_GCJ=:
17695 osf4* | osf5*) # as osf3* with the addition of -msym flag
17696 if test "$GCC" = yes; then
17697 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17698 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'
17699 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17701 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17702 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'
17703 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~
17704 $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'
17706 # Both c and cxx compiler support -rpath directly
17707 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17709 hardcode_libdir_separator_GCJ=:
17713 no_undefined_flag_GCJ=' -z text'
17714 if test "$GCC" = yes; then
17716 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17717 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17718 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17721 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17722 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17723 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17725 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17726 hardcode_shlibpath_var_GCJ=no
17728 solaris2.[0-5] | solaris2.[0-5].*) ;;
17730 # The compiler driver will combine and reorder linker options,
17731 # but understands `-z linker_flag'. GCC discards it without `$wl',
17732 # but is careful enough not to reorder.
17733 # Supported since Solaris 2.6 (maybe 2.5.1?)
17734 if test "$GCC" = yes; then
17735 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17737 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17741 link_all_deplibs_GCJ=yes
17745 if test "x$host_vendor" = xsequent; then
17746 # Use $CC to link under sequent, because it throws in some extra .o
17747 # files that make .init and .fini sections work.
17748 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17750 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17752 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17753 hardcode_direct_GCJ=yes
17754 hardcode_minus_L_GCJ=yes
17755 hardcode_shlibpath_var_GCJ=no
17759 case $host_vendor in
17761 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17762 hardcode_direct_GCJ=yes # is this really true???
17765 ## LD is ld it makes a PLAMLIB
17766 ## CC just makes a GrossModule.
17767 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17768 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17769 hardcode_direct_GCJ=no
17772 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17773 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17776 runpath_var='LD_RUN_PATH'
17777 hardcode_shlibpath_var_GCJ=no
17781 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17782 hardcode_shlibpath_var_GCJ=no
17783 export_dynamic_flag_spec_GCJ='-Bexport'
17787 if test -d /usr/nec; then
17788 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17789 hardcode_shlibpath_var_GCJ=no
17790 runpath_var=LD_RUN_PATH
17791 hardcode_runpath_var=yes
17796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17797 no_undefined_flag_GCJ='${wl}-z,text'
17798 archive_cmds_need_lc_GCJ=no
17799 hardcode_shlibpath_var_GCJ=no
17800 runpath_var='LD_RUN_PATH'
17802 if test "$GCC" = yes; then
17803 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17804 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17806 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17807 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17811 sysv5* | sco3.2v5* | sco5v6*)
17812 # Note: We can NOT use -z defs as we might desire, because we do not
17813 # link with -lc, and that would cause any symbols used from libc to
17814 # always be unresolved, which means just about no library would
17815 # ever link correctly. If we're not using GNU ld we use -z text
17816 # though, which does catch some bad symbols but isn't as heavy-handed
17818 no_undefined_flag_GCJ='${wl}-z,text'
17819 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17820 archive_cmds_need_lc_GCJ=no
17821 hardcode_shlibpath_var_GCJ=no
17822 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17823 hardcode_libdir_separator_GCJ=':'
17824 link_all_deplibs_GCJ=yes
17825 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17826 runpath_var='LD_RUN_PATH'
17828 if test "$GCC" = yes; then
17829 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17830 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17832 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17833 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17838 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17840 hardcode_shlibpath_var_GCJ=no
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17850 $as_echo "$ld_shlibs_GCJ" >&6; }
17851 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17854 # Do we need to explicitly link libc?
17856 case "x$archive_cmds_need_lc_GCJ" in
17858 # Assume -lc should be added
17859 archive_cmds_need_lc_GCJ=yes
17861 if test "$enable_shared" = yes && test "$GCC" = yes; then
17862 case $archive_cmds_GCJ in
17864 # FIXME: we may have to deal with multi-command sequences.
17867 # Test whether the compiler implicitly links with -lc since on some
17868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17869 # to ld, don't add -lc before -lgcc.
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17871 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17876 (eval $ac_compile) 2>&5
17878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17879 test $ac_status = 0; } 2>conftest.err; then
17882 libobjs=conftest.$ac_objext
17884 wl=$lt_prog_compiler_wl_GCJ
17885 pic_flag=$lt_prog_compiler_pic_GCJ
17891 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17892 allow_undefined_flag_GCJ=
17893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17894 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17897 test $ac_status = 0; }
17899 archive_cmds_need_lc_GCJ=no
17901 archive_cmds_need_lc_GCJ=yes
17903 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17905 cat conftest.err 1>&5
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17909 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17917 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17918 library_names_spec=
17919 libname_spec='lib$name'
17923 postuninstall_cmds=
17927 shlibpath_overrides_runpath=unknown
17929 dynamic_linker="$host_os ld.so"
17930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17932 need_lib_prefix=unknown
17933 hardcode_into_libs=no
17935 # when you set need_version to no, make sure it does not cause -set_version
17936 # flags to be left without arguments
17937 need_version=unknown
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17943 shlibpath_var=LIBPATH
17945 # AIX 3 has no versioning support, so we append a major version to the name.
17946 soname_spec='${libname}${release}${shared_ext}$major'
17953 hardcode_into_libs=yes
17954 if test "$host_cpu" = ia64; then
17955 # AIX 5 supports IA64
17956 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17957 shlibpath_var=LD_LIBRARY_PATH
17959 # With GCC up to 2.95.x, collect2 would create an import file
17960 # for dependence libraries. The import file would start with
17961 # the line `#! .'. This would cause the generated library to
17962 # depend on `.', always an invalid library. This was fixed in
17963 # development snapshots of GCC prior to 3.0.
17965 aix4 | aix4.[01] | aix4.[01].*)
17966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17968 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17971 can_build_shared=no
17975 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17976 # soname into executable. Probably we can add versioning support to
17977 # collect2, so additional links can be useful in future.
17978 if test "$aix_use_runtimelinking" = yes; then
17979 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17980 # instead of lib<name>.a to let people know that these are not
17981 # typical AIX shared libraries.
17982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17984 # We preserve .a as extension for shared libraries through AIX4.2
17985 # and later when we are not doing run time linking.
17986 library_names_spec='${libname}${release}.a $libname.a'
17987 soname_spec='${libname}${release}${shared_ext}$major'
17989 shlibpath_var=LIBPATH
17994 library_names_spec='$libname.ixlibrary $libname.a'
17995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17996 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'
18000 library_names_spec='${libname}${shared_ext}'
18001 dynamic_linker="$host_os ld.so"
18002 shlibpath_var=LIBRARY_PATH
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18009 soname_spec='${libname}${release}${shared_ext}$major'
18010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18011 shlibpath_var=LD_LIBRARY_PATH
18012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18014 # the default ld.so.conf also contains /usr/contrib/lib and
18015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18016 # libtool to hard-code these into programs
18019 cygwin* | mingw* | pw32*)
18020 version_type=windows
18025 case $GCC,$host_os in
18026 yes,cygwin* | yes,mingw* | yes,pw32*)
18027 library_names_spec='$libname.dll.a'
18028 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18029 postinstall_cmds='base_file=`basename \${file}`~
18030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18031 dldir=$destdir/`dirname \$dlpath`~
18032 test -d \$dldir || mkdir -p \$dldir~
18033 $install_prog $dir/$dlname \$dldir/$dlname~
18034 chmod a+x \$dldir/$dlname'
18035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18036 dlpath=$dir/\$dldll~
18038 shlibpath_overrides_runpath=yes
18042 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18043 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18044 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18047 # MinGW DLLs use traditional 'lib' prefix
18048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18049 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18050 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18051 # It is most probably a Windows format PATH printed by
18052 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18053 # path with ; separators, and with drive letters. We can handle the
18054 # drive letters (cygwin fileutils understands them), so leave them,
18055 # especially as we might pass files found there to a mingw objdump,
18056 # which wouldn't understand a cygwinified path. Ahh.
18057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18063 # pw32 DLLs use 'pw' prefix rather than 'lib'
18064 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18070 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18073 dynamic_linker='Win32 ld.exe'
18074 # FIXME: first we should search . and the directory the executable is in
18078 darwin* | rhapsody*)
18079 dynamic_linker="$host_os dyld"
18080 version_type=darwin
18083 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18084 soname_spec='${libname}${release}${major}$shared_ext'
18085 shlibpath_overrides_runpath=yes
18086 shlibpath_var=DYLD_LIBRARY_PATH
18087 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18089 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18097 soname_spec='${libname}${release}${shared_ext}$major'
18098 shlibpath_var=LD_LIBRARY_PATH
18105 freebsd* | dragonfly*)
18106 # DragonFly does not have aout. When/if they implement a new
18107 # versioning mechanism, adjust this.
18108 if test -x /usr/bin/objformat; then
18109 objformat=`/usr/bin/objformat`
18112 freebsd[123]*) objformat=aout ;;
18113 *) objformat=elf ;;
18116 version_type=freebsd-$objformat
18117 case $version_type in
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18128 shlibpath_var=LD_LIBRARY_PATH
18131 shlibpath_overrides_runpath=yes
18133 freebsd3.[01]* | freebsdelf3.[01]*)
18134 shlibpath_overrides_runpath=yes
18135 hardcode_into_libs=yes
18137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18139 shlibpath_overrides_runpath=no
18140 hardcode_into_libs=yes
18142 *) # from 4.6 on, and DragonFly
18143 shlibpath_overrides_runpath=yes
18144 hardcode_into_libs=yes
18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18154 soname_spec='${libname}${release}${shared_ext}$major'
18155 shlibpath_var=LD_LIBRARY_PATH
18156 hardcode_into_libs=yes
18159 hpux9* | hpux10* | hpux11*)
18160 # Give a soname corresponding to the major version so that dld.sl refuses to
18161 # link against other versions.
18168 hardcode_into_libs=yes
18169 dynamic_linker="$host_os dld.so"
18170 shlibpath_var=LD_LIBRARY_PATH
18171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173 soname_spec='${libname}${release}${shared_ext}$major'
18174 if test "X$HPUX_IA64_MODE" = X32; then
18175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18183 hardcode_into_libs=yes
18184 dynamic_linker="$host_os dld.sl"
18185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18188 soname_spec='${libname}${release}${shared_ext}$major'
18189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18194 dynamic_linker="$host_os dld.sl"
18195 shlibpath_var=SHLIB_PATH
18196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18198 soname_spec='${libname}${release}${shared_ext}$major'
18201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18202 postinstall_cmds='chmod 555 $lib'
18209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18210 soname_spec='${libname}${release}${shared_ext}$major'
18211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18212 shlibpath_var=LD_LIBRARY_PATH
18213 shlibpath_overrides_runpath=no
18214 hardcode_into_libs=yes
18217 irix5* | irix6* | nonstopux*)
18219 nonstopux*) version_type=nonstopux ;;
18221 if test "$lt_cv_prog_gnu_ld" = yes; then
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18232 irix5* | nonstopux*)
18233 libsuff= shlibsuff=
18236 case $LD in # libtool.m4 will add one of these switches to LD
18237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18238 libsuff= shlibsuff= libmagic=32-bit;;
18239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18240 libsuff=32 shlibsuff=N32 libmagic=N32;;
18241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18243 *) libsuff= shlibsuff= libmagic=never-match;;
18247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18248 shlibpath_overrides_runpath=no
18249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18251 hardcode_into_libs=yes
18254 # No shared lib support for Linux oldld, aout, or coff.
18255 linux*oldld* | linux*aout* | linux*coff*)
18259 # This must be Linux ELF.
18260 linux* | k*bsd*-gnu)
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18265 soname_spec='${libname}${release}${shared_ext}$major'
18266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18267 shlibpath_var=LD_LIBRARY_PATH
18268 shlibpath_overrides_runpath=no
18269 # This implies no fast_install, which is unacceptable.
18270 # Some rework will be needed to allow for fast_install
18271 # before this can be enabled.
18272 hardcode_into_libs=yes
18274 # Append ld.so.conf contents to the search path
18275 if test -f /etc/ld.so.conf; then
18276 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' ' '`
18277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18280 # We used to test for /lib/ld.so.1 and disable shared libraries on
18281 # powerpc, because MkLinux only supported shared libraries with the
18282 # GNU dynamic linker. Since this was broken with cross compilers,
18283 # most powerpc-linux boxes support dynamic linking these days and
18284 # people can always --disable-shared, the test was removed, and we
18285 # assume the GNU/Linux dynamic linker is in use.
18286 dynamic_linker='GNU/Linux ld.so'
18293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18294 soname_spec='${libname}${release}${shared_ext}$major'
18295 shlibpath_var=LD_LIBRARY_PATH
18296 shlibpath_overrides_runpath=no
18297 hardcode_into_libs=yes
18298 dynamic_linker='NetBSD ld.elf_so'
18305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18308 dynamic_linker='NetBSD (a.out) ld.so'
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18311 soname_spec='${libname}${release}${shared_ext}$major'
18312 dynamic_linker='NetBSD ld.elf_so'
18314 shlibpath_var=LD_LIBRARY_PATH
18315 shlibpath_overrides_runpath=yes
18316 hardcode_into_libs=yes
18321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 shlibpath_overrides_runpath=yes
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18331 soname_spec='${libname}${release}${shared_ext}$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 shlibpath_overrides_runpath=yes
18338 sys_lib_dlsearch_path_spec="/usr/lib"
18340 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18342 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18343 *) need_version=no ;;
18345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18347 shlibpath_var=LD_LIBRARY_PATH
18348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18350 openbsd2.[89] | openbsd2.[89].*)
18351 shlibpath_overrides_runpath=no
18354 shlibpath_overrides_runpath=yes
18358 shlibpath_overrides_runpath=yes
18363 libname_spec='$name'
18366 library_names_spec='$libname${shared_ext} $libname.a'
18367 dynamic_linker='OS/2 ld.exe'
18368 shlibpath_var=LIBPATH
18371 osf3* | osf4* | osf5*)
18375 soname_spec='${libname}${release}${shared_ext}$major'
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377 shlibpath_var=LD_LIBRARY_PATH
18378 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18379 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18391 soname_spec='${libname}${release}${shared_ext}$major'
18392 shlibpath_var=LD_LIBRARY_PATH
18393 shlibpath_overrides_runpath=yes
18394 hardcode_into_libs=yes
18395 # ldd complains unless libraries are executable
18396 postinstall_cmds='chmod +x $lib'
18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18402 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18403 shlibpath_var=LD_LIBRARY_PATH
18404 shlibpath_overrides_runpath=yes
18405 if test "$with_gnu_ld" = yes; then
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414 soname_spec='${libname}${release}${shared_ext}$major'
18415 shlibpath_var=LD_LIBRARY_PATH
18416 case $host_vendor in
18418 shlibpath_overrides_runpath=no
18420 export_dynamic_flag_spec='${wl}-Blargedynsym'
18421 runpath_var=LD_RUN_PATH
18429 shlibpath_overrides_runpath=no
18430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18436 if test -d /usr/nec ;then
18438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18439 soname_spec='$libname${shared_ext}.$major'
18440 shlibpath_var=LD_LIBRARY_PATH
18444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18445 version_type=freebsd-elf
18448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18449 soname_spec='${libname}${release}${shared_ext}$major'
18450 shlibpath_var=LD_LIBRARY_PATH
18451 hardcode_into_libs=yes
18452 if test "$with_gnu_ld" = yes; then
18453 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18454 shlibpath_overrides_runpath=no
18456 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18457 shlibpath_overrides_runpath=yes
18460 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18464 sys_lib_dlsearch_path_spec='/usr/lib'
18469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18470 soname_spec='${libname}${release}${shared_ext}$major'
18471 shlibpath_var=LD_LIBRARY_PATH
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18479 $as_echo "$dynamic_linker" >&6; }
18480 test "$dynamic_linker" = no && can_build_shared=no
18482 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18483 $as_echo_n "(cached) " >&6
18485 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18488 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18489 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18490 $as_echo_n "(cached) " >&6
18492 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18495 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18498 if test "$GCC" = yes; then
18499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18503 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18504 hardcode_action_GCJ=
18505 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18506 test -n "$runpath_var_GCJ" || \
18507 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18509 # We can hardcode non-existant directories.
18510 if test "$hardcode_direct_GCJ" != no &&
18511 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18512 # have to relink, otherwise we might link with an installed library
18513 # when we should be linking with a yet-to-be-installed one
18514 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18515 test "$hardcode_minus_L_GCJ" != no; then
18516 # Linking always hardcodes the temporary library directory.
18517 hardcode_action_GCJ=relink
18519 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18520 hardcode_action_GCJ=immediate
18523 # We cannot hardcode anything, or else we can only hardcode existing
18525 hardcode_action_GCJ=unsupported
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18528 $as_echo "$hardcode_action_GCJ" >&6; }
18530 if test "$hardcode_action_GCJ" = relink; then
18531 # Fast installation is not supported
18532 enable_fast_install=no
18533 elif test "$shlibpath_overrides_runpath" = yes ||
18534 test "$enable_shared" = no; then
18535 # Fast installation is not necessary
18536 enable_fast_install=needless
18540 # The else clause should only fire when bootstrapping the
18541 # libtool distribution, otherwise you forgot to ship ltmain.sh
18542 # with your package, and you will get complaints that there are
18543 # no rules to generate ltmain.sh.
18544 if test -f "$ltmain"; then
18545 # See if we are running on zsh, and set the options which allow our commands through
18546 # without removal of \ escapes.
18547 if test -n "${ZSH_VERSION+set}" ; then
18548 setopt NO_GLOB_SUBST
18550 # Now quote all the things that may contain metacharacters while being
18551 # careful not to overquote the AC_SUBSTed values. We take copies of the
18552 # variables and quote the copies for generation of the libtool script.
18553 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18555 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18556 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18557 deplibs_check_method reload_flag reload_cmds need_locks \
18558 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18559 lt_cv_sys_global_symbol_to_c_name_address \
18560 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18561 old_postinstall_cmds old_postuninstall_cmds \
18565 lt_prog_compiler_wl_GCJ \
18566 lt_prog_compiler_pic_GCJ \
18567 lt_prog_compiler_static_GCJ \
18568 lt_prog_compiler_no_builtin_flag_GCJ \
18569 export_dynamic_flag_spec_GCJ \
18570 thread_safe_flag_spec_GCJ \
18571 whole_archive_flag_spec_GCJ \
18572 enable_shared_with_static_runtimes_GCJ \
18573 old_archive_cmds_GCJ \
18574 old_archive_from_new_cmds_GCJ \
18575 predep_objects_GCJ \
18576 postdep_objects_GCJ \
18579 compiler_lib_search_path_GCJ \
18580 compiler_lib_search_dirs_GCJ \
18582 archive_expsym_cmds_GCJ \
18583 postinstall_cmds_GCJ \
18584 postuninstall_cmds_GCJ \
18585 old_archive_from_expsyms_cmds_GCJ \
18586 allow_undefined_flag_GCJ \
18587 no_undefined_flag_GCJ \
18588 export_symbols_cmds_GCJ \
18589 hardcode_libdir_flag_spec_GCJ \
18590 hardcode_libdir_flag_spec_ld_GCJ \
18591 hardcode_libdir_separator_GCJ \
18592 hardcode_automatic_GCJ \
18594 module_expsym_cmds_GCJ \
18595 lt_cv_prog_compiler_c_o_GCJ \
18596 fix_srcfile_path_GCJ \
18597 exclude_expsyms_GCJ \
18598 include_expsyms_GCJ; do
18601 old_archive_cmds_GCJ | \
18602 old_archive_from_new_cmds_GCJ | \
18603 archive_cmds_GCJ | \
18604 archive_expsym_cmds_GCJ | \
18605 module_cmds_GCJ | \
18606 module_expsym_cmds_GCJ | \
18607 old_archive_from_expsyms_cmds_GCJ | \
18608 export_symbols_cmds_GCJ | \
18609 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18610 postinstall_cmds | postuninstall_cmds | \
18611 old_postinstall_cmds | old_postuninstall_cmds | \
18612 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18613 # Double-quote double-evaled strings.
18614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18623 *'\$0 --fallback-echo"')
18624 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18630 cat <<__EOF__ >> "$cfgfile"
18631 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18633 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18635 # Shell to use when invoking shell scripts.
18638 # Whether or not to build shared libraries.
18639 build_libtool_libs=$enable_shared
18641 # Whether or not to build static libraries.
18642 build_old_libs=$enable_static
18644 # Whether or not to add -lc for building shared libraries.
18645 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18647 # Whether or not to disallow shared libs when runtime libs are static
18648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18650 # Whether or not to optimize for fast installation.
18651 fast_install=$enable_fast_install
18654 host_alias=$host_alias
18658 # The build system.
18659 build_alias=$build_alias
18663 # An echo program that does not interpret backslashes.
18668 AR_FLAGS=$lt_AR_FLAGS
18673 # LTCC compiler flags.
18674 LTCFLAGS=$lt_LTCFLAGS
18676 # A language-specific compiler.
18677 CC=$lt_compiler_GCJ
18679 # Is the compiler the GNU C compiler?
18685 # The linker used to build libraries.
18688 # Whether we need hard or soft links.
18691 # A BSD-compatible nm program.
18694 # A symbol stripping program
18697 # Used to examine libraries when file_magic_cmd begins "file"
18698 MAGIC_CMD=$MAGIC_CMD
18700 # Used on cygwin: DLL creation program.
18703 # Used on cygwin: object dumper.
18706 # Used on cygwin: assembler.
18709 # The name of the directory that contains temporary libtool files.
18712 # How to create reloadable object files.
18713 reload_flag=$lt_reload_flag
18714 reload_cmds=$lt_reload_cmds
18716 # How to pass a linker flag through the compiler.
18717 wl=$lt_lt_prog_compiler_wl_GCJ
18719 # Object file suffix (normally "o").
18720 objext="$ac_objext"
18722 # Old archive suffix (normally "a").
18725 # Shared library suffix (normally ".so").
18726 shrext_cmds='$shrext_cmds'
18728 # Executable file suffix (normally "").
18731 # Additional compiler flags for building library objects.
18732 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18735 # What is the maximum length of a command?
18736 max_cmd_len=$lt_cv_sys_max_cmd_len
18738 # Does compiler simultaneously support -c and -o options?
18739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18741 # Must we lock files when doing compilation?
18742 need_locks=$lt_need_locks
18744 # Do we need the lib prefix for modules?
18745 need_lib_prefix=$need_lib_prefix
18747 # Do we need a version for libraries?
18748 need_version=$need_version
18750 # Whether dlopen is supported.
18751 dlopen_support=$enable_dlopen
18753 # Whether dlopen of programs is supported.
18754 dlopen_self=$enable_dlopen_self
18756 # Whether dlopen of statically linked programs is supported.
18757 dlopen_self_static=$enable_dlopen_self_static
18759 # Compiler flag to prevent dynamic linking.
18760 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18762 # Compiler flag to turn off builtin functions.
18763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18765 # Compiler flag to allow reflexive dlopens.
18766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18768 # Compiler flag to generate shared objects directly from archives.
18769 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18771 # Compiler flag to generate thread-safe objects.
18772 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18774 # Library versioning type.
18775 version_type=$version_type
18777 # Format of library name prefix.
18778 libname_spec=$lt_libname_spec
18780 # List of archive names. First name is the real one, the rest are links.
18781 # The last name is the one that the linker finds with -lNAME.
18782 library_names_spec=$lt_library_names_spec
18784 # The coded name of the library, if different from the real name.
18785 soname_spec=$lt_soname_spec
18787 # Commands used to build and install an old-style archive.
18789 old_archive_cmds=$lt_old_archive_cmds_GCJ
18790 old_postinstall_cmds=$lt_old_postinstall_cmds
18791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18793 # Create an old-style archive from a shared archive.
18794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18796 # Create a temporary old-style archive to link instead of a shared archive.
18797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18799 # Commands used to build and install a shared archive.
18800 archive_cmds=$lt_archive_cmds_GCJ
18801 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18802 postinstall_cmds=$lt_postinstall_cmds
18803 postuninstall_cmds=$lt_postuninstall_cmds
18805 # Commands used to build a loadable module (assumed same as above if empty)
18806 module_cmds=$lt_module_cmds_GCJ
18807 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18809 # Commands to strip libraries.
18810 old_striplib=$lt_old_striplib
18811 striplib=$lt_striplib
18813 # Dependencies to place before the objects being linked to create a
18815 predep_objects=$lt_predep_objects_GCJ
18817 # Dependencies to place after the objects being linked to create a
18819 postdep_objects=$lt_postdep_objects_GCJ
18821 # Dependencies to place before the objects being linked to create a
18823 predeps=$lt_predeps_GCJ
18825 # Dependencies to place after the objects being linked to create a
18827 postdeps=$lt_postdeps_GCJ
18829 # The directories searched by this compiler when creating a shared
18831 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18833 # The library search path used internally by the compiler when linking
18834 # a shared library.
18835 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18837 # Method to check whether dependent libraries are shared objects.
18838 deplibs_check_method=$lt_deplibs_check_method
18840 # Command to use when deplibs_check_method == file_magic.
18841 file_magic_cmd=$lt_file_magic_cmd
18843 # Flag that allows shared libraries with undefined symbols to be built.
18844 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18846 # Flag that forces no undefined symbols.
18847 no_undefined_flag=$lt_no_undefined_flag_GCJ
18849 # Commands used to finish a libtool library installation in a directory.
18850 finish_cmds=$lt_finish_cmds
18852 # Same as above, but a single script fragment to be evaled but not shown.
18853 finish_eval=$lt_finish_eval
18855 # Take the output of nm and produce a listing of raw symbols and C names.
18856 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18858 # Transform the output of nm in a proper C declaration
18859 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18861 # Transform the output of nm in a C name address pair
18862 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18864 # This is the shared library runtime path variable.
18865 runpath_var=$runpath_var
18867 # This is the shared library path variable.
18868 shlibpath_var=$shlibpath_var
18870 # Is shlibpath searched before the hard-coded library search path?
18871 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18873 # How to hardcode a shared library path into an executable.
18874 hardcode_action=$hardcode_action_GCJ
18876 # Whether we should hardcode library paths into libraries.
18877 hardcode_into_libs=$hardcode_into_libs
18879 # Flag to hardcode \$libdir into a binary during linking.
18880 # This must work even if \$libdir does not exist.
18881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18883 # If ld is used when linking, flag to hardcode \$libdir into
18884 # a binary during linking. This must work even if \$libdir does
18886 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18888 # Whether we need a single -rpath flag with a separated argument.
18889 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18891 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18892 # resulting binary.
18893 hardcode_direct=$hardcode_direct_GCJ
18895 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18896 # resulting binary.
18897 hardcode_minus_L=$hardcode_minus_L_GCJ
18899 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18900 # the resulting binary.
18901 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18903 # Set to yes if building a shared library automatically hardcodes DIR into the library
18904 # and all subsequent libraries and executables linked against it.
18905 hardcode_automatic=$hardcode_automatic_GCJ
18907 # Variables whose values should be saved in libtool wrapper scripts and
18908 # restored at relink time.
18909 variables_saved_for_relink="$variables_saved_for_relink"
18911 # Whether libtool must link a program against all its dependency libraries.
18912 link_all_deplibs=$link_all_deplibs_GCJ
18914 # Compile-time system search path for libraries
18915 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18917 # Run-time system search path for libraries
18918 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18920 # Fix the shell variable \$srcfile for the compiler.
18921 fix_srcfile_path=$lt_fix_srcfile_path
18923 # Set to yes if exported symbols are required.
18924 always_export_symbols=$always_export_symbols_GCJ
18926 # The commands to list exported symbols.
18927 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18929 # The commands to extract the exported symbol list from a shared archive.
18930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18932 # Symbols that should not be listed in the preloaded symbols.
18933 exclude_expsyms=$lt_exclude_expsyms_GCJ
18935 # Symbols that must always be exported.
18936 include_expsyms=$lt_include_expsyms_GCJ
18938 # ### END LIBTOOL TAG CONFIG: $tagname
18944 # If there is no Makefile yet, we rely on a make rule to execute
18945 # `config.status --recheck' to rerun these tests and create the
18946 # libtool script then.
18947 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18948 if test -f "$ltmain_in"; then
18949 test -f Makefile && make "$ltmain"
18955 ac_cpp='$CPP $CPPFLAGS'
18956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18970 # Source file extension for RC test sources.
18973 # Object file extension for compiled RC test sources.
18977 # Code to be used in simple compile tests
18978 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18980 # Code to be used in simple link tests
18981 lt_simple_link_test_code="$lt_simple_compile_test_code"
18983 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18985 # If no C compiler was specified, use CC.
18988 # If no C compiler flags were specified, use CFLAGS.
18989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18991 # Allow CC to be a program name with arguments.
18995 # save warnings/boilerplate of simple test code
18996 ac_outfile=conftest.$ac_objext
18997 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18999 _lt_compiler_boilerplate=`cat conftest.err`
19002 ac_outfile=conftest.$ac_objext
19003 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19005 _lt_linker_boilerplate=`cat conftest.err`
19009 # Allow CC to be a program name with arguments.
19014 for cc_temp in $compiler""; do
19016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19022 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19024 lt_cv_prog_compiler_c_o_RC=yes
19026 # The else clause should only fire when bootstrapping the
19027 # libtool distribution, otherwise you forgot to ship ltmain.sh
19028 # with your package, and you will get complaints that there are
19029 # no rules to generate ltmain.sh.
19030 if test -f "$ltmain"; then
19031 # See if we are running on zsh, and set the options which allow our commands through
19032 # without removal of \ escapes.
19033 if test -n "${ZSH_VERSION+set}" ; then
19034 setopt NO_GLOB_SUBST
19036 # Now quote all the things that may contain metacharacters while being
19037 # careful not to overquote the AC_SUBSTed values. We take copies of the
19038 # variables and quote the copies for generation of the libtool script.
19039 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19041 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19042 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19043 deplibs_check_method reload_flag reload_cmds need_locks \
19044 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19045 lt_cv_sys_global_symbol_to_c_name_address \
19046 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19047 old_postinstall_cmds old_postuninstall_cmds \
19051 lt_prog_compiler_wl_RC \
19052 lt_prog_compiler_pic_RC \
19053 lt_prog_compiler_static_RC \
19054 lt_prog_compiler_no_builtin_flag_RC \
19055 export_dynamic_flag_spec_RC \
19056 thread_safe_flag_spec_RC \
19057 whole_archive_flag_spec_RC \
19058 enable_shared_with_static_runtimes_RC \
19059 old_archive_cmds_RC \
19060 old_archive_from_new_cmds_RC \
19061 predep_objects_RC \
19062 postdep_objects_RC \
19065 compiler_lib_search_path_RC \
19066 compiler_lib_search_dirs_RC \
19068 archive_expsym_cmds_RC \
19069 postinstall_cmds_RC \
19070 postuninstall_cmds_RC \
19071 old_archive_from_expsyms_cmds_RC \
19072 allow_undefined_flag_RC \
19073 no_undefined_flag_RC \
19074 export_symbols_cmds_RC \
19075 hardcode_libdir_flag_spec_RC \
19076 hardcode_libdir_flag_spec_ld_RC \
19077 hardcode_libdir_separator_RC \
19078 hardcode_automatic_RC \
19080 module_expsym_cmds_RC \
19081 lt_cv_prog_compiler_c_o_RC \
19082 fix_srcfile_path_RC \
19083 exclude_expsyms_RC \
19084 include_expsyms_RC; do
19087 old_archive_cmds_RC | \
19088 old_archive_from_new_cmds_RC | \
19089 archive_cmds_RC | \
19090 archive_expsym_cmds_RC | \
19092 module_expsym_cmds_RC | \
19093 old_archive_from_expsyms_cmds_RC | \
19094 export_symbols_cmds_RC | \
19095 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19096 postinstall_cmds | postuninstall_cmds | \
19097 old_postinstall_cmds | old_postuninstall_cmds | \
19098 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19099 # Double-quote double-evaled strings.
19100 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19103 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19109 *'\$0 --fallback-echo"')
19110 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19116 cat <<__EOF__ >> "$cfgfile"
19117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19121 # Shell to use when invoking shell scripts.
19124 # Whether or not to build shared libraries.
19125 build_libtool_libs=$enable_shared
19127 # Whether or not to build static libraries.
19128 build_old_libs=$enable_static
19130 # Whether or not to add -lc for building shared libraries.
19131 build_libtool_need_lc=$archive_cmds_need_lc_RC
19133 # Whether or not to disallow shared libs when runtime libs are static
19134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19136 # Whether or not to optimize for fast installation.
19137 fast_install=$enable_fast_install
19140 host_alias=$host_alias
19144 # The build system.
19145 build_alias=$build_alias
19149 # An echo program that does not interpret backslashes.
19154 AR_FLAGS=$lt_AR_FLAGS
19159 # LTCC compiler flags.
19160 LTCFLAGS=$lt_LTCFLAGS
19162 # A language-specific compiler.
19165 # Is the compiler the GNU C compiler?
19171 # The linker used to build libraries.
19174 # Whether we need hard or soft links.
19177 # A BSD-compatible nm program.
19180 # A symbol stripping program
19183 # Used to examine libraries when file_magic_cmd begins "file"
19184 MAGIC_CMD=$MAGIC_CMD
19186 # Used on cygwin: DLL creation program.
19189 # Used on cygwin: object dumper.
19192 # Used on cygwin: assembler.
19195 # The name of the directory that contains temporary libtool files.
19198 # How to create reloadable object files.
19199 reload_flag=$lt_reload_flag
19200 reload_cmds=$lt_reload_cmds
19202 # How to pass a linker flag through the compiler.
19203 wl=$lt_lt_prog_compiler_wl_RC
19205 # Object file suffix (normally "o").
19206 objext="$ac_objext"
19208 # Old archive suffix (normally "a").
19211 # Shared library suffix (normally ".so").
19212 shrext_cmds='$shrext_cmds'
19214 # Executable file suffix (normally "").
19217 # Additional compiler flags for building library objects.
19218 pic_flag=$lt_lt_prog_compiler_pic_RC
19221 # What is the maximum length of a command?
19222 max_cmd_len=$lt_cv_sys_max_cmd_len
19224 # Does compiler simultaneously support -c and -o options?
19225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19227 # Must we lock files when doing compilation?
19228 need_locks=$lt_need_locks
19230 # Do we need the lib prefix for modules?
19231 need_lib_prefix=$need_lib_prefix
19233 # Do we need a version for libraries?
19234 need_version=$need_version
19236 # Whether dlopen is supported.
19237 dlopen_support=$enable_dlopen
19239 # Whether dlopen of programs is supported.
19240 dlopen_self=$enable_dlopen_self
19242 # Whether dlopen of statically linked programs is supported.
19243 dlopen_self_static=$enable_dlopen_self_static
19245 # Compiler flag to prevent dynamic linking.
19246 link_static_flag=$lt_lt_prog_compiler_static_RC
19248 # Compiler flag to turn off builtin functions.
19249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19251 # Compiler flag to allow reflexive dlopens.
19252 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19254 # Compiler flag to generate shared objects directly from archives.
19255 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19257 # Compiler flag to generate thread-safe objects.
19258 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19260 # Library versioning type.
19261 version_type=$version_type
19263 # Format of library name prefix.
19264 libname_spec=$lt_libname_spec
19266 # List of archive names. First name is the real one, the rest are links.
19267 # The last name is the one that the linker finds with -lNAME.
19268 library_names_spec=$lt_library_names_spec
19270 # The coded name of the library, if different from the real name.
19271 soname_spec=$lt_soname_spec
19273 # Commands used to build and install an old-style archive.
19275 old_archive_cmds=$lt_old_archive_cmds_RC
19276 old_postinstall_cmds=$lt_old_postinstall_cmds
19277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19279 # Create an old-style archive from a shared archive.
19280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19282 # Create a temporary old-style archive to link instead of a shared archive.
19283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19285 # Commands used to build and install a shared archive.
19286 archive_cmds=$lt_archive_cmds_RC
19287 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19288 postinstall_cmds=$lt_postinstall_cmds
19289 postuninstall_cmds=$lt_postuninstall_cmds
19291 # Commands used to build a loadable module (assumed same as above if empty)
19292 module_cmds=$lt_module_cmds_RC
19293 module_expsym_cmds=$lt_module_expsym_cmds_RC
19295 # Commands to strip libraries.
19296 old_striplib=$lt_old_striplib
19297 striplib=$lt_striplib
19299 # Dependencies to place before the objects being linked to create a
19301 predep_objects=$lt_predep_objects_RC
19303 # Dependencies to place after the objects being linked to create a
19305 postdep_objects=$lt_postdep_objects_RC
19307 # Dependencies to place before the objects being linked to create a
19309 predeps=$lt_predeps_RC
19311 # Dependencies to place after the objects being linked to create a
19313 postdeps=$lt_postdeps_RC
19315 # The directories searched by this compiler when creating a shared
19317 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19319 # The library search path used internally by the compiler when linking
19320 # a shared library.
19321 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19323 # Method to check whether dependent libraries are shared objects.
19324 deplibs_check_method=$lt_deplibs_check_method
19326 # Command to use when deplibs_check_method == file_magic.
19327 file_magic_cmd=$lt_file_magic_cmd
19329 # Flag that allows shared libraries with undefined symbols to be built.
19330 allow_undefined_flag=$lt_allow_undefined_flag_RC
19332 # Flag that forces no undefined symbols.
19333 no_undefined_flag=$lt_no_undefined_flag_RC
19335 # Commands used to finish a libtool library installation in a directory.
19336 finish_cmds=$lt_finish_cmds
19338 # Same as above, but a single script fragment to be evaled but not shown.
19339 finish_eval=$lt_finish_eval
19341 # Take the output of nm and produce a listing of raw symbols and C names.
19342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19344 # Transform the output of nm in a proper C declaration
19345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19347 # Transform the output of nm in a C name address pair
19348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19350 # This is the shared library runtime path variable.
19351 runpath_var=$runpath_var
19353 # This is the shared library path variable.
19354 shlibpath_var=$shlibpath_var
19356 # Is shlibpath searched before the hard-coded library search path?
19357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19359 # How to hardcode a shared library path into an executable.
19360 hardcode_action=$hardcode_action_RC
19362 # Whether we should hardcode library paths into libraries.
19363 hardcode_into_libs=$hardcode_into_libs
19365 # Flag to hardcode \$libdir into a binary during linking.
19366 # This must work even if \$libdir does not exist.
19367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19369 # If ld is used when linking, flag to hardcode \$libdir into
19370 # a binary during linking. This must work even if \$libdir does
19372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19374 # Whether we need a single -rpath flag with a separated argument.
19375 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19377 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19378 # resulting binary.
19379 hardcode_direct=$hardcode_direct_RC
19381 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19382 # resulting binary.
19383 hardcode_minus_L=$hardcode_minus_L_RC
19385 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19386 # the resulting binary.
19387 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19389 # Set to yes if building a shared library automatically hardcodes DIR into the library
19390 # and all subsequent libraries and executables linked against it.
19391 hardcode_automatic=$hardcode_automatic_RC
19393 # Variables whose values should be saved in libtool wrapper scripts and
19394 # restored at relink time.
19395 variables_saved_for_relink="$variables_saved_for_relink"
19397 # Whether libtool must link a program against all its dependency libraries.
19398 link_all_deplibs=$link_all_deplibs_RC
19400 # Compile-time system search path for libraries
19401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19403 # Run-time system search path for libraries
19404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19406 # Fix the shell variable \$srcfile for the compiler.
19407 fix_srcfile_path=$lt_fix_srcfile_path
19409 # Set to yes if exported symbols are required.
19410 always_export_symbols=$always_export_symbols_RC
19412 # The commands to list exported symbols.
19413 export_symbols_cmds=$lt_export_symbols_cmds_RC
19415 # The commands to extract the exported symbol list from a shared archive.
19416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19418 # Symbols that should not be listed in the preloaded symbols.
19419 exclude_expsyms=$lt_exclude_expsyms_RC
19421 # Symbols that must always be exported.
19422 include_expsyms=$lt_include_expsyms_RC
19424 # ### END LIBTOOL TAG CONFIG: $tagname
19430 # If there is no Makefile yet, we rely on a make rule to execute
19431 # `config.status --recheck' to rerun these tests and create the
19432 # libtool script then.
19433 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19434 if test -f "$ltmain_in"; then
19435 test -f Makefile && make "$ltmain"
19441 ac_cpp='$CPP $CPPFLAGS'
19442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19451 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19455 # Append the new tag name to the list of available tags.
19456 if test -n "$tagname" ; then
19457 available_tags="$available_tags $tagname"
19463 # Now substitute the updated list of available tags.
19464 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19465 mv "${ofile}T" "$ofile"
19469 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19475 # This can be used to rebuild libtool when needed
19476 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19478 # Always use our own libtool.
19479 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19481 # Prevent multiple expansion
19494 # Check whether --with-system-libtool was given.
19495 if test "${with_system_libtool+set}" = set; then :
19496 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19497 set dummy libtool; ac_word=$2
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19499 $as_echo_n "checking for $ac_word... " >&6; }
19500 if ${ac_cv_path_LIBTOOL+:} false; then :
19501 $as_echo_n "(cached) " >&6
19505 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19509 as_dummy="$PATH:/usr/local/bin"
19510 for as_dir in $as_dummy
19513 test -z "$as_dir" && as_dir=.
19514 for ac_exec_ext in '' $ac_executable_extensions; do
19515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19516 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19527 LIBTOOL=$ac_cv_path_LIBTOOL
19528 if test -n "$LIBTOOL"; then
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19530 $as_echo "$LIBTOOL" >&6; }
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19533 $as_echo "no" >&6; }
19549 LIBTOOL="`pwd`/libtool"
19561 # Check whether --enable-strict-dependencies was given.
19562 if test "${enable_strict_dependencies+set}" = set; then :
19563 enableval=$enable_strict_dependencies;
19567 docdir='${datadir}/doc/freeradius'
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19569 $as_echo_n "checking docdir... " >&6; }
19571 # Check whether --with-docdir was given.
19572 if test "${with_docdir+set}" = set; then :
19573 withval=$with_docdir; case "$withval" in
19579 [\\/$]* | ?:[\\/]* )
19583 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19591 $as_echo "$docdir" >&6; }
19592 if test "x$docdir" = xno; then
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19594 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19597 logdir='${localstatedir}/log/radius'
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19599 $as_echo_n "checking logdir... " >&6; }
19601 # Check whether --with-logdir was given.
19602 if test "${with_logdir+set}" = set; then :
19603 withval=$with_logdir; case "$withval" in
19605 as_fn_error $? "Need logdir" "$LINENO" 5
19609 [\\/$]* | ?:[\\/]* )
19613 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19621 $as_echo "$logdir" >&6; }
19623 radacctdir='${logdir}/radacct'
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19625 $as_echo_n "checking radacctdir... " >&6; }
19627 # Check whether --with-radacctdir was given.
19628 if test "${with_radacctdir+set}" = set; then :
19629 withval=$with_radacctdir; case "$withval" in
19631 as_fn_error $? "Need radacctdir" "$LINENO" 5
19635 [\\/$]* | ?:[\\/]* )
19636 radacctdir="$withval"
19639 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19647 $as_echo "$radacctdir" >&6; }
19649 raddbdir='${sysconfdir}/raddb'
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19651 $as_echo_n "checking raddbdir... " >&6; }
19653 # Check whether --with-raddbdir was given.
19654 if test "${with_raddbdir+set}" = set; then :
19655 withval=$with_raddbdir; case "$withval" in
19657 as_fn_error $? "Need raddbdir" "$LINENO" 5
19661 [\\/$]* | ?:[\\/]* )
19662 raddbdir="$withval"
19665 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19673 $as_echo "$raddbdir" >&6; }
19677 # Check whether --with-ascend-binary was given.
19678 if test "${with_ascend_binary+set}" = set; then :
19679 withval=$with_ascend_binary; case "$withval" in
19688 if test "X$ASCEND_BINARY" = "Xyes"; then
19690 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19696 # Check whether --with-threads was given.
19697 if test "${with_threads+set}" = set; then :
19698 withval=$with_threads; case "$withval" in
19710 # Check whether --with-vmps was given.
19711 if test "${with_vmps+set}" = set; then :
19712 withval=$with_vmps; case "$withval" in
19721 if test "x$WITH_VMPS" = "xyes"; then
19723 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19729 # Check whether --with-dhcp was given.
19730 if test "${with_dhcp+set}" = set; then :
19731 withval=$with_dhcp; case "$withval" in
19740 if test "x$WITH_DHCP" = "xyes"; then
19742 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19747 WITH_POST_PROXY_AUTHORIZE=
19749 # Check whether --with-post-proxy-authorize was given.
19750 if test "${with_post_proxy_authorize+set}" = set; then :
19751 withval=$with_post_proxy_authorize; case "$withval" in
19753 WITH_POST_PROXY_AUTHORIZE=""
19764 # Check whether --with-static_modules was given.
19765 if test "${with_static_modules+set}" = set; then :
19766 withval=$with_static_modules;
19767 for i in $withval; do
19768 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19776 # Check whether --with-modules was given.
19777 if test "${with_modules+set}" = set; then :
19778 withval=$with_modules;
19779 for i in $withval; do
19780 MODULES="$MODULES $i"
19786 # Check whether --enable-developer was given.
19787 if test "${enable_developer+set}" = set; then :
19788 enableval=$enable_developer; case "$enableval" in
19799 if test -d $srcdir/.git; then
19800 if test "x$developer" != "xno"; then
19804 if test "x$GIT" = "xyes"; then
19805 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19811 # Check whether --with-experimental-modules was given.
19812 if test "${with_experimental_modules+set}" = set; then :
19813 withval=$with_experimental_modules; case "$withval" in
19825 # Check whether --with-openssl was given.
19826 if test "${with_openssl+set}" = set; then :
19827 withval=$with_openssl; case "$withval" in
19839 OPENSSL_INCLUDE_DIR=
19841 # Check whether --with-openssl-includes was given.
19842 if test "${with_openssl_includes+set}" = set; then :
19843 withval=$with_openssl_includes; case "$withval" in
19844 *) OPENSSL_INCLUDE_DIR="$withval"
19853 # Check whether --with-openssl-libraries was given.
19854 if test "${with_openssl_libraries+set}" = set; then :
19855 withval=$with_openssl_libraries; case "$withval" in
19856 *) OPENSSL_LIB_DIR="$withval"
19865 # Check whether --with-rlm-FOO-lib-dir was given.
19866 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19867 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19876 # Check whether --with-rlm-FOO-include-dir was given.
19877 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19878 withval=$with_rlm_FOO_include_dir; case "$withval" in
19889 # Check whether --with-udpfromto was given.
19890 if test "${with_udpfromto+set}" = set; then :
19891 withval=$with_udpfromto; case "$withval" in
19902 if test "x$WITH_UDPFROMTO" = "xyes"; then
19904 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19909 CHECKRAD=checkrad.pl
19910 # Extract the first word of "perl", so it can be a program name with args.
19911 set dummy perl; ac_word=$2
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19913 $as_echo_n "checking for $ac_word... " >&6; }
19914 if ${ac_cv_path_PERL+:} false; then :
19915 $as_echo_n "(cached) " >&6
19919 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19923 for as_dir in $PATH
19926 test -z "$as_dir" && as_dir=.
19927 for ac_exec_ext in '' $ac_executable_extensions; do
19928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19929 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19937 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19941 PERL=$ac_cv_path_PERL
19942 if test -n "$PERL"; then
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19944 $as_echo "$PERL" >&6; }
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19947 $as_echo "no" >&6; }
19951 if test "x$ac_cv_path_PERL" = "x"; then
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19953 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19955 # Extract the first word of "snmpget", so it can be a program name with args.
19956 set dummy snmpget; ac_word=$2
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19958 $as_echo_n "checking for $ac_word... " >&6; }
19959 if ${ac_cv_path_SNMPGET+:} false; then :
19960 $as_echo_n "(cached) " >&6
19964 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19968 for as_dir in $PATH
19971 test -z "$as_dir" && as_dir=.
19972 for ac_exec_ext in '' $ac_executable_extensions; do
19973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19974 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19985 SNMPGET=$ac_cv_path_SNMPGET
19986 if test -n "$SNMPGET"; then
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19988 $as_echo "$SNMPGET" >&6; }
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19991 $as_echo "no" >&6; }
19995 if test "x$ac_cv_path_SNMPGET" = "x"; then
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19997 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20000 # Extract the first word of "snmpwalk", so it can be a program name with args.
20001 set dummy snmpwalk; ac_word=$2
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20003 $as_echo_n "checking for $ac_word... " >&6; }
20004 if ${ac_cv_path_SNMPWALK+:} false; then :
20005 $as_echo_n "(cached) " >&6
20009 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20013 for as_dir in $PATH
20016 test -z "$as_dir" && as_dir=.
20017 for ac_exec_ext in '' $ac_executable_extensions; do
20018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20019 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20030 SNMPWALK=$ac_cv_path_SNMPWALK
20031 if test -n "$SNMPWALK"; then
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
20033 $as_echo "$SNMPWALK" >&6; }
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20036 $as_echo "no" >&6; }
20040 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20042 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20045 # Extract the first word of "rusers", so it can be a program name with args.
20046 set dummy rusers; ac_word=$2
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20048 $as_echo_n "checking for $ac_word... " >&6; }
20049 if ${ac_cv_path_RUSERS+:} false; then :
20050 $as_echo_n "(cached) " >&6
20054 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20058 for as_dir in $PATH
20061 test -z "$as_dir" && as_dir=.
20062 for ac_exec_ext in '' $ac_executable_extensions; do
20063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20064 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20072 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20076 RUSERS=$ac_cv_path_RUSERS
20077 if test -n "$RUSERS"; then
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
20079 $as_echo "$RUSERS" >&6; }
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20082 $as_echo "no" >&6; }
20087 missing_dir=`cd $ac_aux_dir && pwd`
20088 # expand $ac_aux_dir to an absolute path
20089 am_aux_dir=`cd $ac_aux_dir && pwd`
20091 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20092 # Use eval to expand $SHELL
20093 if eval "$MISSING --run true"; then
20094 am_missing_run="$MISSING --run "
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
20098 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20102 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20105 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20108 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20111 # Extract the first word of "locate", so it can be a program name with args.
20112 set dummy locate; ac_word=$2
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20114 $as_echo_n "checking for $ac_word... " >&6; }
20115 if ${ac_cv_path_LOCATE+:} false; then :
20116 $as_echo_n "(cached) " >&6
20120 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20124 for as_dir in $PATH
20127 test -z "$as_dir" && as_dir=.
20128 for ac_exec_ext in '' $ac_executable_extensions; do
20129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20130 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20141 LOCATE=$ac_cv_path_LOCATE
20142 if test -n "$LOCATE"; then
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20144 $as_echo "$LOCATE" >&6; }
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20147 $as_echo "no" >&6; }
20151 # Extract the first word of "dirname", so it can be a program name with args.
20152 set dummy dirname; ac_word=$2
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20154 $as_echo_n "checking for $ac_word... " >&6; }
20155 if ${ac_cv_path_DIRNAME+:} false; then :
20156 $as_echo_n "(cached) " >&6
20160 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20164 for as_dir in $PATH
20167 test -z "$as_dir" && as_dir=.
20168 for ac_exec_ext in '' $ac_executable_extensions; do
20169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20170 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20181 DIRNAME=$ac_cv_path_DIRNAME
20182 if test -n "$DIRNAME"; then
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20184 $as_echo "$DIRNAME" >&6; }
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20187 $as_echo "no" >&6; }
20191 # Extract the first word of "grep", so it can be a program name with args.
20192 set dummy grep; ac_word=$2
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20194 $as_echo_n "checking for $ac_word... " >&6; }
20195 if ${ac_cv_path_GREP+:} false; then :
20196 $as_echo_n "(cached) " >&6
20200 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20204 for as_dir in $PATH
20207 test -z "$as_dir" && as_dir=.
20208 for ac_exec_ext in '' $ac_executable_extensions; do
20209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20210 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20221 GREP=$ac_cv_path_GREP
20222 if test -n "$GREP"; then
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20224 $as_echo "$GREP" >&6; }
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20227 $as_echo "no" >&6; }
20234 if test "x$WITH_THREADS" = "xyes"; then
20235 if test $ac_cv_prog_suncc = "yes"; then
20236 CFLAGS="$CFLAGS -mt"
20239 for ac_header in pthread.h
20241 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20242 if test "x$ac_cv_header_pthread_h" = xyes; then :
20243 cat >>confdefs.h <<_ACEOF
20244 #define HAVE_PTHREAD_H 1
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20255 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20256 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20257 $as_echo_n "(cached) " >&6
20259 ac_check_lib_save_LIBS=$LIBS
20260 LIBS="-lpthread $LIBS"
20261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h. */
20264 /* Override any GCC internal prototype to avoid an error.
20265 Use char because int might match the return type of a GCC
20266 builtin and then its argument prototype would still apply. */
20270 char pthread_create ();
20274 return pthread_create ();
20279 if ac_fn_c_try_link "$LINENO"; then :
20280 ac_cv_lib_pthread_pthread_create=yes
20282 ac_cv_lib_pthread_pthread_create=no
20284 rm -f core conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20289 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20290 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20291 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20292 LIBS="-lpthread $LIBS"
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20295 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20296 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20297 $as_echo_n "(cached) " >&6
20299 ac_check_lib_save_LIBS=$LIBS
20301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h. */
20304 /* Override any GCC internal prototype to avoid an error.
20305 Use char because int might match the return type of a GCC
20306 builtin and then its argument prototype would still apply. */
20310 char pthread_create ();
20314 return pthread_create ();
20319 if ac_fn_c_try_link "$LINENO"; then :
20320 ac_cv_lib_c_r_pthread_create=yes
20322 ac_cv_lib_c_r_pthread_create=no
20324 rm -f core conftest.err conftest.$ac_objext \
20325 conftest$ac_exeext conftest.$ac_ext
20326 LIBS=$ac_check_lib_save_LIBS
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20329 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20330 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20331 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20342 if test "x$WITH_THREADS" != "xyes"; then
20344 ac_cv_header_pthread_h="no"
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20349 $as_echo_n "checking for library containing sem_init... " >&6; }
20350 if ${ac_cv_search_sem_init+:} false; then :
20351 $as_echo_n "(cached) " >&6
20353 ac_func_search_save_LIBS=$LIBS
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20357 /* Override any GCC internal prototype to avoid an error.
20358 Use char because int might match the return type of a GCC
20359 builtin and then its argument prototype would still apply. */
20367 return sem_init ();
20372 for ac_lib in '' pthread sem posix4 rt semaphore; do
20373 if test -z "$ac_lib"; then
20374 ac_res="none required"
20377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20379 if ac_fn_c_try_link "$LINENO"; then :
20380 ac_cv_search_sem_init=$ac_res
20382 rm -f core conftest.err conftest.$ac_objext \
20384 if ${ac_cv_search_sem_init+:} false; then :
20388 if ${ac_cv_search_sem_init+:} false; then :
20391 ac_cv_search_sem_init=no
20393 rm conftest.$ac_ext
20394 LIBS=$ac_func_search_save_LIBS
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20397 $as_echo "$ac_cv_search_sem_init" >&6; }
20398 ac_res=$ac_cv_search_sem_init
20399 if test "$ac_res" != no; then :
20400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20403 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
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20410 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20411 if ${ac_cv_lib_socket_getsockname+:} false; then :
20412 $as_echo_n "(cached) " >&6
20414 ac_check_lib_save_LIBS=$LIBS
20415 LIBS="-lsocket $LIBS"
20416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20417 /* end confdefs.h. */
20419 /* Override any GCC internal prototype to avoid an error.
20420 Use char because int might match the return type of a GCC
20421 builtin and then its argument prototype would still apply. */
20425 char getsockname ();
20429 return getsockname ();
20434 if ac_fn_c_try_link "$LINENO"; then :
20435 ac_cv_lib_socket_getsockname=yes
20437 ac_cv_lib_socket_getsockname=no
20439 rm -f core conftest.err conftest.$ac_objext \
20440 conftest$ac_exeext conftest.$ac_ext
20441 LIBS=$ac_check_lib_save_LIBS
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20444 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20445 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20446 cat >>confdefs.h <<_ACEOF
20447 #define HAVE_LIBSOCKET 1
20450 LIBS="-lsocket $LIBS"
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20456 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20457 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20458 $as_echo_n "(cached) " >&6
20460 ac_check_lib_save_LIBS=$LIBS
20461 LIBS="-lresolv $LIBS"
20462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20463 /* end confdefs.h. */
20465 /* Override any GCC internal prototype to avoid an error.
20466 Use char because int might match the return type of a GCC
20467 builtin and then its argument prototype would still apply. */
20475 return inet_aton ();
20480 if ac_fn_c_try_link "$LINENO"; then :
20481 ac_cv_lib_resolv_inet_aton=yes
20483 ac_cv_lib_resolv_inet_aton=no
20485 rm -f core conftest.err conftest.$ac_objext \
20486 conftest$ac_exeext conftest.$ac_ext
20487 LIBS=$ac_check_lib_save_LIBS
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20490 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20491 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20492 cat >>confdefs.h <<_ACEOF
20493 #define HAVE_LIBRESOLV 1
20496 LIBS="-lresolv $LIBS"
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20502 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20503 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20504 $as_echo_n "(cached) " >&6
20506 ac_check_lib_save_LIBS=$LIBS
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20511 /* Override any GCC internal prototype to avoid an error.
20512 Use char because int might match the return type of a GCC
20513 builtin and then its argument prototype would still apply. */
20521 return inet_ntoa ();
20526 if ac_fn_c_try_link "$LINENO"; then :
20527 ac_cv_lib_nsl_inet_ntoa=yes
20529 ac_cv_lib_nsl_inet_ntoa=no
20531 rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20536 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20537 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_LIBNSL 1
20548 if test "x$WITH_OPENSSL" = xyes; then
20550 old_LDFLAGS="$LDFLAGS"
20551 if test "x$OPENSSL_LIB_DIR" != "x"; then
20552 LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20555 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20556 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20557 $as_echo_n "(cached) " >&6
20559 ac_check_lib_save_LIBS=$LIBS
20560 LIBS="-lcrypto $LIBS"
20561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20562 /* end confdefs.h. */
20564 /* Override any GCC internal prototype to avoid an error.
20565 Use char because int might match the return type of a GCC
20566 builtin and then its argument prototype would still apply. */
20579 if ac_fn_c_try_link "$LINENO"; then :
20580 ac_cv_lib_crypto_DH_new=yes
20582 ac_cv_lib_crypto_DH_new=no
20584 rm -f core conftest.err conftest.$ac_objext \
20585 conftest$ac_exeext conftest.$ac_ext
20586 LIBS=$ac_check_lib_save_LIBS
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20589 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20590 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20592 LIBS="-lcrypto $LIBS"
20594 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20597 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20598 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20599 $as_echo_n "(cached) " >&6
20601 ac_check_lib_save_LIBS=$LIBS
20603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20604 /* end confdefs.h. */
20606 /* Override any GCC internal prototype to avoid an error.
20607 Use char because int might match the return type of a GCC
20608 builtin and then its argument prototype would still apply. */
20621 if ac_fn_c_try_link "$LINENO"; then :
20622 ac_cv_lib_ssl_SSL_new=yes
20624 ac_cv_lib_ssl_SSL_new=no
20626 rm -f core conftest.err conftest.$ac_objext \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20631 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20632 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20635 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20637 if test "x$OPENSSL_LIB_DIR" != "x"; then
20638 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20640 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20648 LDFLAGS="$old_LDFLAGS"
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20652 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20653 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20654 $as_echo_n "(cached) " >&6
20656 ac_check_lib_save_LIBS=$LIBS
20657 LIBS="-lws2_32 $LIBS"
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h. */
20661 /* Override any GCC internal prototype to avoid an error.
20662 Use char because int might match the return type of a GCC
20663 builtin and then its argument prototype would still apply. */
20676 if ac_fn_c_try_link "$LINENO"; then :
20677 ac_cv_lib_ws2_32_htonl=yes
20679 ac_cv_lib_ws2_32_htonl=no
20681 rm -f core conftest.err conftest.$ac_objext \
20682 conftest$ac_exeext conftest.$ac_ext
20683 LIBS=$ac_check_lib_save_LIBS
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20686 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20687 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20688 cat >>confdefs.h <<_ACEOF
20689 #define HAVE_LIBWS2_32 1
20692 LIBS="-lws2_32 $LIBS"
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20699 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20700 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20701 $as_echo_n "(cached) " >&6
20703 ac_check_lib_save_LIBS=$LIBS
20704 LIBS="-lpcap $LIBS"
20705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20706 /* end confdefs.h. */
20708 /* Override any GCC internal prototype to avoid an error.
20709 Use char because int might match the return type of a GCC
20710 builtin and then its argument prototype would still apply. */
20714 char pcap_open_live ();
20718 return pcap_open_live ();
20723 if ac_fn_c_try_link "$LINENO"; then :
20724 ac_cv_lib_pcap_pcap_open_live=yes
20726 ac_cv_lib_pcap_pcap_open_live=no
20728 rm -f core conftest.err conftest.$ac_objext \
20729 conftest$ac_exeext conftest.$ac_ext
20730 LIBS=$ac_check_lib_save_LIBS
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20733 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20734 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20737 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20742 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20748 $as_echo_n "checking for a readline compatible library... " >&6; }
20749 if ${ac_cv_lib_readline+:} false; then :
20750 $as_echo_n "(cached) " >&6
20754 for readline_lib in readline edit editline; do
20755 for termcap_lib in "" termcap curses ncurses; do
20756 if test -z "$termcap_lib"; then
20757 TRY_LIB="-l$readline_lib"
20759 TRY_LIB="-l$readline_lib -l$termcap_lib"
20761 LIBS="$ORIG_LIBS $TRY_LIB"
20762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20763 /* end confdefs.h. */
20765 /* Override any GCC internal prototype to avoid an error.
20766 Use char because int might match the return type of a GCC
20767 builtin and then its argument prototype would still apply. */
20775 return readline ();
20780 if ac_fn_c_try_link "$LINENO"; then :
20781 ac_cv_lib_readline="$TRY_LIB"
20783 rm -f core conftest.err conftest.$ac_objext \
20784 conftest$ac_exeext conftest.$ac_ext
20785 if test -n "$ac_cv_lib_readline"; then
20789 if test -n "$ac_cv_lib_readline"; then
20793 if test -z "$ac_cv_lib_readline"; then
20794 ac_cv_lib_readline="no"
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20800 $as_echo "$ac_cv_lib_readline" >&6; }
20802 if test "$ac_cv_lib_readline" != "no"; then
20803 LIBREADLINE="$ac_cv_lib_readline"
20805 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20807 for ac_header in readline.h readline/readline.h
20809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20810 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20812 cat >>confdefs.h <<_ACEOF
20813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20821 $as_echo_n "checking whether readline supports history... " >&6; }
20822 if ${ac_cv_lib_readline_history+:} false; then :
20823 $as_echo_n "(cached) " >&6
20826 ac_cv_lib_readline_history="no"
20827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828 /* end confdefs.h. */
20830 /* Override any GCC internal prototype to avoid an error.
20831 Use char because int might match the return type of a GCC
20832 builtin and then its argument prototype would still apply. */
20836 char add_history ();
20840 return add_history ();
20845 if ac_fn_c_try_link "$LINENO"; then :
20846 ac_cv_lib_readline_history="yes"
20848 rm -f core conftest.err conftest.$ac_objext \
20849 conftest$ac_exeext conftest.$ac_ext
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20853 $as_echo "$ac_cv_lib_readline_history" >&6; }
20854 if test "$ac_cv_lib_readline_history" = "yes"; then
20856 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20858 for ac_header in history.h readline/history.h
20860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20861 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20863 cat >>confdefs.h <<_ACEOF
20864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20879 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20882 CFLAGS="$CFLAGS -DDARWIN"
20883 LIBS="-framework DirectoryService $LIBS"
20887 ac_header_dirent=no
20888 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20889 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20891 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20892 if eval \${$as_ac_Header+:} false; then :
20893 $as_echo_n "(cached) " >&6
20895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20896 /* end confdefs.h. */
20897 #include <sys/types.h>
20909 if ac_fn_c_try_compile "$LINENO"; then :
20910 eval "$as_ac_Header=yes"
20912 eval "$as_ac_Header=no"
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916 eval ac_res=\$$as_ac_Header
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20918 $as_echo "$ac_res" >&6; }
20919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20920 cat >>confdefs.h <<_ACEOF
20921 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20924 ac_header_dirent=$ac_hdr; break
20928 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20929 if test $ac_header_dirent = dirent.h; then
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20931 $as_echo_n "checking for library containing opendir... " >&6; }
20932 if ${ac_cv_search_opendir+:} false; then :
20933 $as_echo_n "(cached) " >&6
20935 ac_func_search_save_LIBS=$LIBS
20936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h. */
20939 /* Override any GCC internal prototype to avoid an error.
20940 Use char because int might match the return type of a GCC
20941 builtin and then its argument prototype would still apply. */
20954 for ac_lib in '' dir; do
20955 if test -z "$ac_lib"; then
20956 ac_res="none required"
20959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20961 if ac_fn_c_try_link "$LINENO"; then :
20962 ac_cv_search_opendir=$ac_res
20964 rm -f core conftest.err conftest.$ac_objext \
20966 if ${ac_cv_search_opendir+:} false; then :
20970 if ${ac_cv_search_opendir+:} false; then :
20973 ac_cv_search_opendir=no
20975 rm conftest.$ac_ext
20976 LIBS=$ac_func_search_save_LIBS
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20979 $as_echo "$ac_cv_search_opendir" >&6; }
20980 ac_res=$ac_cv_search_opendir
20981 if test "$ac_res" != no; then :
20982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20988 $as_echo_n "checking for library containing opendir... " >&6; }
20989 if ${ac_cv_search_opendir+:} false; then :
20990 $as_echo_n "(cached) " >&6
20992 ac_func_search_save_LIBS=$LIBS
20993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h. */
20996 /* Override any GCC internal prototype to avoid an error.
20997 Use char because int might match the return type of a GCC
20998 builtin and then its argument prototype would still apply. */
21011 for ac_lib in '' x; do
21012 if test -z "$ac_lib"; then
21013 ac_res="none required"
21016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21018 if ac_fn_c_try_link "$LINENO"; then :
21019 ac_cv_search_opendir=$ac_res
21021 rm -f core conftest.err conftest.$ac_objext \
21023 if ${ac_cv_search_opendir+:} false; then :
21027 if ${ac_cv_search_opendir+:} false; then :
21030 ac_cv_search_opendir=no
21032 rm conftest.$ac_ext
21033 LIBS=$ac_func_search_save_LIBS
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21036 $as_echo "$ac_cv_search_opendir" >&6; }
21037 ac_res=$ac_cv_search_opendir
21038 if test "$ac_res" != no; then :
21039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21046 $as_echo_n "checking for ANSI C header files... " >&6; }
21047 if ${ac_cv_header_stdc+:} false; then :
21048 $as_echo_n "(cached) " >&6
21050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h. */
21052 #include <stdlib.h>
21053 #include <stdarg.h>
21054 #include <string.h>
21065 if ac_fn_c_try_compile "$LINENO"; then :
21066 ac_cv_header_stdc=yes
21068 ac_cv_header_stdc=no
21070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21072 if test $ac_cv_header_stdc = yes; then
21073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21075 /* end confdefs.h. */
21076 #include <string.h>
21079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21080 $EGREP "memchr" >/dev/null 2>&1; then :
21083 ac_cv_header_stdc=no
21089 if test $ac_cv_header_stdc = yes; then
21090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21092 /* end confdefs.h. */
21093 #include <stdlib.h>
21096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21097 $EGREP "free" >/dev/null 2>&1; then :
21100 ac_cv_header_stdc=no
21106 if test $ac_cv_header_stdc = yes; then
21107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21108 if test "$cross_compiling" = yes; then :
21111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21112 /* end confdefs.h. */
21114 #include <stdlib.h>
21115 #if ((' ' & 0x0FF) == 0x020)
21116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21119 # define ISLOWER(c) \
21120 (('a' <= (c) && (c) <= 'i') \
21121 || ('j' <= (c) && (c) <= 'r') \
21122 || ('s' <= (c) && (c) <= 'z'))
21123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21131 for (i = 0; i < 256; i++)
21132 if (XOR (islower (i), ISLOWER (i))
21133 || toupper (i) != TOUPPER (i))
21138 if ac_fn_c_try_run "$LINENO"; then :
21141 ac_cv_header_stdc=no
21143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21144 conftest.$ac_objext conftest.beam conftest.$ac_ext
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21150 $as_echo "$ac_cv_header_stdc" >&6; }
21151 if test $ac_cv_header_stdc = yes; then
21153 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21158 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21159 if ${ac_cv_header_time+:} false; then :
21160 $as_echo_n "(cached) " >&6
21162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21163 /* end confdefs.h. */
21164 #include <sys/types.h>
21165 #include <sys/time.h>
21171 if ((struct tm *) 0)
21177 if ac_fn_c_try_compile "$LINENO"; then :
21178 ac_cv_header_time=yes
21180 ac_cv_header_time=no
21182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21185 $as_echo "$ac_cv_header_time" >&6; }
21186 if test $ac_cv_header_time = yes; then
21188 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21193 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21194 if ${ac_cv_header_sys_wait_h+:} false; then :
21195 $as_echo_n "(cached) " >&6
21197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h. */
21199 #include <sys/types.h>
21200 #include <sys/wait.h>
21201 #ifndef WEXITSTATUS
21202 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21205 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21213 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21218 if ac_fn_c_try_compile "$LINENO"; then :
21219 ac_cv_header_sys_wait_h=yes
21221 ac_cv_header_sys_wait_h=no
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21226 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21227 if test $ac_cv_header_sys_wait_h = yes; then
21229 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21275 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21276 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21277 cat >>confdefs.h <<_ACEOF
21278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21286 for ac_header in net/if.h
21288 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21289 # include <sys/socket.h>
21293 if test "x$ac_cv_header_net_if_h" = xyes; then :
21294 cat >>confdefs.h <<_ACEOF
21295 #define HAVE_NET_IF_H 1
21304 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21305 if test "x$ac_cv_header_regex_h" = xyes; then :
21307 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21312 if test "x$ac_cv_header_regex_h" = "xyes"; then
21315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316 /* end confdefs.h. */
21318 #ifdef REG_EXTENDED
21323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21324 $EGREP "yes" >/dev/null 2>&1; then :
21326 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21335 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21338 $as_echo "#define OSFC2 /**/" >>confdefs.h
21342 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21345 $as_echo "#define OSFSIA /**/" >>confdefs.h
21349 OPENSSL_INCLUDE="-DNO_OPENSSL"
21350 if test "x$WITH_OPENSSL" = xyes; then
21351 if test "x$OPENSSL_LIBS" = "x"; then
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
21353 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21355 old_CPPFLAGS=$CPPFLAGS
21356 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21357 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21359 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21369 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21370 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21371 cat >>confdefs.h <<_ACEOF
21372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21382 if test "x$OPENSSL_LIBS" != "x"; then
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21384 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21387 #include <openssl/crypto.h>
21388 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21394 $EGREP "yes" >/dev/null 2>&1; then :
21399 if test "x$goodssl" != "xyes"; then
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21401 $as_echo "no" >&6; }
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21405 $as_echo "yes" >&6; }
21406 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21407 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21409 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21413 CPPFLAGS=$old_CPPFLAGS
21418 export OPENSSL_LIBS
21420 if test "x$PCAP_LIBS" = x; then
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21422 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21424 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21425 if test "x$ac_cv_header_pcap_h" = xyes; then :
21427 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21432 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21439 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21440 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21441 $as_echo_n "(cached) " >&6
21443 ac_check_lib_save_LIBS=$LIBS
21444 LIBS="-lpcap $LIBS"
21445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446 /* end confdefs.h. */
21448 /* Override any GCC internal prototype to avoid an error.
21449 Use char because int might match the return type of a GCC
21450 builtin and then its argument prototype would still apply. */
21454 char pcap_fopen_offline ();
21458 return pcap_fopen_offline ();
21463 if ac_fn_c_try_link "$LINENO"; then :
21464 ac_cv_lib_pcap_pcap_fopen_offline=yes
21466 ac_cv_lib_pcap_pcap_fopen_offline=no
21468 rm -f core conftest.err conftest.$ac_objext \
21469 conftest$ac_exeext conftest.$ac_ext
21470 LIBS=$ac_check_lib_save_LIBS
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21473 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21474 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21476 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21482 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21483 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21484 $as_echo_n "(cached) " >&6
21486 ac_check_lib_save_LIBS=$LIBS
21487 LIBS="-lpcap $LIBS"
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21491 /* Override any GCC internal prototype to avoid an error.
21492 Use char because int might match the return type of a GCC
21493 builtin and then its argument prototype would still apply. */
21497 char pcap_dump_fopen ();
21501 return pcap_dump_fopen ();
21506 if ac_fn_c_try_link "$LINENO"; then :
21507 ac_cv_lib_pcap_pcap_dump_fopen=yes
21509 ac_cv_lib_pcap_pcap_dump_fopen=no
21511 rm -f core conftest.err conftest.$ac_objext \
21512 conftest$ac_exeext conftest.$ac_ext
21513 LIBS=$ac_check_lib_save_LIBS
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21516 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21517 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21519 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21528 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21529 if test "x$ac_cv_type_off_t" = xyes; then :
21533 cat >>confdefs.h <<_ACEOF
21534 #define off_t long int
21539 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21540 if test "x$ac_cv_type_pid_t" = xyes; then :
21544 cat >>confdefs.h <<_ACEOF
21550 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21551 if test "x$ac_cv_type_size_t" = xyes; then :
21555 cat >>confdefs.h <<_ACEOF
21556 #define size_t unsigned int
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21562 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21563 if ${ac_cv_type_uid_t+:} false; then :
21564 $as_echo_n "(cached) " >&6
21566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567 /* end confdefs.h. */
21568 #include <sys/types.h>
21571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21572 $EGREP "uid_t" >/dev/null 2>&1; then :
21573 ac_cv_type_uid_t=yes
21575 ac_cv_type_uid_t=no
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21581 $as_echo "$ac_cv_type_uid_t" >&6; }
21582 if test $ac_cv_type_uid_t = no; then
21584 $as_echo "#define uid_t int" >>confdefs.h
21587 $as_echo "#define gid_t int" >>confdefs.h
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21594 $as_echo_n "checking for socklen_t... " >&6; }
21595 if ${ac_cv_type_socklen_t+:} false; then :
21596 $as_echo_n "(cached) " >&6
21598 ac_cv_type_socklen_t=no
21599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21600 /* end confdefs.h. */
21601 #ifdef HAVE_SYS_TYPES_H
21602 #include <sys/types.h>
21604 #ifdef HAVE_SYS_SOCKET_H
21605 #include <sys/socket.h>
21616 if ac_fn_c_try_compile "$LINENO"; then :
21617 ac_cv_type_socklen_t=yes
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21624 $as_echo "$ac_cv_type_socklen_t" >&6; }
21626 if test "$ac_cv_type_socklen_t" != "yes"; then
21628 $as_echo "#define socklen_t int" >>confdefs.h
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21635 $as_echo_n "checking for uint8_t... " >&6; }
21636 if ${ac_cv_type_uint8_t+:} false; then :
21637 $as_echo_n "(cached) " >&6
21639 ac_cv_type_uint8_t=no
21640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21641 /* end confdefs.h. */
21642 #ifdef HAVE_INTTYPES_H
21643 #include <inttypes.h>
21645 #ifdef HAVE_STDINT_H
21646 #include <stdint.h>
21657 if ac_fn_c_try_compile "$LINENO"; then :
21658 ac_cv_type_uint8_t=yes
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21665 $as_echo "$ac_cv_type_uint8_t" >&6; }
21667 if test "$ac_cv_type_uint8_t" != "yes"; then
21669 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21676 $as_echo_n "checking for uint16_t... " >&6; }
21677 if ${ac_cv_type_uint16_t+:} false; then :
21678 $as_echo_n "(cached) " >&6
21680 ac_cv_type_uint16_t=no
21681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21682 /* end confdefs.h. */
21683 #ifdef HAVE_INTTYPES_H
21684 #include <inttypes.h>
21686 #ifdef HAVE_STDINT_H
21687 #include <stdint.h>
21698 if ac_fn_c_try_compile "$LINENO"; then :
21699 ac_cv_type_uint16_t=yes
21701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21706 $as_echo "$ac_cv_type_uint16_t" >&6; }
21708 if test "$ac_cv_type_uint16_t" != "yes"; then
21710 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21717 $as_echo_n "checking for uint32_t... " >&6; }
21718 if ${ac_cv_type_uint32_t+:} false; then :
21719 $as_echo_n "(cached) " >&6
21721 ac_cv_type_uint32_t=no
21722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723 /* end confdefs.h. */
21724 #ifdef HAVE_INTTYPES_H
21725 #include <inttypes.h>
21727 #ifdef HAVE_STDINT_H
21728 #include <stdint.h>
21739 if ac_fn_c_try_compile "$LINENO"; then :
21740 ac_cv_type_uint32_t=yes
21742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21747 $as_echo "$ac_cv_type_uint32_t" >&6; }
21749 if test "$ac_cv_type_uint32_t" != "yes"; then
21751 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21756 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21757 #ifdef HAVE_NETINET_IN_H
21758 #include <netinet/in.h>
21762 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21764 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21769 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21770 #ifdef HAVE_NETINET_IN_H
21771 #include <netinet/in.h>
21773 #ifdef HAVE_SYS_SOCKET_H
21774 #include <sys/socket.h>
21778 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21780 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21785 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21786 #ifdef HAVE_NETINET_IN_H
21787 #include <netinet/in.h>
21791 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21793 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21798 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21799 #ifdef HAVE_SYS_TYPES_H
21800 #include <sys/types.h>
21802 #ifdef HAVE_SYS_SOCKET_H
21803 #include <sys/socket.h>
21805 #ifdef HAVE_NETDB_H
21810 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21812 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21852 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21854 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21855 cat >>confdefs.h <<_ACEOF
21856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21873 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
21874 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
21875 $as_echo_n "(cached) " >&6
21877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878 /* end confdefs.h. */
21881 #include <string.h>
21882 #ifdef HAVE_UNISTD_H
21883 #include <unistd.h>
21885 #ifdef HAVE_CRYPT_H
21888 #ifdef HAVE_ERRNO_H
21891 #ifdef HAVE_RESOURCE_H
21892 #include <resource.h>
21894 #ifdef HAVE_GETOPT_H
21895 #include <getopt.h>
21897 #ifdef HAVE_MALLOC_H
21898 #include <malloc.h>
21903 #ifdef HAVE_UTMPX_H
21906 #ifdef HAVE_SYS_SELECT_H
21907 #include <sys/select.h>
21909 #ifdef HAVE_DLFCN_H
21912 #ifdef HAVE_REGEX_H
21915 #ifdef HAVE_SYSLOG_H
21916 #include <syslog.h>
21918 #ifdef HAVE_INTTYPES_H
21919 #include <inttypes.h>
21921 #ifdef HAVE_STDINT_H
21922 #include <stdint.h>
21924 #ifdef HAVE_ARPA_INET_H
21925 #include <arpa/inet.h>
21931 char *(*pfn) = (char *(*)) $ac_func
21936 if ac_fn_c_try_compile "$LINENO"; then :
21937 eval "radius_cv_decl_needed_$ac_func=no"
21939 eval "radius_cv_decl_needed_$ac_func=yes"
21941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21944 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21946 $as_echo "yes" >&6; }
21947 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21948 cat >>confdefs.h <<_ACEOF
21949 #define $radius_tr_decl 1
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21954 $as_echo "no" >&6; }
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21961 $as_echo_n "checking return type of signal handlers... " >&6; }
21962 if ${ac_cv_type_signal+:} false; then :
21963 $as_echo_n "(cached) " >&6
21965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21966 /* end confdefs.h. */
21967 #include <sys/types.h>
21968 #include <signal.h>
21973 return *(signal (0, 0)) (0) == 1;
21978 if ac_fn_c_try_compile "$LINENO"; then :
21979 ac_cv_type_signal=int
21981 ac_cv_type_signal=void
21983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21986 $as_echo "$ac_cv_type_signal" >&6; }
21988 cat >>confdefs.h <<_ACEOF
21989 #define RETSIGTYPE $ac_cv_type_signal
21994 if test "x$ac_cv_header_utmpx_h" = "xyes"
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
21998 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
22001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22002 /* end confdefs.h. */
22005 #ifdef HAVE_STDDEF_H
22006 #include <stddef.h>
22009 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22015 int foo = offsetof(struct utmpx, ut_xtime)
22020 if ac_fn_c_try_compile "$LINENO"; then :
22025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22027 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22028 if test "x$has_element" != "x"; then
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22030 $as_echo "yes" >&6; }
22031 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22034 $as_echo "no" >&6; }
22035 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22038 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22041 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
22048 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h. */
22054 #include <netinet/in.h>
22055 #ifdef HAVE_STDDEF_H
22056 #include <stddef.h>
22059 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22065 int foo = offsetof(struct in_pktinfo, ipi_addr)
22070 if ac_fn_c_try_compile "$LINENO"; then :
22075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22077 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22078 if test "x$has_element" != "x"; then
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22080 $as_echo "yes" >&6; }
22081 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22084 $as_echo "no" >&6; }
22085 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22088 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22091 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
22097 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
22100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22101 /* end confdefs.h. */
22103 #include <netinet/in.h>
22104 #ifdef HAVE_STDDEF_H
22105 #include <stddef.h>
22108 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22114 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22119 if ac_fn_c_try_compile "$LINENO"; then :
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22126 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22127 if test "x$has_element" != "x"; then
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22129 $as_echo "yes" >&6; }
22130 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22133 $as_echo "no" >&6; }
22134 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22137 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22140 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22146 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22147 if ${ac_cv_c_const+:} false; then :
22148 $as_echo_n "(cached) " >&6
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h. */
22157 #ifndef __cplusplus
22158 /* Ultrix mips cc rejects this sort of thing. */
22159 typedef int charset[2];
22160 const charset cs = { 0, 0 };
22161 /* SunOS 4.1.1 cc rejects this. */
22162 char const *const *pcpcc;
22164 /* NEC SVR4.0.2 mips cc rejects this. */
22165 struct point {int x, y;};
22166 static struct point const zero = {0,0};
22167 /* AIX XL C 1.02.0.0 rejects this.
22168 It does not let you subtract one const X* pointer from another in
22169 an arm of an if-expression whose if-part is not a constant
22171 const char *g = "string";
22172 pcpcc = &g + (g ? g-g : 0);
22173 /* HPUX 7.0 cc rejects these. */
22175 ppc = (char**) pcpcc;
22176 pcpcc = (char const *const *) ppc;
22177 { /* SCO 3.2v4 cc rejects this sort of thing. */
22180 char const *s = 0 ? (char *) 0 : (char const *) 0;
22185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22186 int x[] = {25, 17};
22187 const int *foo = &x[0];
22190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22191 typedef const int *iptr;
22195 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22197 struct s { int j; const int *ap[3]; } bx;
22198 struct s *b = &bx; b->j = 5;
22200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22201 const int foo = 10;
22202 if (!foo) return 0;
22204 return !cs[0] && !zero.x;
22211 if ac_fn_c_try_compile "$LINENO"; then :
22216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22219 $as_echo "$ac_cv_c_const" >&6; }
22220 if test $ac_cv_c_const = no; then
22222 $as_echo "#define const /**/" >>confdefs.h
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22228 $as_echo_n "checking type of OS... " >&6; }
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22231 $as_echo "$OS" >&6; }
22232 if test "$OS" = "OS/2"; then
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22240 $as_echo_n "checking for developer gcc flags... " >&6; }
22241 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22242 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22243 CFLAGS="$CFLAGS $devflags"
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
22246 $as_echo "yes. Using $devflags" >&6; }
22249 CFLAGS="$CFLAGS -DNDEBUG"
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22252 $as_echo "no." >&6; }
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22257 $as_echo_n "checking for TLS... " >&6; }
22258 if test "$cross_compiling" = yes; then :
22261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22262 /* end confdefs.h. */
22263 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22265 if ac_fn_c_try_run "$LINENO"; then :
22270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22271 conftest.$ac_objext conftest.beam conftest.$ac_ext
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22275 $as_echo "$have_tls" >&6; }
22276 if test "$have_tls" = "yes"; then
22278 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22285 LIBS="$LIBS $LIBLTDL"
22286 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22287 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22289 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22296 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22297 if ${ac_cv_lib_crypt_crypt+:} false; then :
22298 $as_echo_n "(cached) " >&6
22300 ac_check_lib_save_LIBS=$LIBS
22301 LIBS="-lcrypt $LIBS"
22302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22303 /* end confdefs.h. */
22305 /* Override any GCC internal prototype to avoid an error.
22306 Use char because int might match the return type of a GCC
22307 builtin and then its argument prototype would still apply. */
22320 if ac_fn_c_try_link "$LINENO"; then :
22321 ac_cv_lib_crypt_crypt=yes
22323 ac_cv_lib_crypt_crypt=no
22325 rm -f core conftest.err conftest.$ac_objext \
22326 conftest$ac_exeext conftest.$ac_ext
22327 LIBS=$ac_check_lib_save_LIBS
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22330 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22331 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22336 if test "$CRYPTLIB" != ""; then
22338 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22341 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22342 if test "x$ac_cv_func_crypt" = xyes; then :
22344 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22351 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22352 if ${ac_cv_lib_cipher_setkey+:} false; then :
22353 $as_echo_n "(cached) " >&6
22355 ac_check_lib_save_LIBS=$LIBS
22356 LIBS="-lcipher $LIBS"
22357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22358 /* end confdefs.h. */
22360 /* Override any GCC internal prototype to avoid an error.
22361 Use char because int might match the return type of a GCC
22362 builtin and then its argument prototype would still apply. */
22375 if ac_fn_c_try_link "$LINENO"; then :
22376 ac_cv_lib_cipher_setkey=yes
22378 ac_cv_lib_cipher_setkey=no
22380 rm -f core conftest.err conftest.$ac_objext \
22381 conftest$ac_exeext conftest.$ac_ext
22382 LIBS=$ac_check_lib_save_LIBS
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22385 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22386 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22387 CRYPTLIB="${CRYPTLIB} -lcipher"
22394 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22397 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22400 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22402 gethostbyaddrrstyle=""
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22404 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22407 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22408 #ifdef HAVE_NETDB_H
22413 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22419 cat >>confdefs.h <<_ACEOF
22420 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22422 if test $ac_have_decl = 1; then :
22427 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22429 gethostbyaddrrstyle=BSD
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22431 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22437 if test "x$gethostbyaddrrstyle" = "x"; then
22438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22439 /* end confdefs.h. */
22447 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22452 if ac_fn_c_try_link "$LINENO"; then :
22455 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22457 gethostbyaddrrstyle=GNU
22460 rm -f core conftest.err conftest.$ac_objext \
22461 conftest$ac_exeext conftest.$ac_ext
22463 if test "x$gethostbyaddrrstyle" = "x"; then
22464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h. */
22473 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22478 if ac_fn_c_try_link "$LINENO"; then :
22481 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22483 gethostbyaddrrstyle=SYSV
22486 rm -f core conftest.err conftest.$ac_objext \
22487 conftest$ac_exeext conftest.$ac_ext
22489 if test "x$gethostbyaddrrstyle" = "x"; then
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22499 gethostbyaddr(NULL, 0, 0)
22504 if ac_fn_c_try_link "$LINENO"; then :
22507 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22509 gethostbyaddrrstyle=BSD
22512 rm -f core conftest.err conftest.$ac_objext \
22513 conftest$ac_exeext conftest.$ac_ext
22516 if test "x$gethostbyaddrrstyle" = "x"; then
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22518 $as_echo "none! It must not exist, here." >&6; }
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22521 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22524 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22526 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22529 gethostbynamerstyle=""
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22531 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22533 /* end confdefs.h. */
22541 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22546 if ac_fn_c_try_link "$LINENO"; then :
22549 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22551 gethostbynamerstyle=GNU
22554 rm -f core conftest.err conftest.$ac_objext \
22555 conftest$ac_exeext conftest.$ac_ext
22556 if test "x$gethostbynamerstyle" = "x"; then
22557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22558 /* end confdefs.h. */
22566 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22571 if ac_fn_c_try_link "$LINENO"; then :
22574 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22576 gethostbynamerstyle=SYSV
22579 rm -f core conftest.err conftest.$ac_objext \
22580 conftest$ac_exeext conftest.$ac_ext
22582 if test "x$gethostbynamerstyle" = "x"; then
22583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22584 /* end confdefs.h. */
22592 gethostbyname(NULL)
22597 if ac_fn_c_try_link "$LINENO"; then :
22600 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22602 gethostbynamerstyle=BSD
22605 rm -f core conftest.err conftest.$ac_objext \
22606 conftest$ac_exeext conftest.$ac_ext
22609 if test "x$gethostbynamerstyle" = "x"; then
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22611 $as_echo "none! It must not exist, here." >&6; }
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22614 $as_echo "${gethostbynamerstyle}-style" >&6; }
22617 if test "x$gethostbynamerstyle" = "xBSD"; then
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22619 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22623 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22626 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22630 $as_echo_n "checking ctime_r() syntax... " >&6; }
22631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22632 /* end confdefs.h. */
22639 ctime_r(NULL, NULL, 0)
22644 if ac_fn_c_try_link "$LINENO"; then :
22647 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22649 ctimerstyle="SOLARIS"
22652 rm -f core conftest.err conftest.$ac_objext \
22653 conftest$ac_exeext conftest.$ac_ext
22654 if test "x$ctimerstyle" = "x"; then
22655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656 /* end confdefs.h. */
22663 ctime_r(NULL, NULL)
22668 if ac_fn_c_try_link "$LINENO"; then :
22671 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22673 ctimerstyle="POSIX"
22676 rm -f core conftest.err conftest.$ac_objext \
22677 conftest$ac_exeext conftest.$ac_ext
22680 if test "x$ctimerstyle" = "x"; then
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22682 $as_echo "none! It must not exist, here." >&6; }
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22685 $as_echo "${ctimerstyle}-style" >&6; }
22691 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22693 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22699 export top_builddir
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22701 $as_echo "top_builddir=$top_builddir" >&6; }
22707 mysubdirs="$LIBLTDLPATH"
22708 if test "x$EXPERIMENTAL" = "xyes"; then
22709 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22710 mysubdirs=`echo $mysubdirs $bar`
22712 for bar in `cat "${srcdir}"/src/modules/stable`; do
22713 if test -f "${srcdir}"/src/modules/$bar/configure; then
22714 mysubdirs="$mysubdirs src/modules/$bar"
22719 if test "x$EXPERIMENTAL" = "xyes"; then
22720 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22721 MODULES="$MODULES $foo"
22724 for foo in `cat "${srcdir}"/src/modules/stable`; do
22725 MODULES="$MODULES $foo"
22731 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22736 ac_config_commands="$ac_config_commands stamp-h"
22738 ac_config_commands="$ac_config_commands build-radpaths-h"
22740 ac_config_commands="$ac_config_commands main-chmod"
22742 ac_config_commands="$ac_config_commands scripts-chmod"
22748 USE_SHARED_LIBS=$enable_shared
22750 USE_STATIC_LIBS=$enable_static
22761 unset ac_cv_env_LIBS_set
22762 unset ac_cv_env_LIBS_value
22764 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"
22766 cat >confcache <<\_ACEOF
22767 # This file is a shell script that caches the results of configure
22768 # tests run on this system so they can be shared between configure
22769 # scripts and configure runs, see configure's option --config-cache.
22770 # It is not useful on other systems. If it contains results you don't
22771 # want to keep, you may remove or edit it.
22773 # config.status only pays attention to the cache file if you give it
22774 # the --recheck option to rerun configure.
22776 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22778 # following values.
22782 # The following way of writing the cache mishandles newlines in values,
22783 # but we know of no workaround that is simple, portable, and efficient.
22784 # So, we kill variables containing newlines.
22785 # Ultrix sh set writes to stderr and can't be redirected directly,
22786 # and sets the high bit in the cache file unless we assign to the vars.
22788 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22789 eval ac_val=\$$ac_var
22793 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22797 _ | IFS | as_nl) ;; #(
22798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22799 *) { eval $ac_var=; unset $ac_var;} ;;
22805 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22806 *${as_nl}ac_space=\ *)
22807 # `set' does not quote correctly, so add quotes: double-quote
22808 # substitution turns \\\\ into \\, and sed turns \\ into \.
22811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22814 # `set' quotes correctly as required by POSIX, so do not add quotes.
22815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22824 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22826 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22828 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22829 if test -w "$cache_file"; then
22830 if test "x$cache_file" != "x/dev/null"; then
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22832 $as_echo "$as_me: updating cache $cache_file" >&6;}
22833 if test ! -f "$cache_file" || test -h "$cache_file"; then
22834 cat confcache >"$cache_file"
22836 case $cache_file in #(
22838 mv -f confcache "$cache_file"$$ &&
22839 mv -f "$cache_file"$$ "$cache_file" ;; #(
22841 mv -f confcache "$cache_file" ;;
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22847 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22852 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22853 # Let make expand exec_prefix.
22854 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22856 DEFS=-DHAVE_CONFIG_H
22861 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22862 # 1. Remove the extension, and $U if already installed.
22863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22864 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22866 # will be set to the directory where LIBOBJS objects are built.
22867 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22868 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22870 LIBOBJS=$ac_libobjs
22872 LTLIBOBJS=$ac_ltlibobjs
22877 : "${CONFIG_STATUS=./config.status}"
22879 ac_clean_files_save=$ac_clean_files
22880 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22882 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22884 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22886 # Generated by $as_me.
22887 # Run this file to recreate the current configuration.
22888 # Compiler output produced by configure, useful for debugging
22889 # configure, is in config.log if it exists.
22892 ac_cs_recheck=false
22895 SHELL=\${CONFIG_SHELL-$SHELL}
22898 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22899 ## -------------------- ##
22900 ## M4sh Initialization. ##
22901 ## -------------------- ##
22903 # Be more Bourne compatible
22904 DUALCASE=1; export DUALCASE # for MKS sh
22905 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22908 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22909 # is contrary to our usage. Disable this feature.
22910 alias -g '${1+"$@"}'='"$@"'
22911 setopt NO_GLOB_SUBST
22913 case `(set -o) 2>/dev/null` in #(
22925 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22926 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22927 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22929 # Prefer a ksh shell builtin over an external printf program on Solaris,
22930 # but without wasting forks for bash or zsh.
22931 if test -z "$BASH_VERSION$ZSH_VERSION" \
22932 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22933 as_echo='print -r --'
22934 as_echo_n='print -rn --'
22935 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22936 as_echo='printf %s\n'
22937 as_echo_n='printf %s'
22939 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22940 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22941 as_echo_n='/usr/ucb/echo -n'
22943 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22944 as_echo_n_body='eval
22948 expr "X$arg" : "X\\(.*\\)$as_nl";
22949 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22951 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22953 export as_echo_n_body
22954 as_echo_n='sh -c $as_echo_n_body as_echo'
22956 export as_echo_body
22957 as_echo='sh -c $as_echo_body as_echo'
22960 # The user is always right.
22961 if test "${PATH_SEPARATOR+set}" != set; then
22963 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22964 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22971 # We need space, tab and new line, in precisely that order. Quoting is
22972 # there to prevent editors from complaining about space-tab.
22973 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22974 # splitting by setting IFS to empty value.)
22977 # Find who we are. Look in the path if we contain no directory separator.
22980 *[\\/]* ) as_myself=$0 ;;
22981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22982 for as_dir in $PATH
22985 test -z "$as_dir" && as_dir=.
22986 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22992 # We did not find ourselves, most probably we were run as `sh COMMAND'
22993 # in which case we are not to be found in the path.
22994 if test "x$as_myself" = x; then
22997 if test ! -f "$as_myself"; then
22998 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23002 # Unset variables that we do not need and which cause bugs (e.g. in
23003 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23004 # suppresses any "Segmentation fault" message there. '((' could
23005 # trigger a bug in pdksh 5.2.14.
23006 for as_var in BASH_ENV ENV MAIL MAILPATH
23007 do eval test x\${$as_var+set} = xset \
23008 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23021 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23024 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23025 # ----------------------------------------
23026 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23027 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23028 # script with STATUS, using 1 if that was 0.
23031 as_status=$1; test $as_status -eq 0 && as_status=1
23033 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23034 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23036 $as_echo "$as_me: error: $2" >&2
23037 as_fn_exit $as_status
23041 # as_fn_set_status STATUS
23042 # -----------------------
23043 # Set $? to STATUS, without forking.
23044 as_fn_set_status ()
23047 } # as_fn_set_status
23049 # as_fn_exit STATUS
23050 # -----------------
23051 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23055 as_fn_set_status $1
23061 # Portably unset VAR.
23064 { eval $1=; unset $1;}
23066 as_unset=as_fn_unset
23067 # as_fn_append VAR VALUE
23068 # ----------------------
23069 # Append the text in VALUE to the end of the definition contained in VAR. Take
23070 # advantage of any shell optimizations that allow amortized linear growth over
23071 # repeated appends, instead of the typical quadratic growth present in naive
23073 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23074 eval 'as_fn_append ()
23085 # as_fn_arith ARG...
23086 # ------------------
23087 # Perform arithmetic evaluation on the ARGs, and store the result in the
23088 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23089 # must be portable across $(()) and expr.
23090 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23091 eval 'as_fn_arith ()
23098 as_val=`expr "$@" || test $? -eq 1`
23103 if expr a : '\(a\)' >/dev/null 2>&1 &&
23104 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23110 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23111 as_basename=basename
23116 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23122 as_me=`$as_basename -- "$0" ||
23123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23124 X"$0" : 'X\(//\)$' \| \
23125 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23127 sed '/^.*\/\([^/][^/]*\)\/*$/{
23141 # Avoid depending upon Character Ranges.
23142 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23145 as_cr_digits='0123456789'
23146 as_cr_alnum=$as_cr_Letters$as_cr_digits
23148 ECHO_C= ECHO_N= ECHO_T=
23149 case `echo -n x` in #(((((
23151 case `echo 'xy\c'` in
23152 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23154 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23161 rm -f conf$$ conf$$.exe conf$$.file
23162 if test -d conf$$.dir; then
23163 rm -f conf$$.dir/conf$$.file
23166 mkdir conf$$.dir 2>/dev/null
23168 if (echo >conf$$.file) 2>/dev/null; then
23169 if ln -s conf$$.file conf$$ 2>/dev/null; then
23171 # ... but there are two gotchas:
23172 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23173 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23174 # In both cases, we have to default to `cp -pR'.
23175 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23177 elif ln conf$$.file conf$$ 2>/dev/null; then
23185 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23186 rmdir conf$$.dir 2>/dev/null
23191 # Create "$as_dir" as a directory, including parents if necessary.
23196 -*) as_dir=./$as_dir;;
23198 test -d "$as_dir" || eval $as_mkdir_p || {
23202 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23203 *) as_qdir=$as_dir;;
23205 as_dirs="'$as_qdir' $as_dirs"
23206 as_dir=`$as_dirname -- "$as_dir" ||
23207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23208 X"$as_dir" : 'X\(//\)[^/]' \| \
23209 X"$as_dir" : 'X\(//\)$' \| \
23210 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23211 $as_echo X"$as_dir" |
23212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23216 /^X\(\/\/\)[^/].*/{
23229 test -d "$as_dir" && break
23231 test -z "$as_dirs" || eval "mkdir $as_dirs"
23232 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23236 if mkdir -p . 2>/dev/null; then
23237 as_mkdir_p='mkdir -p "$as_dir"'
23239 test -d ./-p && rmdir ./-p
23244 # as_fn_executable_p FILE
23245 # -----------------------
23246 # Test if FILE is an executable regular file.
23247 as_fn_executable_p ()
23249 test -f "$1" && test -x "$1"
23250 } # as_fn_executable_p
23251 as_test_x='test -x'
23252 as_executable_p=as_fn_executable_p
23254 # Sed expression to map a string onto a valid CPP name.
23255 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23257 # Sed expression to map a string onto a valid variable name.
23258 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23262 ## ----------------------------------- ##
23263 ## Main body of $CONFIG_STATUS script. ##
23264 ## ----------------------------------- ##
23266 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23269 # Save the log message, to keep $0 and so on meaningful, and to
23270 # report actual input values of CONFIG_FILES etc. instead of their
23271 # values after options handling.
23273 This file was extended by $as_me, which was
23274 generated by GNU Autoconf 2.69. Invocation command line was
23276 CONFIG_FILES = $CONFIG_FILES
23277 CONFIG_HEADERS = $CONFIG_HEADERS
23278 CONFIG_LINKS = $CONFIG_LINKS
23279 CONFIG_COMMANDS = $CONFIG_COMMANDS
23282 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23287 case $ac_config_files in *"
23288 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23291 case $ac_config_headers in *"
23292 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23297 # Files that config.status was made for.
23298 config_files="$ac_config_files"
23299 config_headers="$ac_config_headers"
23300 config_commands="$ac_config_commands"
23304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23306 \`$as_me' instantiates files and other configuration actions
23307 from templates according to the current configuration. Unless the files
23308 and actions are specified as TAGs, all are instantiated by default.
23310 Usage: $0 [OPTION]... [TAG]...
23312 -h, --help print this help, then exit
23313 -V, --version print version number and configuration settings, then exit
23314 --config print configuration, then exit
23315 -q, --quiet, --silent
23316 do not print progress messages
23317 -d, --debug don't remove temporary files
23318 --recheck update $as_me by reconfiguring in the same conditions
23319 --file=FILE[:TEMPLATE]
23320 instantiate the configuration file FILE
23321 --header=FILE[:TEMPLATE]
23322 instantiate the configuration header FILE
23324 Configuration files:
23327 Configuration headers:
23330 Configuration commands:
23333 Report bugs to the package provider."
23336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23337 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23340 configured by $0, generated by GNU Autoconf 2.69,
23341 with options \\"\$ac_cs_config\\"
23343 Copyright (C) 2012 Free Software Foundation, Inc.
23344 This config.status script is free software; the Free Software Foundation
23345 gives unlimited permission to copy, distribute and modify it."
23349 test -n "\$AWK" || AWK=awk
23352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23353 # The default lists apply if the user does not specify any file.
23359 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23360 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23376 # Handling of the options.
23377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23380 $as_echo "$ac_cs_version"; exit ;;
23381 --config | --confi | --conf | --con | --co | --c )
23382 $as_echo "$ac_cs_config"; exit ;;
23383 --debug | --debu | --deb | --de | --d | -d )
23385 --file | --fil | --fi | --f )
23388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23389 '') as_fn_error $? "missing file argument" ;;
23391 as_fn_append CONFIG_FILES " '$ac_optarg'"
23392 ac_need_defaults=false;;
23393 --header | --heade | --head | --hea )
23396 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23398 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23399 ac_need_defaults=false;;
23401 # Conflict between --help and --header
23402 as_fn_error $? "ambiguous option: \`$1'
23403 Try \`$0 --help' for more information.";;
23404 --help | --hel | -h )
23405 $as_echo "$ac_cs_usage"; exit ;;
23406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23407 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23410 # This is an error.
23411 -*) as_fn_error $? "unrecognized option: \`$1'
23412 Try \`$0 --help' for more information." ;;
23414 *) as_fn_append ac_config_targets " $1"
23415 ac_need_defaults=false ;;
23421 ac_configure_extra_args=
23423 if $ac_cs_silent; then
23425 ac_configure_extra_args="$ac_configure_extra_args --silent"
23429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23430 if \$ac_cs_recheck; then
23431 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23433 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23434 CONFIG_SHELL='$SHELL'
23435 export CONFIG_SHELL
23440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23445 ## Running $as_me. ##
23451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23456 # Handling of arguments.
23457 for ac_config_target in $ac_config_targets
23459 case $ac_config_target in
23460 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23461 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23462 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23463 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23464 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23465 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23466 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23467 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23468 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23469 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23470 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23471 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23472 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23473 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23474 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23475 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23476 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23477 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23478 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23480 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23485 # If the user did not use the arguments to specify the items to instantiate,
23486 # then the envvar interface is used. Set only those that are not.
23487 # We use the long form for the default assignment because of an extremely
23488 # bizarre bug on SunOS 4.1.3.
23489 if $ac_need_defaults; then
23490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23491 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23492 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23495 # Have a temporary directory for convenience. Make it in the build tree
23496 # simply because there is no reason against having it here, and in addition,
23497 # creating and moving files from /tmp can sometimes cause problems.
23498 # Hook for its removal unless debugging.
23499 # Note that there is a small window in which the directory will not be cleaned:
23500 # after its creation but before its name has been assigned to `$tmp'.
23504 trap 'exit_status=$?
23505 : "${ac_tmp:=$tmp}"
23506 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23508 trap 'as_fn_exit 1' 1 2 13 15
23510 # Create a (secure) tmp directory for tmp files.
23513 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23517 tmp=./conf$$-$RANDOM
23518 (umask 077 && mkdir "$tmp")
23519 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23522 # Set up the scripts for CONFIG_FILES section.
23523 # No need to generate them if there are no CONFIG_FILES.
23524 # This happens for instance with `./config.status config.h'.
23525 if test -n "$CONFIG_FILES"; then
23528 ac_cr=`echo X | tr X '\015'`
23529 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23530 # But we know of no other shell where ac_cr would be empty at this
23531 # point, so we can use a bashism as a fallback.
23532 if test "x$ac_cr" = x; then
23533 eval ac_cr=\$\'\\r\'
23535 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23536 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23539 ac_cs_awk_cr=$ac_cr
23542 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23547 echo "cat >conf$$subs.awk <<_ACEOF" &&
23548 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23550 } >conf$$subs.sh ||
23551 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23552 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23554 for ac_last_try in false false false false false :; do
23555 . ./conf$$subs.sh ||
23556 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23558 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23559 if test $ac_delim_n = $ac_delim_num; then
23561 elif $ac_last_try; then
23562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23567 rm -f conf$$subs.sh
23569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23570 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23574 s/^/S["/; s/!.*/"]=/
23584 s/\(.\{148\}\)..*/\1/
23586 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23598 s/\(.\{148\}\)..*/\1/
23600 s/["\\]/\\&/g; s/^/"/; s/$/"/
23604 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23609 ' <conf$$subs.awk | sed '
23614 ' >>$CONFIG_STATUS || ac_write_fail=1
23615 rm -f conf$$subs.awk
23616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23618 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23619 for (key in S) S_is_set[key] = 1
23625 nfields = split(line, field, "@")
23627 len = length(field[1])
23628 for (i = 2; i < nfields; i++) {
23630 keylen = length(key)
23631 if (S_is_set[key]) {
23633 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23634 len += length(value) + length(field[++i])
23645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23646 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23647 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23650 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23651 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23654 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23655 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23656 # trailing colons and then remove the whole line if VPATH becomes empty
23657 # (actually we leave an empty line to preserve line numbers).
23658 if test "x$srcdir" = x.; then
23659 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23678 fi # test -n "$CONFIG_FILES"
23680 # Set up the scripts for CONFIG_HEADERS section.
23681 # No need to generate them if there are no CONFIG_HEADERS.
23682 # This happens for instance with `./config.status Makefile'.
23683 if test -n "$CONFIG_HEADERS"; then
23684 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23688 # Transform confdefs.h into an awk script `defines.awk', embedded as
23689 # here-document in config.status, that substitutes the proper values into
23690 # config.h.in to produce config.h.
23692 # Create a delimiter string that does not exist in confdefs.h, to ease
23693 # handling of long lines.
23695 for ac_last_try in false false :; do
23696 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23697 if test -z "$ac_tt"; then
23699 elif $ac_last_try; then
23700 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23706 # For the awk script, D is an array of macro values keyed by name,
23707 # likewise P contains macro parameters if any. Preserve backslash
23708 # newline sequences.
23710 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23712 s/.\{148\}/&'"$ac_delim"'/g
23715 s/^[ ]*#[ ]*define[ ][ ]*/ /
23722 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23724 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23729 D["\1"]=" \3\\\\\\n"\\/p
23731 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23736 s/.\{148\}/&'"$ac_delim"'/g
23741 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23744 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23746 ' <confdefs.h | sed '
23747 s/'"$ac_delim"'/"\\\
23748 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23751 for (key in D) D_is_set[key] = 1
23754 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23756 split(line, arg, " ")
23757 if (arg[1] == "#") {
23761 defundef = substr(arg[1], 2)
23764 split(mac1, mac2, "(") #)
23766 prefix = substr(line, 1, index(line, defundef) - 1)
23767 if (D_is_set[macro]) {
23768 # Preserve the white space surrounding the "#".
23769 print prefix "define", macro P[macro] D[macro]
23772 # Replace #undef with comments. This is necessary, for example,
23773 # in the case of _POSIX_SOURCE, which is predefined and required
23774 # on some systems where configure will not decide to define it.
23775 if (defundef == "undef") {
23776 print "/*", prefix defundef, macro, "*/"
23784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23785 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23786 fi # test -n "$CONFIG_HEADERS"
23789 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23794 :[FHLC]) ac_mode=$ac_tag; continue;;
23796 case $ac_mode$ac_tag in
23798 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23799 :[FH]-) ac_tag=-:-;;
23800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23817 -) ac_f="$ac_tmp/stdin";;
23818 *) # Look for the file first in the build tree, then in the source tree
23819 # (if the path is not absolute). The absolute path cannot be DOS-style,
23820 # because $ac_f cannot contain `:'.
23824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23826 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23829 as_fn_append ac_file_inputs " '$ac_f'"
23832 # Let's still pretend it is `configure' which instantiates (i.e., don't
23833 # use $as_me), people would be surprised to read:
23834 # /* config.h. Generated by config.status. */
23835 configure_input='Generated from '`
23836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23838 if test x"$ac_file" != x-; then
23839 configure_input="$ac_file. $configure_input"
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23841 $as_echo "$as_me: creating $ac_file" >&6;}
23843 # Neutralize special characters interpreted by sed in replacement strings.
23844 case $configure_input in #(
23845 *\&* | *\|* | *\\* )
23846 ac_sed_conf_input=`$as_echo "$configure_input" |
23847 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23848 *) ac_sed_conf_input=$configure_input;;
23852 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23858 ac_dir=`$as_dirname -- "$ac_file" ||
23859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23860 X"$ac_file" : 'X\(//\)[^/]' \| \
23861 X"$ac_file" : 'X\(//\)$' \| \
23862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23863 $as_echo X"$ac_file" |
23864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23868 /^X\(\/\/\)[^/].*/{
23881 as_dir="$ac_dir"; as_fn_mkdir_p
23885 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23888 # A ".." for each directory in $ac_dir_suffix.
23889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23890 case $ac_top_builddir_sub in
23891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23895 ac_abs_top_builddir=$ac_pwd
23896 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23897 # for backward compatibility:
23898 ac_top_builddir=$ac_top_build_prefix
23901 .) # We are building in place.
23903 ac_top_srcdir=$ac_top_builddir_sub
23904 ac_abs_top_srcdir=$ac_pwd ;;
23905 [\\/]* | ?:[\\/]* ) # Absolute name.
23906 ac_srcdir=$srcdir$ac_dir_suffix;
23907 ac_top_srcdir=$srcdir
23908 ac_abs_top_srcdir=$srcdir ;;
23909 *) # Relative name.
23910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23911 ac_top_srcdir=$ac_top_build_prefix$srcdir
23912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23914 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23926 # If the template does not know about datarootdir, expand it.
23927 # FIXME: This hack should be removed a few years after 2.60.
23928 ac_datarootdir_hack=; ac_datarootdir_seen=
23939 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23940 *datarootdir*) ac_datarootdir_seen=yes;;
23941 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23943 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23946 ac_datarootdir_hack='
23947 s&@datadir@&$datadir&g
23948 s&@docdir@&$docdir&g
23949 s&@infodir@&$infodir&g
23950 s&@localedir@&$localedir&g
23951 s&@mandir@&$mandir&g
23952 s&\\\${datarootdir}&$datarootdir&g' ;;
23956 # Neutralize VPATH when `$srcdir' = `.'.
23957 # Shell code in configure.ac might set extrasub.
23958 # FIXME: do we really want to maintain this feature?
23959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23960 ac_sed_extra="$ac_vpsub
23963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23966 s|@configure_input@|$ac_sed_conf_input|;t t
23967 s&@top_builddir@&$ac_top_builddir_sub&;t t
23968 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23969 s&@srcdir@&$ac_srcdir&;t t
23970 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23971 s&@top_srcdir@&$ac_top_srcdir&;t t
23972 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23973 s&@builddir@&$ac_builddir&;t t
23974 s&@abs_builddir@&$ac_abs_builddir&;t t
23975 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23976 $ac_datarootdir_hack
23978 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23979 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23982 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23983 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23984 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23986 which seems to be undefined. Please make sure it is defined" >&5
23987 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23988 which seems to be undefined. Please make sure it is defined" >&2;}
23990 rm -f "$ac_tmp/stdin"
23992 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23993 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24001 if test x"$ac_file" != x-; then
24003 $as_echo "/* $configure_input */" \
24004 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24005 } >"$ac_tmp/config.h" \
24006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24007 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24009 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24012 mv "$ac_tmp/config.h" "$ac_file" \
24013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24016 $as_echo "/* $configure_input */" \
24017 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24018 || as_fn_error $? "could not create -" "$LINENO" 5
24022 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24023 $as_echo "$as_me: executing $ac_file commands" >&6;}
24028 case $ac_file$ac_mode in
24029 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
24030 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
24031 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
24032 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
24040 ac_clean_files=$ac_clean_files_save
24042 test $ac_write_fail = 0 ||
24043 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24046 # configure is writing to config.log, and then calls config.status.
24047 # config.status does its own redirection, appending to config.log.
24048 # Unfortunately, on DOS this fails, as config.log is still kept open
24049 # by configure, so config.status won't be able to write to it; its
24050 # output is simply discarded. So we exec the FD to /dev/null,
24051 # effectively closing config.log, so it can be properly (re)opened and
24052 # appended to by config.status. When coming back to configure, we
24053 # need to make the FD available again.
24054 if test "$no_create" != yes; then
24056 ac_config_status_args=
24057 test "$silent" = yes &&
24058 ac_config_status_args="$ac_config_status_args --quiet"
24060 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24062 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24063 # would make configure fail if this is the last instruction.
24064 $ac_cs_success || as_fn_exit 1
24068 # CONFIG_SUBDIRS section.
24070 if test "$no_recursion" != yes; then
24072 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24073 # so they do not pile up.
24074 ac_sub_configure_args=
24076 eval "set x $ac_configure_args"
24080 if test -n "$ac_prev"; then
24085 -cache-file | --cache-file | --cache-fil | --cache-fi \
24086 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24087 ac_prev=cache_file ;;
24088 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24089 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24092 --config-cache | -C)
24094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24102 --disable-option-checking)
24106 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24108 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24112 # Always prepend --prefix to ensure using the same prefix
24113 # in subdir configurations.
24114 ac_arg="--prefix=$prefix"
24116 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24118 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24121 if test "$silent" = yes; then
24122 ac_sub_configure_args="--silent $ac_sub_configure_args"
24125 # Always prepend --disable-option-checking to silence warnings, since
24126 # different subdirs can have different --enable and --with options.
24127 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24130 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24132 # Do not complain, so a configure script can configure whichever
24133 # parts of a large source tree are present.
24134 test -d "$srcdir/$ac_dir" || continue
24136 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24137 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24138 $as_echo "$ac_msg" >&6
24139 as_dir="$ac_dir"; as_fn_mkdir_p
24143 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24145 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24146 # A ".." for each directory in $ac_dir_suffix.
24147 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24148 case $ac_top_builddir_sub in
24149 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24150 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24153 ac_abs_top_builddir=$ac_pwd
24154 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24155 # for backward compatibility:
24156 ac_top_builddir=$ac_top_build_prefix
24159 .) # We are building in place.
24161 ac_top_srcdir=$ac_top_builddir_sub
24162 ac_abs_top_srcdir=$ac_pwd ;;
24163 [\\/]* | ?:[\\/]* ) # Absolute name.
24164 ac_srcdir=$srcdir$ac_dir_suffix;
24165 ac_top_srcdir=$srcdir
24166 ac_abs_top_srcdir=$srcdir ;;
24167 *) # Relative name.
24168 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24169 ac_top_srcdir=$ac_top_build_prefix$srcdir
24170 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24172 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24177 # Check for guested configure; otherwise get Cygnus style configure.
24178 if test -f "$ac_srcdir/configure.gnu"; then
24179 ac_sub_configure=$ac_srcdir/configure.gnu
24180 elif test -f "$ac_srcdir/configure"; then
24181 ac_sub_configure=$ac_srcdir/configure
24182 elif test -f "$ac_srcdir/configure.in"; then
24183 # This should be Cygnus configure.
24184 ac_sub_configure=$ac_aux_dir/configure
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24187 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24191 # The recursion is here.
24192 if test -n "$ac_sub_configure"; then
24193 # Make the cache file name correct relative to the subdirectory.
24194 case $cache_file in
24195 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24196 *) # Relative name.
24197 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24200 { $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
24201 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24202 # The eval makes quoting arguments work.
24203 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24204 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24205 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24211 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24213 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}