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
883 program_transform_name
896 enable_option_checking
907 enable_strict_dependencies
916 with_post_proxy_authorize
920 with_experimental_modules
922 with_openssl_includes
923 with_openssl_libraries
925 with_rlm_FOO_include_dir
928 ac_precious_vars='build_alias
943 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
945 # Initialize some variables set by options.
947 ac_init_version=false
948 ac_unrecognized_opts=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
959 program_transform_name=s,x,x,
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE}'
984 infodir='${datarootdir}/info'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1005 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_$ac_useropt"
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1062 eval enable_$ac_useropt=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid feature name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1083 "enable_$ac_useropt"
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1088 eval enable_$ac_useropt=\$ac_optarg ;;
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 htmldir=$ac_optarg ;;
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1133 -libdir | --libdir | --libdi | --libd)
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1224 -psdir | --psdir | --psdi | --psd | --ps)
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 sbindir=$ac_optarg ;;
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 sharedstatedir=$ac_optarg ;;
1250 -site | --site | --sit)
1252 -site=* | --site=* | --sit=*)
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1292 eval with_$ac_useropt=\$ac_optarg ;;
1294 -without-* | --without-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1308 eval with_$ac_useropt=no ;;
1311 # Obsolete; use --with-x.
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' | [0-9]* | *[!_$as_cr_alnum]* )
1337 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error $? "missing argument to $ac_option"
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1361 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1379 # Be sure to have absolute directory names.
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1392 target=$target_alias
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406 test "$silent" = yes && exec 6>/dev/null
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error $? "pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1541 --build=BUILD configure for building on BUILD [guessed]
1542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543 --target=TARGET configure for building compilers for TARGET [HOST]
1547 if test -n "$ac_init_help"; then
1552 --disable-option-checking ignore unrecognized --enable/--with options
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --disable-largefile omit support for large files
1556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-static[=PKGS] build static libraries [default=yes]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --enable-strict-dependencies Fail configure on lack of module dependancy.
1562 --enable-developer Enables features of interest to developers.
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-system-libltdl Use the libltdl installed in your system (default=use our own)
1568 --with-system-libtool Use the libtool installed in your system (default=use our own)
1569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 --with-pic try to use only PIC/non-PIC objects [default=use
1572 --with-tags[=TAGS] include additional configurations [automatic]
1573 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1574 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1575 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1576 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1577 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1578 --with-threads Use threads, if available. (default=yes)
1579 --with-vmps Compile in VMPS support. (default=yes)
1580 --with-dhcp Compile in DHCP support. (default=yes)
1581 --with-post-proxy-authorize 1.x compatibility (default=no)
1582 --with-static-modules=QUOTED-MODULE-LIST
1583 --with-modules=QUOTED-MODULE-LIST
1584 --with-experimental-modules Use experimental and unstable modules. (default=no)
1585 --with-openssl Use OpenSSL. (default=yes)
1586 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1587 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1588 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1589 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1590 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1592 Some influential environment variables:
1593 CC C compiler command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1596 nonstandard directory <lib dir>
1597 LIBS libraries to pass to the linker, e.g. -l<library>
1598 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599 you have headers in a nonstandard directory <include dir>
1600 CXX C++ compiler command
1601 CXXFLAGS C++ compiler flags
1603 CXXCPP C++ preprocessor
1604 F77 Fortran 77 compiler command
1605 FFLAGS Fortran 77 compiler flags
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1610 Report bugs to the package provider.
1615 if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1640 .) # We are building in place.
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
1645 ac_srcdir=$srcdir$ac_dir_suffix;
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1662 $SHELL "$ac_srcdir/configure" --help=recursive
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 cd "$ac_pwd" || { ac_status=$?; break; }
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1674 generated by GNU Autoconf 2.69
1676 Copyright (C) 2012 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1683 ## ------------------------ ##
1684 ## Autoconf initialization. ##
1685 ## ------------------------ ##
1687 # ac_fn_c_try_compile LINENO
1688 # --------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_compile ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_compile
1725 # ac_fn_cxx_try_compile LINENO
1726 # ----------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_compile ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_cxx_try_compile
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } > conftest.i && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803 # the include files in INCLUDES and setting the cache variable VAR
1805 ac_fn_c_check_header_mongrel ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if eval \${$3+:} false; then :
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 # Is the header compilable?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820 $as_echo_n "checking $2 usability... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_header_compiler=yes
1829 ac_header_compiler=no
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833 $as_echo "$ac_header_compiler" >&6; }
1835 # Is the header present?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837 $as_echo_n "checking $2 presence... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1842 if ac_fn_c_try_cpp "$LINENO"; then :
1843 ac_header_preproc=yes
1845 ac_header_preproc=no
1847 rm -f conftest.err conftest.i conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849 $as_echo "$ac_header_preproc" >&6; }
1851 # So? What about this header?
1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1863 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1867 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1877 eval "$3=\$ac_header_compiler"
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 } # ac_fn_c_check_header_mongrel
1887 # ac_fn_c_try_run LINENO
1888 # ----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1890 # that executables *can* be run.
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_link"
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>&5
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905 { { case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_try") 2>&5
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; }; }; then :
1917 $as_echo "$as_me: program exited with status $ac_status" >&5
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=$ac_status
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1929 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1930 # -------------------------------------------------------
1931 # Tests whether HEADER exists and can be compiled using the include files in
1932 # INCLUDES, setting the cache variable VAR accordingly.
1933 ac_fn_c_check_header_compile ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1946 if ac_fn_c_try_compile "$LINENO"; then :
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 } # ac_fn_c_check_header_compile
1960 # ac_fn_c_try_link LINENO
1961 # -----------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 rm -f conftest.$ac_objext conftest$ac_exeext
1967 if { { ac_try="$ac_link"
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_link") 2>conftest.err
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_c_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest$ac_exeext && {
1986 test "$cross_compiling" = yes ||
1987 test -x conftest$ac_exeext
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1996 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998 # interfere with the next link command; also delete a directory that is
1999 # left behind by Apple's compiler. We do this before executing the actions.
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 as_fn_set_status $ac_retval
2004 } # ac_fn_c_try_link
2006 # ac_fn_c_check_func LINENO FUNC VAR
2007 # ----------------------------------
2008 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2009 ac_fn_c_check_func ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2021 #define $2 innocuous_$2
2023 /* System header to define __stub macros and hopefully few prototypes,
2024 which can conflict with char $2 (); below.
2025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2026 <limits.h> exists even on freestanding compilers. */
2029 # include <limits.h>
2031 # include <assert.h>
2036 /* Override any GCC internal prototype to avoid an error.
2037 Use char because int might match the return type of a GCC
2038 builtin and then its argument prototype would still apply. */
2043 /* The GNU C library defines this for functions which it implements
2044 to always fail with ENOSYS. Some functions are actually named
2045 something starting with __ and the normal name is an alias. */
2046 #if defined __stub_$2 || defined __stub___$2
2058 if ac_fn_c_try_link "$LINENO"; then :
2063 rm -f core conftest.err conftest.$ac_objext \
2064 conftest$ac_exeext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_func
2073 # ac_fn_cxx_try_cpp LINENO
2074 # ------------------------
2075 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2076 ac_fn_cxx_try_cpp ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if { { ac_try="$ac_cpp conftest.$ac_ext"
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2088 if test -s conftest.err; then
2089 grep -v '^ *+' conftest.err >conftest.er1
2090 cat conftest.er1 >&5
2091 mv -f conftest.er1 conftest.err
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094 test $ac_status = 0; } > conftest.i && {
2095 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2096 test ! -s conftest.err
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 as_fn_set_status $ac_retval
2108 } # ac_fn_cxx_try_cpp
2110 # ac_fn_cxx_try_link LINENO
2111 # -------------------------
2112 # Try to link conftest.$ac_ext, and return whether this succeeded.
2113 ac_fn_cxx_try_link ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 rm -f conftest.$ac_objext conftest$ac_exeext
2117 if { { ac_try="$ac_link"
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124 (eval "$ac_link") 2>conftest.err
2126 if test -s conftest.err; then
2127 grep -v '^ *+' conftest.err >conftest.er1
2128 cat conftest.er1 >&5
2129 mv -f conftest.er1 conftest.err
2131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2132 test $ac_status = 0; } && {
2133 test -z "$ac_cxx_werror_flag" ||
2134 test ! -s conftest.err
2135 } && test -s conftest$ac_exeext && {
2136 test "$cross_compiling" = yes ||
2137 test -x conftest$ac_exeext
2141 $as_echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.$ac_ext >&5
2146 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2147 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2148 # interfere with the next link command; also delete a directory that is
2149 # left behind by Apple's compiler. We do this before executing the actions.
2150 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 as_fn_set_status $ac_retval
2154 } # ac_fn_cxx_try_link
2156 # ac_fn_f77_try_compile LINENO
2157 # ----------------------------
2158 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2159 ac_fn_f77_try_compile ()
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 rm -f conftest.$ac_objext
2163 if { { ac_try="$ac_compile"
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2169 $as_echo "$ac_try_echo"; } >&5
2170 (eval "$ac_compile") 2>conftest.err
2172 if test -s conftest.err; then
2173 grep -v '^ *+' conftest.err >conftest.er1
2174 cat conftest.er1 >&5
2175 mv -f conftest.er1 conftest.err
2177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178 test $ac_status = 0; } && {
2179 test -z "$ac_f77_werror_flag" ||
2180 test ! -s conftest.err
2181 } && test -s conftest.$ac_objext; then :
2184 $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 as_fn_set_status $ac_retval
2192 } # ac_fn_f77_try_compile
2194 # ac_fn_f77_try_link LINENO
2195 # -------------------------
2196 # Try to link conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_f77_try_link ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 rm -f conftest.$ac_objext conftest$ac_exeext
2201 if { { ac_try="$ac_link"
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_link") 2>conftest.err
2210 if test -s conftest.err; then
2211 grep -v '^ *+' conftest.err >conftest.er1
2212 cat conftest.er1 >&5
2213 mv -f conftest.er1 conftest.err
2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } && {
2217 test -z "$ac_f77_werror_flag" ||
2218 test ! -s conftest.err
2219 } && test -s conftest$ac_exeext && {
2220 test "$cross_compiling" = yes ||
2221 test -x conftest$ac_exeext
2225 $as_echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2230 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2231 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2232 # interfere with the next link command; also delete a directory that is
2233 # left behind by Apple's compiler. We do this before executing the actions.
2234 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 as_fn_set_status $ac_retval
2238 } # ac_fn_f77_try_link
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type ()
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval \${$3+:} false; then :
2250 $as_echo_n "(cached) " >&6
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2278 if ac_fn_c_try_compile "$LINENO"; then :
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292 } # ac_fn_c_check_type
2294 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2295 # ---------------------------------------------
2296 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2298 ac_fn_c_check_decl ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 as_decl_name=`echo $2|sed 's/ *(.*//'`
2302 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2304 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2305 if eval \${$3+:} false; then :
2306 $as_echo_n "(cached) " >&6
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2314 #ifndef $as_decl_name
2316 (void) $as_decl_use;
2318 (void) $as_decl_name;
2326 if ac_fn_c_try_compile "$LINENO"; then :
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 } # ac_fn_c_check_decl
2339 cat >config.log <<_ACEOF
2340 This file contains any messages produced by compilers while
2341 running configure, to aid debugging if configure makes a mistake.
2343 It was created by $as_me, which was
2344 generated by GNU Autoconf 2.69. Invocation command line was
2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2363 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2365 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2366 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2368 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2369 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2370 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2371 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 $as_echo "PATH: $as_dir"
2396 # Keep a trace of the command line.
2397 # Strip out --no-create and --no-recursion so they do not pile up.
2398 # Strip out --silent because we don't want to record it for future runs.
2399 # Also quote any args containing shell meta-characters.
2400 # Make two passes to allow for proper duplicate-argument suppression.
2404 ac_must_keep_next=false
2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2412 | -silent | --silent | --silen | --sile | --sil)
2415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2420 as_fn_append ac_configure_args1 " '$ac_arg'"
2421 if test $ac_must_keep_next = true; then
2422 ac_must_keep_next=false # Got value, back to normal.
2425 *=* | --config-cache | -C | -disable-* | --disable-* \
2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2428 | -with-* | --with-* | -without-* | --without-* | --x)
2429 case "$ac_configure_args0 " in
2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2433 -* ) ac_must_keep_next=true ;;
2436 as_fn_append ac_configure_args " '$ac_arg'"
2441 { ac_configure_args0=; unset ac_configure_args0;}
2442 { ac_configure_args1=; unset ac_configure_args1;}
2444 # When interrupted or exit'd, cleanup temporary files, and complete
2445 # config.log. We remove comments because anyway the quotes in there
2446 # would cause problems or look ugly.
2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2449 trap 'exit_status=$?
2450 # Save into config.log some information that might help in debugging.
2454 $as_echo "## ---------------- ##
2455 ## Cache variables. ##
2456 ## ---------------- ##"
2458 # The following way of writing the cache mishandles newlines in values,
2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2461 eval ac_val=\$$ac_var
2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2469 _ | IFS | as_nl) ;; #(
2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2471 *) { eval $ac_var=; unset $ac_var;} ;;
2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2477 *${as_nl}ac_space=\ *)
2479 "s/'\''/'\''\\\\'\'''\''/g;
2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2490 $as_echo "## ----------------- ##
2491 ## Output variables. ##
2492 ## ----------------- ##"
2494 for ac_var in $ac_subst_vars
2496 eval ac_val=\$$ac_var
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500 $as_echo "$ac_var='\''$ac_val'\''"
2504 if test -n "$ac_subst_files"; then
2505 $as_echo "## ------------------- ##
2506 ## File substitutions. ##
2507 ## ------------------- ##"
2509 for ac_var in $ac_subst_files
2511 eval ac_val=\$$ac_var
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515 $as_echo "$ac_var='\''$ac_val'\''"
2520 if test -s confdefs.h; then
2521 $as_echo "## ----------- ##
2528 test "$ac_signal" != 0 &&
2529 $as_echo "$as_me: caught signal $ac_signal"
2530 $as_echo "$as_me: exit $exit_status"
2532 rm -f core *.core core.conftest.* &&
2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2536 for ac_signal in 1 2 13 15; do
2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2542 rm -f -r conftest* confdefs.h
2544 $as_echo "/* confdefs.h */" > confdefs.h
2546 # Predefined preprocessor variables.
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_NAME "$PACKAGE_NAME"
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_STRING "$PACKAGE_STRING"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_URL "$PACKAGE_URL"
2573 # Let the site file select an alternate cache file if it wants to.
2574 # Prefer an explicitly selected file to automatically selected ones.
2577 if test -n "$CONFIG_SITE"; then
2578 # We do not want a PATH search for config.site.
2579 case $CONFIG_SITE in #((
2580 -*) ac_site_file1=./$CONFIG_SITE;;
2581 */*) ac_site_file1=$CONFIG_SITE;;
2582 *) ac_site_file1=./$CONFIG_SITE;;
2584 elif test "x$prefix" != xNONE; then
2585 ac_site_file1=$prefix/share/config.site
2586 ac_site_file2=$prefix/etc/config.site
2588 ac_site_file1=$ac_default_prefix/share/config.site
2589 ac_site_file2=$ac_default_prefix/etc/config.site
2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2593 test "x$ac_site_file" = xNONE && continue
2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2597 sed 's/^/| /' "$ac_site_file" >&5
2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601 as_fn_error $? "failed to load site script $ac_site_file
2602 See \`config.log' for more details" "$LINENO" 5; }
2606 if test -r "$cache_file"; then
2607 # Some versions of bash will fail to source /dev/null (special files
2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
2613 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2614 *) . "./$cache_file";;
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
2623 # Check that the precious variables saved in the cache have kept the same
2625 ac_cache_corrupted=false
2626 for ac_var in $ac_precious_vars; do
2627 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2628 eval ac_new_set=\$ac_env_${ac_var}_set
2629 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2630 eval ac_new_val=\$ac_env_${ac_var}_value
2631 case $ac_old_set,$ac_new_set in
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2642 if test "x$ac_old_val" != "x$ac_new_val"; then
2643 # differences in whitespace do not lead to failure.
2644 ac_old_val_w=`echo x $ac_old_val`
2645 ac_new_val_w=`echo x $ac_new_val`
2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2649 ac_cache_corrupted=:
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2653 eval $ac_var=\$ac_old_val
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2656 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2658 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2661 # Pass precious variables to config.status.
2662 if test "$ac_new_set" = set; then
2664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2665 *) ac_arg=$ac_var=$ac_new_val ;;
2667 case " $ac_configure_args " in
2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2669 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2673 if $ac_cache_corrupted; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2678 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2680 ## -------------------- ##
2681 ## Main body of script. ##
2682 ## -------------------- ##
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2695 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2696 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2697 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2699 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2700 -v minor="$RADIUSD_MINOR_VERSION" \
2701 -v incrm="$RADIUSD_INCRM_VERSION" \
2702 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2704 RADIUSD_VERSION_STRING=`cat VERSION`
2709 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2710 if test -f "$ac_dir/install-sh"; then
2712 ac_install_sh="$ac_aux_dir/install-sh -c"
2714 elif test -f "$ac_dir/install.sh"; then
2716 ac_install_sh="$ac_aux_dir/install.sh -c"
2718 elif test -f "$ac_dir/shtool"; then
2720 ac_install_sh="$ac_aux_dir/shtool install -c"
2724 if test -z "$ac_aux_dir"; then
2725 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2728 # These three variables are undocumented and unsupported,
2729 # and are intended to be withdrawn in a future Autoconf release.
2730 # They can cause serious problems if a builder's source tree is in a directory
2731 # whose full name contains unusual characters.
2732 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2733 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2734 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2737 # Make sure we can run config.sub.
2738 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2739 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2742 $as_echo_n "checking build system type... " >&6; }
2743 if ${ac_cv_build+:} false; then :
2744 $as_echo_n "(cached) " >&6
2746 ac_build_alias=$build_alias
2747 test "x$ac_build_alias" = x &&
2748 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2749 test "x$ac_build_alias" = x &&
2750 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2751 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2752 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2756 $as_echo "$ac_cv_build" >&6; }
2757 case $ac_cv_build in
2759 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2762 ac_save_IFS=$IFS; IFS='-'
2768 # Remember, the first character of IFS is used to create $*,
2769 # except with old shells:
2772 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2776 $as_echo_n "checking host system type... " >&6; }
2777 if ${ac_cv_host+:} false; then :
2778 $as_echo_n "(cached) " >&6
2780 if test "x$host_alias" = x; then
2781 ac_cv_host=$ac_cv_build
2783 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2784 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2789 $as_echo "$ac_cv_host" >&6; }
2792 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2795 ac_save_IFS=$IFS; IFS='-'
2801 # Remember, the first character of IFS is used to create $*,
2802 # except with old shells:
2805 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2809 $as_echo_n "checking target system type... " >&6; }
2810 if ${ac_cv_target+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test "x$target_alias" = x; then
2814 ac_cv_target=$ac_cv_host
2816 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2817 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2822 $as_echo "$ac_cv_target" >&6; }
2823 case $ac_cv_target in
2825 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2827 target=$ac_cv_target
2828 ac_save_IFS=$IFS; IFS='-'
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2838 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2841 # The aliases save the names the user supplied, while $host etc.
2842 # will get canonicalized.
2843 test -n "$target_alias" &&
2844 test "$program_prefix$program_suffix$program_transform_name" = \
2846 program_prefix=${target_alias}-
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2893 if test -z "$ac_cv_prog_CC"; then
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2900 $as_echo_n "(cached) " >&6
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_CC="gcc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2931 if test "x$ac_ct_CC" = x; then
2934 case $cross_compiling:$ac_tool_warned in
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2946 if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_CC="${ac_tool_prefix}cc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 if test -n "$CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2987 if test -z "$CC"; then
2988 # Extract the first word of "cc", so it can be a program name with args.
2989 set dummy cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007 ac_prog_rejected=yes
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 if test $ac_prog_rejected = yes; then
3019 # We found a bogon in the path, so make sure we never use it.
3020 set dummy $ac_cv_prog_CC
3022 if test $# != 0; then
3023 # We chose a different compiler from the bogus one.
3024 # However, it has the same basename, so the bogon will be chosen
3025 # first if we set CC to just the basename; use the full file name.
3027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3033 if test -n "$CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3043 if test -z "$CC"; then
3044 if test -n "$ac_tool_prefix"; then
3045 for ac_prog in cl.exe
3047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_CC+:} false; then :
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3084 test -n "$CC" && break
3087 if test -z "$CC"; then
3089 for ac_prog in cl.exe
3091 # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 ac_cv_prog_ac_ct_CC="$ac_prog"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3128 test -n "$ac_ct_CC" && break
3131 if test "x$ac_ct_CC" = x; then
3134 case $cross_compiling:$ac_tool_warned in
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3147 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details" "$LINENO" 5; }
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3156 for ac_option in --version -v -V -qversion; do
3157 { { ac_try="$ac_compiler $ac_option >&5"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3166 if test -s conftest.err; then
3168 ... rest of stderr output deleted ...
3169 10q' conftest.err >conftest.er1
3170 cat conftest.er1 >&5
3172 rm -f conftest.er1 conftest.err
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3188 ac_clean_files_save=$ac_clean_files
3189 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194 $as_echo_n "checking whether the C compiler works... " >&6; }
3195 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3197 # The possible output files:
3198 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3201 for ac_file in $ac_files
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3210 if { { ac_try="$ac_link_default"
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link_default") 2>&5
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3226 for ac_file in $ac_files ''
3228 test -f "$ac_file" || continue
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3233 # We found the default executable, but exeext='' is most
3237 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 # We set ac_cv_exeext here because the later test for it is not
3242 # safe: cross compilers may not add the suffix if given an `-o'
3243 # argument, so we may need to know it at that point already.
3244 # Even if this section looks crufty: it has the advantage of
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3256 if test -z "$ac_file"; then :
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error 77 "C compiler cannot create executables
3265 See \`config.log' for more details" "$LINENO" 5; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3271 $as_echo_n "checking for C compiler default output file name... " >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3273 $as_echo "$ac_file" >&6; }
3274 ac_exeext=$ac_cv_exeext
3276 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3277 ac_clean_files=$ac_clean_files_save
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3279 $as_echo_n "checking for suffix of executables... " >&6; }
3280 if { { ac_try="$ac_link"
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link") 2>&5
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3293 # work properly (i.e., refer to `conftest.exe'), while it won't with
3295 for ac_file in conftest.exe conftest conftest.*; do
3296 test -f "$ac_file" || continue
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3308 See \`config.log' for more details" "$LINENO" 5; }
3310 rm -f conftest conftest$ac_cv_exeext
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3312 $as_echo "$ac_cv_exeext" >&6; }
3314 rm -f conftest.$ac_ext
3315 EXEEXT=$ac_cv_exeext
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3323 FILE *f = fopen ("conftest.out", "w");
3324 return ferror (f) || fclose (f) != 0;
3330 ac_clean_files="$ac_clean_files conftest.out"
3331 # Check that the compiler produces executables we can run. If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334 $as_echo_n "checking whether we are cross compiling... " >&6; }
3335 if test "$cross_compiling" != yes; then
3336 { { ac_try="$ac_link"
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link") 2>&5
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }
3347 if { ac_try='./conftest$ac_cv_exeext'
3348 { { case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_try") 2>&5
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; }; then
3360 if test "$cross_compiling" = maybe; then
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details" "$LINENO" 5; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3372 $as_echo "$cross_compiling" >&6; }
3374 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3375 ac_clean_files=$ac_clean_files_save
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3377 $as_echo_n "checking for suffix of object files... " >&6; }
3378 if ${ac_cv_objext+:} false; then :
3379 $as_echo_n "(cached) " >&6
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3392 rm -f conftest.o conftest.obj
3393 if { { ac_try="$ac_compile"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_compile") 2>&5
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 for ac_file in conftest.o conftest.obj conftest.*; do
3405 test -f "$ac_file" || continue;
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3408 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot compute suffix of object files: cannot compile
3419 See \`config.log' for more details" "$LINENO" 5; }
3421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3424 $as_echo "$ac_cv_objext" >&6; }
3425 OBJEXT=$ac_cv_objext
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3428 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429 if ${ac_cv_c_compiler_gnu+:} false; then :
3430 $as_echo_n "(cached) " >&6
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3446 if ac_fn_c_try_compile "$LINENO"; then :
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3456 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457 if test $ac_compiler_gnu = yes; then
3462 ac_test_CFLAGS=${CFLAGS+set}
3463 ac_save_CFLAGS=$CFLAGS
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3465 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3466 if ${ac_cv_prog_cc_g+:} false; then :
3467 $as_echo_n "(cached) " >&6
3469 ac_save_c_werror_flag=$ac_c_werror_flag
3470 ac_c_werror_flag=yes
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3484 if ac_fn_c_try_compile "$LINENO"; then :
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3499 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3515 if ac_fn_c_try_compile "$LINENO"; then :
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3526 $as_echo "$ac_cv_prog_cc_g" >&6; }
3527 if test "$ac_test_CFLAGS" = set; then
3528 CFLAGS=$ac_save_CFLAGS
3529 elif test $ac_cv_prog_cc_g = yes; then
3530 if test "$GCC" = yes; then
3536 if test "$GCC" = yes; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3543 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3544 if ${ac_cv_prog_cc_c89+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 ac_cv_prog_cc_c89=no
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3555 struct buf { int x; };
3556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557 static char *e (p, i)
3563 static char *f (char * (*g) (char **, int), char **p, ...)
3568 s = g (p, va_arg (v,int));
3573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3574 function prototypes and stuff, but not '\xHH' hex character constants.
3575 These don't provoke an error unfortunately, instead are silently treated
3576 as 'x'. The following induces an error, until -std is added to get
3577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3578 array size at least. It's necessary to write '\x00'==0 to get something
3579 that's true only with -std. */
3580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583 inside strings and character constants. */
3585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3587 int test (int i, double x);
3588 struct s1 {int (*f) (int a);};
3589 struct s2 {int (*f) (double a);};
3590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3604 CC="$ac_save_CC $ac_arg"
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_c89=$ac_arg
3608 rm -f core conftest.err conftest.$ac_objext
3609 test "x$ac_cv_prog_cc_c89" != "xno" && break
3611 rm -f conftest.$ac_ext
3616 case "x$ac_cv_prog_cc_c89" in
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 $as_echo "none needed" >&6; } ;;
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 $as_echo "unsupported" >&6; } ;;
3624 CC="$CC $ac_cv_prog_cc_c89"
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3626 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3628 if test "x$ac_cv_prog_cc_c89" != xno; then :
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 ac_cpp='$CXXCPP $CPPFLAGS'
3640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3643 if test -z "$CXX"; then
3644 if test -n "$CCC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if ${ac_cv_prog_CXX+:} false; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$CXX"; then
3658 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$CXX"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3680 $as_echo "$CXX" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$CXX" && break
3690 if test -z "$CXX"; then
3692 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$ac_ct_CXX"; then
3702 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_ac_ct_CXX="$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3722 if test -n "$ac_ct_CXX"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3724 $as_echo "$ac_ct_CXX" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$ac_ct_CXX" && break
3734 if test "x$ac_ct_CXX" = x; then
3737 case $cross_compiling:$ac_tool_warned in
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3749 # Provide some information about the compiler.
3750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3753 for ac_option in --version -v -V -qversion; do
3754 { { ac_try="$ac_compiler $ac_option >&5"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3763 if test -s conftest.err; then
3765 ... rest of stderr output deleted ...
3766 10q' conftest.err >conftest.er1
3767 cat conftest.er1 >&5
3769 rm -f conftest.er1 conftest.err
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3775 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3776 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3793 if ac_fn_cxx_try_compile "$LINENO"; then :
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3803 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3804 if test $ac_compiler_gnu = yes; then
3809 ac_test_CXXFLAGS=${CXXFLAGS+set}
3810 ac_save_CXXFLAGS=$CXXFLAGS
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3812 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3813 if ${ac_cv_prog_cxx_g+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3817 ac_cxx_werror_flag=yes
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3831 if ac_fn_cxx_try_compile "$LINENO"; then :
3832 ac_cv_prog_cxx_g=yes
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3846 if ac_fn_cxx_try_compile "$LINENO"; then :
3849 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3862 if ac_fn_cxx_try_compile "$LINENO"; then :
3863 ac_cv_prog_cxx_g=yes
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3873 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3874 if test "$ac_test_CXXFLAGS" = set; then
3875 CXXFLAGS=$ac_save_CXXFLAGS
3876 elif test $ac_cv_prog_cxx_g = yes; then
3877 if test "$GXX" = yes; then
3883 if test "$GXX" = yes; then
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3903 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3904 # On Suns, sometimes $CPP names a directory.
3905 if test -n "$CPP" && test -d "$CPP"; then
3908 if test -z "$CPP"; then
3909 if ${ac_cv_prog_CPP+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 # Double quotes because CPP needs to be expanded
3913 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3916 for ac_c_preproc_warn_flag in '' yes
3918 # Use a header file that comes with gcc, so configuring glibc
3919 # with a fresh cross-compiler works.
3920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921 # <limits.h> exists even on freestanding compilers.
3922 # On the NeXT, cc -E runs the code through the compiler's parser,
3923 # not just through cpp. "Syntax error" is here to catch this case.
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3927 # include <limits.h>
3929 # include <assert.h>
3933 if ac_fn_c_try_cpp "$LINENO"; then :
3936 # Broken: fails on valid input.
3939 rm -f conftest.err conftest.i conftest.$ac_ext
3941 # OK, works on sane cases. Now check whether nonexistent headers
3942 # can be detected and how.
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945 #include <ac_nonexistent.h>
3947 if ac_fn_c_try_cpp "$LINENO"; then :
3948 # Broken: success on invalid input.
3951 # Passes both tests.
3955 rm -f conftest.err conftest.i conftest.$ac_ext
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.i conftest.err conftest.$ac_ext
3960 if $ac_preproc_ok; then :
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3973 $as_echo "$CPP" >&6; }
3975 for ac_c_preproc_warn_flag in '' yes
3977 # Use a header file that comes with gcc, so configuring glibc
3978 # with a fresh cross-compiler works.
3979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3980 # <limits.h> exists even on freestanding compilers.
3981 # On the NeXT, cc -E runs the code through the compiler's parser,
3982 # not just through cpp. "Syntax error" is here to catch this case.
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3986 # include <limits.h>
3988 # include <assert.h>
3992 if ac_fn_c_try_cpp "$LINENO"; then :
3995 # Broken: fails on valid input.
3998 rm -f conftest.err conftest.i conftest.$ac_ext
4000 # OK, works on sane cases. Now check whether nonexistent headers
4001 # can be detected and how.
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #include <ac_nonexistent.h>
4006 if ac_fn_c_try_cpp "$LINENO"; then :
4007 # Broken: success on invalid input.
4010 # Passes both tests.
4014 rm -f conftest.err conftest.i conftest.$ac_ext
4017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4018 rm -f conftest.i conftest.err conftest.$ac_ext
4019 if $ac_preproc_ok; then :
4022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4025 See \`config.log' for more details" "$LINENO" 5; }
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4036 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4037 if ${ac_cv_path_GREP+:} false; then :
4038 $as_echo_n "(cached) " >&6
4040 if test -z "$GREP"; then
4041 ac_path_GREP_found=false
4042 # Loop through the user's path and test for each of PROGNAME-LIST
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4047 test -z "$as_dir" && as_dir=.
4048 for ac_prog in grep ggrep; do
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4051 as_fn_executable_p "$ac_path_GREP" || continue
4052 # Check for GNU ac_path_GREP and select it if it is found.
4053 # Check for GNU $ac_path_GREP
4054 case `"$ac_path_GREP" --version 2>&1` in
4056 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4059 $as_echo_n 0123456789 >"conftest.in"
4062 cat "conftest.in" "conftest.in" >"conftest.tmp"
4063 mv "conftest.tmp" "conftest.in"
4064 cp "conftest.in" "conftest.nl"
4065 $as_echo 'GREP' >> "conftest.nl"
4066 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4068 as_fn_arith $ac_count + 1 && ac_count=$as_val
4069 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4070 # Best one so far, save it but keep looking for a better one
4071 ac_cv_path_GREP="$ac_path_GREP"
4072 ac_path_GREP_max=$ac_count
4074 # 10*(2^10) chars as input seems more than enough
4075 test $ac_count -gt 10 && break
4077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080 $ac_path_GREP_found && break 3
4085 if test -z "$ac_cv_path_GREP"; then
4086 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4089 ac_cv_path_GREP=$GREP
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4094 $as_echo "$ac_cv_path_GREP" >&6; }
4095 GREP="$ac_cv_path_GREP"
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4099 $as_echo_n "checking for egrep... " >&6; }
4100 if ${ac_cv_path_EGREP+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4104 then ac_cv_path_EGREP="$GREP -E"
4106 if test -z "$EGREP"; then
4107 ac_path_EGREP_found=false
4108 # Loop through the user's path and test for each of PROGNAME-LIST
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113 test -z "$as_dir" && as_dir=.
4114 for ac_prog in egrep; do
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4117 as_fn_executable_p "$ac_path_EGREP" || continue
4118 # Check for GNU ac_path_EGREP and select it if it is found.
4119 # Check for GNU $ac_path_EGREP
4120 case `"$ac_path_EGREP" --version 2>&1` in
4122 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4125 $as_echo_n 0123456789 >"conftest.in"
4128 cat "conftest.in" "conftest.in" >"conftest.tmp"
4129 mv "conftest.tmp" "conftest.in"
4130 cp "conftest.in" "conftest.nl"
4131 $as_echo 'EGREP' >> "conftest.nl"
4132 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4134 as_fn_arith $ac_count + 1 && ac_count=$as_val
4135 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4136 # Best one so far, save it but keep looking for a better one
4137 ac_cv_path_EGREP="$ac_path_EGREP"
4138 ac_path_EGREP_max=$ac_count
4140 # 10*(2^10) chars as input seems more than enough
4141 test $ac_count -gt 10 && break
4143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146 $ac_path_EGREP_found && break 3
4151 if test -z "$ac_cv_path_EGREP"; then
4152 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4155 ac_cv_path_EGREP=$EGREP
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4161 $as_echo "$ac_cv_path_EGREP" >&6; }
4162 EGREP="$ac_cv_path_EGREP"
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4166 $as_echo_n "checking for ANSI C header files... " >&6; }
4167 if ${ac_cv_header_stdc+:} false; then :
4168 $as_echo_n "(cached) " >&6
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_header_stdc=yes
4188 ac_cv_header_stdc=no
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 if test $ac_cv_header_stdc = yes; then
4193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200 $EGREP "memchr" >/dev/null 2>&1; then :
4203 ac_cv_header_stdc=no
4209 if test $ac_cv_header_stdc = yes; then
4210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217 $EGREP "free" >/dev/null 2>&1; then :
4220 ac_cv_header_stdc=no
4226 if test $ac_cv_header_stdc = yes; then
4227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4228 if test "$cross_compiling" = yes; then :
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4235 #if ((' ' & 0x0FF) == 0x020)
4236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4239 # define ISLOWER(c) \
4240 (('a' <= (c) && (c) <= 'i') \
4241 || ('j' <= (c) && (c) <= 'r') \
4242 || ('s' <= (c) && (c) <= 'z'))
4243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4251 for (i = 0; i < 256; i++)
4252 if (XOR (islower (i), ISLOWER (i))
4253 || toupper (i) != TOUPPER (i))
4258 if ac_fn_c_try_run "$LINENO"; then :
4261 ac_cv_header_stdc=no
4263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4264 conftest.$ac_objext conftest.beam conftest.$ac_ext
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4270 $as_echo "$ac_cv_header_stdc" >&6; }
4271 if test $ac_cv_header_stdc = yes; then
4273 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279 inttypes.h stdint.h unistd.h
4281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4285 cat >>confdefs.h <<_ACEOF
4286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4296 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4303 if test "$MINIX" = yes; then
4305 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4308 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4311 $as_echo "#define _MINIX 1" >>confdefs.h
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4317 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4318 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4319 $as_echo_n "(cached) " >&6
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4324 # define __EXTENSIONS__ 1
4325 $ac_includes_default
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335 ac_cv_safe_to_define___extensions__=yes
4337 ac_cv_safe_to_define___extensions__=no
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4342 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4343 test $ac_cv_safe_to_define___extensions__ = yes &&
4344 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4346 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4348 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4350 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4352 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4357 if test $ac_cv_c_compiler_gnu = yes; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4359 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4360 if ${ac_cv_prog_gcc_traditional+:} false; then :
4361 $as_echo_n "(cached) " >&6
4363 ac_pattern="Autoconf.*'x'"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4371 ac_cv_prog_gcc_traditional=yes
4373 ac_cv_prog_gcc_traditional=no
4378 if test $ac_cv_prog_gcc_traditional = no; then
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4385 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4386 ac_cv_prog_gcc_traditional=yes
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4393 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4394 if test $ac_cv_prog_gcc_traditional = yes; then
4395 CC="$CC -traditional"
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4400 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4401 if ${ac_cv_prog_suncc+:} false; then :
4402 $as_echo_n "(cached) " >&6
4404 cat > conftest.c <<EOF
4409 if { ac_try='${CC-cc} -E conftest.c'
4410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4415 ac_cv_prog_suncc=yes
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4421 $as_echo "$ac_cv_prog_suncc" >&6; }
4422 if test -n "$ac_tool_prefix"; then
4423 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4424 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if ${ac_cv_prog_RANLIB+:} false; then :
4428 $as_echo_n "(cached) " >&6
4430 if test -n "$RANLIB"; then
4431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 RANLIB=$ac_cv_prog_RANLIB
4451 if test -n "$RANLIB"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4453 $as_echo "$RANLIB" >&6; }
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4461 if test -z "$ac_cv_prog_RANLIB"; then
4462 ac_ct_RANLIB=$RANLIB
4463 # Extract the first word of "ranlib", so it can be a program name with args.
4464 set dummy ranlib; ac_word=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4468 $as_echo_n "(cached) " >&6
4470 if test -n "$ac_ct_RANLIB"; then
4471 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_ac_ct_RANLIB="ranlib"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4491 if test -n "$ac_ct_RANLIB"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4493 $as_echo "$ac_ct_RANLIB" >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4499 if test "x$ac_ct_RANLIB" = x; then
4502 case $cross_compiling:$ac_tool_warned in
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506 ac_tool_warned=yes ;;
4508 RANLIB=$ac_ct_RANLIB
4511 RANLIB="$ac_cv_prog_RANLIB"
4515 if test "x$GCC" = "xyes"; then
4516 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4519 # Check whether --enable-largefile was given.
4520 if test "${enable_largefile+set}" = set; then :
4521 enableval=$enable_largefile;
4524 if test "$enable_largefile" != no; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4527 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4528 if ${ac_cv_sys_largefile_CC+:} false; then :
4529 $as_echo_n "(cached) " >&6
4531 ac_cv_sys_largefile_CC=no
4532 if test "$GCC" != yes; then
4535 # IRIX 6.2 and later do not support large files by default,
4536 # so use the C compiler's -n32 option if that helps.
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539 #include <sys/types.h>
4540 /* Check that off_t can represent 2**63 - 1 correctly.
4541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4542 since some C++ compilers masquerading as C compilers
4543 incorrectly reject 9223372036854775807. */
4544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4546 && LARGE_OFF_T % 2147483647 == 1)
4556 if ac_fn_c_try_compile "$LINENO"; then :
4559 rm -f core conftest.err conftest.$ac_objext
4561 if ac_fn_c_try_compile "$LINENO"; then :
4562 ac_cv_sys_largefile_CC=' -n32'; break
4564 rm -f core conftest.err conftest.$ac_objext
4568 rm -f conftest.$ac_ext
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4572 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4573 if test "$ac_cv_sys_largefile_CC" != no; then
4574 CC=$CC$ac_cv_sys_largefile_CC
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4578 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4579 if ${ac_cv_sys_file_offset_bits+:} false; then :
4580 $as_echo_n "(cached) " >&6
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <sys/types.h>
4586 /* Check that off_t can represent 2**63 - 1 correctly.
4587 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4588 since some C++ compilers masquerading as C compilers
4589 incorrectly reject 9223372036854775807. */
4590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4591 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4592 && LARGE_OFF_T % 2147483647 == 1)
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_sys_file_offset_bits=no; break
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608 #define _FILE_OFFSET_BITS 64
4609 #include <sys/types.h>
4610 /* Check that off_t can represent 2**63 - 1 correctly.
4611 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4612 since some C++ compilers masquerading as C compilers
4613 incorrectly reject 9223372036854775807. */
4614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4615 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4616 && LARGE_OFF_T % 2147483647 == 1)
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_sys_file_offset_bits=64; break
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 ac_cv_sys_file_offset_bits=unknown
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4635 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4636 case $ac_cv_sys_file_offset_bits in #(
4639 cat >>confdefs.h <<_ACEOF
4640 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4645 if test $ac_cv_sys_file_offset_bits = unknown; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4647 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4648 if ${ac_cv_sys_large_files+:} false; then :
4649 $as_echo_n "(cached) " >&6
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 #include <sys/types.h>
4655 /* Check that off_t can represent 2**63 - 1 correctly.
4656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4657 since some C++ compilers masquerading as C compilers
4658 incorrectly reject 9223372036854775807. */
4659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4661 && LARGE_OFF_T % 2147483647 == 1)
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_cv_sys_large_files=no; break
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 #define _LARGE_FILES 1
4678 #include <sys/types.h>
4679 /* Check that off_t can represent 2**63 - 1 correctly.
4680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4681 since some C++ compilers masquerading as C compilers
4682 incorrectly reject 9223372036854775807. */
4683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4685 && LARGE_OFF_T % 2147483647 == 1)
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696 ac_cv_sys_large_files=1; break
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 ac_cv_sys_large_files=unknown
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4704 $as_echo "$ac_cv_sys_large_files" >&6; }
4705 case $ac_cv_sys_large_files in #(
4708 cat >>confdefs.h <<_ACEOF
4709 #define _LARGE_FILES $ac_cv_sys_large_files
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4721 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4722 if ${ac_cv_c_bigendian+:} false; then :
4723 $as_echo_n "(cached) " >&6
4725 ac_cv_c_bigendian=unknown
4726 # See if we're dealing with a universal compiler.
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 #ifndef __APPLE_CC__
4730 not a universal capable compiler
4735 if ac_fn_c_try_compile "$LINENO"; then :
4737 # Check for potential -arch flags. It is not universal unless
4738 # there are at least two -arch flags with different values.
4741 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4742 if test -n "$ac_prev"; then
4744 i?86 | x86_64 | ppc | ppc64)
4745 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4748 ac_cv_c_bigendian=universal
4754 elif test "x$ac_word" = "x-arch"; then
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 if test $ac_cv_c_bigendian = unknown; then
4761 # See if sys/param.h defines the BYTE_ORDER macro.
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 #include <sys/types.h>
4765 #include <sys/param.h>
4770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4771 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4780 if ac_fn_c_try_compile "$LINENO"; then :
4781 # It does; now see whether it defined to BIG_ENDIAN or not.
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 #include <sys/types.h>
4785 #include <sys/param.h>
4790 #if BYTE_ORDER != BIG_ENDIAN
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_c_bigendian=yes
4801 ac_cv_c_bigendian=no
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 if test $ac_cv_c_bigendian = unknown; then
4808 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4816 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 # It does; now see whether it defined to _BIG_ENDIAN or not.
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842 ac_cv_c_bigendian=yes
4844 ac_cv_c_bigendian=no
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 if test $ac_cv_c_bigendian = unknown; then
4851 # Compile a test program.
4852 if test "$cross_compiling" = yes; then :
4853 # Try to guess by grepping values from an object file.
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856 short int ascii_mm[] =
4857 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4858 short int ascii_ii[] =
4859 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4860 int use_ascii (int i) {
4861 return ascii_mm[i] + ascii_ii[i];
4863 short int ebcdic_ii[] =
4864 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4865 short int ebcdic_mm[] =
4866 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4867 int use_ebcdic (int i) {
4868 return ebcdic_mm[i] + ebcdic_ii[i];
4875 return use_ascii (foo) == use_ebcdic (foo);
4880 if ac_fn_c_try_compile "$LINENO"; then :
4881 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4882 ac_cv_c_bigendian=yes
4884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4885 if test "$ac_cv_c_bigendian" = unknown; then
4886 ac_cv_c_bigendian=no
4888 # finding both strings is unlikely to happen, but who knows?
4889 ac_cv_c_bigendian=unknown
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 $ac_includes_default
4902 /* Are we little or big endian? From Harbison&Steele. */
4906 char c[sizeof (long int)];
4909 return u.c[sizeof (long int) - 1] == 1;
4915 if ac_fn_c_try_run "$LINENO"; then :
4916 ac_cv_c_bigendian=no
4918 ac_cv_c_bigendian=yes
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4921 conftest.$ac_objext conftest.beam conftest.$ac_ext
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4927 $as_echo "$ac_cv_c_bigendian" >&6; }
4928 case $ac_cv_c_bigendian in #(
4930 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4936 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4940 as_fn_error $? "unknown endianness
4941 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4945 # Extract the first word of "gmake", so it can be a program name with args.
4946 set dummy gmake; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_GMAKE+:} false; then :
4950 $as_echo_n "(cached) " >&6
4952 if test -n "$GMAKE"; then
4953 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_GMAKE="yes"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4973 GMAKE=$ac_cv_prog_GMAKE
4974 if test -n "$GMAKE"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4976 $as_echo "$GMAKE" >&6; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4983 if test $GMAKE = no; then
4984 # Extract the first word of "make", so it can be a program name with args.
4985 set dummy make; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_path_MAKE+:} false; then :
4989 $as_echo_n "(cached) " >&6
4993 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5015 MAKE=$ac_cv_path_MAKE
5016 if test -n "$MAKE"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5018 $as_echo "$MAKE" >&6; }
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5026 # Extract the first word of "gmake", so it can be a program name with args.
5027 set dummy gmake; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_path_MAKE+:} false; then :
5031 $as_echo_n "(cached) " >&6
5035 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5057 MAKE=$ac_cv_path_MAKE
5058 if test -n "$MAKE"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5060 $as_echo "$MAKE" >&6; }
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5068 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5069 if test -z "$makever"; then
5070 as_fn_error $? "GNU Make is not installed. Please download and install it
5071 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
5074 # Extract the first word of "git", so it can be a program name with args.
5075 set dummy git; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_GIT+:} false; then :
5079 $as_echo_n "(cached) " >&6
5081 if test -n "$GIT"; then
5082 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_prog_GIT="yes"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5103 if test -n "$GIT"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5105 $as_echo "$GIT" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5114 # Check whether --with-system-libltdl was given.
5115 if test "${with_system_libltdl+set}" = set; then :
5116 withval=$with_system_libltdl;
5118 INCLTDL=-DWITH_SYSTEM_LTDL
5123 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
5125 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
5126 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
5127 $as_echo_n "(cached) " >&6
5129 ac_check_lib_save_LIBS=$LIBS
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5134 /* Override any GCC internal prototype to avoid an error.
5135 Use char because int might match the return type of a GCC
5136 builtin and then its argument prototype would still apply. */
5144 return lt_dlinit ();
5149 if ac_fn_c_try_link "$LINENO"; then :
5150 ac_cv_lib_ltdl_lt_dlinit=yes
5152 ac_cv_lib_ltdl_lt_dlinit=no
5154 rm -f core conftest.err conftest.$ac_objext \
5155 conftest$ac_exeext conftest.$ac_ext
5156 LIBS=$ac_check_lib_save_LIBS
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5159 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5160 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5161 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5163 if test x"$enable_ltdl_install" = xno; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5165 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5167 enable_ltdl_install=yes
5172 if test x"$enable_ltdl_install" = x"yes"; then
5173 ac_configure_args="$ac_configure_args --enable-ltdl-install"
5174 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5175 LTDLINCL='-I${top_srcdir}/''libltdl'
5177 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5181 # For backwards non-gettext consistent compatibility...
5185 if test x"$enable_ltdl_install" = x"yes"; then
5186 LTDL_SUBDIRS=libltdl
5193 # Check whether --enable-shared was given.
5194 if test "${enable_shared+set}" = set; then :
5195 enableval=$enable_shared; p=${PACKAGE-default}
5197 yes) enable_shared=yes ;;
5198 no) enable_shared=no ;;
5201 # Look at the argument we got. We use all the common list separators.
5202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5203 for pkg in $enableval; do
5205 if test "X$pkg" = "X$p"; then
5217 # Check whether --enable-static was given.
5218 if test "${enable_static+set}" = set; then :
5219 enableval=$enable_static; p=${PACKAGE-default}
5221 yes) enable_static=yes ;;
5222 no) enable_static=no ;;
5225 # Look at the argument we got. We use all the common list separators.
5226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5227 for pkg in $enableval; do
5229 if test "X$pkg" = "X$p"; then
5241 # Check whether --enable-fast-install was given.
5242 if test "${enable_fast_install+set}" = set; then :
5243 enableval=$enable_fast_install; p=${PACKAGE-default}
5245 yes) enable_fast_install=yes ;;
5246 no) enable_fast_install=no ;;
5248 enable_fast_install=no
5249 # Look at the argument we got. We use all the common list separators.
5250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5251 for pkg in $enableval; do
5253 if test "X$pkg" = "X$p"; then
5254 enable_fast_install=yes
5261 enable_fast_install=yes
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5266 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5267 if ${lt_cv_path_SED+:} false; then :
5268 $as_echo_n "(cached) " >&6
5270 # Loop through the user's path and test for sed and gsed.
5271 # Then use that list of sed's as ones to test for truncation.
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 test -z "$as_dir" && as_dir=.
5277 for lt_ac_prog in sed gsed; do
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5280 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5288 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5289 # along with /bin/sed that truncates output.
5290 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5291 test ! -f $lt_ac_sed && continue
5292 cat /dev/null > conftest.in
5294 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5295 # Check for GNU sed and select it if it is found.
5296 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5297 lt_cv_path_SED=$lt_ac_sed
5301 cat conftest.in conftest.in >conftest.tmp
5302 mv conftest.tmp conftest.in
5303 cp conftest.in conftest.nl
5305 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5306 cmp -s conftest.out conftest.nl || break
5307 # 10000 chars as input seems more than enough
5308 test $lt_ac_count -gt 10 && break
5309 lt_ac_count=`expr $lt_ac_count + 1`
5310 if test $lt_ac_count -gt $lt_ac_max; then
5311 lt_ac_max=$lt_ac_count
5312 lt_cv_path_SED=$lt_ac_sed
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5322 $as_echo "$SED" >&6; }
5325 # Check whether --with-gnu-ld was given.
5326 if test "${with_gnu_ld+set}" = set; then :
5327 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5333 if test "$GCC" = yes; then
5334 # Check if gcc -print-prog-name=ld gives a path.
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5336 $as_echo_n "checking for ld used by $CC... " >&6; }
5339 # gcc leaves a trailing carriage return which upsets mingw
5340 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5342 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5345 # Accept absolute paths.
5347 re_direlt='/[^/][^/]*/\.\./'
5348 # Canonicalize the pathname of ld
5349 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5350 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5351 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5353 test -z "$LD" && LD="$ac_prog"
5356 # If it fails, then pretend we aren't using GCC.
5360 # If it is relative, then search for the first ld in PATH.
5364 elif test "$with_gnu_ld" = yes; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5366 $as_echo_n "checking for GNU ld... " >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5369 $as_echo_n "checking for non-GNU ld... " >&6; }
5371 if ${lt_cv_path_LD+:} false; then :
5372 $as_echo_n "(cached) " >&6
5374 if test -z "$LD"; then
5375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5376 for ac_dir in $PATH; do
5378 test -z "$ac_dir" && ac_dir=.
5379 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5380 lt_cv_path_LD="$ac_dir/$ac_prog"
5381 # Check to see if the program is GNU ld. I'd rather use --version,
5382 # but apparently some variants of GNU ld only accept -v.
5383 # Break only if it was the GNU/non-GNU ld that we prefer.
5384 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5385 *GNU* | *'with BFD'*)
5386 test "$with_gnu_ld" != no && break
5389 test "$with_gnu_ld" != yes && break
5396 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5401 if test -n "$LD"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5403 $as_echo "$LD" >&6; }
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5408 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5410 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5411 if ${lt_cv_prog_gnu_ld+:} false; then :
5412 $as_echo_n "(cached) " >&6
5414 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5415 case `$LD -v 2>&1 </dev/null` in
5416 *GNU* | *'with BFD'*)
5417 lt_cv_prog_gnu_ld=yes
5420 lt_cv_prog_gnu_ld=no
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5425 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5426 with_gnu_ld=$lt_cv_prog_gnu_ld
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5430 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5431 if ${lt_cv_ld_reload_flag+:} false; then :
5432 $as_echo_n "(cached) " >&6
5434 lt_cv_ld_reload_flag='-r'
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5437 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5438 reload_flag=$lt_cv_ld_reload_flag
5439 case $reload_flag in
5441 *) reload_flag=" $reload_flag" ;;
5443 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5446 if test "$GCC" = yes; then
5447 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5449 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5455 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5456 if ${lt_cv_path_NM+:} false; then :
5457 $as_echo_n "(cached) " >&6
5459 if test -n "$NM"; then
5460 # Let the user override the test.
5463 lt_nm_to_check="${ac_tool_prefix}nm"
5464 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5465 lt_nm_to_check="$lt_nm_to_check nm"
5467 for lt_tmp_nm in $lt_nm_to_check; do
5468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5469 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5471 test -z "$ac_dir" && ac_dir=.
5472 tmp_nm="$ac_dir/$lt_tmp_nm"
5473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5474 # Check to see if the nm accepts a BSD-compat flag.
5475 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5476 # nm: unknown option "B" ignored
5477 # Tru64's nm complains that /dev/null is an invalid object file
5478 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5479 */dev/null* | *'Invalid file or object type'*)
5480 lt_cv_path_NM="$tmp_nm -B"
5484 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5486 lt_cv_path_NM="$tmp_nm -p"
5490 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5491 continue # so that we can try to find one that supports BSD flags
5500 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5504 $as_echo "$lt_cv_path_NM" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5508 $as_echo_n "checking whether ln -s works... " >&6; }
5510 if test "$LN_S" = "ln -s"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5512 $as_echo "yes" >&6; }
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5515 $as_echo "no, using $LN_S" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5519 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5520 if ${lt_cv_deplibs_check_method+:} false; then :
5521 $as_echo_n "(cached) " >&6
5523 lt_cv_file_magic_cmd='$MAGIC_CMD'
5524 lt_cv_file_magic_test_file=
5525 lt_cv_deplibs_check_method='unknown'
5526 # Need to set the preceding variable on all platforms that support
5527 # interlibrary dependencies.
5528 # 'none' -- dependencies not supported.
5529 # `unknown' -- same as none, but documents that we really don't know.
5530 # 'pass_all' -- all dependencies passed with no checks.
5531 # 'test_compile' -- check by making test program.
5532 # 'file_magic [[regex]]' -- check by looking for files in library path
5533 # which responds to the $file_magic_cmd with a given extended regex.
5534 # If you have `file' or equivalent on your system and you're not sure
5535 # whether `pass_all' will *always* work, you probably want this one.
5539 lt_cv_deplibs_check_method=pass_all
5543 lt_cv_deplibs_check_method=pass_all
5547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5548 lt_cv_file_magic_cmd='/usr/bin/file -L'
5549 lt_cv_file_magic_test_file=/shlib/libc.so
5553 # func_win32_libid is a shell function defined in ltmain.sh
5554 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5555 lt_cv_file_magic_cmd='func_win32_libid'
5559 # Base MSYS/MinGW do not provide the 'file' command needed by
5560 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5561 # unless we find 'file', for example because we are cross-compiling.
5562 if ( file / ) >/dev/null 2>&1; then
5563 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5564 lt_cv_file_magic_cmd='func_win32_libid'
5566 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5567 lt_cv_file_magic_cmd='$OBJDUMP -f'
5571 darwin* | rhapsody*)
5572 lt_cv_deplibs_check_method=pass_all
5575 freebsd* | dragonfly*)
5576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5579 # Not sure whether the presence of OpenBSD here was a mistake.
5580 # Let's accept both of them until this is cleared up.
5581 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5582 lt_cv_file_magic_cmd=/usr/bin/file
5583 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5587 lt_cv_deplibs_check_method=pass_all
5592 lt_cv_deplibs_check_method=pass_all
5595 hpux10.20* | hpux11*)
5596 lt_cv_file_magic_cmd=/usr/bin/file
5599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5600 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5603 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]'
5604 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5608 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5614 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5618 irix5* | irix6* | nonstopux*)
5620 *-32|*"-32 ") libmagic=32-bit;;
5621 *-n32|*"-n32 ") libmagic=N32;;
5622 *-64|*"-64 ") libmagic=64-bit;;
5623 *) libmagic=never-match;;
5625 lt_cv_deplibs_check_method=pass_all
5628 # This must be Linux ELF.
5629 linux* | k*bsd*-gnu)
5630 lt_cv_deplibs_check_method=pass_all
5633 netbsd* | netbsdelf*-gnu)
5634 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5643 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5648 lt_cv_deplibs_check_method=unknown
5652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5659 osf3* | osf4* | osf5*)
5660 lt_cv_deplibs_check_method=pass_all
5664 lt_cv_deplibs_check_method=pass_all
5668 lt_cv_deplibs_check_method=pass_all
5672 case $host_vendor in
5674 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]'
5675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5678 lt_cv_deplibs_check_method=pass_all
5681 lt_cv_file_magic_cmd='/bin/file'
5682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5685 lt_cv_file_magic_cmd='/bin/file'
5686 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5687 lt_cv_file_magic_test_file=/lib/libc.so
5690 lt_cv_deplibs_check_method=pass_all
5693 lt_cv_deplibs_check_method=pass_all
5698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5699 lt_cv_deplibs_check_method=pass_all
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5705 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5706 file_magic_cmd=$lt_cv_file_magic_cmd
5707 deplibs_check_method=$lt_cv_deplibs_check_method
5708 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5713 # If no C compiler was specified, use CC.
5716 # If no C compiler flags were specified, use CFLAGS.
5717 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5719 # Allow CC to be a program name with arguments.
5722 # Check whether --enable-libtool-lock was given.
5723 if test "${enable_libtool_lock+set}" = set; then :
5724 enableval=$enable_libtool_lock;
5727 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5729 # Some flags need to be propagated to the compiler or linker for good
5733 # Find out which ABI we are using.
5734 echo 'int i;' > conftest.$ac_ext
5735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5736 (eval $ac_compile) 2>&5
5738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5739 test $ac_status = 0; }; then
5740 case `/usr/bin/file conftest.$ac_objext` in
5752 # Find out which ABI we are using.
5753 echo '#line 5753 "configure"' > conftest.$ac_ext
5754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5755 (eval $ac_compile) 2>&5
5757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5758 test $ac_status = 0; }; then
5759 if test "$lt_cv_prog_gnu_ld" = yes; then
5760 case `/usr/bin/file conftest.$ac_objext` in
5762 LD="${LD-ld} -melf32bsmip"
5765 LD="${LD-ld} -melf32bmipn32"
5768 LD="${LD-ld} -melf64bmip"
5772 case `/usr/bin/file conftest.$ac_objext` in
5788 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5789 s390*-*linux*|sparc*-*linux*)
5790 # Find out which ABI we are using.
5791 echo 'int i;' > conftest.$ac_ext
5792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5793 (eval $ac_compile) 2>&5
5795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796 test $ac_status = 0; }; then
5797 case `/usr/bin/file conftest.o` in
5800 x86_64-*kfreebsd*-gnu)
5801 LD="${LD-ld} -m elf_i386_fbsd"
5804 LD="${LD-ld} -m elf_i386"
5806 ppc64-*linux*|powerpc64-*linux*)
5807 LD="${LD-ld} -m elf32ppclinux"
5810 LD="${LD-ld} -m elf_s390"
5813 LD="${LD-ld} -m elf32_sparc"
5819 x86_64-*kfreebsd*-gnu)
5820 LD="${LD-ld} -m elf_x86_64_fbsd"
5823 LD="${LD-ld} -m elf_x86_64"
5825 ppc*-*linux*|powerpc*-*linux*)
5826 LD="${LD-ld} -m elf64ppc"
5829 LD="${LD-ld} -m elf64_s390"
5832 LD="${LD-ld} -m elf64_sparc"
5842 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5843 SAVE_CFLAGS="$CFLAGS"
5844 CFLAGS="$CFLAGS -belf"
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5846 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5847 if ${lt_cv_cc_needs_belf+:} false; then :
5848 $as_echo_n "(cached) " >&6
5851 ac_cpp='$CPP $CPPFLAGS'
5852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5867 if ac_fn_c_try_link "$LINENO"; then :
5868 lt_cv_cc_needs_belf=yes
5870 lt_cv_cc_needs_belf=no
5872 rm -f core conftest.err conftest.$ac_objext \
5873 conftest$ac_exeext conftest.$ac_ext
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5882 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5883 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5884 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5885 CFLAGS="$SAVE_CFLAGS"
5889 # Find out which ABI we are using.
5890 echo 'int i;' > conftest.$ac_ext
5891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5892 (eval $ac_compile) 2>&5
5894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5895 test $ac_status = 0; }; then
5896 case `/usr/bin/file conftest.o` in
5898 case $lt_cv_prog_gnu_ld in
5899 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5901 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5915 need_locks="$enable_libtool_lock"
5918 for ac_header in dlfcn.h
5920 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5921 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5922 cat >>confdefs.h <<_ACEOF
5923 #define HAVE_DLFCN_H 1
5932 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5933 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5934 (test "X$CXX" != "Xg++"))) ; then
5936 ac_cpp='$CXXCPP $CPPFLAGS'
5937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5941 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5942 if test -z "$CXXCPP"; then
5943 if ${ac_cv_prog_CXXCPP+:} false; then :
5944 $as_echo_n "(cached) " >&6
5946 # Double quotes because CXXCPP needs to be expanded
5947 for CXXCPP in "$CXX -E" "/lib/cpp"
5950 for ac_cxx_preproc_warn_flag in '' yes
5952 # Use a header file that comes with gcc, so configuring glibc
5953 # with a fresh cross-compiler works.
5954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5955 # <limits.h> exists even on freestanding compilers.
5956 # On the NeXT, cc -E runs the code through the compiler's parser,
5957 # not just through cpp. "Syntax error" is here to catch this case.
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5961 # include <limits.h>
5963 # include <assert.h>
5967 if ac_fn_cxx_try_cpp "$LINENO"; then :
5970 # Broken: fails on valid input.
5973 rm -f conftest.err conftest.i conftest.$ac_ext
5975 # OK, works on sane cases. Now check whether nonexistent headers
5976 # can be detected and how.
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 #include <ac_nonexistent.h>
5981 if ac_fn_cxx_try_cpp "$LINENO"; then :
5982 # Broken: success on invalid input.
5985 # Passes both tests.
5989 rm -f conftest.err conftest.i conftest.$ac_ext
5992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5993 rm -f conftest.i conftest.err conftest.$ac_ext
5994 if $ac_preproc_ok; then :
5999 ac_cv_prog_CXXCPP=$CXXCPP
6002 CXXCPP=$ac_cv_prog_CXXCPP
6004 ac_cv_prog_CXXCPP=$CXXCPP
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6007 $as_echo "$CXXCPP" >&6; }
6009 for ac_cxx_preproc_warn_flag in '' yes
6011 # Use a header file that comes with gcc, so configuring glibc
6012 # with a fresh cross-compiler works.
6013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6014 # <limits.h> exists even on freestanding compilers.
6015 # On the NeXT, cc -E runs the code through the compiler's parser,
6016 # not just through cpp. "Syntax error" is here to catch this case.
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6020 # include <limits.h>
6022 # include <assert.h>
6026 if ac_fn_cxx_try_cpp "$LINENO"; then :
6029 # Broken: fails on valid input.
6032 rm -f conftest.err conftest.i conftest.$ac_ext
6034 # OK, works on sane cases. Now check whether nonexistent headers
6035 # can be detected and how.
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #include <ac_nonexistent.h>
6040 if ac_fn_cxx_try_cpp "$LINENO"; then :
6041 # Broken: success on invalid input.
6044 # Passes both tests.
6048 rm -f conftest.err conftest.i conftest.$ac_ext
6051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6052 rm -f conftest.i conftest.err conftest.$ac_ext
6053 if $ac_preproc_ok; then :
6056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6058 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6059 See \`config.log' for more details" "$LINENO" 5; }
6063 ac_cpp='$CXXCPP $CPPFLAGS'
6064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6072 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6073 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6075 if test -n "$ac_tool_prefix"; then
6076 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
6078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_F77+:} false; then :
6083 $as_echo_n "(cached) " >&6
6085 if test -n "$F77"; then
6086 ac_cv_prog_F77="$F77" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 if test -n "$F77"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6108 $as_echo "$F77" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6115 test -n "$F77" && break
6118 if test -z "$F77"; then
6120 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
6122 # Extract the first word of "$ac_prog", so it can be a program name with args.
6123 set dummy $ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6127 $as_echo_n "(cached) " >&6
6129 if test -n "$ac_ct_F77"; then
6130 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139 ac_cv_prog_ac_ct_F77="$ac_prog"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6150 if test -n "$ac_ct_F77"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6152 $as_echo "$ac_ct_F77" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6159 test -n "$ac_ct_F77" && break
6162 if test "x$ac_ct_F77" = x; then
6165 case $cross_compiling:$ac_tool_warned in
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6176 # Provide some information about the compiler.
6177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6180 for ac_option in --version -v -V -qversion; do
6181 { { ac_try="$ac_compiler $ac_option >&5"
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6187 $as_echo "$ac_try_echo"; } >&5
6188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6190 if test -s conftest.err; then
6192 ... rest of stderr output deleted ...
6193 10q' conftest.err >conftest.er1
6194 cat conftest.er1 >&5
6196 rm -f conftest.er1 conftest.err
6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198 test $ac_status = 0; }
6202 # If we don't use `.F' as extension, the preprocessor is not run on the
6203 # input file. (Note that this only needs to work for GNU compilers.)
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6207 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6208 if ${ac_cv_f77_compiler_gnu+:} false; then :
6209 $as_echo_n "(cached) " >&6
6211 cat > conftest.$ac_ext <<_ACEOF
6219 if ac_fn_f77_try_compile "$LINENO"; then :
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6229 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6231 ac_test_FFLAGS=${FFLAGS+set}
6232 ac_save_FFLAGS=$FFLAGS
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6235 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6236 if ${ac_cv_prog_f77_g+:} false; then :
6237 $as_echo_n "(cached) " >&6
6240 cat > conftest.$ac_ext <<_ACEOF
6245 if ac_fn_f77_try_compile "$LINENO"; then :
6246 ac_cv_prog_f77_g=yes
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6254 $as_echo "$ac_cv_prog_f77_g" >&6; }
6255 if test "$ac_test_FFLAGS" = set; then
6256 FFLAGS=$ac_save_FFLAGS
6257 elif test $ac_cv_prog_f77_g = yes; then
6258 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6264 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6271 if test $ac_compiler_gnu = yes; then
6277 ac_cpp='$CPP $CPPFLAGS'
6278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6285 # find the maximum length of command line arguments
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6287 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6288 if ${lt_cv_sys_max_cmd_len+:} false; then :
6289 $as_echo_n "(cached) " >&6
6296 # On DJGPP, this test can blow up pretty badly due to problems in libc
6297 # (any single argument exceeding 2000 bytes causes a buffer overrun
6298 # during glob expansion). Even if it were fixed, the result of this
6299 # check would be larger than it should be.
6300 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6304 # Under GNU Hurd, this test is not required because there is
6305 # no limit to the length of command line arguments.
6306 # Libtool will interpret -1 as no limit whatsoever
6307 lt_cv_sys_max_cmd_len=-1;
6311 # On Win9x/ME, this test blows up -- it succeeds, but takes
6312 # about 5 minutes as the teststring grows exponentially.
6313 # Worse, since 9x/ME are not pre-emptively multitasking,
6314 # you end up with a "frozen" computer, even though with patience
6315 # the test eventually succeeds (with a max line length of 256k).
6316 # Instead, let's just punt: use the minimum linelength reported by
6317 # all of the supported platforms: 8192 (on NT/2K/XP).
6318 lt_cv_sys_max_cmd_len=8192;
6322 # On AmigaOS with pdksh, this test takes hours, literally.
6323 # So we just punt and use a minimum line length of 8192.
6324 lt_cv_sys_max_cmd_len=8192;
6327 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6328 # This has been around since 386BSD, at least. Likely further.
6329 if test -x /sbin/sysctl; then
6330 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6331 elif test -x /usr/sbin/sysctl; then
6332 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6334 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6336 # And add a safety zone
6337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6342 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6343 lt_cv_sys_max_cmd_len=196608
6347 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6348 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6349 # nice to cause kernel panics so lets avoid the loop below.
6350 # First set a reasonable default.
6351 lt_cv_sys_max_cmd_len=16384
6353 if test -x /sbin/sysconfig; then
6354 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6355 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6360 lt_cv_sys_max_cmd_len=102400
6362 sysv5* | sco5v6* | sysv4.2uw2*)
6363 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6364 if test -n "$kargmax"; then
6365 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6367 lt_cv_sys_max_cmd_len=32768
6371 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6372 if test -n "$lt_cv_sys_max_cmd_len"; then
6373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6376 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6377 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6378 = "XX$teststring") >/dev/null 2>&1 &&
6379 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6380 lt_cv_sys_max_cmd_len=$new_result &&
6381 test $i != 17 # 1/2 MB should be enough
6384 teststring=$teststring$teststring
6387 # Add a significant safety factor because C++ compilers can tack on massive
6388 # amounts of additional arguments before passing them to the linker.
6389 # It appears as though 1/2 is a usable value.
6390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6397 if test -n $lt_cv_sys_max_cmd_len ; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6399 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6402 $as_echo "none" >&6; }
6409 # Check for command to grab the raw symbol name followed by C symbol from nm.
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6411 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6412 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6413 $as_echo_n "(cached) " >&6
6416 # These are sane defaults that work on at least a few old systems.
6417 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6419 # Character class describing NM global symbol codes.
6420 symcode='[BCDEGRST]'
6422 # Regexp to match symbols that can be accessed directly from C.
6423 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6425 # Transform an extracted symbol line into a proper C declaration
6426 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6428 # Transform an extracted symbol line into symbol name and symbol address
6429 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'"
6431 # Define system-specific variables.
6436 cygwin* | mingw* | pw32*)
6437 symcode='[ABCDGISTW]'
6439 hpux*) # Its linker distinguishes data from code symbols
6440 if test "$host_cpu" = ia64; then
6441 symcode='[ABCDEGRST]'
6443 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6444 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'"
6446 linux* | k*bsd*-gnu)
6447 if test "$host_cpu" = ia64; then
6448 symcode='[ABCDGIRSTW]'
6449 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6450 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6454 symcode='[BCDEGRST]'
6457 symcode='[BCDEGQRST]'
6468 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6476 # Handle CRLF in mingw tool chain
6480 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6484 # If we're using GNU nm, then use its standard symbol codes.
6485 case `$NM -V 2>&1` in
6486 *GNU* | *'with BFD'*)
6487 symcode='[ABCDGIRSTW]' ;;
6490 # Try without a prefix undercore, then with it.
6491 for ac_symprfx in "" "_"; do
6493 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6494 symxfrm="\\1 $ac_symprfx\\2 \\2"
6496 # Write the raw and C identifiers.
6497 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6499 # Check to see that the pipe works correctly.
6503 cat > conftest.$ac_ext <<EOF
6508 void nm_test_func(){}
6512 int main(){nm_test_var='a';nm_test_func();return(0);}
6515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6516 (eval $ac_compile) 2>&5
6518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519 test $ac_status = 0; }; then
6520 # Now try to grab the symbols.
6522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6523 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; } && test -s "$nlist"; then
6527 # Try sorting and uniquifying the output.
6528 if sort "$nlist" | uniq > "$nlist"T; then
6529 mv -f "$nlist"T "$nlist"
6534 # Make sure that we snagged all the symbols we need.
6535 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6536 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6537 cat <<EOF > conftest.$ac_ext
6543 # Now generate the symbol file.
6544 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6546 cat <<EOF >> conftest.$ac_ext
6547 #if defined (__STDC__) && __STDC__
6548 # define lt_ptr_t void *
6550 # define lt_ptr_t char *
6554 /* The mapping between symbol names and symbols. */
6559 lt_preloaded_symbols[] =
6562 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6563 cat <<\EOF >> conftest.$ac_ext
6571 # Now try linking the two files.
6572 mv conftest.$ac_objext conftstm.$ac_objext
6573 lt_save_LIBS="$LIBS"
6574 lt_save_CFLAGS="$CFLAGS"
6575 LIBS="conftstm.$ac_objext"
6576 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6578 (eval $ac_link) 2>&5
6580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6584 LIBS="$lt_save_LIBS"
6585 CFLAGS="$lt_save_CFLAGS"
6587 echo "cannot find nm_test_func in $nlist" >&5
6590 echo "cannot find nm_test_var in $nlist" >&5
6593 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6596 echo "$progname: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 rm -rf conftest* conftst*
6601 # Do not use the global_symbol_pipe unless it works.
6602 if test "$pipe_works" = yes; then
6605 lt_cv_sys_global_symbol_pipe=
6611 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6612 lt_cv_sys_global_symbol_to_cdecl=
6614 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6616 $as_echo "failed" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6619 $as_echo "ok" >&6; }
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6623 $as_echo_n "checking for objdir... " >&6; }
6624 if ${lt_cv_objdir+:} false; then :
6625 $as_echo_n "(cached) " >&6
6627 rm -f .libs 2>/dev/null
6628 mkdir .libs 2>/dev/null
6629 if test -d .libs; then
6632 # MS-DOS does not allow filenames that begin with a dot.
6635 rmdir .libs 2>/dev/null
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6638 $as_echo "$lt_cv_objdir" >&6; }
6639 objdir=$lt_cv_objdir
6647 # AIX sometimes has problems with the GCC collect2 program. For some
6648 # reason, if we set the COLLECT_NAMES environment variable, the problems
6649 # vanish in a puff of smoke.
6650 if test "X${COLLECT_NAMES+set}" != Xset; then
6652 export COLLECT_NAMES
6657 # Sed substitution that helps us do robust quoting. It backslashifies
6658 # metacharacters that are still active within double-quoted strings.
6659 Xsed='sed -e 1s/^X//'
6660 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6662 # Same as above, but do not quote variable references.
6663 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6665 # Sed substitution to delay expansion of an escaped shell variable in a
6666 # double_quote_subst'ed string.
6667 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6669 # Sed substitution to avoid accidental globbing in evaled expressions
6670 no_glob_subst='s/\*/\\\*/g'
6676 default_ofile=libtool
6677 can_build_shared=yes
6679 # All known linkers require a `.a' archive for static linking (except MSVC,
6680 # which needs '.lib').
6682 ltmain="$ac_aux_dir/ltmain.sh"
6683 ofile="$default_ofile"
6684 with_gnu_ld="$lt_cv_prog_gnu_ld"
6686 if test -n "$ac_tool_prefix"; then
6687 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6688 set dummy ${ac_tool_prefix}ar; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_prog_AR+:} false; then :
6692 $as_echo_n "(cached) " >&6
6694 if test -n "$AR"; then
6695 ac_cv_prog_AR="$AR" # Let the user override the test.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_AR="${ac_tool_prefix}ar"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 if test -n "$AR"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6717 $as_echo "$AR" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6725 if test -z "$ac_cv_prog_AR"; then
6727 # Extract the first word of "ar", so it can be a program name with args.
6728 set dummy ar; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6732 $as_echo_n "(cached) " >&6
6734 if test -n "$ac_ct_AR"; then
6735 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_ac_ct_AR="ar"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6755 if test -n "$ac_ct_AR"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6757 $as_echo "$ac_ct_AR" >&6; }
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6763 if test "x$ac_ct_AR" = x; then
6766 case $cross_compiling:$ac_tool_warned in
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770 ac_tool_warned=yes ;;
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_RANLIB+:} false; then :
6784 $as_echo_n "(cached) " >&6
6786 if test -n "$RANLIB"; then
6787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 RANLIB=$ac_cv_prog_RANLIB
6807 if test -n "$RANLIB"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6809 $as_echo "$RANLIB" >&6; }
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6817 if test -z "$ac_cv_prog_RANLIB"; then
6818 ac_ct_RANLIB=$RANLIB
6819 # Extract the first word of "ranlib", so it can be a program name with args.
6820 set dummy ranlib; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6824 $as_echo_n "(cached) " >&6
6826 if test -n "$ac_ct_RANLIB"; then
6827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_ac_ct_RANLIB="ranlib"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6847 if test -n "$ac_ct_RANLIB"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6849 $as_echo "$ac_ct_RANLIB" >&6; }
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6855 if test "x$ac_ct_RANLIB" = x; then
6858 case $cross_compiling:$ac_tool_warned in
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6864 RANLIB=$ac_ct_RANLIB
6867 RANLIB="$ac_cv_prog_RANLIB"
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}strip; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_STRIP+:} false; then :
6876 $as_echo_n "(cached) " >&6
6878 if test -n "$STRIP"; then
6879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 STRIP=$ac_cv_prog_STRIP
6899 if test -n "$STRIP"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6901 $as_echo "$STRIP" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6909 if test -z "$ac_cv_prog_STRIP"; then
6911 # Extract the first word of "strip", so it can be a program name with args.
6912 set dummy strip; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6916 $as_echo_n "(cached) " >&6
6918 if test -n "$ac_ct_STRIP"; then
6919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928 ac_cv_prog_ac_ct_STRIP="strip"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6939 if test -n "$ac_ct_STRIP"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6941 $as_echo "$ac_ct_STRIP" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6947 if test "x$ac_ct_STRIP" = x; then
6950 case $cross_compiling:$ac_tool_warned in
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6959 STRIP="$ac_cv_prog_STRIP"
6964 old_CFLAGS="$CFLAGS"
6966 # Set sane defaults for various variables
6967 test -z "$AR" && AR=ar
6968 test -z "$AR_FLAGS" && AR_FLAGS=cru
6969 test -z "$AS" && AS=as
6970 test -z "$CC" && CC=cc
6971 test -z "$LTCC" && LTCC=$CC
6972 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6973 test -z "$DLLTOOL" && DLLTOOL=dlltool
6974 test -z "$LD" && LD=ld
6975 test -z "$LN_S" && LN_S="ln -s"
6976 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6977 test -z "$NM" && NM=nm
6978 test -z "$SED" && SED=sed
6979 test -z "$OBJDUMP" && OBJDUMP=objdump
6980 test -z "$RANLIB" && RANLIB=:
6981 test -z "$STRIP" && STRIP=:
6982 test -z "$ac_objext" && ac_objext=o
6984 # Determine commands to create old-style static archives.
6985 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6986 old_postinstall_cmds='chmod 644 $oldlib'
6987 old_postuninstall_cmds=
6989 if test -n "$RANLIB"; then
6992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6995 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6998 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7001 for cc_temp in $compiler""; do
7003 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7004 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7009 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7012 # Only perform the check for file, if the check method requires it
7013 case $deplibs_check_method in
7015 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7017 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7018 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7019 $as_echo_n "(cached) " >&6
7023 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7026 lt_save_MAGIC_CMD="$MAGIC_CMD"
7027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7028 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7029 for ac_dir in $ac_dummy; do
7031 test -z "$ac_dir" && ac_dir=.
7032 if test -f $ac_dir/${ac_tool_prefix}file; then
7033 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7034 if test -n "$file_magic_test_file"; then
7035 case $deplibs_check_method in
7037 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7039 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7040 $EGREP "$file_magic_regex" > /dev/null; then
7045 *** Warning: the command libtool uses to detect shared libraries,
7046 *** $file_magic_cmd, produces output that libtool cannot recognize.
7047 *** The result is that libtool may fail to recognize shared libraries
7048 *** as such. This will affect the creation of libtool libraries that
7049 *** depend on shared libraries, but programs linked with such libtool
7050 *** libraries will work regardless of this problem. Nevertheless, you
7051 *** may want to report the problem to your system manager and/or to
7052 *** bug-libtool@gnu.org
7062 MAGIC_CMD="$lt_save_MAGIC_CMD"
7067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7068 if test -n "$MAGIC_CMD"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7070 $as_echo "$MAGIC_CMD" >&6; }
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7076 if test -z "$lt_cv_path_MAGIC_CMD"; then
7077 if test -n "$ac_tool_prefix"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7079 $as_echo_n "checking for file... " >&6; }
7080 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7081 $as_echo_n "(cached) " >&6
7085 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7088 lt_save_MAGIC_CMD="$MAGIC_CMD"
7089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7090 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7091 for ac_dir in $ac_dummy; do
7093 test -z "$ac_dir" && ac_dir=.
7094 if test -f $ac_dir/file; then
7095 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7096 if test -n "$file_magic_test_file"; then
7097 case $deplibs_check_method in
7099 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7101 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7102 $EGREP "$file_magic_regex" > /dev/null; then
7107 *** Warning: the command libtool uses to detect shared libraries,
7108 *** $file_magic_cmd, produces output that libtool cannot recognize.
7109 *** The result is that libtool may fail to recognize shared libraries
7110 *** as such. This will affect the creation of libtool libraries that
7111 *** depend on shared libraries, but programs linked with such libtool
7112 *** libraries will work regardless of this problem. Nevertheless, you
7113 *** may want to report the problem to your system manager and/or to
7114 *** bug-libtool@gnu.org
7124 MAGIC_CMD="$lt_save_MAGIC_CMD"
7129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7130 if test -n "$MAGIC_CMD"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7132 $as_echo "$MAGIC_CMD" >&6; }
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7149 rhapsody* | darwin*)
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7156 $as_echo_n "(cached) " >&6
7158 if test -n "$DSYMUTIL"; then
7159 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7179 if test -n "$DSYMUTIL"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7181 $as_echo "$DSYMUTIL" >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7189 if test -z "$ac_cv_prog_DSYMUTIL"; then
7190 ac_ct_DSYMUTIL=$DSYMUTIL
7191 # Extract the first word of "dsymutil", so it can be a program name with args.
7192 set dummy dsymutil; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7196 $as_echo_n "(cached) " >&6
7198 if test -n "$ac_ct_DSYMUTIL"; then
7199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7219 if test -n "$ac_ct_DSYMUTIL"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7221 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7227 if test "x$ac_ct_DSYMUTIL" = x; then
7230 case $cross_compiling:$ac_tool_warned in
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7236 DSYMUTIL=$ac_ct_DSYMUTIL
7239 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7242 if test -n "$ac_tool_prefix"; then
7243 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7244 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_NMEDIT+:} false; then :
7248 $as_echo_n "(cached) " >&6
7250 if test -n "$NMEDIT"; then
7251 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 NMEDIT=$ac_cv_prog_NMEDIT
7271 if test -n "$NMEDIT"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7273 $as_echo "$NMEDIT" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7281 if test -z "$ac_cv_prog_NMEDIT"; then
7282 ac_ct_NMEDIT=$NMEDIT
7283 # Extract the first word of "nmedit", so it can be a program name with args.
7284 set dummy nmedit; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7288 $as_echo_n "(cached) " >&6
7290 if test -n "$ac_ct_NMEDIT"; then
7291 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7311 if test -n "$ac_ct_NMEDIT"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7313 $as_echo "$ac_ct_NMEDIT" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7319 if test "x$ac_ct_NMEDIT" = x; then
7322 case $cross_compiling:$ac_tool_warned in
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned=yes ;;
7328 NMEDIT=$ac_ct_NMEDIT
7331 NMEDIT="$ac_cv_prog_NMEDIT"
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7336 $as_echo_n "checking for -single_module linker flag... " >&6; }
7337 if ${lt_cv_apple_cc_single_mod+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 lt_cv_apple_cc_single_mod=no
7341 if test -z "${LT_MULTI_MODULE}"; then
7342 # By default we will add the -single_module flag. You can override
7343 # by either setting the environment variable LT_MULTI_MODULE
7344 # non-empty at configure time, or by adding -multi_module to the
7346 echo "int foo(void){return 1;}" > conftest.c
7347 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7348 -dynamiclib ${wl}-single_module conftest.c
7349 if test -f libconftest.dylib; then
7350 lt_cv_apple_cc_single_mod=yes
7351 rm -rf libconftest.dylib*
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7357 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7359 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7360 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7361 $as_echo_n "(cached) " >&6
7363 lt_cv_ld_exported_symbols_list=no
7364 save_LDFLAGS=$LDFLAGS
7365 echo "_main" > conftest.sym
7366 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7378 if ac_fn_c_try_link "$LINENO"; then :
7379 lt_cv_ld_exported_symbols_list=yes
7381 lt_cv_ld_exported_symbols_list=no
7383 rm -f core conftest.err conftest.$ac_objext \
7384 conftest$ac_exeext conftest.$ac_ext
7385 LDFLAGS="$save_LDFLAGS"
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7389 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7391 rhapsody* | darwin1.[0123])
7392 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7394 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7396 # if running on 10.5 or later, the deployment target defaults
7397 # to the OS version, if on x86, and 10.4, the deployment
7398 # target defaults to 10.4. Don't you love it?
7399 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7400 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7401 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7403 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7405 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7409 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7410 _lt_dar_single_mod='$single_module'
7412 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7413 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7415 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7417 if test "$DSYMUTIL" != ":"; then
7418 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7429 # Check whether --enable-libtool-lock was given.
7430 if test "${enable_libtool_lock+set}" = set; then :
7431 enableval=$enable_libtool_lock;
7434 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7437 # Check whether --with-pic was given.
7438 if test "${with_pic+set}" = set; then :
7439 withval=$with_pic; pic_mode="$withval"
7444 test -z "$pic_mode" && pic_mode=default
7446 # Use C for the default configuration in the libtool script
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456 # Source file extension for C test sources.
7459 # Object file extension for compiled C test sources.
7463 # Code to be used in simple compile tests
7464 lt_simple_compile_test_code="int some_variable = 0;"
7466 # Code to be used in simple link tests
7467 lt_simple_link_test_code='int main(){return(0);}'
7470 # If no C compiler was specified, use CC.
7473 # If no C compiler flags were specified, use CFLAGS.
7474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7476 # Allow CC to be a program name with arguments.
7480 # save warnings/boilerplate of simple test code
7481 ac_outfile=conftest.$ac_objext
7482 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7483 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7484 _lt_compiler_boilerplate=`cat conftest.err`
7487 ac_outfile=conftest.$ac_objext
7488 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7489 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7490 _lt_linker_boilerplate=`cat conftest.err`
7495 lt_prog_compiler_no_builtin_flag=
7497 if test "$GCC" = yes; then
7498 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7502 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7503 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7504 $as_echo_n "(cached) " >&6
7506 lt_cv_prog_compiler_rtti_exceptions=no
7507 ac_outfile=conftest.$ac_objext
7508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7509 lt_compiler_flag="-fno-rtti -fno-exceptions"
7510 # Insert the option either (1) after the last *FLAGS variable, or
7511 # (2) before a word containing "conftest.", or (3) at the end.
7512 # Note that $ac_compile itself does not contain backslashes and begins
7513 # with a dollar sign (not a hyphen), so the echo should work correctly.
7514 # The option is referenced via a variable to avoid confusing sed.
7515 lt_compile=`echo "$ac_compile" | $SED \
7516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7518 -e 's:$: $lt_compiler_flag:'`
7519 (eval echo "\"\$as_me:7519: $lt_compile\"" >&5)
7520 (eval "$lt_compile" 2>conftest.err)
7522 cat conftest.err >&5
7523 echo "$as_me:7523: \$? = $ac_status" >&5
7524 if (exit $ac_status) && test -s "$ac_outfile"; then
7525 # The compiler can only warn and ignore the option if not recognized
7526 # So say no if there are warnings other than the usual output.
7527 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7530 lt_cv_prog_compiler_rtti_exceptions=yes
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7537 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7539 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7540 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7547 lt_prog_compiler_wl=
7548 lt_prog_compiler_pic=
7549 lt_prog_compiler_static=
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7554 if test "$GCC" = yes; then
7555 lt_prog_compiler_wl='-Wl,'
7556 lt_prog_compiler_static='-static'
7560 # All AIX code is PIC.
7561 if test "$host_cpu" = ia64; then
7562 # AIX 5 now supports IA64 processor
7563 lt_prog_compiler_static='-Bstatic'
7568 # FIXME: we need at least 68020 code to build shared libraries, but
7569 # adding the `-m68020' flag to GCC prevents building anything better,
7571 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7574 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7575 # PIC is the default for these OSes.
7578 mingw* | cygwin* | pw32* | os2*)
7579 # This hack is so that the source file can tell whether it is being
7580 # built for inclusion in a dll (and should export symbols for example).
7581 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7582 # (--disable-auto-import) libraries
7583 lt_prog_compiler_pic='-DDLL_EXPORT'
7586 darwin* | rhapsody*)
7587 # PIC is the default on this platform
7588 # Common symbols not allowed in MH_DYLIB files
7589 lt_prog_compiler_pic='-fno-common'
7593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7594 # Instead, we relocate shared libraries at runtime.
7598 # Just because we use GCC doesn't mean we suddenly get shared libraries
7599 # on systems that don't support them.
7600 lt_prog_compiler_can_build_shared=no
7605 if test -d /usr/nec; then
7606 lt_prog_compiler_pic=-Kconform_pic
7611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7618 lt_prog_compiler_pic='-fPIC'
7624 lt_prog_compiler_pic='-fPIC'
7628 # PORTME Check for flag to pass linker flags through the system compiler.
7631 lt_prog_compiler_wl='-Wl,'
7632 if test "$host_cpu" = ia64; then
7633 # AIX 5 now supports IA64 processor
7634 lt_prog_compiler_static='-Bstatic'
7636 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7640 # PIC is the default on this platform
7641 # Common symbols not allowed in MH_DYLIB files
7642 case $cc_basename in
7644 lt_prog_compiler_pic='-qnocommon'
7645 lt_prog_compiler_wl='-Wl,'
7650 mingw* | cygwin* | pw32* | os2*)
7651 # This hack is so that the source file can tell whether it is being
7652 # built for inclusion in a dll (and should export symbols for example).
7653 lt_prog_compiler_pic='-DDLL_EXPORT'
7656 hpux9* | hpux10* | hpux11*)
7657 lt_prog_compiler_wl='-Wl,'
7658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7665 lt_prog_compiler_pic='+Z'
7668 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7669 lt_prog_compiler_static='${wl}-a ${wl}archive'
7672 irix5* | irix6* | nonstopux*)
7673 lt_prog_compiler_wl='-Wl,'
7674 # PIC (with -KPIC) is the default.
7675 lt_prog_compiler_static='-non_shared'
7679 lt_prog_compiler_pic='-KPIC'
7680 lt_prog_compiler_static='-Bstatic'
7683 linux* | k*bsd*-gnu)
7684 case $cc_basename in
7686 lt_prog_compiler_wl='-Wl,'
7687 lt_prog_compiler_pic='-KPIC'
7688 lt_prog_compiler_static='-static'
7690 pgcc* | pgf77* | pgf90* | pgf95*)
7691 # Portland Group compilers (*not* the Pentium gcc compiler,
7692 # which looks to be a dead project)
7693 lt_prog_compiler_wl='-Wl,'
7694 lt_prog_compiler_pic='-fpic'
7695 lt_prog_compiler_static='-Bstatic'
7698 lt_prog_compiler_wl='-Wl,'
7699 # All Alpha code is PIC.
7700 lt_prog_compiler_static='-non_shared'
7703 case `$CC -V 2>&1 | sed 5q` in
7706 lt_prog_compiler_pic='-KPIC'
7707 lt_prog_compiler_static='-Bstatic'
7708 lt_prog_compiler_wl='-Wl,'
7711 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7712 lt_prog_compiler_pic='-KPIC'
7713 lt_prog_compiler_static='-Bstatic'
7714 lt_prog_compiler_wl=''
7721 osf3* | osf4* | osf5*)
7722 lt_prog_compiler_wl='-Wl,'
7723 # All OSF/1 code is PIC.
7724 lt_prog_compiler_static='-non_shared'
7728 lt_prog_compiler_static='-non_shared'
7732 lt_prog_compiler_pic='-KPIC'
7733 lt_prog_compiler_static='-Bstatic'
7734 case $cc_basename in
7736 lt_prog_compiler_wl='-Qoption ld ';;
7738 lt_prog_compiler_wl='-Wl,';;
7743 lt_prog_compiler_wl='-Qoption ld '
7744 lt_prog_compiler_pic='-PIC'
7745 lt_prog_compiler_static='-Bstatic'
7748 sysv4 | sysv4.2uw2* | sysv4.3*)
7749 lt_prog_compiler_wl='-Wl,'
7750 lt_prog_compiler_pic='-KPIC'
7751 lt_prog_compiler_static='-Bstatic'
7755 if test -d /usr/nec ;then
7756 lt_prog_compiler_pic='-Kconform_pic'
7757 lt_prog_compiler_static='-Bstatic'
7761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7762 lt_prog_compiler_wl='-Wl,'
7763 lt_prog_compiler_pic='-KPIC'
7764 lt_prog_compiler_static='-Bstatic'
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_can_build_shared=no
7773 lt_prog_compiler_pic='-pic'
7774 lt_prog_compiler_static='-Bstatic'
7778 lt_prog_compiler_can_build_shared=no
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7784 $as_echo "$lt_prog_compiler_pic" >&6; }
7787 # Check to make sure the PIC flag actually works.
7789 if test -n "$lt_prog_compiler_pic"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7792 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7793 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7794 $as_echo_n "(cached) " >&6
7796 lt_cv_prog_compiler_pic_works=no
7797 ac_outfile=conftest.$ac_objext
7798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7799 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7800 # Insert the option either (1) after the last *FLAGS variable, or
7801 # (2) before a word containing "conftest.", or (3) at the end.
7802 # Note that $ac_compile itself does not contain backslashes and begins
7803 # with a dollar sign (not a hyphen), so the echo should work correctly.
7804 # The option is referenced via a variable to avoid confusing sed.
7805 lt_compile=`echo "$ac_compile" | $SED \
7806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7808 -e 's:$: $lt_compiler_flag:'`
7809 (eval echo "\"\$as_me:7809: $lt_compile\"" >&5)
7810 (eval "$lt_compile" 2>conftest.err)
7812 cat conftest.err >&5
7813 echo "$as_me:7813: \$? = $ac_status" >&5
7814 if (exit $ac_status) && test -s "$ac_outfile"; then
7815 # The compiler can only warn and ignore the option if not recognized
7816 # So say no if there are warnings other than the usual output.
7817 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7819 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7820 lt_cv_prog_compiler_pic_works=yes
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7827 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7829 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7830 case $lt_prog_compiler_pic in
7832 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7835 lt_prog_compiler_pic=
7836 lt_prog_compiler_can_build_shared=no
7841 # For platforms which do not support PIC, -DPIC is meaningless:
7843 lt_prog_compiler_pic=
7846 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7851 # Check to make sure the static flag actually works.
7853 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7855 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7856 if ${lt_cv_prog_compiler_static_works+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 lt_cv_prog_compiler_static_works=no
7860 save_LDFLAGS="$LDFLAGS"
7861 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7862 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7864 # The linker can only warn and ignore the option if not recognized
7865 # So say no if there are warnings
7866 if test -s conftest.err; then
7867 # Append any errors to the config.log.
7868 cat conftest.err 1>&5
7869 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7871 if diff conftest.exp conftest.er2 >/dev/null; then
7872 lt_cv_prog_compiler_static_works=yes
7875 lt_cv_prog_compiler_static_works=yes
7879 LDFLAGS="$save_LDFLAGS"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7883 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7885 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7888 lt_prog_compiler_static=
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7893 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7894 if ${lt_cv_prog_compiler_c_o+:} false; then :
7895 $as_echo_n "(cached) " >&6
7897 lt_cv_prog_compiler_c_o=no
7898 $rm -r conftest 2>/dev/null
7902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7904 lt_compiler_flag="-o out/conftest2.$ac_objext"
7905 # Insert the option either (1) after the last *FLAGS variable, or
7906 # (2) before a word containing "conftest.", or (3) at the end.
7907 # Note that $ac_compile itself does not contain backslashes and begins
7908 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
7916 cat out/conftest.err >&5
7917 echo "$as_me:7917: \$? = $ac_status" >&5
7918 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7920 # The compiler can only warn and ignore the option if not recognized
7921 # So say no if there are warnings
7922 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7923 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7924 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7925 lt_cv_prog_compiler_c_o=yes
7930 # SGI C++ compiler will create directory out/ii_files/ for
7931 # template instantiation
7932 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7933 $rm out/* && rmdir out
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7940 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7943 hard_links="nottested"
7944 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7945 # do not overwrite the value of need_locks provided by the user
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7947 $as_echo_n "checking if we can lock with hard links... " >&6; }
7950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7952 ln conftest.a conftest.b 2>&5 || hard_links=no
7953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7955 $as_echo "$hard_links" >&6; }
7956 if test "$hard_links" = no; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7958 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7966 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7969 allow_undefined_flag=
7970 enable_shared_with_static_runtimes=no
7972 archive_expsym_cmds=
7973 old_archive_From_new_cmds=
7974 old_archive_from_expsyms_cmds=
7975 export_dynamic_flag_spec=
7976 whole_archive_flag_spec=
7977 thread_safe_flag_spec=
7978 hardcode_libdir_flag_spec=
7979 hardcode_libdir_flag_spec_ld=
7980 hardcode_libdir_separator=
7983 hardcode_shlibpath_var=unsupported
7984 link_all_deplibs=unknown
7985 hardcode_automatic=no
7988 always_export_symbols=no
7989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7990 # include_expsyms should be a list of space-separated symbols to be *always*
7991 # included in the symbol list
7993 # exclude_expsyms can be an extended regexp of symbols to exclude
7994 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7995 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7996 # as well as any symbol that contains `d'.
7997 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7998 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7999 # platforms (ab)use it in PIC code, but their linkers get confused if
8000 # the symbol is explicitly referenced. Since portable code cannot
8001 # rely on this symbol name, it's probably fine to never include it in
8002 # preloaded symbol tables.
8003 # Exclude shared library initialization/finalization symbols.
8004 extract_expsyms_cmds=
8005 # Just being paranoid about ensuring that cc_basename is set.
8006 for cc_temp in $compiler""; do
8008 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8009 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8014 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8017 cygwin* | mingw* | pw32*)
8018 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8019 # When not using gcc, we currently assume that we are using
8020 # Microsoft Visual C++.
8021 if test "$GCC" != yes; then
8026 # we just hope/assume this is gcc and not c89 (= MSVC++)
8035 if test "$with_gnu_ld" = yes; then
8036 # If archive_cmds runs LD, not CC, wlarc should be empty
8039 # Set some defaults for GNU ld with shared library support. These
8040 # are reset later if shared libraries are not supported. Putting them
8041 # here allows them to be overridden if necessary.
8042 runpath_var=LD_RUN_PATH
8043 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8044 export_dynamic_flag_spec='${wl}--export-dynamic'
8045 # ancient GNU ld didn't support --whole-archive et. al.
8046 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8047 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8049 whole_archive_flag_spec=
8051 supports_anon_versioning=no
8052 case `$LD -v 2>/dev/null` in
8053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8056 *\ 2.11.*) ;; # other 2.11 versions
8057 *) supports_anon_versioning=yes ;;
8060 # See if GNU ld supports shared libraries.
8063 # On AIX/PPC, the GNU linker is very broken
8064 if test "$host_cpu" != ia64; then
8068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8069 *** to be unable to reliably create shared libraries on AIX.
8070 *** Therefore, libtool is disabling shared libraries support. If you
8071 *** really care for shared libraries, you may want to modify your PATH
8072 *** so that a non-GNU linker is found, and then restart.
8079 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)'
8080 hardcode_libdir_flag_spec='-L$libdir'
8081 hardcode_minus_L=yes
8083 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8084 # that the semantics of dynamic libraries on AmigaOS, at least up
8085 # to version 4, is to share data among multiple programs linked
8086 # with the same dynamic library. Since this doesn't match the
8087 # behavior of shared libraries on other platforms, we can't use
8093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8094 allow_undefined_flag=unsupported
8095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8096 # support --undefined. This deserves some investigation. FIXME
8097 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103 cygwin* | mingw* | pw32*)
8104 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8105 # as there is no search path for DLLs.
8106 hardcode_libdir_flag_spec='-L$libdir'
8107 allow_undefined_flag=unsupported
8108 always_export_symbols=no
8109 enable_shared_with_static_runtimes=yes
8110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8114 # If the export-symbols file already is a .def file (1st line
8115 # is EXPORTS), use it as is; otherwise, prepend...
8116 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8117 cp $export_symbols $output_objdir/$soname.def;
8119 echo EXPORTS > $output_objdir/$soname.def;
8120 cat $export_symbols >> $output_objdir/$soname.def;
8122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8130 hardcode_shlibpath_var=no
8131 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8132 export_dynamic_flag_spec='${wl}-E'
8133 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8134 # Instead, shared libraries are loaded at an image base (0x10000000 by
8135 # default) and relocated if they conflict, which is a slow very memory
8136 # consuming and fragmenting process. To avoid this, we pick a random,
8137 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8138 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8139 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8140 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'
8143 gnu* | linux* | k*bsd*-gnu)
8144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8146 case $cc_basename,$host_cpu in
8147 pgcc*) # Portland Group C compiler
8148 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'
8149 tmp_addflag=' $pic_flag'
8151 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8152 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'
8153 tmp_addflag=' $pic_flag -Mnomain' ;;
8154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8155 tmp_addflag=' -i_dynamic' ;;
8156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8157 tmp_addflag=' -i_dynamic -nofor_main' ;;
8158 ifc* | ifort*) # Intel Fortran compiler
8159 tmp_addflag=' -nofor_main' ;;
8161 case `$CC -V 2>&1 | sed 5q` in
8162 *Sun\ C*) # Sun C 5.9
8163 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'
8164 tmp_sharedflag='-G' ;;
8165 *Sun\ F*) # Sun Fortran 8.3
8166 tmp_sharedflag='-G' ;;
8168 tmp_sharedflag='-shared' ;;
8170 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172 if test $supports_anon_versioning = yes; then
8173 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8175 $echo "local: *; };" >> $output_objdir/$libname.ver~
8176 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8184 netbsd* | netbsdelf*-gnu)
8185 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8186 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8195 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8200 *** create shared libraries on Solaris systems. Therefore, libtool
8201 *** is disabling shared libraries support. We urge you to upgrade GNU
8202 *** binutils to release 2.9.1 or newer. Another option is to modify
8203 *** your PATH or compiler configuration so that the native linker is
8204 *** used, and then restart.
8207 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8216 case `$LD -v 2>&1` in
8217 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8221 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8222 *** reliably create shared libraries on SCO systems. Therefore, libtool
8223 *** is disabling shared libraries support. We urge you to upgrade GNU
8224 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8225 *** your PATH or compiler configuration so that the native linker is
8226 *** used, and then restart.
8231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8232 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8243 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8246 hardcode_shlibpath_var=no
8250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8259 if test "$ld_shlibs" = no; then
8261 hardcode_libdir_flag_spec=
8262 export_dynamic_flag_spec=
8263 whole_archive_flag_spec=
8266 # PORTME fill in a description of your system's linker (not GNU ld)
8269 allow_undefined_flag=unsupported
8270 always_export_symbols=yes
8271 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'
8272 # Note: this linker hardcodes the directories in LIBPATH if there
8273 # are no directories specified by -L.
8274 hardcode_minus_L=yes
8275 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8276 # Neither direct hardcoding nor static linking is supported with a
8278 hardcode_direct=unsupported
8283 if test "$host_cpu" = ia64; then
8284 # On IA64, the linker does run time linking by default, so we don't
8285 # have to do anything special.
8286 aix_use_runtimelinking=no
8287 exp_sym_flag='-Bexport'
8290 # If we're using GNU nm, then we don't want the "-C" option.
8291 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8292 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8293 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'
8295 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'
8297 aix_use_runtimelinking=no
8299 # Test if we are trying to use run time linking or normal
8300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8301 # need to do runtime linking.
8302 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8303 for ld_flag in $LDFLAGS; do
8304 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8305 aix_use_runtimelinking=yes
8312 exp_sym_flag='-bexport'
8313 no_entry_flag='-bnoentry'
8316 # When large executables or shared objects are built, AIX ld can
8317 # have problems creating the table of contents. If linking a library
8318 # or program results in "error TOC overflow" add -mminimal-toc to
8319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8324 hardcode_libdir_separator=':'
8325 link_all_deplibs=yes
8327 if test "$GCC" = yes; then
8328 case $host_os in aix4.[012]|aix4.[012].*)
8329 # We only want to do this on AIX 4.2 and lower, the check
8330 # below for broken collect2 doesn't work under 4.3+
8331 collect2name=`${CC} -print-prog-name=collect2`
8332 if test -f "$collect2name" && \
8333 strings "$collect2name" | grep resolve_lib_name >/dev/null
8335 # We have reworked collect2
8338 # We have old collect2
8339 hardcode_direct=unsupported
8340 # It fails to find uninstalled libraries when the uninstalled
8341 # path is not listed in the libpath. Setting hardcode_minus_L
8342 # to unsupported forces relinking
8343 hardcode_minus_L=yes
8344 hardcode_libdir_flag_spec='-L$libdir'
8345 hardcode_libdir_separator=
8349 shared_flag='-shared'
8350 if test "$aix_use_runtimelinking" = yes; then
8351 shared_flag="$shared_flag "'${wl}-G'
8355 if test "$host_cpu" = ia64; then
8356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8357 # chokes on -Wl,-G. The following line is correct:
8360 if test "$aix_use_runtimelinking" = yes; then
8361 shared_flag='${wl}-G'
8363 shared_flag='${wl}-bM:SRE'
8368 # It seems that -bexpall does not export symbols beginning with
8369 # underscore (_), so it is better to generate a list of symbols to export.
8370 always_export_symbols=yes
8371 if test "$aix_use_runtimelinking" = yes; then
8372 # Warning - without using the other runtime loading flags (-brtl),
8373 # -berok will link without error, but may produce a broken library.
8374 allow_undefined_flag='-berok'
8375 # Determine the default libpath from the value encoded in an empty executable.
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8387 if ac_fn_c_try_link "$LINENO"; then :
8389 lt_aix_libpath_sed='
8390 /Import File Strings/,/^$/ {
8396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8397 # Check for a 64-bit object if we didn't find anything.
8398 if test -z "$aix_libpath"; then
8399 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8402 rm -f core conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8406 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8407 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"
8409 if test "$host_cpu" = ia64; then
8410 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8411 allow_undefined_flag="-z nodefs"
8412 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"
8414 # Determine the default libpath from the value encoded in an empty executable.
8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8426 if ac_fn_c_try_link "$LINENO"; then :
8428 lt_aix_libpath_sed='
8429 /Import File Strings/,/^$/ {
8435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8436 # Check for a 64-bit object if we didn't find anything.
8437 if test -z "$aix_libpath"; then
8438 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8441 rm -f core conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8445 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8446 # Warning - without using the other run time loading flags,
8447 # -berok will link without error, but may produce a broken library.
8448 no_undefined_flag=' ${wl}-bernotok'
8449 allow_undefined_flag=' ${wl}-berok'
8450 # Exported symbols can be pulled into shared objects from archives
8451 whole_archive_flag_spec='$convenience'
8452 archive_cmds_need_lc=yes
8453 # This is similar to how AIX traditionally builds its shared libraries.
8454 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'
8460 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)'
8461 hardcode_libdir_flag_spec='-L$libdir'
8462 hardcode_minus_L=yes
8463 # see comment about different semantics on the GNU ld section
8468 export_dynamic_flag_spec=-rdynamic
8471 cygwin* | mingw* | pw32*)
8472 # When not using gcc, we currently assume that we are using
8473 # Microsoft Visual C++.
8474 # hardcode_libdir_flag_spec is actually meaningless, as there is
8475 # no search path for DLLs.
8476 hardcode_libdir_flag_spec=' '
8477 allow_undefined_flag=unsupported
8478 # Tell ltmain to make .lib files, not .a files.
8480 # Tell ltmain to make .dll files, not .so files.
8482 # FIXME: Setting linknames here is a bad hack.
8483 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8484 # The linker will automatically build a .lib file if we build a DLL.
8485 old_archive_From_new_cmds='true'
8486 # FIXME: Should let the user specify the lib program.
8487 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8488 fix_srcfile_path='`cygpath -w "$srcfile"`'
8489 enable_shared_with_static_runtimes=yes
8492 darwin* | rhapsody*)
8494 rhapsody* | darwin1.[012])
8495 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8498 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8499 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8501 case ${MACOSX_DEPLOYMENT_TARGET} in
8503 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8506 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8512 archive_cmds_need_lc=no
8514 hardcode_automatic=yes
8515 hardcode_shlibpath_var=unsupported
8516 whole_archive_flag_spec=''
8517 link_all_deplibs=yes
8518 if test "$GCC" = yes ; then
8519 output_verbose_link_cmd='echo'
8520 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8521 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8522 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}"
8523 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}"
8525 case $cc_basename in
8527 output_verbose_link_cmd='echo'
8528 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8529 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8530 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8531 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}'
8532 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}'
8542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8543 hardcode_libdir_flag_spec='-L$libdir'
8544 hardcode_shlibpath_var=no
8551 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8552 # support. Future versions do this automatically, but an explicit c++rt0.o
8553 # does not break anything, and helps significantly (at the cost of a little
8556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8557 hardcode_libdir_flag_spec='-R$libdir'
8559 hardcode_shlibpath_var=no
8562 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8566 hardcode_minus_L=yes
8567 hardcode_shlibpath_var=no
8570 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8571 freebsd* | dragonfly*)
8572 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8573 hardcode_libdir_flag_spec='-R$libdir'
8575 hardcode_shlibpath_var=no
8579 if test "$GCC" = yes; then
8580 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'
8582 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'
8584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8585 hardcode_libdir_separator=:
8588 # hardcode_minus_L: Not really in the search PATH,
8589 # but as the default location of the library.
8590 hardcode_minus_L=yes
8591 export_dynamic_flag_spec='${wl}-E'
8595 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8598 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8600 if test "$with_gnu_ld" = no; then
8601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8602 hardcode_libdir_separator=:
8605 export_dynamic_flag_spec='${wl}-E'
8607 # hardcode_minus_L: Not really in the search PATH,
8608 # but as the default location of the library.
8609 hardcode_minus_L=yes
8614 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8617 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8620 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8623 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8629 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8632 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8635 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8639 if test "$with_gnu_ld" = no; then
8640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8641 hardcode_libdir_separator=:
8645 hardcode_libdir_flag_spec_ld='+b $libdir'
8647 hardcode_shlibpath_var=no
8651 export_dynamic_flag_spec='${wl}-E'
8653 # hardcode_minus_L: Not really in the search PATH,
8654 # but as the default location of the library.
8655 hardcode_minus_L=yes
8661 irix5* | irix6* | nonstopux*)
8662 if test "$GCC" = yes; then
8663 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'
8665 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'
8666 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8669 hardcode_libdir_separator=:
8670 link_all_deplibs=yes
8673 netbsd* | netbsdelf*-gnu)
8674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8677 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8679 hardcode_libdir_flag_spec='-R$libdir'
8681 hardcode_shlibpath_var=no
8685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8688 hardcode_libdir_separator=:
8689 hardcode_shlibpath_var=no
8693 if test -f /usr/libexec/ld.so; then
8695 hardcode_shlibpath_var=no
8696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8697 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8698 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8699 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8700 export_dynamic_flag_spec='${wl}-E'
8703 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8705 hardcode_libdir_flag_spec='-R$libdir'
8708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8719 hardcode_libdir_flag_spec='-L$libdir'
8720 hardcode_minus_L=yes
8721 allow_undefined_flag=unsupported
8722 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'
8723 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8727 if test "$GCC" = yes; then
8728 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8729 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'
8731 allow_undefined_flag=' -expect_unresolved \*'
8732 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'
8734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8735 hardcode_libdir_separator=:
8738 osf4* | osf5*) # as osf3* with the addition of -msym flag
8739 if test "$GCC" = yes; then
8740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8741 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'
8742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8744 allow_undefined_flag=' -expect_unresolved \*'
8745 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'
8746 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8747 $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'
8749 # Both c and cxx compiler support -rpath directly
8750 hardcode_libdir_flag_spec='-rpath $libdir'
8752 hardcode_libdir_separator=:
8756 no_undefined_flag=' -z text'
8757 if test "$GCC" = yes; then
8759 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8760 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8761 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8764 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8765 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8766 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8768 hardcode_libdir_flag_spec='-R$libdir'
8769 hardcode_shlibpath_var=no
8771 solaris2.[0-5] | solaris2.[0-5].*) ;;
8773 # The compiler driver will combine and reorder linker options,
8774 # but understands `-z linker_flag'. GCC discards it without `$wl',
8775 # but is careful enough not to reorder.
8776 # Supported since Solaris 2.6 (maybe 2.5.1?)
8777 if test "$GCC" = yes; then
8778 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8780 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8784 link_all_deplibs=yes
8788 if test "x$host_vendor" = xsequent; then
8789 # Use $CC to link under sequent, because it throws in some extra .o
8790 # files that make .init and .fini sections work.
8791 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_libdir_flag_spec='-L$libdir'
8797 hardcode_minus_L=yes
8798 hardcode_shlibpath_var=no
8802 case $host_vendor in
8804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8805 hardcode_direct=yes # is this really true???
8808 ## LD is ld it makes a PLAMLIB
8809 ## CC just makes a GrossModule.
8810 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8811 reload_cmds='$CC -r -o $output$reload_objs'
8815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8819 runpath_var='LD_RUN_PATH'
8820 hardcode_shlibpath_var=no
8824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8825 hardcode_shlibpath_var=no
8826 export_dynamic_flag_spec='-Bexport'
8830 if test -d /usr/nec; then
8831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832 hardcode_shlibpath_var=no
8833 runpath_var=LD_RUN_PATH
8834 hardcode_runpath_var=yes
8839 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8840 no_undefined_flag='${wl}-z,text'
8841 archive_cmds_need_lc=no
8842 hardcode_shlibpath_var=no
8843 runpath_var='LD_RUN_PATH'
8845 if test "$GCC" = yes; then
8846 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 sysv5* | sco3.2v5* | sco5v6*)
8855 # Note: We can NOT use -z defs as we might desire, because we do not
8856 # link with -lc, and that would cause any symbols used from libc to
8857 # always be unresolved, which means just about no library would
8858 # ever link correctly. If we're not using GNU ld we use -z text
8859 # though, which does catch some bad symbols but isn't as heavy-handed
8861 no_undefined_flag='${wl}-z,text'
8862 allow_undefined_flag='${wl}-z,nodefs'
8863 archive_cmds_need_lc=no
8864 hardcode_shlibpath_var=no
8865 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8866 hardcode_libdir_separator=':'
8867 link_all_deplibs=yes
8868 export_dynamic_flag_spec='${wl}-Bexport'
8869 runpath_var='LD_RUN_PATH'
8871 if test "$GCC" = yes; then
8872 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8873 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8876 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882 hardcode_libdir_flag_spec='-L$libdir'
8883 hardcode_shlibpath_var=no
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8893 $as_echo "$ld_shlibs" >&6; }
8894 test "$ld_shlibs" = no && can_build_shared=no
8897 # Do we need to explicitly link libc?
8899 case "x$archive_cmds_need_lc" in
8901 # Assume -lc should be added
8902 archive_cmds_need_lc=yes
8904 if test "$enable_shared" = yes && test "$GCC" = yes; then
8905 case $archive_cmds in
8907 # FIXME: we may have to deal with multi-command sequences.
8910 # Test whether the compiler implicitly links with -lc since on some
8911 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8912 # to ld, don't add -lc before -lgcc.
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8914 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8919 (eval $ac_compile) 2>&5
8921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8922 test $ac_status = 0; } 2>conftest.err; then
8925 libobjs=conftest.$ac_objext
8927 wl=$lt_prog_compiler_wl
8928 pic_flag=$lt_prog_compiler_pic
8934 lt_save_allow_undefined_flag=$allow_undefined_flag
8935 allow_undefined_flag=
8936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8937 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8940 test $ac_status = 0; }
8942 archive_cmds_need_lc=no
8944 archive_cmds_need_lc=yes
8946 allow_undefined_flag=$lt_save_allow_undefined_flag
8948 cat conftest.err 1>&5
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8952 $as_echo "$archive_cmds_need_lc" >&6; }
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8960 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8962 libname_spec='lib$name'
8970 shlibpath_overrides_runpath=unknown
8972 dynamic_linker="$host_os ld.so"
8973 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8975 if test "$GCC" = yes; then
8977 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8978 *) lt_awk_arg="/^libraries:/" ;;
8980 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8981 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8982 # if the path contains ";" then we assume it to be the separator
8983 # otherwise default to the standard path separator (i.e. ":") - it is
8984 # assumed that no part of a normal pathname contains ";" but that should
8985 # okay in the real world where ";" in dirpaths is itself problematic.
8986 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8988 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8990 # Ok, now we have the path, separated by spaces, we can step through it
8991 # and add multilib dir if necessary.
8992 lt_tmp_lt_search_path_spec=
8993 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8994 for lt_sys_path in $lt_search_path_spec; do
8995 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8998 test -d "$lt_sys_path" && \
8999 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9002 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9003 BEGIN {RS=" "; FS="/|\n";} {
9006 for (lt_i = NF; lt_i > 0; lt_i--) {
9007 if ($lt_i != "" && $lt_i != ".") {
9008 if ($lt_i == "..") {
9011 if (lt_count == 0) {
9012 lt_foo="/" $lt_i lt_foo;
9019 if (lt_foo != "") { lt_freq[lt_foo]++; }
9020 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9022 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9024 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9026 need_lib_prefix=unknown
9027 hardcode_into_libs=no
9029 # when you set need_version to no, make sure it does not cause -set_version
9030 # flags to be left without arguments
9031 need_version=unknown
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9037 shlibpath_var=LIBPATH
9039 # AIX 3 has no versioning support, so we append a major version to the name.
9040 soname_spec='${libname}${release}${shared_ext}$major'
9047 hardcode_into_libs=yes
9048 if test "$host_cpu" = ia64; then
9049 # AIX 5 supports IA64
9050 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9051 shlibpath_var=LD_LIBRARY_PATH
9053 # With GCC up to 2.95.x, collect2 would create an import file
9054 # for dependence libraries. The import file would start with
9055 # the line `#! .'. This would cause the generated library to
9056 # depend on `.', always an invalid library. This was fixed in
9057 # development snapshots of GCC prior to 3.0.
9059 aix4 | aix4.[01] | aix4.[01].*)
9060 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9062 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9069 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9070 # soname into executable. Probably we can add versioning support to
9071 # collect2, so additional links can be useful in future.
9072 if test "$aix_use_runtimelinking" = yes; then
9073 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9074 # instead of lib<name>.a to let people know that these are not
9075 # typical AIX shared libraries.
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9078 # We preserve .a as extension for shared libraries through AIX4.2
9079 # and later when we are not doing run time linking.
9080 library_names_spec='${libname}${release}.a $libname.a'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LIBPATH
9088 library_names_spec='$libname.ixlibrary $libname.a'
9089 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9090 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'
9094 library_names_spec='${libname}${shared_ext}'
9095 dynamic_linker="$host_os ld.so"
9096 shlibpath_var=LIBRARY_PATH
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9107 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9108 # the default ld.so.conf also contains /usr/contrib/lib and
9109 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9110 # libtool to hard-code these into programs
9113 cygwin* | mingw* | pw32*)
9114 version_type=windows
9119 case $GCC,$host_os in
9120 yes,cygwin* | yes,mingw* | yes,pw32*)
9121 library_names_spec='$libname.dll.a'
9122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9123 postinstall_cmds='base_file=`basename \${file}`~
9124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9125 dldir=$destdir/`dirname \$dlpath`~
9126 test -d \$dldir || mkdir -p \$dldir~
9127 $install_prog $dir/$dlname \$dldir/$dlname~
9128 chmod a+x \$dldir/$dlname'
9129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9130 dlpath=$dir/\$dldll~
9132 shlibpath_overrides_runpath=yes
9136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9138 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9141 # MinGW DLLs use traditional 'lib' prefix
9142 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9144 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9145 # It is most probably a Windows format PATH printed by
9146 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9147 # path with ; separators, and with drive letters. We can handle the
9148 # drive letters (cygwin fileutils understands them), so leave them,
9149 # especially as we might pass files found there to a mingw objdump,
9150 # which wouldn't understand a cygwinified path. Ahh.
9151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9157 # pw32 DLLs use 'pw' prefix rather than 'lib'
9158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9167 dynamic_linker='Win32 ld.exe'
9168 # FIXME: first we should search . and the directory the executable is in
9172 darwin* | rhapsody*)
9173 dynamic_linker="$host_os dyld"
9177 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9178 soname_spec='${libname}${release}${major}$shared_ext'
9179 shlibpath_overrides_runpath=yes
9180 shlibpath_var=DYLD_LIBRARY_PATH
9181 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9183 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9184 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 shlibpath_var=LD_LIBRARY_PATH
9200 freebsd* | dragonfly*)
9201 # DragonFly does not have aout. When/if they implement a new
9202 # versioning mechanism, adjust this.
9203 if test -x /usr/bin/objformat; then
9204 objformat=`/usr/bin/objformat`
9207 freebsd[123]*) objformat=aout ;;
9211 version_type=freebsd-$objformat
9212 case $version_type in
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9223 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=yes
9228 freebsd3.[01]* | freebsdelf3.[01]*)
9229 shlibpath_overrides_runpath=yes
9230 hardcode_into_libs=yes
9232 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9233 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9234 shlibpath_overrides_runpath=no
9235 hardcode_into_libs=yes
9237 *) # from 4.6 on, and DragonFly
9238 shlibpath_overrides_runpath=yes
9239 hardcode_into_libs=yes
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 hardcode_into_libs=yes
9254 hpux9* | hpux10* | hpux11*)
9255 # Give a soname corresponding to the major version so that dld.sl refuses to
9256 # link against other versions.
9263 hardcode_into_libs=yes
9264 dynamic_linker="$host_os dld.so"
9265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 if test "X$HPUX_IA64_MODE" = X32; then
9270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9272 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9278 hardcode_into_libs=yes
9279 dynamic_linker="$host_os dld.sl"
9280 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9289 dynamic_linker="$host_os dld.sl"
9290 shlibpath_var=SHLIB_PATH
9291 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9296 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9297 postinstall_cmds='chmod 555 $lib'
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=no
9309 hardcode_into_libs=yes
9312 irix5* | irix6* | nonstopux*)
9314 nonstopux*) version_type=nonstopux ;;
9316 if test "$lt_cv_prog_gnu_ld" = yes; then
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9327 irix5* | nonstopux*)
9331 case $LD in # libtool.m4 will add one of these switches to LD
9332 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9333 libsuff= shlibsuff= libmagic=32-bit;;
9334 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9335 libsuff=32 shlibsuff=N32 libmagic=N32;;
9336 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9337 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9338 *) libsuff= shlibsuff= libmagic=never-match;;
9342 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9343 shlibpath_overrides_runpath=no
9344 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9345 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9346 hardcode_into_libs=yes
9349 # No shared lib support for Linux oldld, aout, or coff.
9350 linux*oldld* | linux*aout* | linux*coff*)
9354 # This must be Linux ELF.
9355 linux* | k*bsd*-gnu)
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 shlibpath_overrides_runpath=no
9364 # This implies no fast_install, which is unacceptable.
9365 # Some rework will be needed to allow for fast_install
9366 # before this can be enabled.
9367 hardcode_into_libs=yes
9369 # Append ld.so.conf contents to the search path
9370 if test -f /etc/ld.so.conf; then
9371 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' ' '`
9372 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9375 # We used to test for /lib/ld.so.1 and disable shared libraries on
9376 # powerpc, because MkLinux only supported shared libraries with the
9377 # GNU dynamic linker. Since this was broken with cross compilers,
9378 # most powerpc-linux boxes support dynamic linking these days and
9379 # people can always --disable-shared, the test was removed, and we
9380 # assume the GNU/Linux dynamic linker is in use.
9381 dynamic_linker='GNU/Linux ld.so'
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 shlibpath_overrides_runpath=no
9392 hardcode_into_libs=yes
9393 dynamic_linker='NetBSD ld.elf_so'
9400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9403 dynamic_linker='NetBSD (a.out) ld.so'
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9406 soname_spec='${libname}${release}${shared_ext}$major'
9407 dynamic_linker='NetBSD ld.elf_so'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath=yes
9411 hardcode_into_libs=yes
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 shlibpath_var=LD_LIBRARY_PATH
9418 shlibpath_overrides_runpath=yes
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 shlibpath_overrides_runpath=yes
9433 sys_lib_dlsearch_path_spec="/usr/lib"
9435 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9437 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9438 *) need_version=no ;;
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9445 openbsd2.[89] | openbsd2.[89].*)
9446 shlibpath_overrides_runpath=no
9449 shlibpath_overrides_runpath=yes
9453 shlibpath_overrides_runpath=yes
9458 libname_spec='$name'
9461 library_names_spec='$libname${shared_ext} $libname.a'
9462 dynamic_linker='OS/2 ld.exe'
9463 shlibpath_var=LIBPATH
9466 osf3* | osf4* | osf5*)
9470 soname_spec='${libname}${release}${shared_ext}$major'
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 shlibpath_var=LD_LIBRARY_PATH
9473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 shlibpath_overrides_runpath=yes
9489 hardcode_into_libs=yes
9490 # ldd complains unless libraries are executable
9491 postinstall_cmds='chmod +x $lib'
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 shlibpath_overrides_runpath=yes
9500 if test "$with_gnu_ld" = yes; then
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 case $host_vendor in
9513 shlibpath_overrides_runpath=no
9515 export_dynamic_flag_spec='${wl}-Blargedynsym'
9516 runpath_var=LD_RUN_PATH
9524 shlibpath_overrides_runpath=no
9525 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9531 if test -d /usr/nec ;then
9533 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9534 soname_spec='$libname${shared_ext}.$major'
9535 shlibpath_var=LD_LIBRARY_PATH
9539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9540 version_type=freebsd-elf
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9544 soname_spec='${libname}${release}${shared_ext}$major'
9545 shlibpath_var=LD_LIBRARY_PATH
9546 hardcode_into_libs=yes
9547 if test "$with_gnu_ld" = yes; then
9548 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9549 shlibpath_overrides_runpath=no
9551 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9552 shlibpath_overrides_runpath=yes
9555 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9559 sys_lib_dlsearch_path_spec='/usr/lib'
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 shlibpath_var=LD_LIBRARY_PATH
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9574 $as_echo "$dynamic_linker" >&6; }
9575 test "$dynamic_linker" = no && can_build_shared=no
9577 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9578 $as_echo_n "(cached) " >&6
9580 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9583 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9584 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9585 $as_echo_n "(cached) " >&6
9587 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9590 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9593 if test "$GCC" = yes; then
9594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9598 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9600 if test -n "$hardcode_libdir_flag_spec" || \
9601 test -n "$runpath_var" || \
9602 test "X$hardcode_automatic" = "Xyes" ; then
9604 # We can hardcode non-existant directories.
9605 if test "$hardcode_direct" != no &&
9606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9607 # have to relink, otherwise we might link with an installed library
9608 # when we should be linking with a yet-to-be-installed one
9609 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9610 test "$hardcode_minus_L" != no; then
9611 # Linking always hardcodes the temporary library directory.
9612 hardcode_action=relink
9614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9615 hardcode_action=immediate
9618 # We cannot hardcode anything, or else we can only hardcode existing
9620 hardcode_action=unsupported
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9623 $as_echo "$hardcode_action" >&6; }
9625 if test "$hardcode_action" = relink; then
9626 # Fast installation is not supported
9627 enable_fast_install=no
9628 elif test "$shlibpath_overrides_runpath" = yes ||
9629 test "$enable_shared" = no; then
9630 # Fast installation is not necessary
9631 enable_fast_install=needless
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9642 $as_echo "yes" >&6; }
9644 # FIXME - insert some real tests, host_os isn't really good enough
9647 if test -n "$STRIP" ; then
9648 striplib="$STRIP -x"
9649 old_striplib="$STRIP -S"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9651 $as_echo "yes" >&6; }
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654 $as_echo "no" >&6; }
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9664 if test "x$enable_dlopen" != xyes; then
9665 enable_dlopen=unknown
9666 enable_dlopen_self=unknown
9667 enable_dlopen_self_static=unknown
9674 lt_cv_dlopen="load_add_on"
9676 lt_cv_dlopen_self=yes
9680 lt_cv_dlopen="LoadLibrary"
9685 lt_cv_dlopen="dlopen"
9690 # if libdl is installed we need to link against it
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9693 if ${ac_cv_lib_dl_dlopen+:} false; then :
9694 $as_echo_n "(cached) " >&6
9696 ac_check_lib_save_LIBS=$LIBS
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9701 /* Override any GCC internal prototype to avoid an error.
9702 Use char because int might match the return type of a GCC
9703 builtin and then its argument prototype would still apply. */
9716 if ac_fn_c_try_link "$LINENO"; then :
9717 ac_cv_lib_dl_dlopen=yes
9719 ac_cv_lib_dl_dlopen=no
9721 rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 LIBS=$ac_check_lib_save_LIBS
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9727 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9733 lt_cv_dlopen_self=yes
9740 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9741 if test "x$ac_cv_func_shl_load" = xyes; then :
9742 lt_cv_dlopen="shl_load"
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9745 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9746 if ${ac_cv_lib_dld_shl_load+:} false; then :
9747 $as_echo_n "(cached) " >&6
9749 ac_check_lib_save_LIBS=$LIBS
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9754 /* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
9769 if ac_fn_c_try_link "$LINENO"; then :
9770 ac_cv_lib_dld_shl_load=yes
9772 ac_cv_lib_dld_shl_load=no
9774 rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9779 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9780 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9781 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9783 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9784 if test "x$ac_cv_func_dlopen" = xyes; then :
9785 lt_cv_dlopen="dlopen"
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9789 if ${ac_cv_lib_dl_dlopen+:} false; then :
9790 $as_echo_n "(cached) " >&6
9792 ac_check_lib_save_LIBS=$LIBS
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9797 /* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
9812 if ac_fn_c_try_link "$LINENO"; then :
9813 ac_cv_lib_dl_dlopen=yes
9815 ac_cv_lib_dl_dlopen=no
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819 LIBS=$ac_check_lib_save_LIBS
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9823 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9828 if ${ac_cv_lib_svld_dlopen+:} false; then :
9829 $as_echo_n "(cached) " >&6
9831 ac_check_lib_save_LIBS=$LIBS
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9836 /* Override any GCC internal prototype to avoid an error.
9837 Use char because int might match the return type of a GCC
9838 builtin and then its argument prototype would still apply. */
9851 if ac_fn_c_try_link "$LINENO"; then :
9852 ac_cv_lib_svld_dlopen=yes
9854 ac_cv_lib_svld_dlopen=no
9856 rm -f core conftest.err conftest.$ac_objext \
9857 conftest$ac_exeext conftest.$ac_ext
9858 LIBS=$ac_check_lib_save_LIBS
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9861 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9862 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9866 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9867 if ${ac_cv_lib_dld_dld_link+:} false; then :
9868 $as_echo_n "(cached) " >&6
9870 ac_check_lib_save_LIBS=$LIBS
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9875 /* Override any GCC internal prototype to avoid an error.
9876 Use char because int might match the return type of a GCC
9877 builtin and then its argument prototype would still apply. */
9890 if ac_fn_c_try_link "$LINENO"; then :
9891 ac_cv_lib_dld_dld_link=yes
9893 ac_cv_lib_dld_dld_link=no
9895 rm -f core conftest.err conftest.$ac_objext \
9896 conftest$ac_exeext conftest.$ac_ext
9897 LIBS=$ac_check_lib_save_LIBS
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9900 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9901 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9923 if test "x$lt_cv_dlopen" != xno; then
9929 case $lt_cv_dlopen in
9931 save_CPPFLAGS="$CPPFLAGS"
9932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9934 save_LDFLAGS="$LDFLAGS"
9935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9938 LIBS="$lt_cv_dlopen_libs $LIBS"
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9942 if ${lt_cv_dlopen_self+:} false; then :
9943 $as_echo_n "(cached) " >&6
9945 if test "$cross_compiling" = yes; then :
9946 lt_cv_dlopen_self=cross
9948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9949 lt_status=$lt_dlunknown
9950 cat > conftest.$ac_ext <<EOF
9951 #line 9951 "configure"
9952 #include "confdefs.h"
9961 # define LT_DLGLOBAL RTLD_GLOBAL
9964 # define LT_DLGLOBAL DL_GLOBAL
9966 # define LT_DLGLOBAL 0
9970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9971 find out it does not work in some platform. */
9972 #ifndef LT_DLLAZY_OR_NOW
9974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9977 # define LT_DLLAZY_OR_NOW DL_LAZY
9980 # define LT_DLLAZY_OR_NOW RTLD_NOW
9983 # define LT_DLLAZY_OR_NOW DL_NOW
9985 # define LT_DLLAZY_OR_NOW 0
9993 extern "C" void exit (int);
9996 void fnord() { int i=42;}
9999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10000 int status = $lt_dlunknown;
10004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10006 /* dlclose (self); */
10014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10015 (eval $ac_link) 2>&5
10017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10018 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10019 (./conftest; exit; ) >&5 2>/dev/null
10021 case x$lt_status in
10022 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10023 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10024 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10027 # compilation failed
10028 lt_cv_dlopen_self=no
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10036 $as_echo "$lt_cv_dlopen_self" >&6; }
10038 if test "x$lt_cv_dlopen_self" = xyes; then
10039 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10041 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10042 if ${lt_cv_dlopen_self_static+:} false; then :
10043 $as_echo_n "(cached) " >&6
10045 if test "$cross_compiling" = yes; then :
10046 lt_cv_dlopen_self_static=cross
10048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10049 lt_status=$lt_dlunknown
10050 cat > conftest.$ac_ext <<EOF
10051 #line 10051 "configure"
10052 #include "confdefs.h"
10061 # define LT_DLGLOBAL RTLD_GLOBAL
10064 # define LT_DLGLOBAL DL_GLOBAL
10066 # define LT_DLGLOBAL 0
10070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10071 find out it does not work in some platform. */
10072 #ifndef LT_DLLAZY_OR_NOW
10074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10077 # define LT_DLLAZY_OR_NOW DL_LAZY
10080 # define LT_DLLAZY_OR_NOW RTLD_NOW
10083 # define LT_DLLAZY_OR_NOW DL_NOW
10085 # define LT_DLLAZY_OR_NOW 0
10093 extern "C" void exit (int);
10096 void fnord() { int i=42;}
10099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10100 int status = $lt_dlunknown;
10104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10106 /* dlclose (self); */
10114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10115 (eval $ac_link) 2>&5
10117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10118 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10119 (./conftest; exit; ) >&5 2>/dev/null
10121 case x$lt_status in
10122 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10123 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10124 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10127 # compilation failed
10128 lt_cv_dlopen_self_static=no
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10136 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10139 CPPFLAGS="$save_CPPFLAGS"
10140 LDFLAGS="$save_LDFLAGS"
10145 case $lt_cv_dlopen_self in
10146 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10147 *) enable_dlopen_self=unknown ;;
10150 case $lt_cv_dlopen_self_static in
10151 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10152 *) enable_dlopen_self_static=unknown ;;
10157 # Report which library types will actually be built
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10159 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10161 $as_echo "$can_build_shared" >&6; }
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10164 $as_echo_n "checking whether to build shared libraries... " >&6; }
10165 test "$can_build_shared" = "no" && enable_shared=no
10167 # On AIX, shared libraries and static libraries use the same namespace, and
10168 # are all built from PIC.
10171 test "$enable_shared" = yes && enable_static=no
10172 if test -n "$RANLIB"; then
10173 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10174 postinstall_cmds='$RANLIB $lib'
10179 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10180 test "$enable_shared" = yes && enable_static=no
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10185 $as_echo "$enable_shared" >&6; }
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10188 $as_echo_n "checking whether to build static libraries... " >&6; }
10189 # Make sure either enable_shared or enable_static is yes.
10190 test "$enable_shared" = yes || enable_static=yes
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10192 $as_echo "$enable_static" >&6; }
10194 # The else clause should only fire when bootstrapping the
10195 # libtool distribution, otherwise you forgot to ship ltmain.sh
10196 # with your package, and you will get complaints that there are
10197 # no rules to generate ltmain.sh.
10198 if test -f "$ltmain"; then
10199 # See if we are running on zsh, and set the options which allow our commands through
10200 # without removal of \ escapes.
10201 if test -n "${ZSH_VERSION+set}" ; then
10202 setopt NO_GLOB_SUBST
10204 # Now quote all the things that may contain metacharacters while being
10205 # careful not to overquote the AC_SUBSTed values. We take copies of the
10206 # variables and quote the copies for generation of the libtool script.
10207 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10209 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10210 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10211 deplibs_check_method reload_flag reload_cmds need_locks \
10212 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10213 lt_cv_sys_global_symbol_to_c_name_address \
10214 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10215 old_postinstall_cmds old_postuninstall_cmds \
10219 lt_prog_compiler_wl \
10220 lt_prog_compiler_pic \
10221 lt_prog_compiler_static \
10222 lt_prog_compiler_no_builtin_flag \
10223 export_dynamic_flag_spec \
10224 thread_safe_flag_spec \
10225 whole_archive_flag_spec \
10226 enable_shared_with_static_runtimes \
10228 old_archive_from_new_cmds \
10233 compiler_lib_search_path \
10234 compiler_lib_search_dirs \
10236 archive_expsym_cmds \
10238 postuninstall_cmds \
10239 old_archive_from_expsyms_cmds \
10240 allow_undefined_flag \
10241 no_undefined_flag \
10242 export_symbols_cmds \
10243 hardcode_libdir_flag_spec \
10244 hardcode_libdir_flag_spec_ld \
10245 hardcode_libdir_separator \
10246 hardcode_automatic \
10248 module_expsym_cmds \
10249 lt_cv_prog_compiler_c_o \
10252 include_expsyms; do
10255 old_archive_cmds | \
10256 old_archive_from_new_cmds | \
10258 archive_expsym_cmds | \
10260 module_expsym_cmds | \
10261 old_archive_from_expsyms_cmds | \
10262 export_symbols_cmds | \
10263 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10264 postinstall_cmds | postuninstall_cmds | \
10265 old_postinstall_cmds | old_postuninstall_cmds | \
10266 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10267 # Double-quote double-evaled strings.
10268 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10277 *'\$0 --fallback-echo"')
10278 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10282 cfgfile="${ofile}T"
10283 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10286 $as_echo "$as_me: creating $ofile" >&6;}
10288 cat <<__EOF__ >> "$cfgfile"
10291 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10292 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10293 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10295 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10296 # Free Software Foundation, Inc.
10298 # This file is part of GNU Libtool:
10299 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10301 # This program is free software; you can redistribute it and/or modify
10302 # it under the terms of the GNU General Public License as published by
10303 # the Free Software Foundation; either version 2 of the License, or
10304 # (at your option) any later version.
10306 # This program is distributed in the hope that it will be useful, but
10307 # WITHOUT ANY WARRANTY; without even the implied warranty of
10308 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10309 # General Public License for more details.
10311 # You should have received a copy of the GNU General Public License
10312 # along with this program; if not, write to the Free Software
10313 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10315 # As a special exception to the GNU General Public License, if you
10316 # distribute this file as part of a program that contains a
10317 # configuration script generated by Autoconf, you may include it under
10318 # the same distribution terms that you use for the rest of that program.
10320 # A sed program that does not truncate output.
10323 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10324 Xsed="$SED -e 1s/^X//"
10326 # The HP-UX ksh and POSIX shell print the target directory to stdout
10327 # if CDPATH is set.
10328 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10330 # The names of the tagged configurations supported by this script.
10333 # ### BEGIN LIBTOOL CONFIG
10335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10337 # Shell to use when invoking shell scripts.
10340 # Whether or not to build shared libraries.
10341 build_libtool_libs=$enable_shared
10343 # Whether or not to build static libraries.
10344 build_old_libs=$enable_static
10346 # Whether or not to add -lc for building shared libraries.
10347 build_libtool_need_lc=$archive_cmds_need_lc
10349 # Whether or not to disallow shared libs when runtime libs are static
10350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10352 # Whether or not to optimize for fast installation.
10353 fast_install=$enable_fast_install
10356 host_alias=$host_alias
10360 # The build system.
10361 build_alias=$build_alias
10365 # An echo program that does not interpret backslashes.
10370 AR_FLAGS=$lt_AR_FLAGS
10375 # LTCC compiler flags.
10376 LTCFLAGS=$lt_LTCFLAGS
10378 # A language-specific compiler.
10381 # Is the compiler the GNU C compiler?
10387 # The linker used to build libraries.
10390 # Whether we need hard or soft links.
10393 # A BSD-compatible nm program.
10396 # A symbol stripping program
10399 # Used to examine libraries when file_magic_cmd begins "file"
10400 MAGIC_CMD=$MAGIC_CMD
10402 # Used on cygwin: DLL creation program.
10405 # Used on cygwin: object dumper.
10408 # Used on cygwin: assembler.
10411 # The name of the directory that contains temporary libtool files.
10414 # How to create reloadable object files.
10415 reload_flag=$lt_reload_flag
10416 reload_cmds=$lt_reload_cmds
10418 # How to pass a linker flag through the compiler.
10419 wl=$lt_lt_prog_compiler_wl
10421 # Object file suffix (normally "o").
10422 objext="$ac_objext"
10424 # Old archive suffix (normally "a").
10427 # Shared library suffix (normally ".so").
10428 shrext_cmds='$shrext_cmds'
10430 # Executable file suffix (normally "").
10433 # Additional compiler flags for building library objects.
10434 pic_flag=$lt_lt_prog_compiler_pic
10437 # What is the maximum length of a command?
10438 max_cmd_len=$lt_cv_sys_max_cmd_len
10440 # Does compiler simultaneously support -c and -o options?
10441 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10443 # Must we lock files when doing compilation?
10444 need_locks=$lt_need_locks
10446 # Do we need the lib prefix for modules?
10447 need_lib_prefix=$need_lib_prefix
10449 # Do we need a version for libraries?
10450 need_version=$need_version
10452 # Whether dlopen is supported.
10453 dlopen_support=$enable_dlopen
10455 # Whether dlopen of programs is supported.
10456 dlopen_self=$enable_dlopen_self
10458 # Whether dlopen of statically linked programs is supported.
10459 dlopen_self_static=$enable_dlopen_self_static
10461 # Compiler flag to prevent dynamic linking.
10462 link_static_flag=$lt_lt_prog_compiler_static
10464 # Compiler flag to turn off builtin functions.
10465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10467 # Compiler flag to allow reflexive dlopens.
10468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10470 # Compiler flag to generate shared objects directly from archives.
10471 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10473 # Compiler flag to generate thread-safe objects.
10474 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10476 # Library versioning type.
10477 version_type=$version_type
10479 # Format of library name prefix.
10480 libname_spec=$lt_libname_spec
10482 # List of archive names. First name is the real one, the rest are links.
10483 # The last name is the one that the linker finds with -lNAME.
10484 library_names_spec=$lt_library_names_spec
10486 # The coded name of the library, if different from the real name.
10487 soname_spec=$lt_soname_spec
10489 # Commands used to build and install an old-style archive.
10491 old_archive_cmds=$lt_old_archive_cmds
10492 old_postinstall_cmds=$lt_old_postinstall_cmds
10493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10495 # Create an old-style archive from a shared archive.
10496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10498 # Create a temporary old-style archive to link instead of a shared archive.
10499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10501 # Commands used to build and install a shared archive.
10502 archive_cmds=$lt_archive_cmds
10503 archive_expsym_cmds=$lt_archive_expsym_cmds
10504 postinstall_cmds=$lt_postinstall_cmds
10505 postuninstall_cmds=$lt_postuninstall_cmds
10507 # Commands used to build a loadable module (assumed same as above if empty)
10508 module_cmds=$lt_module_cmds
10509 module_expsym_cmds=$lt_module_expsym_cmds
10511 # Commands to strip libraries.
10512 old_striplib=$lt_old_striplib
10513 striplib=$lt_striplib
10515 # Dependencies to place before the objects being linked to create a
10517 predep_objects=$lt_predep_objects
10519 # Dependencies to place after the objects being linked to create a
10521 postdep_objects=$lt_postdep_objects
10523 # Dependencies to place before the objects being linked to create a
10525 predeps=$lt_predeps
10527 # Dependencies to place after the objects being linked to create a
10529 postdeps=$lt_postdeps
10531 # The directories searched by this compiler when creating a shared
10533 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10535 # The library search path used internally by the compiler when linking
10536 # a shared library.
10537 compiler_lib_search_path=$lt_compiler_lib_search_path
10539 # Method to check whether dependent libraries are shared objects.
10540 deplibs_check_method=$lt_deplibs_check_method
10542 # Command to use when deplibs_check_method == file_magic.
10543 file_magic_cmd=$lt_file_magic_cmd
10545 # Flag that allows shared libraries with undefined symbols to be built.
10546 allow_undefined_flag=$lt_allow_undefined_flag
10548 # Flag that forces no undefined symbols.
10549 no_undefined_flag=$lt_no_undefined_flag
10551 # Commands used to finish a libtool library installation in a directory.
10552 finish_cmds=$lt_finish_cmds
10554 # Same as above, but a single script fragment to be evaled but not shown.
10555 finish_eval=$lt_finish_eval
10557 # Take the output of nm and produce a listing of raw symbols and C names.
10558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10560 # Transform the output of nm in a proper C declaration
10561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10563 # Transform the output of nm in a C name address pair
10564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10566 # This is the shared library runtime path variable.
10567 runpath_var=$runpath_var
10569 # This is the shared library path variable.
10570 shlibpath_var=$shlibpath_var
10572 # Is shlibpath searched before the hard-coded library search path?
10573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10575 # How to hardcode a shared library path into an executable.
10576 hardcode_action=$hardcode_action
10578 # Whether we should hardcode library paths into libraries.
10579 hardcode_into_libs=$hardcode_into_libs
10581 # Flag to hardcode \$libdir into a binary during linking.
10582 # This must work even if \$libdir does not exist.
10583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10585 # If ld is used when linking, flag to hardcode \$libdir into
10586 # a binary during linking. This must work even if \$libdir does
10588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10590 # Whether we need a single -rpath flag with a separated argument.
10591 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10594 # resulting binary.
10595 hardcode_direct=$hardcode_direct
10597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10598 # resulting binary.
10599 hardcode_minus_L=$hardcode_minus_L
10601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10602 # the resulting binary.
10603 hardcode_shlibpath_var=$hardcode_shlibpath_var
10605 # Set to yes if building a shared library automatically hardcodes DIR into the library
10606 # and all subsequent libraries and executables linked against it.
10607 hardcode_automatic=$hardcode_automatic
10609 # Variables whose values should be saved in libtool wrapper scripts and
10610 # restored at relink time.
10611 variables_saved_for_relink="$variables_saved_for_relink"
10613 # Whether libtool must link a program against all its dependency libraries.
10614 link_all_deplibs=$link_all_deplibs
10616 # Compile-time system search path for libraries
10617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10619 # Run-time system search path for libraries
10620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10622 # Fix the shell variable \$srcfile for the compiler.
10623 fix_srcfile_path=$lt_fix_srcfile_path
10625 # Set to yes if exported symbols are required.
10626 always_export_symbols=$always_export_symbols
10628 # The commands to list exported symbols.
10629 export_symbols_cmds=$lt_export_symbols_cmds
10631 # The commands to extract the exported symbol list from a shared archive.
10632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10634 # Symbols that should not be listed in the preloaded symbols.
10635 exclude_expsyms=$lt_exclude_expsyms
10637 # Symbols that must always be exported.
10638 include_expsyms=$lt_include_expsyms
10640 # ### END LIBTOOL CONFIG
10647 cat <<\EOF >> "$cfgfile"
10649 # AIX sometimes has problems with the GCC collect2 program. For some
10650 # reason, if we set the COLLECT_NAMES environment variable, the problems
10651 # vanish in a puff of smoke.
10652 if test "X${COLLECT_NAMES+set}" != Xset; then
10654 export COLLECT_NAMES
10660 # We use sed instead of cat because bash on DJGPP gets confused if
10661 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10662 # text mode, it properly converts lines to CR/LF. This bash problem
10663 # is reportedly fixed, but why not run on old versions too?
10664 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10666 mv -f "$cfgfile" "$ofile" || \
10667 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10671 # If there is no Makefile yet, we rely on a make rule to execute
10672 # `config.status --recheck' to rerun these tests and create the
10673 # libtool script then.
10674 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10675 if test -f "$ltmain_in"; then
10676 test -f Makefile && make "$ltmain"
10682 ac_cpp='$CPP $CPPFLAGS'
10683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10690 # Check whether --with-tags was given.
10691 if test "${with_tags+set}" = set; then :
10692 withval=$with_tags; tagnames="$withval"
10696 if test -f "$ltmain" && test -n "$tagnames"; then
10697 if test ! -f "${ofile}"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10699 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10702 if test -z "$LTCC"; then
10703 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10704 if test -z "$LTCC"; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10706 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10709 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10712 if test -z "$LTCFLAGS"; then
10713 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10716 # Extract list of available tagged configurations in $ofile.
10717 # Note that this assumes the entire list is on one line.
10718 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10720 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10721 for tagname in $tagnames; do
10723 # Check whether tagname contains only valid characters
10724 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10726 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10730 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10732 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10735 # Update the list of available tags.
10736 if test -n "$tagname"; then
10737 echo appending configuration tag \"$tagname\" to $ofile
10741 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10742 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10743 (test "X$CXX" != "Xg++"))) ; then
10745 ac_cpp='$CXXCPP $CPPFLAGS'
10746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10753 archive_cmds_need_lc_CXX=no
10754 allow_undefined_flag_CXX=
10755 always_export_symbols_CXX=no
10756 archive_expsym_cmds_CXX=
10757 export_dynamic_flag_spec_CXX=
10758 hardcode_direct_CXX=no
10759 hardcode_libdir_flag_spec_CXX=
10760 hardcode_libdir_flag_spec_ld_CXX=
10761 hardcode_libdir_separator_CXX=
10762 hardcode_minus_L_CXX=no
10763 hardcode_shlibpath_var_CXX=unsupported
10764 hardcode_automatic_CXX=no
10766 module_expsym_cmds_CXX=
10767 link_all_deplibs_CXX=unknown
10768 old_archive_cmds_CXX=$old_archive_cmds
10769 no_undefined_flag_CXX=
10770 whole_archive_flag_spec_CXX=
10771 enable_shared_with_static_runtimes_CXX=no
10773 # Dependencies to place before and after the object being linked:
10774 predep_objects_CXX=
10775 postdep_objects_CXX=
10778 compiler_lib_search_path_CXX=
10779 compiler_lib_search_dirs_CXX=
10781 # Source file extension for C++ test sources.
10784 # Object file extension for compiled C++ test sources.
10788 # Code to be used in simple compile tests
10789 lt_simple_compile_test_code="int some_variable = 0;"
10791 # Code to be used in simple link tests
10792 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10794 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10796 # If no C compiler was specified, use CC.
10799 # If no C compiler flags were specified, use CFLAGS.
10800 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10802 # Allow CC to be a program name with arguments.
10806 # save warnings/boilerplate of simple test code
10807 ac_outfile=conftest.$ac_objext
10808 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10809 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10810 _lt_compiler_boilerplate=`cat conftest.err`
10813 ac_outfile=conftest.$ac_objext
10814 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10815 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10816 _lt_linker_boilerplate=`cat conftest.err`
10820 # Allow CC to be a program name with arguments.
10825 lt_save_with_gnu_ld=$with_gnu_ld
10826 lt_save_path_LD=$lt_cv_path_LD
10827 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10828 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10830 $as_unset lt_cv_prog_gnu_ld
10832 if test -n "${lt_cv_path_LDCXX+set}"; then
10833 lt_cv_path_LD=$lt_cv_path_LDCXX
10835 $as_unset lt_cv_path_LD
10837 test -z "${LDCXX+set}" || LD=$LDCXX
10841 for cc_temp in $compiler""; do
10843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10849 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10852 # We don't want -fno-exception wen compiling C++ code, so set the
10853 # no_builtin_flag separately
10854 if test "$GXX" = yes; then
10855 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10857 lt_prog_compiler_no_builtin_flag_CXX=
10860 if test "$GXX" = yes; then
10861 # Set up default GNU C++ configuration
10864 # Check whether --with-gnu-ld was given.
10865 if test "${with_gnu_ld+set}" = set; then :
10866 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10872 if test "$GCC" = yes; then
10873 # Check if gcc -print-prog-name=ld gives a path.
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10875 $as_echo_n "checking for ld used by $CC... " >&6; }
10878 # gcc leaves a trailing carriage return which upsets mingw
10879 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10881 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10884 # Accept absolute paths.
10886 re_direlt='/[^/][^/]*/\.\./'
10887 # Canonicalize the pathname of ld
10888 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10889 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10890 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10892 test -z "$LD" && LD="$ac_prog"
10895 # If it fails, then pretend we aren't using GCC.
10899 # If it is relative, then search for the first ld in PATH.
10900 with_gnu_ld=unknown
10903 elif test "$with_gnu_ld" = yes; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10905 $as_echo_n "checking for GNU ld... " >&6; }
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10908 $as_echo_n "checking for non-GNU ld... " >&6; }
10910 if ${lt_cv_path_LD+:} false; then :
10911 $as_echo_n "(cached) " >&6
10913 if test -z "$LD"; then
10914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10915 for ac_dir in $PATH; do
10917 test -z "$ac_dir" && ac_dir=.
10918 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10919 lt_cv_path_LD="$ac_dir/$ac_prog"
10920 # Check to see if the program is GNU ld. I'd rather use --version,
10921 # but apparently some variants of GNU ld only accept -v.
10922 # Break only if it was the GNU/non-GNU ld that we prefer.
10923 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10924 *GNU* | *'with BFD'*)
10925 test "$with_gnu_ld" != no && break
10928 test "$with_gnu_ld" != yes && break
10935 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10939 LD="$lt_cv_path_LD"
10940 if test -n "$LD"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10942 $as_echo "$LD" >&6; }
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10947 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10949 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10950 if ${lt_cv_prog_gnu_ld+:} false; then :
10951 $as_echo_n "(cached) " >&6
10953 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10954 case `$LD -v 2>&1 </dev/null` in
10955 *GNU* | *'with BFD'*)
10956 lt_cv_prog_gnu_ld=yes
10959 lt_cv_prog_gnu_ld=no
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10964 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10965 with_gnu_ld=$lt_cv_prog_gnu_ld
10969 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10970 # archiving commands below assume that GNU ld is being used.
10971 if test "$with_gnu_ld" = yes; then
10972 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10973 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'
10975 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10978 # If archive_cmds runs LD, not CC, wlarc should be empty
10979 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10980 # investigate it a little bit more. (MM)
10983 # ancient GNU ld didn't support --whole-archive et. al.
10984 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10985 grep 'no-whole-archive' > /dev/null; then
10986 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10988 whole_archive_flag_spec_CXX=
10994 # A generic and very simple default shared library creation
10995 # command for GNU C++ for the case where it uses the native
10996 # linker, instead of GNU ld. If possible, this setting should
10997 # overridden to take advantage of the native linker features on
10998 # the platform it is being used on.
10999 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11002 # Commands to make compiler produce verbose output that lists
11003 # what "hidden" libraries, object files and flags are used when
11004 # linking a shared library.
11005 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11013 # PORTME: fill in a description of your system's C++ link characteristics
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11015 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11019 # FIXME: insert proper C++ library support
11023 if test "$host_cpu" = ia64; then
11024 # On IA64, the linker does run time linking by default, so we don't
11025 # have to do anything special.
11026 aix_use_runtimelinking=no
11027 exp_sym_flag='-Bexport'
11030 aix_use_runtimelinking=no
11032 # Test if we are trying to use run time linking or normal
11033 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11034 # need to do runtime linking.
11035 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11036 for ld_flag in $LDFLAGS; do
11039 aix_use_runtimelinking=yes
11047 exp_sym_flag='-bexport'
11048 no_entry_flag='-bnoentry'
11051 # When large executables or shared objects are built, AIX ld can
11052 # have problems creating the table of contents. If linking a library
11053 # or program results in "error TOC overflow" add -mminimal-toc to
11054 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11055 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11057 archive_cmds_CXX=''
11058 hardcode_direct_CXX=yes
11059 hardcode_libdir_separator_CXX=':'
11060 link_all_deplibs_CXX=yes
11062 if test "$GXX" = yes; then
11063 case $host_os in aix4.[012]|aix4.[012].*)
11064 # We only want to do this on AIX 4.2 and lower, the check
11065 # below for broken collect2 doesn't work under 4.3+
11066 collect2name=`${CC} -print-prog-name=collect2`
11067 if test -f "$collect2name" && \
11068 strings "$collect2name" | grep resolve_lib_name >/dev/null
11070 # We have reworked collect2
11073 # We have old collect2
11074 hardcode_direct_CXX=unsupported
11075 # It fails to find uninstalled libraries when the uninstalled
11076 # path is not listed in the libpath. Setting hardcode_minus_L
11077 # to unsupported forces relinking
11078 hardcode_minus_L_CXX=yes
11079 hardcode_libdir_flag_spec_CXX='-L$libdir'
11080 hardcode_libdir_separator_CXX=
11084 shared_flag='-shared'
11085 if test "$aix_use_runtimelinking" = yes; then
11086 shared_flag="$shared_flag "'${wl}-G'
11090 if test "$host_cpu" = ia64; then
11091 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11092 # chokes on -Wl,-G. The following line is correct:
11095 if test "$aix_use_runtimelinking" = yes; then
11096 shared_flag='${wl}-G'
11098 shared_flag='${wl}-bM:SRE'
11103 # It seems that -bexpall does not export symbols beginning with
11104 # underscore (_), so it is better to generate a list of symbols to export.
11105 always_export_symbols_CXX=yes
11106 if test "$aix_use_runtimelinking" = yes; then
11107 # Warning - without using the other runtime loading flags (-brtl),
11108 # -berok will link without error, but may produce a broken library.
11109 allow_undefined_flag_CXX='-berok'
11110 # Determine the default libpath from the value encoded in an empty executable.
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11122 if ac_fn_cxx_try_link "$LINENO"; then :
11124 lt_aix_libpath_sed='
11125 /Import File Strings/,/^$/ {
11131 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11132 # Check for a 64-bit object if we didn't find anything.
11133 if test -z "$aix_libpath"; then
11134 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11137 rm -f core conftest.err conftest.$ac_objext \
11138 conftest$ac_exeext conftest.$ac_ext
11139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11141 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11143 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"
11145 if test "$host_cpu" = ia64; then
11146 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11147 allow_undefined_flag_CXX="-z nodefs"
11148 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"
11150 # Determine the default libpath from the value encoded in an empty executable.
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11162 if ac_fn_cxx_try_link "$LINENO"; then :
11164 lt_aix_libpath_sed='
11165 /Import File Strings/,/^$/ {
11171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11172 # Check for a 64-bit object if we didn't find anything.
11173 if test -z "$aix_libpath"; then
11174 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11177 rm -f core conftest.err conftest.$ac_objext \
11178 conftest$ac_exeext conftest.$ac_ext
11179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11181 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11182 # Warning - without using the other run time loading flags,
11183 # -berok will link without error, but may produce a broken library.
11184 no_undefined_flag_CXX=' ${wl}-bernotok'
11185 allow_undefined_flag_CXX=' ${wl}-berok'
11186 # Exported symbols can be pulled into shared objects from archives
11187 whole_archive_flag_spec_CXX='$convenience'
11188 archive_cmds_need_lc_CXX=yes
11189 # This is similar to how AIX traditionally builds its shared libraries.
11190 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'
11196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11197 allow_undefined_flag_CXX=unsupported
11198 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11199 # support --undefined. This deserves some investigation. FIXME
11200 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11207 case $cc_basename in
11209 # FIXME: insert proper C++ library support
11215 cygwin* | mingw* | pw32*)
11216 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11217 # as there is no search path for DLLs.
11218 hardcode_libdir_flag_spec_CXX='-L$libdir'
11219 allow_undefined_flag_CXX=unsupported
11220 always_export_symbols_CXX=no
11221 enable_shared_with_static_runtimes_CXX=yes
11223 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11224 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'
11225 # If the export-symbols file already is a .def file (1st line
11226 # is EXPORTS), use it as is; otherwise, prepend...
11227 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11228 cp $export_symbols $output_objdir/$soname.def;
11230 echo EXPORTS > $output_objdir/$soname.def;
11231 cat $export_symbols >> $output_objdir/$soname.def;
11233 $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'
11238 darwin* | rhapsody*)
11239 archive_cmds_need_lc_CXX=no
11240 hardcode_direct_CXX=no
11241 hardcode_automatic_CXX=yes
11242 hardcode_shlibpath_var_CXX=unsupported
11243 whole_archive_flag_spec_CXX=''
11244 link_all_deplibs_CXX=yes
11245 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11246 if test "$GXX" = yes ; then
11247 output_verbose_link_cmd='echo'
11248 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}"
11249 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11250 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}"
11251 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}"
11252 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11253 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}"
11254 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}"
11257 case $cc_basename in
11259 output_verbose_link_cmd='echo'
11260 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'
11261 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11262 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11263 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}'
11264 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}'
11274 case $cc_basename in
11276 # FIXME: insert proper C++ library support
11280 # Green Hills C++ Compiler
11281 # FIXME: insert proper C++ library support
11285 # FIXME: insert proper C++ library support
11291 # C++ shared libraries reported to be fairly broken before switch to ELF
11295 archive_cmds_need_lc_CXX=no
11297 freebsd* | dragonfly*)
11298 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11305 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11306 hardcode_libdir_separator_CXX=:
11307 export_dynamic_flag_spec_CXX='${wl}-E'
11308 hardcode_direct_CXX=yes
11309 hardcode_minus_L_CXX=yes # Not in the search PATH,
11310 # but as the default
11311 # location of the library.
11313 case $cc_basename in
11315 # FIXME: insert proper C++ library support
11319 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'
11320 # Commands to make compiler produce verbose output that lists
11321 # what "hidden" libraries, object files and flags are used when
11322 # linking a shared library.
11324 # There doesn't appear to be a way to prevent this compiler from
11325 # explicitly linking system object files so we need to strip them
11326 # from the output so that they don't get included in the library
11328 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'
11331 if test "$GXX" = yes; then
11332 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'
11334 # FIXME: insert proper C++ library support
11341 if test $with_gnu_ld = no; then
11342 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11343 hardcode_libdir_separator_CXX=:
11348 export_dynamic_flag_spec_CXX='${wl}-E'
11354 hardcode_direct_CXX=no
11355 hardcode_shlibpath_var_CXX=no
11358 hardcode_direct_CXX=yes
11359 hardcode_minus_L_CXX=yes # Not in the search PATH,
11360 # but as the default
11361 # location of the library.
11365 case $cc_basename in
11367 # FIXME: insert proper C++ library support
11373 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11376 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11379 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11382 # Commands to make compiler produce verbose output that lists
11383 # what "hidden" libraries, object files and flags are used when
11384 # linking a shared library.
11386 # There doesn't appear to be a way to prevent this compiler from
11387 # explicitly linking system object files so we need to strip them
11388 # from the output so that they don't get included in the library
11390 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'
11393 if test "$GXX" = yes; then
11394 if test $with_gnu_ld = no; then
11397 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11400 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11403 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'
11408 # FIXME: insert proper C++ library support
11415 hardcode_direct_CXX=no
11416 hardcode_shlibpath_var_CXX=no
11417 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11418 export_dynamic_flag_spec_CXX='${wl}-E'
11419 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11420 # Instead, shared libraries are loaded at an image base (0x10000000 by
11421 # default) and relocated if they conflict, which is a slow very memory
11422 # consuming and fragmenting process. To avoid this, we pick a random,
11423 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11424 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11425 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'
11426 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'
11429 case $cc_basename in
11432 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'
11434 # Archives containing C++ object files must be created using
11435 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11436 # necessary to make sure instantiated templates are included
11438 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11441 if test "$GXX" = yes; then
11442 if test "$with_gnu_ld" = no; then
11443 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'
11445 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'
11448 link_all_deplibs_CXX=yes
11451 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11452 hardcode_libdir_separator_CXX=:
11454 linux* | k*bsd*-gnu)
11455 case $cc_basename in
11457 # Kuck and Associates, Inc. (KAI) C++ Compiler
11459 # KCC will only create a shared library if the output file
11460 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11461 # to its proper name (with version) after linking.
11462 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'
11463 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'
11464 # Commands to make compiler produce verbose output that lists
11465 # what "hidden" libraries, object files and flags are used when
11466 # linking a shared library.
11468 # There doesn't appear to be a way to prevent this compiler from
11469 # explicitly linking system object files so we need to strip them
11470 # from the output so that they don't get included in the library
11472 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'
11474 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11477 # Archives containing C++ object files must be created using
11478 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11479 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11484 # version 8.0 and above of icpc choke on multiply defined symbols
11485 # if we add $predep_objects and $postdep_objects, however 7.1 and
11486 # earlier do not add the objects themselves.
11487 case `$CC -V 2>&1` in
11489 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11490 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'
11492 *) # Version 8.0 or newer
11495 ia64*) tmp_idyn=' -i_dynamic';;
11497 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11498 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'
11501 archive_cmds_need_lc_CXX=no
11502 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11503 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11504 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11507 # Portland Group C++ compiler
11508 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11509 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'
11511 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11512 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11513 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'
11517 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11518 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'
11520 runpath_var=LD_RUN_PATH
11521 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11522 hardcode_libdir_separator_CXX=:
11524 # Commands to make compiler produce verbose output that lists
11525 # what "hidden" libraries, object files and flags are used when
11526 # linking a shared library.
11528 # There doesn't appear to be a way to prevent this compiler from
11529 # explicitly linking system object files so we need to strip them
11530 # from the output so that they don't get included in the library
11532 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'
11535 case `$CC -V 2>&1 | sed 5q` in
11538 no_undefined_flag_CXX=' -zdefs'
11539 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11540 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'
11541 hardcode_libdir_flag_spec_CXX='-R$libdir'
11542 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'
11544 # Not sure whether something based on
11545 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11547 output_verbose_link_cmd='echo'
11549 # Archives containing C++ object files must be created using
11550 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11551 # necessary to make sure instantiated templates are included
11553 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11560 # FIXME: insert proper C++ library support
11564 # FIXME: insert proper C++ library support
11568 case $cc_basename in
11570 # FIXME: insert proper C++ library support
11574 # FIXME: insert proper C++ library support
11579 netbsd* | netbsdelf*-gnu)
11580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11581 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11583 hardcode_libdir_flag_spec_CXX='-R$libdir'
11584 hardcode_direct_CXX=yes
11585 hardcode_shlibpath_var_CXX=no
11587 # Workaround some broken pre-1.5 toolchains
11588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11591 # C++ shared libraries are fairly broken
11595 if test -f /usr/libexec/ld.so; then
11596 hardcode_direct_CXX=yes
11597 hardcode_shlibpath_var_CXX=no
11598 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11600 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11601 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11602 export_dynamic_flag_spec_CXX='${wl}-E'
11603 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11605 output_verbose_link_cmd='echo'
11611 case $cc_basename in
11613 # Kuck and Associates, Inc. (KAI) C++ Compiler
11615 # KCC will only create a shared library if the output file
11616 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11617 # to its proper name (with version) after linking.
11618 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'
11620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11621 hardcode_libdir_separator_CXX=:
11623 # Archives containing C++ object files must be created using
11624 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11625 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11629 # Rational C++ 2.4.1
11630 # FIXME: insert proper C++ library support
11634 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11635 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'
11637 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11638 hardcode_libdir_separator_CXX=:
11640 # Commands to make compiler produce verbose output that lists
11641 # what "hidden" libraries, object files and flags are used when
11642 # linking a shared library.
11644 # There doesn't appear to be a way to prevent this compiler from
11645 # explicitly linking system object files so we need to strip them
11646 # from the output so that they don't get included in the library
11648 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'
11651 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11652 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11653 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'
11655 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11656 hardcode_libdir_separator_CXX=:
11658 # Commands to make compiler produce verbose output that lists
11659 # what "hidden" libraries, object files and flags are used when
11660 # linking a shared library.
11661 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11664 # FIXME: insert proper C++ library support
11671 case $cc_basename in
11673 # Kuck and Associates, Inc. (KAI) C++ Compiler
11675 # KCC will only create a shared library if the output file
11676 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11677 # to its proper name (with version) after linking.
11678 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'
11680 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11681 hardcode_libdir_separator_CXX=:
11683 # Archives containing C++ object files must be created using
11684 # the KAI C++ compiler.
11685 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11688 # Rational C++ 2.4.1
11689 # FIXME: insert proper C++ library support
11693 allow_undefined_flag_CXX=' -expect_unresolved \*'
11694 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'
11695 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11696 echo "-hidden">> $lib.exp~
11697 $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~
11700 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11701 hardcode_libdir_separator_CXX=:
11703 # Commands to make compiler produce verbose output that lists
11704 # what "hidden" libraries, object files and flags are used when
11705 # linking a shared library.
11707 # There doesn't appear to be a way to prevent this compiler from
11708 # explicitly linking system object files so we need to strip them
11709 # from the output so that they don't get included in the library
11711 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'
11714 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11715 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11716 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'
11718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11719 hardcode_libdir_separator_CXX=:
11721 # Commands to make compiler produce verbose output that lists
11722 # what "hidden" libraries, object files and flags are used when
11723 # linking a shared library.
11724 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11727 # FIXME: insert proper C++ library support
11734 # FIXME: insert proper C++ library support
11738 case $cc_basename in
11741 # FIXME: insert proper C++ library support
11746 # FIXME: insert proper C++ library support
11750 # FIXME: insert proper C++ library support
11756 case $cc_basename in
11758 # Sun C++ 4.2, 5.x and Centerline C++
11759 archive_cmds_need_lc_CXX=yes
11760 no_undefined_flag_CXX=' -zdefs'
11761 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11762 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11763 $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'
11765 hardcode_libdir_flag_spec_CXX='-R$libdir'
11766 hardcode_shlibpath_var_CXX=no
11768 solaris2.[0-5] | solaris2.[0-5].*) ;;
11770 # The compiler driver will combine and reorder linker options,
11771 # but understands `-z linker_flag'.
11772 # Supported since Solaris 2.6 (maybe 2.5.1?)
11773 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11776 link_all_deplibs_CXX=yes
11778 output_verbose_link_cmd='echo'
11780 # Archives containing C++ object files must be created using
11781 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11782 # necessary to make sure instantiated templates are included
11784 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11787 # Green Hills C++ Compiler
11788 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11790 # The C++ compiler must be used to create the archive.
11791 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11794 # GNU C++ compiler with Solaris linker
11795 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11796 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11797 if $CC --version | grep -v '^2\.7' > /dev/null; then
11798 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11799 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11800 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11802 # Commands to make compiler produce verbose output that lists
11803 # what "hidden" libraries, object files and flags are used when
11804 # linking a shared library.
11805 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11807 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11809 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11810 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11811 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11813 # Commands to make compiler produce verbose output that lists
11814 # what "hidden" libraries, object files and flags are used when
11815 # linking a shared library.
11816 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11819 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11821 solaris2.[0-5] | solaris2.[0-5].*) ;;
11823 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11830 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11831 no_undefined_flag_CXX='${wl}-z,text'
11832 archive_cmds_need_lc_CXX=no
11833 hardcode_shlibpath_var_CXX=no
11834 runpath_var='LD_RUN_PATH'
11836 case $cc_basename in
11838 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11839 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11842 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11843 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11847 sysv5* | sco3.2v5* | sco5v6*)
11848 # Note: We can NOT use -z defs as we might desire, because we do not
11849 # link with -lc, and that would cause any symbols used from libc to
11850 # always be unresolved, which means just about no library would
11851 # ever link correctly. If we're not using GNU ld we use -z text
11852 # though, which does catch some bad symbols but isn't as heavy-handed
11854 # For security reasons, it is highly recommended that you always
11855 # use absolute paths for naming shared libraries, and exclude the
11856 # DT_RUNPATH tag from executables and libraries. But doing so
11857 # requires that you compile everything twice, which is a pain.
11858 # So that behaviour is only enabled if SCOABSPATH is set to a
11859 # non-empty value in the environment. Most likely only useful for
11860 # creating official distributions of packages.
11861 # This is a hack until libtool officially supports absolute path
11862 # names for shared libraries.
11863 no_undefined_flag_CXX='${wl}-z,text'
11864 allow_undefined_flag_CXX='${wl}-z,nodefs'
11865 archive_cmds_need_lc_CXX=no
11866 hardcode_shlibpath_var_CXX=no
11867 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11868 hardcode_libdir_separator_CXX=':'
11869 link_all_deplibs_CXX=yes
11870 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11871 runpath_var='LD_RUN_PATH'
11873 case $cc_basename in
11875 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11876 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11879 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11880 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11885 case $cc_basename in
11887 # NonStop-UX NCC 3.20
11888 # FIXME: insert proper C++ library support
11892 # FIXME: insert proper C++ library support
11898 # FIXME: insert proper C++ library support
11902 # FIXME: insert proper C++ library support
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11907 $as_echo "$ld_shlibs_CXX" >&6; }
11908 test "$ld_shlibs_CXX" = no && can_build_shared=no
11913 cat > conftest.$ac_ext <<EOF
11917 Foo (void) { a = 0; }
11923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11924 (eval $ac_compile) 2>&5
11926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11927 test $ac_status = 0; }; then
11928 # Parse the compiler output and extract the necessary
11929 # objects, libraries and library flags.
11931 # Sentinel used to keep track of whether or not we are before
11932 # the conftest object file.
11933 pre_test_object_deps_done=no
11935 # The `*' in the case matches for architectures that use `case' in
11936 # $output_verbose_cmd can trigger glob expansion during the loop
11937 # eval without this substitution.
11938 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11940 for p in `eval $output_verbose_link_cmd`; do
11944 # Some compilers place space between "-{L,R}" and the path.
11945 # Remove the space.
11946 if test $p = "-L" \
11947 || test $p = "-R"; then
11954 if test "$pre_test_object_deps_done" = no; then
11957 # Internal compiler library paths should come after those
11958 # provided the user. The postdeps already come after the
11959 # user supplied libs so there is no need to process them.
11960 if test -z "$compiler_lib_search_path_CXX"; then
11961 compiler_lib_search_path_CXX="${prev}${p}"
11963 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11966 # The "-l" case would never come before the object being
11967 # linked, so don't bother handling this case.
11970 if test -z "$postdeps_CXX"; then
11971 postdeps_CXX="${prev}${p}"
11973 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11979 # This assumes that the test object file only shows up
11980 # once in the compiler output.
11981 if test "$p" = "conftest.$objext"; then
11982 pre_test_object_deps_done=yes
11986 if test "$pre_test_object_deps_done" = no; then
11987 if test -z "$predep_objects_CXX"; then
11988 predep_objects_CXX="$p"
11990 predep_objects_CXX="$predep_objects_CXX $p"
11993 if test -z "$postdep_objects_CXX"; then
11994 postdep_objects_CXX="$p"
11996 postdep_objects_CXX="$postdep_objects_CXX $p"
12001 *) ;; # Ignore the rest.
12009 echo "libtool.m4: error: problem compiling CXX test program"
12012 $rm -f confest.$objext
12014 compiler_lib_search_dirs_CXX=
12015 if test -n "$compiler_lib_search_path_CXX"; then
12016 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12019 # PORTME: override above test on systems where it is broken
12022 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12023 # hack all around it, let's just trust "g++" to DTRT.
12024 predep_objects_CXX=
12025 postdep_objects_CXX=
12030 case `$CC -V 2>&1 | sed 5q` in
12034 # The more standards-conforming stlport4 library is
12035 # incompatible with the Cstd library. Avoid specifying
12036 # it if it's in CXXFLAGS. Ignore libCrun as
12037 # -library=stlport4 depends on it.
12038 case " $CXX $CXXFLAGS " in
12039 *" -library=stlport4 "*)
12040 solaris_use_stlport4=yes
12043 if test "$solaris_use_stlport4" != yes; then
12044 postdeps_CXX='-library=Cstd -library=Crun'
12051 case $cc_basename in
12053 # The more standards-conforming stlport4 library is
12054 # incompatible with the Cstd library. Avoid specifying
12055 # it if it's in CXXFLAGS. Ignore libCrun as
12056 # -library=stlport4 depends on it.
12057 case " $CXX $CXXFLAGS " in
12058 *" -library=stlport4 "*)
12059 solaris_use_stlport4=yes
12063 # Adding this requires a known-good setup of shared libraries for
12064 # Sun compiler versions before 5.6, else PIC objects from an old
12065 # archive will be linked into the output, leading to subtle bugs.
12066 if test "$solaris_use_stlport4" != yes; then
12067 postdeps_CXX='-library=Cstd -library=Crun'
12074 case " $postdeps_CXX " in
12075 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12078 lt_prog_compiler_wl_CXX=
12079 lt_prog_compiler_pic_CXX=
12080 lt_prog_compiler_static_CXX=
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12083 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12085 # C++ specific cases for pic, static, wl, etc.
12086 if test "$GXX" = yes; then
12087 lt_prog_compiler_wl_CXX='-Wl,'
12088 lt_prog_compiler_static_CXX='-static'
12092 # All AIX code is PIC.
12093 if test "$host_cpu" = ia64; then
12094 # AIX 5 now supports IA64 processor
12095 lt_prog_compiler_static_CXX='-Bstatic'
12099 # FIXME: we need at least 68020 code to build shared libraries, but
12100 # adding the `-m68020' flag to GCC prevents building anything better,
12102 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12104 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12105 # PIC is the default for these OSes.
12107 mingw* | cygwin* | os2* | pw32*)
12108 # This hack is so that the source file can tell whether it is being
12109 # built for inclusion in a dll (and should export symbols for example).
12110 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12111 # (--disable-auto-import) libraries
12112 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12114 darwin* | rhapsody*)
12115 # PIC is the default on this platform
12116 # Common symbols not allowed in MH_DYLIB files
12117 lt_prog_compiler_pic_CXX='-fno-common'
12120 # DJGPP does not support shared libraries at all
12121 lt_prog_compiler_pic_CXX=
12124 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12125 # Instead, we relocate shared libraries at runtime.
12128 if test -d /usr/nec; then
12129 lt_prog_compiler_pic_CXX=-Kconform_pic
12133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12134 # not for PA HP-UX.
12139 lt_prog_compiler_pic_CXX='-fPIC'
12144 lt_prog_compiler_pic_CXX='-fPIC'
12150 # All AIX code is PIC.
12151 if test "$host_cpu" = ia64; then
12152 # AIX 5 now supports IA64 processor
12153 lt_prog_compiler_static_CXX='-Bstatic'
12155 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12159 case $cc_basename in
12161 # Green Hills C++ Compiler
12162 # _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"
12167 # PIC is the default on this platform
12168 # Common symbols not allowed in MH_DYLIB files
12169 case $cc_basename in
12171 lt_prog_compiler_pic_CXX='-qnocommon'
12172 lt_prog_compiler_wl_CXX='-Wl,'
12177 case $cc_basename in
12179 lt_prog_compiler_pic_CXX='-KPIC'
12182 # Green Hills C++ Compiler
12183 lt_prog_compiler_pic_CXX='-pic'
12189 freebsd* | dragonfly*)
12190 # FreeBSD uses GNU C++
12192 hpux9* | hpux10* | hpux11*)
12193 case $cc_basename in
12195 lt_prog_compiler_wl_CXX='-Wl,'
12196 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12197 if test "$host_cpu" != ia64; then
12198 lt_prog_compiler_pic_CXX='+Z'
12202 lt_prog_compiler_wl_CXX='-Wl,'
12203 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12209 lt_prog_compiler_pic_CXX='+Z'
12218 # This is c89, which is MS Visual C++ (no shared libs)
12219 # Anyone wants to do a port?
12221 irix5* | irix6* | nonstopux*)
12222 case $cc_basename in
12224 lt_prog_compiler_wl_CXX='-Wl,'
12225 lt_prog_compiler_static_CXX='-non_shared'
12226 # CC pic flag -KPIC is the default.
12232 linux* | k*bsd*-gnu)
12233 case $cc_basename in
12236 lt_prog_compiler_wl_CXX='--backend -Wl,'
12237 lt_prog_compiler_pic_CXX='-fPIC'
12241 lt_prog_compiler_wl_CXX='-Wl,'
12242 lt_prog_compiler_pic_CXX='-KPIC'
12243 lt_prog_compiler_static_CXX='-static'
12246 # Portland Group C++ compiler.
12247 lt_prog_compiler_wl_CXX='-Wl,'
12248 lt_prog_compiler_pic_CXX='-fpic'
12249 lt_prog_compiler_static_CXX='-Bstatic'
12253 # Make sure the PIC flag is empty. It appears that all Alpha
12254 # Linux and Compaq Tru64 Unix objects are PIC.
12255 lt_prog_compiler_pic_CXX=
12256 lt_prog_compiler_static_CXX='-non_shared'
12259 case `$CC -V 2>&1 | sed 5q` in
12262 lt_prog_compiler_pic_CXX='-KPIC'
12263 lt_prog_compiler_static_CXX='-Bstatic'
12264 lt_prog_compiler_wl_CXX='-Qoption ld '
12275 case $cc_basename in
12277 lt_prog_compiler_pic_CXX='-W c,exportall'
12283 netbsd* | netbsdelf*-gnu)
12285 osf3* | osf4* | osf5*)
12286 case $cc_basename in
12288 lt_prog_compiler_wl_CXX='--backend -Wl,'
12291 # Rational C++ 2.4.1
12292 lt_prog_compiler_pic_CXX='-pic'
12295 # Digital/Compaq C++
12296 lt_prog_compiler_wl_CXX='-Wl,'
12297 # Make sure the PIC flag is empty. It appears that all Alpha
12298 # Linux and Compaq Tru64 Unix objects are PIC.
12299 lt_prog_compiler_pic_CXX=
12300 lt_prog_compiler_static_CXX='-non_shared'
12309 case $cc_basename in
12311 # Sun C++ 4.2, 5.x and Centerline C++
12312 lt_prog_compiler_pic_CXX='-KPIC'
12313 lt_prog_compiler_static_CXX='-Bstatic'
12314 lt_prog_compiler_wl_CXX='-Qoption ld '
12317 # Green Hills C++ Compiler
12318 lt_prog_compiler_pic_CXX='-PIC'
12325 case $cc_basename in
12328 lt_prog_compiler_pic_CXX='-pic'
12329 lt_prog_compiler_static_CXX='-Bstatic'
12333 lt_prog_compiler_pic_CXX='-pic'
12340 case $cc_basename in
12342 # NonStop-UX NCC 3.20
12343 lt_prog_compiler_pic_CXX='-KPIC'
12349 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12350 case $cc_basename in
12352 lt_prog_compiler_wl_CXX='-Wl,'
12353 lt_prog_compiler_pic_CXX='-KPIC'
12354 lt_prog_compiler_static_CXX='-Bstatic'
12361 lt_prog_compiler_can_build_shared_CXX=no
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12367 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12370 # Check to make sure the PIC flag actually works.
12372 if test -n "$lt_prog_compiler_pic_CXX"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12375 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12376 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12377 $as_echo_n "(cached) " >&6
12379 lt_cv_prog_compiler_pic_works_CXX=no
12380 ac_outfile=conftest.$ac_objext
12381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12382 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12383 # Insert the option either (1) after the last *FLAGS variable, or
12384 # (2) before a word containing "conftest.", or (3) at the end.
12385 # Note that $ac_compile itself does not contain backslashes and begins
12386 # with a dollar sign (not a hyphen), so the echo should work correctly.
12387 # The option is referenced via a variable to avoid confusing sed.
12388 lt_compile=`echo "$ac_compile" | $SED \
12389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12391 -e 's:$: $lt_compiler_flag:'`
12392 (eval echo "\"\$as_me:12392: $lt_compile\"" >&5)
12393 (eval "$lt_compile" 2>conftest.err)
12395 cat conftest.err >&5
12396 echo "$as_me:12396: \$? = $ac_status" >&5
12397 if (exit $ac_status) && test -s "$ac_outfile"; then
12398 # The compiler can only warn and ignore the option if not recognized
12399 # So say no if there are warnings other than the usual output.
12400 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12402 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12403 lt_cv_prog_compiler_pic_works_CXX=yes
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12410 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12412 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12413 case $lt_prog_compiler_pic_CXX in
12415 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12418 lt_prog_compiler_pic_CXX=
12419 lt_prog_compiler_can_build_shared_CXX=no
12424 # For platforms which do not support PIC, -DPIC is meaningless:
12426 lt_prog_compiler_pic_CXX=
12429 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12434 # Check to make sure the static flag actually works.
12436 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12438 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12439 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12440 $as_echo_n "(cached) " >&6
12442 lt_cv_prog_compiler_static_works_CXX=no
12443 save_LDFLAGS="$LDFLAGS"
12444 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12445 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12446 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12447 # The linker can only warn and ignore the option if not recognized
12448 # So say no if there are warnings
12449 if test -s conftest.err; then
12450 # Append any errors to the config.log.
12451 cat conftest.err 1>&5
12452 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12454 if diff conftest.exp conftest.er2 >/dev/null; then
12455 lt_cv_prog_compiler_static_works_CXX=yes
12458 lt_cv_prog_compiler_static_works_CXX=yes
12462 LDFLAGS="$save_LDFLAGS"
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12466 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12468 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12471 lt_prog_compiler_static_CXX=
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12476 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12477 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12478 $as_echo_n "(cached) " >&6
12480 lt_cv_prog_compiler_c_o_CXX=no
12481 $rm -r conftest 2>/dev/null
12485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12487 lt_compiler_flag="-o out/conftest2.$ac_objext"
12488 # Insert the option either (1) after the last *FLAGS variable, or
12489 # (2) before a word containing "conftest.", or (3) at the end.
12490 # Note that $ac_compile itself does not contain backslashes and begins
12491 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
12499 cat out/conftest.err >&5
12500 echo "$as_me:12500: \$? = $ac_status" >&5
12501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12503 # The compiler can only warn and ignore the option if not recognized
12504 # So say no if there are warnings
12505 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12508 lt_cv_prog_compiler_c_o_CXX=yes
12513 # SGI C++ compiler will create directory out/ii_files/ for
12514 # template instantiation
12515 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12516 $rm out/* && rmdir out
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12523 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12526 hard_links="nottested"
12527 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12528 # do not overwrite the value of need_locks provided by the user
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12530 $as_echo_n "checking if we can lock with hard links... " >&6; }
12533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12535 ln conftest.a conftest.b 2>&5 || hard_links=no
12536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12538 $as_echo "$hard_links" >&6; }
12539 if test "$hard_links" = no; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12541 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12549 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12551 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12554 # If we're using GNU nm, then we don't want the "-C" option.
12555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12556 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12557 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'
12559 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'
12563 export_symbols_cmds_CXX="$ltdll_cmds"
12566 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'
12568 linux* | k*bsd*-gnu)
12569 link_all_deplibs_CXX=no
12572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12575 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12578 $as_echo "$ld_shlibs_CXX" >&6; }
12579 test "$ld_shlibs_CXX" = no && can_build_shared=no
12582 # Do we need to explicitly link libc?
12584 case "x$archive_cmds_need_lc_CXX" in
12586 # Assume -lc should be added
12587 archive_cmds_need_lc_CXX=yes
12589 if test "$enable_shared" = yes && test "$GCC" = yes; then
12590 case $archive_cmds_CXX in
12592 # FIXME: we may have to deal with multi-command sequences.
12595 # Test whether the compiler implicitly links with -lc since on some
12596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12597 # to ld, don't add -lc before -lgcc.
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12604 (eval $ac_compile) 2>&5
12606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12607 test $ac_status = 0; } 2>conftest.err; then
12610 libobjs=conftest.$ac_objext
12612 wl=$lt_prog_compiler_wl_CXX
12613 pic_flag=$lt_prog_compiler_pic_CXX
12619 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12620 allow_undefined_flag_CXX=
12621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12622 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12625 test $ac_status = 0; }
12627 archive_cmds_need_lc_CXX=no
12629 archive_cmds_need_lc_CXX=yes
12631 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12633 cat conftest.err 1>&5
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12637 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12645 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12646 library_names_spec=
12647 libname_spec='lib$name'
12651 postuninstall_cmds=
12655 shlibpath_overrides_runpath=unknown
12657 dynamic_linker="$host_os ld.so"
12658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12660 need_lib_prefix=unknown
12661 hardcode_into_libs=no
12663 # when you set need_version to no, make sure it does not cause -set_version
12664 # flags to be left without arguments
12665 need_version=unknown
12670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12671 shlibpath_var=LIBPATH
12673 # AIX 3 has no versioning support, so we append a major version to the name.
12674 soname_spec='${libname}${release}${shared_ext}$major'
12681 hardcode_into_libs=yes
12682 if test "$host_cpu" = ia64; then
12683 # AIX 5 supports IA64
12684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12685 shlibpath_var=LD_LIBRARY_PATH
12687 # With GCC up to 2.95.x, collect2 would create an import file
12688 # for dependence libraries. The import file would start with
12689 # the line `#! .'. This would cause the generated library to
12690 # depend on `.', always an invalid library. This was fixed in
12691 # development snapshots of GCC prior to 3.0.
12693 aix4 | aix4.[01] | aix4.[01].*)
12694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12696 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12699 can_build_shared=no
12703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12704 # soname into executable. Probably we can add versioning support to
12705 # collect2, so additional links can be useful in future.
12706 if test "$aix_use_runtimelinking" = yes; then
12707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12708 # instead of lib<name>.a to let people know that these are not
12709 # typical AIX shared libraries.
12710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12712 # We preserve .a as extension for shared libraries through AIX4.2
12713 # and later when we are not doing run time linking.
12714 library_names_spec='${libname}${release}.a $libname.a'
12715 soname_spec='${libname}${release}${shared_ext}$major'
12717 shlibpath_var=LIBPATH
12722 library_names_spec='$libname.ixlibrary $libname.a'
12723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12724 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'
12728 library_names_spec='${libname}${shared_ext}'
12729 dynamic_linker="$host_os ld.so"
12730 shlibpath_var=LIBRARY_PATH
12736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737 soname_spec='${libname}${release}${shared_ext}$major'
12738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12739 shlibpath_var=LD_LIBRARY_PATH
12740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12742 # the default ld.so.conf also contains /usr/contrib/lib and
12743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12744 # libtool to hard-code these into programs
12747 cygwin* | mingw* | pw32*)
12748 version_type=windows
12753 case $GCC,$host_os in
12754 yes,cygwin* | yes,mingw* | yes,pw32*)
12755 library_names_spec='$libname.dll.a'
12756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12757 postinstall_cmds='base_file=`basename \${file}`~
12758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12759 dldir=$destdir/`dirname \$dlpath`~
12760 test -d \$dldir || mkdir -p \$dldir~
12761 $install_prog $dir/$dlname \$dldir/$dlname~
12762 chmod a+x \$dldir/$dlname'
12763 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12764 dlpath=$dir/\$dldll~
12766 shlibpath_overrides_runpath=yes
12770 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12771 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12772 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12775 # MinGW DLLs use traditional 'lib' prefix
12776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12777 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12778 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12779 # It is most probably a Windows format PATH printed by
12780 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12781 # path with ; separators, and with drive letters. We can handle the
12782 # drive letters (cygwin fileutils understands them), so leave them,
12783 # especially as we might pass files found there to a mingw objdump,
12784 # which wouldn't understand a cygwinified path. Ahh.
12785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12791 # pw32 DLLs use 'pw' prefix rather than 'lib'
12792 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12798 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12801 dynamic_linker='Win32 ld.exe'
12802 # FIXME: first we should search . and the directory the executable is in
12806 darwin* | rhapsody*)
12807 dynamic_linker="$host_os dyld"
12808 version_type=darwin
12811 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12812 soname_spec='${libname}${release}${major}$shared_ext'
12813 shlibpath_overrides_runpath=yes
12814 shlibpath_var=DYLD_LIBRARY_PATH
12815 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12817 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12825 soname_spec='${libname}${release}${shared_ext}$major'
12826 shlibpath_var=LD_LIBRARY_PATH
12833 freebsd* | dragonfly*)
12834 # DragonFly does not have aout. When/if they implement a new
12835 # versioning mechanism, adjust this.
12836 if test -x /usr/bin/objformat; then
12837 objformat=`/usr/bin/objformat`
12840 freebsd[123]*) objformat=aout ;;
12841 *) objformat=elf ;;
12844 version_type=freebsd-$objformat
12845 case $version_type in
12847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12856 shlibpath_var=LD_LIBRARY_PATH
12859 shlibpath_overrides_runpath=yes
12861 freebsd3.[01]* | freebsdelf3.[01]*)
12862 shlibpath_overrides_runpath=yes
12863 hardcode_into_libs=yes
12865 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12866 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12867 shlibpath_overrides_runpath=no
12868 hardcode_into_libs=yes
12870 *) # from 4.6 on, and DragonFly
12871 shlibpath_overrides_runpath=yes
12872 hardcode_into_libs=yes
12881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12882 soname_spec='${libname}${release}${shared_ext}$major'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 hardcode_into_libs=yes
12887 hpux9* | hpux10* | hpux11*)
12888 # Give a soname corresponding to the major version so that dld.sl refuses to
12889 # link against other versions.
12896 hardcode_into_libs=yes
12897 dynamic_linker="$host_os dld.so"
12898 shlibpath_var=LD_LIBRARY_PATH
12899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12901 soname_spec='${libname}${release}${shared_ext}$major'
12902 if test "X$HPUX_IA64_MODE" = X32; then
12903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12911 hardcode_into_libs=yes
12912 dynamic_linker="$host_os dld.sl"
12913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12916 soname_spec='${libname}${release}${shared_ext}$major'
12917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12922 dynamic_linker="$host_os dld.sl"
12923 shlibpath_var=SHLIB_PATH
12924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926 soname_spec='${libname}${release}${shared_ext}$major'
12929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12930 postinstall_cmds='chmod 555 $lib'
12937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12938 soname_spec='${libname}${release}${shared_ext}$major'
12939 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12940 shlibpath_var=LD_LIBRARY_PATH
12941 shlibpath_overrides_runpath=no
12942 hardcode_into_libs=yes
12945 irix5* | irix6* | nonstopux*)
12947 nonstopux*) version_type=nonstopux ;;
12949 if test "$lt_cv_prog_gnu_ld" = yes; then
12957 soname_spec='${libname}${release}${shared_ext}$major'
12958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12960 irix5* | nonstopux*)
12961 libsuff= shlibsuff=
12964 case $LD in # libtool.m4 will add one of these switches to LD
12965 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12966 libsuff= shlibsuff= libmagic=32-bit;;
12967 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12968 libsuff=32 shlibsuff=N32 libmagic=N32;;
12969 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12970 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12971 *) libsuff= shlibsuff= libmagic=never-match;;
12975 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12976 shlibpath_overrides_runpath=no
12977 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12978 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12979 hardcode_into_libs=yes
12982 # No shared lib support for Linux oldld, aout, or coff.
12983 linux*oldld* | linux*aout* | linux*coff*)
12987 # This must be Linux ELF.
12988 linux* | k*bsd*-gnu)
12992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12993 soname_spec='${libname}${release}${shared_ext}$major'
12994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12995 shlibpath_var=LD_LIBRARY_PATH
12996 shlibpath_overrides_runpath=no
12997 # This implies no fast_install, which is unacceptable.
12998 # Some rework will be needed to allow for fast_install
12999 # before this can be enabled.
13000 hardcode_into_libs=yes
13002 # Append ld.so.conf contents to the search path
13003 if test -f /etc/ld.so.conf; then
13004 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' ' '`
13005 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13008 # We used to test for /lib/ld.so.1 and disable shared libraries on
13009 # powerpc, because MkLinux only supported shared libraries with the
13010 # GNU dynamic linker. Since this was broken with cross compilers,
13011 # most powerpc-linux boxes support dynamic linking these days and
13012 # people can always --disable-shared, the test was removed, and we
13013 # assume the GNU/Linux dynamic linker is in use.
13014 dynamic_linker='GNU/Linux ld.so'
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13022 soname_spec='${libname}${release}${shared_ext}$major'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 shlibpath_overrides_runpath=no
13025 hardcode_into_libs=yes
13026 dynamic_linker='NetBSD ld.elf_so'
13033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13036 dynamic_linker='NetBSD (a.out) ld.so'
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 dynamic_linker='NetBSD ld.elf_so'
13042 shlibpath_var=LD_LIBRARY_PATH
13043 shlibpath_overrides_runpath=yes
13044 hardcode_into_libs=yes
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050 shlibpath_var=LD_LIBRARY_PATH
13051 shlibpath_overrides_runpath=yes
13058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059 soname_spec='${libname}${release}${shared_ext}$major'
13060 shlibpath_var=LD_LIBRARY_PATH
13061 shlibpath_overrides_runpath=yes
13066 sys_lib_dlsearch_path_spec="/usr/lib"
13068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13071 *) need_version=no ;;
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13078 openbsd2.[89] | openbsd2.[89].*)
13079 shlibpath_overrides_runpath=no
13082 shlibpath_overrides_runpath=yes
13086 shlibpath_overrides_runpath=yes
13091 libname_spec='$name'
13094 library_names_spec='$libname${shared_ext} $libname.a'
13095 dynamic_linker='OS/2 ld.exe'
13096 shlibpath_var=LIBPATH
13099 osf3* | osf4* | osf5*)
13103 soname_spec='${libname}${release}${shared_ext}$major'
13104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13119 soname_spec='${libname}${release}${shared_ext}$major'
13120 shlibpath_var=LD_LIBRARY_PATH
13121 shlibpath_overrides_runpath=yes
13122 hardcode_into_libs=yes
13123 # ldd complains unless libraries are executable
13124 postinstall_cmds='chmod +x $lib'
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13130 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13131 shlibpath_var=LD_LIBRARY_PATH
13132 shlibpath_overrides_runpath=yes
13133 if test "$with_gnu_ld" = yes; then
13141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13142 soname_spec='${libname}${release}${shared_ext}$major'
13143 shlibpath_var=LD_LIBRARY_PATH
13144 case $host_vendor in
13146 shlibpath_overrides_runpath=no
13148 export_dynamic_flag_spec='${wl}-Blargedynsym'
13149 runpath_var=LD_RUN_PATH
13157 shlibpath_overrides_runpath=no
13158 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13164 if test -d /usr/nec ;then
13166 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13167 soname_spec='$libname${shared_ext}.$major'
13168 shlibpath_var=LD_LIBRARY_PATH
13172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13173 version_type=freebsd-elf
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13177 soname_spec='${libname}${release}${shared_ext}$major'
13178 shlibpath_var=LD_LIBRARY_PATH
13179 hardcode_into_libs=yes
13180 if test "$with_gnu_ld" = yes; then
13181 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13182 shlibpath_overrides_runpath=no
13184 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13185 shlibpath_overrides_runpath=yes
13188 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13192 sys_lib_dlsearch_path_spec='/usr/lib'
13197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198 soname_spec='${libname}${release}${shared_ext}$major'
13199 shlibpath_var=LD_LIBRARY_PATH
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13207 $as_echo "$dynamic_linker" >&6; }
13208 test "$dynamic_linker" = no && can_build_shared=no
13210 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13211 $as_echo_n "(cached) " >&6
13213 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13216 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13217 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13218 $as_echo_n "(cached) " >&6
13220 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13223 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13226 if test "$GCC" = yes; then
13227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13231 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13232 hardcode_action_CXX=
13233 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13234 test -n "$runpath_var_CXX" || \
13235 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13237 # We can hardcode non-existant directories.
13238 if test "$hardcode_direct_CXX" != no &&
13239 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13240 # have to relink, otherwise we might link with an installed library
13241 # when we should be linking with a yet-to-be-installed one
13242 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13243 test "$hardcode_minus_L_CXX" != no; then
13244 # Linking always hardcodes the temporary library directory.
13245 hardcode_action_CXX=relink
13247 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13248 hardcode_action_CXX=immediate
13251 # We cannot hardcode anything, or else we can only hardcode existing
13253 hardcode_action_CXX=unsupported
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13256 $as_echo "$hardcode_action_CXX" >&6; }
13258 if test "$hardcode_action_CXX" = relink; then
13259 # Fast installation is not supported
13260 enable_fast_install=no
13261 elif test "$shlibpath_overrides_runpath" = yes ||
13262 test "$enable_shared" = no; then
13263 # Fast installation is not necessary
13264 enable_fast_install=needless
13268 # The else clause should only fire when bootstrapping the
13269 # libtool distribution, otherwise you forgot to ship ltmain.sh
13270 # with your package, and you will get complaints that there are
13271 # no rules to generate ltmain.sh.
13272 if test -f "$ltmain"; then
13273 # See if we are running on zsh, and set the options which allow our commands through
13274 # without removal of \ escapes.
13275 if test -n "${ZSH_VERSION+set}" ; then
13276 setopt NO_GLOB_SUBST
13278 # Now quote all the things that may contain metacharacters while being
13279 # careful not to overquote the AC_SUBSTed values. We take copies of the
13280 # variables and quote the copies for generation of the libtool script.
13281 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13283 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13284 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13285 deplibs_check_method reload_flag reload_cmds need_locks \
13286 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13287 lt_cv_sys_global_symbol_to_c_name_address \
13288 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13289 old_postinstall_cmds old_postuninstall_cmds \
13293 lt_prog_compiler_wl_CXX \
13294 lt_prog_compiler_pic_CXX \
13295 lt_prog_compiler_static_CXX \
13296 lt_prog_compiler_no_builtin_flag_CXX \
13297 export_dynamic_flag_spec_CXX \
13298 thread_safe_flag_spec_CXX \
13299 whole_archive_flag_spec_CXX \
13300 enable_shared_with_static_runtimes_CXX \
13301 old_archive_cmds_CXX \
13302 old_archive_from_new_cmds_CXX \
13303 predep_objects_CXX \
13304 postdep_objects_CXX \
13307 compiler_lib_search_path_CXX \
13308 compiler_lib_search_dirs_CXX \
13310 archive_expsym_cmds_CXX \
13311 postinstall_cmds_CXX \
13312 postuninstall_cmds_CXX \
13313 old_archive_from_expsyms_cmds_CXX \
13314 allow_undefined_flag_CXX \
13315 no_undefined_flag_CXX \
13316 export_symbols_cmds_CXX \
13317 hardcode_libdir_flag_spec_CXX \
13318 hardcode_libdir_flag_spec_ld_CXX \
13319 hardcode_libdir_separator_CXX \
13320 hardcode_automatic_CXX \
13322 module_expsym_cmds_CXX \
13323 lt_cv_prog_compiler_c_o_CXX \
13324 fix_srcfile_path_CXX \
13325 exclude_expsyms_CXX \
13326 include_expsyms_CXX; do
13329 old_archive_cmds_CXX | \
13330 old_archive_from_new_cmds_CXX | \
13331 archive_cmds_CXX | \
13332 archive_expsym_cmds_CXX | \
13333 module_cmds_CXX | \
13334 module_expsym_cmds_CXX | \
13335 old_archive_from_expsyms_cmds_CXX | \
13336 export_symbols_cmds_CXX | \
13337 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13338 postinstall_cmds | postuninstall_cmds | \
13339 old_postinstall_cmds | old_postuninstall_cmds | \
13340 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13341 # Double-quote double-evaled strings.
13342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13351 *'\$0 --fallback-echo"')
13352 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13358 cat <<__EOF__ >> "$cfgfile"
13359 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13361 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13363 # Shell to use when invoking shell scripts.
13366 # Whether or not to build shared libraries.
13367 build_libtool_libs=$enable_shared
13369 # Whether or not to build static libraries.
13370 build_old_libs=$enable_static
13372 # Whether or not to add -lc for building shared libraries.
13373 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13375 # Whether or not to disallow shared libs when runtime libs are static
13376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13378 # Whether or not to optimize for fast installation.
13379 fast_install=$enable_fast_install
13382 host_alias=$host_alias
13386 # The build system.
13387 build_alias=$build_alias
13391 # An echo program that does not interpret backslashes.
13396 AR_FLAGS=$lt_AR_FLAGS
13401 # LTCC compiler flags.
13402 LTCFLAGS=$lt_LTCFLAGS
13404 # A language-specific compiler.
13405 CC=$lt_compiler_CXX
13407 # Is the compiler the GNU C compiler?
13413 # The linker used to build libraries.
13416 # Whether we need hard or soft links.
13419 # A BSD-compatible nm program.
13422 # A symbol stripping program
13425 # Used to examine libraries when file_magic_cmd begins "file"
13426 MAGIC_CMD=$MAGIC_CMD
13428 # Used on cygwin: DLL creation program.
13431 # Used on cygwin: object dumper.
13434 # Used on cygwin: assembler.
13437 # The name of the directory that contains temporary libtool files.
13440 # How to create reloadable object files.
13441 reload_flag=$lt_reload_flag
13442 reload_cmds=$lt_reload_cmds
13444 # How to pass a linker flag through the compiler.
13445 wl=$lt_lt_prog_compiler_wl_CXX
13447 # Object file suffix (normally "o").
13448 objext="$ac_objext"
13450 # Old archive suffix (normally "a").
13453 # Shared library suffix (normally ".so").
13454 shrext_cmds='$shrext_cmds'
13456 # Executable file suffix (normally "").
13459 # Additional compiler flags for building library objects.
13460 pic_flag=$lt_lt_prog_compiler_pic_CXX
13463 # What is the maximum length of a command?
13464 max_cmd_len=$lt_cv_sys_max_cmd_len
13466 # Does compiler simultaneously support -c and -o options?
13467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13469 # Must we lock files when doing compilation?
13470 need_locks=$lt_need_locks
13472 # Do we need the lib prefix for modules?
13473 need_lib_prefix=$need_lib_prefix
13475 # Do we need a version for libraries?
13476 need_version=$need_version
13478 # Whether dlopen is supported.
13479 dlopen_support=$enable_dlopen
13481 # Whether dlopen of programs is supported.
13482 dlopen_self=$enable_dlopen_self
13484 # Whether dlopen of statically linked programs is supported.
13485 dlopen_self_static=$enable_dlopen_self_static
13487 # Compiler flag to prevent dynamic linking.
13488 link_static_flag=$lt_lt_prog_compiler_static_CXX
13490 # Compiler flag to turn off builtin functions.
13491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13493 # Compiler flag to allow reflexive dlopens.
13494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13496 # Compiler flag to generate shared objects directly from archives.
13497 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13499 # Compiler flag to generate thread-safe objects.
13500 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13502 # Library versioning type.
13503 version_type=$version_type
13505 # Format of library name prefix.
13506 libname_spec=$lt_libname_spec
13508 # List of archive names. First name is the real one, the rest are links.
13509 # The last name is the one that the linker finds with -lNAME.
13510 library_names_spec=$lt_library_names_spec
13512 # The coded name of the library, if different from the real name.
13513 soname_spec=$lt_soname_spec
13515 # Commands used to build and install an old-style archive.
13517 old_archive_cmds=$lt_old_archive_cmds_CXX
13518 old_postinstall_cmds=$lt_old_postinstall_cmds
13519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13521 # Create an old-style archive from a shared archive.
13522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13524 # Create a temporary old-style archive to link instead of a shared archive.
13525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13527 # Commands used to build and install a shared archive.
13528 archive_cmds=$lt_archive_cmds_CXX
13529 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13530 postinstall_cmds=$lt_postinstall_cmds
13531 postuninstall_cmds=$lt_postuninstall_cmds
13533 # Commands used to build a loadable module (assumed same as above if empty)
13534 module_cmds=$lt_module_cmds_CXX
13535 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13537 # Commands to strip libraries.
13538 old_striplib=$lt_old_striplib
13539 striplib=$lt_striplib
13541 # Dependencies to place before the objects being linked to create a
13543 predep_objects=$lt_predep_objects_CXX
13545 # Dependencies to place after the objects being linked to create a
13547 postdep_objects=$lt_postdep_objects_CXX
13549 # Dependencies to place before the objects being linked to create a
13551 predeps=$lt_predeps_CXX
13553 # Dependencies to place after the objects being linked to create a
13555 postdeps=$lt_postdeps_CXX
13557 # The directories searched by this compiler when creating a shared
13559 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13561 # The library search path used internally by the compiler when linking
13562 # a shared library.
13563 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13565 # Method to check whether dependent libraries are shared objects.
13566 deplibs_check_method=$lt_deplibs_check_method
13568 # Command to use when deplibs_check_method == file_magic.
13569 file_magic_cmd=$lt_file_magic_cmd
13571 # Flag that allows shared libraries with undefined symbols to be built.
13572 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13574 # Flag that forces no undefined symbols.
13575 no_undefined_flag=$lt_no_undefined_flag_CXX
13577 # Commands used to finish a libtool library installation in a directory.
13578 finish_cmds=$lt_finish_cmds
13580 # Same as above, but a single script fragment to be evaled but not shown.
13581 finish_eval=$lt_finish_eval
13583 # Take the output of nm and produce a listing of raw symbols and C names.
13584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13586 # Transform the output of nm in a proper C declaration
13587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13589 # Transform the output of nm in a C name address pair
13590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13592 # This is the shared library runtime path variable.
13593 runpath_var=$runpath_var
13595 # This is the shared library path variable.
13596 shlibpath_var=$shlibpath_var
13598 # Is shlibpath searched before the hard-coded library search path?
13599 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13601 # How to hardcode a shared library path into an executable.
13602 hardcode_action=$hardcode_action_CXX
13604 # Whether we should hardcode library paths into libraries.
13605 hardcode_into_libs=$hardcode_into_libs
13607 # Flag to hardcode \$libdir into a binary during linking.
13608 # This must work even if \$libdir does not exist.
13609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13611 # If ld is used when linking, flag to hardcode \$libdir into
13612 # a binary during linking. This must work even if \$libdir does
13614 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13616 # Whether we need a single -rpath flag with a separated argument.
13617 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13619 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13620 # resulting binary.
13621 hardcode_direct=$hardcode_direct_CXX
13623 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13624 # resulting binary.
13625 hardcode_minus_L=$hardcode_minus_L_CXX
13627 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13628 # the resulting binary.
13629 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13631 # Set to yes if building a shared library automatically hardcodes DIR into the library
13632 # and all subsequent libraries and executables linked against it.
13633 hardcode_automatic=$hardcode_automatic_CXX
13635 # Variables whose values should be saved in libtool wrapper scripts and
13636 # restored at relink time.
13637 variables_saved_for_relink="$variables_saved_for_relink"
13639 # Whether libtool must link a program against all its dependency libraries.
13640 link_all_deplibs=$link_all_deplibs_CXX
13642 # Compile-time system search path for libraries
13643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13645 # Run-time system search path for libraries
13646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13648 # Fix the shell variable \$srcfile for the compiler.
13649 fix_srcfile_path=$lt_fix_srcfile_path
13651 # Set to yes if exported symbols are required.
13652 always_export_symbols=$always_export_symbols_CXX
13654 # The commands to list exported symbols.
13655 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13657 # The commands to extract the exported symbol list from a shared archive.
13658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13660 # Symbols that should not be listed in the preloaded symbols.
13661 exclude_expsyms=$lt_exclude_expsyms_CXX
13663 # Symbols that must always be exported.
13664 include_expsyms=$lt_include_expsyms_CXX
13666 # ### END LIBTOOL TAG CONFIG: $tagname
13672 # If there is no Makefile yet, we rely on a make rule to execute
13673 # `config.status --recheck' to rerun these tests and create the
13674 # libtool script then.
13675 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13676 if test -f "$ltmain_in"; then
13677 test -f Makefile && make "$ltmain"
13683 ac_cpp='$CPP $CPPFLAGS'
13684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13692 with_gnu_ldcxx=$with_gnu_ld
13693 with_gnu_ld=$lt_save_with_gnu_ld
13694 lt_cv_path_LDCXX=$lt_cv_path_LD
13695 lt_cv_path_LD=$lt_save_path_LD
13696 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13697 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13705 if test -n "$F77" && test "X$F77" != "Xno"; then
13708 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13709 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13710 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13713 archive_cmds_need_lc_F77=no
13714 allow_undefined_flag_F77=
13715 always_export_symbols_F77=no
13716 archive_expsym_cmds_F77=
13717 export_dynamic_flag_spec_F77=
13718 hardcode_direct_F77=no
13719 hardcode_libdir_flag_spec_F77=
13720 hardcode_libdir_flag_spec_ld_F77=
13721 hardcode_libdir_separator_F77=
13722 hardcode_minus_L_F77=no
13723 hardcode_automatic_F77=no
13725 module_expsym_cmds_F77=
13726 link_all_deplibs_F77=unknown
13727 old_archive_cmds_F77=$old_archive_cmds
13728 no_undefined_flag_F77=
13729 whole_archive_flag_spec_F77=
13730 enable_shared_with_static_runtimes_F77=no
13732 # Source file extension for f77 test sources.
13735 # Object file extension for compiled f77 test sources.
13739 # Code to be used in simple compile tests
13740 lt_simple_compile_test_code="\
13746 # Code to be used in simple link tests
13747 lt_simple_link_test_code="\
13752 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13754 # If no C compiler was specified, use CC.
13757 # If no C compiler flags were specified, use CFLAGS.
13758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13760 # Allow CC to be a program name with arguments.
13764 # save warnings/boilerplate of simple test code
13765 ac_outfile=conftest.$ac_objext
13766 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13768 _lt_compiler_boilerplate=`cat conftest.err`
13771 ac_outfile=conftest.$ac_objext
13772 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13774 _lt_linker_boilerplate=`cat conftest.err`
13778 # Allow CC to be a program name with arguments.
13783 for cc_temp in $compiler""; do
13785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13791 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13795 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13797 $as_echo "$can_build_shared" >&6; }
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13800 $as_echo_n "checking whether to build shared libraries... " >&6; }
13801 test "$can_build_shared" = "no" && enable_shared=no
13803 # On AIX, shared libraries and static libraries use the same namespace, and
13804 # are all built from PIC.
13807 test "$enable_shared" = yes && enable_static=no
13808 if test -n "$RANLIB"; then
13809 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13810 postinstall_cmds='$RANLIB $lib'
13814 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13815 test "$enable_shared" = yes && enable_static=no
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13820 $as_echo "$enable_shared" >&6; }
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13823 $as_echo_n "checking whether to build static libraries... " >&6; }
13824 # Make sure either enable_shared or enable_static is yes.
13825 test "$enable_shared" = yes || enable_static=yes
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13827 $as_echo "$enable_static" >&6; }
13832 lt_prog_compiler_wl_F77=
13833 lt_prog_compiler_pic_F77=
13834 lt_prog_compiler_static_F77=
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13837 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13839 if test "$GCC" = yes; then
13840 lt_prog_compiler_wl_F77='-Wl,'
13841 lt_prog_compiler_static_F77='-static'
13845 # All AIX code is PIC.
13846 if test "$host_cpu" = ia64; then
13847 # AIX 5 now supports IA64 processor
13848 lt_prog_compiler_static_F77='-Bstatic'
13853 # FIXME: we need at least 68020 code to build shared libraries, but
13854 # adding the `-m68020' flag to GCC prevents building anything better,
13856 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13859 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13860 # PIC is the default for these OSes.
13863 mingw* | cygwin* | pw32* | os2*)
13864 # This hack is so that the source file can tell whether it is being
13865 # built for inclusion in a dll (and should export symbols for example).
13866 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13867 # (--disable-auto-import) libraries
13868 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13871 darwin* | rhapsody*)
13872 # PIC is the default on this platform
13873 # Common symbols not allowed in MH_DYLIB files
13874 lt_prog_compiler_pic_F77='-fno-common'
13878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13879 # Instead, we relocate shared libraries at runtime.
13883 # Just because we use GCC doesn't mean we suddenly get shared libraries
13884 # on systems that don't support them.
13885 lt_prog_compiler_can_build_shared_F77=no
13890 if test -d /usr/nec; then
13891 lt_prog_compiler_pic_F77=-Kconform_pic
13896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13897 # not for PA HP-UX.
13903 lt_prog_compiler_pic_F77='-fPIC'
13909 lt_prog_compiler_pic_F77='-fPIC'
13913 # PORTME Check for flag to pass linker flags through the system compiler.
13916 lt_prog_compiler_wl_F77='-Wl,'
13917 if test "$host_cpu" = ia64; then
13918 # AIX 5 now supports IA64 processor
13919 lt_prog_compiler_static_F77='-Bstatic'
13921 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13925 # PIC is the default on this platform
13926 # Common symbols not allowed in MH_DYLIB files
13927 case $cc_basename in
13929 lt_prog_compiler_pic_F77='-qnocommon'
13930 lt_prog_compiler_wl_F77='-Wl,'
13935 mingw* | cygwin* | pw32* | os2*)
13936 # This hack is so that the source file can tell whether it is being
13937 # built for inclusion in a dll (and should export symbols for example).
13938 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13941 hpux9* | hpux10* | hpux11*)
13942 lt_prog_compiler_wl_F77='-Wl,'
13943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13944 # not for PA HP-UX.
13950 lt_prog_compiler_pic_F77='+Z'
13953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13954 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13957 irix5* | irix6* | nonstopux*)
13958 lt_prog_compiler_wl_F77='-Wl,'
13959 # PIC (with -KPIC) is the default.
13960 lt_prog_compiler_static_F77='-non_shared'
13964 lt_prog_compiler_pic_F77='-KPIC'
13965 lt_prog_compiler_static_F77='-Bstatic'
13968 linux* | k*bsd*-gnu)
13969 case $cc_basename in
13971 lt_prog_compiler_wl_F77='-Wl,'
13972 lt_prog_compiler_pic_F77='-KPIC'
13973 lt_prog_compiler_static_F77='-static'
13975 pgcc* | pgf77* | pgf90* | pgf95*)
13976 # Portland Group compilers (*not* the Pentium gcc compiler,
13977 # which looks to be a dead project)
13978 lt_prog_compiler_wl_F77='-Wl,'
13979 lt_prog_compiler_pic_F77='-fpic'
13980 lt_prog_compiler_static_F77='-Bstatic'
13983 lt_prog_compiler_wl_F77='-Wl,'
13984 # All Alpha code is PIC.
13985 lt_prog_compiler_static_F77='-non_shared'
13988 case `$CC -V 2>&1 | sed 5q` in
13991 lt_prog_compiler_pic_F77='-KPIC'
13992 lt_prog_compiler_static_F77='-Bstatic'
13993 lt_prog_compiler_wl_F77='-Wl,'
13996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13997 lt_prog_compiler_pic_F77='-KPIC'
13998 lt_prog_compiler_static_F77='-Bstatic'
13999 lt_prog_compiler_wl_F77=''
14006 osf3* | osf4* | osf5*)
14007 lt_prog_compiler_wl_F77='-Wl,'
14008 # All OSF/1 code is PIC.
14009 lt_prog_compiler_static_F77='-non_shared'
14013 lt_prog_compiler_static_F77='-non_shared'
14017 lt_prog_compiler_pic_F77='-KPIC'
14018 lt_prog_compiler_static_F77='-Bstatic'
14019 case $cc_basename in
14020 f77* | f90* | f95*)
14021 lt_prog_compiler_wl_F77='-Qoption ld ';;
14023 lt_prog_compiler_wl_F77='-Wl,';;
14028 lt_prog_compiler_wl_F77='-Qoption ld '
14029 lt_prog_compiler_pic_F77='-PIC'
14030 lt_prog_compiler_static_F77='-Bstatic'
14033 sysv4 | sysv4.2uw2* | sysv4.3*)
14034 lt_prog_compiler_wl_F77='-Wl,'
14035 lt_prog_compiler_pic_F77='-KPIC'
14036 lt_prog_compiler_static_F77='-Bstatic'
14040 if test -d /usr/nec ;then
14041 lt_prog_compiler_pic_F77='-Kconform_pic'
14042 lt_prog_compiler_static_F77='-Bstatic'
14046 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14047 lt_prog_compiler_wl_F77='-Wl,'
14048 lt_prog_compiler_pic_F77='-KPIC'
14049 lt_prog_compiler_static_F77='-Bstatic'
14053 lt_prog_compiler_wl_F77='-Wl,'
14054 lt_prog_compiler_can_build_shared_F77=no
14058 lt_prog_compiler_pic_F77='-pic'
14059 lt_prog_compiler_static_F77='-Bstatic'
14063 lt_prog_compiler_can_build_shared_F77=no
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14069 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14072 # Check to make sure the PIC flag actually works.
14074 if test -n "$lt_prog_compiler_pic_F77"; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14077 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14078 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14079 $as_echo_n "(cached) " >&6
14081 lt_cv_prog_compiler_pic_works_F77=no
14082 ac_outfile=conftest.$ac_objext
14083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14084 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14085 # Insert the option either (1) after the last *FLAGS variable, or
14086 # (2) before a word containing "conftest.", or (3) at the end.
14087 # Note that $ac_compile itself does not contain backslashes and begins
14088 # with a dollar sign (not a hyphen), so the echo should work correctly.
14089 # The option is referenced via a variable to avoid confusing sed.
14090 lt_compile=`echo "$ac_compile" | $SED \
14091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14093 -e 's:$: $lt_compiler_flag:'`
14094 (eval echo "\"\$as_me:14094: $lt_compile\"" >&5)
14095 (eval "$lt_compile" 2>conftest.err)
14097 cat conftest.err >&5
14098 echo "$as_me:14098: \$? = $ac_status" >&5
14099 if (exit $ac_status) && test -s "$ac_outfile"; then
14100 # The compiler can only warn and ignore the option if not recognized
14101 # So say no if there are warnings other than the usual output.
14102 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14104 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14105 lt_cv_prog_compiler_pic_works_F77=yes
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14112 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14114 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14115 case $lt_prog_compiler_pic_F77 in
14117 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14120 lt_prog_compiler_pic_F77=
14121 lt_prog_compiler_can_build_shared_F77=no
14126 # For platforms which do not support PIC, -DPIC is meaningless:
14128 lt_prog_compiler_pic_F77=
14131 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14136 # Check to make sure the static flag actually works.
14138 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14140 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14141 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14142 $as_echo_n "(cached) " >&6
14144 lt_cv_prog_compiler_static_works_F77=no
14145 save_LDFLAGS="$LDFLAGS"
14146 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14147 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14149 # The linker can only warn and ignore the option if not recognized
14150 # So say no if there are warnings
14151 if test -s conftest.err; then
14152 # Append any errors to the config.log.
14153 cat conftest.err 1>&5
14154 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14156 if diff conftest.exp conftest.er2 >/dev/null; then
14157 lt_cv_prog_compiler_static_works_F77=yes
14160 lt_cv_prog_compiler_static_works_F77=yes
14164 LDFLAGS="$save_LDFLAGS"
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14168 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14170 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14173 lt_prog_compiler_static_F77=
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14178 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14179 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14180 $as_echo_n "(cached) " >&6
14182 lt_cv_prog_compiler_c_o_F77=no
14183 $rm -r conftest 2>/dev/null
14187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14189 lt_compiler_flag="-o out/conftest2.$ac_objext"
14190 # Insert the option either (1) after the last *FLAGS variable, or
14191 # (2) before a word containing "conftest.", or (3) at the end.
14192 # Note that $ac_compile itself does not contain backslashes and begins
14193 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
14201 cat out/conftest.err >&5
14202 echo "$as_me:14202: \$? = $ac_status" >&5
14203 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14205 # The compiler can only warn and ignore the option if not recognized
14206 # So say no if there are warnings
14207 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14208 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14209 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14210 lt_cv_prog_compiler_c_o_F77=yes
14215 # SGI C++ compiler will create directory out/ii_files/ for
14216 # template instantiation
14217 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14218 $rm out/* && rmdir out
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14225 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14228 hard_links="nottested"
14229 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14230 # do not overwrite the value of need_locks provided by the user
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14232 $as_echo_n "checking if we can lock with hard links... " >&6; }
14235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14237 ln conftest.a conftest.b 2>&5 || hard_links=no
14238 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14240 $as_echo "$hard_links" >&6; }
14241 if test "$hard_links" = no; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14243 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14251 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14254 allow_undefined_flag_F77=
14255 enable_shared_with_static_runtimes_F77=no
14257 archive_expsym_cmds_F77=
14258 old_archive_From_new_cmds_F77=
14259 old_archive_from_expsyms_cmds_F77=
14260 export_dynamic_flag_spec_F77=
14261 whole_archive_flag_spec_F77=
14262 thread_safe_flag_spec_F77=
14263 hardcode_libdir_flag_spec_F77=
14264 hardcode_libdir_flag_spec_ld_F77=
14265 hardcode_libdir_separator_F77=
14266 hardcode_direct_F77=no
14267 hardcode_minus_L_F77=no
14268 hardcode_shlibpath_var_F77=unsupported
14269 link_all_deplibs_F77=unknown
14270 hardcode_automatic_F77=no
14272 module_expsym_cmds_F77=
14273 always_export_symbols_F77=no
14274 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14275 # include_expsyms should be a list of space-separated symbols to be *always*
14276 # included in the symbol list
14277 include_expsyms_F77=
14278 # exclude_expsyms can be an extended regexp of symbols to exclude
14279 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14280 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14281 # as well as any symbol that contains `d'.
14282 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14283 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14284 # platforms (ab)use it in PIC code, but their linkers get confused if
14285 # the symbol is explicitly referenced. Since portable code cannot
14286 # rely on this symbol name, it's probably fine to never include it in
14287 # preloaded symbol tables.
14288 # Exclude shared library initialization/finalization symbols.
14289 extract_expsyms_cmds=
14290 # Just being paranoid about ensuring that cc_basename is set.
14291 for cc_temp in $compiler""; do
14293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14299 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14302 cygwin* | mingw* | pw32*)
14303 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14304 # When not using gcc, we currently assume that we are using
14305 # Microsoft Visual C++.
14306 if test "$GCC" != yes; then
14311 # we just hope/assume this is gcc and not c89 (= MSVC++)
14320 if test "$with_gnu_ld" = yes; then
14321 # If archive_cmds runs LD, not CC, wlarc should be empty
14324 # Set some defaults for GNU ld with shared library support. These
14325 # are reset later if shared libraries are not supported. Putting them
14326 # here allows them to be overridden if necessary.
14327 runpath_var=LD_RUN_PATH
14328 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14329 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14330 # ancient GNU ld didn't support --whole-archive et. al.
14331 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14332 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14334 whole_archive_flag_spec_F77=
14336 supports_anon_versioning=no
14337 case `$LD -v 2>/dev/null` in
14338 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14339 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14340 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14341 *\ 2.11.*) ;; # other 2.11 versions
14342 *) supports_anon_versioning=yes ;;
14345 # See if GNU ld supports shared libraries.
14348 # On AIX/PPC, the GNU linker is very broken
14349 if test "$host_cpu" != ia64; then
14353 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14354 *** to be unable to reliably create shared libraries on AIX.
14355 *** Therefore, libtool is disabling shared libraries support. If you
14356 *** really care for shared libraries, you may want to modify your PATH
14357 *** so that a non-GNU linker is found, and then restart.
14364 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)'
14365 hardcode_libdir_flag_spec_F77='-L$libdir'
14366 hardcode_minus_L_F77=yes
14368 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14369 # that the semantics of dynamic libraries on AmigaOS, at least up
14370 # to version 4, is to share data among multiple programs linked
14371 # with the same dynamic library. Since this doesn't match the
14372 # behavior of shared libraries on other platforms, we can't use
14378 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14379 allow_undefined_flag_F77=unsupported
14380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14381 # support --undefined. This deserves some investigation. FIXME
14382 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14388 cygwin* | mingw* | pw32*)
14389 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14390 # as there is no search path for DLLs.
14391 hardcode_libdir_flag_spec_F77='-L$libdir'
14392 allow_undefined_flag_F77=unsupported
14393 always_export_symbols_F77=no
14394 enable_shared_with_static_runtimes_F77=yes
14395 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14397 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14398 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14399 # If the export-symbols file already is a .def file (1st line
14400 # is EXPORTS), use it as is; otherwise, prepend...
14401 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14402 cp $export_symbols $output_objdir/$soname.def;
14404 echo EXPORTS > $output_objdir/$soname.def;
14405 cat $export_symbols >> $output_objdir/$soname.def;
14407 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14414 hardcode_direct_F77=no
14415 hardcode_shlibpath_var_F77=no
14416 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14417 export_dynamic_flag_spec_F77='${wl}-E'
14418 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14419 # Instead, shared libraries are loaded at an image base (0x10000000 by
14420 # default) and relocated if they conflict, which is a slow very memory
14421 # consuming and fragmenting process. To avoid this, we pick a random,
14422 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14423 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14424 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'
14425 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'
14428 gnu* | linux* | k*bsd*-gnu)
14429 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14431 case $cc_basename,$host_cpu in
14432 pgcc*) # Portland Group C compiler
14433 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'
14434 tmp_addflag=' $pic_flag'
14436 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14437 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'
14438 tmp_addflag=' $pic_flag -Mnomain' ;;
14439 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14440 tmp_addflag=' -i_dynamic' ;;
14441 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14442 tmp_addflag=' -i_dynamic -nofor_main' ;;
14443 ifc* | ifort*) # Intel Fortran compiler
14444 tmp_addflag=' -nofor_main' ;;
14446 case `$CC -V 2>&1 | sed 5q` in
14447 *Sun\ C*) # Sun C 5.9
14448 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'
14449 tmp_sharedflag='-G' ;;
14450 *Sun\ F*) # Sun Fortran 8.3
14451 tmp_sharedflag='-G' ;;
14453 tmp_sharedflag='-shared' ;;
14455 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14457 if test $supports_anon_versioning = yes; then
14458 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14459 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14460 $echo "local: *; };" >> $output_objdir/$libname.ver~
14461 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14463 link_all_deplibs_F77=no
14469 netbsd* | netbsdelf*-gnu)
14470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14471 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14474 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14475 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14480 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14484 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14485 *** create shared libraries on Solaris systems. Therefore, libtool
14486 *** is disabling shared libraries support. We urge you to upgrade GNU
14487 *** binutils to release 2.9.1 or newer. Another option is to modify
14488 *** your PATH or compiler configuration so that the native linker is
14489 *** used, and then restart.
14492 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14493 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14494 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14501 case `$LD -v 2>&1` in
14502 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14506 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14507 *** reliably create shared libraries on SCO systems. Therefore, libtool
14508 *** is disabling shared libraries support. We urge you to upgrade GNU
14509 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14510 *** your PATH or compiler configuration so that the native linker is
14511 *** used, and then restart.
14516 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14517 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14518 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14519 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14528 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14530 hardcode_direct_F77=yes
14531 hardcode_shlibpath_var_F77=no
14535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14536 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14537 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14544 if test "$ld_shlibs_F77" = no; then
14546 hardcode_libdir_flag_spec_F77=
14547 export_dynamic_flag_spec_F77=
14548 whole_archive_flag_spec_F77=
14551 # PORTME fill in a description of your system's linker (not GNU ld)
14554 allow_undefined_flag_F77=unsupported
14555 always_export_symbols_F77=yes
14556 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'
14557 # Note: this linker hardcodes the directories in LIBPATH if there
14558 # are no directories specified by -L.
14559 hardcode_minus_L_F77=yes
14560 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14561 # Neither direct hardcoding nor static linking is supported with a
14563 hardcode_direct_F77=unsupported
14568 if test "$host_cpu" = ia64; then
14569 # On IA64, the linker does run time linking by default, so we don't
14570 # have to do anything special.
14571 aix_use_runtimelinking=no
14572 exp_sym_flag='-Bexport'
14575 # If we're using GNU nm, then we don't want the "-C" option.
14576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14577 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14578 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'
14580 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'
14582 aix_use_runtimelinking=no
14584 # Test if we are trying to use run time linking or normal
14585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14586 # need to do runtime linking.
14587 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14588 for ld_flag in $LDFLAGS; do
14589 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14590 aix_use_runtimelinking=yes
14597 exp_sym_flag='-bexport'
14598 no_entry_flag='-bnoentry'
14601 # When large executables or shared objects are built, AIX ld can
14602 # have problems creating the table of contents. If linking a library
14603 # or program results in "error TOC overflow" add -mminimal-toc to
14604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14607 archive_cmds_F77=''
14608 hardcode_direct_F77=yes
14609 hardcode_libdir_separator_F77=':'
14610 link_all_deplibs_F77=yes
14612 if test "$GCC" = yes; then
14613 case $host_os in aix4.[012]|aix4.[012].*)
14614 # We only want to do this on AIX 4.2 and lower, the check
14615 # below for broken collect2 doesn't work under 4.3+
14616 collect2name=`${CC} -print-prog-name=collect2`
14617 if test -f "$collect2name" && \
14618 strings "$collect2name" | grep resolve_lib_name >/dev/null
14620 # We have reworked collect2
14623 # We have old collect2
14624 hardcode_direct_F77=unsupported
14625 # It fails to find uninstalled libraries when the uninstalled
14626 # path is not listed in the libpath. Setting hardcode_minus_L
14627 # to unsupported forces relinking
14628 hardcode_minus_L_F77=yes
14629 hardcode_libdir_flag_spec_F77='-L$libdir'
14630 hardcode_libdir_separator_F77=
14634 shared_flag='-shared'
14635 if test "$aix_use_runtimelinking" = yes; then
14636 shared_flag="$shared_flag "'${wl}-G'
14640 if test "$host_cpu" = ia64; then
14641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14642 # chokes on -Wl,-G. The following line is correct:
14645 if test "$aix_use_runtimelinking" = yes; then
14646 shared_flag='${wl}-G'
14648 shared_flag='${wl}-bM:SRE'
14653 # It seems that -bexpall does not export symbols beginning with
14654 # underscore (_), so it is better to generate a list of symbols to export.
14655 always_export_symbols_F77=yes
14656 if test "$aix_use_runtimelinking" = yes; then
14657 # Warning - without using the other runtime loading flags (-brtl),
14658 # -berok will link without error, but may produce a broken library.
14659 allow_undefined_flag_F77='-berok'
14660 # Determine the default libpath from the value encoded in an empty executable.
14661 cat > conftest.$ac_ext <<_ACEOF
14666 if ac_fn_f77_try_link "$LINENO"; then :
14668 lt_aix_libpath_sed='
14669 /Import File Strings/,/^$/ {
14675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14676 # Check for a 64-bit object if we didn't find anything.
14677 if test -z "$aix_libpath"; then
14678 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14681 rm -f core conftest.err conftest.$ac_objext \
14682 conftest$ac_exeext conftest.$ac_ext
14683 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14685 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14686 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"
14688 if test "$host_cpu" = ia64; then
14689 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14690 allow_undefined_flag_F77="-z nodefs"
14691 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"
14693 # Determine the default libpath from the value encoded in an empty executable.
14694 cat > conftest.$ac_ext <<_ACEOF
14699 if ac_fn_f77_try_link "$LINENO"; then :
14701 lt_aix_libpath_sed='
14702 /Import File Strings/,/^$/ {
14708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14709 # Check for a 64-bit object if we didn't find anything.
14710 if test -z "$aix_libpath"; then
14711 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14714 rm -f core conftest.err conftest.$ac_objext \
14715 conftest$ac_exeext conftest.$ac_ext
14716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14718 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14719 # Warning - without using the other run time loading flags,
14720 # -berok will link without error, but may produce a broken library.
14721 no_undefined_flag_F77=' ${wl}-bernotok'
14722 allow_undefined_flag_F77=' ${wl}-berok'
14723 # Exported symbols can be pulled into shared objects from archives
14724 whole_archive_flag_spec_F77='$convenience'
14725 archive_cmds_need_lc_F77=yes
14726 # This is similar to how AIX traditionally builds its shared libraries.
14727 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'
14733 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)'
14734 hardcode_libdir_flag_spec_F77='-L$libdir'
14735 hardcode_minus_L_F77=yes
14736 # see comment about different semantics on the GNU ld section
14741 export_dynamic_flag_spec_F77=-rdynamic
14744 cygwin* | mingw* | pw32*)
14745 # When not using gcc, we currently assume that we are using
14746 # Microsoft Visual C++.
14747 # hardcode_libdir_flag_spec is actually meaningless, as there is
14748 # no search path for DLLs.
14749 hardcode_libdir_flag_spec_F77=' '
14750 allow_undefined_flag_F77=unsupported
14751 # Tell ltmain to make .lib files, not .a files.
14753 # Tell ltmain to make .dll files, not .so files.
14755 # FIXME: Setting linknames here is a bad hack.
14756 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14757 # The linker will automatically build a .lib file if we build a DLL.
14758 old_archive_From_new_cmds_F77='true'
14759 # FIXME: Should let the user specify the lib program.
14760 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14761 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14762 enable_shared_with_static_runtimes_F77=yes
14765 darwin* | rhapsody*)
14767 rhapsody* | darwin1.[012])
14768 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14771 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14772 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14774 case ${MACOSX_DEPLOYMENT_TARGET} in
14776 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14779 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14785 archive_cmds_need_lc_F77=no
14786 hardcode_direct_F77=no
14787 hardcode_automatic_F77=yes
14788 hardcode_shlibpath_var_F77=unsupported
14789 whole_archive_flag_spec_F77=''
14790 link_all_deplibs_F77=yes
14791 if test "$GCC" = yes ; then
14792 output_verbose_link_cmd='echo'
14793 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}"
14794 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14795 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}"
14796 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}"
14798 case $cc_basename in
14800 output_verbose_link_cmd='echo'
14801 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14802 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14804 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}'
14805 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}'
14815 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14816 hardcode_libdir_flag_spec_F77='-L$libdir'
14817 hardcode_shlibpath_var_F77=no
14824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14825 # support. Future versions do this automatically, but an explicit c++rt0.o
14826 # does not break anything, and helps significantly (at the cost of a little
14829 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14830 hardcode_libdir_flag_spec_F77='-R$libdir'
14831 hardcode_direct_F77=yes
14832 hardcode_shlibpath_var_F77=no
14835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14837 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14838 hardcode_direct_F77=yes
14839 hardcode_minus_L_F77=yes
14840 hardcode_shlibpath_var_F77=no
14843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14844 freebsd* | dragonfly*)
14845 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14846 hardcode_libdir_flag_spec_F77='-R$libdir'
14847 hardcode_direct_F77=yes
14848 hardcode_shlibpath_var_F77=no
14852 if test "$GCC" = yes; then
14853 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'
14855 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'
14857 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14858 hardcode_libdir_separator_F77=:
14859 hardcode_direct_F77=yes
14861 # hardcode_minus_L: Not really in the search PATH,
14862 # but as the default location of the library.
14863 hardcode_minus_L_F77=yes
14864 export_dynamic_flag_spec_F77='${wl}-E'
14868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14869 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14871 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14873 if test "$with_gnu_ld" = no; then
14874 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14875 hardcode_libdir_separator_F77=:
14877 hardcode_direct_F77=yes
14878 export_dynamic_flag_spec_F77='${wl}-E'
14880 # hardcode_minus_L: Not really in the search PATH,
14881 # but as the default location of the library.
14882 hardcode_minus_L_F77=yes
14887 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14890 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14893 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14896 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14902 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14905 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14908 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14912 if test "$with_gnu_ld" = no; then
14913 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14914 hardcode_libdir_separator_F77=:
14918 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14919 hardcode_direct_F77=no
14920 hardcode_shlibpath_var_F77=no
14923 hardcode_direct_F77=yes
14924 export_dynamic_flag_spec_F77='${wl}-E'
14926 # hardcode_minus_L: Not really in the search PATH,
14927 # but as the default location of the library.
14928 hardcode_minus_L_F77=yes
14934 irix5* | irix6* | nonstopux*)
14935 if test "$GCC" = yes; then
14936 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'
14938 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'
14939 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14941 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14942 hardcode_libdir_separator_F77=:
14943 link_all_deplibs_F77=yes
14946 netbsd* | netbsdelf*-gnu)
14947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14948 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14950 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14952 hardcode_libdir_flag_spec_F77='-R$libdir'
14953 hardcode_direct_F77=yes
14954 hardcode_shlibpath_var_F77=no
14958 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14959 hardcode_direct_F77=yes
14960 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14961 hardcode_libdir_separator_F77=:
14962 hardcode_shlibpath_var_F77=no
14966 if test -f /usr/libexec/ld.so; then
14967 hardcode_direct_F77=yes
14968 hardcode_shlibpath_var_F77=no
14969 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14970 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14971 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14972 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14973 export_dynamic_flag_spec_F77='${wl}-E'
14976 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14977 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14978 hardcode_libdir_flag_spec_F77='-R$libdir'
14981 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14982 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14992 hardcode_libdir_flag_spec_F77='-L$libdir'
14993 hardcode_minus_L_F77=yes
14994 allow_undefined_flag_F77=unsupported
14995 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'
14996 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15000 if test "$GCC" = yes; then
15001 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15002 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'
15004 allow_undefined_flag_F77=' -expect_unresolved \*'
15005 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'
15007 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15008 hardcode_libdir_separator_F77=:
15011 osf4* | osf5*) # as osf3* with the addition of -msym flag
15012 if test "$GCC" = yes; then
15013 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15014 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'
15015 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15017 allow_undefined_flag_F77=' -expect_unresolved \*'
15018 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'
15019 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~
15020 $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'
15022 # Both c and cxx compiler support -rpath directly
15023 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15025 hardcode_libdir_separator_F77=:
15029 no_undefined_flag_F77=' -z text'
15030 if test "$GCC" = yes; then
15032 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15033 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15034 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15037 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15038 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15039 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15041 hardcode_libdir_flag_spec_F77='-R$libdir'
15042 hardcode_shlibpath_var_F77=no
15044 solaris2.[0-5] | solaris2.[0-5].*) ;;
15046 # The compiler driver will combine and reorder linker options,
15047 # but understands `-z linker_flag'. GCC discards it without `$wl',
15048 # but is careful enough not to reorder.
15049 # Supported since Solaris 2.6 (maybe 2.5.1?)
15050 if test "$GCC" = yes; then
15051 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15053 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15057 link_all_deplibs_F77=yes
15061 if test "x$host_vendor" = xsequent; then
15062 # Use $CC to link under sequent, because it throws in some extra .o
15063 # files that make .init and .fini sections work.
15064 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15066 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15068 hardcode_libdir_flag_spec_F77='-L$libdir'
15069 hardcode_direct_F77=yes
15070 hardcode_minus_L_F77=yes
15071 hardcode_shlibpath_var_F77=no
15075 case $host_vendor in
15077 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15078 hardcode_direct_F77=yes # is this really true???
15081 ## LD is ld it makes a PLAMLIB
15082 ## CC just makes a GrossModule.
15083 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15084 reload_cmds_F77='$CC -r -o $output$reload_objs'
15085 hardcode_direct_F77=no
15088 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15089 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15092 runpath_var='LD_RUN_PATH'
15093 hardcode_shlibpath_var_F77=no
15097 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15098 hardcode_shlibpath_var_F77=no
15099 export_dynamic_flag_spec_F77='-Bexport'
15103 if test -d /usr/nec; then
15104 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15105 hardcode_shlibpath_var_F77=no
15106 runpath_var=LD_RUN_PATH
15107 hardcode_runpath_var=yes
15112 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15113 no_undefined_flag_F77='${wl}-z,text'
15114 archive_cmds_need_lc_F77=no
15115 hardcode_shlibpath_var_F77=no
15116 runpath_var='LD_RUN_PATH'
15118 if test "$GCC" = yes; then
15119 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15120 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15122 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15123 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15127 sysv5* | sco3.2v5* | sco5v6*)
15128 # Note: We can NOT use -z defs as we might desire, because we do not
15129 # link with -lc, and that would cause any symbols used from libc to
15130 # always be unresolved, which means just about no library would
15131 # ever link correctly. If we're not using GNU ld we use -z text
15132 # though, which does catch some bad symbols but isn't as heavy-handed
15134 no_undefined_flag_F77='${wl}-z,text'
15135 allow_undefined_flag_F77='${wl}-z,nodefs'
15136 archive_cmds_need_lc_F77=no
15137 hardcode_shlibpath_var_F77=no
15138 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15139 hardcode_libdir_separator_F77=':'
15140 link_all_deplibs_F77=yes
15141 export_dynamic_flag_spec_F77='${wl}-Bexport'
15142 runpath_var='LD_RUN_PATH'
15144 if test "$GCC" = yes; then
15145 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15146 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15148 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15149 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15154 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15155 hardcode_libdir_flag_spec_F77='-L$libdir'
15156 hardcode_shlibpath_var_F77=no
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15166 $as_echo "$ld_shlibs_F77" >&6; }
15167 test "$ld_shlibs_F77" = no && can_build_shared=no
15170 # Do we need to explicitly link libc?
15172 case "x$archive_cmds_need_lc_F77" in
15174 # Assume -lc should be added
15175 archive_cmds_need_lc_F77=yes
15177 if test "$enable_shared" = yes && test "$GCC" = yes; then
15178 case $archive_cmds_F77 in
15180 # FIXME: we may have to deal with multi-command sequences.
15183 # Test whether the compiler implicitly links with -lc since on some
15184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15185 # to ld, don't add -lc before -lgcc.
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15192 (eval $ac_compile) 2>&5
15194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15195 test $ac_status = 0; } 2>conftest.err; then
15198 libobjs=conftest.$ac_objext
15200 wl=$lt_prog_compiler_wl_F77
15201 pic_flag=$lt_prog_compiler_pic_F77
15207 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15208 allow_undefined_flag_F77=
15209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15210 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15213 test $ac_status = 0; }
15215 archive_cmds_need_lc_F77=no
15217 archive_cmds_need_lc_F77=yes
15219 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15221 cat conftest.err 1>&5
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15225 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15233 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15234 library_names_spec=
15235 libname_spec='lib$name'
15239 postuninstall_cmds=
15243 shlibpath_overrides_runpath=unknown
15245 dynamic_linker="$host_os ld.so"
15246 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15248 need_lib_prefix=unknown
15249 hardcode_into_libs=no
15251 # when you set need_version to no, make sure it does not cause -set_version
15252 # flags to be left without arguments
15253 need_version=unknown
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15259 shlibpath_var=LIBPATH
15261 # AIX 3 has no versioning support, so we append a major version to the name.
15262 soname_spec='${libname}${release}${shared_ext}$major'
15269 hardcode_into_libs=yes
15270 if test "$host_cpu" = ia64; then
15271 # AIX 5 supports IA64
15272 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15273 shlibpath_var=LD_LIBRARY_PATH
15275 # With GCC up to 2.95.x, collect2 would create an import file
15276 # for dependence libraries. The import file would start with
15277 # the line `#! .'. This would cause the generated library to
15278 # depend on `.', always an invalid library. This was fixed in
15279 # development snapshots of GCC prior to 3.0.
15281 aix4 | aix4.[01] | aix4.[01].*)
15282 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15284 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15287 can_build_shared=no
15291 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15292 # soname into executable. Probably we can add versioning support to
15293 # collect2, so additional links can be useful in future.
15294 if test "$aix_use_runtimelinking" = yes; then
15295 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15296 # instead of lib<name>.a to let people know that these are not
15297 # typical AIX shared libraries.
15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300 # We preserve .a as extension for shared libraries through AIX4.2
15301 # and later when we are not doing run time linking.
15302 library_names_spec='${libname}${release}.a $libname.a'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15305 shlibpath_var=LIBPATH
15310 library_names_spec='$libname.ixlibrary $libname.a'
15311 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15312 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'
15316 library_names_spec='${libname}${shared_ext}'
15317 dynamic_linker="$host_os ld.so"
15318 shlibpath_var=LIBRARY_PATH
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15325 soname_spec='${libname}${release}${shared_ext}$major'
15326 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15329 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15330 # the default ld.so.conf also contains /usr/contrib/lib and
15331 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15332 # libtool to hard-code these into programs
15335 cygwin* | mingw* | pw32*)
15336 version_type=windows
15341 case $GCC,$host_os in
15342 yes,cygwin* | yes,mingw* | yes,pw32*)
15343 library_names_spec='$libname.dll.a'
15344 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15345 postinstall_cmds='base_file=`basename \${file}`~
15346 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15347 dldir=$destdir/`dirname \$dlpath`~
15348 test -d \$dldir || mkdir -p \$dldir~
15349 $install_prog $dir/$dlname \$dldir/$dlname~
15350 chmod a+x \$dldir/$dlname'
15351 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15352 dlpath=$dir/\$dldll~
15354 shlibpath_overrides_runpath=yes
15358 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15359 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15360 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15363 # MinGW DLLs use traditional 'lib' prefix
15364 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15365 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15366 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15367 # It is most probably a Windows format PATH printed by
15368 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15369 # path with ; separators, and with drive letters. We can handle the
15370 # drive letters (cygwin fileutils understands them), so leave them,
15371 # especially as we might pass files found there to a mingw objdump,
15372 # which wouldn't understand a cygwinified path. Ahh.
15373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15375 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15379 # pw32 DLLs use 'pw' prefix rather than 'lib'
15380 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15386 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15389 dynamic_linker='Win32 ld.exe'
15390 # FIXME: first we should search . and the directory the executable is in
15394 darwin* | rhapsody*)
15395 dynamic_linker="$host_os dyld"
15396 version_type=darwin
15399 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15400 soname_spec='${libname}${release}${major}$shared_ext'
15401 shlibpath_overrides_runpath=yes
15402 shlibpath_var=DYLD_LIBRARY_PATH
15403 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15405 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15413 soname_spec='${libname}${release}${shared_ext}$major'
15414 shlibpath_var=LD_LIBRARY_PATH
15421 freebsd* | dragonfly*)
15422 # DragonFly does not have aout. When/if they implement a new
15423 # versioning mechanism, adjust this.
15424 if test -x /usr/bin/objformat; then
15425 objformat=`/usr/bin/objformat`
15428 freebsd[123]*) objformat=aout ;;
15429 *) objformat=elf ;;
15432 version_type=freebsd-$objformat
15433 case $version_type in
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15444 shlibpath_var=LD_LIBRARY_PATH
15447 shlibpath_overrides_runpath=yes
15449 freebsd3.[01]* | freebsdelf3.[01]*)
15450 shlibpath_overrides_runpath=yes
15451 hardcode_into_libs=yes
15453 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15454 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15455 shlibpath_overrides_runpath=no
15456 hardcode_into_libs=yes
15458 *) # from 4.6 on, and DragonFly
15459 shlibpath_overrides_runpath=yes
15460 hardcode_into_libs=yes
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 shlibpath_var=LD_LIBRARY_PATH
15472 hardcode_into_libs=yes
15475 hpux9* | hpux10* | hpux11*)
15476 # Give a soname corresponding to the major version so that dld.sl refuses to
15477 # link against other versions.
15484 hardcode_into_libs=yes
15485 dynamic_linker="$host_os dld.so"
15486 shlibpath_var=LD_LIBRARY_PATH
15487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 if test "X$HPUX_IA64_MODE" = X32; then
15491 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15493 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15499 hardcode_into_libs=yes
15500 dynamic_linker="$host_os dld.sl"
15501 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15510 dynamic_linker="$host_os dld.sl"
15511 shlibpath_var=SHLIB_PATH
15512 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15514 soname_spec='${libname}${release}${shared_ext}$major'
15517 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15518 postinstall_cmds='chmod 555 $lib'
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=no
15530 hardcode_into_libs=yes
15533 irix5* | irix6* | nonstopux*)
15535 nonstopux*) version_type=nonstopux ;;
15537 if test "$lt_cv_prog_gnu_ld" = yes; then
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15548 irix5* | nonstopux*)
15549 libsuff= shlibsuff=
15552 case $LD in # libtool.m4 will add one of these switches to LD
15553 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15554 libsuff= shlibsuff= libmagic=32-bit;;
15555 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15556 libsuff=32 shlibsuff=N32 libmagic=N32;;
15557 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15558 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15559 *) libsuff= shlibsuff= libmagic=never-match;;
15563 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15564 shlibpath_overrides_runpath=no
15565 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15566 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15567 hardcode_into_libs=yes
15570 # No shared lib support for Linux oldld, aout, or coff.
15571 linux*oldld* | linux*aout* | linux*coff*)
15575 # This must be Linux ELF.
15576 linux* | k*bsd*-gnu)
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15581 soname_spec='${libname}${release}${shared_ext}$major'
15582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=no
15585 # This implies no fast_install, which is unacceptable.
15586 # Some rework will be needed to allow for fast_install
15587 # before this can be enabled.
15588 hardcode_into_libs=yes
15590 # Append ld.so.conf contents to the search path
15591 if test -f /etc/ld.so.conf; then
15592 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' ' '`
15593 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15596 # We used to test for /lib/ld.so.1 and disable shared libraries on
15597 # powerpc, because MkLinux only supported shared libraries with the
15598 # GNU dynamic linker. Since this was broken with cross compilers,
15599 # most powerpc-linux boxes support dynamic linking these days and
15600 # people can always --disable-shared, the test was removed, and we
15601 # assume the GNU/Linux dynamic linker is in use.
15602 dynamic_linker='GNU/Linux ld.so'
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15610 soname_spec='${libname}${release}${shared_ext}$major'
15611 shlibpath_var=LD_LIBRARY_PATH
15612 shlibpath_overrides_runpath=no
15613 hardcode_into_libs=yes
15614 dynamic_linker='NetBSD ld.elf_so'
15621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15624 dynamic_linker='NetBSD (a.out) ld.so'
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 dynamic_linker='NetBSD ld.elf_so'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 shlibpath_overrides_runpath=yes
15632 hardcode_into_libs=yes
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 shlibpath_overrides_runpath=yes
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 shlibpath_overrides_runpath=yes
15654 sys_lib_dlsearch_path_spec="/usr/lib"
15656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15659 *) need_version=no ;;
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15663 shlibpath_var=LD_LIBRARY_PATH
15664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15666 openbsd2.[89] | openbsd2.[89].*)
15667 shlibpath_overrides_runpath=no
15670 shlibpath_overrides_runpath=yes
15674 shlibpath_overrides_runpath=yes
15679 libname_spec='$name'
15682 library_names_spec='$libname${shared_ext} $libname.a'
15683 dynamic_linker='OS/2 ld.exe'
15684 shlibpath_var=LIBPATH
15687 osf3* | osf4* | osf5*)
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707 soname_spec='${libname}${release}${shared_ext}$major'
15708 shlibpath_var=LD_LIBRARY_PATH
15709 shlibpath_overrides_runpath=yes
15710 hardcode_into_libs=yes
15711 # ldd complains unless libraries are executable
15712 postinstall_cmds='chmod +x $lib'
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15719 shlibpath_var=LD_LIBRARY_PATH
15720 shlibpath_overrides_runpath=yes
15721 if test "$with_gnu_ld" = yes; then
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730 soname_spec='${libname}${release}${shared_ext}$major'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 case $host_vendor in
15734 shlibpath_overrides_runpath=no
15736 export_dynamic_flag_spec='${wl}-Blargedynsym'
15737 runpath_var=LD_RUN_PATH
15745 shlibpath_overrides_runpath=no
15746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15752 if test -d /usr/nec ;then
15754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15755 soname_spec='$libname${shared_ext}.$major'
15756 shlibpath_var=LD_LIBRARY_PATH
15760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15761 version_type=freebsd-elf
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15765 soname_spec='${libname}${release}${shared_ext}$major'
15766 shlibpath_var=LD_LIBRARY_PATH
15767 hardcode_into_libs=yes
15768 if test "$with_gnu_ld" = yes; then
15769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15770 shlibpath_overrides_runpath=no
15772 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15773 shlibpath_overrides_runpath=yes
15776 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15780 sys_lib_dlsearch_path_spec='/usr/lib'
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786 soname_spec='${libname}${release}${shared_ext}$major'
15787 shlibpath_var=LD_LIBRARY_PATH
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15795 $as_echo "$dynamic_linker" >&6; }
15796 test "$dynamic_linker" = no && can_build_shared=no
15798 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15799 $as_echo_n "(cached) " >&6
15801 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15804 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15805 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15806 $as_echo_n "(cached) " >&6
15808 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15811 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15813 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15814 if test "$GCC" = yes; then
15815 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15819 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15820 hardcode_action_F77=
15821 if test -n "$hardcode_libdir_flag_spec_F77" || \
15822 test -n "$runpath_var_F77" || \
15823 test "X$hardcode_automatic_F77" = "Xyes" ; then
15825 # We can hardcode non-existant directories.
15826 if test "$hardcode_direct_F77" != no &&
15827 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15828 # have to relink, otherwise we might link with an installed library
15829 # when we should be linking with a yet-to-be-installed one
15830 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15831 test "$hardcode_minus_L_F77" != no; then
15832 # Linking always hardcodes the temporary library directory.
15833 hardcode_action_F77=relink
15835 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15836 hardcode_action_F77=immediate
15839 # We cannot hardcode anything, or else we can only hardcode existing
15841 hardcode_action_F77=unsupported
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15844 $as_echo "$hardcode_action_F77" >&6; }
15846 if test "$hardcode_action_F77" = relink; then
15847 # Fast installation is not supported
15848 enable_fast_install=no
15849 elif test "$shlibpath_overrides_runpath" = yes ||
15850 test "$enable_shared" = no; then
15851 # Fast installation is not necessary
15852 enable_fast_install=needless
15856 # The else clause should only fire when bootstrapping the
15857 # libtool distribution, otherwise you forgot to ship ltmain.sh
15858 # with your package, and you will get complaints that there are
15859 # no rules to generate ltmain.sh.
15860 if test -f "$ltmain"; then
15861 # See if we are running on zsh, and set the options which allow our commands through
15862 # without removal of \ escapes.
15863 if test -n "${ZSH_VERSION+set}" ; then
15864 setopt NO_GLOB_SUBST
15866 # Now quote all the things that may contain metacharacters while being
15867 # careful not to overquote the AC_SUBSTed values. We take copies of the
15868 # variables and quote the copies for generation of the libtool script.
15869 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15871 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15872 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15873 deplibs_check_method reload_flag reload_cmds need_locks \
15874 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15875 lt_cv_sys_global_symbol_to_c_name_address \
15876 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15877 old_postinstall_cmds old_postuninstall_cmds \
15881 lt_prog_compiler_wl_F77 \
15882 lt_prog_compiler_pic_F77 \
15883 lt_prog_compiler_static_F77 \
15884 lt_prog_compiler_no_builtin_flag_F77 \
15885 export_dynamic_flag_spec_F77 \
15886 thread_safe_flag_spec_F77 \
15887 whole_archive_flag_spec_F77 \
15888 enable_shared_with_static_runtimes_F77 \
15889 old_archive_cmds_F77 \
15890 old_archive_from_new_cmds_F77 \
15891 predep_objects_F77 \
15892 postdep_objects_F77 \
15895 compiler_lib_search_path_F77 \
15896 compiler_lib_search_dirs_F77 \
15898 archive_expsym_cmds_F77 \
15899 postinstall_cmds_F77 \
15900 postuninstall_cmds_F77 \
15901 old_archive_from_expsyms_cmds_F77 \
15902 allow_undefined_flag_F77 \
15903 no_undefined_flag_F77 \
15904 export_symbols_cmds_F77 \
15905 hardcode_libdir_flag_spec_F77 \
15906 hardcode_libdir_flag_spec_ld_F77 \
15907 hardcode_libdir_separator_F77 \
15908 hardcode_automatic_F77 \
15910 module_expsym_cmds_F77 \
15911 lt_cv_prog_compiler_c_o_F77 \
15912 fix_srcfile_path_F77 \
15913 exclude_expsyms_F77 \
15914 include_expsyms_F77; do
15917 old_archive_cmds_F77 | \
15918 old_archive_from_new_cmds_F77 | \
15919 archive_cmds_F77 | \
15920 archive_expsym_cmds_F77 | \
15921 module_cmds_F77 | \
15922 module_expsym_cmds_F77 | \
15923 old_archive_from_expsyms_cmds_F77 | \
15924 export_symbols_cmds_F77 | \
15925 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15926 postinstall_cmds | postuninstall_cmds | \
15927 old_postinstall_cmds | old_postuninstall_cmds | \
15928 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15929 # Double-quote double-evaled strings.
15930 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15933 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15939 *'\$0 --fallback-echo"')
15940 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15946 cat <<__EOF__ >> "$cfgfile"
15947 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15949 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15951 # Shell to use when invoking shell scripts.
15954 # Whether or not to build shared libraries.
15955 build_libtool_libs=$enable_shared
15957 # Whether or not to build static libraries.
15958 build_old_libs=$enable_static
15960 # Whether or not to add -lc for building shared libraries.
15961 build_libtool_need_lc=$archive_cmds_need_lc_F77
15963 # Whether or not to disallow shared libs when runtime libs are static
15964 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15966 # Whether or not to optimize for fast installation.
15967 fast_install=$enable_fast_install
15970 host_alias=$host_alias
15974 # The build system.
15975 build_alias=$build_alias
15979 # An echo program that does not interpret backslashes.
15984 AR_FLAGS=$lt_AR_FLAGS
15989 # LTCC compiler flags.
15990 LTCFLAGS=$lt_LTCFLAGS
15992 # A language-specific compiler.
15993 CC=$lt_compiler_F77
15995 # Is the compiler the GNU C compiler?
16001 # The linker used to build libraries.
16004 # Whether we need hard or soft links.
16007 # A BSD-compatible nm program.
16010 # A symbol stripping program
16013 # Used to examine libraries when file_magic_cmd begins "file"
16014 MAGIC_CMD=$MAGIC_CMD
16016 # Used on cygwin: DLL creation program.
16019 # Used on cygwin: object dumper.
16022 # Used on cygwin: assembler.
16025 # The name of the directory that contains temporary libtool files.
16028 # How to create reloadable object files.
16029 reload_flag=$lt_reload_flag
16030 reload_cmds=$lt_reload_cmds
16032 # How to pass a linker flag through the compiler.
16033 wl=$lt_lt_prog_compiler_wl_F77
16035 # Object file suffix (normally "o").
16036 objext="$ac_objext"
16038 # Old archive suffix (normally "a").
16041 # Shared library suffix (normally ".so").
16042 shrext_cmds='$shrext_cmds'
16044 # Executable file suffix (normally "").
16047 # Additional compiler flags for building library objects.
16048 pic_flag=$lt_lt_prog_compiler_pic_F77
16051 # What is the maximum length of a command?
16052 max_cmd_len=$lt_cv_sys_max_cmd_len
16054 # Does compiler simultaneously support -c and -o options?
16055 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16057 # Must we lock files when doing compilation?
16058 need_locks=$lt_need_locks
16060 # Do we need the lib prefix for modules?
16061 need_lib_prefix=$need_lib_prefix
16063 # Do we need a version for libraries?
16064 need_version=$need_version
16066 # Whether dlopen is supported.
16067 dlopen_support=$enable_dlopen
16069 # Whether dlopen of programs is supported.
16070 dlopen_self=$enable_dlopen_self
16072 # Whether dlopen of statically linked programs is supported.
16073 dlopen_self_static=$enable_dlopen_self_static
16075 # Compiler flag to prevent dynamic linking.
16076 link_static_flag=$lt_lt_prog_compiler_static_F77
16078 # Compiler flag to turn off builtin functions.
16079 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16081 # Compiler flag to allow reflexive dlopens.
16082 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16084 # Compiler flag to generate shared objects directly from archives.
16085 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16087 # Compiler flag to generate thread-safe objects.
16088 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16090 # Library versioning type.
16091 version_type=$version_type
16093 # Format of library name prefix.
16094 libname_spec=$lt_libname_spec
16096 # List of archive names. First name is the real one, the rest are links.
16097 # The last name is the one that the linker finds with -lNAME.
16098 library_names_spec=$lt_library_names_spec
16100 # The coded name of the library, if different from the real name.
16101 soname_spec=$lt_soname_spec
16103 # Commands used to build and install an old-style archive.
16105 old_archive_cmds=$lt_old_archive_cmds_F77
16106 old_postinstall_cmds=$lt_old_postinstall_cmds
16107 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16109 # Create an old-style archive from a shared archive.
16110 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16112 # Create a temporary old-style archive to link instead of a shared archive.
16113 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16115 # Commands used to build and install a shared archive.
16116 archive_cmds=$lt_archive_cmds_F77
16117 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16118 postinstall_cmds=$lt_postinstall_cmds
16119 postuninstall_cmds=$lt_postuninstall_cmds
16121 # Commands used to build a loadable module (assumed same as above if empty)
16122 module_cmds=$lt_module_cmds_F77
16123 module_expsym_cmds=$lt_module_expsym_cmds_F77
16125 # Commands to strip libraries.
16126 old_striplib=$lt_old_striplib
16127 striplib=$lt_striplib
16129 # Dependencies to place before the objects being linked to create a
16131 predep_objects=$lt_predep_objects_F77
16133 # Dependencies to place after the objects being linked to create a
16135 postdep_objects=$lt_postdep_objects_F77
16137 # Dependencies to place before the objects being linked to create a
16139 predeps=$lt_predeps_F77
16141 # Dependencies to place after the objects being linked to create a
16143 postdeps=$lt_postdeps_F77
16145 # The directories searched by this compiler when creating a shared
16147 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16149 # The library search path used internally by the compiler when linking
16150 # a shared library.
16151 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16153 # Method to check whether dependent libraries are shared objects.
16154 deplibs_check_method=$lt_deplibs_check_method
16156 # Command to use when deplibs_check_method == file_magic.
16157 file_magic_cmd=$lt_file_magic_cmd
16159 # Flag that allows shared libraries with undefined symbols to be built.
16160 allow_undefined_flag=$lt_allow_undefined_flag_F77
16162 # Flag that forces no undefined symbols.
16163 no_undefined_flag=$lt_no_undefined_flag_F77
16165 # Commands used to finish a libtool library installation in a directory.
16166 finish_cmds=$lt_finish_cmds
16168 # Same as above, but a single script fragment to be evaled but not shown.
16169 finish_eval=$lt_finish_eval
16171 # Take the output of nm and produce a listing of raw symbols and C names.
16172 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16174 # Transform the output of nm in a proper C declaration
16175 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16177 # Transform the output of nm in a C name address pair
16178 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16180 # This is the shared library runtime path variable.
16181 runpath_var=$runpath_var
16183 # This is the shared library path variable.
16184 shlibpath_var=$shlibpath_var
16186 # Is shlibpath searched before the hard-coded library search path?
16187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16189 # How to hardcode a shared library path into an executable.
16190 hardcode_action=$hardcode_action_F77
16192 # Whether we should hardcode library paths into libraries.
16193 hardcode_into_libs=$hardcode_into_libs
16195 # Flag to hardcode \$libdir into a binary during linking.
16196 # This must work even if \$libdir does not exist.
16197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16199 # If ld is used when linking, flag to hardcode \$libdir into
16200 # a binary during linking. This must work even if \$libdir does
16202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16204 # Whether we need a single -rpath flag with a separated argument.
16205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16207 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16208 # resulting binary.
16209 hardcode_direct=$hardcode_direct_F77
16211 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16212 # resulting binary.
16213 hardcode_minus_L=$hardcode_minus_L_F77
16215 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16216 # the resulting binary.
16217 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16219 # Set to yes if building a shared library automatically hardcodes DIR into the library
16220 # and all subsequent libraries and executables linked against it.
16221 hardcode_automatic=$hardcode_automatic_F77
16223 # Variables whose values should be saved in libtool wrapper scripts and
16224 # restored at relink time.
16225 variables_saved_for_relink="$variables_saved_for_relink"
16227 # Whether libtool must link a program against all its dependency libraries.
16228 link_all_deplibs=$link_all_deplibs_F77
16230 # Compile-time system search path for libraries
16231 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16233 # Run-time system search path for libraries
16234 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16236 # Fix the shell variable \$srcfile for the compiler.
16237 fix_srcfile_path=$lt_fix_srcfile_path
16239 # Set to yes if exported symbols are required.
16240 always_export_symbols=$always_export_symbols_F77
16242 # The commands to list exported symbols.
16243 export_symbols_cmds=$lt_export_symbols_cmds_F77
16245 # The commands to extract the exported symbol list from a shared archive.
16246 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16248 # Symbols that should not be listed in the preloaded symbols.
16249 exclude_expsyms=$lt_exclude_expsyms_F77
16251 # Symbols that must always be exported.
16252 include_expsyms=$lt_include_expsyms_F77
16254 # ### END LIBTOOL TAG CONFIG: $tagname
16260 # If there is no Makefile yet, we rely on a make rule to execute
16261 # `config.status --recheck' to rerun these tests and create the
16262 # libtool script then.
16263 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16264 if test -f "$ltmain_in"; then
16265 test -f Makefile && make "$ltmain"
16271 ac_cpp='$CPP $CPPFLAGS'
16272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16284 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16287 # Source file extension for Java test sources.
16290 # Object file extension for compiled Java test sources.
16294 # Code to be used in simple compile tests
16295 lt_simple_compile_test_code="class foo {}"
16297 # Code to be used in simple link tests
16298 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16300 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16302 # If no C compiler was specified, use CC.
16305 # If no C compiler flags were specified, use CFLAGS.
16306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16308 # Allow CC to be a program name with arguments.
16312 # save warnings/boilerplate of simple test code
16313 ac_outfile=conftest.$ac_objext
16314 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16315 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16316 _lt_compiler_boilerplate=`cat conftest.err`
16319 ac_outfile=conftest.$ac_objext
16320 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16321 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16322 _lt_linker_boilerplate=`cat conftest.err`
16326 # Allow CC to be a program name with arguments.
16331 for cc_temp in $compiler""; do
16333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16339 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16342 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16343 archive_cmds_need_lc_GCJ=no
16345 old_archive_cmds_GCJ=$old_archive_cmds
16348 lt_prog_compiler_no_builtin_flag_GCJ=
16350 if test "$GCC" = yes; then
16351 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16355 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16356 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16357 $as_echo_n "(cached) " >&6
16359 lt_cv_prog_compiler_rtti_exceptions=no
16360 ac_outfile=conftest.$ac_objext
16361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16362 lt_compiler_flag="-fno-rtti -fno-exceptions"
16363 # Insert the option either (1) after the last *FLAGS variable, or
16364 # (2) before a word containing "conftest.", or (3) at the end.
16365 # Note that $ac_compile itself does not contain backslashes and begins
16366 # with a dollar sign (not a hyphen), so the echo should work correctly.
16367 # The option is referenced via a variable to avoid confusing sed.
16368 lt_compile=`echo "$ac_compile" | $SED \
16369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16371 -e 's:$: $lt_compiler_flag:'`
16372 (eval echo "\"\$as_me:16372: $lt_compile\"" >&5)
16373 (eval "$lt_compile" 2>conftest.err)
16375 cat conftest.err >&5
16376 echo "$as_me:16376: \$? = $ac_status" >&5
16377 if (exit $ac_status) && test -s "$ac_outfile"; then
16378 # The compiler can only warn and ignore the option if not recognized
16379 # So say no if there are warnings other than the usual output.
16380 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16383 lt_cv_prog_compiler_rtti_exceptions=yes
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16390 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16392 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16393 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16400 lt_prog_compiler_wl_GCJ=
16401 lt_prog_compiler_pic_GCJ=
16402 lt_prog_compiler_static_GCJ=
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16405 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16407 if test "$GCC" = yes; then
16408 lt_prog_compiler_wl_GCJ='-Wl,'
16409 lt_prog_compiler_static_GCJ='-static'
16413 # All AIX code is PIC.
16414 if test "$host_cpu" = ia64; then
16415 # AIX 5 now supports IA64 processor
16416 lt_prog_compiler_static_GCJ='-Bstatic'
16421 # FIXME: we need at least 68020 code to build shared libraries, but
16422 # adding the `-m68020' flag to GCC prevents building anything better,
16424 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16428 # PIC is the default for these OSes.
16431 mingw* | cygwin* | pw32* | os2*)
16432 # This hack is so that the source file can tell whether it is being
16433 # built for inclusion in a dll (and should export symbols for example).
16434 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16435 # (--disable-auto-import) libraries
16439 darwin* | rhapsody*)
16440 # PIC is the default on this platform
16441 # Common symbols not allowed in MH_DYLIB files
16442 lt_prog_compiler_pic_GCJ='-fno-common'
16446 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16447 # Instead, we relocate shared libraries at runtime.
16451 # Just because we use GCC doesn't mean we suddenly get shared libraries
16452 # on systems that don't support them.
16453 lt_prog_compiler_can_build_shared_GCJ=no
16458 if test -d /usr/nec; then
16459 lt_prog_compiler_pic_GCJ=-Kconform_pic
16464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16465 # not for PA HP-UX.
16471 lt_prog_compiler_pic_GCJ='-fPIC'
16477 lt_prog_compiler_pic_GCJ='-fPIC'
16481 # PORTME Check for flag to pass linker flags through the system compiler.
16484 lt_prog_compiler_wl_GCJ='-Wl,'
16485 if test "$host_cpu" = ia64; then
16486 # AIX 5 now supports IA64 processor
16487 lt_prog_compiler_static_GCJ='-Bstatic'
16489 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16493 # PIC is the default on this platform
16494 # Common symbols not allowed in MH_DYLIB files
16495 case $cc_basename in
16497 lt_prog_compiler_pic_GCJ='-qnocommon'
16498 lt_prog_compiler_wl_GCJ='-Wl,'
16503 mingw* | cygwin* | pw32* | os2*)
16504 # This hack is so that the source file can tell whether it is being
16505 # built for inclusion in a dll (and should export symbols for example).
16509 hpux9* | hpux10* | hpux11*)
16510 lt_prog_compiler_wl_GCJ='-Wl,'
16511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16512 # not for PA HP-UX.
16518 lt_prog_compiler_pic_GCJ='+Z'
16521 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16522 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16525 irix5* | irix6* | nonstopux*)
16526 lt_prog_compiler_wl_GCJ='-Wl,'
16527 # PIC (with -KPIC) is the default.
16528 lt_prog_compiler_static_GCJ='-non_shared'
16532 lt_prog_compiler_pic_GCJ='-KPIC'
16533 lt_prog_compiler_static_GCJ='-Bstatic'
16536 linux* | k*bsd*-gnu)
16537 case $cc_basename in
16539 lt_prog_compiler_wl_GCJ='-Wl,'
16540 lt_prog_compiler_pic_GCJ='-KPIC'
16541 lt_prog_compiler_static_GCJ='-static'
16543 pgcc* | pgf77* | pgf90* | pgf95*)
16544 # Portland Group compilers (*not* the Pentium gcc compiler,
16545 # which looks to be a dead project)
16546 lt_prog_compiler_wl_GCJ='-Wl,'
16547 lt_prog_compiler_pic_GCJ='-fpic'
16548 lt_prog_compiler_static_GCJ='-Bstatic'
16551 lt_prog_compiler_wl_GCJ='-Wl,'
16552 # All Alpha code is PIC.
16553 lt_prog_compiler_static_GCJ='-non_shared'
16556 case `$CC -V 2>&1 | sed 5q` in
16559 lt_prog_compiler_pic_GCJ='-KPIC'
16560 lt_prog_compiler_static_GCJ='-Bstatic'
16561 lt_prog_compiler_wl_GCJ='-Wl,'
16564 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16565 lt_prog_compiler_pic_GCJ='-KPIC'
16566 lt_prog_compiler_static_GCJ='-Bstatic'
16567 lt_prog_compiler_wl_GCJ=''
16574 osf3* | osf4* | osf5*)
16575 lt_prog_compiler_wl_GCJ='-Wl,'
16576 # All OSF/1 code is PIC.
16577 lt_prog_compiler_static_GCJ='-non_shared'
16581 lt_prog_compiler_static_GCJ='-non_shared'
16585 lt_prog_compiler_pic_GCJ='-KPIC'
16586 lt_prog_compiler_static_GCJ='-Bstatic'
16587 case $cc_basename in
16588 f77* | f90* | f95*)
16589 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16591 lt_prog_compiler_wl_GCJ='-Wl,';;
16596 lt_prog_compiler_wl_GCJ='-Qoption ld '
16597 lt_prog_compiler_pic_GCJ='-PIC'
16598 lt_prog_compiler_static_GCJ='-Bstatic'
16601 sysv4 | sysv4.2uw2* | sysv4.3*)
16602 lt_prog_compiler_wl_GCJ='-Wl,'
16603 lt_prog_compiler_pic_GCJ='-KPIC'
16604 lt_prog_compiler_static_GCJ='-Bstatic'
16608 if test -d /usr/nec ;then
16609 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16610 lt_prog_compiler_static_GCJ='-Bstatic'
16614 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16615 lt_prog_compiler_wl_GCJ='-Wl,'
16616 lt_prog_compiler_pic_GCJ='-KPIC'
16617 lt_prog_compiler_static_GCJ='-Bstatic'
16621 lt_prog_compiler_wl_GCJ='-Wl,'
16622 lt_prog_compiler_can_build_shared_GCJ=no
16626 lt_prog_compiler_pic_GCJ='-pic'
16627 lt_prog_compiler_static_GCJ='-Bstatic'
16631 lt_prog_compiler_can_build_shared_GCJ=no
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16637 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16640 # Check to make sure the PIC flag actually works.
16642 if test -n "$lt_prog_compiler_pic_GCJ"; then
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16645 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16646 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16647 $as_echo_n "(cached) " >&6
16649 lt_cv_prog_compiler_pic_works_GCJ=no
16650 ac_outfile=conftest.$ac_objext
16651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16652 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16653 # Insert the option either (1) after the last *FLAGS variable, or
16654 # (2) before a word containing "conftest.", or (3) at the end.
16655 # Note that $ac_compile itself does not contain backslashes and begins
16656 # with a dollar sign (not a hyphen), so the echo should work correctly.
16657 # The option is referenced via a variable to avoid confusing sed.
16658 lt_compile=`echo "$ac_compile" | $SED \
16659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16661 -e 's:$: $lt_compiler_flag:'`
16662 (eval echo "\"\$as_me:16662: $lt_compile\"" >&5)
16663 (eval "$lt_compile" 2>conftest.err)
16665 cat conftest.err >&5
16666 echo "$as_me:16666: \$? = $ac_status" >&5
16667 if (exit $ac_status) && test -s "$ac_outfile"; then
16668 # The compiler can only warn and ignore the option if not recognized
16669 # So say no if there are warnings other than the usual output.
16670 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16673 lt_cv_prog_compiler_pic_works_GCJ=yes
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16680 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16682 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16683 case $lt_prog_compiler_pic_GCJ in
16685 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16688 lt_prog_compiler_pic_GCJ=
16689 lt_prog_compiler_can_build_shared_GCJ=no
16694 # For platforms which do not support PIC, -DPIC is meaningless:
16696 lt_prog_compiler_pic_GCJ=
16699 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16704 # Check to make sure the static flag actually works.
16706 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16708 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16709 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16710 $as_echo_n "(cached) " >&6
16712 lt_cv_prog_compiler_static_works_GCJ=no
16713 save_LDFLAGS="$LDFLAGS"
16714 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16715 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16717 # The linker can only warn and ignore the option if not recognized
16718 # So say no if there are warnings
16719 if test -s conftest.err; then
16720 # Append any errors to the config.log.
16721 cat conftest.err 1>&5
16722 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16724 if diff conftest.exp conftest.er2 >/dev/null; then
16725 lt_cv_prog_compiler_static_works_GCJ=yes
16728 lt_cv_prog_compiler_static_works_GCJ=yes
16732 LDFLAGS="$save_LDFLAGS"
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16736 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16738 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16741 lt_prog_compiler_static_GCJ=
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16747 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16748 $as_echo_n "(cached) " >&6
16750 lt_cv_prog_compiler_c_o_GCJ=no
16751 $rm -r conftest 2>/dev/null
16755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16757 lt_compiler_flag="-o out/conftest2.$ac_objext"
16758 # Insert the option either (1) after the last *FLAGS variable, or
16759 # (2) before a word containing "conftest.", or (3) at the end.
16760 # Note that $ac_compile itself does not contain backslashes and begins
16761 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
16769 cat out/conftest.err >&5
16770 echo "$as_me:16770: \$? = $ac_status" >&5
16771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16773 # The compiler can only warn and ignore the option if not recognized
16774 # So say no if there are warnings
16775 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16778 lt_cv_prog_compiler_c_o_GCJ=yes
16783 # SGI C++ compiler will create directory out/ii_files/ for
16784 # template instantiation
16785 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16786 $rm out/* && rmdir out
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16793 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16796 hard_links="nottested"
16797 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16798 # do not overwrite the value of need_locks provided by the user
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16800 $as_echo_n "checking if we can lock with hard links... " >&6; }
16803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16805 ln conftest.a conftest.b 2>&5 || hard_links=no
16806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16808 $as_echo "$hard_links" >&6; }
16809 if test "$hard_links" = no; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16811 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16819 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16822 allow_undefined_flag_GCJ=
16823 enable_shared_with_static_runtimes_GCJ=no
16825 archive_expsym_cmds_GCJ=
16826 old_archive_From_new_cmds_GCJ=
16827 old_archive_from_expsyms_cmds_GCJ=
16828 export_dynamic_flag_spec_GCJ=
16829 whole_archive_flag_spec_GCJ=
16830 thread_safe_flag_spec_GCJ=
16831 hardcode_libdir_flag_spec_GCJ=
16832 hardcode_libdir_flag_spec_ld_GCJ=
16833 hardcode_libdir_separator_GCJ=
16834 hardcode_direct_GCJ=no
16835 hardcode_minus_L_GCJ=no
16836 hardcode_shlibpath_var_GCJ=unsupported
16837 link_all_deplibs_GCJ=unknown
16838 hardcode_automatic_GCJ=no
16840 module_expsym_cmds_GCJ=
16841 always_export_symbols_GCJ=no
16842 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16843 # include_expsyms should be a list of space-separated symbols to be *always*
16844 # included in the symbol list
16845 include_expsyms_GCJ=
16846 # exclude_expsyms can be an extended regexp of symbols to exclude
16847 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16848 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16849 # as well as any symbol that contains `d'.
16850 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16851 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16852 # platforms (ab)use it in PIC code, but their linkers get confused if
16853 # the symbol is explicitly referenced. Since portable code cannot
16854 # rely on this symbol name, it's probably fine to never include it in
16855 # preloaded symbol tables.
16856 # Exclude shared library initialization/finalization symbols.
16857 extract_expsyms_cmds=
16858 # Just being paranoid about ensuring that cc_basename is set.
16859 for cc_temp in $compiler""; do
16861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16867 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16870 cygwin* | mingw* | pw32*)
16871 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16872 # When not using gcc, we currently assume that we are using
16873 # Microsoft Visual C++.
16874 if test "$GCC" != yes; then
16879 # we just hope/assume this is gcc and not c89 (= MSVC++)
16888 if test "$with_gnu_ld" = yes; then
16889 # If archive_cmds runs LD, not CC, wlarc should be empty
16892 # Set some defaults for GNU ld with shared library support. These
16893 # are reset later if shared libraries are not supported. Putting them
16894 # here allows them to be overridden if necessary.
16895 runpath_var=LD_RUN_PATH
16896 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16897 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16898 # ancient GNU ld didn't support --whole-archive et. al.
16899 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16900 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16902 whole_archive_flag_spec_GCJ=
16904 supports_anon_versioning=no
16905 case `$LD -v 2>/dev/null` in
16906 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16907 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16908 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16909 *\ 2.11.*) ;; # other 2.11 versions
16910 *) supports_anon_versioning=yes ;;
16913 # See if GNU ld supports shared libraries.
16916 # On AIX/PPC, the GNU linker is very broken
16917 if test "$host_cpu" != ia64; then
16921 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16922 *** to be unable to reliably create shared libraries on AIX.
16923 *** Therefore, libtool is disabling shared libraries support. If you
16924 *** really care for shared libraries, you may want to modify your PATH
16925 *** so that a non-GNU linker is found, and then restart.
16932 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)'
16933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16934 hardcode_minus_L_GCJ=yes
16936 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16937 # that the semantics of dynamic libraries on AmigaOS, at least up
16938 # to version 4, is to share data among multiple programs linked
16939 # with the same dynamic library. Since this doesn't match the
16940 # behavior of shared libraries on other platforms, we can't use
16946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16947 allow_undefined_flag_GCJ=unsupported
16948 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16949 # support --undefined. This deserves some investigation. FIXME
16950 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16956 cygwin* | mingw* | pw32*)
16957 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16958 # as there is no search path for DLLs.
16959 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16960 allow_undefined_flag_GCJ=unsupported
16961 always_export_symbols_GCJ=no
16962 enable_shared_with_static_runtimes_GCJ=yes
16963 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16965 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16966 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16967 # If the export-symbols file already is a .def file (1st line
16968 # is EXPORTS), use it as is; otherwise, prepend...
16969 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16970 cp $export_symbols $output_objdir/$soname.def;
16972 echo EXPORTS > $output_objdir/$soname.def;
16973 cat $export_symbols >> $output_objdir/$soname.def;
16975 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16982 hardcode_direct_GCJ=no
16983 hardcode_shlibpath_var_GCJ=no
16984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16985 export_dynamic_flag_spec_GCJ='${wl}-E'
16986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16987 # Instead, shared libraries are loaded at an image base (0x10000000 by
16988 # default) and relocated if they conflict, which is a slow very memory
16989 # consuming and fragmenting process. To avoid this, we pick a random,
16990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16992 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'
16993 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'
16996 gnu* | linux* | k*bsd*-gnu)
16997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16999 case $cc_basename,$host_cpu in
17000 pgcc*) # Portland Group C compiler
17001 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'
17002 tmp_addflag=' $pic_flag'
17004 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17005 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'
17006 tmp_addflag=' $pic_flag -Mnomain' ;;
17007 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17008 tmp_addflag=' -i_dynamic' ;;
17009 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17010 tmp_addflag=' -i_dynamic -nofor_main' ;;
17011 ifc* | ifort*) # Intel Fortran compiler
17012 tmp_addflag=' -nofor_main' ;;
17014 case `$CC -V 2>&1 | sed 5q` in
17015 *Sun\ C*) # Sun C 5.9
17016 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'
17017 tmp_sharedflag='-G' ;;
17018 *Sun\ F*) # Sun Fortran 8.3
17019 tmp_sharedflag='-G' ;;
17021 tmp_sharedflag='-shared' ;;
17023 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17025 if test $supports_anon_versioning = yes; then
17026 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17028 $echo "local: *; };" >> $output_objdir/$libname.ver~
17029 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17031 link_all_deplibs_GCJ=no
17037 netbsd* | netbsdelf*-gnu)
17038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17039 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17042 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17043 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17048 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17052 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17053 *** create shared libraries on Solaris systems. Therefore, libtool
17054 *** is disabling shared libraries support. We urge you to upgrade GNU
17055 *** binutils to release 2.9.1 or newer. Another option is to modify
17056 *** your PATH or compiler configuration so that the native linker is
17057 *** used, and then restart.
17060 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17061 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17062 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17069 case `$LD -v 2>&1` in
17070 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17074 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17075 *** reliably create shared libraries on SCO systems. Therefore, libtool
17076 *** is disabling shared libraries support. We urge you to upgrade GNU
17077 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17078 *** your PATH or compiler configuration so that the native linker is
17079 *** used, and then restart.
17084 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17085 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17086 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17087 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17096 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17098 hardcode_direct_GCJ=yes
17099 hardcode_shlibpath_var_GCJ=no
17103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17105 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17112 if test "$ld_shlibs_GCJ" = no; then
17114 hardcode_libdir_flag_spec_GCJ=
17115 export_dynamic_flag_spec_GCJ=
17116 whole_archive_flag_spec_GCJ=
17119 # PORTME fill in a description of your system's linker (not GNU ld)
17122 allow_undefined_flag_GCJ=unsupported
17123 always_export_symbols_GCJ=yes
17124 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'
17125 # Note: this linker hardcodes the directories in LIBPATH if there
17126 # are no directories specified by -L.
17127 hardcode_minus_L_GCJ=yes
17128 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17129 # Neither direct hardcoding nor static linking is supported with a
17131 hardcode_direct_GCJ=unsupported
17136 if test "$host_cpu" = ia64; then
17137 # On IA64, the linker does run time linking by default, so we don't
17138 # have to do anything special.
17139 aix_use_runtimelinking=no
17140 exp_sym_flag='-Bexport'
17143 # If we're using GNU nm, then we don't want the "-C" option.
17144 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17145 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17146 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'
17148 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'
17150 aix_use_runtimelinking=no
17152 # Test if we are trying to use run time linking or normal
17153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17154 # need to do runtime linking.
17155 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17156 for ld_flag in $LDFLAGS; do
17157 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17158 aix_use_runtimelinking=yes
17165 exp_sym_flag='-bexport'
17166 no_entry_flag='-bnoentry'
17169 # When large executables or shared objects are built, AIX ld can
17170 # have problems creating the table of contents. If linking a library
17171 # or program results in "error TOC overflow" add -mminimal-toc to
17172 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17173 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17175 archive_cmds_GCJ=''
17176 hardcode_direct_GCJ=yes
17177 hardcode_libdir_separator_GCJ=':'
17178 link_all_deplibs_GCJ=yes
17180 if test "$GCC" = yes; then
17181 case $host_os in aix4.[012]|aix4.[012].*)
17182 # We only want to do this on AIX 4.2 and lower, the check
17183 # below for broken collect2 doesn't work under 4.3+
17184 collect2name=`${CC} -print-prog-name=collect2`
17185 if test -f "$collect2name" && \
17186 strings "$collect2name" | grep resolve_lib_name >/dev/null
17188 # We have reworked collect2
17191 # We have old collect2
17192 hardcode_direct_GCJ=unsupported
17193 # It fails to find uninstalled libraries when the uninstalled
17194 # path is not listed in the libpath. Setting hardcode_minus_L
17195 # to unsupported forces relinking
17196 hardcode_minus_L_GCJ=yes
17197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198 hardcode_libdir_separator_GCJ=
17202 shared_flag='-shared'
17203 if test "$aix_use_runtimelinking" = yes; then
17204 shared_flag="$shared_flag "'${wl}-G'
17208 if test "$host_cpu" = ia64; then
17209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17210 # chokes on -Wl,-G. The following line is correct:
17213 if test "$aix_use_runtimelinking" = yes; then
17214 shared_flag='${wl}-G'
17216 shared_flag='${wl}-bM:SRE'
17221 # It seems that -bexpall does not export symbols beginning with
17222 # underscore (_), so it is better to generate a list of symbols to export.
17223 always_export_symbols_GCJ=yes
17224 if test "$aix_use_runtimelinking" = yes; then
17225 # Warning - without using the other runtime loading flags (-brtl),
17226 # -berok will link without error, but may produce a broken library.
17227 allow_undefined_flag_GCJ='-berok'
17228 # Determine the default libpath from the value encoded in an empty executable.
17229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17230 /* end confdefs.h. */
17240 if ac_fn_c_try_link "$LINENO"; then :
17242 lt_aix_libpath_sed='
17243 /Import File Strings/,/^$/ {
17249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17250 # Check for a 64-bit object if we didn't find anything.
17251 if test -z "$aix_libpath"; then
17252 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17255 rm -f core conftest.err conftest.$ac_objext \
17256 conftest$ac_exeext conftest.$ac_ext
17257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17259 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17260 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"
17262 if test "$host_cpu" = ia64; then
17263 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17264 allow_undefined_flag_GCJ="-z nodefs"
17265 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"
17267 # Determine the default libpath from the value encoded in an empty executable.
17268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269 /* end confdefs.h. */
17279 if ac_fn_c_try_link "$LINENO"; then :
17281 lt_aix_libpath_sed='
17282 /Import File Strings/,/^$/ {
17288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17289 # Check for a 64-bit object if we didn't find anything.
17290 if test -z "$aix_libpath"; then
17291 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17294 rm -f core conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
17296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17298 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17299 # Warning - without using the other run time loading flags,
17300 # -berok will link without error, but may produce a broken library.
17301 no_undefined_flag_GCJ=' ${wl}-bernotok'
17302 allow_undefined_flag_GCJ=' ${wl}-berok'
17303 # Exported symbols can be pulled into shared objects from archives
17304 whole_archive_flag_spec_GCJ='$convenience'
17305 archive_cmds_need_lc_GCJ=yes
17306 # This is similar to how AIX traditionally builds its shared libraries.
17307 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'
17313 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)'
17314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17315 hardcode_minus_L_GCJ=yes
17316 # see comment about different semantics on the GNU ld section
17321 export_dynamic_flag_spec_GCJ=-rdynamic
17324 cygwin* | mingw* | pw32*)
17325 # When not using gcc, we currently assume that we are using
17326 # Microsoft Visual C++.
17327 # hardcode_libdir_flag_spec is actually meaningless, as there is
17328 # no search path for DLLs.
17329 hardcode_libdir_flag_spec_GCJ=' '
17330 allow_undefined_flag_GCJ=unsupported
17331 # Tell ltmain to make .lib files, not .a files.
17333 # Tell ltmain to make .dll files, not .so files.
17335 # FIXME: Setting linknames here is a bad hack.
17336 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17337 # The linker will automatically build a .lib file if we build a DLL.
17338 old_archive_From_new_cmds_GCJ='true'
17339 # FIXME: Should let the user specify the lib program.
17340 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17341 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17342 enable_shared_with_static_runtimes_GCJ=yes
17345 darwin* | rhapsody*)
17347 rhapsody* | darwin1.[012])
17348 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17351 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17352 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17354 case ${MACOSX_DEPLOYMENT_TARGET} in
17356 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17359 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17365 archive_cmds_need_lc_GCJ=no
17366 hardcode_direct_GCJ=no
17367 hardcode_automatic_GCJ=yes
17368 hardcode_shlibpath_var_GCJ=unsupported
17369 whole_archive_flag_spec_GCJ=''
17370 link_all_deplibs_GCJ=yes
17371 if test "$GCC" = yes ; then
17372 output_verbose_link_cmd='echo'
17373 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}"
17374 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17375 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}"
17376 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}"
17378 case $cc_basename in
17380 output_verbose_link_cmd='echo'
17381 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17382 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17384 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}'
17385 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}'
17395 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17397 hardcode_shlibpath_var_GCJ=no
17404 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17405 # support. Future versions do this automatically, but an explicit c++rt0.o
17406 # does not break anything, and helps significantly (at the cost of a little
17409 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17410 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17411 hardcode_direct_GCJ=yes
17412 hardcode_shlibpath_var_GCJ=no
17415 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17417 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17418 hardcode_direct_GCJ=yes
17419 hardcode_minus_L_GCJ=yes
17420 hardcode_shlibpath_var_GCJ=no
17423 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17424 freebsd* | dragonfly*)
17425 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17426 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17427 hardcode_direct_GCJ=yes
17428 hardcode_shlibpath_var_GCJ=no
17432 if test "$GCC" = yes; then
17433 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'
17435 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'
17437 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17438 hardcode_libdir_separator_GCJ=:
17439 hardcode_direct_GCJ=yes
17441 # hardcode_minus_L: Not really in the search PATH,
17442 # but as the default location of the library.
17443 hardcode_minus_L_GCJ=yes
17444 export_dynamic_flag_spec_GCJ='${wl}-E'
17448 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17449 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17451 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17453 if test "$with_gnu_ld" = no; then
17454 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17455 hardcode_libdir_separator_GCJ=:
17457 hardcode_direct_GCJ=yes
17458 export_dynamic_flag_spec_GCJ='${wl}-E'
17460 # hardcode_minus_L: Not really in the search PATH,
17461 # but as the default location of the library.
17462 hardcode_minus_L_GCJ=yes
17467 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17470 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17473 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17476 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17482 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17485 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17488 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17492 if test "$with_gnu_ld" = no; then
17493 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17494 hardcode_libdir_separator_GCJ=:
17498 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17499 hardcode_direct_GCJ=no
17500 hardcode_shlibpath_var_GCJ=no
17503 hardcode_direct_GCJ=yes
17504 export_dynamic_flag_spec_GCJ='${wl}-E'
17506 # hardcode_minus_L: Not really in the search PATH,
17507 # but as the default location of the library.
17508 hardcode_minus_L_GCJ=yes
17514 irix5* | irix6* | nonstopux*)
17515 if test "$GCC" = yes; then
17516 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'
17518 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'
17519 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17521 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17522 hardcode_libdir_separator_GCJ=:
17523 link_all_deplibs_GCJ=yes
17526 netbsd* | netbsdelf*-gnu)
17527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17528 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17530 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17533 hardcode_direct_GCJ=yes
17534 hardcode_shlibpath_var_GCJ=no
17538 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17539 hardcode_direct_GCJ=yes
17540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17541 hardcode_libdir_separator_GCJ=:
17542 hardcode_shlibpath_var_GCJ=no
17546 if test -f /usr/libexec/ld.so; then
17547 hardcode_direct_GCJ=yes
17548 hardcode_shlibpath_var_GCJ=no
17549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17550 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17551 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17552 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17553 export_dynamic_flag_spec_GCJ='${wl}-E'
17556 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17557 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17558 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17561 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17562 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17572 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17573 hardcode_minus_L_GCJ=yes
17574 allow_undefined_flag_GCJ=unsupported
17575 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'
17576 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17580 if test "$GCC" = yes; then
17581 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17582 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'
17584 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17585 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'
17587 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17588 hardcode_libdir_separator_GCJ=:
17591 osf4* | osf5*) # as osf3* with the addition of -msym flag
17592 if test "$GCC" = yes; then
17593 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17594 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'
17595 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17597 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17598 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'
17599 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~
17600 $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'
17602 # Both c and cxx compiler support -rpath directly
17603 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17605 hardcode_libdir_separator_GCJ=:
17609 no_undefined_flag_GCJ=' -z text'
17610 if test "$GCC" = yes; then
17612 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17613 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17614 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17617 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17618 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17621 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17622 hardcode_shlibpath_var_GCJ=no
17624 solaris2.[0-5] | solaris2.[0-5].*) ;;
17626 # The compiler driver will combine and reorder linker options,
17627 # but understands `-z linker_flag'. GCC discards it without `$wl',
17628 # but is careful enough not to reorder.
17629 # Supported since Solaris 2.6 (maybe 2.5.1?)
17630 if test "$GCC" = yes; then
17631 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17633 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17637 link_all_deplibs_GCJ=yes
17641 if test "x$host_vendor" = xsequent; then
17642 # Use $CC to link under sequent, because it throws in some extra .o
17643 # files that make .init and .fini sections work.
17644 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17646 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17648 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17649 hardcode_direct_GCJ=yes
17650 hardcode_minus_L_GCJ=yes
17651 hardcode_shlibpath_var_GCJ=no
17655 case $host_vendor in
17657 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17658 hardcode_direct_GCJ=yes # is this really true???
17661 ## LD is ld it makes a PLAMLIB
17662 ## CC just makes a GrossModule.
17663 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17664 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17665 hardcode_direct_GCJ=no
17668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17669 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17672 runpath_var='LD_RUN_PATH'
17673 hardcode_shlibpath_var_GCJ=no
17677 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17678 hardcode_shlibpath_var_GCJ=no
17679 export_dynamic_flag_spec_GCJ='-Bexport'
17683 if test -d /usr/nec; then
17684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17685 hardcode_shlibpath_var_GCJ=no
17686 runpath_var=LD_RUN_PATH
17687 hardcode_runpath_var=yes
17692 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17693 no_undefined_flag_GCJ='${wl}-z,text'
17694 archive_cmds_need_lc_GCJ=no
17695 hardcode_shlibpath_var_GCJ=no
17696 runpath_var='LD_RUN_PATH'
17698 if test "$GCC" = yes; then
17699 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17700 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17702 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17703 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17707 sysv5* | sco3.2v5* | sco5v6*)
17708 # Note: We can NOT use -z defs as we might desire, because we do not
17709 # link with -lc, and that would cause any symbols used from libc to
17710 # always be unresolved, which means just about no library would
17711 # ever link correctly. If we're not using GNU ld we use -z text
17712 # though, which does catch some bad symbols but isn't as heavy-handed
17714 no_undefined_flag_GCJ='${wl}-z,text'
17715 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17716 archive_cmds_need_lc_GCJ=no
17717 hardcode_shlibpath_var_GCJ=no
17718 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17719 hardcode_libdir_separator_GCJ=':'
17720 link_all_deplibs_GCJ=yes
17721 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17722 runpath_var='LD_RUN_PATH'
17724 if test "$GCC" = yes; then
17725 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17726 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17728 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17729 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17734 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17736 hardcode_shlibpath_var_GCJ=no
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17746 $as_echo "$ld_shlibs_GCJ" >&6; }
17747 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17750 # Do we need to explicitly link libc?
17752 case "x$archive_cmds_need_lc_GCJ" in
17754 # Assume -lc should be added
17755 archive_cmds_need_lc_GCJ=yes
17757 if test "$enable_shared" = yes && test "$GCC" = yes; then
17758 case $archive_cmds_GCJ in
17760 # FIXME: we may have to deal with multi-command sequences.
17763 # Test whether the compiler implicitly links with -lc since on some
17764 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17765 # to ld, don't add -lc before -lgcc.
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17767 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17772 (eval $ac_compile) 2>&5
17774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17775 test $ac_status = 0; } 2>conftest.err; then
17778 libobjs=conftest.$ac_objext
17780 wl=$lt_prog_compiler_wl_GCJ
17781 pic_flag=$lt_prog_compiler_pic_GCJ
17787 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17788 allow_undefined_flag_GCJ=
17789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17790 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17793 test $ac_status = 0; }
17795 archive_cmds_need_lc_GCJ=no
17797 archive_cmds_need_lc_GCJ=yes
17799 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17801 cat conftest.err 1>&5
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17805 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17813 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17814 library_names_spec=
17815 libname_spec='lib$name'
17819 postuninstall_cmds=
17823 shlibpath_overrides_runpath=unknown
17825 dynamic_linker="$host_os ld.so"
17826 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17828 need_lib_prefix=unknown
17829 hardcode_into_libs=no
17831 # when you set need_version to no, make sure it does not cause -set_version
17832 # flags to be left without arguments
17833 need_version=unknown
17838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17839 shlibpath_var=LIBPATH
17841 # AIX 3 has no versioning support, so we append a major version to the name.
17842 soname_spec='${libname}${release}${shared_ext}$major'
17849 hardcode_into_libs=yes
17850 if test "$host_cpu" = ia64; then
17851 # AIX 5 supports IA64
17852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17853 shlibpath_var=LD_LIBRARY_PATH
17855 # With GCC up to 2.95.x, collect2 would create an import file
17856 # for dependence libraries. The import file would start with
17857 # the line `#! .'. This would cause the generated library to
17858 # depend on `.', always an invalid library. This was fixed in
17859 # development snapshots of GCC prior to 3.0.
17861 aix4 | aix4.[01] | aix4.[01].*)
17862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17864 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17867 can_build_shared=no
17871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17872 # soname into executable. Probably we can add versioning support to
17873 # collect2, so additional links can be useful in future.
17874 if test "$aix_use_runtimelinking" = yes; then
17875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17876 # instead of lib<name>.a to let people know that these are not
17877 # typical AIX shared libraries.
17878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880 # We preserve .a as extension for shared libraries through AIX4.2
17881 # and later when we are not doing run time linking.
17882 library_names_spec='${libname}${release}.a $libname.a'
17883 soname_spec='${libname}${release}${shared_ext}$major'
17885 shlibpath_var=LIBPATH
17890 library_names_spec='$libname.ixlibrary $libname.a'
17891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17892 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'
17896 library_names_spec='${libname}${shared_ext}'
17897 dynamic_linker="$host_os ld.so"
17898 shlibpath_var=LIBRARY_PATH
17904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17907 shlibpath_var=LD_LIBRARY_PATH
17908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17910 # the default ld.so.conf also contains /usr/contrib/lib and
17911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17912 # libtool to hard-code these into programs
17915 cygwin* | mingw* | pw32*)
17916 version_type=windows
17921 case $GCC,$host_os in
17922 yes,cygwin* | yes,mingw* | yes,pw32*)
17923 library_names_spec='$libname.dll.a'
17924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17925 postinstall_cmds='base_file=`basename \${file}`~
17926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17927 dldir=$destdir/`dirname \$dlpath`~
17928 test -d \$dldir || mkdir -p \$dldir~
17929 $install_prog $dir/$dlname \$dldir/$dlname~
17930 chmod a+x \$dldir/$dlname'
17931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17932 dlpath=$dir/\$dldll~
17934 shlibpath_overrides_runpath=yes
17938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17940 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17943 # MinGW DLLs use traditional 'lib' prefix
17944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17946 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17947 # It is most probably a Windows format PATH printed by
17948 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17949 # path with ; separators, and with drive letters. We can handle the
17950 # drive letters (cygwin fileutils understands them), so leave them,
17951 # especially as we might pass files found there to a mingw objdump,
17952 # which wouldn't understand a cygwinified path. Ahh.
17953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17959 # pw32 DLLs use 'pw' prefix rather than 'lib'
17960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17966 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17969 dynamic_linker='Win32 ld.exe'
17970 # FIXME: first we should search . and the directory the executable is in
17974 darwin* | rhapsody*)
17975 dynamic_linker="$host_os dyld"
17976 version_type=darwin
17979 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17980 soname_spec='${libname}${release}${major}$shared_ext'
17981 shlibpath_overrides_runpath=yes
17982 shlibpath_var=DYLD_LIBRARY_PATH
17983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17985 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17993 soname_spec='${libname}${release}${shared_ext}$major'
17994 shlibpath_var=LD_LIBRARY_PATH
18001 freebsd* | dragonfly*)
18002 # DragonFly does not have aout. When/if they implement a new
18003 # versioning mechanism, adjust this.
18004 if test -x /usr/bin/objformat; then
18005 objformat=`/usr/bin/objformat`
18008 freebsd[123]*) objformat=aout ;;
18009 *) objformat=elf ;;
18012 version_type=freebsd-$objformat
18013 case $version_type in
18015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18024 shlibpath_var=LD_LIBRARY_PATH
18027 shlibpath_overrides_runpath=yes
18029 freebsd3.[01]* | freebsdelf3.[01]*)
18030 shlibpath_overrides_runpath=yes
18031 hardcode_into_libs=yes
18033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18035 shlibpath_overrides_runpath=no
18036 hardcode_into_libs=yes
18038 *) # from 4.6 on, and DragonFly
18039 shlibpath_overrides_runpath=yes
18040 hardcode_into_libs=yes
18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18050 soname_spec='${libname}${release}${shared_ext}$major'
18051 shlibpath_var=LD_LIBRARY_PATH
18052 hardcode_into_libs=yes
18055 hpux9* | hpux10* | hpux11*)
18056 # Give a soname corresponding to the major version so that dld.sl refuses to
18057 # link against other versions.
18064 hardcode_into_libs=yes
18065 dynamic_linker="$host_os dld.so"
18066 shlibpath_var=LD_LIBRARY_PATH
18067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069 soname_spec='${libname}${release}${shared_ext}$major'
18070 if test "X$HPUX_IA64_MODE" = X32; then
18071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18079 hardcode_into_libs=yes
18080 dynamic_linker="$host_os dld.sl"
18081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084 soname_spec='${libname}${release}${shared_ext}$major'
18085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18090 dynamic_linker="$host_os dld.sl"
18091 shlibpath_var=SHLIB_PATH
18092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18094 soname_spec='${libname}${release}${shared_ext}$major'
18097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18098 postinstall_cmds='chmod 555 $lib'
18105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18106 soname_spec='${libname}${release}${shared_ext}$major'
18107 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18108 shlibpath_var=LD_LIBRARY_PATH
18109 shlibpath_overrides_runpath=no
18110 hardcode_into_libs=yes
18113 irix5* | irix6* | nonstopux*)
18115 nonstopux*) version_type=nonstopux ;;
18117 if test "$lt_cv_prog_gnu_ld" = yes; then
18125 soname_spec='${libname}${release}${shared_ext}$major'
18126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18128 irix5* | nonstopux*)
18129 libsuff= shlibsuff=
18132 case $LD in # libtool.m4 will add one of these switches to LD
18133 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18134 libsuff= shlibsuff= libmagic=32-bit;;
18135 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18136 libsuff=32 shlibsuff=N32 libmagic=N32;;
18137 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18138 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18139 *) libsuff= shlibsuff= libmagic=never-match;;
18143 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18144 shlibpath_overrides_runpath=no
18145 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18146 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18147 hardcode_into_libs=yes
18150 # No shared lib support for Linux oldld, aout, or coff.
18151 linux*oldld* | linux*aout* | linux*coff*)
18155 # This must be Linux ELF.
18156 linux* | k*bsd*-gnu)
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18163 shlibpath_var=LD_LIBRARY_PATH
18164 shlibpath_overrides_runpath=no
18165 # This implies no fast_install, which is unacceptable.
18166 # Some rework will be needed to allow for fast_install
18167 # before this can be enabled.
18168 hardcode_into_libs=yes
18170 # Append ld.so.conf contents to the search path
18171 if test -f /etc/ld.so.conf; then
18172 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' ' '`
18173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18176 # We used to test for /lib/ld.so.1 and disable shared libraries on
18177 # powerpc, because MkLinux only supported shared libraries with the
18178 # GNU dynamic linker. Since this was broken with cross compilers,
18179 # most powerpc-linux boxes support dynamic linking these days and
18180 # people can always --disable-shared, the test was removed, and we
18181 # assume the GNU/Linux dynamic linker is in use.
18182 dynamic_linker='GNU/Linux ld.so'
18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18190 soname_spec='${libname}${release}${shared_ext}$major'
18191 shlibpath_var=LD_LIBRARY_PATH
18192 shlibpath_overrides_runpath=no
18193 hardcode_into_libs=yes
18194 dynamic_linker='NetBSD ld.elf_so'
18201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18204 dynamic_linker='NetBSD (a.out) ld.so'
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18207 soname_spec='${libname}${release}${shared_ext}$major'
18208 dynamic_linker='NetBSD ld.elf_so'
18210 shlibpath_var=LD_LIBRARY_PATH
18211 shlibpath_overrides_runpath=yes
18212 hardcode_into_libs=yes
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18218 shlibpath_var=LD_LIBRARY_PATH
18219 shlibpath_overrides_runpath=yes
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 soname_spec='${libname}${release}${shared_ext}$major'
18228 shlibpath_var=LD_LIBRARY_PATH
18229 shlibpath_overrides_runpath=yes
18234 sys_lib_dlsearch_path_spec="/usr/lib"
18236 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18238 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18239 *) need_version=no ;;
18241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18243 shlibpath_var=LD_LIBRARY_PATH
18244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18246 openbsd2.[89] | openbsd2.[89].*)
18247 shlibpath_overrides_runpath=no
18250 shlibpath_overrides_runpath=yes
18254 shlibpath_overrides_runpath=yes
18259 libname_spec='$name'
18262 library_names_spec='$libname${shared_ext} $libname.a'
18263 dynamic_linker='OS/2 ld.exe'
18264 shlibpath_var=LIBPATH
18267 osf3* | osf4* | osf5*)
18271 soname_spec='${libname}${release}${shared_ext}$major'
18272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18273 shlibpath_var=LD_LIBRARY_PATH
18274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18287 soname_spec='${libname}${release}${shared_ext}$major'
18288 shlibpath_var=LD_LIBRARY_PATH
18289 shlibpath_overrides_runpath=yes
18290 hardcode_into_libs=yes
18291 # ldd complains unless libraries are executable
18292 postinstall_cmds='chmod +x $lib'
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18299 shlibpath_var=LD_LIBRARY_PATH
18300 shlibpath_overrides_runpath=yes
18301 if test "$with_gnu_ld" = yes; then
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18310 soname_spec='${libname}${release}${shared_ext}$major'
18311 shlibpath_var=LD_LIBRARY_PATH
18312 case $host_vendor in
18314 shlibpath_overrides_runpath=no
18316 export_dynamic_flag_spec='${wl}-Blargedynsym'
18317 runpath_var=LD_RUN_PATH
18325 shlibpath_overrides_runpath=no
18326 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18332 if test -d /usr/nec ;then
18334 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18335 soname_spec='$libname${shared_ext}.$major'
18336 shlibpath_var=LD_LIBRARY_PATH
18340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18341 version_type=freebsd-elf
18344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18345 soname_spec='${libname}${release}${shared_ext}$major'
18346 shlibpath_var=LD_LIBRARY_PATH
18347 hardcode_into_libs=yes
18348 if test "$with_gnu_ld" = yes; then
18349 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18350 shlibpath_overrides_runpath=no
18352 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18353 shlibpath_overrides_runpath=yes
18356 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18360 sys_lib_dlsearch_path_spec='/usr/lib'
18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18366 soname_spec='${libname}${release}${shared_ext}$major'
18367 shlibpath_var=LD_LIBRARY_PATH
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18375 $as_echo "$dynamic_linker" >&6; }
18376 test "$dynamic_linker" = no && can_build_shared=no
18378 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18379 $as_echo_n "(cached) " >&6
18381 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18384 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18385 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18386 $as_echo_n "(cached) " >&6
18388 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18391 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18394 if test "$GCC" = yes; then
18395 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18399 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18400 hardcode_action_GCJ=
18401 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18402 test -n "$runpath_var_GCJ" || \
18403 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18405 # We can hardcode non-existant directories.
18406 if test "$hardcode_direct_GCJ" != no &&
18407 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18408 # have to relink, otherwise we might link with an installed library
18409 # when we should be linking with a yet-to-be-installed one
18410 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18411 test "$hardcode_minus_L_GCJ" != no; then
18412 # Linking always hardcodes the temporary library directory.
18413 hardcode_action_GCJ=relink
18415 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18416 hardcode_action_GCJ=immediate
18419 # We cannot hardcode anything, or else we can only hardcode existing
18421 hardcode_action_GCJ=unsupported
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18424 $as_echo "$hardcode_action_GCJ" >&6; }
18426 if test "$hardcode_action_GCJ" = relink; then
18427 # Fast installation is not supported
18428 enable_fast_install=no
18429 elif test "$shlibpath_overrides_runpath" = yes ||
18430 test "$enable_shared" = no; then
18431 # Fast installation is not necessary
18432 enable_fast_install=needless
18436 # The else clause should only fire when bootstrapping the
18437 # libtool distribution, otherwise you forgot to ship ltmain.sh
18438 # with your package, and you will get complaints that there are
18439 # no rules to generate ltmain.sh.
18440 if test -f "$ltmain"; then
18441 # See if we are running on zsh, and set the options which allow our commands through
18442 # without removal of \ escapes.
18443 if test -n "${ZSH_VERSION+set}" ; then
18444 setopt NO_GLOB_SUBST
18446 # Now quote all the things that may contain metacharacters while being
18447 # careful not to overquote the AC_SUBSTed values. We take copies of the
18448 # variables and quote the copies for generation of the libtool script.
18449 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18451 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18452 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18453 deplibs_check_method reload_flag reload_cmds need_locks \
18454 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18455 lt_cv_sys_global_symbol_to_c_name_address \
18456 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18457 old_postinstall_cmds old_postuninstall_cmds \
18461 lt_prog_compiler_wl_GCJ \
18462 lt_prog_compiler_pic_GCJ \
18463 lt_prog_compiler_static_GCJ \
18464 lt_prog_compiler_no_builtin_flag_GCJ \
18465 export_dynamic_flag_spec_GCJ \
18466 thread_safe_flag_spec_GCJ \
18467 whole_archive_flag_spec_GCJ \
18468 enable_shared_with_static_runtimes_GCJ \
18469 old_archive_cmds_GCJ \
18470 old_archive_from_new_cmds_GCJ \
18471 predep_objects_GCJ \
18472 postdep_objects_GCJ \
18475 compiler_lib_search_path_GCJ \
18476 compiler_lib_search_dirs_GCJ \
18478 archive_expsym_cmds_GCJ \
18479 postinstall_cmds_GCJ \
18480 postuninstall_cmds_GCJ \
18481 old_archive_from_expsyms_cmds_GCJ \
18482 allow_undefined_flag_GCJ \
18483 no_undefined_flag_GCJ \
18484 export_symbols_cmds_GCJ \
18485 hardcode_libdir_flag_spec_GCJ \
18486 hardcode_libdir_flag_spec_ld_GCJ \
18487 hardcode_libdir_separator_GCJ \
18488 hardcode_automatic_GCJ \
18490 module_expsym_cmds_GCJ \
18491 lt_cv_prog_compiler_c_o_GCJ \
18492 fix_srcfile_path_GCJ \
18493 exclude_expsyms_GCJ \
18494 include_expsyms_GCJ; do
18497 old_archive_cmds_GCJ | \
18498 old_archive_from_new_cmds_GCJ | \
18499 archive_cmds_GCJ | \
18500 archive_expsym_cmds_GCJ | \
18501 module_cmds_GCJ | \
18502 module_expsym_cmds_GCJ | \
18503 old_archive_from_expsyms_cmds_GCJ | \
18504 export_symbols_cmds_GCJ | \
18505 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18506 postinstall_cmds | postuninstall_cmds | \
18507 old_postinstall_cmds | old_postuninstall_cmds | \
18508 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18509 # Double-quote double-evaled strings.
18510 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18519 *'\$0 --fallback-echo"')
18520 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18526 cat <<__EOF__ >> "$cfgfile"
18527 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18531 # Shell to use when invoking shell scripts.
18534 # Whether or not to build shared libraries.
18535 build_libtool_libs=$enable_shared
18537 # Whether or not to build static libraries.
18538 build_old_libs=$enable_static
18540 # Whether or not to add -lc for building shared libraries.
18541 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18543 # Whether or not to disallow shared libs when runtime libs are static
18544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18546 # Whether or not to optimize for fast installation.
18547 fast_install=$enable_fast_install
18550 host_alias=$host_alias
18554 # The build system.
18555 build_alias=$build_alias
18559 # An echo program that does not interpret backslashes.
18564 AR_FLAGS=$lt_AR_FLAGS
18569 # LTCC compiler flags.
18570 LTCFLAGS=$lt_LTCFLAGS
18572 # A language-specific compiler.
18573 CC=$lt_compiler_GCJ
18575 # Is the compiler the GNU C compiler?
18581 # The linker used to build libraries.
18584 # Whether we need hard or soft links.
18587 # A BSD-compatible nm program.
18590 # A symbol stripping program
18593 # Used to examine libraries when file_magic_cmd begins "file"
18594 MAGIC_CMD=$MAGIC_CMD
18596 # Used on cygwin: DLL creation program.
18599 # Used on cygwin: object dumper.
18602 # Used on cygwin: assembler.
18605 # The name of the directory that contains temporary libtool files.
18608 # How to create reloadable object files.
18609 reload_flag=$lt_reload_flag
18610 reload_cmds=$lt_reload_cmds
18612 # How to pass a linker flag through the compiler.
18613 wl=$lt_lt_prog_compiler_wl_GCJ
18615 # Object file suffix (normally "o").
18616 objext="$ac_objext"
18618 # Old archive suffix (normally "a").
18621 # Shared library suffix (normally ".so").
18622 shrext_cmds='$shrext_cmds'
18624 # Executable file suffix (normally "").
18627 # Additional compiler flags for building library objects.
18628 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18631 # What is the maximum length of a command?
18632 max_cmd_len=$lt_cv_sys_max_cmd_len
18634 # Does compiler simultaneously support -c and -o options?
18635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18637 # Must we lock files when doing compilation?
18638 need_locks=$lt_need_locks
18640 # Do we need the lib prefix for modules?
18641 need_lib_prefix=$need_lib_prefix
18643 # Do we need a version for libraries?
18644 need_version=$need_version
18646 # Whether dlopen is supported.
18647 dlopen_support=$enable_dlopen
18649 # Whether dlopen of programs is supported.
18650 dlopen_self=$enable_dlopen_self
18652 # Whether dlopen of statically linked programs is supported.
18653 dlopen_self_static=$enable_dlopen_self_static
18655 # Compiler flag to prevent dynamic linking.
18656 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18658 # Compiler flag to turn off builtin functions.
18659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18661 # Compiler flag to allow reflexive dlopens.
18662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18664 # Compiler flag to generate shared objects directly from archives.
18665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18667 # Compiler flag to generate thread-safe objects.
18668 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18670 # Library versioning type.
18671 version_type=$version_type
18673 # Format of library name prefix.
18674 libname_spec=$lt_libname_spec
18676 # List of archive names. First name is the real one, the rest are links.
18677 # The last name is the one that the linker finds with -lNAME.
18678 library_names_spec=$lt_library_names_spec
18680 # The coded name of the library, if different from the real name.
18681 soname_spec=$lt_soname_spec
18683 # Commands used to build and install an old-style archive.
18685 old_archive_cmds=$lt_old_archive_cmds_GCJ
18686 old_postinstall_cmds=$lt_old_postinstall_cmds
18687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18689 # Create an old-style archive from a shared archive.
18690 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18692 # Create a temporary old-style archive to link instead of a shared archive.
18693 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18695 # Commands used to build and install a shared archive.
18696 archive_cmds=$lt_archive_cmds_GCJ
18697 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18698 postinstall_cmds=$lt_postinstall_cmds
18699 postuninstall_cmds=$lt_postuninstall_cmds
18701 # Commands used to build a loadable module (assumed same as above if empty)
18702 module_cmds=$lt_module_cmds_GCJ
18703 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18705 # Commands to strip libraries.
18706 old_striplib=$lt_old_striplib
18707 striplib=$lt_striplib
18709 # Dependencies to place before the objects being linked to create a
18711 predep_objects=$lt_predep_objects_GCJ
18713 # Dependencies to place after the objects being linked to create a
18715 postdep_objects=$lt_postdep_objects_GCJ
18717 # Dependencies to place before the objects being linked to create a
18719 predeps=$lt_predeps_GCJ
18721 # Dependencies to place after the objects being linked to create a
18723 postdeps=$lt_postdeps_GCJ
18725 # The directories searched by this compiler when creating a shared
18727 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18729 # The library search path used internally by the compiler when linking
18730 # a shared library.
18731 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18733 # Method to check whether dependent libraries are shared objects.
18734 deplibs_check_method=$lt_deplibs_check_method
18736 # Command to use when deplibs_check_method == file_magic.
18737 file_magic_cmd=$lt_file_magic_cmd
18739 # Flag that allows shared libraries with undefined symbols to be built.
18740 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18742 # Flag that forces no undefined symbols.
18743 no_undefined_flag=$lt_no_undefined_flag_GCJ
18745 # Commands used to finish a libtool library installation in a directory.
18746 finish_cmds=$lt_finish_cmds
18748 # Same as above, but a single script fragment to be evaled but not shown.
18749 finish_eval=$lt_finish_eval
18751 # Take the output of nm and produce a listing of raw symbols and C names.
18752 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18754 # Transform the output of nm in a proper C declaration
18755 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18757 # Transform the output of nm in a C name address pair
18758 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18760 # This is the shared library runtime path variable.
18761 runpath_var=$runpath_var
18763 # This is the shared library path variable.
18764 shlibpath_var=$shlibpath_var
18766 # Is shlibpath searched before the hard-coded library search path?
18767 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18769 # How to hardcode a shared library path into an executable.
18770 hardcode_action=$hardcode_action_GCJ
18772 # Whether we should hardcode library paths into libraries.
18773 hardcode_into_libs=$hardcode_into_libs
18775 # Flag to hardcode \$libdir into a binary during linking.
18776 # This must work even if \$libdir does not exist.
18777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18779 # If ld is used when linking, flag to hardcode \$libdir into
18780 # a binary during linking. This must work even if \$libdir does
18782 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18784 # Whether we need a single -rpath flag with a separated argument.
18785 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18787 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18788 # resulting binary.
18789 hardcode_direct=$hardcode_direct_GCJ
18791 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18792 # resulting binary.
18793 hardcode_minus_L=$hardcode_minus_L_GCJ
18795 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18796 # the resulting binary.
18797 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18799 # Set to yes if building a shared library automatically hardcodes DIR into the library
18800 # and all subsequent libraries and executables linked against it.
18801 hardcode_automatic=$hardcode_automatic_GCJ
18803 # Variables whose values should be saved in libtool wrapper scripts and
18804 # restored at relink time.
18805 variables_saved_for_relink="$variables_saved_for_relink"
18807 # Whether libtool must link a program against all its dependency libraries.
18808 link_all_deplibs=$link_all_deplibs_GCJ
18810 # Compile-time system search path for libraries
18811 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18813 # Run-time system search path for libraries
18814 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18816 # Fix the shell variable \$srcfile for the compiler.
18817 fix_srcfile_path=$lt_fix_srcfile_path
18819 # Set to yes if exported symbols are required.
18820 always_export_symbols=$always_export_symbols_GCJ
18822 # The commands to list exported symbols.
18823 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18825 # The commands to extract the exported symbol list from a shared archive.
18826 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18828 # Symbols that should not be listed in the preloaded symbols.
18829 exclude_expsyms=$lt_exclude_expsyms_GCJ
18831 # Symbols that must always be exported.
18832 include_expsyms=$lt_include_expsyms_GCJ
18834 # ### END LIBTOOL TAG CONFIG: $tagname
18840 # If there is no Makefile yet, we rely on a make rule to execute
18841 # `config.status --recheck' to rerun these tests and create the
18842 # libtool script then.
18843 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18844 if test -f "$ltmain_in"; then
18845 test -f Makefile && make "$ltmain"
18851 ac_cpp='$CPP $CPPFLAGS'
18852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18866 # Source file extension for RC test sources.
18869 # Object file extension for compiled RC test sources.
18873 # Code to be used in simple compile tests
18874 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18876 # Code to be used in simple link tests
18877 lt_simple_link_test_code="$lt_simple_compile_test_code"
18879 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18881 # If no C compiler was specified, use CC.
18884 # If no C compiler flags were specified, use CFLAGS.
18885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18887 # Allow CC to be a program name with arguments.
18891 # save warnings/boilerplate of simple test code
18892 ac_outfile=conftest.$ac_objext
18893 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18894 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18895 _lt_compiler_boilerplate=`cat conftest.err`
18898 ac_outfile=conftest.$ac_objext
18899 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18900 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18901 _lt_linker_boilerplate=`cat conftest.err`
18905 # Allow CC to be a program name with arguments.
18910 for cc_temp in $compiler""; do
18912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18918 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18920 lt_cv_prog_compiler_c_o_RC=yes
18922 # The else clause should only fire when bootstrapping the
18923 # libtool distribution, otherwise you forgot to ship ltmain.sh
18924 # with your package, and you will get complaints that there are
18925 # no rules to generate ltmain.sh.
18926 if test -f "$ltmain"; then
18927 # See if we are running on zsh, and set the options which allow our commands through
18928 # without removal of \ escapes.
18929 if test -n "${ZSH_VERSION+set}" ; then
18930 setopt NO_GLOB_SUBST
18932 # Now quote all the things that may contain metacharacters while being
18933 # careful not to overquote the AC_SUBSTed values. We take copies of the
18934 # variables and quote the copies for generation of the libtool script.
18935 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18937 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18938 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18939 deplibs_check_method reload_flag reload_cmds need_locks \
18940 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18941 lt_cv_sys_global_symbol_to_c_name_address \
18942 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18943 old_postinstall_cmds old_postuninstall_cmds \
18947 lt_prog_compiler_wl_RC \
18948 lt_prog_compiler_pic_RC \
18949 lt_prog_compiler_static_RC \
18950 lt_prog_compiler_no_builtin_flag_RC \
18951 export_dynamic_flag_spec_RC \
18952 thread_safe_flag_spec_RC \
18953 whole_archive_flag_spec_RC \
18954 enable_shared_with_static_runtimes_RC \
18955 old_archive_cmds_RC \
18956 old_archive_from_new_cmds_RC \
18957 predep_objects_RC \
18958 postdep_objects_RC \
18961 compiler_lib_search_path_RC \
18962 compiler_lib_search_dirs_RC \
18964 archive_expsym_cmds_RC \
18965 postinstall_cmds_RC \
18966 postuninstall_cmds_RC \
18967 old_archive_from_expsyms_cmds_RC \
18968 allow_undefined_flag_RC \
18969 no_undefined_flag_RC \
18970 export_symbols_cmds_RC \
18971 hardcode_libdir_flag_spec_RC \
18972 hardcode_libdir_flag_spec_ld_RC \
18973 hardcode_libdir_separator_RC \
18974 hardcode_automatic_RC \
18976 module_expsym_cmds_RC \
18977 lt_cv_prog_compiler_c_o_RC \
18978 fix_srcfile_path_RC \
18979 exclude_expsyms_RC \
18980 include_expsyms_RC; do
18983 old_archive_cmds_RC | \
18984 old_archive_from_new_cmds_RC | \
18985 archive_cmds_RC | \
18986 archive_expsym_cmds_RC | \
18988 module_expsym_cmds_RC | \
18989 old_archive_from_expsyms_cmds_RC | \
18990 export_symbols_cmds_RC | \
18991 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18992 postinstall_cmds | postuninstall_cmds | \
18993 old_postinstall_cmds | old_postuninstall_cmds | \
18994 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18995 # Double-quote double-evaled strings.
18996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18999 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19005 *'\$0 --fallback-echo"')
19006 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19012 cat <<__EOF__ >> "$cfgfile"
19013 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19015 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19017 # Shell to use when invoking shell scripts.
19020 # Whether or not to build shared libraries.
19021 build_libtool_libs=$enable_shared
19023 # Whether or not to build static libraries.
19024 build_old_libs=$enable_static
19026 # Whether or not to add -lc for building shared libraries.
19027 build_libtool_need_lc=$archive_cmds_need_lc_RC
19029 # Whether or not to disallow shared libs when runtime libs are static
19030 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19032 # Whether or not to optimize for fast installation.
19033 fast_install=$enable_fast_install
19036 host_alias=$host_alias
19040 # The build system.
19041 build_alias=$build_alias
19045 # An echo program that does not interpret backslashes.
19050 AR_FLAGS=$lt_AR_FLAGS
19055 # LTCC compiler flags.
19056 LTCFLAGS=$lt_LTCFLAGS
19058 # A language-specific compiler.
19061 # Is the compiler the GNU C compiler?
19067 # The linker used to build libraries.
19070 # Whether we need hard or soft links.
19073 # A BSD-compatible nm program.
19076 # A symbol stripping program
19079 # Used to examine libraries when file_magic_cmd begins "file"
19080 MAGIC_CMD=$MAGIC_CMD
19082 # Used on cygwin: DLL creation program.
19085 # Used on cygwin: object dumper.
19088 # Used on cygwin: assembler.
19091 # The name of the directory that contains temporary libtool files.
19094 # How to create reloadable object files.
19095 reload_flag=$lt_reload_flag
19096 reload_cmds=$lt_reload_cmds
19098 # How to pass a linker flag through the compiler.
19099 wl=$lt_lt_prog_compiler_wl_RC
19101 # Object file suffix (normally "o").
19102 objext="$ac_objext"
19104 # Old archive suffix (normally "a").
19107 # Shared library suffix (normally ".so").
19108 shrext_cmds='$shrext_cmds'
19110 # Executable file suffix (normally "").
19113 # Additional compiler flags for building library objects.
19114 pic_flag=$lt_lt_prog_compiler_pic_RC
19117 # What is the maximum length of a command?
19118 max_cmd_len=$lt_cv_sys_max_cmd_len
19120 # Does compiler simultaneously support -c and -o options?
19121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19123 # Must we lock files when doing compilation?
19124 need_locks=$lt_need_locks
19126 # Do we need the lib prefix for modules?
19127 need_lib_prefix=$need_lib_prefix
19129 # Do we need a version for libraries?
19130 need_version=$need_version
19132 # Whether dlopen is supported.
19133 dlopen_support=$enable_dlopen
19135 # Whether dlopen of programs is supported.
19136 dlopen_self=$enable_dlopen_self
19138 # Whether dlopen of statically linked programs is supported.
19139 dlopen_self_static=$enable_dlopen_self_static
19141 # Compiler flag to prevent dynamic linking.
19142 link_static_flag=$lt_lt_prog_compiler_static_RC
19144 # Compiler flag to turn off builtin functions.
19145 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19147 # Compiler flag to allow reflexive dlopens.
19148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19150 # Compiler flag to generate shared objects directly from archives.
19151 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19153 # Compiler flag to generate thread-safe objects.
19154 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19156 # Library versioning type.
19157 version_type=$version_type
19159 # Format of library name prefix.
19160 libname_spec=$lt_libname_spec
19162 # List of archive names. First name is the real one, the rest are links.
19163 # The last name is the one that the linker finds with -lNAME.
19164 library_names_spec=$lt_library_names_spec
19166 # The coded name of the library, if different from the real name.
19167 soname_spec=$lt_soname_spec
19169 # Commands used to build and install an old-style archive.
19171 old_archive_cmds=$lt_old_archive_cmds_RC
19172 old_postinstall_cmds=$lt_old_postinstall_cmds
19173 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19175 # Create an old-style archive from a shared archive.
19176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19178 # Create a temporary old-style archive to link instead of a shared archive.
19179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19181 # Commands used to build and install a shared archive.
19182 archive_cmds=$lt_archive_cmds_RC
19183 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19184 postinstall_cmds=$lt_postinstall_cmds
19185 postuninstall_cmds=$lt_postuninstall_cmds
19187 # Commands used to build a loadable module (assumed same as above if empty)
19188 module_cmds=$lt_module_cmds_RC
19189 module_expsym_cmds=$lt_module_expsym_cmds_RC
19191 # Commands to strip libraries.
19192 old_striplib=$lt_old_striplib
19193 striplib=$lt_striplib
19195 # Dependencies to place before the objects being linked to create a
19197 predep_objects=$lt_predep_objects_RC
19199 # Dependencies to place after the objects being linked to create a
19201 postdep_objects=$lt_postdep_objects_RC
19203 # Dependencies to place before the objects being linked to create a
19205 predeps=$lt_predeps_RC
19207 # Dependencies to place after the objects being linked to create a
19209 postdeps=$lt_postdeps_RC
19211 # The directories searched by this compiler when creating a shared
19213 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19215 # The library search path used internally by the compiler when linking
19216 # a shared library.
19217 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19219 # Method to check whether dependent libraries are shared objects.
19220 deplibs_check_method=$lt_deplibs_check_method
19222 # Command to use when deplibs_check_method == file_magic.
19223 file_magic_cmd=$lt_file_magic_cmd
19225 # Flag that allows shared libraries with undefined symbols to be built.
19226 allow_undefined_flag=$lt_allow_undefined_flag_RC
19228 # Flag that forces no undefined symbols.
19229 no_undefined_flag=$lt_no_undefined_flag_RC
19231 # Commands used to finish a libtool library installation in a directory.
19232 finish_cmds=$lt_finish_cmds
19234 # Same as above, but a single script fragment to be evaled but not shown.
19235 finish_eval=$lt_finish_eval
19237 # Take the output of nm and produce a listing of raw symbols and C names.
19238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19240 # Transform the output of nm in a proper C declaration
19241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19243 # Transform the output of nm in a C name address pair
19244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19246 # This is the shared library runtime path variable.
19247 runpath_var=$runpath_var
19249 # This is the shared library path variable.
19250 shlibpath_var=$shlibpath_var
19252 # Is shlibpath searched before the hard-coded library search path?
19253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19255 # How to hardcode a shared library path into an executable.
19256 hardcode_action=$hardcode_action_RC
19258 # Whether we should hardcode library paths into libraries.
19259 hardcode_into_libs=$hardcode_into_libs
19261 # Flag to hardcode \$libdir into a binary during linking.
19262 # This must work even if \$libdir does not exist.
19263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19265 # If ld is used when linking, flag to hardcode \$libdir into
19266 # a binary during linking. This must work even if \$libdir does
19268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19270 # Whether we need a single -rpath flag with a separated argument.
19271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19274 # resulting binary.
19275 hardcode_direct=$hardcode_direct_RC
19277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19278 # resulting binary.
19279 hardcode_minus_L=$hardcode_minus_L_RC
19281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19282 # the resulting binary.
19283 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19285 # Set to yes if building a shared library automatically hardcodes DIR into the library
19286 # and all subsequent libraries and executables linked against it.
19287 hardcode_automatic=$hardcode_automatic_RC
19289 # Variables whose values should be saved in libtool wrapper scripts and
19290 # restored at relink time.
19291 variables_saved_for_relink="$variables_saved_for_relink"
19293 # Whether libtool must link a program against all its dependency libraries.
19294 link_all_deplibs=$link_all_deplibs_RC
19296 # Compile-time system search path for libraries
19297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19299 # Run-time system search path for libraries
19300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19302 # Fix the shell variable \$srcfile for the compiler.
19303 fix_srcfile_path=$lt_fix_srcfile_path
19305 # Set to yes if exported symbols are required.
19306 always_export_symbols=$always_export_symbols_RC
19308 # The commands to list exported symbols.
19309 export_symbols_cmds=$lt_export_symbols_cmds_RC
19311 # The commands to extract the exported symbol list from a shared archive.
19312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19314 # Symbols that should not be listed in the preloaded symbols.
19315 exclude_expsyms=$lt_exclude_expsyms_RC
19317 # Symbols that must always be exported.
19318 include_expsyms=$lt_include_expsyms_RC
19320 # ### END LIBTOOL TAG CONFIG: $tagname
19326 # If there is no Makefile yet, we rely on a make rule to execute
19327 # `config.status --recheck' to rerun these tests and create the
19328 # libtool script then.
19329 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19330 if test -f "$ltmain_in"; then
19331 test -f Makefile && make "$ltmain"
19337 ac_cpp='$CPP $CPPFLAGS'
19338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19347 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19351 # Append the new tag name to the list of available tags.
19352 if test -n "$tagname" ; then
19353 available_tags="$available_tags $tagname"
19359 # Now substitute the updated list of available tags.
19360 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19361 mv "${ofile}T" "$ofile"
19365 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19371 # This can be used to rebuild libtool when needed
19372 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19374 # Always use our own libtool.
19375 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19377 # Prevent multiple expansion
19390 # Check whether --with-system-libtool was given.
19391 if test "${with_system_libtool+set}" = set; then :
19392 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19393 set dummy libtool; ac_word=$2
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19395 $as_echo_n "checking for $ac_word... " >&6; }
19396 if ${ac_cv_path_LIBTOOL+:} false; then :
19397 $as_echo_n "(cached) " >&6
19401 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19405 as_dummy="$PATH:/usr/local/bin"
19406 for as_dir in $as_dummy
19409 test -z "$as_dir" && as_dir=.
19410 for ac_exec_ext in '' $ac_executable_extensions; do
19411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19412 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19423 LIBTOOL=$ac_cv_path_LIBTOOL
19424 if test -n "$LIBTOOL"; then
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19426 $as_echo "$LIBTOOL" >&6; }
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19429 $as_echo "no" >&6; }
19445 LIBTOOL="`pwd`/libtool"
19457 # Check whether --enable-strict-dependencies was given.
19458 if test "${enable_strict_dependencies+set}" = set; then :
19459 enableval=$enable_strict_dependencies;
19463 docdir='${datadir}/doc/freeradius'
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19465 $as_echo_n "checking docdir... " >&6; }
19467 # Check whether --with-docdir was given.
19468 if test "${with_docdir+set}" = set; then :
19469 withval=$with_docdir; case "$withval" in
19475 [\\/$]* | ?:[\\/]* )
19479 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19487 $as_echo "$docdir" >&6; }
19488 if test "x$docdir" = xno; then
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19490 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19493 logdir='${localstatedir}/log/radius'
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19495 $as_echo_n "checking logdir... " >&6; }
19497 # Check whether --with-logdir was given.
19498 if test "${with_logdir+set}" = set; then :
19499 withval=$with_logdir; case "$withval" in
19501 as_fn_error $? "Need logdir" "$LINENO" 5
19505 [\\/$]* | ?:[\\/]* )
19509 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19517 $as_echo "$logdir" >&6; }
19519 radacctdir='${logdir}/radacct'
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19521 $as_echo_n "checking radacctdir... " >&6; }
19523 # Check whether --with-radacctdir was given.
19524 if test "${with_radacctdir+set}" = set; then :
19525 withval=$with_radacctdir; case "$withval" in
19527 as_fn_error $? "Need radacctdir" "$LINENO" 5
19531 [\\/$]* | ?:[\\/]* )
19532 radacctdir="$withval"
19535 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19543 $as_echo "$radacctdir" >&6; }
19545 raddbdir='${sysconfdir}/raddb'
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19547 $as_echo_n "checking raddbdir... " >&6; }
19549 # Check whether --with-raddbdir was given.
19550 if test "${with_raddbdir+set}" = set; then :
19551 withval=$with_raddbdir; case "$withval" in
19553 as_fn_error $? "Need raddbdir" "$LINENO" 5
19557 [\\/$]* | ?:[\\/]* )
19558 raddbdir="$withval"
19561 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19569 $as_echo "$raddbdir" >&6; }
19573 # Check whether --with-ascend-binary was given.
19574 if test "${with_ascend_binary+set}" = set; then :
19575 withval=$with_ascend_binary; case "$withval" in
19584 if test "X$ASCEND_BINARY" = "Xyes"; then
19586 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19592 # Check whether --with-threads was given.
19593 if test "${with_threads+set}" = set; then :
19594 withval=$with_threads; case "$withval" in
19606 # Check whether --with-vmps was given.
19607 if test "${with_vmps+set}" = set; then :
19608 withval=$with_vmps; case "$withval" in
19617 if test "x$WITH_VMPS" = "xyes"; then
19619 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19625 # Check whether --with-dhcp was given.
19626 if test "${with_dhcp+set}" = set; then :
19627 withval=$with_dhcp; case "$withval" in
19636 if test "x$WITH_DHCP" = "xyes"; then
19638 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19643 WITH_POST_PROXY_AUTHORIZE=
19645 # Check whether --with-post-proxy-authorize was given.
19646 if test "${with_post_proxy_authorize+set}" = set; then :
19647 withval=$with_post_proxy_authorize; case "$withval" in
19649 WITH_POST_PROXY_AUTHORIZE=""
19660 # Check whether --with-static_modules was given.
19661 if test "${with_static_modules+set}" = set; then :
19662 withval=$with_static_modules;
19663 for i in $withval; do
19664 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19672 # Check whether --with-modules was given.
19673 if test "${with_modules+set}" = set; then :
19674 withval=$with_modules;
19675 for i in $withval; do
19676 MODULES="$MODULES $i"
19682 # Check whether --enable-developer was given.
19683 if test "${enable_developer+set}" = set; then :
19684 enableval=$enable_developer; case "$enableval" in
19695 if test -d $srcdir/.git; then
19696 if test "x$developer" != "xno"; then
19700 if test "x$GIT" = "xyes"; then
19701 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19707 # Check whether --with-experimental-modules was given.
19708 if test "${with_experimental_modules+set}" = set; then :
19709 withval=$with_experimental_modules; case "$withval" in
19721 # Check whether --with-openssl was given.
19722 if test "${with_openssl+set}" = set; then :
19723 withval=$with_openssl; case "$withval" in
19735 OPENSSL_INCLUDE_DIR=
19737 # Check whether --with-openssl-includes was given.
19738 if test "${with_openssl_includes+set}" = set; then :
19739 withval=$with_openssl_includes; case "$withval" in
19740 *) OPENSSL_INCLUDE_DIR="$withval"
19749 # Check whether --with-openssl-libraries was given.
19750 if test "${with_openssl_libraries+set}" = set; then :
19751 withval=$with_openssl_libraries; case "$withval" in
19752 *) OPENSSL_LIB_DIR="$withval"
19761 # Check whether --with-rlm-FOO-lib-dir was given.
19762 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19763 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19772 # Check whether --with-rlm-FOO-include-dir was given.
19773 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19774 withval=$with_rlm_FOO_include_dir; case "$withval" in
19785 # Check whether --with-udpfromto was given.
19786 if test "${with_udpfromto+set}" = set; then :
19787 withval=$with_udpfromto; case "$withval" in
19798 if test "x$WITH_UDPFROMTO" = "xyes"; then
19800 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19805 CHECKRAD=checkrad.pl
19806 # Extract the first word of "perl", so it can be a program name with args.
19807 set dummy perl; ac_word=$2
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19809 $as_echo_n "checking for $ac_word... " >&6; }
19810 if ${ac_cv_path_PERL+:} false; then :
19811 $as_echo_n "(cached) " >&6
19815 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819 for as_dir in $PATH
19822 test -z "$as_dir" && as_dir=.
19823 for ac_exec_ext in '' $ac_executable_extensions; do
19824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19825 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19833 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19837 PERL=$ac_cv_path_PERL
19838 if test -n "$PERL"; then
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19840 $as_echo "$PERL" >&6; }
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19843 $as_echo "no" >&6; }
19847 if test "x$ac_cv_path_PERL" = "x"; then
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19849 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19851 # Extract the first word of "snmpget", so it can be a program name with args.
19852 set dummy snmpget; ac_word=$2
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19854 $as_echo_n "checking for $ac_word... " >&6; }
19855 if ${ac_cv_path_SNMPGET+:} false; then :
19856 $as_echo_n "(cached) " >&6
19860 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19864 for as_dir in $PATH
19867 test -z "$as_dir" && as_dir=.
19868 for ac_exec_ext in '' $ac_executable_extensions; do
19869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19870 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19881 SNMPGET=$ac_cv_path_SNMPGET
19882 if test -n "$SNMPGET"; then
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19884 $as_echo "$SNMPGET" >&6; }
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19887 $as_echo "no" >&6; }
19891 if test "x$ac_cv_path_SNMPGET" = "x"; then
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19893 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19896 # Extract the first word of "snmpwalk", so it can be a program name with args.
19897 set dummy snmpwalk; ac_word=$2
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19899 $as_echo_n "checking for $ac_word... " >&6; }
19900 if ${ac_cv_path_SNMPWALK+:} false; then :
19901 $as_echo_n "(cached) " >&6
19905 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19909 for as_dir in $PATH
19912 test -z "$as_dir" && as_dir=.
19913 for ac_exec_ext in '' $ac_executable_extensions; do
19914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19915 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19926 SNMPWALK=$ac_cv_path_SNMPWALK
19927 if test -n "$SNMPWALK"; then
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
19929 $as_echo "$SNMPWALK" >&6; }
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19932 $as_echo "no" >&6; }
19936 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19938 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19941 # Extract the first word of "rusers", so it can be a program name with args.
19942 set dummy rusers; ac_word=$2
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19944 $as_echo_n "checking for $ac_word... " >&6; }
19945 if ${ac_cv_path_RUSERS+:} false; then :
19946 $as_echo_n "(cached) " >&6
19950 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19954 for as_dir in $PATH
19957 test -z "$as_dir" && as_dir=.
19958 for ac_exec_ext in '' $ac_executable_extensions; do
19959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19960 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19968 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19972 RUSERS=$ac_cv_path_RUSERS
19973 if test -n "$RUSERS"; then
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
19975 $as_echo "$RUSERS" >&6; }
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19978 $as_echo "no" >&6; }
19983 missing_dir=`cd $ac_aux_dir && pwd`
19984 # expand $ac_aux_dir to an absolute path
19985 am_aux_dir=`cd $ac_aux_dir && pwd`
19987 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19988 # Use eval to expand $SHELL
19989 if eval "$MISSING --run true"; then
19990 am_missing_run="$MISSING --run "
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19994 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19998 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20001 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20004 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20007 # Extract the first word of "locate", so it can be a program name with args.
20008 set dummy locate; ac_word=$2
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20010 $as_echo_n "checking for $ac_word... " >&6; }
20011 if ${ac_cv_path_LOCATE+:} false; then :
20012 $as_echo_n "(cached) " >&6
20016 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20020 for as_dir in $PATH
20023 test -z "$as_dir" && as_dir=.
20024 for ac_exec_ext in '' $ac_executable_extensions; do
20025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20026 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20037 LOCATE=$ac_cv_path_LOCATE
20038 if test -n "$LOCATE"; then
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20040 $as_echo "$LOCATE" >&6; }
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20043 $as_echo "no" >&6; }
20047 # Extract the first word of "dirname", so it can be a program name with args.
20048 set dummy dirname; ac_word=$2
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20050 $as_echo_n "checking for $ac_word... " >&6; }
20051 if ${ac_cv_path_DIRNAME+:} false; then :
20052 $as_echo_n "(cached) " >&6
20056 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20060 for as_dir in $PATH
20063 test -z "$as_dir" && as_dir=.
20064 for ac_exec_ext in '' $ac_executable_extensions; do
20065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20066 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20077 DIRNAME=$ac_cv_path_DIRNAME
20078 if test -n "$DIRNAME"; then
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20080 $as_echo "$DIRNAME" >&6; }
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20083 $as_echo "no" >&6; }
20087 # Extract the first word of "grep", so it can be a program name with args.
20088 set dummy grep; ac_word=$2
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20090 $as_echo_n "checking for $ac_word... " >&6; }
20091 if ${ac_cv_path_GREP+:} false; then :
20092 $as_echo_n "(cached) " >&6
20096 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20100 for as_dir in $PATH
20103 test -z "$as_dir" && as_dir=.
20104 for ac_exec_ext in '' $ac_executable_extensions; do
20105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20106 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20117 GREP=$ac_cv_path_GREP
20118 if test -n "$GREP"; then
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20120 $as_echo "$GREP" >&6; }
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20123 $as_echo "no" >&6; }
20130 if test "x$WITH_THREADS" = "xyes"; then
20131 if test $ac_cv_prog_suncc = "yes"; then
20132 CFLAGS="$CFLAGS -mt"
20135 for ac_header in pthread.h
20137 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20138 if test "x$ac_cv_header_pthread_h" = xyes; then :
20139 cat >>confdefs.h <<_ACEOF
20140 #define HAVE_PTHREAD_H 1
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20151 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20152 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20153 $as_echo_n "(cached) " >&6
20155 ac_check_lib_save_LIBS=$LIBS
20156 LIBS="-lpthread $LIBS"
20157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20158 /* end confdefs.h. */
20160 /* Override any GCC internal prototype to avoid an error.
20161 Use char because int might match the return type of a GCC
20162 builtin and then its argument prototype would still apply. */
20166 char pthread_create ();
20170 return pthread_create ();
20175 if ac_fn_c_try_link "$LINENO"; then :
20176 ac_cv_lib_pthread_pthread_create=yes
20178 ac_cv_lib_pthread_pthread_create=no
20180 rm -f core conftest.err conftest.$ac_objext \
20181 conftest$ac_exeext conftest.$ac_ext
20182 LIBS=$ac_check_lib_save_LIBS
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20185 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20186 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20187 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20188 LIBS="-lpthread $LIBS"
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20191 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20192 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20193 $as_echo_n "(cached) " >&6
20195 ac_check_lib_save_LIBS=$LIBS
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20200 /* Override any GCC internal prototype to avoid an error.
20201 Use char because int might match the return type of a GCC
20202 builtin and then its argument prototype would still apply. */
20206 char pthread_create ();
20210 return pthread_create ();
20215 if ac_fn_c_try_link "$LINENO"; then :
20216 ac_cv_lib_c_r_pthread_create=yes
20218 ac_cv_lib_c_r_pthread_create=no
20220 rm -f core conftest.err conftest.$ac_objext \
20221 conftest$ac_exeext conftest.$ac_ext
20222 LIBS=$ac_check_lib_save_LIBS
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20225 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20226 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20227 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20238 if test "x$WITH_THREADS" != "xyes"; then
20240 ac_cv_header_pthread_h="no"
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20245 $as_echo_n "checking for library containing sem_init... " >&6; }
20246 if ${ac_cv_search_sem_init+:} false; then :
20247 $as_echo_n "(cached) " >&6
20249 ac_func_search_save_LIBS=$LIBS
20250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h. */
20253 /* Override any GCC internal prototype to avoid an error.
20254 Use char because int might match the return type of a GCC
20255 builtin and then its argument prototype would still apply. */
20263 return sem_init ();
20268 for ac_lib in '' pthread sem posix4 rt semaphore; do
20269 if test -z "$ac_lib"; then
20270 ac_res="none required"
20273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20275 if ac_fn_c_try_link "$LINENO"; then :
20276 ac_cv_search_sem_init=$ac_res
20278 rm -f core conftest.err conftest.$ac_objext \
20280 if ${ac_cv_search_sem_init+:} false; then :
20284 if ${ac_cv_search_sem_init+:} false; then :
20287 ac_cv_search_sem_init=no
20289 rm conftest.$ac_ext
20290 LIBS=$ac_func_search_save_LIBS
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20293 $as_echo "$ac_cv_search_sem_init" >&6; }
20294 ac_res=$ac_cv_search_sem_init
20295 if test "$ac_res" != no; then :
20296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20299 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
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20306 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20307 if ${ac_cv_lib_socket_getsockname+:} false; then :
20308 $as_echo_n "(cached) " >&6
20310 ac_check_lib_save_LIBS=$LIBS
20311 LIBS="-lsocket $LIBS"
20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h. */
20315 /* Override any GCC internal prototype to avoid an error.
20316 Use char because int might match the return type of a GCC
20317 builtin and then its argument prototype would still apply. */
20321 char getsockname ();
20325 return getsockname ();
20330 if ac_fn_c_try_link "$LINENO"; then :
20331 ac_cv_lib_socket_getsockname=yes
20333 ac_cv_lib_socket_getsockname=no
20335 rm -f core conftest.err conftest.$ac_objext \
20336 conftest$ac_exeext conftest.$ac_ext
20337 LIBS=$ac_check_lib_save_LIBS
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20340 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20341 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20342 cat >>confdefs.h <<_ACEOF
20343 #define HAVE_LIBSOCKET 1
20346 LIBS="-lsocket $LIBS"
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20352 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20353 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20354 $as_echo_n "(cached) " >&6
20356 ac_check_lib_save_LIBS=$LIBS
20357 LIBS="-lresolv $LIBS"
20358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359 /* end confdefs.h. */
20361 /* Override any GCC internal prototype to avoid an error.
20362 Use char because int might match the return type of a GCC
20363 builtin and then its argument prototype would still apply. */
20371 return inet_aton ();
20376 if ac_fn_c_try_link "$LINENO"; then :
20377 ac_cv_lib_resolv_inet_aton=yes
20379 ac_cv_lib_resolv_inet_aton=no
20381 rm -f core conftest.err conftest.$ac_objext \
20382 conftest$ac_exeext conftest.$ac_ext
20383 LIBS=$ac_check_lib_save_LIBS
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20386 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20387 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20388 cat >>confdefs.h <<_ACEOF
20389 #define HAVE_LIBRESOLV 1
20392 LIBS="-lresolv $LIBS"
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20398 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20399 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20400 $as_echo_n "(cached) " >&6
20402 ac_check_lib_save_LIBS=$LIBS
20404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20405 /* end confdefs.h. */
20407 /* Override any GCC internal prototype to avoid an error.
20408 Use char because int might match the return type of a GCC
20409 builtin and then its argument prototype would still apply. */
20417 return inet_ntoa ();
20422 if ac_fn_c_try_link "$LINENO"; then :
20423 ac_cv_lib_nsl_inet_ntoa=yes
20425 ac_cv_lib_nsl_inet_ntoa=no
20427 rm -f core conftest.err conftest.$ac_objext \
20428 conftest$ac_exeext conftest.$ac_ext
20429 LIBS=$ac_check_lib_save_LIBS
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20432 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20433 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20434 cat >>confdefs.h <<_ACEOF
20435 #define HAVE_LIBNSL 1
20444 if test "x$WITH_OPENSSL" = xyes; then
20446 old_LDFLAGS="$LDFLAGS"
20447 if test "x$OPENSSL_LIB_DIR" != "x"; then
20448 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20451 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20452 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20453 $as_echo_n "(cached) " >&6
20455 ac_check_lib_save_LIBS=$LIBS
20456 LIBS="-lcrypto $LIBS"
20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h. */
20460 /* Override any GCC internal prototype to avoid an error.
20461 Use char because int might match the return type of a GCC
20462 builtin and then its argument prototype would still apply. */
20475 if ac_fn_c_try_link "$LINENO"; then :
20476 ac_cv_lib_crypto_DH_new=yes
20478 ac_cv_lib_crypto_DH_new=no
20480 rm -f core conftest.err conftest.$ac_objext \
20481 conftest$ac_exeext conftest.$ac_ext
20482 LIBS=$ac_check_lib_save_LIBS
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20485 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20486 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20488 LIBS="-lcrypto $LIBS"
20490 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20493 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20494 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20495 $as_echo_n "(cached) " >&6
20497 ac_check_lib_save_LIBS=$LIBS
20499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20500 /* end confdefs.h. */
20502 /* Override any GCC internal prototype to avoid an error.
20503 Use char because int might match the return type of a GCC
20504 builtin and then its argument prototype would still apply. */
20517 if ac_fn_c_try_link "$LINENO"; then :
20518 ac_cv_lib_ssl_SSL_new=yes
20520 ac_cv_lib_ssl_SSL_new=no
20522 rm -f core conftest.err conftest.$ac_objext \
20523 conftest$ac_exeext conftest.$ac_ext
20524 LIBS=$ac_check_lib_save_LIBS
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20527 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20528 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20531 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20533 if test "x$OPENSSL_LIB_DIR" != "x"; then
20534 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20536 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20544 LDFLAGS="$old_LDFLAGS"
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20548 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20549 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20550 $as_echo_n "(cached) " >&6
20552 ac_check_lib_save_LIBS=$LIBS
20553 LIBS="-lws2_32 $LIBS"
20554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20555 /* end confdefs.h. */
20557 /* Override any GCC internal prototype to avoid an error.
20558 Use char because int might match the return type of a GCC
20559 builtin and then its argument prototype would still apply. */
20572 if ac_fn_c_try_link "$LINENO"; then :
20573 ac_cv_lib_ws2_32_htonl=yes
20575 ac_cv_lib_ws2_32_htonl=no
20577 rm -f core conftest.err conftest.$ac_objext \
20578 conftest$ac_exeext conftest.$ac_ext
20579 LIBS=$ac_check_lib_save_LIBS
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20582 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20583 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20584 cat >>confdefs.h <<_ACEOF
20585 #define HAVE_LIBWS2_32 1
20588 LIBS="-lws2_32 $LIBS"
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20595 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20596 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20597 $as_echo_n "(cached) " >&6
20599 ac_check_lib_save_LIBS=$LIBS
20600 LIBS="-lpcap $LIBS"
20601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20602 /* end confdefs.h. */
20604 /* Override any GCC internal prototype to avoid an error.
20605 Use char because int might match the return type of a GCC
20606 builtin and then its argument prototype would still apply. */
20610 char pcap_open_live ();
20614 return pcap_open_live ();
20619 if ac_fn_c_try_link "$LINENO"; then :
20620 ac_cv_lib_pcap_pcap_open_live=yes
20622 ac_cv_lib_pcap_pcap_open_live=no
20624 rm -f core conftest.err conftest.$ac_objext \
20625 conftest$ac_exeext conftest.$ac_ext
20626 LIBS=$ac_check_lib_save_LIBS
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20629 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20630 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20633 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20638 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20644 $as_echo_n "checking for a readline compatible library... " >&6; }
20645 if ${ac_cv_lib_readline+:} false; then :
20646 $as_echo_n "(cached) " >&6
20650 for readline_lib in readline edit editline; do
20651 for termcap_lib in "" termcap curses ncurses; do
20652 if test -z "$termcap_lib"; then
20653 TRY_LIB="-l$readline_lib"
20655 TRY_LIB="-l$readline_lib -l$termcap_lib"
20657 LIBS="$ORIG_LIBS $TRY_LIB"
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. */
20671 return readline ();
20676 if ac_fn_c_try_link "$LINENO"; then :
20677 ac_cv_lib_readline="$TRY_LIB"
20679 rm -f core conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20681 if test -n "$ac_cv_lib_readline"; then
20685 if test -n "$ac_cv_lib_readline"; then
20689 if test -z "$ac_cv_lib_readline"; then
20690 ac_cv_lib_readline="no"
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20696 $as_echo "$ac_cv_lib_readline" >&6; }
20698 if test "$ac_cv_lib_readline" != "no"; then
20699 LIBREADLINE="$ac_cv_lib_readline"
20701 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20703 for ac_header in readline.h readline/readline.h
20705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20706 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20707 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20708 cat >>confdefs.h <<_ACEOF
20709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20717 $as_echo_n "checking whether readline supports history... " >&6; }
20718 if ${ac_cv_lib_readline_history+:} false; then :
20719 $as_echo_n "(cached) " >&6
20722 ac_cv_lib_readline_history="no"
20723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20724 /* end confdefs.h. */
20726 /* Override any GCC internal prototype to avoid an error.
20727 Use char because int might match the return type of a GCC
20728 builtin and then its argument prototype would still apply. */
20732 char add_history ();
20736 return add_history ();
20741 if ac_fn_c_try_link "$LINENO"; then :
20742 ac_cv_lib_readline_history="yes"
20744 rm -f core conftest.err conftest.$ac_objext \
20745 conftest$ac_exeext conftest.$ac_ext
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20749 $as_echo "$ac_cv_lib_readline_history" >&6; }
20750 if test "$ac_cv_lib_readline_history" = "yes"; then
20752 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20754 for ac_header in history.h readline/history.h
20756 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20757 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20759 cat >>confdefs.h <<_ACEOF
20760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20775 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20778 CFLAGS="$CFLAGS -DDARWIN"
20779 LIBS="-framework DirectoryService $LIBS"
20783 ac_header_dirent=no
20784 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20785 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20787 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20788 if eval \${$as_ac_Header+:} false; then :
20789 $as_echo_n "(cached) " >&6
20791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h. */
20793 #include <sys/types.h>
20805 if ac_fn_c_try_compile "$LINENO"; then :
20806 eval "$as_ac_Header=yes"
20808 eval "$as_ac_Header=no"
20810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20812 eval ac_res=\$$as_ac_Header
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20814 $as_echo "$ac_res" >&6; }
20815 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20816 cat >>confdefs.h <<_ACEOF
20817 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20820 ac_header_dirent=$ac_hdr; break
20824 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20825 if test $ac_header_dirent = dirent.h; then
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20827 $as_echo_n "checking for library containing opendir... " >&6; }
20828 if ${ac_cv_search_opendir+:} false; then :
20829 $as_echo_n "(cached) " >&6
20831 ac_func_search_save_LIBS=$LIBS
20832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833 /* end confdefs.h. */
20835 /* Override any GCC internal prototype to avoid an error.
20836 Use char because int might match the return type of a GCC
20837 builtin and then its argument prototype would still apply. */
20850 for ac_lib in '' dir; do
20851 if test -z "$ac_lib"; then
20852 ac_res="none required"
20855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20857 if ac_fn_c_try_link "$LINENO"; then :
20858 ac_cv_search_opendir=$ac_res
20860 rm -f core conftest.err conftest.$ac_objext \
20862 if ${ac_cv_search_opendir+:} false; then :
20866 if ${ac_cv_search_opendir+:} false; then :
20869 ac_cv_search_opendir=no
20871 rm conftest.$ac_ext
20872 LIBS=$ac_func_search_save_LIBS
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20875 $as_echo "$ac_cv_search_opendir" >&6; }
20876 ac_res=$ac_cv_search_opendir
20877 if test "$ac_res" != no; then :
20878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20884 $as_echo_n "checking for library containing opendir... " >&6; }
20885 if ${ac_cv_search_opendir+:} false; then :
20886 $as_echo_n "(cached) " >&6
20888 ac_func_search_save_LIBS=$LIBS
20889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h. */
20892 /* Override any GCC internal prototype to avoid an error.
20893 Use char because int might match the return type of a GCC
20894 builtin and then its argument prototype would still apply. */
20907 for ac_lib in '' x; do
20908 if test -z "$ac_lib"; then
20909 ac_res="none required"
20912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20914 if ac_fn_c_try_link "$LINENO"; then :
20915 ac_cv_search_opendir=$ac_res
20917 rm -f core conftest.err conftest.$ac_objext \
20919 if ${ac_cv_search_opendir+:} false; then :
20923 if ${ac_cv_search_opendir+:} false; then :
20926 ac_cv_search_opendir=no
20928 rm conftest.$ac_ext
20929 LIBS=$ac_func_search_save_LIBS
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20932 $as_echo "$ac_cv_search_opendir" >&6; }
20933 ac_res=$ac_cv_search_opendir
20934 if test "$ac_res" != no; then :
20935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20942 $as_echo_n "checking for ANSI C header files... " >&6; }
20943 if ${ac_cv_header_stdc+:} false; then :
20944 $as_echo_n "(cached) " >&6
20946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20947 /* end confdefs.h. */
20948 #include <stdlib.h>
20949 #include <stdarg.h>
20950 #include <string.h>
20961 if ac_fn_c_try_compile "$LINENO"; then :
20962 ac_cv_header_stdc=yes
20964 ac_cv_header_stdc=no
20966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20968 if test $ac_cv_header_stdc = yes; then
20969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20971 /* end confdefs.h. */
20972 #include <string.h>
20975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20976 $EGREP "memchr" >/dev/null 2>&1; then :
20979 ac_cv_header_stdc=no
20985 if test $ac_cv_header_stdc = yes; then
20986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20988 /* end confdefs.h. */
20989 #include <stdlib.h>
20992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20993 $EGREP "free" >/dev/null 2>&1; then :
20996 ac_cv_header_stdc=no
21002 if test $ac_cv_header_stdc = yes; then
21003 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21004 if test "$cross_compiling" = yes; then :
21007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h. */
21010 #include <stdlib.h>
21011 #if ((' ' & 0x0FF) == 0x020)
21012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21015 # define ISLOWER(c) \
21016 (('a' <= (c) && (c) <= 'i') \
21017 || ('j' <= (c) && (c) <= 'r') \
21018 || ('s' <= (c) && (c) <= 'z'))
21019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21027 for (i = 0; i < 256; i++)
21028 if (XOR (islower (i), ISLOWER (i))
21029 || toupper (i) != TOUPPER (i))
21034 if ac_fn_c_try_run "$LINENO"; then :
21037 ac_cv_header_stdc=no
21039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21040 conftest.$ac_objext conftest.beam conftest.$ac_ext
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21046 $as_echo "$ac_cv_header_stdc" >&6; }
21047 if test $ac_cv_header_stdc = yes; then
21049 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21054 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21055 if ${ac_cv_header_time+:} false; then :
21056 $as_echo_n "(cached) " >&6
21058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21059 /* end confdefs.h. */
21060 #include <sys/types.h>
21061 #include <sys/time.h>
21067 if ((struct tm *) 0)
21073 if ac_fn_c_try_compile "$LINENO"; then :
21074 ac_cv_header_time=yes
21076 ac_cv_header_time=no
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21081 $as_echo "$ac_cv_header_time" >&6; }
21082 if test $ac_cv_header_time = yes; then
21084 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21089 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21090 if ${ac_cv_header_sys_wait_h+:} false; then :
21091 $as_echo_n "(cached) " >&6
21093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21094 /* end confdefs.h. */
21095 #include <sys/types.h>
21096 #include <sys/wait.h>
21097 #ifndef WEXITSTATUS
21098 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21101 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21109 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21114 if ac_fn_c_try_compile "$LINENO"; then :
21115 ac_cv_header_sys_wait_h=yes
21117 ac_cv_header_sys_wait_h=no
21119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21122 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21123 if test $ac_cv_header_sys_wait_h = yes; then
21125 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21171 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21172 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21173 cat >>confdefs.h <<_ACEOF
21174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21182 for ac_header in net/if.h
21184 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21185 # include <sys/socket.h>
21189 if test "x$ac_cv_header_net_if_h" = xyes; then :
21190 cat >>confdefs.h <<_ACEOF
21191 #define HAVE_NET_IF_H 1
21200 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21201 if test "x$ac_cv_header_regex_h" = xyes; then :
21203 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21208 if test "x$ac_cv_header_regex_h" = "xyes"; then
21211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21212 /* end confdefs.h. */
21214 #ifdef REG_EXTENDED
21219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21220 $EGREP "yes" >/dev/null 2>&1; then :
21222 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21231 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21234 $as_echo "#define OSFC2 /**/" >>confdefs.h
21238 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21241 $as_echo "#define OSFSIA /**/" >>confdefs.h
21245 OPENSSL_INCLUDE="-DNO_OPENSSL"
21246 if test "x$WITH_OPENSSL" = xyes; then
21247 if test "x$OPENSSL_LIBS" = "x"; then
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
21249 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21251 old_CPPFLAGS=$CPPFLAGS
21252 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21253 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21255 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21265 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21266 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21267 cat >>confdefs.h <<_ACEOF
21268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21278 if test "x$OPENSSL_LIBS" != "x"; then
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21280 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21282 /* end confdefs.h. */
21283 #include <openssl/crypto.h>
21284 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21290 $EGREP "yes" >/dev/null 2>&1; then :
21295 if test "x$goodssl" != "xyes"; then
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21297 $as_echo "no" >&6; }
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21301 $as_echo "yes" >&6; }
21302 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21303 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21305 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21309 CPPFLAGS=$old_CPPFLAGS
21314 export OPENSSL_LIBS
21316 if test "x$PCAP_LIBS" = x; then
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21318 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21320 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21321 if test "x$ac_cv_header_pcap_h" = xyes; then :
21323 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21328 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21335 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21336 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21337 $as_echo_n "(cached) " >&6
21339 ac_check_lib_save_LIBS=$LIBS
21340 LIBS="-lpcap $LIBS"
21341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21342 /* end confdefs.h. */
21344 /* Override any GCC internal prototype to avoid an error.
21345 Use char because int might match the return type of a GCC
21346 builtin and then its argument prototype would still apply. */
21350 char pcap_fopen_offline ();
21354 return pcap_fopen_offline ();
21359 if ac_fn_c_try_link "$LINENO"; then :
21360 ac_cv_lib_pcap_pcap_fopen_offline=yes
21362 ac_cv_lib_pcap_pcap_fopen_offline=no
21364 rm -f core conftest.err conftest.$ac_objext \
21365 conftest$ac_exeext conftest.$ac_ext
21366 LIBS=$ac_check_lib_save_LIBS
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21369 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21370 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21372 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21378 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21379 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21380 $as_echo_n "(cached) " >&6
21382 ac_check_lib_save_LIBS=$LIBS
21383 LIBS="-lpcap $LIBS"
21384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21385 /* end confdefs.h. */
21387 /* Override any GCC internal prototype to avoid an error.
21388 Use char because int might match the return type of a GCC
21389 builtin and then its argument prototype would still apply. */
21393 char pcap_dump_fopen ();
21397 return pcap_dump_fopen ();
21402 if ac_fn_c_try_link "$LINENO"; then :
21403 ac_cv_lib_pcap_pcap_dump_fopen=yes
21405 ac_cv_lib_pcap_pcap_dump_fopen=no
21407 rm -f core conftest.err conftest.$ac_objext \
21408 conftest$ac_exeext conftest.$ac_ext
21409 LIBS=$ac_check_lib_save_LIBS
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21412 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21413 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21415 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21424 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21425 if test "x$ac_cv_type_off_t" = xyes; then :
21429 cat >>confdefs.h <<_ACEOF
21430 #define off_t long int
21435 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21436 if test "x$ac_cv_type_pid_t" = xyes; then :
21440 cat >>confdefs.h <<_ACEOF
21446 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21447 if test "x$ac_cv_type_size_t" = xyes; then :
21451 cat >>confdefs.h <<_ACEOF
21452 #define size_t unsigned int
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21458 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21459 if ${ac_cv_type_uid_t+:} false; then :
21460 $as_echo_n "(cached) " >&6
21462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h. */
21464 #include <sys/types.h>
21467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21468 $EGREP "uid_t" >/dev/null 2>&1; then :
21469 ac_cv_type_uid_t=yes
21471 ac_cv_type_uid_t=no
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21477 $as_echo "$ac_cv_type_uid_t" >&6; }
21478 if test $ac_cv_type_uid_t = no; then
21480 $as_echo "#define uid_t int" >>confdefs.h
21483 $as_echo "#define gid_t int" >>confdefs.h
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21490 $as_echo_n "checking for socklen_t... " >&6; }
21491 if ${ac_cv_type_socklen_t+:} false; then :
21492 $as_echo_n "(cached) " >&6
21494 ac_cv_type_socklen_t=no
21495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21496 /* end confdefs.h. */
21497 #ifdef HAVE_SYS_TYPES_H
21498 #include <sys/types.h>
21500 #ifdef HAVE_SYS_SOCKET_H
21501 #include <sys/socket.h>
21512 if ac_fn_c_try_compile "$LINENO"; then :
21513 ac_cv_type_socklen_t=yes
21515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21520 $as_echo "$ac_cv_type_socklen_t" >&6; }
21522 if test "$ac_cv_type_socklen_t" != "yes"; then
21524 $as_echo "#define socklen_t int" >>confdefs.h
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21531 $as_echo_n "checking for uint8_t... " >&6; }
21532 if ${ac_cv_type_uint8_t+:} false; then :
21533 $as_echo_n "(cached) " >&6
21535 ac_cv_type_uint8_t=no
21536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21537 /* end confdefs.h. */
21538 #ifdef HAVE_INTTYPES_H
21539 #include <inttypes.h>
21541 #ifdef HAVE_STDINT_H
21542 #include <stdint.h>
21553 if ac_fn_c_try_compile "$LINENO"; then :
21554 ac_cv_type_uint8_t=yes
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21561 $as_echo "$ac_cv_type_uint8_t" >&6; }
21563 if test "$ac_cv_type_uint8_t" != "yes"; then
21565 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21572 $as_echo_n "checking for uint16_t... " >&6; }
21573 if ${ac_cv_type_uint16_t+:} false; then :
21574 $as_echo_n "(cached) " >&6
21576 ac_cv_type_uint16_t=no
21577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21578 /* end confdefs.h. */
21579 #ifdef HAVE_INTTYPES_H
21580 #include <inttypes.h>
21582 #ifdef HAVE_STDINT_H
21583 #include <stdint.h>
21594 if ac_fn_c_try_compile "$LINENO"; then :
21595 ac_cv_type_uint16_t=yes
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21602 $as_echo "$ac_cv_type_uint16_t" >&6; }
21604 if test "$ac_cv_type_uint16_t" != "yes"; then
21606 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21613 $as_echo_n "checking for uint32_t... " >&6; }
21614 if ${ac_cv_type_uint32_t+:} false; then :
21615 $as_echo_n "(cached) " >&6
21617 ac_cv_type_uint32_t=no
21618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21619 /* end confdefs.h. */
21620 #ifdef HAVE_INTTYPES_H
21621 #include <inttypes.h>
21623 #ifdef HAVE_STDINT_H
21624 #include <stdint.h>
21635 if ac_fn_c_try_compile "$LINENO"; then :
21636 ac_cv_type_uint32_t=yes
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21643 $as_echo "$ac_cv_type_uint32_t" >&6; }
21645 if test "$ac_cv_type_uint32_t" != "yes"; then
21647 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21652 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21653 #ifdef HAVE_NETINET_IN_H
21654 #include <netinet/in.h>
21658 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21660 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21665 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21666 #ifdef HAVE_NETINET_IN_H
21667 #include <netinet/in.h>
21669 #ifdef HAVE_SYS_SOCKET_H
21670 #include <sys/socket.h>
21674 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21676 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21681 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21682 #ifdef HAVE_NETINET_IN_H
21683 #include <netinet/in.h>
21687 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21689 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21694 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21695 #ifdef HAVE_SYS_TYPES_H
21696 #include <sys/types.h>
21698 #ifdef HAVE_SYS_SOCKET_H
21699 #include <sys/socket.h>
21701 #ifdef HAVE_NETDB_H
21706 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21708 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21749 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21750 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21751 cat >>confdefs.h <<_ACEOF
21752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21769 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
21770 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
21771 $as_echo_n "(cached) " >&6
21773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21774 /* end confdefs.h. */
21777 #include <string.h>
21778 #ifdef HAVE_UNISTD_H
21779 #include <unistd.h>
21781 #ifdef HAVE_CRYPT_H
21784 #ifdef HAVE_ERRNO_H
21787 #ifdef HAVE_RESOURCE_H
21788 #include <resource.h>
21790 #ifdef HAVE_GETOPT_H
21791 #include <getopt.h>
21793 #ifdef HAVE_MALLOC_H
21794 #include <malloc.h>
21799 #ifdef HAVE_UTMPX_H
21802 #ifdef HAVE_SYS_SELECT_H
21803 #include <sys/select.h>
21805 #ifdef HAVE_DLFCN_H
21808 #ifdef HAVE_REGEX_H
21811 #ifdef HAVE_SYSLOG_H
21812 #include <syslog.h>
21814 #ifdef HAVE_INTTYPES_H
21815 #include <inttypes.h>
21817 #ifdef HAVE_STDINT_H
21818 #include <stdint.h>
21820 #ifdef HAVE_ARPA_INET_H
21821 #include <arpa/inet.h>
21827 char *(*pfn) = (char *(*)) $ac_func
21832 if ac_fn_c_try_compile "$LINENO"; then :
21833 eval "radius_cv_decl_needed_$ac_func=no"
21835 eval "radius_cv_decl_needed_$ac_func=yes"
21837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21840 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21842 $as_echo "yes" >&6; }
21843 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21844 cat >>confdefs.h <<_ACEOF
21845 #define $radius_tr_decl 1
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21857 $as_echo_n "checking return type of signal handlers... " >&6; }
21858 if ${ac_cv_type_signal+:} false; then :
21859 $as_echo_n "(cached) " >&6
21861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h. */
21863 #include <sys/types.h>
21864 #include <signal.h>
21869 return *(signal (0, 0)) (0) == 1;
21874 if ac_fn_c_try_compile "$LINENO"; then :
21875 ac_cv_type_signal=int
21877 ac_cv_type_signal=void
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21882 $as_echo "$ac_cv_type_signal" >&6; }
21884 cat >>confdefs.h <<_ACEOF
21885 #define RETSIGTYPE $ac_cv_type_signal
21890 if test "x$ac_cv_header_utmpx_h" = "xyes"
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
21894 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
21897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21898 /* end confdefs.h. */
21901 #ifdef HAVE_STDDEF_H
21902 #include <stddef.h>
21905 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21911 int foo = offsetof(struct utmpx, ut_xtime)
21916 if ac_fn_c_try_compile "$LINENO"; then :
21921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
21924 if test "x$has_element" != "x"; then
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21926 $as_echo "yes" >&6; }
21927 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930 $as_echo "no" >&6; }
21931 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
21934 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
21937 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
21944 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
21947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21950 #include <netinet/in.h>
21951 #ifdef HAVE_STDDEF_H
21952 #include <stddef.h>
21955 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21961 int foo = offsetof(struct in_pktinfo, ipi_addr)
21966 if ac_fn_c_try_compile "$LINENO"; then :
21971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
21974 if test "x$has_element" != "x"; then
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21976 $as_echo "yes" >&6; }
21977 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21980 $as_echo "no" >&6; }
21981 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
21984 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
21987 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
21993 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
21996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21997 /* end confdefs.h. */
21999 #include <netinet/in.h>
22000 #ifdef HAVE_STDDEF_H
22001 #include <stddef.h>
22004 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22010 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22015 if ac_fn_c_try_compile "$LINENO"; then :
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22023 if test "x$has_element" != "x"; then
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22025 $as_echo "yes" >&6; }
22026 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22029 $as_echo "no" >&6; }
22030 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22033 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22036 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22042 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22043 if ${ac_cv_c_const+:} false; then :
22044 $as_echo_n "(cached) " >&6
22046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h. */
22053 #ifndef __cplusplus
22054 /* Ultrix mips cc rejects this sort of thing. */
22055 typedef int charset[2];
22056 const charset cs = { 0, 0 };
22057 /* SunOS 4.1.1 cc rejects this. */
22058 char const *const *pcpcc;
22060 /* NEC SVR4.0.2 mips cc rejects this. */
22061 struct point {int x, y;};
22062 static struct point const zero = {0,0};
22063 /* AIX XL C 1.02.0.0 rejects this.
22064 It does not let you subtract one const X* pointer from another in
22065 an arm of an if-expression whose if-part is not a constant
22067 const char *g = "string";
22068 pcpcc = &g + (g ? g-g : 0);
22069 /* HPUX 7.0 cc rejects these. */
22071 ppc = (char**) pcpcc;
22072 pcpcc = (char const *const *) ppc;
22073 { /* SCO 3.2v4 cc rejects this sort of thing. */
22076 char const *s = 0 ? (char *) 0 : (char const *) 0;
22081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22082 int x[] = {25, 17};
22083 const int *foo = &x[0];
22086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22087 typedef const int *iptr;
22091 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22093 struct s { int j; const int *ap[3]; } bx;
22094 struct s *b = &bx; b->j = 5;
22096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22097 const int foo = 10;
22098 if (!foo) return 0;
22100 return !cs[0] && !zero.x;
22107 if ac_fn_c_try_compile "$LINENO"; then :
22112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22115 $as_echo "$ac_cv_c_const" >&6; }
22116 if test $ac_cv_c_const = no; then
22118 $as_echo "#define const /**/" >>confdefs.h
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22124 $as_echo_n "checking type of OS... " >&6; }
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22127 $as_echo "$OS" >&6; }
22128 if test "$OS" = "OS/2"; then
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22136 $as_echo_n "checking for developer gcc flags... " >&6; }
22137 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22138 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22139 CFLAGS="$CFLAGS $devflags"
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
22142 $as_echo "yes. Using $devflags" >&6; }
22145 CFLAGS="$CFLAGS -DNDEBUG"
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22148 $as_echo "no." >&6; }
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22153 $as_echo_n "checking for TLS... " >&6; }
22154 if test "$cross_compiling" = yes; then :
22157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h. */
22159 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22161 if ac_fn_c_try_run "$LINENO"; then :
22166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22167 conftest.$ac_objext conftest.beam conftest.$ac_ext
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22171 $as_echo "$have_tls" >&6; }
22172 if test "$have_tls" = "yes"; then
22174 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22181 LIBS="$LIBS $LIBLTDL"
22182 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22183 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22185 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22192 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22193 if ${ac_cv_lib_crypt_crypt+:} false; then :
22194 $as_echo_n "(cached) " >&6
22196 ac_check_lib_save_LIBS=$LIBS
22197 LIBS="-lcrypt $LIBS"
22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h. */
22201 /* Override any GCC internal prototype to avoid an error.
22202 Use char because int might match the return type of a GCC
22203 builtin and then its argument prototype would still apply. */
22216 if ac_fn_c_try_link "$LINENO"; then :
22217 ac_cv_lib_crypt_crypt=yes
22219 ac_cv_lib_crypt_crypt=no
22221 rm -f core conftest.err conftest.$ac_objext \
22222 conftest$ac_exeext conftest.$ac_ext
22223 LIBS=$ac_check_lib_save_LIBS
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22226 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22227 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22232 if test "$CRYPTLIB" != ""; then
22234 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22237 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22238 if test "x$ac_cv_func_crypt" = xyes; then :
22240 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22247 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22248 if ${ac_cv_lib_cipher_setkey+:} false; then :
22249 $as_echo_n "(cached) " >&6
22251 ac_check_lib_save_LIBS=$LIBS
22252 LIBS="-lcipher $LIBS"
22253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h. */
22256 /* Override any GCC internal prototype to avoid an error.
22257 Use char because int might match the return type of a GCC
22258 builtin and then its argument prototype would still apply. */
22271 if ac_fn_c_try_link "$LINENO"; then :
22272 ac_cv_lib_cipher_setkey=yes
22274 ac_cv_lib_cipher_setkey=no
22276 rm -f core conftest.err conftest.$ac_objext \
22277 conftest$ac_exeext conftest.$ac_ext
22278 LIBS=$ac_check_lib_save_LIBS
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22281 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22282 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22283 CRYPTLIB="${CRYPTLIB} -lcipher"
22290 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22293 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22296 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22298 gethostbyaddrrstyle=""
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22300 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22303 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22304 #ifdef HAVE_NETDB_H
22309 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22315 cat >>confdefs.h <<_ACEOF
22316 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22318 if test $ac_have_decl = 1; then :
22323 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22325 gethostbyaddrrstyle=BSD
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22327 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22333 if test "x$gethostbyaddrrstyle" = "x"; then
22334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h. */
22343 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22348 if ac_fn_c_try_link "$LINENO"; then :
22351 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22353 gethostbyaddrrstyle=GNU
22356 rm -f core conftest.err conftest.$ac_objext \
22357 conftest$ac_exeext conftest.$ac_ext
22359 if test "x$gethostbyaddrrstyle" = "x"; then
22360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361 /* end confdefs.h. */
22369 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22374 if ac_fn_c_try_link "$LINENO"; then :
22377 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22379 gethostbyaddrrstyle=SYSV
22382 rm -f core conftest.err conftest.$ac_objext \
22383 conftest$ac_exeext conftest.$ac_ext
22385 if test "x$gethostbyaddrrstyle" = "x"; then
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22395 gethostbyaddr(NULL, 0, 0)
22400 if ac_fn_c_try_link "$LINENO"; then :
22403 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22405 gethostbyaddrrstyle=BSD
22408 rm -f core conftest.err conftest.$ac_objext \
22409 conftest$ac_exeext conftest.$ac_ext
22412 if test "x$gethostbyaddrrstyle" = "x"; then
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22414 $as_echo "none! It must not exist, here." >&6; }
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22417 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22420 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22422 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22425 gethostbynamerstyle=""
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22427 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429 /* end confdefs.h. */
22437 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22442 if ac_fn_c_try_link "$LINENO"; then :
22445 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22447 gethostbynamerstyle=GNU
22450 rm -f core conftest.err conftest.$ac_objext \
22451 conftest$ac_exeext conftest.$ac_ext
22452 if test "x$gethostbynamerstyle" = "x"; then
22453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h. */
22462 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22467 if ac_fn_c_try_link "$LINENO"; then :
22470 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22472 gethostbynamerstyle=SYSV
22475 rm -f core conftest.err conftest.$ac_objext \
22476 conftest$ac_exeext conftest.$ac_ext
22478 if test "x$gethostbynamerstyle" = "x"; then
22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h. */
22488 gethostbyname(NULL)
22493 if ac_fn_c_try_link "$LINENO"; then :
22496 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22498 gethostbynamerstyle=BSD
22501 rm -f core conftest.err conftest.$ac_objext \
22502 conftest$ac_exeext conftest.$ac_ext
22505 if test "x$gethostbynamerstyle" = "x"; then
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22507 $as_echo "none! It must not exist, here." >&6; }
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22510 $as_echo "${gethostbynamerstyle}-style" >&6; }
22513 if test "x$gethostbynamerstyle" = "xBSD"; then
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22515 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22519 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22522 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22526 $as_echo_n "checking ctime_r() syntax... " >&6; }
22527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22528 /* end confdefs.h. */
22535 ctime_r(NULL, NULL, 0)
22540 if ac_fn_c_try_link "$LINENO"; then :
22543 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22545 ctimerstyle="SOLARIS"
22548 rm -f core conftest.err conftest.$ac_objext \
22549 conftest$ac_exeext conftest.$ac_ext
22550 if test "x$ctimerstyle" = "x"; then
22551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h. */
22559 ctime_r(NULL, NULL)
22564 if ac_fn_c_try_link "$LINENO"; then :
22567 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22569 ctimerstyle="POSIX"
22572 rm -f core conftest.err conftest.$ac_objext \
22573 conftest$ac_exeext conftest.$ac_ext
22576 if test "x$ctimerstyle" = "x"; then
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22578 $as_echo "none! It must not exist, here." >&6; }
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22581 $as_echo "${ctimerstyle}-style" >&6; }
22587 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22589 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22595 export top_builddir
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22597 $as_echo "top_builddir=$top_builddir" >&6; }
22603 mysubdirs="$LIBLTDLPATH"
22604 if test "x$EXPERIMENTAL" = "xyes"; then
22605 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22606 mysubdirs=`echo $mysubdirs $bar`
22608 for bar in `cat "${srcdir}"/src/modules/stable`; do
22609 if test -f "${srcdir}"/src/modules/$bar/configure; then
22610 mysubdirs="$mysubdirs src/modules/$bar"
22615 if test "x$EXPERIMENTAL" = "xyes"; then
22616 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22617 MODULES="$MODULES $foo"
22620 for foo in `cat "${srcdir}"/src/modules/stable`; do
22621 MODULES="$MODULES $foo"
22627 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22632 ac_config_commands="$ac_config_commands stamp-h"
22634 ac_config_commands="$ac_config_commands build-radpaths-h"
22636 ac_config_commands="$ac_config_commands main-chmod"
22638 ac_config_commands="$ac_config_commands scripts-chmod"
22644 USE_SHARED_LIBS=$enable_shared
22646 USE_STATIC_LIBS=$enable_static
22657 unset ac_cv_env_LIBS_set
22658 unset ac_cv_env_LIBS_value
22660 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"
22662 cat >confcache <<\_ACEOF
22663 # This file is a shell script that caches the results of configure
22664 # tests run on this system so they can be shared between configure
22665 # scripts and configure runs, see configure's option --config-cache.
22666 # It is not useful on other systems. If it contains results you don't
22667 # want to keep, you may remove or edit it.
22669 # config.status only pays attention to the cache file if you give it
22670 # the --recheck option to rerun configure.
22672 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22673 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22674 # following values.
22678 # The following way of writing the cache mishandles newlines in values,
22679 # but we know of no workaround that is simple, portable, and efficient.
22680 # So, we kill variables containing newlines.
22681 # Ultrix sh set writes to stderr and can't be redirected directly,
22682 # and sets the high bit in the cache file unless we assign to the vars.
22684 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22685 eval ac_val=\$$ac_var
22689 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22690 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22693 _ | IFS | as_nl) ;; #(
22694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22695 *) { eval $ac_var=; unset $ac_var;} ;;
22701 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22702 *${as_nl}ac_space=\ *)
22703 # `set' does not quote correctly, so add quotes: double-quote
22704 # substitution turns \\\\ into \\, and sed turns \\ into \.
22707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22710 # `set' quotes correctly as required by POSIX, so do not add quotes.
22711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22724 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22725 if test -w "$cache_file"; then
22726 if test "x$cache_file" != "x/dev/null"; then
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22728 $as_echo "$as_me: updating cache $cache_file" >&6;}
22729 if test ! -f "$cache_file" || test -h "$cache_file"; then
22730 cat confcache >"$cache_file"
22732 case $cache_file in #(
22734 mv -f confcache "$cache_file"$$ &&
22735 mv -f "$cache_file"$$ "$cache_file" ;; #(
22737 mv -f confcache "$cache_file" ;;
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22749 # Let make expand exec_prefix.
22750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22752 DEFS=-DHAVE_CONFIG_H
22757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22758 # 1. Remove the extension, and $U if already installed.
22759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22760 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22762 # will be set to the directory where LIBOBJS objects are built.
22763 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22764 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22766 LIBOBJS=$ac_libobjs
22768 LTLIBOBJS=$ac_ltlibobjs
22773 : "${CONFIG_STATUS=./config.status}"
22775 ac_clean_files_save=$ac_clean_files
22776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22778 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22780 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22782 # Generated by $as_me.
22783 # Run this file to recreate the current configuration.
22784 # Compiler output produced by configure, useful for debugging
22785 # configure, is in config.log if it exists.
22788 ac_cs_recheck=false
22791 SHELL=\${CONFIG_SHELL-$SHELL}
22794 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22795 ## -------------------- ##
22796 ## M4sh Initialization. ##
22797 ## -------------------- ##
22799 # Be more Bourne compatible
22800 DUALCASE=1; export DUALCASE # for MKS sh
22801 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22804 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22805 # is contrary to our usage. Disable this feature.
22806 alias -g '${1+"$@"}'='"$@"'
22807 setopt NO_GLOB_SUBST
22809 case `(set -o) 2>/dev/null` in #(
22821 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22822 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22823 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22824 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22825 # Prefer a ksh shell builtin over an external printf program on Solaris,
22826 # but without wasting forks for bash or zsh.
22827 if test -z "$BASH_VERSION$ZSH_VERSION" \
22828 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22829 as_echo='print -r --'
22830 as_echo_n='print -rn --'
22831 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22832 as_echo='printf %s\n'
22833 as_echo_n='printf %s'
22835 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22836 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22837 as_echo_n='/usr/ucb/echo -n'
22839 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22840 as_echo_n_body='eval
22844 expr "X$arg" : "X\\(.*\\)$as_nl";
22845 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22847 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22849 export as_echo_n_body
22850 as_echo_n='sh -c $as_echo_n_body as_echo'
22852 export as_echo_body
22853 as_echo='sh -c $as_echo_body as_echo'
22856 # The user is always right.
22857 if test "${PATH_SEPARATOR+set}" != set; then
22859 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22860 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22867 # We need space, tab and new line, in precisely that order. Quoting is
22868 # there to prevent editors from complaining about space-tab.
22869 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22870 # splitting by setting IFS to empty value.)
22873 # Find who we are. Look in the path if we contain no directory separator.
22876 *[\\/]* ) as_myself=$0 ;;
22877 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22878 for as_dir in $PATH
22881 test -z "$as_dir" && as_dir=.
22882 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22888 # We did not find ourselves, most probably we were run as `sh COMMAND'
22889 # in which case we are not to be found in the path.
22890 if test "x$as_myself" = x; then
22893 if test ! -f "$as_myself"; then
22894 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22898 # Unset variables that we do not need and which cause bugs (e.g. in
22899 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22900 # suppresses any "Segmentation fault" message there. '((' could
22901 # trigger a bug in pdksh 5.2.14.
22902 for as_var in BASH_ENV ENV MAIL MAILPATH
22903 do eval test x\${$as_var+set} = xset \
22904 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22917 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22920 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22921 # ----------------------------------------
22922 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22923 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22924 # script with STATUS, using 1 if that was 0.
22927 as_status=$1; test $as_status -eq 0 && as_status=1
22929 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22930 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22932 $as_echo "$as_me: error: $2" >&2
22933 as_fn_exit $as_status
22937 # as_fn_set_status STATUS
22938 # -----------------------
22939 # Set $? to STATUS, without forking.
22940 as_fn_set_status ()
22943 } # as_fn_set_status
22945 # as_fn_exit STATUS
22946 # -----------------
22947 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22951 as_fn_set_status $1
22957 # Portably unset VAR.
22960 { eval $1=; unset $1;}
22962 as_unset=as_fn_unset
22963 # as_fn_append VAR VALUE
22964 # ----------------------
22965 # Append the text in VALUE to the end of the definition contained in VAR. Take
22966 # advantage of any shell optimizations that allow amortized linear growth over
22967 # repeated appends, instead of the typical quadratic growth present in naive
22969 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22970 eval 'as_fn_append ()
22981 # as_fn_arith ARG...
22982 # ------------------
22983 # Perform arithmetic evaluation on the ARGs, and store the result in the
22984 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22985 # must be portable across $(()) and expr.
22986 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22987 eval 'as_fn_arith ()
22994 as_val=`expr "$@" || test $? -eq 1`
22999 if expr a : '\(a\)' >/dev/null 2>&1 &&
23000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23006 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23007 as_basename=basename
23012 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23018 as_me=`$as_basename -- "$0" ||
23019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23020 X"$0" : 'X\(//\)$' \| \
23021 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23023 sed '/^.*\/\([^/][^/]*\)\/*$/{
23037 # Avoid depending upon Character Ranges.
23038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23041 as_cr_digits='0123456789'
23042 as_cr_alnum=$as_cr_Letters$as_cr_digits
23044 ECHO_C= ECHO_N= ECHO_T=
23045 case `echo -n x` in #(((((
23047 case `echo 'xy\c'` in
23048 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23050 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23057 rm -f conf$$ conf$$.exe conf$$.file
23058 if test -d conf$$.dir; then
23059 rm -f conf$$.dir/conf$$.file
23062 mkdir conf$$.dir 2>/dev/null
23064 if (echo >conf$$.file) 2>/dev/null; then
23065 if ln -s conf$$.file conf$$ 2>/dev/null; then
23067 # ... but there are two gotchas:
23068 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23069 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23070 # In both cases, we have to default to `cp -pR'.
23071 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23073 elif ln conf$$.file conf$$ 2>/dev/null; then
23081 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23082 rmdir conf$$.dir 2>/dev/null
23087 # Create "$as_dir" as a directory, including parents if necessary.
23092 -*) as_dir=./$as_dir;;
23094 test -d "$as_dir" || eval $as_mkdir_p || {
23098 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23099 *) as_qdir=$as_dir;;
23101 as_dirs="'$as_qdir' $as_dirs"
23102 as_dir=`$as_dirname -- "$as_dir" ||
23103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23104 X"$as_dir" : 'X\(//\)[^/]' \| \
23105 X"$as_dir" : 'X\(//\)$' \| \
23106 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23107 $as_echo X"$as_dir" |
23108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23112 /^X\(\/\/\)[^/].*/{
23125 test -d "$as_dir" && break
23127 test -z "$as_dirs" || eval "mkdir $as_dirs"
23128 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23132 if mkdir -p . 2>/dev/null; then
23133 as_mkdir_p='mkdir -p "$as_dir"'
23135 test -d ./-p && rmdir ./-p
23140 # as_fn_executable_p FILE
23141 # -----------------------
23142 # Test if FILE is an executable regular file.
23143 as_fn_executable_p ()
23145 test -f "$1" && test -x "$1"
23146 } # as_fn_executable_p
23147 as_test_x='test -x'
23148 as_executable_p=as_fn_executable_p
23150 # Sed expression to map a string onto a valid CPP name.
23151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23153 # Sed expression to map a string onto a valid variable name.
23154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23158 ## ----------------------------------- ##
23159 ## Main body of $CONFIG_STATUS script. ##
23160 ## ----------------------------------- ##
23162 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23165 # Save the log message, to keep $0 and so on meaningful, and to
23166 # report actual input values of CONFIG_FILES etc. instead of their
23167 # values after options handling.
23169 This file was extended by $as_me, which was
23170 generated by GNU Autoconf 2.69. Invocation command line was
23172 CONFIG_FILES = $CONFIG_FILES
23173 CONFIG_HEADERS = $CONFIG_HEADERS
23174 CONFIG_LINKS = $CONFIG_LINKS
23175 CONFIG_COMMANDS = $CONFIG_COMMANDS
23178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23183 case $ac_config_files in *"
23184 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23187 case $ac_config_headers in *"
23188 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23193 # Files that config.status was made for.
23194 config_files="$ac_config_files"
23195 config_headers="$ac_config_headers"
23196 config_commands="$ac_config_commands"
23200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23202 \`$as_me' instantiates files and other configuration actions
23203 from templates according to the current configuration. Unless the files
23204 and actions are specified as TAGs, all are instantiated by default.
23206 Usage: $0 [OPTION]... [TAG]...
23208 -h, --help print this help, then exit
23209 -V, --version print version number and configuration settings, then exit
23210 --config print configuration, then exit
23211 -q, --quiet, --silent
23212 do not print progress messages
23213 -d, --debug don't remove temporary files
23214 --recheck update $as_me by reconfiguring in the same conditions
23215 --file=FILE[:TEMPLATE]
23216 instantiate the configuration file FILE
23217 --header=FILE[:TEMPLATE]
23218 instantiate the configuration header FILE
23220 Configuration files:
23223 Configuration headers:
23226 Configuration commands:
23229 Report bugs to the package provider."
23232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23233 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23236 configured by $0, generated by GNU Autoconf 2.69,
23237 with options \\"\$ac_cs_config\\"
23239 Copyright (C) 2012 Free Software Foundation, Inc.
23240 This config.status script is free software; the Free Software Foundation
23241 gives unlimited permission to copy, distribute and modify it."
23245 test -n "\$AWK" || AWK=awk
23248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23249 # The default lists apply if the user does not specify any file.
23255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23256 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23260 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23272 # Handling of the options.
23273 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23275 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23276 $as_echo "$ac_cs_version"; exit ;;
23277 --config | --confi | --conf | --con | --co | --c )
23278 $as_echo "$ac_cs_config"; exit ;;
23279 --debug | --debu | --deb | --de | --d | -d )
23281 --file | --fil | --fi | --f )
23284 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23285 '') as_fn_error $? "missing file argument" ;;
23287 as_fn_append CONFIG_FILES " '$ac_optarg'"
23288 ac_need_defaults=false;;
23289 --header | --heade | --head | --hea )
23292 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23294 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23295 ac_need_defaults=false;;
23297 # Conflict between --help and --header
23298 as_fn_error $? "ambiguous option: \`$1'
23299 Try \`$0 --help' for more information.";;
23300 --help | --hel | -h )
23301 $as_echo "$ac_cs_usage"; exit ;;
23302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23306 # This is an error.
23307 -*) as_fn_error $? "unrecognized option: \`$1'
23308 Try \`$0 --help' for more information." ;;
23310 *) as_fn_append ac_config_targets " $1"
23311 ac_need_defaults=false ;;
23317 ac_configure_extra_args=
23319 if $ac_cs_silent; then
23321 ac_configure_extra_args="$ac_configure_extra_args --silent"
23325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23326 if \$ac_cs_recheck; then
23327 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23329 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23330 CONFIG_SHELL='$SHELL'
23331 export CONFIG_SHELL
23336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23341 ## Running $as_me. ##
23347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23352 # Handling of arguments.
23353 for ac_config_target in $ac_config_targets
23355 case $ac_config_target in
23356 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23357 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23358 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23359 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23360 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23361 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23362 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23363 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23364 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23365 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23366 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23367 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23368 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23369 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23370 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23371 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23372 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23373 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23374 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23376 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23381 # If the user did not use the arguments to specify the items to instantiate,
23382 # then the envvar interface is used. Set only those that are not.
23383 # We use the long form for the default assignment because of an extremely
23384 # bizarre bug on SunOS 4.1.3.
23385 if $ac_need_defaults; then
23386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23388 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23391 # Have a temporary directory for convenience. Make it in the build tree
23392 # simply because there is no reason against having it here, and in addition,
23393 # creating and moving files from /tmp can sometimes cause problems.
23394 # Hook for its removal unless debugging.
23395 # Note that there is a small window in which the directory will not be cleaned:
23396 # after its creation but before its name has been assigned to `$tmp'.
23400 trap 'exit_status=$?
23401 : "${ac_tmp:=$tmp}"
23402 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23404 trap 'as_fn_exit 1' 1 2 13 15
23406 # Create a (secure) tmp directory for tmp files.
23409 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23413 tmp=./conf$$-$RANDOM
23414 (umask 077 && mkdir "$tmp")
23415 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23418 # Set up the scripts for CONFIG_FILES section.
23419 # No need to generate them if there are no CONFIG_FILES.
23420 # This happens for instance with `./config.status config.h'.
23421 if test -n "$CONFIG_FILES"; then
23424 ac_cr=`echo X | tr X '\015'`
23425 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23426 # But we know of no other shell where ac_cr would be empty at this
23427 # point, so we can use a bashism as a fallback.
23428 if test "x$ac_cr" = x; then
23429 eval ac_cr=\$\'\\r\'
23431 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23432 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23435 ac_cs_awk_cr=$ac_cr
23438 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23443 echo "cat >conf$$subs.awk <<_ACEOF" &&
23444 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23446 } >conf$$subs.sh ||
23447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23448 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23450 for ac_last_try in false false false false false :; do
23451 . ./conf$$subs.sh ||
23452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23454 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23455 if test $ac_delim_n = $ac_delim_num; then
23457 elif $ac_last_try; then
23458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23463 rm -f conf$$subs.sh
23465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23466 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23470 s/^/S["/; s/!.*/"]=/
23480 s/\(.\{148\}\)..*/\1/
23482 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23487 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23494 s/\(.\{148\}\)..*/\1/
23496 s/["\\]/\\&/g; s/^/"/; s/$/"/
23500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23505 ' <conf$$subs.awk | sed '
23510 ' >>$CONFIG_STATUS || ac_write_fail=1
23511 rm -f conf$$subs.awk
23512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23514 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23515 for (key in S) S_is_set[key] = 1
23521 nfields = split(line, field, "@")
23523 len = length(field[1])
23524 for (i = 2; i < nfields; i++) {
23526 keylen = length(key)
23527 if (S_is_set[key]) {
23529 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23530 len += length(value) + length(field[++i])
23541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23542 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23543 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23546 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23547 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23550 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23551 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23552 # trailing colons and then remove the whole line if VPATH becomes empty
23553 # (actually we leave an empty line to preserve line numbers).
23554 if test "x$srcdir" = x.; then
23555 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23574 fi # test -n "$CONFIG_FILES"
23576 # Set up the scripts for CONFIG_HEADERS section.
23577 # No need to generate them if there are no CONFIG_HEADERS.
23578 # This happens for instance with `./config.status Makefile'.
23579 if test -n "$CONFIG_HEADERS"; then
23580 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23584 # Transform confdefs.h into an awk script `defines.awk', embedded as
23585 # here-document in config.status, that substitutes the proper values into
23586 # config.h.in to produce config.h.
23588 # Create a delimiter string that does not exist in confdefs.h, to ease
23589 # handling of long lines.
23591 for ac_last_try in false false :; do
23592 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23593 if test -z "$ac_tt"; then
23595 elif $ac_last_try; then
23596 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23602 # For the awk script, D is an array of macro values keyed by name,
23603 # likewise P contains macro parameters if any. Preserve backslash
23604 # newline sequences.
23606 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23608 s/.\{148\}/&'"$ac_delim"'/g
23611 s/^[ ]*#[ ]*define[ ][ ]*/ /
23618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23620 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23625 D["\1"]=" \3\\\\\\n"\\/p
23627 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23632 s/.\{148\}/&'"$ac_delim"'/g
23637 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23640 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23642 ' <confdefs.h | sed '
23643 s/'"$ac_delim"'/"\\\
23644 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23647 for (key in D) D_is_set[key] = 1
23650 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23652 split(line, arg, " ")
23653 if (arg[1] == "#") {
23657 defundef = substr(arg[1], 2)
23660 split(mac1, mac2, "(") #)
23662 prefix = substr(line, 1, index(line, defundef) - 1)
23663 if (D_is_set[macro]) {
23664 # Preserve the white space surrounding the "#".
23665 print prefix "define", macro P[macro] D[macro]
23668 # Replace #undef with comments. This is necessary, for example,
23669 # in the case of _POSIX_SOURCE, which is predefined and required
23670 # on some systems where configure will not decide to define it.
23671 if (defundef == "undef") {
23672 print "/*", prefix defundef, macro, "*/"
23680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23681 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23682 fi # test -n "$CONFIG_HEADERS"
23685 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23690 :[FHLC]) ac_mode=$ac_tag; continue;;
23692 case $ac_mode$ac_tag in
23694 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23695 :[FH]-) ac_tag=-:-;;
23696 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23713 -) ac_f="$ac_tmp/stdin";;
23714 *) # Look for the file first in the build tree, then in the source tree
23715 # (if the path is not absolute). The absolute path cannot be DOS-style,
23716 # because $ac_f cannot contain `:'.
23720 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23722 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23724 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23725 as_fn_append ac_file_inputs " '$ac_f'"
23728 # Let's still pretend it is `configure' which instantiates (i.e., don't
23729 # use $as_me), people would be surprised to read:
23730 # /* config.h. Generated by config.status. */
23731 configure_input='Generated from '`
23732 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23734 if test x"$ac_file" != x-; then
23735 configure_input="$ac_file. $configure_input"
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23737 $as_echo "$as_me: creating $ac_file" >&6;}
23739 # Neutralize special characters interpreted by sed in replacement strings.
23740 case $configure_input in #(
23741 *\&* | *\|* | *\\* )
23742 ac_sed_conf_input=`$as_echo "$configure_input" |
23743 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23744 *) ac_sed_conf_input=$configure_input;;
23748 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23754 ac_dir=`$as_dirname -- "$ac_file" ||
23755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23756 X"$ac_file" : 'X\(//\)[^/]' \| \
23757 X"$ac_file" : 'X\(//\)$' \| \
23758 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23759 $as_echo X"$ac_file" |
23760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23764 /^X\(\/\/\)[^/].*/{
23777 as_dir="$ac_dir"; as_fn_mkdir_p
23781 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23783 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23784 # A ".." for each directory in $ac_dir_suffix.
23785 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23786 case $ac_top_builddir_sub in
23787 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23788 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23791 ac_abs_top_builddir=$ac_pwd
23792 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23793 # for backward compatibility:
23794 ac_top_builddir=$ac_top_build_prefix
23797 .) # We are building in place.
23799 ac_top_srcdir=$ac_top_builddir_sub
23800 ac_abs_top_srcdir=$ac_pwd ;;
23801 [\\/]* | ?:[\\/]* ) # Absolute name.
23802 ac_srcdir=$srcdir$ac_dir_suffix;
23803 ac_top_srcdir=$srcdir
23804 ac_abs_top_srcdir=$srcdir ;;
23805 *) # Relative name.
23806 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23807 ac_top_srcdir=$ac_top_build_prefix$srcdir
23808 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23810 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23822 # If the template does not know about datarootdir, expand it.
23823 # FIXME: This hack should be removed a few years after 2.60.
23824 ac_datarootdir_hack=; ac_datarootdir_seen=
23835 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23836 *datarootdir*) ac_datarootdir_seen=yes;;
23837 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23839 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23842 ac_datarootdir_hack='
23843 s&@datadir@&$datadir&g
23844 s&@docdir@&$docdir&g
23845 s&@infodir@&$infodir&g
23846 s&@localedir@&$localedir&g
23847 s&@mandir@&$mandir&g
23848 s&\\\${datarootdir}&$datarootdir&g' ;;
23852 # Neutralize VPATH when `$srcdir' = `.'.
23853 # Shell code in configure.ac might set extrasub.
23854 # FIXME: do we really want to maintain this feature?
23855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23856 ac_sed_extra="$ac_vpsub
23859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23862 s|@configure_input@|$ac_sed_conf_input|;t t
23863 s&@top_builddir@&$ac_top_builddir_sub&;t t
23864 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23865 s&@srcdir@&$ac_srcdir&;t t
23866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23867 s&@top_srcdir@&$ac_top_srcdir&;t t
23868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23869 s&@builddir@&$ac_builddir&;t t
23870 s&@abs_builddir@&$ac_abs_builddir&;t t
23871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23872 $ac_datarootdir_hack
23874 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23875 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23877 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23878 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23879 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23880 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23882 which seems to be undefined. Please make sure it is defined" >&5
23883 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23884 which seems to be undefined. Please make sure it is defined" >&2;}
23886 rm -f "$ac_tmp/stdin"
23888 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23889 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23891 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23897 if test x"$ac_file" != x-; then
23899 $as_echo "/* $configure_input */" \
23900 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23901 } >"$ac_tmp/config.h" \
23902 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23903 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23905 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23908 mv "$ac_tmp/config.h" "$ac_file" \
23909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23912 $as_echo "/* $configure_input */" \
23913 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23914 || as_fn_error $? "could not create -" "$LINENO" 5
23918 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23919 $as_echo "$as_me: executing $ac_file commands" >&6;}
23924 case $ac_file$ac_mode in
23925 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
23926 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
23927 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
23928 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
23936 ac_clean_files=$ac_clean_files_save
23938 test $ac_write_fail = 0 ||
23939 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23942 # configure is writing to config.log, and then calls config.status.
23943 # config.status does its own redirection, appending to config.log.
23944 # Unfortunately, on DOS this fails, as config.log is still kept open
23945 # by configure, so config.status won't be able to write to it; its
23946 # output is simply discarded. So we exec the FD to /dev/null,
23947 # effectively closing config.log, so it can be properly (re)opened and
23948 # appended to by config.status. When coming back to configure, we
23949 # need to make the FD available again.
23950 if test "$no_create" != yes; then
23952 ac_config_status_args=
23953 test "$silent" = yes &&
23954 ac_config_status_args="$ac_config_status_args --quiet"
23956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23959 # would make configure fail if this is the last instruction.
23960 $ac_cs_success || as_fn_exit 1
23964 # CONFIG_SUBDIRS section.
23966 if test "$no_recursion" != yes; then
23968 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23969 # so they do not pile up.
23970 ac_sub_configure_args=
23972 eval "set x $ac_configure_args"
23976 if test -n "$ac_prev"; then
23981 -cache-file | --cache-file | --cache-fil | --cache-fi \
23982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23983 ac_prev=cache_file ;;
23984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23988 --config-cache | -C)
23990 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23992 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23998 --disable-option-checking)
24002 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24004 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24008 # Always prepend --prefix to ensure using the same prefix
24009 # in subdir configurations.
24010 ac_arg="--prefix=$prefix"
24012 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24014 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24017 if test "$silent" = yes; then
24018 ac_sub_configure_args="--silent $ac_sub_configure_args"
24021 # Always prepend --disable-option-checking to silence warnings, since
24022 # different subdirs can have different --enable and --with options.
24023 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24026 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24028 # Do not complain, so a configure script can configure whichever
24029 # parts of a large source tree are present.
24030 test -d "$srcdir/$ac_dir" || continue
24032 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24033 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24034 $as_echo "$ac_msg" >&6
24035 as_dir="$ac_dir"; as_fn_mkdir_p
24039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24042 # A ".." for each directory in $ac_dir_suffix.
24043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24044 case $ac_top_builddir_sub in
24045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24049 ac_abs_top_builddir=$ac_pwd
24050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24051 # for backward compatibility:
24052 ac_top_builddir=$ac_top_build_prefix
24055 .) # We are building in place.
24057 ac_top_srcdir=$ac_top_builddir_sub
24058 ac_abs_top_srcdir=$ac_pwd ;;
24059 [\\/]* | ?:[\\/]* ) # Absolute name.
24060 ac_srcdir=$srcdir$ac_dir_suffix;
24061 ac_top_srcdir=$srcdir
24062 ac_abs_top_srcdir=$srcdir ;;
24063 *) # Relative name.
24064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24065 ac_top_srcdir=$ac_top_build_prefix$srcdir
24066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24073 # Check for guested configure; otherwise get Cygnus style configure.
24074 if test -f "$ac_srcdir/configure.gnu"; then
24075 ac_sub_configure=$ac_srcdir/configure.gnu
24076 elif test -f "$ac_srcdir/configure"; then
24077 ac_sub_configure=$ac_srcdir/configure
24078 elif test -f "$ac_srcdir/configure.in"; then
24079 # This should be Cygnus configure.
24080 ac_sub_configure=$ac_aux_dir/configure
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24083 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24087 # The recursion is here.
24088 if test -n "$ac_sub_configure"; then
24089 # Make the cache file name correct relative to the subdirectory.
24090 case $cache_file in
24091 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24092 *) # Relative name.
24093 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24096 { $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
24097 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24098 # The eval makes quoting arguments work.
24099 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24100 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24101 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24107 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24109 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}