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
5195 # Check whether --enable-shared was given.
5196 if test "${enable_shared+set}" = set; then :
5197 enableval=$enable_shared; p=${PACKAGE-default}
5199 yes) enable_shared=yes ;;
5200 no) enable_shared=no ;;
5203 # Look at the argument we got. We use all the common list separators.
5204 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5205 for pkg in $enableval; do
5207 if test "X$pkg" = "X$p"; then
5219 # Check whether --enable-static was given.
5220 if test "${enable_static+set}" = set; then :
5221 enableval=$enable_static; p=${PACKAGE-default}
5223 yes) enable_static=yes ;;
5224 no) enable_static=no ;;
5227 # Look at the argument we got. We use all the common list separators.
5228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5229 for pkg in $enableval; do
5231 if test "X$pkg" = "X$p"; then
5243 # Check whether --enable-fast-install was given.
5244 if test "${enable_fast_install+set}" = set; then :
5245 enableval=$enable_fast_install; p=${PACKAGE-default}
5247 yes) enable_fast_install=yes ;;
5248 no) enable_fast_install=no ;;
5250 enable_fast_install=no
5251 # Look at the argument we got. We use all the common list separators.
5252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5253 for pkg in $enableval; do
5255 if test "X$pkg" = "X$p"; then
5256 enable_fast_install=yes
5263 enable_fast_install=yes
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5268 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5269 if ${lt_cv_path_SED+:} false; then :
5270 $as_echo_n "(cached) " >&6
5272 # Loop through the user's path and test for sed and gsed.
5273 # Then use that list of sed's as ones to test for truncation.
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir=.
5279 for lt_ac_prog in sed gsed; do
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5282 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5290 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5291 # along with /bin/sed that truncates output.
5292 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5293 test ! -f $lt_ac_sed && continue
5294 cat /dev/null > conftest.in
5296 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5297 # Check for GNU sed and select it if it is found.
5298 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5299 lt_cv_path_SED=$lt_ac_sed
5303 cat conftest.in conftest.in >conftest.tmp
5304 mv conftest.tmp conftest.in
5305 cp conftest.in conftest.nl
5307 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5308 cmp -s conftest.out conftest.nl || break
5309 # 10000 chars as input seems more than enough
5310 test $lt_ac_count -gt 10 && break
5311 lt_ac_count=`expr $lt_ac_count + 1`
5312 if test $lt_ac_count -gt $lt_ac_max; then
5313 lt_ac_max=$lt_ac_count
5314 lt_cv_path_SED=$lt_ac_sed
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5324 $as_echo "$SED" >&6; }
5327 # Check whether --with-gnu-ld was given.
5328 if test "${with_gnu_ld+set}" = set; then :
5329 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5335 if test "$GCC" = yes; then
5336 # Check if gcc -print-prog-name=ld gives a path.
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5338 $as_echo_n "checking for ld used by $CC... " >&6; }
5341 # gcc leaves a trailing carriage return which upsets mingw
5342 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5344 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5347 # Accept absolute paths.
5349 re_direlt='/[^/][^/]*/\.\./'
5350 # Canonicalize the pathname of ld
5351 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5352 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5353 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5355 test -z "$LD" && LD="$ac_prog"
5358 # If it fails, then pretend we aren't using GCC.
5362 # If it is relative, then search for the first ld in PATH.
5366 elif test "$with_gnu_ld" = yes; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5368 $as_echo_n "checking for GNU ld... " >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5371 $as_echo_n "checking for non-GNU ld... " >&6; }
5373 if ${lt_cv_path_LD+:} false; then :
5374 $as_echo_n "(cached) " >&6
5376 if test -z "$LD"; then
5377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5378 for ac_dir in $PATH; do
5380 test -z "$ac_dir" && ac_dir=.
5381 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5382 lt_cv_path_LD="$ac_dir/$ac_prog"
5383 # Check to see if the program is GNU ld. I'd rather use --version,
5384 # but apparently some variants of GNU ld only accept -v.
5385 # Break only if it was the GNU/non-GNU ld that we prefer.
5386 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5387 *GNU* | *'with BFD'*)
5388 test "$with_gnu_ld" != no && break
5391 test "$with_gnu_ld" != yes && break
5398 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5403 if test -n "$LD"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5405 $as_echo "$LD" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5410 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5412 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5413 if ${lt_cv_prog_gnu_ld+:} false; then :
5414 $as_echo_n "(cached) " >&6
5416 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5417 case `$LD -v 2>&1 </dev/null` in
5418 *GNU* | *'with BFD'*)
5419 lt_cv_prog_gnu_ld=yes
5422 lt_cv_prog_gnu_ld=no
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5427 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5428 with_gnu_ld=$lt_cv_prog_gnu_ld
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5432 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5433 if ${lt_cv_ld_reload_flag+:} false; then :
5434 $as_echo_n "(cached) " >&6
5436 lt_cv_ld_reload_flag='-r'
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5439 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5440 reload_flag=$lt_cv_ld_reload_flag
5441 case $reload_flag in
5443 *) reload_flag=" $reload_flag" ;;
5445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5448 if test "$GCC" = yes; then
5449 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5451 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5457 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5458 if ${lt_cv_path_NM+:} false; then :
5459 $as_echo_n "(cached) " >&6
5461 if test -n "$NM"; then
5462 # Let the user override the test.
5465 lt_nm_to_check="${ac_tool_prefix}nm"
5466 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5467 lt_nm_to_check="$lt_nm_to_check nm"
5469 for lt_tmp_nm in $lt_nm_to_check; do
5470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5471 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5473 test -z "$ac_dir" && ac_dir=.
5474 tmp_nm="$ac_dir/$lt_tmp_nm"
5475 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5476 # Check to see if the nm accepts a BSD-compat flag.
5477 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5478 # nm: unknown option "B" ignored
5479 # Tru64's nm complains that /dev/null is an invalid object file
5480 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5481 */dev/null* | *'Invalid file or object type'*)
5482 lt_cv_path_NM="$tmp_nm -B"
5486 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5488 lt_cv_path_NM="$tmp_nm -p"
5492 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5493 continue # so that we can try to find one that supports BSD flags
5502 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5506 $as_echo "$lt_cv_path_NM" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5510 $as_echo_n "checking whether ln -s works... " >&6; }
5512 if test "$LN_S" = "ln -s"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5517 $as_echo "no, using $LN_S" >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5521 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5522 if ${lt_cv_deplibs_check_method+:} false; then :
5523 $as_echo_n "(cached) " >&6
5525 lt_cv_file_magic_cmd='$MAGIC_CMD'
5526 lt_cv_file_magic_test_file=
5527 lt_cv_deplibs_check_method='unknown'
5528 # Need to set the preceding variable on all platforms that support
5529 # interlibrary dependencies.
5530 # 'none' -- dependencies not supported.
5531 # `unknown' -- same as none, but documents that we really don't know.
5532 # 'pass_all' -- all dependencies passed with no checks.
5533 # 'test_compile' -- check by making test program.
5534 # 'file_magic [[regex]]' -- check by looking for files in library path
5535 # which responds to the $file_magic_cmd with a given extended regex.
5536 # If you have `file' or equivalent on your system and you're not sure
5537 # whether `pass_all' will *always* work, you probably want this one.
5541 lt_cv_deplibs_check_method=pass_all
5545 lt_cv_deplibs_check_method=pass_all
5549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5550 lt_cv_file_magic_cmd='/usr/bin/file -L'
5551 lt_cv_file_magic_test_file=/shlib/libc.so
5555 # func_win32_libid is a shell function defined in ltmain.sh
5556 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5557 lt_cv_file_magic_cmd='func_win32_libid'
5561 # Base MSYS/MinGW do not provide the 'file' command needed by
5562 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5563 # unless we find 'file', for example because we are cross-compiling.
5564 if ( file / ) >/dev/null 2>&1; then
5565 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5566 lt_cv_file_magic_cmd='func_win32_libid'
5568 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5569 lt_cv_file_magic_cmd='$OBJDUMP -f'
5573 darwin* | rhapsody*)
5574 lt_cv_deplibs_check_method=pass_all
5577 freebsd* | dragonfly*)
5578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5581 # Not sure whether the presence of OpenBSD here was a mistake.
5582 # Let's accept both of them until this is cleared up.
5583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5589 lt_cv_deplibs_check_method=pass_all
5594 lt_cv_deplibs_check_method=pass_all
5597 hpux10.20* | hpux11*)
5598 lt_cv_file_magic_cmd=/usr/bin/file
5601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5605 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]'
5606 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5610 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5616 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5620 irix5* | irix6* | nonstopux*)
5622 *-32|*"-32 ") libmagic=32-bit;;
5623 *-n32|*"-n32 ") libmagic=N32;;
5624 *-64|*"-64 ") libmagic=64-bit;;
5625 *) libmagic=never-match;;
5627 lt_cv_deplibs_check_method=pass_all
5630 # This must be Linux ELF.
5631 linux* | k*bsd*-gnu)
5632 lt_cv_deplibs_check_method=pass_all
5635 netbsd* | netbsdelf*-gnu)
5636 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5645 lt_cv_file_magic_cmd=/usr/bin/file
5646 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5650 lt_cv_deplibs_check_method=unknown
5654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5661 osf3* | osf4* | osf5*)
5662 lt_cv_deplibs_check_method=pass_all
5666 lt_cv_deplibs_check_method=pass_all
5670 lt_cv_deplibs_check_method=pass_all
5674 case $host_vendor in
5676 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]'
5677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5680 lt_cv_deplibs_check_method=pass_all
5683 lt_cv_file_magic_cmd='/bin/file'
5684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5687 lt_cv_file_magic_cmd='/bin/file'
5688 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5689 lt_cv_file_magic_test_file=/lib/libc.so
5692 lt_cv_deplibs_check_method=pass_all
5695 lt_cv_deplibs_check_method=pass_all
5700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5701 lt_cv_deplibs_check_method=pass_all
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5707 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5708 file_magic_cmd=$lt_cv_file_magic_cmd
5709 deplibs_check_method=$lt_cv_deplibs_check_method
5710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5715 # If no C compiler was specified, use CC.
5718 # If no C compiler flags were specified, use CFLAGS.
5719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5721 # Allow CC to be a program name with arguments.
5724 # Check whether --enable-libtool-lock was given.
5725 if test "${enable_libtool_lock+set}" = set; then :
5726 enableval=$enable_libtool_lock;
5729 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5731 # Some flags need to be propagated to the compiler or linker for good
5735 # Find out which ABI we are using.
5736 echo 'int i;' > conftest.$ac_ext
5737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5738 (eval $ac_compile) 2>&5
5740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5741 test $ac_status = 0; }; then
5742 case `/usr/bin/file conftest.$ac_objext` in
5754 # Find out which ABI we are using.
5755 echo '#line 5755 "configure"' > conftest.$ac_ext
5756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5757 (eval $ac_compile) 2>&5
5759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5760 test $ac_status = 0; }; then
5761 if test "$lt_cv_prog_gnu_ld" = yes; then
5762 case `/usr/bin/file conftest.$ac_objext` in
5764 LD="${LD-ld} -melf32bsmip"
5767 LD="${LD-ld} -melf32bmipn32"
5770 LD="${LD-ld} -melf64bmip"
5774 case `/usr/bin/file conftest.$ac_objext` in
5790 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5791 s390*-*linux*|sparc*-*linux*)
5792 # Find out which ABI we are using.
5793 echo 'int i;' > conftest.$ac_ext
5794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5795 (eval $ac_compile) 2>&5
5797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5798 test $ac_status = 0; }; then
5799 case `/usr/bin/file conftest.o` in
5802 x86_64-*kfreebsd*-gnu)
5803 LD="${LD-ld} -m elf_i386_fbsd"
5806 LD="${LD-ld} -m elf_i386"
5808 ppc64-*linux*|powerpc64-*linux*)
5809 LD="${LD-ld} -m elf32ppclinux"
5812 LD="${LD-ld} -m elf_s390"
5815 LD="${LD-ld} -m elf32_sparc"
5821 x86_64-*kfreebsd*-gnu)
5822 LD="${LD-ld} -m elf_x86_64_fbsd"
5825 LD="${LD-ld} -m elf_x86_64"
5827 ppc*-*linux*|powerpc*-*linux*)
5828 LD="${LD-ld} -m elf64ppc"
5831 LD="${LD-ld} -m elf64_s390"
5834 LD="${LD-ld} -m elf64_sparc"
5844 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5845 SAVE_CFLAGS="$CFLAGS"
5846 CFLAGS="$CFLAGS -belf"
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5848 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5849 if ${lt_cv_cc_needs_belf+:} false; then :
5850 $as_echo_n "(cached) " >&6
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5869 if ac_fn_c_try_link "$LINENO"; then :
5870 lt_cv_cc_needs_belf=yes
5872 lt_cv_cc_needs_belf=no
5874 rm -f core conftest.err conftest.$ac_objext \
5875 conftest$ac_exeext conftest.$ac_ext
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5884 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5885 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5886 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5887 CFLAGS="$SAVE_CFLAGS"
5891 # Find out which ABI we are using.
5892 echo 'int i;' > conftest.$ac_ext
5893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5894 (eval $ac_compile) 2>&5
5896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897 test $ac_status = 0; }; then
5898 case `/usr/bin/file conftest.o` in
5900 case $lt_cv_prog_gnu_ld in
5901 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5903 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5917 need_locks="$enable_libtool_lock"
5920 for ac_header in dlfcn.h
5922 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5923 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5924 cat >>confdefs.h <<_ACEOF
5925 #define HAVE_DLFCN_H 1
5934 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5935 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5936 (test "X$CXX" != "Xg++"))) ; then
5938 ac_cpp='$CXXCPP $CPPFLAGS'
5939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5943 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5944 if test -z "$CXXCPP"; then
5945 if ${ac_cv_prog_CXXCPP+:} false; then :
5946 $as_echo_n "(cached) " >&6
5948 # Double quotes because CXXCPP needs to be expanded
5949 for CXXCPP in "$CXX -E" "/lib/cpp"
5952 for ac_cxx_preproc_warn_flag in '' yes
5954 # Use a header file that comes with gcc, so configuring glibc
5955 # with a fresh cross-compiler works.
5956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5957 # <limits.h> exists even on freestanding compilers.
5958 # On the NeXT, cc -E runs the code through the compiler's parser,
5959 # not just through cpp. "Syntax error" is here to catch this case.
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5963 # include <limits.h>
5965 # include <assert.h>
5969 if ac_fn_cxx_try_cpp "$LINENO"; then :
5972 # Broken: fails on valid input.
5975 rm -f conftest.err conftest.i conftest.$ac_ext
5977 # OK, works on sane cases. Now check whether nonexistent headers
5978 # can be detected and how.
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include <ac_nonexistent.h>
5983 if ac_fn_cxx_try_cpp "$LINENO"; then :
5984 # Broken: success on invalid input.
5987 # Passes both tests.
5991 rm -f conftest.err conftest.i conftest.$ac_ext
5994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995 rm -f conftest.i conftest.err conftest.$ac_ext
5996 if $ac_preproc_ok; then :
6001 ac_cv_prog_CXXCPP=$CXXCPP
6004 CXXCPP=$ac_cv_prog_CXXCPP
6006 ac_cv_prog_CXXCPP=$CXXCPP
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6009 $as_echo "$CXXCPP" >&6; }
6011 for ac_cxx_preproc_warn_flag in '' yes
6013 # Use a header file that comes with gcc, so configuring glibc
6014 # with a fresh cross-compiler works.
6015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016 # <limits.h> exists even on freestanding compilers.
6017 # On the NeXT, cc -E runs the code through the compiler's parser,
6018 # not just through cpp. "Syntax error" is here to catch this case.
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6022 # include <limits.h>
6024 # include <assert.h>
6028 if ac_fn_cxx_try_cpp "$LINENO"; then :
6031 # Broken: fails on valid input.
6034 rm -f conftest.err conftest.i conftest.$ac_ext
6036 # OK, works on sane cases. Now check whether nonexistent headers
6037 # can be detected and how.
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #include <ac_nonexistent.h>
6042 if ac_fn_cxx_try_cpp "$LINENO"; then :
6043 # Broken: success on invalid input.
6046 # Passes both tests.
6050 rm -f conftest.err conftest.i conftest.$ac_ext
6053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6054 rm -f conftest.i conftest.err conftest.$ac_ext
6055 if $ac_preproc_ok; then :
6058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6060 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6061 See \`config.log' for more details" "$LINENO" 5; }
6065 ac_cpp='$CXXCPP $CPPFLAGS'
6066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6074 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6075 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6077 if test -n "$ac_tool_prefix"; then
6078 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
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if ${ac_cv_prog_F77+:} false; then :
6085 $as_echo_n "(cached) " >&6
6087 if test -n "$F77"; then
6088 ac_cv_prog_F77="$F77" # Let the user override the test.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 if test -n "$F77"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6110 $as_echo "$F77" >&6; }
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6117 test -n "$F77" && break
6120 if test -z "$F77"; then
6122 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
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy $ac_prog; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6129 $as_echo_n "(cached) " >&6
6131 if test -n "$ac_ct_F77"; then
6132 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_ac_ct_F77="$ac_prog"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6152 if test -n "$ac_ct_F77"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6154 $as_echo "$ac_ct_F77" >&6; }
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6161 test -n "$ac_ct_F77" && break
6164 if test "x$ac_ct_F77" = x; then
6167 case $cross_compiling:$ac_tool_warned in
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6178 # Provide some information about the compiler.
6179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6182 for ac_option in --version -v -V -qversion; do
6183 { { ac_try="$ac_compiler $ac_option >&5"
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6189 $as_echo "$ac_try_echo"; } >&5
6190 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6192 if test -s conftest.err; then
6194 ... rest of stderr output deleted ...
6195 10q' conftest.err >conftest.er1
6196 cat conftest.er1 >&5
6198 rm -f conftest.er1 conftest.err
6199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200 test $ac_status = 0; }
6204 # If we don't use `.F' as extension, the preprocessor is not run on the
6205 # input file. (Note that this only needs to work for GNU compilers.)
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6209 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6210 if ${ac_cv_f77_compiler_gnu+:} false; then :
6211 $as_echo_n "(cached) " >&6
6213 cat > conftest.$ac_ext <<_ACEOF
6221 if ac_fn_f77_try_compile "$LINENO"; then :
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6231 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6233 ac_test_FFLAGS=${FFLAGS+set}
6234 ac_save_FFLAGS=$FFLAGS
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6237 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6238 if ${ac_cv_prog_f77_g+:} false; then :
6239 $as_echo_n "(cached) " >&6
6242 cat > conftest.$ac_ext <<_ACEOF
6247 if ac_fn_f77_try_compile "$LINENO"; then :
6248 ac_cv_prog_f77_g=yes
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6256 $as_echo "$ac_cv_prog_f77_g" >&6; }
6257 if test "$ac_test_FFLAGS" = set; then
6258 FFLAGS=$ac_save_FFLAGS
6259 elif test $ac_cv_prog_f77_g = yes; then
6260 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6266 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6273 if test $ac_compiler_gnu = yes; then
6279 ac_cpp='$CPP $CPPFLAGS'
6280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6286 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6287 # find the maximum length of command line arguments
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6289 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6290 if ${lt_cv_sys_max_cmd_len+:} false; then :
6291 $as_echo_n "(cached) " >&6
6298 # On DJGPP, this test can blow up pretty badly due to problems in libc
6299 # (any single argument exceeding 2000 bytes causes a buffer overrun
6300 # during glob expansion). Even if it were fixed, the result of this
6301 # check would be larger than it should be.
6302 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6306 # Under GNU Hurd, this test is not required because there is
6307 # no limit to the length of command line arguments.
6308 # Libtool will interpret -1 as no limit whatsoever
6309 lt_cv_sys_max_cmd_len=-1;
6313 # On Win9x/ME, this test blows up -- it succeeds, but takes
6314 # about 5 minutes as the teststring grows exponentially.
6315 # Worse, since 9x/ME are not pre-emptively multitasking,
6316 # you end up with a "frozen" computer, even though with patience
6317 # the test eventually succeeds (with a max line length of 256k).
6318 # Instead, let's just punt: use the minimum linelength reported by
6319 # all of the supported platforms: 8192 (on NT/2K/XP).
6320 lt_cv_sys_max_cmd_len=8192;
6324 # On AmigaOS with pdksh, this test takes hours, literally.
6325 # So we just punt and use a minimum line length of 8192.
6326 lt_cv_sys_max_cmd_len=8192;
6329 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6330 # This has been around since 386BSD, at least. Likely further.
6331 if test -x /sbin/sysctl; then
6332 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6333 elif test -x /usr/sbin/sysctl; then
6334 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6336 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6338 # And add a safety zone
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6344 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6345 lt_cv_sys_max_cmd_len=196608
6349 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6350 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6351 # nice to cause kernel panics so lets avoid the loop below.
6352 # First set a reasonable default.
6353 lt_cv_sys_max_cmd_len=16384
6355 if test -x /sbin/sysconfig; then
6356 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6357 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6362 lt_cv_sys_max_cmd_len=102400
6364 sysv5* | sco5v6* | sysv4.2uw2*)
6365 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6366 if test -n "$kargmax"; then
6367 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6369 lt_cv_sys_max_cmd_len=32768
6373 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6374 if test -n "$lt_cv_sys_max_cmd_len"; then
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6379 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6380 = "XX$teststring") >/dev/null 2>&1 &&
6381 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6382 lt_cv_sys_max_cmd_len=$new_result &&
6383 test $i != 17 # 1/2 MB should be enough
6386 teststring=$teststring$teststring
6389 # Add a significant safety factor because C++ compilers can tack on massive
6390 # amounts of additional arguments before passing them to the linker.
6391 # It appears as though 1/2 is a usable value.
6392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6399 if test -n $lt_cv_sys_max_cmd_len ; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6401 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6404 $as_echo "none" >&6; }
6411 # Check for command to grab the raw symbol name followed by C symbol from nm.
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6413 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6414 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6415 $as_echo_n "(cached) " >&6
6418 # These are sane defaults that work on at least a few old systems.
6419 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6421 # Character class describing NM global symbol codes.
6422 symcode='[BCDEGRST]'
6424 # Regexp to match symbols that can be accessed directly from C.
6425 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6427 # Transform an extracted symbol line into a proper C declaration
6428 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6430 # Transform an extracted symbol line into symbol name and symbol address
6431 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'"
6433 # Define system-specific variables.
6438 cygwin* | mingw* | pw32*)
6439 symcode='[ABCDGISTW]'
6441 hpux*) # Its linker distinguishes data from code symbols
6442 if test "$host_cpu" = ia64; then
6443 symcode='[ABCDEGRST]'
6445 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6446 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'"
6448 linux* | k*bsd*-gnu)
6449 if test "$host_cpu" = ia64; then
6450 symcode='[ABCDGIRSTW]'
6451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6452 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'"
6456 symcode='[BCDEGRST]'
6459 symcode='[BCDEGQRST]'
6470 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6478 # Handle CRLF in mingw tool chain
6482 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6486 # If we're using GNU nm, then use its standard symbol codes.
6487 case `$NM -V 2>&1` in
6488 *GNU* | *'with BFD'*)
6489 symcode='[ABCDGIRSTW]' ;;
6492 # Try without a prefix undercore, then with it.
6493 for ac_symprfx in "" "_"; do
6495 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6496 symxfrm="\\1 $ac_symprfx\\2 \\2"
6498 # Write the raw and C identifiers.
6499 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6501 # Check to see that the pipe works correctly.
6505 cat > conftest.$ac_ext <<EOF
6510 void nm_test_func(){}
6514 int main(){nm_test_var='a';nm_test_func();return(0);}
6517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6518 (eval $ac_compile) 2>&5
6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521 test $ac_status = 0; }; then
6522 # Now try to grab the symbols.
6524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6525 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528 test $ac_status = 0; } && test -s "$nlist"; then
6529 # Try sorting and uniquifying the output.
6530 if sort "$nlist" | uniq > "$nlist"T; then
6531 mv -f "$nlist"T "$nlist"
6536 # Make sure that we snagged all the symbols we need.
6537 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6538 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6539 cat <<EOF > conftest.$ac_ext
6545 # Now generate the symbol file.
6546 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6548 cat <<EOF >> conftest.$ac_ext
6549 #if defined (__STDC__) && __STDC__
6550 # define lt_ptr_t void *
6552 # define lt_ptr_t char *
6556 /* The mapping between symbol names and symbols. */
6561 lt_preloaded_symbols[] =
6564 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6565 cat <<\EOF >> conftest.$ac_ext
6573 # Now try linking the two files.
6574 mv conftest.$ac_objext conftstm.$ac_objext
6575 lt_save_LIBS="$LIBS"
6576 lt_save_CFLAGS="$CFLAGS"
6577 LIBS="conftstm.$ac_objext"
6578 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6580 (eval $ac_link) 2>&5
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6586 LIBS="$lt_save_LIBS"
6587 CFLAGS="$lt_save_CFLAGS"
6589 echo "cannot find nm_test_func in $nlist" >&5
6592 echo "cannot find nm_test_var in $nlist" >&5
6595 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6598 echo "$progname: failed program was:" >&5
6599 cat conftest.$ac_ext >&5
6601 rm -rf conftest* conftst*
6603 # Do not use the global_symbol_pipe unless it works.
6604 if test "$pipe_works" = yes; then
6607 lt_cv_sys_global_symbol_pipe=
6613 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6614 lt_cv_sys_global_symbol_to_cdecl=
6616 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6618 $as_echo "failed" >&6; }
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6621 $as_echo "ok" >&6; }
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6625 $as_echo_n "checking for objdir... " >&6; }
6626 if ${lt_cv_objdir+:} false; then :
6627 $as_echo_n "(cached) " >&6
6629 rm -f .libs 2>/dev/null
6630 mkdir .libs 2>/dev/null
6631 if test -d .libs; then
6634 # MS-DOS does not allow filenames that begin with a dot.
6637 rmdir .libs 2>/dev/null
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6640 $as_echo "$lt_cv_objdir" >&6; }
6641 objdir=$lt_cv_objdir
6649 # AIX sometimes has problems with the GCC collect2 program. For some
6650 # reason, if we set the COLLECT_NAMES environment variable, the problems
6651 # vanish in a puff of smoke.
6652 if test "X${COLLECT_NAMES+set}" != Xset; then
6654 export COLLECT_NAMES
6659 # Sed substitution that helps us do robust quoting. It backslashifies
6660 # metacharacters that are still active within double-quoted strings.
6661 Xsed='sed -e 1s/^X//'
6662 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6664 # Same as above, but do not quote variable references.
6665 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6667 # Sed substitution to delay expansion of an escaped shell variable in a
6668 # double_quote_subst'ed string.
6669 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6671 # Sed substitution to avoid accidental globbing in evaled expressions
6672 no_glob_subst='s/\*/\\\*/g'
6678 default_ofile=libtool
6679 can_build_shared=yes
6681 # All known linkers require a `.a' archive for static linking (except MSVC,
6682 # which needs '.lib').
6684 ltmain="$ac_aux_dir/ltmain.sh"
6685 ofile="$default_ofile"
6686 with_gnu_ld="$lt_cv_prog_gnu_ld"
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}ar; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_AR+:} false; then :
6694 $as_echo_n "(cached) " >&6
6696 if test -n "$AR"; then
6697 ac_cv_prog_AR="$AR" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_AR="${ac_tool_prefix}ar"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 if test -n "$AR"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6719 $as_echo "$AR" >&6; }
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6727 if test -z "$ac_cv_prog_AR"; then
6729 # Extract the first word of "ar", so it can be a program name with args.
6730 set dummy ar; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6734 $as_echo_n "(cached) " >&6
6736 if test -n "$ac_ct_AR"; then
6737 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_prog_ac_ct_AR="ar"
6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6757 if test -n "$ac_ct_AR"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6759 $as_echo "$ac_ct_AR" >&6; }
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6765 if test "x$ac_ct_AR" = x; then
6768 case $cross_compiling:$ac_tool_warned in
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if ${ac_cv_prog_RANLIB+:} false; then :
6786 $as_echo_n "(cached) " >&6
6788 if test -n "$RANLIB"; then
6789 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 RANLIB=$ac_cv_prog_RANLIB
6809 if test -n "$RANLIB"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6811 $as_echo "$RANLIB" >&6; }
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6819 if test -z "$ac_cv_prog_RANLIB"; then
6820 ac_ct_RANLIB=$RANLIB
6821 # Extract the first word of "ranlib", so it can be a program name with args.
6822 set dummy ranlib; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$ac_ct_RANLIB"; then
6829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_ac_ct_RANLIB="ranlib"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6849 if test -n "$ac_ct_RANLIB"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6851 $as_echo "$ac_ct_RANLIB" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6857 if test "x$ac_ct_RANLIB" = x; then
6860 case $cross_compiling:$ac_tool_warned in
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6866 RANLIB=$ac_ct_RANLIB
6869 RANLIB="$ac_cv_prog_RANLIB"
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}strip; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_prog_STRIP+:} false; then :
6878 $as_echo_n "(cached) " >&6
6880 if test -n "$STRIP"; then
6881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 STRIP=$ac_cv_prog_STRIP
6901 if test -n "$STRIP"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6903 $as_echo "$STRIP" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6911 if test -z "$ac_cv_prog_STRIP"; then
6913 # Extract the first word of "strip", so it can be a program name with args.
6914 set dummy strip; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$ac_ct_STRIP"; then
6921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_ac_ct_STRIP="strip"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6941 if test -n "$ac_ct_STRIP"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6943 $as_echo "$ac_ct_STRIP" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6949 if test "x$ac_ct_STRIP" = x; then
6952 case $cross_compiling:$ac_tool_warned in
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6961 STRIP="$ac_cv_prog_STRIP"
6966 old_CFLAGS="$CFLAGS"
6968 # Set sane defaults for various variables
6969 test -z "$AR" && AR=ar
6970 test -z "$AR_FLAGS" && AR_FLAGS=cru
6971 test -z "$AS" && AS=as
6972 test -z "$CC" && CC=cc
6973 test -z "$LTCC" && LTCC=$CC
6974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6975 test -z "$DLLTOOL" && DLLTOOL=dlltool
6976 test -z "$LD" && LD=ld
6977 test -z "$LN_S" && LN_S="ln -s"
6978 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6979 test -z "$NM" && NM=nm
6980 test -z "$SED" && SED=sed
6981 test -z "$OBJDUMP" && OBJDUMP=objdump
6982 test -z "$RANLIB" && RANLIB=:
6983 test -z "$STRIP" && STRIP=:
6984 test -z "$ac_objext" && ac_objext=o
6986 # Determine commands to create old-style static archives.
6987 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6988 old_postinstall_cmds='chmod 644 $oldlib'
6989 old_postuninstall_cmds=
6991 if test -n "$RANLIB"; then
6994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6997 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7000 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7003 for cc_temp in $compiler""; do
7005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7011 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7014 # Only perform the check for file, if the check method requires it
7015 case $deplibs_check_method in
7017 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7019 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7020 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7021 $as_echo_n "(cached) " >&6
7025 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7028 lt_save_MAGIC_CMD="$MAGIC_CMD"
7029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7030 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7031 for ac_dir in $ac_dummy; do
7033 test -z "$ac_dir" && ac_dir=.
7034 if test -f $ac_dir/${ac_tool_prefix}file; then
7035 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7036 if test -n "$file_magic_test_file"; then
7037 case $deplibs_check_method in
7039 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7042 $EGREP "$file_magic_regex" > /dev/null; then
7047 *** Warning: the command libtool uses to detect shared libraries,
7048 *** $file_magic_cmd, produces output that libtool cannot recognize.
7049 *** The result is that libtool may fail to recognize shared libraries
7050 *** as such. This will affect the creation of libtool libraries that
7051 *** depend on shared libraries, but programs linked with such libtool
7052 *** libraries will work regardless of this problem. Nevertheless, you
7053 *** may want to report the problem to your system manager and/or to
7054 *** bug-libtool@gnu.org
7064 MAGIC_CMD="$lt_save_MAGIC_CMD"
7069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7070 if test -n "$MAGIC_CMD"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7072 $as_echo "$MAGIC_CMD" >&6; }
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7078 if test -z "$lt_cv_path_MAGIC_CMD"; then
7079 if test -n "$ac_tool_prefix"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7081 $as_echo_n "checking for file... " >&6; }
7082 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7083 $as_echo_n "(cached) " >&6
7087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7090 lt_save_MAGIC_CMD="$MAGIC_CMD"
7091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7093 for ac_dir in $ac_dummy; do
7095 test -z "$ac_dir" && ac_dir=.
7096 if test -f $ac_dir/file; then
7097 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7098 if test -n "$file_magic_test_file"; then
7099 case $deplibs_check_method in
7101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7104 $EGREP "$file_magic_regex" > /dev/null; then
7109 *** Warning: the command libtool uses to detect shared libraries,
7110 *** $file_magic_cmd, produces output that libtool cannot recognize.
7111 *** The result is that libtool may fail to recognize shared libraries
7112 *** as such. This will affect the creation of libtool libraries that
7113 *** depend on shared libraries, but programs linked with such libtool
7114 *** libraries will work regardless of this problem. Nevertheless, you
7115 *** may want to report the problem to your system manager and/or to
7116 *** bug-libtool@gnu.org
7126 MAGIC_CMD="$lt_save_MAGIC_CMD"
7131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7132 if test -n "$MAGIC_CMD"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7134 $as_echo "$MAGIC_CMD" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7151 rhapsody* | darwin*)
7152 if test -n "$ac_tool_prefix"; then
7153 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7154 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7158 $as_echo_n "(cached) " >&6
7160 if test -n "$DSYMUTIL"; then
7161 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7181 if test -n "$DSYMUTIL"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7183 $as_echo "$DSYMUTIL" >&6; }
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7191 if test -z "$ac_cv_prog_DSYMUTIL"; then
7192 ac_ct_DSYMUTIL=$DSYMUTIL
7193 # Extract the first word of "dsymutil", so it can be a program name with args.
7194 set dummy dsymutil; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7198 $as_echo_n "(cached) " >&6
7200 if test -n "$ac_ct_DSYMUTIL"; then
7201 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7221 if test -n "$ac_ct_DSYMUTIL"; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7223 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7229 if test "x$ac_ct_DSYMUTIL" = x; then
7232 case $cross_compiling:$ac_tool_warned in
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236 ac_tool_warned=yes ;;
7238 DSYMUTIL=$ac_ct_DSYMUTIL
7241 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_NMEDIT+:} false; then :
7250 $as_echo_n "(cached) " >&6
7252 if test -n "$NMEDIT"; then
7253 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 NMEDIT=$ac_cv_prog_NMEDIT
7273 if test -n "$NMEDIT"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7275 $as_echo "$NMEDIT" >&6; }
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7283 if test -z "$ac_cv_prog_NMEDIT"; then
7284 ac_ct_NMEDIT=$NMEDIT
7285 # Extract the first word of "nmedit", so it can be a program name with args.
7286 set dummy nmedit; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7290 $as_echo_n "(cached) " >&6
7292 if test -n "$ac_ct_NMEDIT"; then
7293 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7313 if test -n "$ac_ct_NMEDIT"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7315 $as_echo "$ac_ct_NMEDIT" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7321 if test "x$ac_ct_NMEDIT" = x; then
7324 case $cross_compiling:$ac_tool_warned in
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7330 NMEDIT=$ac_ct_NMEDIT
7333 NMEDIT="$ac_cv_prog_NMEDIT"
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7338 $as_echo_n "checking for -single_module linker flag... " >&6; }
7339 if ${lt_cv_apple_cc_single_mod+:} false; then :
7340 $as_echo_n "(cached) " >&6
7342 lt_cv_apple_cc_single_mod=no
7343 if test -z "${LT_MULTI_MODULE}"; then
7344 # By default we will add the -single_module flag. You can override
7345 # by either setting the environment variable LT_MULTI_MODULE
7346 # non-empty at configure time, or by adding -multi_module to the
7348 echo "int foo(void){return 1;}" > conftest.c
7349 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7350 -dynamiclib ${wl}-single_module conftest.c
7351 if test -f libconftest.dylib; then
7352 lt_cv_apple_cc_single_mod=yes
7353 rm -rf libconftest.dylib*
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7359 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7361 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7362 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7363 $as_echo_n "(cached) " >&6
7365 lt_cv_ld_exported_symbols_list=no
7366 save_LDFLAGS=$LDFLAGS
7367 echo "_main" > conftest.sym
7368 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7380 if ac_fn_c_try_link "$LINENO"; then :
7381 lt_cv_ld_exported_symbols_list=yes
7383 lt_cv_ld_exported_symbols_list=no
7385 rm -f core conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
7387 LDFLAGS="$save_LDFLAGS"
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7391 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7393 rhapsody* | darwin1.[0123])
7394 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7396 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7398 # if running on 10.5 or later, the deployment target defaults
7399 # to the OS version, if on x86, and 10.4, the deployment
7400 # target defaults to 10.4. Don't you love it?
7401 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7402 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7403 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7411 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7412 _lt_dar_single_mod='$single_module'
7414 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7415 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7417 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7419 if test "$DSYMUTIL" != ":"; then
7420 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7431 # Check whether --enable-libtool-lock was given.
7432 if test "${enable_libtool_lock+set}" = set; then :
7433 enableval=$enable_libtool_lock;
7436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7439 # Check whether --with-pic was given.
7440 if test "${with_pic+set}" = set; then :
7441 withval=$with_pic; pic_mode="$withval"
7446 test -z "$pic_mode" && pic_mode=default
7448 # Use C for the default configuration in the libtool script
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7458 # Source file extension for C test sources.
7461 # Object file extension for compiled C test sources.
7465 # Code to be used in simple compile tests
7466 lt_simple_compile_test_code="int some_variable = 0;"
7468 # Code to be used in simple link tests
7469 lt_simple_link_test_code='int main(){return(0);}'
7472 # If no C compiler was specified, use CC.
7475 # If no C compiler flags were specified, use CFLAGS.
7476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7478 # Allow CC to be a program name with arguments.
7482 # save warnings/boilerplate of simple test code
7483 ac_outfile=conftest.$ac_objext
7484 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7485 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7486 _lt_compiler_boilerplate=`cat conftest.err`
7489 ac_outfile=conftest.$ac_objext
7490 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7491 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7492 _lt_linker_boilerplate=`cat conftest.err`
7497 lt_prog_compiler_no_builtin_flag=
7499 if test "$GCC" = yes; then
7500 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7504 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7505 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7506 $as_echo_n "(cached) " >&6
7508 lt_cv_prog_compiler_rtti_exceptions=no
7509 ac_outfile=conftest.$ac_objext
7510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7511 lt_compiler_flag="-fno-rtti -fno-exceptions"
7512 # Insert the option either (1) after the last *FLAGS variable, or
7513 # (2) before a word containing "conftest.", or (3) at the end.
7514 # Note that $ac_compile itself does not contain backslashes and begins
7515 # with a dollar sign (not a hyphen), so the echo should work correctly.
7516 # The option is referenced via a variable to avoid confusing sed.
7517 lt_compile=`echo "$ac_compile" | $SED \
7518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7520 -e 's:$: $lt_compiler_flag:'`
7521 (eval echo "\"\$as_me:7521: $lt_compile\"" >&5)
7522 (eval "$lt_compile" 2>conftest.err)
7524 cat conftest.err >&5
7525 echo "$as_me:7525: \$? = $ac_status" >&5
7526 if (exit $ac_status) && test -s "$ac_outfile"; then
7527 # The compiler can only warn and ignore the option if not recognized
7528 # So say no if there are warnings other than the usual output.
7529 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7531 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7532 lt_cv_prog_compiler_rtti_exceptions=yes
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7539 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7541 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7542 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7549 lt_prog_compiler_wl=
7550 lt_prog_compiler_pic=
7551 lt_prog_compiler_static=
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7554 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7556 if test "$GCC" = yes; then
7557 lt_prog_compiler_wl='-Wl,'
7558 lt_prog_compiler_static='-static'
7562 # All AIX code is PIC.
7563 if test "$host_cpu" = ia64; then
7564 # AIX 5 now supports IA64 processor
7565 lt_prog_compiler_static='-Bstatic'
7570 # FIXME: we need at least 68020 code to build shared libraries, but
7571 # adding the `-m68020' flag to GCC prevents building anything better,
7573 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7576 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7577 # PIC is the default for these OSes.
7580 mingw* | cygwin* | pw32* | os2*)
7581 # This hack is so that the source file can tell whether it is being
7582 # built for inclusion in a dll (and should export symbols for example).
7583 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7584 # (--disable-auto-import) libraries
7585 lt_prog_compiler_pic='-DDLL_EXPORT'
7588 darwin* | rhapsody*)
7589 # PIC is the default on this platform
7590 # Common symbols not allowed in MH_DYLIB files
7591 lt_prog_compiler_pic='-fno-common'
7595 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7596 # Instead, we relocate shared libraries at runtime.
7600 # Just because we use GCC doesn't mean we suddenly get shared libraries
7601 # on systems that don't support them.
7602 lt_prog_compiler_can_build_shared=no
7607 if test -d /usr/nec; then
7608 lt_prog_compiler_pic=-Kconform_pic
7613 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7620 lt_prog_compiler_pic='-fPIC'
7626 lt_prog_compiler_pic='-fPIC'
7630 # PORTME Check for flag to pass linker flags through the system compiler.
7633 lt_prog_compiler_wl='-Wl,'
7634 if test "$host_cpu" = ia64; then
7635 # AIX 5 now supports IA64 processor
7636 lt_prog_compiler_static='-Bstatic'
7638 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7642 # PIC is the default on this platform
7643 # Common symbols not allowed in MH_DYLIB files
7644 case $cc_basename in
7646 lt_prog_compiler_pic='-qnocommon'
7647 lt_prog_compiler_wl='-Wl,'
7652 mingw* | cygwin* | pw32* | os2*)
7653 # This hack is so that the source file can tell whether it is being
7654 # built for inclusion in a dll (and should export symbols for example).
7655 lt_prog_compiler_pic='-DDLL_EXPORT'
7658 hpux9* | hpux10* | hpux11*)
7659 lt_prog_compiler_wl='-Wl,'
7660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7667 lt_prog_compiler_pic='+Z'
7670 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7671 lt_prog_compiler_static='${wl}-a ${wl}archive'
7674 irix5* | irix6* | nonstopux*)
7675 lt_prog_compiler_wl='-Wl,'
7676 # PIC (with -KPIC) is the default.
7677 lt_prog_compiler_static='-non_shared'
7681 lt_prog_compiler_pic='-KPIC'
7682 lt_prog_compiler_static='-Bstatic'
7685 linux* | k*bsd*-gnu)
7686 case $cc_basename in
7688 lt_prog_compiler_wl='-Wl,'
7689 lt_prog_compiler_pic='-KPIC'
7690 lt_prog_compiler_static='-static'
7692 pgcc* | pgf77* | pgf90* | pgf95*)
7693 # Portland Group compilers (*not* the Pentium gcc compiler,
7694 # which looks to be a dead project)
7695 lt_prog_compiler_wl='-Wl,'
7696 lt_prog_compiler_pic='-fpic'
7697 lt_prog_compiler_static='-Bstatic'
7700 lt_prog_compiler_wl='-Wl,'
7701 # All Alpha code is PIC.
7702 lt_prog_compiler_static='-non_shared'
7705 case `$CC -V 2>&1 | sed 5q` in
7708 lt_prog_compiler_pic='-KPIC'
7709 lt_prog_compiler_static='-Bstatic'
7710 lt_prog_compiler_wl='-Wl,'
7713 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7714 lt_prog_compiler_pic='-KPIC'
7715 lt_prog_compiler_static='-Bstatic'
7716 lt_prog_compiler_wl=''
7723 osf3* | osf4* | osf5*)
7724 lt_prog_compiler_wl='-Wl,'
7725 # All OSF/1 code is PIC.
7726 lt_prog_compiler_static='-non_shared'
7730 lt_prog_compiler_static='-non_shared'
7734 lt_prog_compiler_pic='-KPIC'
7735 lt_prog_compiler_static='-Bstatic'
7736 case $cc_basename in
7738 lt_prog_compiler_wl='-Qoption ld ';;
7740 lt_prog_compiler_wl='-Wl,';;
7745 lt_prog_compiler_wl='-Qoption ld '
7746 lt_prog_compiler_pic='-PIC'
7747 lt_prog_compiler_static='-Bstatic'
7750 sysv4 | sysv4.2uw2* | sysv4.3*)
7751 lt_prog_compiler_wl='-Wl,'
7752 lt_prog_compiler_pic='-KPIC'
7753 lt_prog_compiler_static='-Bstatic'
7757 if test -d /usr/nec ;then
7758 lt_prog_compiler_pic='-Kconform_pic'
7759 lt_prog_compiler_static='-Bstatic'
7763 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_pic='-KPIC'
7766 lt_prog_compiler_static='-Bstatic'
7770 lt_prog_compiler_wl='-Wl,'
7771 lt_prog_compiler_can_build_shared=no
7775 lt_prog_compiler_pic='-pic'
7776 lt_prog_compiler_static='-Bstatic'
7780 lt_prog_compiler_can_build_shared=no
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7786 $as_echo "$lt_prog_compiler_pic" >&6; }
7789 # Check to make sure the PIC flag actually works.
7791 if test -n "$lt_prog_compiler_pic"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7794 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7795 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7796 $as_echo_n "(cached) " >&6
7798 lt_cv_prog_compiler_pic_works=no
7799 ac_outfile=conftest.$ac_objext
7800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7801 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7802 # Insert the option either (1) after the last *FLAGS variable, or
7803 # (2) before a word containing "conftest.", or (3) at the end.
7804 # Note that $ac_compile itself does not contain backslashes and begins
7805 # with a dollar sign (not a hyphen), so the echo should work correctly.
7806 # The option is referenced via a variable to avoid confusing sed.
7807 lt_compile=`echo "$ac_compile" | $SED \
7808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7810 -e 's:$: $lt_compiler_flag:'`
7811 (eval echo "\"\$as_me:7811: $lt_compile\"" >&5)
7812 (eval "$lt_compile" 2>conftest.err)
7814 cat conftest.err >&5
7815 echo "$as_me:7815: \$? = $ac_status" >&5
7816 if (exit $ac_status) && test -s "$ac_outfile"; then
7817 # The compiler can only warn and ignore the option if not recognized
7818 # So say no if there are warnings other than the usual output.
7819 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7822 lt_cv_prog_compiler_pic_works=yes
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7829 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7831 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7832 case $lt_prog_compiler_pic in
7834 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7837 lt_prog_compiler_pic=
7838 lt_prog_compiler_can_build_shared=no
7843 # For platforms which do not support PIC, -DPIC is meaningless:
7845 lt_prog_compiler_pic=
7848 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7853 # Check to make sure the static flag actually works.
7855 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7857 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7858 if ${lt_cv_prog_compiler_static_works+:} false; then :
7859 $as_echo_n "(cached) " >&6
7861 lt_cv_prog_compiler_static_works=no
7862 save_LDFLAGS="$LDFLAGS"
7863 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7864 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7865 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7866 # The linker can only warn and ignore the option if not recognized
7867 # So say no if there are warnings
7868 if test -s conftest.err; then
7869 # Append any errors to the config.log.
7870 cat conftest.err 1>&5
7871 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7873 if diff conftest.exp conftest.er2 >/dev/null; then
7874 lt_cv_prog_compiler_static_works=yes
7877 lt_cv_prog_compiler_static_works=yes
7881 LDFLAGS="$save_LDFLAGS"
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7885 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7887 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7890 lt_prog_compiler_static=
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7895 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7896 if ${lt_cv_prog_compiler_c_o+:} false; then :
7897 $as_echo_n "(cached) " >&6
7899 lt_cv_prog_compiler_c_o=no
7900 $rm -r conftest 2>/dev/null
7904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7906 lt_compiler_flag="-o out/conftest2.$ac_objext"
7907 # Insert the option either (1) after the last *FLAGS variable, or
7908 # (2) before a word containing "conftest.", or (3) at the end.
7909 # Note that $ac_compile itself does not contain backslashes and begins
7910 # with a dollar sign (not a hyphen), so the echo should work correctly.
7911 lt_compile=`echo "$ac_compile" | $SED \
7912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7914 -e 's:$: $lt_compiler_flag:'`
7915 (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7916 (eval "$lt_compile" 2>out/conftest.err)
7918 cat out/conftest.err >&5
7919 echo "$as_me:7919: \$? = $ac_status" >&5
7920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7922 # The compiler can only warn and ignore the option if not recognized
7923 # So say no if there are warnings
7924 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7927 lt_cv_prog_compiler_c_o=yes
7932 # SGI C++ compiler will create directory out/ii_files/ for
7933 # template instantiation
7934 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7935 $rm out/* && rmdir out
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7942 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7945 hard_links="nottested"
7946 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7947 # do not overwrite the value of need_locks provided by the user
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7949 $as_echo_n "checking if we can lock with hard links... " >&6; }
7952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7954 ln conftest.a conftest.b 2>&5 || hard_links=no
7955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7957 $as_echo "$hard_links" >&6; }
7958 if test "$hard_links" = no; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7960 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7968 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7971 allow_undefined_flag=
7972 enable_shared_with_static_runtimes=no
7974 archive_expsym_cmds=
7975 old_archive_From_new_cmds=
7976 old_archive_from_expsyms_cmds=
7977 export_dynamic_flag_spec=
7978 whole_archive_flag_spec=
7979 thread_safe_flag_spec=
7980 hardcode_libdir_flag_spec=
7981 hardcode_libdir_flag_spec_ld=
7982 hardcode_libdir_separator=
7985 hardcode_shlibpath_var=unsupported
7986 link_all_deplibs=unknown
7987 hardcode_automatic=no
7990 always_export_symbols=no
7991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7992 # include_expsyms should be a list of space-separated symbols to be *always*
7993 # included in the symbol list
7995 # exclude_expsyms can be an extended regexp of symbols to exclude
7996 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7997 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7998 # as well as any symbol that contains `d'.
7999 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8000 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8001 # platforms (ab)use it in PIC code, but their linkers get confused if
8002 # the symbol is explicitly referenced. Since portable code cannot
8003 # rely on this symbol name, it's probably fine to never include it in
8004 # preloaded symbol tables.
8005 # Exclude shared library initialization/finalization symbols.
8006 extract_expsyms_cmds=
8007 # Just being paranoid about ensuring that cc_basename is set.
8008 for cc_temp in $compiler""; do
8010 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8011 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8016 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8019 cygwin* | mingw* | pw32*)
8020 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8021 # When not using gcc, we currently assume that we are using
8022 # Microsoft Visual C++.
8023 if test "$GCC" != yes; then
8028 # we just hope/assume this is gcc and not c89 (= MSVC++)
8037 if test "$with_gnu_ld" = yes; then
8038 # If archive_cmds runs LD, not CC, wlarc should be empty
8041 # Set some defaults for GNU ld with shared library support. These
8042 # are reset later if shared libraries are not supported. Putting them
8043 # here allows them to be overridden if necessary.
8044 runpath_var=LD_RUN_PATH
8045 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8046 export_dynamic_flag_spec='${wl}--export-dynamic'
8047 # ancient GNU ld didn't support --whole-archive et. al.
8048 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8049 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8051 whole_archive_flag_spec=
8053 supports_anon_versioning=no
8054 case `$LD -v 2>/dev/null` in
8055 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8056 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8057 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8058 *\ 2.11.*) ;; # other 2.11 versions
8059 *) supports_anon_versioning=yes ;;
8062 # See if GNU ld supports shared libraries.
8065 # On AIX/PPC, the GNU linker is very broken
8066 if test "$host_cpu" != ia64; then
8070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8071 *** to be unable to reliably create shared libraries on AIX.
8072 *** Therefore, libtool is disabling shared libraries support. If you
8073 *** really care for shared libraries, you may want to modify your PATH
8074 *** so that a non-GNU linker is found, and then restart.
8081 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)'
8082 hardcode_libdir_flag_spec='-L$libdir'
8083 hardcode_minus_L=yes
8085 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8086 # that the semantics of dynamic libraries on AmigaOS, at least up
8087 # to version 4, is to share data among multiple programs linked
8088 # with the same dynamic library. Since this doesn't match the
8089 # behavior of shared libraries on other platforms, we can't use
8095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8096 allow_undefined_flag=unsupported
8097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8098 # support --undefined. This deserves some investigation. FIXME
8099 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8105 cygwin* | mingw* | pw32*)
8106 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8107 # as there is no search path for DLLs.
8108 hardcode_libdir_flag_spec='-L$libdir'
8109 allow_undefined_flag=unsupported
8110 always_export_symbols=no
8111 enable_shared_with_static_runtimes=yes
8112 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8114 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8116 # If the export-symbols file already is a .def file (1st line
8117 # is EXPORTS), use it as is; otherwise, prepend...
8118 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8119 cp $export_symbols $output_objdir/$soname.def;
8121 echo EXPORTS > $output_objdir/$soname.def;
8122 cat $export_symbols >> $output_objdir/$soname.def;
8124 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8132 hardcode_shlibpath_var=no
8133 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8134 export_dynamic_flag_spec='${wl}-E'
8135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8136 # Instead, shared libraries are loaded at an image base (0x10000000 by
8137 # default) and relocated if they conflict, which is a slow very memory
8138 # consuming and fragmenting process. To avoid this, we pick a random,
8139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8140 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8142 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'
8145 gnu* | linux* | k*bsd*-gnu)
8146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8148 case $cc_basename,$host_cpu in
8149 pgcc*) # Portland Group C compiler
8150 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'
8151 tmp_addflag=' $pic_flag'
8153 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8154 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8155 tmp_addflag=' $pic_flag -Mnomain' ;;
8156 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8157 tmp_addflag=' -i_dynamic' ;;
8158 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8159 tmp_addflag=' -i_dynamic -nofor_main' ;;
8160 ifc* | ifort*) # Intel Fortran compiler
8161 tmp_addflag=' -nofor_main' ;;
8163 case `$CC -V 2>&1 | sed 5q` in
8164 *Sun\ C*) # Sun C 5.9
8165 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'
8166 tmp_sharedflag='-G' ;;
8167 *Sun\ F*) # Sun Fortran 8.3
8168 tmp_sharedflag='-G' ;;
8170 tmp_sharedflag='-shared' ;;
8172 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174 if test $supports_anon_versioning = yes; then
8175 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8176 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8177 $echo "local: *; };" >> $output_objdir/$libname.ver~
8178 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8186 netbsd* | netbsdelf*-gnu)
8187 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8188 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8197 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8201 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8202 *** create shared libraries on Solaris systems. Therefore, libtool
8203 *** is disabling shared libraries support. We urge you to upgrade GNU
8204 *** binutils to release 2.9.1 or newer. Another option is to modify
8205 *** your PATH or compiler configuration so that the native linker is
8206 *** used, and then restart.
8209 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8218 case `$LD -v 2>&1` in
8219 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8223 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8224 *** reliably create shared libraries on SCO systems. Therefore, libtool
8225 *** is disabling shared libraries support. We urge you to upgrade GNU
8226 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8227 *** your PATH or compiler configuration so that the native linker is
8228 *** used, and then restart.
8233 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8245 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8248 hardcode_shlibpath_var=no
8252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8261 if test "$ld_shlibs" = no; then
8263 hardcode_libdir_flag_spec=
8264 export_dynamic_flag_spec=
8265 whole_archive_flag_spec=
8268 # PORTME fill in a description of your system's linker (not GNU ld)
8271 allow_undefined_flag=unsupported
8272 always_export_symbols=yes
8273 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'
8274 # Note: this linker hardcodes the directories in LIBPATH if there
8275 # are no directories specified by -L.
8276 hardcode_minus_L=yes
8277 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8278 # Neither direct hardcoding nor static linking is supported with a
8280 hardcode_direct=unsupported
8285 if test "$host_cpu" = ia64; then
8286 # On IA64, the linker does run time linking by default, so we don't
8287 # have to do anything special.
8288 aix_use_runtimelinking=no
8289 exp_sym_flag='-Bexport'
8292 # If we're using GNU nm, then we don't want the "-C" option.
8293 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8294 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8295 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'
8297 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'
8299 aix_use_runtimelinking=no
8301 # Test if we are trying to use run time linking or normal
8302 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8303 # need to do runtime linking.
8304 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8305 for ld_flag in $LDFLAGS; do
8306 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8307 aix_use_runtimelinking=yes
8314 exp_sym_flag='-bexport'
8315 no_entry_flag='-bnoentry'
8318 # When large executables or shared objects are built, AIX ld can
8319 # have problems creating the table of contents. If linking a library
8320 # or program results in "error TOC overflow" add -mminimal-toc to
8321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8326 hardcode_libdir_separator=':'
8327 link_all_deplibs=yes
8329 if test "$GCC" = yes; then
8330 case $host_os in aix4.[012]|aix4.[012].*)
8331 # We only want to do this on AIX 4.2 and lower, the check
8332 # below for broken collect2 doesn't work under 4.3+
8333 collect2name=`${CC} -print-prog-name=collect2`
8334 if test -f "$collect2name" && \
8335 strings "$collect2name" | grep resolve_lib_name >/dev/null
8337 # We have reworked collect2
8340 # We have old collect2
8341 hardcode_direct=unsupported
8342 # It fails to find uninstalled libraries when the uninstalled
8343 # path is not listed in the libpath. Setting hardcode_minus_L
8344 # to unsupported forces relinking
8345 hardcode_minus_L=yes
8346 hardcode_libdir_flag_spec='-L$libdir'
8347 hardcode_libdir_separator=
8351 shared_flag='-shared'
8352 if test "$aix_use_runtimelinking" = yes; then
8353 shared_flag="$shared_flag "'${wl}-G'
8357 if test "$host_cpu" = ia64; then
8358 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8359 # chokes on -Wl,-G. The following line is correct:
8362 if test "$aix_use_runtimelinking" = yes; then
8363 shared_flag='${wl}-G'
8365 shared_flag='${wl}-bM:SRE'
8370 # It seems that -bexpall does not export symbols beginning with
8371 # underscore (_), so it is better to generate a list of symbols to export.
8372 always_export_symbols=yes
8373 if test "$aix_use_runtimelinking" = yes; then
8374 # Warning - without using the other runtime loading flags (-brtl),
8375 # -berok will link without error, but may produce a broken library.
8376 allow_undefined_flag='-berok'
8377 # Determine the default libpath from the value encoded in an empty executable.
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8389 if ac_fn_c_try_link "$LINENO"; then :
8391 lt_aix_libpath_sed='
8392 /Import File Strings/,/^$/ {
8398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399 # Check for a 64-bit object if we didn't find anything.
8400 if test -z "$aix_libpath"; then
8401 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8404 rm -f core conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8408 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8409 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"
8411 if test "$host_cpu" = ia64; then
8412 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8413 allow_undefined_flag="-z nodefs"
8414 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"
8416 # Determine the default libpath from the value encoded in an empty executable.
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8428 if ac_fn_c_try_link "$LINENO"; then :
8430 lt_aix_libpath_sed='
8431 /Import File Strings/,/^$/ {
8437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8438 # Check for a 64-bit object if we didn't find anything.
8439 if test -z "$aix_libpath"; then
8440 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8443 rm -f core conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8447 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8448 # Warning - without using the other run time loading flags,
8449 # -berok will link without error, but may produce a broken library.
8450 no_undefined_flag=' ${wl}-bernotok'
8451 allow_undefined_flag=' ${wl}-berok'
8452 # Exported symbols can be pulled into shared objects from archives
8453 whole_archive_flag_spec='$convenience'
8454 archive_cmds_need_lc=yes
8455 # This is similar to how AIX traditionally builds its shared libraries.
8456 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'
8462 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)'
8463 hardcode_libdir_flag_spec='-L$libdir'
8464 hardcode_minus_L=yes
8465 # see comment about different semantics on the GNU ld section
8470 export_dynamic_flag_spec=-rdynamic
8473 cygwin* | mingw* | pw32*)
8474 # When not using gcc, we currently assume that we are using
8475 # Microsoft Visual C++.
8476 # hardcode_libdir_flag_spec is actually meaningless, as there is
8477 # no search path for DLLs.
8478 hardcode_libdir_flag_spec=' '
8479 allow_undefined_flag=unsupported
8480 # Tell ltmain to make .lib files, not .a files.
8482 # Tell ltmain to make .dll files, not .so files.
8484 # FIXME: Setting linknames here is a bad hack.
8485 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8486 # The linker will automatically build a .lib file if we build a DLL.
8487 old_archive_From_new_cmds='true'
8488 # FIXME: Should let the user specify the lib program.
8489 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8490 fix_srcfile_path='`cygpath -w "$srcfile"`'
8491 enable_shared_with_static_runtimes=yes
8494 darwin* | rhapsody*)
8496 rhapsody* | darwin1.[012])
8497 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8500 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8501 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8503 case ${MACOSX_DEPLOYMENT_TARGET} in
8505 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8508 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8514 archive_cmds_need_lc=no
8516 hardcode_automatic=yes
8517 hardcode_shlibpath_var=unsupported
8518 whole_archive_flag_spec=''
8519 link_all_deplibs=yes
8520 if test "$GCC" = yes ; then
8521 output_verbose_link_cmd='echo'
8522 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8523 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8524 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}"
8525 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}"
8527 case $cc_basename in
8529 output_verbose_link_cmd='echo'
8530 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8531 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8532 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8533 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}'
8534 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}'
8544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545 hardcode_libdir_flag_spec='-L$libdir'
8546 hardcode_shlibpath_var=no
8553 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8554 # support. Future versions do this automatically, but an explicit c++rt0.o
8555 # does not break anything, and helps significantly (at the cost of a little
8558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8559 hardcode_libdir_flag_spec='-R$libdir'
8561 hardcode_shlibpath_var=no
8564 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8568 hardcode_minus_L=yes
8569 hardcode_shlibpath_var=no
8572 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8573 freebsd* | dragonfly*)
8574 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8575 hardcode_libdir_flag_spec='-R$libdir'
8577 hardcode_shlibpath_var=no
8581 if test "$GCC" = yes; then
8582 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'
8584 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'
8586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8587 hardcode_libdir_separator=:
8590 # hardcode_minus_L: Not really in the search PATH,
8591 # but as the default location of the library.
8592 hardcode_minus_L=yes
8593 export_dynamic_flag_spec='${wl}-E'
8597 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8598 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8600 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8602 if test "$with_gnu_ld" = no; then
8603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8604 hardcode_libdir_separator=:
8607 export_dynamic_flag_spec='${wl}-E'
8609 # hardcode_minus_L: Not really in the search PATH,
8610 # but as the default location of the library.
8611 hardcode_minus_L=yes
8616 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8619 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8622 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8625 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8631 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8634 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8637 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8641 if test "$with_gnu_ld" = no; then
8642 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8643 hardcode_libdir_separator=:
8647 hardcode_libdir_flag_spec_ld='+b $libdir'
8649 hardcode_shlibpath_var=no
8653 export_dynamic_flag_spec='${wl}-E'
8655 # hardcode_minus_L: Not really in the search PATH,
8656 # but as the default location of the library.
8657 hardcode_minus_L=yes
8663 irix5* | irix6* | nonstopux*)
8664 if test "$GCC" = yes; then
8665 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'
8667 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'
8668 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8670 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8671 hardcode_libdir_separator=:
8672 link_all_deplibs=yes
8675 netbsd* | netbsdelf*-gnu)
8676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8679 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8681 hardcode_libdir_flag_spec='-R$libdir'
8683 hardcode_shlibpath_var=no
8687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690 hardcode_libdir_separator=:
8691 hardcode_shlibpath_var=no
8695 if test -f /usr/libexec/ld.so; then
8697 hardcode_shlibpath_var=no
8698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8700 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8702 export_dynamic_flag_spec='${wl}-E'
8705 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8707 hardcode_libdir_flag_spec='-R$libdir'
8710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8721 hardcode_libdir_flag_spec='-L$libdir'
8722 hardcode_minus_L=yes
8723 allow_undefined_flag=unsupported
8724 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'
8725 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8729 if test "$GCC" = yes; then
8730 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8731 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'
8733 allow_undefined_flag=' -expect_unresolved \*'
8734 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'
8736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8737 hardcode_libdir_separator=:
8740 osf4* | osf5*) # as osf3* with the addition of -msym flag
8741 if test "$GCC" = yes; then
8742 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8743 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'
8744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8746 allow_undefined_flag=' -expect_unresolved \*'
8747 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'
8748 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8749 $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'
8751 # Both c and cxx compiler support -rpath directly
8752 hardcode_libdir_flag_spec='-rpath $libdir'
8754 hardcode_libdir_separator=:
8758 no_undefined_flag=' -z text'
8759 if test "$GCC" = yes; then
8761 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8762 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8763 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8766 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8768 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8770 hardcode_libdir_flag_spec='-R$libdir'
8771 hardcode_shlibpath_var=no
8773 solaris2.[0-5] | solaris2.[0-5].*) ;;
8775 # The compiler driver will combine and reorder linker options,
8776 # but understands `-z linker_flag'. GCC discards it without `$wl',
8777 # but is careful enough not to reorder.
8778 # Supported since Solaris 2.6 (maybe 2.5.1?)
8779 if test "$GCC" = yes; then
8780 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8782 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8786 link_all_deplibs=yes
8790 if test "x$host_vendor" = xsequent; then
8791 # Use $CC to link under sequent, because it throws in some extra .o
8792 # files that make .init and .fini sections work.
8793 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8795 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8797 hardcode_libdir_flag_spec='-L$libdir'
8799 hardcode_minus_L=yes
8800 hardcode_shlibpath_var=no
8804 case $host_vendor in
8806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_direct=yes # is this really true???
8810 ## LD is ld it makes a PLAMLIB
8811 ## CC just makes a GrossModule.
8812 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8813 reload_cmds='$CC -r -o $output$reload_objs'
8817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8818 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8821 runpath_var='LD_RUN_PATH'
8822 hardcode_shlibpath_var=no
8826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8827 hardcode_shlibpath_var=no
8828 export_dynamic_flag_spec='-Bexport'
8832 if test -d /usr/nec; then
8833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8834 hardcode_shlibpath_var=no
8835 runpath_var=LD_RUN_PATH
8836 hardcode_runpath_var=yes
8841 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8842 no_undefined_flag='${wl}-z,text'
8843 archive_cmds_need_lc=no
8844 hardcode_shlibpath_var=no
8845 runpath_var='LD_RUN_PATH'
8847 if test "$GCC" = yes; then
8848 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 sysv5* | sco3.2v5* | sco5v6*)
8857 # Note: We can NOT use -z defs as we might desire, because we do not
8858 # link with -lc, and that would cause any symbols used from libc to
8859 # always be unresolved, which means just about no library would
8860 # ever link correctly. If we're not using GNU ld we use -z text
8861 # though, which does catch some bad symbols but isn't as heavy-handed
8863 no_undefined_flag='${wl}-z,text'
8864 allow_undefined_flag='${wl}-z,nodefs'
8865 archive_cmds_need_lc=no
8866 hardcode_shlibpath_var=no
8867 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8868 hardcode_libdir_separator=':'
8869 link_all_deplibs=yes
8870 export_dynamic_flag_spec='${wl}-Bexport'
8871 runpath_var='LD_RUN_PATH'
8873 if test "$GCC" = yes; then
8874 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8878 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_libdir_flag_spec='-L$libdir'
8885 hardcode_shlibpath_var=no
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8895 $as_echo "$ld_shlibs" >&6; }
8896 test "$ld_shlibs" = no && can_build_shared=no
8899 # Do we need to explicitly link libc?
8901 case "x$archive_cmds_need_lc" in
8903 # Assume -lc should be added
8904 archive_cmds_need_lc=yes
8906 if test "$enable_shared" = yes && test "$GCC" = yes; then
8907 case $archive_cmds in
8909 # FIXME: we may have to deal with multi-command sequences.
8912 # Test whether the compiler implicitly links with -lc since on some
8913 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8914 # to ld, don't add -lc before -lgcc.
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8916 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8921 (eval $ac_compile) 2>&5
8923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8924 test $ac_status = 0; } 2>conftest.err; then
8927 libobjs=conftest.$ac_objext
8929 wl=$lt_prog_compiler_wl
8930 pic_flag=$lt_prog_compiler_pic
8936 lt_save_allow_undefined_flag=$allow_undefined_flag
8937 allow_undefined_flag=
8938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8939 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8942 test $ac_status = 0; }
8944 archive_cmds_need_lc=no
8946 archive_cmds_need_lc=yes
8948 allow_undefined_flag=$lt_save_allow_undefined_flag
8950 cat conftest.err 1>&5
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8954 $as_echo "$archive_cmds_need_lc" >&6; }
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8962 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8964 libname_spec='lib$name'
8972 shlibpath_overrides_runpath=unknown
8974 dynamic_linker="$host_os ld.so"
8975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8977 if test "$GCC" = yes; then
8979 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8980 *) lt_awk_arg="/^libraries:/" ;;
8982 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8983 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8984 # if the path contains ";" then we assume it to be the separator
8985 # otherwise default to the standard path separator (i.e. ":") - it is
8986 # assumed that no part of a normal pathname contains ";" but that should
8987 # okay in the real world where ";" in dirpaths is itself problematic.
8988 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8990 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8992 # Ok, now we have the path, separated by spaces, we can step through it
8993 # and add multilib dir if necessary.
8994 lt_tmp_lt_search_path_spec=
8995 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8996 for lt_sys_path in $lt_search_path_spec; do
8997 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8998 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9000 test -d "$lt_sys_path" && \
9001 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9004 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9005 BEGIN {RS=" "; FS="/|\n";} {
9008 for (lt_i = NF; lt_i > 0; lt_i--) {
9009 if ($lt_i != "" && $lt_i != ".") {
9010 if ($lt_i == "..") {
9013 if (lt_count == 0) {
9014 lt_foo="/" $lt_i lt_foo;
9021 if (lt_foo != "") { lt_freq[lt_foo]++; }
9022 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9024 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9028 need_lib_prefix=unknown
9029 hardcode_into_libs=no
9031 # when you set need_version to no, make sure it does not cause -set_version
9032 # flags to be left without arguments
9033 need_version=unknown
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9039 shlibpath_var=LIBPATH
9041 # AIX 3 has no versioning support, so we append a major version to the name.
9042 soname_spec='${libname}${release}${shared_ext}$major'
9049 hardcode_into_libs=yes
9050 if test "$host_cpu" = ia64; then
9051 # AIX 5 supports IA64
9052 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9053 shlibpath_var=LD_LIBRARY_PATH
9055 # With GCC up to 2.95.x, collect2 would create an import file
9056 # for dependence libraries. The import file would start with
9057 # the line `#! .'. This would cause the generated library to
9058 # depend on `.', always an invalid library. This was fixed in
9059 # development snapshots of GCC prior to 3.0.
9061 aix4 | aix4.[01] | aix4.[01].*)
9062 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9064 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9071 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9072 # soname into executable. Probably we can add versioning support to
9073 # collect2, so additional links can be useful in future.
9074 if test "$aix_use_runtimelinking" = yes; then
9075 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9076 # instead of lib<name>.a to let people know that these are not
9077 # typical AIX shared libraries.
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080 # We preserve .a as extension for shared libraries through AIX4.2
9081 # and later when we are not doing run time linking.
9082 library_names_spec='${libname}${release}.a $libname.a'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9085 shlibpath_var=LIBPATH
9090 library_names_spec='$libname.ixlibrary $libname.a'
9091 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9092 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'
9096 library_names_spec='${libname}${shared_ext}'
9097 dynamic_linker="$host_os ld.so"
9098 shlibpath_var=LIBRARY_PATH
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9110 # the default ld.so.conf also contains /usr/contrib/lib and
9111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9112 # libtool to hard-code these into programs
9115 cygwin* | mingw* | pw32*)
9116 version_type=windows
9121 case $GCC,$host_os in
9122 yes,cygwin* | yes,mingw* | yes,pw32*)
9123 library_names_spec='$libname.dll.a'
9124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9125 postinstall_cmds='base_file=`basename \${file}`~
9126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9127 dldir=$destdir/`dirname \$dlpath`~
9128 test -d \$dldir || mkdir -p \$dldir~
9129 $install_prog $dir/$dlname \$dldir/$dlname~
9130 chmod a+x \$dldir/$dlname'
9131 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9132 dlpath=$dir/\$dldll~
9134 shlibpath_overrides_runpath=yes
9138 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9139 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9140 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9143 # MinGW DLLs use traditional 'lib' prefix
9144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9145 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9146 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9147 # It is most probably a Windows format PATH printed by
9148 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9149 # path with ; separators, and with drive letters. We can handle the
9150 # drive letters (cygwin fileutils understands them), so leave them,
9151 # especially as we might pass files found there to a mingw objdump,
9152 # which wouldn't understand a cygwinified path. Ahh.
9153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9159 # pw32 DLLs use 'pw' prefix rather than 'lib'
9160 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9166 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9169 dynamic_linker='Win32 ld.exe'
9170 # FIXME: first we should search . and the directory the executable is in
9174 darwin* | rhapsody*)
9175 dynamic_linker="$host_os dyld"
9179 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9180 soname_spec='${libname}${release}${major}$shared_ext'
9181 shlibpath_overrides_runpath=yes
9182 shlibpath_var=DYLD_LIBRARY_PATH
9183 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9185 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 shlibpath_var=LD_LIBRARY_PATH
9202 freebsd* | dragonfly*)
9203 # DragonFly does not have aout. When/if they implement a new
9204 # versioning mechanism, adjust this.
9205 if test -x /usr/bin/objformat; then
9206 objformat=`/usr/bin/objformat`
9209 freebsd[123]*) objformat=aout ;;
9213 version_type=freebsd-$objformat
9214 case $version_type in
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9225 shlibpath_var=LD_LIBRARY_PATH
9228 shlibpath_overrides_runpath=yes
9230 freebsd3.[01]* | freebsdelf3.[01]*)
9231 shlibpath_overrides_runpath=yes
9232 hardcode_into_libs=yes
9234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9236 shlibpath_overrides_runpath=no
9237 hardcode_into_libs=yes
9239 *) # from 4.6 on, and DragonFly
9240 shlibpath_overrides_runpath=yes
9241 hardcode_into_libs=yes
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 hardcode_into_libs=yes
9256 hpux9* | hpux10* | hpux11*)
9257 # Give a soname corresponding to the major version so that dld.sl refuses to
9258 # link against other versions.
9265 hardcode_into_libs=yes
9266 dynamic_linker="$host_os dld.so"
9267 shlibpath_var=LD_LIBRARY_PATH
9268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 if test "X$HPUX_IA64_MODE" = X32; then
9272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9280 hardcode_into_libs=yes
9281 dynamic_linker="$host_os dld.sl"
9282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9291 dynamic_linker="$host_os dld.sl"
9292 shlibpath_var=SHLIB_PATH
9293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9298 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9299 postinstall_cmds='chmod 555 $lib'
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9307 soname_spec='${libname}${release}${shared_ext}$major'
9308 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=no
9311 hardcode_into_libs=yes
9314 irix5* | irix6* | nonstopux*)
9316 nonstopux*) version_type=nonstopux ;;
9318 if test "$lt_cv_prog_gnu_ld" = yes; then
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9329 irix5* | nonstopux*)
9333 case $LD in # libtool.m4 will add one of these switches to LD
9334 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9335 libsuff= shlibsuff= libmagic=32-bit;;
9336 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9337 libsuff=32 shlibsuff=N32 libmagic=N32;;
9338 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9339 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9340 *) libsuff= shlibsuff= libmagic=never-match;;
9344 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9345 shlibpath_overrides_runpath=no
9346 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9347 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9348 hardcode_into_libs=yes
9351 # No shared lib support for Linux oldld, aout, or coff.
9352 linux*oldld* | linux*aout* | linux*coff*)
9356 # This must be Linux ELF.
9357 linux* | k*bsd*-gnu)
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 shlibpath_overrides_runpath=no
9366 # This implies no fast_install, which is unacceptable.
9367 # Some rework will be needed to allow for fast_install
9368 # before this can be enabled.
9369 hardcode_into_libs=yes
9371 # Append ld.so.conf contents to the search path
9372 if test -f /etc/ld.so.conf; then
9373 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' ' '`
9374 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9377 # We used to test for /lib/ld.so.1 and disable shared libraries on
9378 # powerpc, because MkLinux only supported shared libraries with the
9379 # GNU dynamic linker. Since this was broken with cross compilers,
9380 # most powerpc-linux boxes support dynamic linking these days and
9381 # people can always --disable-shared, the test was removed, and we
9382 # assume the GNU/Linux dynamic linker is in use.
9383 dynamic_linker='GNU/Linux ld.so'
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 shlibpath_var=LD_LIBRARY_PATH
9393 shlibpath_overrides_runpath=no
9394 hardcode_into_libs=yes
9395 dynamic_linker='NetBSD ld.elf_so'
9402 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9405 dynamic_linker='NetBSD (a.out) ld.so'
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 dynamic_linker='NetBSD ld.elf_so'
9411 shlibpath_var=LD_LIBRARY_PATH
9412 shlibpath_overrides_runpath=yes
9413 hardcode_into_libs=yes
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=yes
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 shlibpath_overrides_runpath=yes
9435 sys_lib_dlsearch_path_spec="/usr/lib"
9437 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9439 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9440 *) need_version=no ;;
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9444 shlibpath_var=LD_LIBRARY_PATH
9445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9447 openbsd2.[89] | openbsd2.[89].*)
9448 shlibpath_overrides_runpath=no
9451 shlibpath_overrides_runpath=yes
9455 shlibpath_overrides_runpath=yes
9460 libname_spec='$name'
9463 library_names_spec='$libname${shared_ext} $libname.a'
9464 dynamic_linker='OS/2 ld.exe'
9465 shlibpath_var=LIBPATH
9468 osf3* | osf4* | osf5*)
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9476 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 soname_spec='${libname}${release}${shared_ext}$major'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 shlibpath_overrides_runpath=yes
9491 hardcode_into_libs=yes
9492 # ldd complains unless libraries are executable
9493 postinstall_cmds='chmod +x $lib'
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=yes
9502 if test "$with_gnu_ld" = yes; then
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9511 soname_spec='${libname}${release}${shared_ext}$major'
9512 shlibpath_var=LD_LIBRARY_PATH
9513 case $host_vendor in
9515 shlibpath_overrides_runpath=no
9517 export_dynamic_flag_spec='${wl}-Blargedynsym'
9518 runpath_var=LD_RUN_PATH
9526 shlibpath_overrides_runpath=no
9527 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9533 if test -d /usr/nec ;then
9535 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9536 soname_spec='$libname${shared_ext}.$major'
9537 shlibpath_var=LD_LIBRARY_PATH
9541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9542 version_type=freebsd-elf
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 shlibpath_var=LD_LIBRARY_PATH
9548 hardcode_into_libs=yes
9549 if test "$with_gnu_ld" = yes; then
9550 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9551 shlibpath_overrides_runpath=no
9553 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9554 shlibpath_overrides_runpath=yes
9557 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9561 sys_lib_dlsearch_path_spec='/usr/lib'
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567 soname_spec='${libname}${release}${shared_ext}$major'
9568 shlibpath_var=LD_LIBRARY_PATH
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9576 $as_echo "$dynamic_linker" >&6; }
9577 test "$dynamic_linker" = no && can_build_shared=no
9579 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9580 $as_echo_n "(cached) " >&6
9582 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9585 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9586 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9587 $as_echo_n "(cached) " >&6
9589 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9592 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9594 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9595 if test "$GCC" = yes; then
9596 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9600 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9602 if test -n "$hardcode_libdir_flag_spec" || \
9603 test -n "$runpath_var" || \
9604 test "X$hardcode_automatic" = "Xyes" ; then
9606 # We can hardcode non-existant directories.
9607 if test "$hardcode_direct" != no &&
9608 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9609 # have to relink, otherwise we might link with an installed library
9610 # when we should be linking with a yet-to-be-installed one
9611 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9612 test "$hardcode_minus_L" != no; then
9613 # Linking always hardcodes the temporary library directory.
9614 hardcode_action=relink
9616 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9617 hardcode_action=immediate
9620 # We cannot hardcode anything, or else we can only hardcode existing
9622 hardcode_action=unsupported
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9625 $as_echo "$hardcode_action" >&6; }
9627 if test "$hardcode_action" = relink; then
9628 # Fast installation is not supported
9629 enable_fast_install=no
9630 elif test "$shlibpath_overrides_runpath" = yes ||
9631 test "$enable_shared" = no; then
9632 # Fast installation is not necessary
9633 enable_fast_install=needless
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9639 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9640 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9641 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9642 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9644 $as_echo "yes" >&6; }
9646 # FIXME - insert some real tests, host_os isn't really good enough
9649 if test -n "$STRIP" ; then
9650 striplib="$STRIP -x"
9651 old_striplib="$STRIP -S"
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9653 $as_echo "yes" >&6; }
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661 $as_echo "no" >&6; }
9666 if test "x$enable_dlopen" != xyes; then
9667 enable_dlopen=unknown
9668 enable_dlopen_self=unknown
9669 enable_dlopen_self_static=unknown
9676 lt_cv_dlopen="load_add_on"
9678 lt_cv_dlopen_self=yes
9682 lt_cv_dlopen="LoadLibrary"
9687 lt_cv_dlopen="dlopen"
9692 # if libdl is installed we need to link against it
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9695 if ${ac_cv_lib_dl_dlopen+:} false; then :
9696 $as_echo_n "(cached) " >&6
9698 ac_check_lib_save_LIBS=$LIBS
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9703 /* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
9718 if ac_fn_c_try_link "$LINENO"; then :
9719 ac_cv_lib_dl_dlopen=yes
9721 ac_cv_lib_dl_dlopen=no
9723 rm -f core conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
9725 LIBS=$ac_check_lib_save_LIBS
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9735 lt_cv_dlopen_self=yes
9742 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9743 if test "x$ac_cv_func_shl_load" = xyes; then :
9744 lt_cv_dlopen="shl_load"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9747 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9748 if ${ac_cv_lib_dld_shl_load+:} false; then :
9749 $as_echo_n "(cached) " >&6
9751 ac_check_lib_save_LIBS=$LIBS
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9756 /* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
9771 if ac_fn_c_try_link "$LINENO"; then :
9772 ac_cv_lib_dld_shl_load=yes
9774 ac_cv_lib_dld_shl_load=no
9776 rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778 LIBS=$ac_check_lib_save_LIBS
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9781 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9782 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9783 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9785 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9786 if test "x$ac_cv_func_dlopen" = xyes; then :
9787 lt_cv_dlopen="dlopen"
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9790 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9791 if ${ac_cv_lib_dl_dlopen+:} false; then :
9792 $as_echo_n "(cached) " >&6
9794 ac_check_lib_save_LIBS=$LIBS
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9814 if ac_fn_c_try_link "$LINENO"; then :
9815 ac_cv_lib_dl_dlopen=yes
9817 ac_cv_lib_dl_dlopen=no
9819 rm -f core conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9824 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9825 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9826 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9829 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9830 if ${ac_cv_lib_svld_dlopen+:} false; then :
9831 $as_echo_n "(cached) " >&6
9833 ac_check_lib_save_LIBS=$LIBS
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9838 /* Override any GCC internal prototype to avoid an error.
9839 Use char because int might match the return type of a GCC
9840 builtin and then its argument prototype would still apply. */
9853 if ac_fn_c_try_link "$LINENO"; then :
9854 ac_cv_lib_svld_dlopen=yes
9856 ac_cv_lib_svld_dlopen=no
9858 rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LIBS=$ac_check_lib_save_LIBS
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9863 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9864 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9868 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9869 if ${ac_cv_lib_dld_dld_link+:} false; then :
9870 $as_echo_n "(cached) " >&6
9872 ac_check_lib_save_LIBS=$LIBS
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9877 /* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
9892 if ac_fn_c_try_link "$LINENO"; then :
9893 ac_cv_lib_dld_dld_link=yes
9895 ac_cv_lib_dld_dld_link=no
9897 rm -f core conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899 LIBS=$ac_check_lib_save_LIBS
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9902 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9903 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9904 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9925 if test "x$lt_cv_dlopen" != xno; then
9931 case $lt_cv_dlopen in
9933 save_CPPFLAGS="$CPPFLAGS"
9934 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9936 save_LDFLAGS="$LDFLAGS"
9937 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9940 LIBS="$lt_cv_dlopen_libs $LIBS"
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9943 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9944 if ${lt_cv_dlopen_self+:} false; then :
9945 $as_echo_n "(cached) " >&6
9947 if test "$cross_compiling" = yes; then :
9948 lt_cv_dlopen_self=cross
9950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9951 lt_status=$lt_dlunknown
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9953 "configure"
9954 #include "confdefs.h"
9963 # define LT_DLGLOBAL RTLD_GLOBAL
9966 # define LT_DLGLOBAL DL_GLOBAL
9968 # define LT_DLGLOBAL 0
9972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9973 find out it does not work in some platform. */
9974 #ifndef LT_DLLAZY_OR_NOW
9976 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9979 # define LT_DLLAZY_OR_NOW DL_LAZY
9982 # define LT_DLLAZY_OR_NOW RTLD_NOW
9985 # define LT_DLLAZY_OR_NOW DL_NOW
9987 # define LT_DLLAZY_OR_NOW 0
9995 extern "C" void exit (int);
9998 void fnord() { int i=42;}
10001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10002 int status = $lt_dlunknown;
10006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10007 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10008 /* dlclose (self); */
10016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10017 (eval $ac_link) 2>&5
10019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10021 (./conftest; exit; ) >&5 2>/dev/null
10023 case x$lt_status in
10024 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10025 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10026 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10029 # compilation failed
10030 lt_cv_dlopen_self=no
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10038 $as_echo "$lt_cv_dlopen_self" >&6; }
10040 if test "x$lt_cv_dlopen_self" = xyes; then
10041 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10043 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10044 if ${lt_cv_dlopen_self_static+:} false; then :
10045 $as_echo_n "(cached) " >&6
10047 if test "$cross_compiling" = yes; then :
10048 lt_cv_dlopen_self_static=cross
10050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10051 lt_status=$lt_dlunknown
10052 cat > conftest.$ac_ext <<EOF
10053 #line 10053 "configure"
10054 #include "confdefs.h"
10063 # define LT_DLGLOBAL RTLD_GLOBAL
10066 # define LT_DLGLOBAL DL_GLOBAL
10068 # define LT_DLGLOBAL 0
10072 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10073 find out it does not work in some platform. */
10074 #ifndef LT_DLLAZY_OR_NOW
10076 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10079 # define LT_DLLAZY_OR_NOW DL_LAZY
10082 # define LT_DLLAZY_OR_NOW RTLD_NOW
10085 # define LT_DLLAZY_OR_NOW DL_NOW
10087 # define LT_DLLAZY_OR_NOW 0
10095 extern "C" void exit (int);
10098 void fnord() { int i=42;}
10101 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10102 int status = $lt_dlunknown;
10106 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10107 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10108 /* dlclose (self); */
10116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10117 (eval $ac_link) 2>&5
10119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10120 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10121 (./conftest; exit; ) >&5 2>/dev/null
10123 case x$lt_status in
10124 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10125 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10126 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10129 # compilation failed
10130 lt_cv_dlopen_self_static=no
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10138 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10141 CPPFLAGS="$save_CPPFLAGS"
10142 LDFLAGS="$save_LDFLAGS"
10147 case $lt_cv_dlopen_self in
10148 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10149 *) enable_dlopen_self=unknown ;;
10152 case $lt_cv_dlopen_self_static in
10153 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10154 *) enable_dlopen_self_static=unknown ;;
10159 # Report which library types will actually be built
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10161 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10163 $as_echo "$can_build_shared" >&6; }
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10166 $as_echo_n "checking whether to build shared libraries... " >&6; }
10167 test "$can_build_shared" = "no" && enable_shared=no
10169 # On AIX, shared libraries and static libraries use the same namespace, and
10170 # are all built from PIC.
10173 test "$enable_shared" = yes && enable_static=no
10174 if test -n "$RANLIB"; then
10175 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10176 postinstall_cmds='$RANLIB $lib'
10181 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10182 test "$enable_shared" = yes && enable_static=no
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10187 $as_echo "$enable_shared" >&6; }
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10190 $as_echo_n "checking whether to build static libraries... " >&6; }
10191 # Make sure either enable_shared or enable_static is yes.
10192 test "$enable_shared" = yes || enable_static=yes
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10194 $as_echo "$enable_static" >&6; }
10196 # The else clause should only fire when bootstrapping the
10197 # libtool distribution, otherwise you forgot to ship ltmain.sh
10198 # with your package, and you will get complaints that there are
10199 # no rules to generate ltmain.sh.
10200 if test -f "$ltmain"; then
10201 # See if we are running on zsh, and set the options which allow our commands through
10202 # without removal of \ escapes.
10203 if test -n "${ZSH_VERSION+set}" ; then
10204 setopt NO_GLOB_SUBST
10206 # Now quote all the things that may contain metacharacters while being
10207 # careful not to overquote the AC_SUBSTed values. We take copies of the
10208 # variables and quote the copies for generation of the libtool script.
10209 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10211 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10212 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10213 deplibs_check_method reload_flag reload_cmds need_locks \
10214 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10215 lt_cv_sys_global_symbol_to_c_name_address \
10216 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10217 old_postinstall_cmds old_postuninstall_cmds \
10221 lt_prog_compiler_wl \
10222 lt_prog_compiler_pic \
10223 lt_prog_compiler_static \
10224 lt_prog_compiler_no_builtin_flag \
10225 export_dynamic_flag_spec \
10226 thread_safe_flag_spec \
10227 whole_archive_flag_spec \
10228 enable_shared_with_static_runtimes \
10230 old_archive_from_new_cmds \
10235 compiler_lib_search_path \
10236 compiler_lib_search_dirs \
10238 archive_expsym_cmds \
10240 postuninstall_cmds \
10241 old_archive_from_expsyms_cmds \
10242 allow_undefined_flag \
10243 no_undefined_flag \
10244 export_symbols_cmds \
10245 hardcode_libdir_flag_spec \
10246 hardcode_libdir_flag_spec_ld \
10247 hardcode_libdir_separator \
10248 hardcode_automatic \
10250 module_expsym_cmds \
10251 lt_cv_prog_compiler_c_o \
10254 include_expsyms; do
10257 old_archive_cmds | \
10258 old_archive_from_new_cmds | \
10260 archive_expsym_cmds | \
10262 module_expsym_cmds | \
10263 old_archive_from_expsyms_cmds | \
10264 export_symbols_cmds | \
10265 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10266 postinstall_cmds | postuninstall_cmds | \
10267 old_postinstall_cmds | old_postuninstall_cmds | \
10268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10269 # Double-quote double-evaled strings.
10270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10279 *'\$0 --fallback-echo"')
10280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10284 cfgfile="${ofile}T"
10285 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10288 $as_echo "$as_me: creating $ofile" >&6;}
10290 cat <<__EOF__ >> "$cfgfile"
10293 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10294 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10295 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10297 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10298 # Free Software Foundation, Inc.
10300 # This file is part of GNU Libtool:
10301 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10303 # This program is free software; you can redistribute it and/or modify
10304 # it under the terms of the GNU General Public License as published by
10305 # the Free Software Foundation; either version 2 of the License, or
10306 # (at your option) any later version.
10308 # This program is distributed in the hope that it will be useful, but
10309 # WITHOUT ANY WARRANTY; without even the implied warranty of
10310 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10311 # General Public License for more details.
10313 # You should have received a copy of the GNU General Public License
10314 # along with this program; if not, write to the Free Software
10315 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10317 # As a special exception to the GNU General Public License, if you
10318 # distribute this file as part of a program that contains a
10319 # configuration script generated by Autoconf, you may include it under
10320 # the same distribution terms that you use for the rest of that program.
10322 # A sed program that does not truncate output.
10325 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10326 Xsed="$SED -e 1s/^X//"
10328 # The HP-UX ksh and POSIX shell print the target directory to stdout
10329 # if CDPATH is set.
10330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10332 # The names of the tagged configurations supported by this script.
10335 # ### BEGIN LIBTOOL CONFIG
10337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10339 # Shell to use when invoking shell scripts.
10342 # Whether or not to build shared libraries.
10343 build_libtool_libs=$enable_shared
10345 # Whether or not to build static libraries.
10346 build_old_libs=$enable_static
10348 # Whether or not to add -lc for building shared libraries.
10349 build_libtool_need_lc=$archive_cmds_need_lc
10351 # Whether or not to disallow shared libs when runtime libs are static
10352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10354 # Whether or not to optimize for fast installation.
10355 fast_install=$enable_fast_install
10358 host_alias=$host_alias
10362 # The build system.
10363 build_alias=$build_alias
10367 # An echo program that does not interpret backslashes.
10372 AR_FLAGS=$lt_AR_FLAGS
10377 # LTCC compiler flags.
10378 LTCFLAGS=$lt_LTCFLAGS
10380 # A language-specific compiler.
10383 # Is the compiler the GNU C compiler?
10389 # The linker used to build libraries.
10392 # Whether we need hard or soft links.
10395 # A BSD-compatible nm program.
10398 # A symbol stripping program
10401 # Used to examine libraries when file_magic_cmd begins "file"
10402 MAGIC_CMD=$MAGIC_CMD
10404 # Used on cygwin: DLL creation program.
10407 # Used on cygwin: object dumper.
10410 # Used on cygwin: assembler.
10413 # The name of the directory that contains temporary libtool files.
10416 # How to create reloadable object files.
10417 reload_flag=$lt_reload_flag
10418 reload_cmds=$lt_reload_cmds
10420 # How to pass a linker flag through the compiler.
10421 wl=$lt_lt_prog_compiler_wl
10423 # Object file suffix (normally "o").
10424 objext="$ac_objext"
10426 # Old archive suffix (normally "a").
10429 # Shared library suffix (normally ".so").
10430 shrext_cmds='$shrext_cmds'
10432 # Executable file suffix (normally "").
10435 # Additional compiler flags for building library objects.
10436 pic_flag=$lt_lt_prog_compiler_pic
10439 # What is the maximum length of a command?
10440 max_cmd_len=$lt_cv_sys_max_cmd_len
10442 # Does compiler simultaneously support -c and -o options?
10443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10445 # Must we lock files when doing compilation?
10446 need_locks=$lt_need_locks
10448 # Do we need the lib prefix for modules?
10449 need_lib_prefix=$need_lib_prefix
10451 # Do we need a version for libraries?
10452 need_version=$need_version
10454 # Whether dlopen is supported.
10455 dlopen_support=$enable_dlopen
10457 # Whether dlopen of programs is supported.
10458 dlopen_self=$enable_dlopen_self
10460 # Whether dlopen of statically linked programs is supported.
10461 dlopen_self_static=$enable_dlopen_self_static
10463 # Compiler flag to prevent dynamic linking.
10464 link_static_flag=$lt_lt_prog_compiler_static
10466 # Compiler flag to turn off builtin functions.
10467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10469 # Compiler flag to allow reflexive dlopens.
10470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10472 # Compiler flag to generate shared objects directly from archives.
10473 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10475 # Compiler flag to generate thread-safe objects.
10476 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10478 # Library versioning type.
10479 version_type=$version_type
10481 # Format of library name prefix.
10482 libname_spec=$lt_libname_spec
10484 # List of archive names. First name is the real one, the rest are links.
10485 # The last name is the one that the linker finds with -lNAME.
10486 library_names_spec=$lt_library_names_spec
10488 # The coded name of the library, if different from the real name.
10489 soname_spec=$lt_soname_spec
10491 # Commands used to build and install an old-style archive.
10493 old_archive_cmds=$lt_old_archive_cmds
10494 old_postinstall_cmds=$lt_old_postinstall_cmds
10495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10497 # Create an old-style archive from a shared archive.
10498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10500 # Create a temporary old-style archive to link instead of a shared archive.
10501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10503 # Commands used to build and install a shared archive.
10504 archive_cmds=$lt_archive_cmds
10505 archive_expsym_cmds=$lt_archive_expsym_cmds
10506 postinstall_cmds=$lt_postinstall_cmds
10507 postuninstall_cmds=$lt_postuninstall_cmds
10509 # Commands used to build a loadable module (assumed same as above if empty)
10510 module_cmds=$lt_module_cmds
10511 module_expsym_cmds=$lt_module_expsym_cmds
10513 # Commands to strip libraries.
10514 old_striplib=$lt_old_striplib
10515 striplib=$lt_striplib
10517 # Dependencies to place before the objects being linked to create a
10519 predep_objects=$lt_predep_objects
10521 # Dependencies to place after the objects being linked to create a
10523 postdep_objects=$lt_postdep_objects
10525 # Dependencies to place before the objects being linked to create a
10527 predeps=$lt_predeps
10529 # Dependencies to place after the objects being linked to create a
10531 postdeps=$lt_postdeps
10533 # The directories searched by this compiler when creating a shared
10535 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10537 # The library search path used internally by the compiler when linking
10538 # a shared library.
10539 compiler_lib_search_path=$lt_compiler_lib_search_path
10541 # Method to check whether dependent libraries are shared objects.
10542 deplibs_check_method=$lt_deplibs_check_method
10544 # Command to use when deplibs_check_method == file_magic.
10545 file_magic_cmd=$lt_file_magic_cmd
10547 # Flag that allows shared libraries with undefined symbols to be built.
10548 allow_undefined_flag=$lt_allow_undefined_flag
10550 # Flag that forces no undefined symbols.
10551 no_undefined_flag=$lt_no_undefined_flag
10553 # Commands used to finish a libtool library installation in a directory.
10554 finish_cmds=$lt_finish_cmds
10556 # Same as above, but a single script fragment to be evaled but not shown.
10557 finish_eval=$lt_finish_eval
10559 # Take the output of nm and produce a listing of raw symbols and C names.
10560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10562 # Transform the output of nm in a proper C declaration
10563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10565 # Transform the output of nm in a C name address pair
10566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10568 # This is the shared library runtime path variable.
10569 runpath_var=$runpath_var
10571 # This is the shared library path variable.
10572 shlibpath_var=$shlibpath_var
10574 # Is shlibpath searched before the hard-coded library search path?
10575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10577 # How to hardcode a shared library path into an executable.
10578 hardcode_action=$hardcode_action
10580 # Whether we should hardcode library paths into libraries.
10581 hardcode_into_libs=$hardcode_into_libs
10583 # Flag to hardcode \$libdir into a binary during linking.
10584 # This must work even if \$libdir does not exist.
10585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10587 # If ld is used when linking, flag to hardcode \$libdir into
10588 # a binary during linking. This must work even if \$libdir does
10590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10592 # Whether we need a single -rpath flag with a separated argument.
10593 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10595 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10596 # resulting binary.
10597 hardcode_direct=$hardcode_direct
10599 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10600 # resulting binary.
10601 hardcode_minus_L=$hardcode_minus_L
10603 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10604 # the resulting binary.
10605 hardcode_shlibpath_var=$hardcode_shlibpath_var
10607 # Set to yes if building a shared library automatically hardcodes DIR into the library
10608 # and all subsequent libraries and executables linked against it.
10609 hardcode_automatic=$hardcode_automatic
10611 # Variables whose values should be saved in libtool wrapper scripts and
10612 # restored at relink time.
10613 variables_saved_for_relink="$variables_saved_for_relink"
10615 # Whether libtool must link a program against all its dependency libraries.
10616 link_all_deplibs=$link_all_deplibs
10618 # Compile-time system search path for libraries
10619 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10621 # Run-time system search path for libraries
10622 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10624 # Fix the shell variable \$srcfile for the compiler.
10625 fix_srcfile_path=$lt_fix_srcfile_path
10627 # Set to yes if exported symbols are required.
10628 always_export_symbols=$always_export_symbols
10630 # The commands to list exported symbols.
10631 export_symbols_cmds=$lt_export_symbols_cmds
10633 # The commands to extract the exported symbol list from a shared archive.
10634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10636 # Symbols that should not be listed in the preloaded symbols.
10637 exclude_expsyms=$lt_exclude_expsyms
10639 # Symbols that must always be exported.
10640 include_expsyms=$lt_include_expsyms
10642 # ### END LIBTOOL CONFIG
10649 cat <<\EOF >> "$cfgfile"
10651 # AIX sometimes has problems with the GCC collect2 program. For some
10652 # reason, if we set the COLLECT_NAMES environment variable, the problems
10653 # vanish in a puff of smoke.
10654 if test "X${COLLECT_NAMES+set}" != Xset; then
10656 export COLLECT_NAMES
10662 # We use sed instead of cat because bash on DJGPP gets confused if
10663 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10664 # text mode, it properly converts lines to CR/LF. This bash problem
10665 # is reportedly fixed, but why not run on old versions too?
10666 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10668 mv -f "$cfgfile" "$ofile" || \
10669 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10673 # If there is no Makefile yet, we rely on a make rule to execute
10674 # `config.status --recheck' to rerun these tests and create the
10675 # libtool script then.
10676 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10677 if test -f "$ltmain_in"; then
10678 test -f Makefile && make "$ltmain"
10684 ac_cpp='$CPP $CPPFLAGS'
10685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10692 # Check whether --with-tags was given.
10693 if test "${with_tags+set}" = set; then :
10694 withval=$with_tags; tagnames="$withval"
10698 if test -f "$ltmain" && test -n "$tagnames"; then
10699 if test ! -f "${ofile}"; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10701 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10704 if test -z "$LTCC"; then
10705 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10706 if test -z "$LTCC"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10708 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10711 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10714 if test -z "$LTCFLAGS"; then
10715 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10718 # Extract list of available tagged configurations in $ofile.
10719 # Note that this assumes the entire list is on one line.
10720 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10722 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10723 for tagname in $tagnames; do
10725 # Check whether tagname contains only valid characters
10726 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10728 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10732 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10734 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10737 # Update the list of available tags.
10738 if test -n "$tagname"; then
10739 echo appending configuration tag \"$tagname\" to $ofile
10743 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10744 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10745 (test "X$CXX" != "Xg++"))) ; then
10747 ac_cpp='$CXXCPP $CPPFLAGS'
10748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10755 archive_cmds_need_lc_CXX=no
10756 allow_undefined_flag_CXX=
10757 always_export_symbols_CXX=no
10758 archive_expsym_cmds_CXX=
10759 export_dynamic_flag_spec_CXX=
10760 hardcode_direct_CXX=no
10761 hardcode_libdir_flag_spec_CXX=
10762 hardcode_libdir_flag_spec_ld_CXX=
10763 hardcode_libdir_separator_CXX=
10764 hardcode_minus_L_CXX=no
10765 hardcode_shlibpath_var_CXX=unsupported
10766 hardcode_automatic_CXX=no
10768 module_expsym_cmds_CXX=
10769 link_all_deplibs_CXX=unknown
10770 old_archive_cmds_CXX=$old_archive_cmds
10771 no_undefined_flag_CXX=
10772 whole_archive_flag_spec_CXX=
10773 enable_shared_with_static_runtimes_CXX=no
10775 # Dependencies to place before and after the object being linked:
10776 predep_objects_CXX=
10777 postdep_objects_CXX=
10780 compiler_lib_search_path_CXX=
10781 compiler_lib_search_dirs_CXX=
10783 # Source file extension for C++ test sources.
10786 # Object file extension for compiled C++ test sources.
10790 # Code to be used in simple compile tests
10791 lt_simple_compile_test_code="int some_variable = 0;"
10793 # Code to be used in simple link tests
10794 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10796 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10798 # If no C compiler was specified, use CC.
10801 # If no C compiler flags were specified, use CFLAGS.
10802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10804 # Allow CC to be a program name with arguments.
10808 # save warnings/boilerplate of simple test code
10809 ac_outfile=conftest.$ac_objext
10810 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10811 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10812 _lt_compiler_boilerplate=`cat conftest.err`
10815 ac_outfile=conftest.$ac_objext
10816 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10817 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10818 _lt_linker_boilerplate=`cat conftest.err`
10822 # Allow CC to be a program name with arguments.
10827 lt_save_with_gnu_ld=$with_gnu_ld
10828 lt_save_path_LD=$lt_cv_path_LD
10829 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10830 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10832 $as_unset lt_cv_prog_gnu_ld
10834 if test -n "${lt_cv_path_LDCXX+set}"; then
10835 lt_cv_path_LD=$lt_cv_path_LDCXX
10837 $as_unset lt_cv_path_LD
10839 test -z "${LDCXX+set}" || LD=$LDCXX
10843 for cc_temp in $compiler""; do
10845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10851 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10854 # We don't want -fno-exception wen compiling C++ code, so set the
10855 # no_builtin_flag separately
10856 if test "$GXX" = yes; then
10857 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10859 lt_prog_compiler_no_builtin_flag_CXX=
10862 if test "$GXX" = yes; then
10863 # Set up default GNU C++ configuration
10866 # Check whether --with-gnu-ld was given.
10867 if test "${with_gnu_ld+set}" = set; then :
10868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10874 if test "$GCC" = yes; then
10875 # Check if gcc -print-prog-name=ld gives a path.
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10877 $as_echo_n "checking for ld used by $CC... " >&6; }
10880 # gcc leaves a trailing carriage return which upsets mingw
10881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10886 # Accept absolute paths.
10888 re_direlt='/[^/][^/]*/\.\./'
10889 # Canonicalize the pathname of ld
10890 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10891 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10892 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10894 test -z "$LD" && LD="$ac_prog"
10897 # If it fails, then pretend we aren't using GCC.
10901 # If it is relative, then search for the first ld in PATH.
10902 with_gnu_ld=unknown
10905 elif test "$with_gnu_ld" = yes; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10907 $as_echo_n "checking for GNU ld... " >&6; }
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10910 $as_echo_n "checking for non-GNU ld... " >&6; }
10912 if ${lt_cv_path_LD+:} false; then :
10913 $as_echo_n "(cached) " >&6
10915 if test -z "$LD"; then
10916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10917 for ac_dir in $PATH; do
10919 test -z "$ac_dir" && ac_dir=.
10920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10921 lt_cv_path_LD="$ac_dir/$ac_prog"
10922 # Check to see if the program is GNU ld. I'd rather use --version,
10923 # but apparently some variants of GNU ld only accept -v.
10924 # Break only if it was the GNU/non-GNU ld that we prefer.
10925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10926 *GNU* | *'with BFD'*)
10927 test "$with_gnu_ld" != no && break
10930 test "$with_gnu_ld" != yes && break
10937 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10941 LD="$lt_cv_path_LD"
10942 if test -n "$LD"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10944 $as_echo "$LD" >&6; }
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10949 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10952 if ${lt_cv_prog_gnu_ld+:} false; then :
10953 $as_echo_n "(cached) " >&6
10955 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10956 case `$LD -v 2>&1 </dev/null` in
10957 *GNU* | *'with BFD'*)
10958 lt_cv_prog_gnu_ld=yes
10961 lt_cv_prog_gnu_ld=no
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10966 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10967 with_gnu_ld=$lt_cv_prog_gnu_ld
10971 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10972 # archiving commands below assume that GNU ld is being used.
10973 if test "$with_gnu_ld" = yes; then
10974 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10975 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'
10977 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10980 # If archive_cmds runs LD, not CC, wlarc should be empty
10981 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10982 # investigate it a little bit more. (MM)
10985 # ancient GNU ld didn't support --whole-archive et. al.
10986 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10987 grep 'no-whole-archive' > /dev/null; then
10988 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10990 whole_archive_flag_spec_CXX=
10996 # A generic and very simple default shared library creation
10997 # command for GNU C++ for the case where it uses the native
10998 # linker, instead of GNU ld. If possible, this setting should
10999 # overridden to take advantage of the native linker features on
11000 # the platform it is being used on.
11001 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11004 # Commands to make compiler produce verbose output that lists
11005 # what "hidden" libraries, object files and flags are used when
11006 # linking a shared library.
11007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11015 # PORTME: fill in a description of your system's C++ link characteristics
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11017 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11021 # FIXME: insert proper C++ library support
11025 if test "$host_cpu" = ia64; then
11026 # On IA64, the linker does run time linking by default, so we don't
11027 # have to do anything special.
11028 aix_use_runtimelinking=no
11029 exp_sym_flag='-Bexport'
11032 aix_use_runtimelinking=no
11034 # Test if we are trying to use run time linking or normal
11035 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11036 # need to do runtime linking.
11037 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11038 for ld_flag in $LDFLAGS; do
11041 aix_use_runtimelinking=yes
11049 exp_sym_flag='-bexport'
11050 no_entry_flag='-bnoentry'
11053 # When large executables or shared objects are built, AIX ld can
11054 # have problems creating the table of contents. If linking a library
11055 # or program results in "error TOC overflow" add -mminimal-toc to
11056 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11057 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11059 archive_cmds_CXX=''
11060 hardcode_direct_CXX=yes
11061 hardcode_libdir_separator_CXX=':'
11062 link_all_deplibs_CXX=yes
11064 if test "$GXX" = yes; then
11065 case $host_os in aix4.[012]|aix4.[012].*)
11066 # We only want to do this on AIX 4.2 and lower, the check
11067 # below for broken collect2 doesn't work under 4.3+
11068 collect2name=`${CC} -print-prog-name=collect2`
11069 if test -f "$collect2name" && \
11070 strings "$collect2name" | grep resolve_lib_name >/dev/null
11072 # We have reworked collect2
11075 # We have old collect2
11076 hardcode_direct_CXX=unsupported
11077 # It fails to find uninstalled libraries when the uninstalled
11078 # path is not listed in the libpath. Setting hardcode_minus_L
11079 # to unsupported forces relinking
11080 hardcode_minus_L_CXX=yes
11081 hardcode_libdir_flag_spec_CXX='-L$libdir'
11082 hardcode_libdir_separator_CXX=
11086 shared_flag='-shared'
11087 if test "$aix_use_runtimelinking" = yes; then
11088 shared_flag="$shared_flag "'${wl}-G'
11092 if test "$host_cpu" = ia64; then
11093 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11094 # chokes on -Wl,-G. The following line is correct:
11097 if test "$aix_use_runtimelinking" = yes; then
11098 shared_flag='${wl}-G'
11100 shared_flag='${wl}-bM:SRE'
11105 # It seems that -bexpall does not export symbols beginning with
11106 # underscore (_), so it is better to generate a list of symbols to export.
11107 always_export_symbols_CXX=yes
11108 if test "$aix_use_runtimelinking" = yes; then
11109 # Warning - without using the other runtime loading flags (-brtl),
11110 # -berok will link without error, but may produce a broken library.
11111 allow_undefined_flag_CXX='-berok'
11112 # Determine the default libpath from the value encoded in an empty executable.
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11124 if ac_fn_cxx_try_link "$LINENO"; then :
11126 lt_aix_libpath_sed='
11127 /Import File Strings/,/^$/ {
11133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11134 # Check for a 64-bit object if we didn't find anything.
11135 if test -z "$aix_libpath"; then
11136 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11143 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11145 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"
11147 if test "$host_cpu" = ia64; then
11148 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11149 allow_undefined_flag_CXX="-z nodefs"
11150 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"
11152 # Determine the default libpath from the value encoded in an empty executable.
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11164 if ac_fn_cxx_try_link "$LINENO"; then :
11166 lt_aix_libpath_sed='
11167 /Import File Strings/,/^$/ {
11173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11174 # Check for a 64-bit object if we didn't find anything.
11175 if test -z "$aix_libpath"; then
11176 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11179 rm -f core conftest.err conftest.$ac_objext \
11180 conftest$ac_exeext conftest.$ac_ext
11181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11183 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11184 # Warning - without using the other run time loading flags,
11185 # -berok will link without error, but may produce a broken library.
11186 no_undefined_flag_CXX=' ${wl}-bernotok'
11187 allow_undefined_flag_CXX=' ${wl}-berok'
11188 # Exported symbols can be pulled into shared objects from archives
11189 whole_archive_flag_spec_CXX='$convenience'
11190 archive_cmds_need_lc_CXX=yes
11191 # This is similar to how AIX traditionally builds its shared libraries.
11192 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'
11198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11199 allow_undefined_flag_CXX=unsupported
11200 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11201 # support --undefined. This deserves some investigation. FIXME
11202 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11209 case $cc_basename in
11211 # FIXME: insert proper C++ library support
11217 cygwin* | mingw* | pw32*)
11218 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11219 # as there is no search path for DLLs.
11220 hardcode_libdir_flag_spec_CXX='-L$libdir'
11221 allow_undefined_flag_CXX=unsupported
11222 always_export_symbols_CXX=no
11223 enable_shared_with_static_runtimes_CXX=yes
11225 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11226 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'
11227 # If the export-symbols file already is a .def file (1st line
11228 # is EXPORTS), use it as is; otherwise, prepend...
11229 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11230 cp $export_symbols $output_objdir/$soname.def;
11232 echo EXPORTS > $output_objdir/$soname.def;
11233 cat $export_symbols >> $output_objdir/$soname.def;
11235 $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'
11240 darwin* | rhapsody*)
11241 archive_cmds_need_lc_CXX=no
11242 hardcode_direct_CXX=no
11243 hardcode_automatic_CXX=yes
11244 hardcode_shlibpath_var_CXX=unsupported
11245 whole_archive_flag_spec_CXX=''
11246 link_all_deplibs_CXX=yes
11247 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11248 if test "$GXX" = yes ; then
11249 output_verbose_link_cmd='echo'
11250 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}"
11251 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11252 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}"
11253 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}"
11254 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11255 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}"
11256 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}"
11259 case $cc_basename in
11261 output_verbose_link_cmd='echo'
11262 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'
11263 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11264 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11265 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}'
11266 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}'
11276 case $cc_basename in
11278 # FIXME: insert proper C++ library support
11282 # Green Hills C++ Compiler
11283 # FIXME: insert proper C++ library support
11287 # FIXME: insert proper C++ library support
11293 # C++ shared libraries reported to be fairly broken before switch to ELF
11297 archive_cmds_need_lc_CXX=no
11299 freebsd* | dragonfly*)
11300 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11307 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11308 hardcode_libdir_separator_CXX=:
11309 export_dynamic_flag_spec_CXX='${wl}-E'
11310 hardcode_direct_CXX=yes
11311 hardcode_minus_L_CXX=yes # Not in the search PATH,
11312 # but as the default
11313 # location of the library.
11315 case $cc_basename in
11317 # FIXME: insert proper C++ library support
11321 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'
11322 # Commands to make compiler produce verbose output that lists
11323 # what "hidden" libraries, object files and flags are used when
11324 # linking a shared library.
11326 # There doesn't appear to be a way to prevent this compiler from
11327 # explicitly linking system object files so we need to strip them
11328 # from the output so that they don't get included in the library
11330 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'
11333 if test "$GXX" = yes; then
11334 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'
11336 # FIXME: insert proper C++ library support
11343 if test $with_gnu_ld = no; then
11344 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11345 hardcode_libdir_separator_CXX=:
11350 export_dynamic_flag_spec_CXX='${wl}-E'
11356 hardcode_direct_CXX=no
11357 hardcode_shlibpath_var_CXX=no
11360 hardcode_direct_CXX=yes
11361 hardcode_minus_L_CXX=yes # Not in the search PATH,
11362 # but as the default
11363 # location of the library.
11367 case $cc_basename in
11369 # FIXME: insert proper C++ library support
11375 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11378 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11381 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11384 # Commands to make compiler produce verbose output that lists
11385 # what "hidden" libraries, object files and flags are used when
11386 # linking a shared library.
11388 # There doesn't appear to be a way to prevent this compiler from
11389 # explicitly linking system object files so we need to strip them
11390 # from the output so that they don't get included in the library
11392 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'
11395 if test "$GXX" = yes; then
11396 if test $with_gnu_ld = no; then
11399 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11402 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11405 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'
11410 # FIXME: insert proper C++ library support
11417 hardcode_direct_CXX=no
11418 hardcode_shlibpath_var_CXX=no
11419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11420 export_dynamic_flag_spec_CXX='${wl}-E'
11421 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11422 # Instead, shared libraries are loaded at an image base (0x10000000 by
11423 # default) and relocated if they conflict, which is a slow very memory
11424 # consuming and fragmenting process. To avoid this, we pick a random,
11425 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11426 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11427 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'
11428 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'
11431 case $cc_basename in
11434 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'
11436 # Archives containing C++ object files must be created using
11437 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11438 # necessary to make sure instantiated templates are included
11440 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11443 if test "$GXX" = yes; then
11444 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11447 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'
11450 link_all_deplibs_CXX=yes
11453 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11454 hardcode_libdir_separator_CXX=:
11456 linux* | k*bsd*-gnu)
11457 case $cc_basename in
11459 # Kuck and Associates, Inc. (KAI) C++ Compiler
11461 # KCC will only create a shared library if the output file
11462 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11463 # to its proper name (with version) after linking.
11464 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'
11465 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'
11466 # Commands to make compiler produce verbose output that lists
11467 # what "hidden" libraries, object files and flags are used when
11468 # linking a shared library.
11470 # There doesn't appear to be a way to prevent this compiler from
11471 # explicitly linking system object files so we need to strip them
11472 # from the output so that they don't get included in the library
11474 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'
11476 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11477 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11479 # Archives containing C++ object files must be created using
11480 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11481 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11486 # version 8.0 and above of icpc choke on multiply defined symbols
11487 # if we add $predep_objects and $postdep_objects, however 7.1 and
11488 # earlier do not add the objects themselves.
11489 case `$CC -V 2>&1` in
11491 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11492 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'
11494 *) # Version 8.0 or newer
11497 ia64*) tmp_idyn=' -i_dynamic';;
11499 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11500 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'
11503 archive_cmds_need_lc_CXX=no
11504 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11505 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11506 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11509 # Portland Group C++ compiler
11510 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11511 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'
11513 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11514 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11515 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'
11519 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11520 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'
11522 runpath_var=LD_RUN_PATH
11523 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11524 hardcode_libdir_separator_CXX=:
11526 # Commands to make compiler produce verbose output that lists
11527 # what "hidden" libraries, object files and flags are used when
11528 # linking a shared library.
11530 # There doesn't appear to be a way to prevent this compiler from
11531 # explicitly linking system object files so we need to strip them
11532 # from the output so that they don't get included in the library
11534 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'
11537 case `$CC -V 2>&1 | sed 5q` in
11540 no_undefined_flag_CXX=' -zdefs'
11541 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11542 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'
11543 hardcode_libdir_flag_spec_CXX='-R$libdir'
11544 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'
11546 # Not sure whether something based on
11547 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11549 output_verbose_link_cmd='echo'
11551 # Archives containing C++ object files must be created using
11552 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11553 # necessary to make sure instantiated templates are included
11555 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11562 # FIXME: insert proper C++ library support
11566 # FIXME: insert proper C++ library support
11570 case $cc_basename in
11572 # FIXME: insert proper C++ library support
11576 # FIXME: insert proper C++ library support
11581 netbsd* | netbsdelf*-gnu)
11582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11583 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11585 hardcode_libdir_flag_spec_CXX='-R$libdir'
11586 hardcode_direct_CXX=yes
11587 hardcode_shlibpath_var_CXX=no
11589 # Workaround some broken pre-1.5 toolchains
11590 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11593 # C++ shared libraries are fairly broken
11597 if test -f /usr/libexec/ld.so; then
11598 hardcode_direct_CXX=yes
11599 hardcode_shlibpath_var_CXX=no
11600 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11603 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11604 export_dynamic_flag_spec_CXX='${wl}-E'
11605 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11607 output_verbose_link_cmd='echo'
11613 case $cc_basename in
11615 # Kuck and Associates, Inc. (KAI) C++ Compiler
11617 # KCC will only create a shared library if the output file
11618 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11619 # to its proper name (with version) after linking.
11620 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'
11622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11623 hardcode_libdir_separator_CXX=:
11625 # Archives containing C++ object files must be created using
11626 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11627 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11631 # Rational C++ 2.4.1
11632 # FIXME: insert proper C++ library support
11636 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11637 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'
11639 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11640 hardcode_libdir_separator_CXX=:
11642 # Commands to make compiler produce verbose output that lists
11643 # what "hidden" libraries, object files and flags are used when
11644 # linking a shared library.
11646 # There doesn't appear to be a way to prevent this compiler from
11647 # explicitly linking system object files so we need to strip them
11648 # from the output so that they don't get included in the library
11650 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'
11653 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11654 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11655 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'
11657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11658 hardcode_libdir_separator_CXX=:
11660 # Commands to make compiler produce verbose output that lists
11661 # what "hidden" libraries, object files and flags are used when
11662 # linking a shared library.
11663 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11666 # FIXME: insert proper C++ library support
11673 case $cc_basename in
11675 # Kuck and Associates, Inc. (KAI) C++ Compiler
11677 # KCC will only create a shared library if the output file
11678 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11679 # to its proper name (with version) after linking.
11680 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'
11682 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11683 hardcode_libdir_separator_CXX=:
11685 # Archives containing C++ object files must be created using
11686 # the KAI C++ compiler.
11687 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11690 # Rational C++ 2.4.1
11691 # FIXME: insert proper C++ library support
11695 allow_undefined_flag_CXX=' -expect_unresolved \*'
11696 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'
11697 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11698 echo "-hidden">> $lib.exp~
11699 $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~
11702 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11703 hardcode_libdir_separator_CXX=:
11705 # Commands to make compiler produce verbose output that lists
11706 # what "hidden" libraries, object files and flags are used when
11707 # linking a shared library.
11709 # There doesn't appear to be a way to prevent this compiler from
11710 # explicitly linking system object files so we need to strip them
11711 # from the output so that they don't get included in the library
11713 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'
11716 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11717 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11718 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'
11720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11721 hardcode_libdir_separator_CXX=:
11723 # Commands to make compiler produce verbose output that lists
11724 # what "hidden" libraries, object files and flags are used when
11725 # linking a shared library.
11726 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11729 # FIXME: insert proper C++ library support
11736 # FIXME: insert proper C++ library support
11740 case $cc_basename in
11743 # FIXME: insert proper C++ library support
11748 # FIXME: insert proper C++ library support
11752 # FIXME: insert proper C++ library support
11758 case $cc_basename in
11760 # Sun C++ 4.2, 5.x and Centerline C++
11761 archive_cmds_need_lc_CXX=yes
11762 no_undefined_flag_CXX=' -zdefs'
11763 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11764 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11765 $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'
11767 hardcode_libdir_flag_spec_CXX='-R$libdir'
11768 hardcode_shlibpath_var_CXX=no
11770 solaris2.[0-5] | solaris2.[0-5].*) ;;
11772 # The compiler driver will combine and reorder linker options,
11773 # but understands `-z linker_flag'.
11774 # Supported since Solaris 2.6 (maybe 2.5.1?)
11775 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11778 link_all_deplibs_CXX=yes
11780 output_verbose_link_cmd='echo'
11782 # Archives containing C++ object files must be created using
11783 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11784 # necessary to make sure instantiated templates are included
11786 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11789 # Green Hills C++ Compiler
11790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11792 # The C++ compiler must be used to create the archive.
11793 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11796 # GNU C++ compiler with Solaris linker
11797 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11798 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11799 if $CC --version | grep -v '^2\.7' > /dev/null; then
11800 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11801 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11802 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11804 # Commands to make compiler produce verbose output that lists
11805 # what "hidden" libraries, object files and flags are used when
11806 # linking a shared library.
11807 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11809 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11811 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11812 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11813 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11815 # Commands to make compiler produce verbose output that lists
11816 # what "hidden" libraries, object files and flags are used when
11817 # linking a shared library.
11818 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11821 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11823 solaris2.[0-5] | solaris2.[0-5].*) ;;
11825 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11833 no_undefined_flag_CXX='${wl}-z,text'
11834 archive_cmds_need_lc_CXX=no
11835 hardcode_shlibpath_var_CXX=no
11836 runpath_var='LD_RUN_PATH'
11838 case $cc_basename in
11840 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11841 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11844 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11845 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11849 sysv5* | sco3.2v5* | sco5v6*)
11850 # Note: We can NOT use -z defs as we might desire, because we do not
11851 # link with -lc, and that would cause any symbols used from libc to
11852 # always be unresolved, which means just about no library would
11853 # ever link correctly. If we're not using GNU ld we use -z text
11854 # though, which does catch some bad symbols but isn't as heavy-handed
11856 # For security reasons, it is highly recommended that you always
11857 # use absolute paths for naming shared libraries, and exclude the
11858 # DT_RUNPATH tag from executables and libraries. But doing so
11859 # requires that you compile everything twice, which is a pain.
11860 # So that behaviour is only enabled if SCOABSPATH is set to a
11861 # non-empty value in the environment. Most likely only useful for
11862 # creating official distributions of packages.
11863 # This is a hack until libtool officially supports absolute path
11864 # names for shared libraries.
11865 no_undefined_flag_CXX='${wl}-z,text'
11866 allow_undefined_flag_CXX='${wl}-z,nodefs'
11867 archive_cmds_need_lc_CXX=no
11868 hardcode_shlibpath_var_CXX=no
11869 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11870 hardcode_libdir_separator_CXX=':'
11871 link_all_deplibs_CXX=yes
11872 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11873 runpath_var='LD_RUN_PATH'
11875 case $cc_basename in
11877 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11878 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11882 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11887 case $cc_basename in
11889 # NonStop-UX NCC 3.20
11890 # FIXME: insert proper C++ library support
11894 # FIXME: insert proper C++ library support
11900 # FIXME: insert proper C++ library support
11904 # FIXME: insert proper C++ library support
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11909 $as_echo "$ld_shlibs_CXX" >&6; }
11910 test "$ld_shlibs_CXX" = no && can_build_shared=no
11915 cat > conftest.$ac_ext <<EOF
11919 Foo (void) { a = 0; }
11925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11926 (eval $ac_compile) 2>&5
11928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11929 test $ac_status = 0; }; then
11930 # Parse the compiler output and extract the necessary
11931 # objects, libraries and library flags.
11933 # Sentinel used to keep track of whether or not we are before
11934 # the conftest object file.
11935 pre_test_object_deps_done=no
11937 # The `*' in the case matches for architectures that use `case' in
11938 # $output_verbose_cmd can trigger glob expansion during the loop
11939 # eval without this substitution.
11940 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11942 for p in `eval $output_verbose_link_cmd`; do
11946 # Some compilers place space between "-{L,R}" and the path.
11947 # Remove the space.
11948 if test $p = "-L" \
11949 || test $p = "-R"; then
11956 if test "$pre_test_object_deps_done" = no; then
11959 # Internal compiler library paths should come after those
11960 # provided the user. The postdeps already come after the
11961 # user supplied libs so there is no need to process them.
11962 if test -z "$compiler_lib_search_path_CXX"; then
11963 compiler_lib_search_path_CXX="${prev}${p}"
11965 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11968 # The "-l" case would never come before the object being
11969 # linked, so don't bother handling this case.
11972 if test -z "$postdeps_CXX"; then
11973 postdeps_CXX="${prev}${p}"
11975 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11981 # This assumes that the test object file only shows up
11982 # once in the compiler output.
11983 if test "$p" = "conftest.$objext"; then
11984 pre_test_object_deps_done=yes
11988 if test "$pre_test_object_deps_done" = no; then
11989 if test -z "$predep_objects_CXX"; then
11990 predep_objects_CXX="$p"
11992 predep_objects_CXX="$predep_objects_CXX $p"
11995 if test -z "$postdep_objects_CXX"; then
11996 postdep_objects_CXX="$p"
11998 postdep_objects_CXX="$postdep_objects_CXX $p"
12003 *) ;; # Ignore the rest.
12011 echo "libtool.m4: error: problem compiling CXX test program"
12014 $rm -f confest.$objext
12016 compiler_lib_search_dirs_CXX=
12017 if test -n "$compiler_lib_search_path_CXX"; then
12018 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12021 # PORTME: override above test on systems where it is broken
12024 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12025 # hack all around it, let's just trust "g++" to DTRT.
12026 predep_objects_CXX=
12027 postdep_objects_CXX=
12032 case `$CC -V 2>&1 | sed 5q` in
12036 # The more standards-conforming stlport4 library is
12037 # incompatible with the Cstd library. Avoid specifying
12038 # it if it's in CXXFLAGS. Ignore libCrun as
12039 # -library=stlport4 depends on it.
12040 case " $CXX $CXXFLAGS " in
12041 *" -library=stlport4 "*)
12042 solaris_use_stlport4=yes
12045 if test "$solaris_use_stlport4" != yes; then
12046 postdeps_CXX='-library=Cstd -library=Crun'
12053 case $cc_basename in
12055 # The more standards-conforming stlport4 library is
12056 # incompatible with the Cstd library. Avoid specifying
12057 # it if it's in CXXFLAGS. Ignore libCrun as
12058 # -library=stlport4 depends on it.
12059 case " $CXX $CXXFLAGS " in
12060 *" -library=stlport4 "*)
12061 solaris_use_stlport4=yes
12065 # Adding this requires a known-good setup of shared libraries for
12066 # Sun compiler versions before 5.6, else PIC objects from an old
12067 # archive will be linked into the output, leading to subtle bugs.
12068 if test "$solaris_use_stlport4" != yes; then
12069 postdeps_CXX='-library=Cstd -library=Crun'
12076 case " $postdeps_CXX " in
12077 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12080 lt_prog_compiler_wl_CXX=
12081 lt_prog_compiler_pic_CXX=
12082 lt_prog_compiler_static_CXX=
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12085 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12087 # C++ specific cases for pic, static, wl, etc.
12088 if test "$GXX" = yes; then
12089 lt_prog_compiler_wl_CXX='-Wl,'
12090 lt_prog_compiler_static_CXX='-static'
12094 # All AIX code is PIC.
12095 if test "$host_cpu" = ia64; then
12096 # AIX 5 now supports IA64 processor
12097 lt_prog_compiler_static_CXX='-Bstatic'
12101 # FIXME: we need at least 68020 code to build shared libraries, but
12102 # adding the `-m68020' flag to GCC prevents building anything better,
12104 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12106 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12107 # PIC is the default for these OSes.
12109 mingw* | cygwin* | os2* | pw32*)
12110 # This hack is so that the source file can tell whether it is being
12111 # built for inclusion in a dll (and should export symbols for example).
12112 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12113 # (--disable-auto-import) libraries
12114 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12116 darwin* | rhapsody*)
12117 # PIC is the default on this platform
12118 # Common symbols not allowed in MH_DYLIB files
12119 lt_prog_compiler_pic_CXX='-fno-common'
12122 # DJGPP does not support shared libraries at all
12123 lt_prog_compiler_pic_CXX=
12126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12127 # Instead, we relocate shared libraries at runtime.
12130 if test -d /usr/nec; then
12131 lt_prog_compiler_pic_CXX=-Kconform_pic
12135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12136 # not for PA HP-UX.
12141 lt_prog_compiler_pic_CXX='-fPIC'
12146 lt_prog_compiler_pic_CXX='-fPIC'
12152 # All AIX code is PIC.
12153 if test "$host_cpu" = ia64; then
12154 # AIX 5 now supports IA64 processor
12155 lt_prog_compiler_static_CXX='-Bstatic'
12157 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12161 case $cc_basename in
12163 # Green Hills C++ Compiler
12164 # _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"
12169 # PIC is the default on this platform
12170 # Common symbols not allowed in MH_DYLIB files
12171 case $cc_basename in
12173 lt_prog_compiler_pic_CXX='-qnocommon'
12174 lt_prog_compiler_wl_CXX='-Wl,'
12179 case $cc_basename in
12181 lt_prog_compiler_pic_CXX='-KPIC'
12184 # Green Hills C++ Compiler
12185 lt_prog_compiler_pic_CXX='-pic'
12191 freebsd* | dragonfly*)
12192 # FreeBSD uses GNU C++
12194 hpux9* | hpux10* | hpux11*)
12195 case $cc_basename in
12197 lt_prog_compiler_wl_CXX='-Wl,'
12198 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12199 if test "$host_cpu" != ia64; then
12200 lt_prog_compiler_pic_CXX='+Z'
12204 lt_prog_compiler_wl_CXX='-Wl,'
12205 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12211 lt_prog_compiler_pic_CXX='+Z'
12220 # This is c89, which is MS Visual C++ (no shared libs)
12221 # Anyone wants to do a port?
12223 irix5* | irix6* | nonstopux*)
12224 case $cc_basename in
12226 lt_prog_compiler_wl_CXX='-Wl,'
12227 lt_prog_compiler_static_CXX='-non_shared'
12228 # CC pic flag -KPIC is the default.
12234 linux* | k*bsd*-gnu)
12235 case $cc_basename in
12238 lt_prog_compiler_wl_CXX='--backend -Wl,'
12239 lt_prog_compiler_pic_CXX='-fPIC'
12243 lt_prog_compiler_wl_CXX='-Wl,'
12244 lt_prog_compiler_pic_CXX='-KPIC'
12245 lt_prog_compiler_static_CXX='-static'
12248 # Portland Group C++ compiler.
12249 lt_prog_compiler_wl_CXX='-Wl,'
12250 lt_prog_compiler_pic_CXX='-fpic'
12251 lt_prog_compiler_static_CXX='-Bstatic'
12255 # Make sure the PIC flag is empty. It appears that all Alpha
12256 # Linux and Compaq Tru64 Unix objects are PIC.
12257 lt_prog_compiler_pic_CXX=
12258 lt_prog_compiler_static_CXX='-non_shared'
12261 case `$CC -V 2>&1 | sed 5q` in
12264 lt_prog_compiler_pic_CXX='-KPIC'
12265 lt_prog_compiler_static_CXX='-Bstatic'
12266 lt_prog_compiler_wl_CXX='-Qoption ld '
12277 case $cc_basename in
12279 lt_prog_compiler_pic_CXX='-W c,exportall'
12285 netbsd* | netbsdelf*-gnu)
12287 osf3* | osf4* | osf5*)
12288 case $cc_basename in
12290 lt_prog_compiler_wl_CXX='--backend -Wl,'
12293 # Rational C++ 2.4.1
12294 lt_prog_compiler_pic_CXX='-pic'
12297 # Digital/Compaq C++
12298 lt_prog_compiler_wl_CXX='-Wl,'
12299 # Make sure the PIC flag is empty. It appears that all Alpha
12300 # Linux and Compaq Tru64 Unix objects are PIC.
12301 lt_prog_compiler_pic_CXX=
12302 lt_prog_compiler_static_CXX='-non_shared'
12311 case $cc_basename in
12313 # Sun C++ 4.2, 5.x and Centerline C++
12314 lt_prog_compiler_pic_CXX='-KPIC'
12315 lt_prog_compiler_static_CXX='-Bstatic'
12316 lt_prog_compiler_wl_CXX='-Qoption ld '
12319 # Green Hills C++ Compiler
12320 lt_prog_compiler_pic_CXX='-PIC'
12327 case $cc_basename in
12330 lt_prog_compiler_pic_CXX='-pic'
12331 lt_prog_compiler_static_CXX='-Bstatic'
12335 lt_prog_compiler_pic_CXX='-pic'
12342 case $cc_basename in
12344 # NonStop-UX NCC 3.20
12345 lt_prog_compiler_pic_CXX='-KPIC'
12351 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12352 case $cc_basename in
12354 lt_prog_compiler_wl_CXX='-Wl,'
12355 lt_prog_compiler_pic_CXX='-KPIC'
12356 lt_prog_compiler_static_CXX='-Bstatic'
12363 lt_prog_compiler_can_build_shared_CXX=no
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12369 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12372 # Check to make sure the PIC flag actually works.
12374 if test -n "$lt_prog_compiler_pic_CXX"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12377 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12378 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12379 $as_echo_n "(cached) " >&6
12381 lt_cv_prog_compiler_pic_works_CXX=no
12382 ac_outfile=conftest.$ac_objext
12383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12384 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12385 # Insert the option either (1) after the last *FLAGS variable, or
12386 # (2) before a word containing "conftest.", or (3) at the end.
12387 # Note that $ac_compile itself does not contain backslashes and begins
12388 # with a dollar sign (not a hyphen), so the echo should work correctly.
12389 # The option is referenced via a variable to avoid confusing sed.
12390 lt_compile=`echo "$ac_compile" | $SED \
12391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12393 -e 's:$: $lt_compiler_flag:'`
12394 (eval echo "\"\$as_me:12394: $lt_compile\"" >&5)
12395 (eval "$lt_compile" 2>conftest.err)
12397 cat conftest.err >&5
12398 echo "$as_me:12398: \$? = $ac_status" >&5
12399 if (exit $ac_status) && test -s "$ac_outfile"; then
12400 # The compiler can only warn and ignore the option if not recognized
12401 # So say no if there are warnings other than the usual output.
12402 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12405 lt_cv_prog_compiler_pic_works_CXX=yes
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12412 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12414 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12415 case $lt_prog_compiler_pic_CXX in
12417 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12420 lt_prog_compiler_pic_CXX=
12421 lt_prog_compiler_can_build_shared_CXX=no
12426 # For platforms which do not support PIC, -DPIC is meaningless:
12428 lt_prog_compiler_pic_CXX=
12431 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12436 # Check to make sure the static flag actually works.
12438 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12440 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12441 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12442 $as_echo_n "(cached) " >&6
12444 lt_cv_prog_compiler_static_works_CXX=no
12445 save_LDFLAGS="$LDFLAGS"
12446 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12447 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12449 # The linker can only warn and ignore the option if not recognized
12450 # So say no if there are warnings
12451 if test -s conftest.err; then
12452 # Append any errors to the config.log.
12453 cat conftest.err 1>&5
12454 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12456 if diff conftest.exp conftest.er2 >/dev/null; then
12457 lt_cv_prog_compiler_static_works_CXX=yes
12460 lt_cv_prog_compiler_static_works_CXX=yes
12464 LDFLAGS="$save_LDFLAGS"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12468 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12470 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12473 lt_prog_compiler_static_CXX=
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12478 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12479 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12480 $as_echo_n "(cached) " >&6
12482 lt_cv_prog_compiler_c_o_CXX=no
12483 $rm -r conftest 2>/dev/null
12487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12489 lt_compiler_flag="-o out/conftest2.$ac_objext"
12490 # Insert the option either (1) after the last *FLAGS variable, or
12491 # (2) before a word containing "conftest.", or (3) at the end.
12492 # Note that $ac_compile itself does not contain backslashes and begins
12493 # with a dollar sign (not a hyphen), so the echo should work correctly.
12494 lt_compile=`echo "$ac_compile" | $SED \
12495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12497 -e 's:$: $lt_compiler_flag:'`
12498 (eval echo "\"\$as_me:12498: $lt_compile\"" >&5)
12499 (eval "$lt_compile" 2>out/conftest.err)
12501 cat out/conftest.err >&5
12502 echo "$as_me:12502: \$? = $ac_status" >&5
12503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12505 # The compiler can only warn and ignore the option if not recognized
12506 # So say no if there are warnings
12507 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12510 lt_cv_prog_compiler_c_o_CXX=yes
12515 # SGI C++ compiler will create directory out/ii_files/ for
12516 # template instantiation
12517 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12518 $rm out/* && rmdir out
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12525 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12528 hard_links="nottested"
12529 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12530 # do not overwrite the value of need_locks provided by the user
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12532 $as_echo_n "checking if we can lock with hard links... " >&6; }
12535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12537 ln conftest.a conftest.b 2>&5 || hard_links=no
12538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12540 $as_echo "$hard_links" >&6; }
12541 if test "$hard_links" = no; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12543 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12551 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12553 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12556 # If we're using GNU nm, then we don't want the "-C" option.
12557 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12558 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12559 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'
12561 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'
12565 export_symbols_cmds_CXX="$ltdll_cmds"
12568 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'
12570 linux* | k*bsd*-gnu)
12571 link_all_deplibs_CXX=no
12574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12577 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12580 $as_echo "$ld_shlibs_CXX" >&6; }
12581 test "$ld_shlibs_CXX" = no && can_build_shared=no
12584 # Do we need to explicitly link libc?
12586 case "x$archive_cmds_need_lc_CXX" in
12588 # Assume -lc should be added
12589 archive_cmds_need_lc_CXX=yes
12591 if test "$enable_shared" = yes && test "$GCC" = yes; then
12592 case $archive_cmds_CXX in
12594 # FIXME: we may have to deal with multi-command sequences.
12597 # Test whether the compiler implicitly links with -lc since on some
12598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12599 # to ld, don't add -lc before -lgcc.
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12601 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12606 (eval $ac_compile) 2>&5
12608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12609 test $ac_status = 0; } 2>conftest.err; then
12612 libobjs=conftest.$ac_objext
12614 wl=$lt_prog_compiler_wl_CXX
12615 pic_flag=$lt_prog_compiler_pic_CXX
12621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12622 allow_undefined_flag_CXX=
12623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12624 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12627 test $ac_status = 0; }
12629 archive_cmds_need_lc_CXX=no
12631 archive_cmds_need_lc_CXX=yes
12633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12635 cat conftest.err 1>&5
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12639 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12647 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12648 library_names_spec=
12649 libname_spec='lib$name'
12653 postuninstall_cmds=
12657 shlibpath_overrides_runpath=unknown
12659 dynamic_linker="$host_os ld.so"
12660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12662 need_lib_prefix=unknown
12663 hardcode_into_libs=no
12665 # when you set need_version to no, make sure it does not cause -set_version
12666 # flags to be left without arguments
12667 need_version=unknown
12672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12673 shlibpath_var=LIBPATH
12675 # AIX 3 has no versioning support, so we append a major version to the name.
12676 soname_spec='${libname}${release}${shared_ext}$major'
12683 hardcode_into_libs=yes
12684 if test "$host_cpu" = ia64; then
12685 # AIX 5 supports IA64
12686 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12687 shlibpath_var=LD_LIBRARY_PATH
12689 # With GCC up to 2.95.x, collect2 would create an import file
12690 # for dependence libraries. The import file would start with
12691 # the line `#! .'. This would cause the generated library to
12692 # depend on `.', always an invalid library. This was fixed in
12693 # development snapshots of GCC prior to 3.0.
12695 aix4 | aix4.[01] | aix4.[01].*)
12696 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12698 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12701 can_build_shared=no
12705 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12706 # soname into executable. Probably we can add versioning support to
12707 # collect2, so additional links can be useful in future.
12708 if test "$aix_use_runtimelinking" = yes; then
12709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12710 # instead of lib<name>.a to let people know that these are not
12711 # typical AIX shared libraries.
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12714 # We preserve .a as extension for shared libraries through AIX4.2
12715 # and later when we are not doing run time linking.
12716 library_names_spec='${libname}${release}.a $libname.a'
12717 soname_spec='${libname}${release}${shared_ext}$major'
12719 shlibpath_var=LIBPATH
12724 library_names_spec='$libname.ixlibrary $libname.a'
12725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12726 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'
12730 library_names_spec='${libname}${shared_ext}'
12731 dynamic_linker="$host_os ld.so"
12732 shlibpath_var=LIBRARY_PATH
12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739 soname_spec='${libname}${release}${shared_ext}$major'
12740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12744 # the default ld.so.conf also contains /usr/contrib/lib and
12745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12746 # libtool to hard-code these into programs
12749 cygwin* | mingw* | pw32*)
12750 version_type=windows
12755 case $GCC,$host_os in
12756 yes,cygwin* | yes,mingw* | yes,pw32*)
12757 library_names_spec='$libname.dll.a'
12758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12759 postinstall_cmds='base_file=`basename \${file}`~
12760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12761 dldir=$destdir/`dirname \$dlpath`~
12762 test -d \$dldir || mkdir -p \$dldir~
12763 $install_prog $dir/$dlname \$dldir/$dlname~
12764 chmod a+x \$dldir/$dlname'
12765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12766 dlpath=$dir/\$dldll~
12768 shlibpath_overrides_runpath=yes
12772 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12774 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12777 # MinGW DLLs use traditional 'lib' prefix
12778 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12780 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12781 # It is most probably a Windows format PATH printed by
12782 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12783 # path with ; separators, and with drive letters. We can handle the
12784 # drive letters (cygwin fileutils understands them), so leave them,
12785 # especially as we might pass files found there to a mingw objdump,
12786 # which wouldn't understand a cygwinified path. Ahh.
12787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12793 # pw32 DLLs use 'pw' prefix rather than 'lib'
12794 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12800 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12803 dynamic_linker='Win32 ld.exe'
12804 # FIXME: first we should search . and the directory the executable is in
12808 darwin* | rhapsody*)
12809 dynamic_linker="$host_os dyld"
12810 version_type=darwin
12813 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12814 soname_spec='${libname}${release}${major}$shared_ext'
12815 shlibpath_overrides_runpath=yes
12816 shlibpath_var=DYLD_LIBRARY_PATH
12817 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12827 soname_spec='${libname}${release}${shared_ext}$major'
12828 shlibpath_var=LD_LIBRARY_PATH
12835 freebsd* | dragonfly*)
12836 # DragonFly does not have aout. When/if they implement a new
12837 # versioning mechanism, adjust this.
12838 if test -x /usr/bin/objformat; then
12839 objformat=`/usr/bin/objformat`
12842 freebsd[123]*) objformat=aout ;;
12843 *) objformat=elf ;;
12846 version_type=freebsd-$objformat
12847 case $version_type in
12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12858 shlibpath_var=LD_LIBRARY_PATH
12861 shlibpath_overrides_runpath=yes
12863 freebsd3.[01]* | freebsdelf3.[01]*)
12864 shlibpath_overrides_runpath=yes
12865 hardcode_into_libs=yes
12867 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12868 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12869 shlibpath_overrides_runpath=no
12870 hardcode_into_libs=yes
12872 *) # from 4.6 on, and DragonFly
12873 shlibpath_overrides_runpath=yes
12874 hardcode_into_libs=yes
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12884 soname_spec='${libname}${release}${shared_ext}$major'
12885 shlibpath_var=LD_LIBRARY_PATH
12886 hardcode_into_libs=yes
12889 hpux9* | hpux10* | hpux11*)
12890 # Give a soname corresponding to the major version so that dld.sl refuses to
12891 # link against other versions.
12898 hardcode_into_libs=yes
12899 dynamic_linker="$host_os dld.so"
12900 shlibpath_var=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12903 soname_spec='${libname}${release}${shared_ext}$major'
12904 if test "X$HPUX_IA64_MODE" = X32; then
12905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12913 hardcode_into_libs=yes
12914 dynamic_linker="$host_os dld.sl"
12915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12918 soname_spec='${libname}${release}${shared_ext}$major'
12919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12924 dynamic_linker="$host_os dld.sl"
12925 shlibpath_var=SHLIB_PATH
12926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12928 soname_spec='${libname}${release}${shared_ext}$major'
12931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12932 postinstall_cmds='chmod 555 $lib'
12939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12940 soname_spec='${libname}${release}${shared_ext}$major'
12941 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 shlibpath_overrides_runpath=no
12944 hardcode_into_libs=yes
12947 irix5* | irix6* | nonstopux*)
12949 nonstopux*) version_type=nonstopux ;;
12951 if test "$lt_cv_prog_gnu_ld" = yes; then
12959 soname_spec='${libname}${release}${shared_ext}$major'
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12962 irix5* | nonstopux*)
12963 libsuff= shlibsuff=
12966 case $LD in # libtool.m4 will add one of these switches to LD
12967 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12968 libsuff= shlibsuff= libmagic=32-bit;;
12969 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12970 libsuff=32 shlibsuff=N32 libmagic=N32;;
12971 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12972 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12973 *) libsuff= shlibsuff= libmagic=never-match;;
12977 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12978 shlibpath_overrides_runpath=no
12979 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12980 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12981 hardcode_into_libs=yes
12984 # No shared lib support for Linux oldld, aout, or coff.
12985 linux*oldld* | linux*aout* | linux*coff*)
12989 # This must be Linux ELF.
12990 linux* | k*bsd*-gnu)
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995 soname_spec='${libname}${release}${shared_ext}$major'
12996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12997 shlibpath_var=LD_LIBRARY_PATH
12998 shlibpath_overrides_runpath=no
12999 # This implies no fast_install, which is unacceptable.
13000 # Some rework will be needed to allow for fast_install
13001 # before this can be enabled.
13002 hardcode_into_libs=yes
13004 # Append ld.so.conf contents to the search path
13005 if test -f /etc/ld.so.conf; then
13006 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' ' '`
13007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13010 # We used to test for /lib/ld.so.1 and disable shared libraries on
13011 # powerpc, because MkLinux only supported shared libraries with the
13012 # GNU dynamic linker. Since this was broken with cross compilers,
13013 # most powerpc-linux boxes support dynamic linking these days and
13014 # people can always --disable-shared, the test was removed, and we
13015 # assume the GNU/Linux dynamic linker is in use.
13016 dynamic_linker='GNU/Linux ld.so'
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13024 soname_spec='${libname}${release}${shared_ext}$major'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=no
13027 hardcode_into_libs=yes
13028 dynamic_linker='NetBSD ld.elf_so'
13035 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13038 dynamic_linker='NetBSD (a.out) ld.so'
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13041 soname_spec='${libname}${release}${shared_ext}$major'
13042 dynamic_linker='NetBSD ld.elf_so'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=yes
13046 hardcode_into_libs=yes
13051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052 shlibpath_var=LD_LIBRARY_PATH
13053 shlibpath_overrides_runpath=yes
13060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13061 soname_spec='${libname}${release}${shared_ext}$major'
13062 shlibpath_var=LD_LIBRARY_PATH
13063 shlibpath_overrides_runpath=yes
13068 sys_lib_dlsearch_path_spec="/usr/lib"
13070 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13072 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13073 *) need_version=no ;;
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13077 shlibpath_var=LD_LIBRARY_PATH
13078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13080 openbsd2.[89] | openbsd2.[89].*)
13081 shlibpath_overrides_runpath=no
13084 shlibpath_overrides_runpath=yes
13088 shlibpath_overrides_runpath=yes
13093 libname_spec='$name'
13096 library_names_spec='$libname${shared_ext} $libname.a'
13097 dynamic_linker='OS/2 ld.exe'
13098 shlibpath_var=LIBPATH
13101 osf3* | osf4* | osf5*)
13105 soname_spec='${libname}${release}${shared_ext}$major'
13106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13107 shlibpath_var=LD_LIBRARY_PATH
13108 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13109 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13121 soname_spec='${libname}${release}${shared_ext}$major'
13122 shlibpath_var=LD_LIBRARY_PATH
13123 shlibpath_overrides_runpath=yes
13124 hardcode_into_libs=yes
13125 # ldd complains unless libraries are executable
13126 postinstall_cmds='chmod +x $lib'
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13132 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 shlibpath_overrides_runpath=yes
13135 if test "$with_gnu_ld" = yes; then
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 shlibpath_var=LD_LIBRARY_PATH
13146 case $host_vendor in
13148 shlibpath_overrides_runpath=no
13150 export_dynamic_flag_spec='${wl}-Blargedynsym'
13151 runpath_var=LD_RUN_PATH
13159 shlibpath_overrides_runpath=no
13160 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13166 if test -d /usr/nec ;then
13168 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13169 soname_spec='$libname${shared_ext}.$major'
13170 shlibpath_var=LD_LIBRARY_PATH
13174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13175 version_type=freebsd-elf
13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13179 soname_spec='${libname}${release}${shared_ext}$major'
13180 shlibpath_var=LD_LIBRARY_PATH
13181 hardcode_into_libs=yes
13182 if test "$with_gnu_ld" = yes; then
13183 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13184 shlibpath_overrides_runpath=no
13186 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13187 shlibpath_overrides_runpath=yes
13190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13194 sys_lib_dlsearch_path_spec='/usr/lib'
13199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13200 soname_spec='${libname}${release}${shared_ext}$major'
13201 shlibpath_var=LD_LIBRARY_PATH
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13209 $as_echo "$dynamic_linker" >&6; }
13210 test "$dynamic_linker" = no && can_build_shared=no
13212 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13213 $as_echo_n "(cached) " >&6
13215 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13218 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13219 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13220 $as_echo_n "(cached) " >&6
13222 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13225 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13227 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13228 if test "$GCC" = yes; then
13229 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13233 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13234 hardcode_action_CXX=
13235 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13236 test -n "$runpath_var_CXX" || \
13237 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13239 # We can hardcode non-existant directories.
13240 if test "$hardcode_direct_CXX" != no &&
13241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13242 # have to relink, otherwise we might link with an installed library
13243 # when we should be linking with a yet-to-be-installed one
13244 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13245 test "$hardcode_minus_L_CXX" != no; then
13246 # Linking always hardcodes the temporary library directory.
13247 hardcode_action_CXX=relink
13249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13250 hardcode_action_CXX=immediate
13253 # We cannot hardcode anything, or else we can only hardcode existing
13255 hardcode_action_CXX=unsupported
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13258 $as_echo "$hardcode_action_CXX" >&6; }
13260 if test "$hardcode_action_CXX" = relink; then
13261 # Fast installation is not supported
13262 enable_fast_install=no
13263 elif test "$shlibpath_overrides_runpath" = yes ||
13264 test "$enable_shared" = no; then
13265 # Fast installation is not necessary
13266 enable_fast_install=needless
13270 # The else clause should only fire when bootstrapping the
13271 # libtool distribution, otherwise you forgot to ship ltmain.sh
13272 # with your package, and you will get complaints that there are
13273 # no rules to generate ltmain.sh.
13274 if test -f "$ltmain"; then
13275 # See if we are running on zsh, and set the options which allow our commands through
13276 # without removal of \ escapes.
13277 if test -n "${ZSH_VERSION+set}" ; then
13278 setopt NO_GLOB_SUBST
13280 # Now quote all the things that may contain metacharacters while being
13281 # careful not to overquote the AC_SUBSTed values. We take copies of the
13282 # variables and quote the copies for generation of the libtool script.
13283 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13285 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13286 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13287 deplibs_check_method reload_flag reload_cmds need_locks \
13288 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13289 lt_cv_sys_global_symbol_to_c_name_address \
13290 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13291 old_postinstall_cmds old_postuninstall_cmds \
13295 lt_prog_compiler_wl_CXX \
13296 lt_prog_compiler_pic_CXX \
13297 lt_prog_compiler_static_CXX \
13298 lt_prog_compiler_no_builtin_flag_CXX \
13299 export_dynamic_flag_spec_CXX \
13300 thread_safe_flag_spec_CXX \
13301 whole_archive_flag_spec_CXX \
13302 enable_shared_with_static_runtimes_CXX \
13303 old_archive_cmds_CXX \
13304 old_archive_from_new_cmds_CXX \
13305 predep_objects_CXX \
13306 postdep_objects_CXX \
13309 compiler_lib_search_path_CXX \
13310 compiler_lib_search_dirs_CXX \
13312 archive_expsym_cmds_CXX \
13313 postinstall_cmds_CXX \
13314 postuninstall_cmds_CXX \
13315 old_archive_from_expsyms_cmds_CXX \
13316 allow_undefined_flag_CXX \
13317 no_undefined_flag_CXX \
13318 export_symbols_cmds_CXX \
13319 hardcode_libdir_flag_spec_CXX \
13320 hardcode_libdir_flag_spec_ld_CXX \
13321 hardcode_libdir_separator_CXX \
13322 hardcode_automatic_CXX \
13324 module_expsym_cmds_CXX \
13325 lt_cv_prog_compiler_c_o_CXX \
13326 fix_srcfile_path_CXX \
13327 exclude_expsyms_CXX \
13328 include_expsyms_CXX; do
13331 old_archive_cmds_CXX | \
13332 old_archive_from_new_cmds_CXX | \
13333 archive_cmds_CXX | \
13334 archive_expsym_cmds_CXX | \
13335 module_cmds_CXX | \
13336 module_expsym_cmds_CXX | \
13337 old_archive_from_expsyms_cmds_CXX | \
13338 export_symbols_cmds_CXX | \
13339 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13340 postinstall_cmds | postuninstall_cmds | \
13341 old_postinstall_cmds | old_postuninstall_cmds | \
13342 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13343 # Double-quote double-evaled strings.
13344 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13353 *'\$0 --fallback-echo"')
13354 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13360 cat <<__EOF__ >> "$cfgfile"
13361 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13363 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13365 # Shell to use when invoking shell scripts.
13368 # Whether or not to build shared libraries.
13369 build_libtool_libs=$enable_shared
13371 # Whether or not to build static libraries.
13372 build_old_libs=$enable_static
13374 # Whether or not to add -lc for building shared libraries.
13375 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13377 # Whether or not to disallow shared libs when runtime libs are static
13378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13380 # Whether or not to optimize for fast installation.
13381 fast_install=$enable_fast_install
13384 host_alias=$host_alias
13388 # The build system.
13389 build_alias=$build_alias
13393 # An echo program that does not interpret backslashes.
13398 AR_FLAGS=$lt_AR_FLAGS
13403 # LTCC compiler flags.
13404 LTCFLAGS=$lt_LTCFLAGS
13406 # A language-specific compiler.
13407 CC=$lt_compiler_CXX
13409 # Is the compiler the GNU C compiler?
13415 # The linker used to build libraries.
13418 # Whether we need hard or soft links.
13421 # A BSD-compatible nm program.
13424 # A symbol stripping program
13427 # Used to examine libraries when file_magic_cmd begins "file"
13428 MAGIC_CMD=$MAGIC_CMD
13430 # Used on cygwin: DLL creation program.
13433 # Used on cygwin: object dumper.
13436 # Used on cygwin: assembler.
13439 # The name of the directory that contains temporary libtool files.
13442 # How to create reloadable object files.
13443 reload_flag=$lt_reload_flag
13444 reload_cmds=$lt_reload_cmds
13446 # How to pass a linker flag through the compiler.
13447 wl=$lt_lt_prog_compiler_wl_CXX
13449 # Object file suffix (normally "o").
13450 objext="$ac_objext"
13452 # Old archive suffix (normally "a").
13455 # Shared library suffix (normally ".so").
13456 shrext_cmds='$shrext_cmds'
13458 # Executable file suffix (normally "").
13461 # Additional compiler flags for building library objects.
13462 pic_flag=$lt_lt_prog_compiler_pic_CXX
13465 # What is the maximum length of a command?
13466 max_cmd_len=$lt_cv_sys_max_cmd_len
13468 # Does compiler simultaneously support -c and -o options?
13469 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13471 # Must we lock files when doing compilation?
13472 need_locks=$lt_need_locks
13474 # Do we need the lib prefix for modules?
13475 need_lib_prefix=$need_lib_prefix
13477 # Do we need a version for libraries?
13478 need_version=$need_version
13480 # Whether dlopen is supported.
13481 dlopen_support=$enable_dlopen
13483 # Whether dlopen of programs is supported.
13484 dlopen_self=$enable_dlopen_self
13486 # Whether dlopen of statically linked programs is supported.
13487 dlopen_self_static=$enable_dlopen_self_static
13489 # Compiler flag to prevent dynamic linking.
13490 link_static_flag=$lt_lt_prog_compiler_static_CXX
13492 # Compiler flag to turn off builtin functions.
13493 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13495 # Compiler flag to allow reflexive dlopens.
13496 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13498 # Compiler flag to generate shared objects directly from archives.
13499 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13501 # Compiler flag to generate thread-safe objects.
13502 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13504 # Library versioning type.
13505 version_type=$version_type
13507 # Format of library name prefix.
13508 libname_spec=$lt_libname_spec
13510 # List of archive names. First name is the real one, the rest are links.
13511 # The last name is the one that the linker finds with -lNAME.
13512 library_names_spec=$lt_library_names_spec
13514 # The coded name of the library, if different from the real name.
13515 soname_spec=$lt_soname_spec
13517 # Commands used to build and install an old-style archive.
13519 old_archive_cmds=$lt_old_archive_cmds_CXX
13520 old_postinstall_cmds=$lt_old_postinstall_cmds
13521 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13523 # Create an old-style archive from a shared archive.
13524 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13526 # Create a temporary old-style archive to link instead of a shared archive.
13527 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13529 # Commands used to build and install a shared archive.
13530 archive_cmds=$lt_archive_cmds_CXX
13531 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13532 postinstall_cmds=$lt_postinstall_cmds
13533 postuninstall_cmds=$lt_postuninstall_cmds
13535 # Commands used to build a loadable module (assumed same as above if empty)
13536 module_cmds=$lt_module_cmds_CXX
13537 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13539 # Commands to strip libraries.
13540 old_striplib=$lt_old_striplib
13541 striplib=$lt_striplib
13543 # Dependencies to place before the objects being linked to create a
13545 predep_objects=$lt_predep_objects_CXX
13547 # Dependencies to place after the objects being linked to create a
13549 postdep_objects=$lt_postdep_objects_CXX
13551 # Dependencies to place before the objects being linked to create a
13553 predeps=$lt_predeps_CXX
13555 # Dependencies to place after the objects being linked to create a
13557 postdeps=$lt_postdeps_CXX
13559 # The directories searched by this compiler when creating a shared
13561 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13563 # The library search path used internally by the compiler when linking
13564 # a shared library.
13565 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13567 # Method to check whether dependent libraries are shared objects.
13568 deplibs_check_method=$lt_deplibs_check_method
13570 # Command to use when deplibs_check_method == file_magic.
13571 file_magic_cmd=$lt_file_magic_cmd
13573 # Flag that allows shared libraries with undefined symbols to be built.
13574 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13576 # Flag that forces no undefined symbols.
13577 no_undefined_flag=$lt_no_undefined_flag_CXX
13579 # Commands used to finish a libtool library installation in a directory.
13580 finish_cmds=$lt_finish_cmds
13582 # Same as above, but a single script fragment to be evaled but not shown.
13583 finish_eval=$lt_finish_eval
13585 # Take the output of nm and produce a listing of raw symbols and C names.
13586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13588 # Transform the output of nm in a proper C declaration
13589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13591 # Transform the output of nm in a C name address pair
13592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13594 # This is the shared library runtime path variable.
13595 runpath_var=$runpath_var
13597 # This is the shared library path variable.
13598 shlibpath_var=$shlibpath_var
13600 # Is shlibpath searched before the hard-coded library search path?
13601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13603 # How to hardcode a shared library path into an executable.
13604 hardcode_action=$hardcode_action_CXX
13606 # Whether we should hardcode library paths into libraries.
13607 hardcode_into_libs=$hardcode_into_libs
13609 # Flag to hardcode \$libdir into a binary during linking.
13610 # This must work even if \$libdir does not exist.
13611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13613 # If ld is used when linking, flag to hardcode \$libdir into
13614 # a binary during linking. This must work even if \$libdir does
13616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13618 # Whether we need a single -rpath flag with a separated argument.
13619 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13622 # resulting binary.
13623 hardcode_direct=$hardcode_direct_CXX
13625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13626 # resulting binary.
13627 hardcode_minus_L=$hardcode_minus_L_CXX
13629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13630 # the resulting binary.
13631 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13633 # Set to yes if building a shared library automatically hardcodes DIR into the library
13634 # and all subsequent libraries and executables linked against it.
13635 hardcode_automatic=$hardcode_automatic_CXX
13637 # Variables whose values should be saved in libtool wrapper scripts and
13638 # restored at relink time.
13639 variables_saved_for_relink="$variables_saved_for_relink"
13641 # Whether libtool must link a program against all its dependency libraries.
13642 link_all_deplibs=$link_all_deplibs_CXX
13644 # Compile-time system search path for libraries
13645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13647 # Run-time system search path for libraries
13648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13650 # Fix the shell variable \$srcfile for the compiler.
13651 fix_srcfile_path=$lt_fix_srcfile_path
13653 # Set to yes if exported symbols are required.
13654 always_export_symbols=$always_export_symbols_CXX
13656 # The commands to list exported symbols.
13657 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13659 # The commands to extract the exported symbol list from a shared archive.
13660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13662 # Symbols that should not be listed in the preloaded symbols.
13663 exclude_expsyms=$lt_exclude_expsyms_CXX
13665 # Symbols that must always be exported.
13666 include_expsyms=$lt_include_expsyms_CXX
13668 # ### END LIBTOOL TAG CONFIG: $tagname
13674 # If there is no Makefile yet, we rely on a make rule to execute
13675 # `config.status --recheck' to rerun these tests and create the
13676 # libtool script then.
13677 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13678 if test -f "$ltmain_in"; then
13679 test -f Makefile && make "$ltmain"
13685 ac_cpp='$CPP $CPPFLAGS'
13686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13694 with_gnu_ldcxx=$with_gnu_ld
13695 with_gnu_ld=$lt_save_with_gnu_ld
13696 lt_cv_path_LDCXX=$lt_cv_path_LD
13697 lt_cv_path_LD=$lt_save_path_LD
13698 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13699 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13707 if test -n "$F77" && test "X$F77" != "Xno"; then
13710 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13711 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13712 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13715 archive_cmds_need_lc_F77=no
13716 allow_undefined_flag_F77=
13717 always_export_symbols_F77=no
13718 archive_expsym_cmds_F77=
13719 export_dynamic_flag_spec_F77=
13720 hardcode_direct_F77=no
13721 hardcode_libdir_flag_spec_F77=
13722 hardcode_libdir_flag_spec_ld_F77=
13723 hardcode_libdir_separator_F77=
13724 hardcode_minus_L_F77=no
13725 hardcode_automatic_F77=no
13727 module_expsym_cmds_F77=
13728 link_all_deplibs_F77=unknown
13729 old_archive_cmds_F77=$old_archive_cmds
13730 no_undefined_flag_F77=
13731 whole_archive_flag_spec_F77=
13732 enable_shared_with_static_runtimes_F77=no
13734 # Source file extension for f77 test sources.
13737 # Object file extension for compiled f77 test sources.
13741 # Code to be used in simple compile tests
13742 lt_simple_compile_test_code="\
13748 # Code to be used in simple link tests
13749 lt_simple_link_test_code="\
13754 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13756 # If no C compiler was specified, use CC.
13759 # If no C compiler flags were specified, use CFLAGS.
13760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13762 # Allow CC to be a program name with arguments.
13766 # save warnings/boilerplate of simple test code
13767 ac_outfile=conftest.$ac_objext
13768 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13769 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13770 _lt_compiler_boilerplate=`cat conftest.err`
13773 ac_outfile=conftest.$ac_objext
13774 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13775 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13776 _lt_linker_boilerplate=`cat conftest.err`
13780 # Allow CC to be a program name with arguments.
13785 for cc_temp in $compiler""; do
13787 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13788 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13793 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13797 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13799 $as_echo "$can_build_shared" >&6; }
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13802 $as_echo_n "checking whether to build shared libraries... " >&6; }
13803 test "$can_build_shared" = "no" && enable_shared=no
13805 # On AIX, shared libraries and static libraries use the same namespace, and
13806 # are all built from PIC.
13809 test "$enable_shared" = yes && enable_static=no
13810 if test -n "$RANLIB"; then
13811 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13812 postinstall_cmds='$RANLIB $lib'
13816 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13817 test "$enable_shared" = yes && enable_static=no
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13822 $as_echo "$enable_shared" >&6; }
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13825 $as_echo_n "checking whether to build static libraries... " >&6; }
13826 # Make sure either enable_shared or enable_static is yes.
13827 test "$enable_shared" = yes || enable_static=yes
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13829 $as_echo "$enable_static" >&6; }
13834 lt_prog_compiler_wl_F77=
13835 lt_prog_compiler_pic_F77=
13836 lt_prog_compiler_static_F77=
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13839 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13841 if test "$GCC" = yes; then
13842 lt_prog_compiler_wl_F77='-Wl,'
13843 lt_prog_compiler_static_F77='-static'
13847 # All AIX code is PIC.
13848 if test "$host_cpu" = ia64; then
13849 # AIX 5 now supports IA64 processor
13850 lt_prog_compiler_static_F77='-Bstatic'
13855 # FIXME: we need at least 68020 code to build shared libraries, but
13856 # adding the `-m68020' flag to GCC prevents building anything better,
13858 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13862 # PIC is the default for these OSes.
13865 mingw* | cygwin* | pw32* | os2*)
13866 # This hack is so that the source file can tell whether it is being
13867 # built for inclusion in a dll (and should export symbols for example).
13868 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13869 # (--disable-auto-import) libraries
13870 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13873 darwin* | rhapsody*)
13874 # PIC is the default on this platform
13875 # Common symbols not allowed in MH_DYLIB files
13876 lt_prog_compiler_pic_F77='-fno-common'
13880 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13881 # Instead, we relocate shared libraries at runtime.
13885 # Just because we use GCC doesn't mean we suddenly get shared libraries
13886 # on systems that don't support them.
13887 lt_prog_compiler_can_build_shared_F77=no
13892 if test -d /usr/nec; then
13893 lt_prog_compiler_pic_F77=-Kconform_pic
13898 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13899 # not for PA HP-UX.
13905 lt_prog_compiler_pic_F77='-fPIC'
13911 lt_prog_compiler_pic_F77='-fPIC'
13915 # PORTME Check for flag to pass linker flags through the system compiler.
13918 lt_prog_compiler_wl_F77='-Wl,'
13919 if test "$host_cpu" = ia64; then
13920 # AIX 5 now supports IA64 processor
13921 lt_prog_compiler_static_F77='-Bstatic'
13923 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13927 # PIC is the default on this platform
13928 # Common symbols not allowed in MH_DYLIB files
13929 case $cc_basename in
13931 lt_prog_compiler_pic_F77='-qnocommon'
13932 lt_prog_compiler_wl_F77='-Wl,'
13937 mingw* | cygwin* | pw32* | os2*)
13938 # This hack is so that the source file can tell whether it is being
13939 # built for inclusion in a dll (and should export symbols for example).
13940 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13943 hpux9* | hpux10* | hpux11*)
13944 lt_prog_compiler_wl_F77='-Wl,'
13945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13946 # not for PA HP-UX.
13952 lt_prog_compiler_pic_F77='+Z'
13955 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13956 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13959 irix5* | irix6* | nonstopux*)
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 # PIC (with -KPIC) is the default.
13962 lt_prog_compiler_static_F77='-non_shared'
13966 lt_prog_compiler_pic_F77='-KPIC'
13967 lt_prog_compiler_static_F77='-Bstatic'
13970 linux* | k*bsd*-gnu)
13971 case $cc_basename in
13973 lt_prog_compiler_wl_F77='-Wl,'
13974 lt_prog_compiler_pic_F77='-KPIC'
13975 lt_prog_compiler_static_F77='-static'
13977 pgcc* | pgf77* | pgf90* | pgf95*)
13978 # Portland Group compilers (*not* the Pentium gcc compiler,
13979 # which looks to be a dead project)
13980 lt_prog_compiler_wl_F77='-Wl,'
13981 lt_prog_compiler_pic_F77='-fpic'
13982 lt_prog_compiler_static_F77='-Bstatic'
13985 lt_prog_compiler_wl_F77='-Wl,'
13986 # All Alpha code is PIC.
13987 lt_prog_compiler_static_F77='-non_shared'
13990 case `$CC -V 2>&1 | sed 5q` in
13993 lt_prog_compiler_pic_F77='-KPIC'
13994 lt_prog_compiler_static_F77='-Bstatic'
13995 lt_prog_compiler_wl_F77='-Wl,'
13998 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13999 lt_prog_compiler_pic_F77='-KPIC'
14000 lt_prog_compiler_static_F77='-Bstatic'
14001 lt_prog_compiler_wl_F77=''
14008 osf3* | osf4* | osf5*)
14009 lt_prog_compiler_wl_F77='-Wl,'
14010 # All OSF/1 code is PIC.
14011 lt_prog_compiler_static_F77='-non_shared'
14015 lt_prog_compiler_static_F77='-non_shared'
14019 lt_prog_compiler_pic_F77='-KPIC'
14020 lt_prog_compiler_static_F77='-Bstatic'
14021 case $cc_basename in
14022 f77* | f90* | f95*)
14023 lt_prog_compiler_wl_F77='-Qoption ld ';;
14025 lt_prog_compiler_wl_F77='-Wl,';;
14030 lt_prog_compiler_wl_F77='-Qoption ld '
14031 lt_prog_compiler_pic_F77='-PIC'
14032 lt_prog_compiler_static_F77='-Bstatic'
14035 sysv4 | sysv4.2uw2* | sysv4.3*)
14036 lt_prog_compiler_wl_F77='-Wl,'
14037 lt_prog_compiler_pic_F77='-KPIC'
14038 lt_prog_compiler_static_F77='-Bstatic'
14042 if test -d /usr/nec ;then
14043 lt_prog_compiler_pic_F77='-Kconform_pic'
14044 lt_prog_compiler_static_F77='-Bstatic'
14048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14049 lt_prog_compiler_wl_F77='-Wl,'
14050 lt_prog_compiler_pic_F77='-KPIC'
14051 lt_prog_compiler_static_F77='-Bstatic'
14055 lt_prog_compiler_wl_F77='-Wl,'
14056 lt_prog_compiler_can_build_shared_F77=no
14060 lt_prog_compiler_pic_F77='-pic'
14061 lt_prog_compiler_static_F77='-Bstatic'
14065 lt_prog_compiler_can_build_shared_F77=no
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14071 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14074 # Check to make sure the PIC flag actually works.
14076 if test -n "$lt_prog_compiler_pic_F77"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14079 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14080 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14081 $as_echo_n "(cached) " >&6
14083 lt_cv_prog_compiler_pic_works_F77=no
14084 ac_outfile=conftest.$ac_objext
14085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14086 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14087 # Insert the option either (1) after the last *FLAGS variable, or
14088 # (2) before a word containing "conftest.", or (3) at the end.
14089 # Note that $ac_compile itself does not contain backslashes and begins
14090 # with a dollar sign (not a hyphen), so the echo should work correctly.
14091 # The option is referenced via a variable to avoid confusing sed.
14092 lt_compile=`echo "$ac_compile" | $SED \
14093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14095 -e 's:$: $lt_compiler_flag:'`
14096 (eval echo "\"\$as_me:14096: $lt_compile\"" >&5)
14097 (eval "$lt_compile" 2>conftest.err)
14099 cat conftest.err >&5
14100 echo "$as_me:14100: \$? = $ac_status" >&5
14101 if (exit $ac_status) && test -s "$ac_outfile"; then
14102 # The compiler can only warn and ignore the option if not recognized
14103 # So say no if there are warnings other than the usual output.
14104 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14107 lt_cv_prog_compiler_pic_works_F77=yes
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14114 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14116 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14117 case $lt_prog_compiler_pic_F77 in
14119 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14122 lt_prog_compiler_pic_F77=
14123 lt_prog_compiler_can_build_shared_F77=no
14128 # For platforms which do not support PIC, -DPIC is meaningless:
14130 lt_prog_compiler_pic_F77=
14133 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14138 # Check to make sure the static flag actually works.
14140 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14142 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14143 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14144 $as_echo_n "(cached) " >&6
14146 lt_cv_prog_compiler_static_works_F77=no
14147 save_LDFLAGS="$LDFLAGS"
14148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14149 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14151 # The linker can only warn and ignore the option if not recognized
14152 # So say no if there are warnings
14153 if test -s conftest.err; then
14154 # Append any errors to the config.log.
14155 cat conftest.err 1>&5
14156 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14158 if diff conftest.exp conftest.er2 >/dev/null; then
14159 lt_cv_prog_compiler_static_works_F77=yes
14162 lt_cv_prog_compiler_static_works_F77=yes
14166 LDFLAGS="$save_LDFLAGS"
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14170 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14172 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14175 lt_prog_compiler_static_F77=
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14180 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14181 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14182 $as_echo_n "(cached) " >&6
14184 lt_cv_prog_compiler_c_o_F77=no
14185 $rm -r conftest 2>/dev/null
14189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14191 lt_compiler_flag="-o out/conftest2.$ac_objext"
14192 # Insert the option either (1) after the last *FLAGS variable, or
14193 # (2) before a word containing "conftest.", or (3) at the end.
14194 # Note that $ac_compile itself does not contain backslashes and begins
14195 # with a dollar sign (not a hyphen), so the echo should work correctly.
14196 lt_compile=`echo "$ac_compile" | $SED \
14197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14199 -e 's:$: $lt_compiler_flag:'`
14200 (eval echo "\"\$as_me:14200: $lt_compile\"" >&5)
14201 (eval "$lt_compile" 2>out/conftest.err)
14203 cat out/conftest.err >&5
14204 echo "$as_me:14204: \$? = $ac_status" >&5
14205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14207 # The compiler can only warn and ignore the option if not recognized
14208 # So say no if there are warnings
14209 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14212 lt_cv_prog_compiler_c_o_F77=yes
14217 # SGI C++ compiler will create directory out/ii_files/ for
14218 # template instantiation
14219 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14220 $rm out/* && rmdir out
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14227 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14230 hard_links="nottested"
14231 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14232 # do not overwrite the value of need_locks provided by the user
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14234 $as_echo_n "checking if we can lock with hard links... " >&6; }
14237 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14239 ln conftest.a conftest.b 2>&5 || hard_links=no
14240 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14242 $as_echo "$hard_links" >&6; }
14243 if test "$hard_links" = no; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14245 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14253 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14256 allow_undefined_flag_F77=
14257 enable_shared_with_static_runtimes_F77=no
14259 archive_expsym_cmds_F77=
14260 old_archive_From_new_cmds_F77=
14261 old_archive_from_expsyms_cmds_F77=
14262 export_dynamic_flag_spec_F77=
14263 whole_archive_flag_spec_F77=
14264 thread_safe_flag_spec_F77=
14265 hardcode_libdir_flag_spec_F77=
14266 hardcode_libdir_flag_spec_ld_F77=
14267 hardcode_libdir_separator_F77=
14268 hardcode_direct_F77=no
14269 hardcode_minus_L_F77=no
14270 hardcode_shlibpath_var_F77=unsupported
14271 link_all_deplibs_F77=unknown
14272 hardcode_automatic_F77=no
14274 module_expsym_cmds_F77=
14275 always_export_symbols_F77=no
14276 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14277 # include_expsyms should be a list of space-separated symbols to be *always*
14278 # included in the symbol list
14279 include_expsyms_F77=
14280 # exclude_expsyms can be an extended regexp of symbols to exclude
14281 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14282 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14283 # as well as any symbol that contains `d'.
14284 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14285 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14286 # platforms (ab)use it in PIC code, but their linkers get confused if
14287 # the symbol is explicitly referenced. Since portable code cannot
14288 # rely on this symbol name, it's probably fine to never include it in
14289 # preloaded symbol tables.
14290 # Exclude shared library initialization/finalization symbols.
14291 extract_expsyms_cmds=
14292 # Just being paranoid about ensuring that cc_basename is set.
14293 for cc_temp in $compiler""; do
14295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14304 cygwin* | mingw* | pw32*)
14305 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14306 # When not using gcc, we currently assume that we are using
14307 # Microsoft Visual C++.
14308 if test "$GCC" != yes; then
14313 # we just hope/assume this is gcc and not c89 (= MSVC++)
14322 if test "$with_gnu_ld" = yes; then
14323 # If archive_cmds runs LD, not CC, wlarc should be empty
14326 # Set some defaults for GNU ld with shared library support. These
14327 # are reset later if shared libraries are not supported. Putting them
14328 # here allows them to be overridden if necessary.
14329 runpath_var=LD_RUN_PATH
14330 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14331 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14332 # ancient GNU ld didn't support --whole-archive et. al.
14333 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14334 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14336 whole_archive_flag_spec_F77=
14338 supports_anon_versioning=no
14339 case `$LD -v 2>/dev/null` in
14340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14343 *\ 2.11.*) ;; # other 2.11 versions
14344 *) supports_anon_versioning=yes ;;
14347 # See if GNU ld supports shared libraries.
14350 # On AIX/PPC, the GNU linker is very broken
14351 if test "$host_cpu" != ia64; then
14355 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14356 *** to be unable to reliably create shared libraries on AIX.
14357 *** Therefore, libtool is disabling shared libraries support. If you
14358 *** really care for shared libraries, you may want to modify your PATH
14359 *** so that a non-GNU linker is found, and then restart.
14366 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)'
14367 hardcode_libdir_flag_spec_F77='-L$libdir'
14368 hardcode_minus_L_F77=yes
14370 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14371 # that the semantics of dynamic libraries on AmigaOS, at least up
14372 # to version 4, is to share data among multiple programs linked
14373 # with the same dynamic library. Since this doesn't match the
14374 # behavior of shared libraries on other platforms, we can't use
14380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14381 allow_undefined_flag_F77=unsupported
14382 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14383 # support --undefined. This deserves some investigation. FIXME
14384 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14390 cygwin* | mingw* | pw32*)
14391 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14392 # as there is no search path for DLLs.
14393 hardcode_libdir_flag_spec_F77='-L$libdir'
14394 allow_undefined_flag_F77=unsupported
14395 always_export_symbols_F77=no
14396 enable_shared_with_static_runtimes_F77=yes
14397 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14399 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14400 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14401 # If the export-symbols file already is a .def file (1st line
14402 # is EXPORTS), use it as is; otherwise, prepend...
14403 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14404 cp $export_symbols $output_objdir/$soname.def;
14406 echo EXPORTS > $output_objdir/$soname.def;
14407 cat $export_symbols >> $output_objdir/$soname.def;
14409 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14416 hardcode_direct_F77=no
14417 hardcode_shlibpath_var_F77=no
14418 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14419 export_dynamic_flag_spec_F77='${wl}-E'
14420 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14421 # Instead, shared libraries are loaded at an image base (0x10000000 by
14422 # default) and relocated if they conflict, which is a slow very memory
14423 # consuming and fragmenting process. To avoid this, we pick a random,
14424 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14425 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14426 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'
14427 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'
14430 gnu* | linux* | k*bsd*-gnu)
14431 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14433 case $cc_basename,$host_cpu in
14434 pgcc*) # Portland Group C compiler
14435 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'
14436 tmp_addflag=' $pic_flag'
14438 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14439 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14440 tmp_addflag=' $pic_flag -Mnomain' ;;
14441 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14442 tmp_addflag=' -i_dynamic' ;;
14443 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14444 tmp_addflag=' -i_dynamic -nofor_main' ;;
14445 ifc* | ifort*) # Intel Fortran compiler
14446 tmp_addflag=' -nofor_main' ;;
14448 case `$CC -V 2>&1 | sed 5q` in
14449 *Sun\ C*) # Sun C 5.9
14450 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'
14451 tmp_sharedflag='-G' ;;
14452 *Sun\ F*) # Sun Fortran 8.3
14453 tmp_sharedflag='-G' ;;
14455 tmp_sharedflag='-shared' ;;
14457 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14459 if test $supports_anon_versioning = yes; then
14460 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14462 $echo "local: *; };" >> $output_objdir/$libname.ver~
14463 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14465 link_all_deplibs_F77=no
14471 netbsd* | netbsdelf*-gnu)
14472 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14473 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14476 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14477 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14482 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14486 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14487 *** create shared libraries on Solaris systems. Therefore, libtool
14488 *** is disabling shared libraries support. We urge you to upgrade GNU
14489 *** binutils to release 2.9.1 or newer. Another option is to modify
14490 *** your PATH or compiler configuration so that the native linker is
14491 *** used, and then restart.
14494 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14495 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14496 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14503 case `$LD -v 2>&1` in
14504 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14508 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14509 *** reliably create shared libraries on SCO systems. Therefore, libtool
14510 *** is disabling shared libraries support. We urge you to upgrade GNU
14511 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14512 *** your PATH or compiler configuration so that the native linker is
14513 *** used, and then restart.
14518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14519 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14520 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14521 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14530 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14532 hardcode_direct_F77=yes
14533 hardcode_shlibpath_var_F77=no
14537 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14538 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14539 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14546 if test "$ld_shlibs_F77" = no; then
14548 hardcode_libdir_flag_spec_F77=
14549 export_dynamic_flag_spec_F77=
14550 whole_archive_flag_spec_F77=
14553 # PORTME fill in a description of your system's linker (not GNU ld)
14556 allow_undefined_flag_F77=unsupported
14557 always_export_symbols_F77=yes
14558 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'
14559 # Note: this linker hardcodes the directories in LIBPATH if there
14560 # are no directories specified by -L.
14561 hardcode_minus_L_F77=yes
14562 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14563 # Neither direct hardcoding nor static linking is supported with a
14565 hardcode_direct_F77=unsupported
14570 if test "$host_cpu" = ia64; then
14571 # On IA64, the linker does run time linking by default, so we don't
14572 # have to do anything special.
14573 aix_use_runtimelinking=no
14574 exp_sym_flag='-Bexport'
14577 # If we're using GNU nm, then we don't want the "-C" option.
14578 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14579 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14580 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'
14582 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'
14584 aix_use_runtimelinking=no
14586 # Test if we are trying to use run time linking or normal
14587 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14588 # need to do runtime linking.
14589 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14590 for ld_flag in $LDFLAGS; do
14591 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14592 aix_use_runtimelinking=yes
14599 exp_sym_flag='-bexport'
14600 no_entry_flag='-bnoentry'
14603 # When large executables or shared objects are built, AIX ld can
14604 # have problems creating the table of contents. If linking a library
14605 # or program results in "error TOC overflow" add -mminimal-toc to
14606 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14607 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14609 archive_cmds_F77=''
14610 hardcode_direct_F77=yes
14611 hardcode_libdir_separator_F77=':'
14612 link_all_deplibs_F77=yes
14614 if test "$GCC" = yes; then
14615 case $host_os in aix4.[012]|aix4.[012].*)
14616 # We only want to do this on AIX 4.2 and lower, the check
14617 # below for broken collect2 doesn't work under 4.3+
14618 collect2name=`${CC} -print-prog-name=collect2`
14619 if test -f "$collect2name" && \
14620 strings "$collect2name" | grep resolve_lib_name >/dev/null
14622 # We have reworked collect2
14625 # We have old collect2
14626 hardcode_direct_F77=unsupported
14627 # It fails to find uninstalled libraries when the uninstalled
14628 # path is not listed in the libpath. Setting hardcode_minus_L
14629 # to unsupported forces relinking
14630 hardcode_minus_L_F77=yes
14631 hardcode_libdir_flag_spec_F77='-L$libdir'
14632 hardcode_libdir_separator_F77=
14636 shared_flag='-shared'
14637 if test "$aix_use_runtimelinking" = yes; then
14638 shared_flag="$shared_flag "'${wl}-G'
14642 if test "$host_cpu" = ia64; then
14643 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14644 # chokes on -Wl,-G. The following line is correct:
14647 if test "$aix_use_runtimelinking" = yes; then
14648 shared_flag='${wl}-G'
14650 shared_flag='${wl}-bM:SRE'
14655 # It seems that -bexpall does not export symbols beginning with
14656 # underscore (_), so it is better to generate a list of symbols to export.
14657 always_export_symbols_F77=yes
14658 if test "$aix_use_runtimelinking" = yes; then
14659 # Warning - without using the other runtime loading flags (-brtl),
14660 # -berok will link without error, but may produce a broken library.
14661 allow_undefined_flag_F77='-berok'
14662 # Determine the default libpath from the value encoded in an empty executable.
14663 cat > conftest.$ac_ext <<_ACEOF
14668 if ac_fn_f77_try_link "$LINENO"; then :
14670 lt_aix_libpath_sed='
14671 /Import File Strings/,/^$/ {
14677 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14678 # Check for a 64-bit object if we didn't find anything.
14679 if test -z "$aix_libpath"; then
14680 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14683 rm -f core conftest.err conftest.$ac_objext \
14684 conftest$ac_exeext conftest.$ac_ext
14685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14687 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14688 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"
14690 if test "$host_cpu" = ia64; then
14691 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14692 allow_undefined_flag_F77="-z nodefs"
14693 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"
14695 # Determine the default libpath from the value encoded in an empty executable.
14696 cat > conftest.$ac_ext <<_ACEOF
14701 if ac_fn_f77_try_link "$LINENO"; then :
14703 lt_aix_libpath_sed='
14704 /Import File Strings/,/^$/ {
14710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14711 # Check for a 64-bit object if we didn't find anything.
14712 if test -z "$aix_libpath"; then
14713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14716 rm -f core conftest.err conftest.$ac_objext \
14717 conftest$ac_exeext conftest.$ac_ext
14718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14720 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14721 # Warning - without using the other run time loading flags,
14722 # -berok will link without error, but may produce a broken library.
14723 no_undefined_flag_F77=' ${wl}-bernotok'
14724 allow_undefined_flag_F77=' ${wl}-berok'
14725 # Exported symbols can be pulled into shared objects from archives
14726 whole_archive_flag_spec_F77='$convenience'
14727 archive_cmds_need_lc_F77=yes
14728 # This is similar to how AIX traditionally builds its shared libraries.
14729 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'
14735 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)'
14736 hardcode_libdir_flag_spec_F77='-L$libdir'
14737 hardcode_minus_L_F77=yes
14738 # see comment about different semantics on the GNU ld section
14743 export_dynamic_flag_spec_F77=-rdynamic
14746 cygwin* | mingw* | pw32*)
14747 # When not using gcc, we currently assume that we are using
14748 # Microsoft Visual C++.
14749 # hardcode_libdir_flag_spec is actually meaningless, as there is
14750 # no search path for DLLs.
14751 hardcode_libdir_flag_spec_F77=' '
14752 allow_undefined_flag_F77=unsupported
14753 # Tell ltmain to make .lib files, not .a files.
14755 # Tell ltmain to make .dll files, not .so files.
14757 # FIXME: Setting linknames here is a bad hack.
14758 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14759 # The linker will automatically build a .lib file if we build a DLL.
14760 old_archive_From_new_cmds_F77='true'
14761 # FIXME: Should let the user specify the lib program.
14762 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14763 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14764 enable_shared_with_static_runtimes_F77=yes
14767 darwin* | rhapsody*)
14769 rhapsody* | darwin1.[012])
14770 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14773 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14774 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14776 case ${MACOSX_DEPLOYMENT_TARGET} in
14778 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14781 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14787 archive_cmds_need_lc_F77=no
14788 hardcode_direct_F77=no
14789 hardcode_automatic_F77=yes
14790 hardcode_shlibpath_var_F77=unsupported
14791 whole_archive_flag_spec_F77=''
14792 link_all_deplibs_F77=yes
14793 if test "$GCC" = yes ; then
14794 output_verbose_link_cmd='echo'
14795 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}"
14796 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14797 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}"
14798 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}"
14800 case $cc_basename in
14802 output_verbose_link_cmd='echo'
14803 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14804 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14805 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14806 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}'
14807 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}'
14817 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818 hardcode_libdir_flag_spec_F77='-L$libdir'
14819 hardcode_shlibpath_var_F77=no
14826 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14827 # support. Future versions do this automatically, but an explicit c++rt0.o
14828 # does not break anything, and helps significantly (at the cost of a little
14831 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14832 hardcode_libdir_flag_spec_F77='-R$libdir'
14833 hardcode_direct_F77=yes
14834 hardcode_shlibpath_var_F77=no
14837 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14839 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14840 hardcode_direct_F77=yes
14841 hardcode_minus_L_F77=yes
14842 hardcode_shlibpath_var_F77=no
14845 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14846 freebsd* | dragonfly*)
14847 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14848 hardcode_libdir_flag_spec_F77='-R$libdir'
14849 hardcode_direct_F77=yes
14850 hardcode_shlibpath_var_F77=no
14854 if test "$GCC" = yes; then
14855 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'
14857 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'
14859 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14860 hardcode_libdir_separator_F77=:
14861 hardcode_direct_F77=yes
14863 # hardcode_minus_L: Not really in the search PATH,
14864 # but as the default location of the library.
14865 hardcode_minus_L_F77=yes
14866 export_dynamic_flag_spec_F77='${wl}-E'
14870 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14871 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14873 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14875 if test "$with_gnu_ld" = no; then
14876 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14877 hardcode_libdir_separator_F77=:
14879 hardcode_direct_F77=yes
14880 export_dynamic_flag_spec_F77='${wl}-E'
14882 # hardcode_minus_L: Not really in the search PATH,
14883 # but as the default location of the library.
14884 hardcode_minus_L_F77=yes
14889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14892 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14895 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14898 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14904 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14907 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14910 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14914 if test "$with_gnu_ld" = no; then
14915 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14916 hardcode_libdir_separator_F77=:
14920 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14921 hardcode_direct_F77=no
14922 hardcode_shlibpath_var_F77=no
14925 hardcode_direct_F77=yes
14926 export_dynamic_flag_spec_F77='${wl}-E'
14928 # hardcode_minus_L: Not really in the search PATH,
14929 # but as the default location of the library.
14930 hardcode_minus_L_F77=yes
14936 irix5* | irix6* | nonstopux*)
14937 if test "$GCC" = yes; then
14938 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'
14940 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'
14941 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14943 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14944 hardcode_libdir_separator_F77=:
14945 link_all_deplibs_F77=yes
14948 netbsd* | netbsdelf*-gnu)
14949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14950 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14952 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14954 hardcode_libdir_flag_spec_F77='-R$libdir'
14955 hardcode_direct_F77=yes
14956 hardcode_shlibpath_var_F77=no
14960 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961 hardcode_direct_F77=yes
14962 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14963 hardcode_libdir_separator_F77=:
14964 hardcode_shlibpath_var_F77=no
14968 if test -f /usr/libexec/ld.so; then
14969 hardcode_direct_F77=yes
14970 hardcode_shlibpath_var_F77=no
14971 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14972 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14973 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14974 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14975 export_dynamic_flag_spec_F77='${wl}-E'
14978 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14979 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14980 hardcode_libdir_flag_spec_F77='-R$libdir'
14983 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14984 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14994 hardcode_libdir_flag_spec_F77='-L$libdir'
14995 hardcode_minus_L_F77=yes
14996 allow_undefined_flag_F77=unsupported
14997 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'
14998 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15002 if test "$GCC" = yes; then
15003 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15004 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'
15006 allow_undefined_flag_F77=' -expect_unresolved \*'
15007 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'
15009 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15010 hardcode_libdir_separator_F77=:
15013 osf4* | osf5*) # as osf3* with the addition of -msym flag
15014 if test "$GCC" = yes; then
15015 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15016 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'
15017 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15019 allow_undefined_flag_F77=' -expect_unresolved \*'
15020 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'
15021 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~
15022 $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'
15024 # Both c and cxx compiler support -rpath directly
15025 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15027 hardcode_libdir_separator_F77=:
15031 no_undefined_flag_F77=' -z text'
15032 if test "$GCC" = yes; then
15034 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15035 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15036 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15039 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15040 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15041 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15043 hardcode_libdir_flag_spec_F77='-R$libdir'
15044 hardcode_shlibpath_var_F77=no
15046 solaris2.[0-5] | solaris2.[0-5].*) ;;
15048 # The compiler driver will combine and reorder linker options,
15049 # but understands `-z linker_flag'. GCC discards it without `$wl',
15050 # but is careful enough not to reorder.
15051 # Supported since Solaris 2.6 (maybe 2.5.1?)
15052 if test "$GCC" = yes; then
15053 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15055 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15059 link_all_deplibs_F77=yes
15063 if test "x$host_vendor" = xsequent; then
15064 # Use $CC to link under sequent, because it throws in some extra .o
15065 # files that make .init and .fini sections work.
15066 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15068 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15070 hardcode_libdir_flag_spec_F77='-L$libdir'
15071 hardcode_direct_F77=yes
15072 hardcode_minus_L_F77=yes
15073 hardcode_shlibpath_var_F77=no
15077 case $host_vendor in
15079 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15080 hardcode_direct_F77=yes # is this really true???
15083 ## LD is ld it makes a PLAMLIB
15084 ## CC just makes a GrossModule.
15085 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15086 reload_cmds_F77='$CC -r -o $output$reload_objs'
15087 hardcode_direct_F77=no
15090 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15091 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15094 runpath_var='LD_RUN_PATH'
15095 hardcode_shlibpath_var_F77=no
15099 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15100 hardcode_shlibpath_var_F77=no
15101 export_dynamic_flag_spec_F77='-Bexport'
15105 if test -d /usr/nec; then
15106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15107 hardcode_shlibpath_var_F77=no
15108 runpath_var=LD_RUN_PATH
15109 hardcode_runpath_var=yes
15114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15115 no_undefined_flag_F77='${wl}-z,text'
15116 archive_cmds_need_lc_F77=no
15117 hardcode_shlibpath_var_F77=no
15118 runpath_var='LD_RUN_PATH'
15120 if test "$GCC" = yes; then
15121 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15122 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15124 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15125 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15129 sysv5* | sco3.2v5* | sco5v6*)
15130 # Note: We can NOT use -z defs as we might desire, because we do not
15131 # link with -lc, and that would cause any symbols used from libc to
15132 # always be unresolved, which means just about no library would
15133 # ever link correctly. If we're not using GNU ld we use -z text
15134 # though, which does catch some bad symbols but isn't as heavy-handed
15136 no_undefined_flag_F77='${wl}-z,text'
15137 allow_undefined_flag_F77='${wl}-z,nodefs'
15138 archive_cmds_need_lc_F77=no
15139 hardcode_shlibpath_var_F77=no
15140 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15141 hardcode_libdir_separator_F77=':'
15142 link_all_deplibs_F77=yes
15143 export_dynamic_flag_spec_F77='${wl}-Bexport'
15144 runpath_var='LD_RUN_PATH'
15146 if test "$GCC" = yes; then
15147 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15148 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15150 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15151 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15156 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15157 hardcode_libdir_flag_spec_F77='-L$libdir'
15158 hardcode_shlibpath_var_F77=no
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15168 $as_echo "$ld_shlibs_F77" >&6; }
15169 test "$ld_shlibs_F77" = no && can_build_shared=no
15172 # Do we need to explicitly link libc?
15174 case "x$archive_cmds_need_lc_F77" in
15176 # Assume -lc should be added
15177 archive_cmds_need_lc_F77=yes
15179 if test "$enable_shared" = yes && test "$GCC" = yes; then
15180 case $archive_cmds_F77 in
15182 # FIXME: we may have to deal with multi-command sequences.
15185 # Test whether the compiler implicitly links with -lc since on some
15186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15187 # to ld, don't add -lc before -lgcc.
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15189 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15194 (eval $ac_compile) 2>&5
15196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15197 test $ac_status = 0; } 2>conftest.err; then
15200 libobjs=conftest.$ac_objext
15202 wl=$lt_prog_compiler_wl_F77
15203 pic_flag=$lt_prog_compiler_pic_F77
15209 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15210 allow_undefined_flag_F77=
15211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15212 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15215 test $ac_status = 0; }
15217 archive_cmds_need_lc_F77=no
15219 archive_cmds_need_lc_F77=yes
15221 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15223 cat conftest.err 1>&5
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15227 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15235 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15236 library_names_spec=
15237 libname_spec='lib$name'
15241 postuninstall_cmds=
15245 shlibpath_overrides_runpath=unknown
15247 dynamic_linker="$host_os ld.so"
15248 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15250 need_lib_prefix=unknown
15251 hardcode_into_libs=no
15253 # when you set need_version to no, make sure it does not cause -set_version
15254 # flags to be left without arguments
15255 need_version=unknown
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15261 shlibpath_var=LIBPATH
15263 # AIX 3 has no versioning support, so we append a major version to the name.
15264 soname_spec='${libname}${release}${shared_ext}$major'
15271 hardcode_into_libs=yes
15272 if test "$host_cpu" = ia64; then
15273 # AIX 5 supports IA64
15274 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15275 shlibpath_var=LD_LIBRARY_PATH
15277 # With GCC up to 2.95.x, collect2 would create an import file
15278 # for dependence libraries. The import file would start with
15279 # the line `#! .'. This would cause the generated library to
15280 # depend on `.', always an invalid library. This was fixed in
15281 # development snapshots of GCC prior to 3.0.
15283 aix4 | aix4.[01] | aix4.[01].*)
15284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15286 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15289 can_build_shared=no
15293 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15294 # soname into executable. Probably we can add versioning support to
15295 # collect2, so additional links can be useful in future.
15296 if test "$aix_use_runtimelinking" = yes; then
15297 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15298 # instead of lib<name>.a to let people know that these are not
15299 # typical AIX shared libraries.
15300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15302 # We preserve .a as extension for shared libraries through AIX4.2
15303 # and later when we are not doing run time linking.
15304 library_names_spec='${libname}${release}.a $libname.a'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15307 shlibpath_var=LIBPATH
15312 library_names_spec='$libname.ixlibrary $libname.a'
15313 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15314 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'
15318 library_names_spec='${libname}${shared_ext}'
15319 dynamic_linker="$host_os ld.so"
15320 shlibpath_var=LIBRARY_PATH
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15327 soname_spec='${libname}${release}${shared_ext}$major'
15328 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15331 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15332 # the default ld.so.conf also contains /usr/contrib/lib and
15333 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15334 # libtool to hard-code these into programs
15337 cygwin* | mingw* | pw32*)
15338 version_type=windows
15343 case $GCC,$host_os in
15344 yes,cygwin* | yes,mingw* | yes,pw32*)
15345 library_names_spec='$libname.dll.a'
15346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15347 postinstall_cmds='base_file=`basename \${file}`~
15348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15349 dldir=$destdir/`dirname \$dlpath`~
15350 test -d \$dldir || mkdir -p \$dldir~
15351 $install_prog $dir/$dlname \$dldir/$dlname~
15352 chmod a+x \$dldir/$dlname'
15353 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15354 dlpath=$dir/\$dldll~
15356 shlibpath_overrides_runpath=yes
15360 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15361 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15362 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15365 # MinGW DLLs use traditional 'lib' prefix
15366 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15367 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15368 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15369 # It is most probably a Windows format PATH printed by
15370 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15371 # path with ; separators, and with drive letters. We can handle the
15372 # drive letters (cygwin fileutils understands them), so leave them,
15373 # especially as we might pass files found there to a mingw objdump,
15374 # which wouldn't understand a cygwinified path. Ahh.
15375 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15381 # pw32 DLLs use 'pw' prefix rather than 'lib'
15382 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15388 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15391 dynamic_linker='Win32 ld.exe'
15392 # FIXME: first we should search . and the directory the executable is in
15396 darwin* | rhapsody*)
15397 dynamic_linker="$host_os dyld"
15398 version_type=darwin
15401 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15402 soname_spec='${libname}${release}${major}$shared_ext'
15403 shlibpath_overrides_runpath=yes
15404 shlibpath_var=DYLD_LIBRARY_PATH
15405 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15407 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15423 freebsd* | dragonfly*)
15424 # DragonFly does not have aout. When/if they implement a new
15425 # versioning mechanism, adjust this.
15426 if test -x /usr/bin/objformat; then
15427 objformat=`/usr/bin/objformat`
15430 freebsd[123]*) objformat=aout ;;
15431 *) objformat=elf ;;
15434 version_type=freebsd-$objformat
15435 case $version_type in
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15446 shlibpath_var=LD_LIBRARY_PATH
15449 shlibpath_overrides_runpath=yes
15451 freebsd3.[01]* | freebsdelf3.[01]*)
15452 shlibpath_overrides_runpath=yes
15453 hardcode_into_libs=yes
15455 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15456 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15457 shlibpath_overrides_runpath=no
15458 hardcode_into_libs=yes
15460 *) # from 4.6 on, and DragonFly
15461 shlibpath_overrides_runpath=yes
15462 hardcode_into_libs=yes
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 hardcode_into_libs=yes
15477 hpux9* | hpux10* | hpux11*)
15478 # Give a soname corresponding to the major version so that dld.sl refuses to
15479 # link against other versions.
15486 hardcode_into_libs=yes
15487 dynamic_linker="$host_os dld.so"
15488 shlibpath_var=LD_LIBRARY_PATH
15489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 if test "X$HPUX_IA64_MODE" = X32; then
15493 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15495 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15501 hardcode_into_libs=yes
15502 dynamic_linker="$host_os dld.sl"
15503 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506 soname_spec='${libname}${release}${shared_ext}$major'
15507 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15512 dynamic_linker="$host_os dld.sl"
15513 shlibpath_var=SHLIB_PATH
15514 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516 soname_spec='${libname}${release}${shared_ext}$major'
15519 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15520 postinstall_cmds='chmod 555 $lib'
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=no
15532 hardcode_into_libs=yes
15535 irix5* | irix6* | nonstopux*)
15537 nonstopux*) version_type=nonstopux ;;
15539 if test "$lt_cv_prog_gnu_ld" = yes; then
15547 soname_spec='${libname}${release}${shared_ext}$major'
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15550 irix5* | nonstopux*)
15551 libsuff= shlibsuff=
15554 case $LD in # libtool.m4 will add one of these switches to LD
15555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15556 libsuff= shlibsuff= libmagic=32-bit;;
15557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15558 libsuff=32 shlibsuff=N32 libmagic=N32;;
15559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15560 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15561 *) libsuff= shlibsuff= libmagic=never-match;;
15565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15566 shlibpath_overrides_runpath=no
15567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15569 hardcode_into_libs=yes
15572 # No shared lib support for Linux oldld, aout, or coff.
15573 linux*oldld* | linux*aout* | linux*coff*)
15577 # This must be Linux ELF.
15578 linux* | k*bsd*-gnu)
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=no
15587 # This implies no fast_install, which is unacceptable.
15588 # Some rework will be needed to allow for fast_install
15589 # before this can be enabled.
15590 hardcode_into_libs=yes
15592 # Append ld.so.conf contents to the search path
15593 if test -f /etc/ld.so.conf; then
15594 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' ' '`
15595 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15598 # We used to test for /lib/ld.so.1 and disable shared libraries on
15599 # powerpc, because MkLinux only supported shared libraries with the
15600 # GNU dynamic linker. Since this was broken with cross compilers,
15601 # most powerpc-linux boxes support dynamic linking these days and
15602 # people can always --disable-shared, the test was removed, and we
15603 # assume the GNU/Linux dynamic linker is in use.
15604 dynamic_linker='GNU/Linux ld.so'
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15612 soname_spec='${libname}${release}${shared_ext}$major'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 shlibpath_overrides_runpath=no
15615 hardcode_into_libs=yes
15616 dynamic_linker='NetBSD ld.elf_so'
15623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15626 dynamic_linker='NetBSD (a.out) ld.so'
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15629 soname_spec='${libname}${release}${shared_ext}$major'
15630 dynamic_linker='NetBSD ld.elf_so'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 shlibpath_overrides_runpath=yes
15634 hardcode_into_libs=yes
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 shlibpath_overrides_runpath=yes
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649 soname_spec='${libname}${release}${shared_ext}$major'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 shlibpath_overrides_runpath=yes
15656 sys_lib_dlsearch_path_spec="/usr/lib"
15658 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15660 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15661 *) need_version=no ;;
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15665 shlibpath_var=LD_LIBRARY_PATH
15666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15668 openbsd2.[89] | openbsd2.[89].*)
15669 shlibpath_overrides_runpath=no
15672 shlibpath_overrides_runpath=yes
15676 shlibpath_overrides_runpath=yes
15681 libname_spec='$name'
15684 library_names_spec='$libname${shared_ext} $libname.a'
15685 dynamic_linker='OS/2 ld.exe'
15686 shlibpath_var=LIBPATH
15689 osf3* | osf4* | osf5*)
15693 soname_spec='${libname}${release}${shared_ext}$major'
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695 shlibpath_var=LD_LIBRARY_PATH
15696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15697 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709 soname_spec='${libname}${release}${shared_ext}$major'
15710 shlibpath_var=LD_LIBRARY_PATH
15711 shlibpath_overrides_runpath=yes
15712 hardcode_into_libs=yes
15713 # ldd complains unless libraries are executable
15714 postinstall_cmds='chmod +x $lib'
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15720 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath=yes
15723 if test "$with_gnu_ld" = yes; then
15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732 soname_spec='${libname}${release}${shared_ext}$major'
15733 shlibpath_var=LD_LIBRARY_PATH
15734 case $host_vendor in
15736 shlibpath_overrides_runpath=no
15738 export_dynamic_flag_spec='${wl}-Blargedynsym'
15739 runpath_var=LD_RUN_PATH
15747 shlibpath_overrides_runpath=no
15748 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15754 if test -d /usr/nec ;then
15756 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15757 soname_spec='$libname${shared_ext}.$major'
15758 shlibpath_var=LD_LIBRARY_PATH
15762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15763 version_type=freebsd-elf
15766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15767 soname_spec='${libname}${release}${shared_ext}$major'
15768 shlibpath_var=LD_LIBRARY_PATH
15769 hardcode_into_libs=yes
15770 if test "$with_gnu_ld" = yes; then
15771 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15772 shlibpath_overrides_runpath=no
15774 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15775 shlibpath_overrides_runpath=yes
15778 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15782 sys_lib_dlsearch_path_spec='/usr/lib'
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec='${libname}${release}${shared_ext}$major'
15789 shlibpath_var=LD_LIBRARY_PATH
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15797 $as_echo "$dynamic_linker" >&6; }
15798 test "$dynamic_linker" = no && can_build_shared=no
15800 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15801 $as_echo_n "(cached) " >&6
15803 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15806 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15807 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15808 $as_echo_n "(cached) " >&6
15810 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15813 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15815 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15816 if test "$GCC" = yes; then
15817 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15821 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15822 hardcode_action_F77=
15823 if test -n "$hardcode_libdir_flag_spec_F77" || \
15824 test -n "$runpath_var_F77" || \
15825 test "X$hardcode_automatic_F77" = "Xyes" ; then
15827 # We can hardcode non-existant directories.
15828 if test "$hardcode_direct_F77" != no &&
15829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15830 # have to relink, otherwise we might link with an installed library
15831 # when we should be linking with a yet-to-be-installed one
15832 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15833 test "$hardcode_minus_L_F77" != no; then
15834 # Linking always hardcodes the temporary library directory.
15835 hardcode_action_F77=relink
15837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15838 hardcode_action_F77=immediate
15841 # We cannot hardcode anything, or else we can only hardcode existing
15843 hardcode_action_F77=unsupported
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15846 $as_echo "$hardcode_action_F77" >&6; }
15848 if test "$hardcode_action_F77" = relink; then
15849 # Fast installation is not supported
15850 enable_fast_install=no
15851 elif test "$shlibpath_overrides_runpath" = yes ||
15852 test "$enable_shared" = no; then
15853 # Fast installation is not necessary
15854 enable_fast_install=needless
15858 # The else clause should only fire when bootstrapping the
15859 # libtool distribution, otherwise you forgot to ship ltmain.sh
15860 # with your package, and you will get complaints that there are
15861 # no rules to generate ltmain.sh.
15862 if test -f "$ltmain"; then
15863 # See if we are running on zsh, and set the options which allow our commands through
15864 # without removal of \ escapes.
15865 if test -n "${ZSH_VERSION+set}" ; then
15866 setopt NO_GLOB_SUBST
15868 # Now quote all the things that may contain metacharacters while being
15869 # careful not to overquote the AC_SUBSTed values. We take copies of the
15870 # variables and quote the copies for generation of the libtool script.
15871 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15873 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15874 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15875 deplibs_check_method reload_flag reload_cmds need_locks \
15876 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15877 lt_cv_sys_global_symbol_to_c_name_address \
15878 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15879 old_postinstall_cmds old_postuninstall_cmds \
15883 lt_prog_compiler_wl_F77 \
15884 lt_prog_compiler_pic_F77 \
15885 lt_prog_compiler_static_F77 \
15886 lt_prog_compiler_no_builtin_flag_F77 \
15887 export_dynamic_flag_spec_F77 \
15888 thread_safe_flag_spec_F77 \
15889 whole_archive_flag_spec_F77 \
15890 enable_shared_with_static_runtimes_F77 \
15891 old_archive_cmds_F77 \
15892 old_archive_from_new_cmds_F77 \
15893 predep_objects_F77 \
15894 postdep_objects_F77 \
15897 compiler_lib_search_path_F77 \
15898 compiler_lib_search_dirs_F77 \
15900 archive_expsym_cmds_F77 \
15901 postinstall_cmds_F77 \
15902 postuninstall_cmds_F77 \
15903 old_archive_from_expsyms_cmds_F77 \
15904 allow_undefined_flag_F77 \
15905 no_undefined_flag_F77 \
15906 export_symbols_cmds_F77 \
15907 hardcode_libdir_flag_spec_F77 \
15908 hardcode_libdir_flag_spec_ld_F77 \
15909 hardcode_libdir_separator_F77 \
15910 hardcode_automatic_F77 \
15912 module_expsym_cmds_F77 \
15913 lt_cv_prog_compiler_c_o_F77 \
15914 fix_srcfile_path_F77 \
15915 exclude_expsyms_F77 \
15916 include_expsyms_F77; do
15919 old_archive_cmds_F77 | \
15920 old_archive_from_new_cmds_F77 | \
15921 archive_cmds_F77 | \
15922 archive_expsym_cmds_F77 | \
15923 module_cmds_F77 | \
15924 module_expsym_cmds_F77 | \
15925 old_archive_from_expsyms_cmds_F77 | \
15926 export_symbols_cmds_F77 | \
15927 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15928 postinstall_cmds | postuninstall_cmds | \
15929 old_postinstall_cmds | old_postuninstall_cmds | \
15930 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15931 # Double-quote double-evaled strings.
15932 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15935 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15941 *'\$0 --fallback-echo"')
15942 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15948 cat <<__EOF__ >> "$cfgfile"
15949 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15951 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15953 # Shell to use when invoking shell scripts.
15956 # Whether or not to build shared libraries.
15957 build_libtool_libs=$enable_shared
15959 # Whether or not to build static libraries.
15960 build_old_libs=$enable_static
15962 # Whether or not to add -lc for building shared libraries.
15963 build_libtool_need_lc=$archive_cmds_need_lc_F77
15965 # Whether or not to disallow shared libs when runtime libs are static
15966 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15968 # Whether or not to optimize for fast installation.
15969 fast_install=$enable_fast_install
15972 host_alias=$host_alias
15976 # The build system.
15977 build_alias=$build_alias
15981 # An echo program that does not interpret backslashes.
15986 AR_FLAGS=$lt_AR_FLAGS
15991 # LTCC compiler flags.
15992 LTCFLAGS=$lt_LTCFLAGS
15994 # A language-specific compiler.
15995 CC=$lt_compiler_F77
15997 # Is the compiler the GNU C compiler?
16003 # The linker used to build libraries.
16006 # Whether we need hard or soft links.
16009 # A BSD-compatible nm program.
16012 # A symbol stripping program
16015 # Used to examine libraries when file_magic_cmd begins "file"
16016 MAGIC_CMD=$MAGIC_CMD
16018 # Used on cygwin: DLL creation program.
16021 # Used on cygwin: object dumper.
16024 # Used on cygwin: assembler.
16027 # The name of the directory that contains temporary libtool files.
16030 # How to create reloadable object files.
16031 reload_flag=$lt_reload_flag
16032 reload_cmds=$lt_reload_cmds
16034 # How to pass a linker flag through the compiler.
16035 wl=$lt_lt_prog_compiler_wl_F77
16037 # Object file suffix (normally "o").
16038 objext="$ac_objext"
16040 # Old archive suffix (normally "a").
16043 # Shared library suffix (normally ".so").
16044 shrext_cmds='$shrext_cmds'
16046 # Executable file suffix (normally "").
16049 # Additional compiler flags for building library objects.
16050 pic_flag=$lt_lt_prog_compiler_pic_F77
16053 # What is the maximum length of a command?
16054 max_cmd_len=$lt_cv_sys_max_cmd_len
16056 # Does compiler simultaneously support -c and -o options?
16057 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16059 # Must we lock files when doing compilation?
16060 need_locks=$lt_need_locks
16062 # Do we need the lib prefix for modules?
16063 need_lib_prefix=$need_lib_prefix
16065 # Do we need a version for libraries?
16066 need_version=$need_version
16068 # Whether dlopen is supported.
16069 dlopen_support=$enable_dlopen
16071 # Whether dlopen of programs is supported.
16072 dlopen_self=$enable_dlopen_self
16074 # Whether dlopen of statically linked programs is supported.
16075 dlopen_self_static=$enable_dlopen_self_static
16077 # Compiler flag to prevent dynamic linking.
16078 link_static_flag=$lt_lt_prog_compiler_static_F77
16080 # Compiler flag to turn off builtin functions.
16081 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16083 # Compiler flag to allow reflexive dlopens.
16084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16086 # Compiler flag to generate shared objects directly from archives.
16087 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16089 # Compiler flag to generate thread-safe objects.
16090 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16092 # Library versioning type.
16093 version_type=$version_type
16095 # Format of library name prefix.
16096 libname_spec=$lt_libname_spec
16098 # List of archive names. First name is the real one, the rest are links.
16099 # The last name is the one that the linker finds with -lNAME.
16100 library_names_spec=$lt_library_names_spec
16102 # The coded name of the library, if different from the real name.
16103 soname_spec=$lt_soname_spec
16105 # Commands used to build and install an old-style archive.
16107 old_archive_cmds=$lt_old_archive_cmds_F77
16108 old_postinstall_cmds=$lt_old_postinstall_cmds
16109 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16111 # Create an old-style archive from a shared archive.
16112 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16114 # Create a temporary old-style archive to link instead of a shared archive.
16115 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16117 # Commands used to build and install a shared archive.
16118 archive_cmds=$lt_archive_cmds_F77
16119 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16120 postinstall_cmds=$lt_postinstall_cmds
16121 postuninstall_cmds=$lt_postuninstall_cmds
16123 # Commands used to build a loadable module (assumed same as above if empty)
16124 module_cmds=$lt_module_cmds_F77
16125 module_expsym_cmds=$lt_module_expsym_cmds_F77
16127 # Commands to strip libraries.
16128 old_striplib=$lt_old_striplib
16129 striplib=$lt_striplib
16131 # Dependencies to place before the objects being linked to create a
16133 predep_objects=$lt_predep_objects_F77
16135 # Dependencies to place after the objects being linked to create a
16137 postdep_objects=$lt_postdep_objects_F77
16139 # Dependencies to place before the objects being linked to create a
16141 predeps=$lt_predeps_F77
16143 # Dependencies to place after the objects being linked to create a
16145 postdeps=$lt_postdeps_F77
16147 # The directories searched by this compiler when creating a shared
16149 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16151 # The library search path used internally by the compiler when linking
16152 # a shared library.
16153 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16155 # Method to check whether dependent libraries are shared objects.
16156 deplibs_check_method=$lt_deplibs_check_method
16158 # Command to use when deplibs_check_method == file_magic.
16159 file_magic_cmd=$lt_file_magic_cmd
16161 # Flag that allows shared libraries with undefined symbols to be built.
16162 allow_undefined_flag=$lt_allow_undefined_flag_F77
16164 # Flag that forces no undefined symbols.
16165 no_undefined_flag=$lt_no_undefined_flag_F77
16167 # Commands used to finish a libtool library installation in a directory.
16168 finish_cmds=$lt_finish_cmds
16170 # Same as above, but a single script fragment to be evaled but not shown.
16171 finish_eval=$lt_finish_eval
16173 # Take the output of nm and produce a listing of raw symbols and C names.
16174 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16176 # Transform the output of nm in a proper C declaration
16177 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16179 # Transform the output of nm in a C name address pair
16180 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16182 # This is the shared library runtime path variable.
16183 runpath_var=$runpath_var
16185 # This is the shared library path variable.
16186 shlibpath_var=$shlibpath_var
16188 # Is shlibpath searched before the hard-coded library search path?
16189 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16191 # How to hardcode a shared library path into an executable.
16192 hardcode_action=$hardcode_action_F77
16194 # Whether we should hardcode library paths into libraries.
16195 hardcode_into_libs=$hardcode_into_libs
16197 # Flag to hardcode \$libdir into a binary during linking.
16198 # This must work even if \$libdir does not exist.
16199 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16201 # If ld is used when linking, flag to hardcode \$libdir into
16202 # a binary during linking. This must work even if \$libdir does
16204 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16206 # Whether we need a single -rpath flag with a separated argument.
16207 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16209 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16210 # resulting binary.
16211 hardcode_direct=$hardcode_direct_F77
16213 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16214 # resulting binary.
16215 hardcode_minus_L=$hardcode_minus_L_F77
16217 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16218 # the resulting binary.
16219 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16221 # Set to yes if building a shared library automatically hardcodes DIR into the library
16222 # and all subsequent libraries and executables linked against it.
16223 hardcode_automatic=$hardcode_automatic_F77
16225 # Variables whose values should be saved in libtool wrapper scripts and
16226 # restored at relink time.
16227 variables_saved_for_relink="$variables_saved_for_relink"
16229 # Whether libtool must link a program against all its dependency libraries.
16230 link_all_deplibs=$link_all_deplibs_F77
16232 # Compile-time system search path for libraries
16233 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16235 # Run-time system search path for libraries
16236 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16238 # Fix the shell variable \$srcfile for the compiler.
16239 fix_srcfile_path=$lt_fix_srcfile_path
16241 # Set to yes if exported symbols are required.
16242 always_export_symbols=$always_export_symbols_F77
16244 # The commands to list exported symbols.
16245 export_symbols_cmds=$lt_export_symbols_cmds_F77
16247 # The commands to extract the exported symbol list from a shared archive.
16248 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16250 # Symbols that should not be listed in the preloaded symbols.
16251 exclude_expsyms=$lt_exclude_expsyms_F77
16253 # Symbols that must always be exported.
16254 include_expsyms=$lt_include_expsyms_F77
16256 # ### END LIBTOOL TAG CONFIG: $tagname
16262 # If there is no Makefile yet, we rely on a make rule to execute
16263 # `config.status --recheck' to rerun these tests and create the
16264 # libtool script then.
16265 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16266 if test -f "$ltmain_in"; then
16267 test -f Makefile && make "$ltmain"
16273 ac_cpp='$CPP $CPPFLAGS'
16274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16286 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16289 # Source file extension for Java test sources.
16292 # Object file extension for compiled Java test sources.
16296 # Code to be used in simple compile tests
16297 lt_simple_compile_test_code="class foo {}"
16299 # Code to be used in simple link tests
16300 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16302 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16304 # If no C compiler was specified, use CC.
16307 # If no C compiler flags were specified, use CFLAGS.
16308 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16310 # Allow CC to be a program name with arguments.
16314 # save warnings/boilerplate of simple test code
16315 ac_outfile=conftest.$ac_objext
16316 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16317 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16318 _lt_compiler_boilerplate=`cat conftest.err`
16321 ac_outfile=conftest.$ac_objext
16322 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16323 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16324 _lt_linker_boilerplate=`cat conftest.err`
16328 # Allow CC to be a program name with arguments.
16333 for cc_temp in $compiler""; do
16335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16341 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16344 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16345 archive_cmds_need_lc_GCJ=no
16347 old_archive_cmds_GCJ=$old_archive_cmds
16350 lt_prog_compiler_no_builtin_flag_GCJ=
16352 if test "$GCC" = yes; then
16353 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16357 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16358 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16359 $as_echo_n "(cached) " >&6
16361 lt_cv_prog_compiler_rtti_exceptions=no
16362 ac_outfile=conftest.$ac_objext
16363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16364 lt_compiler_flag="-fno-rtti -fno-exceptions"
16365 # Insert the option either (1) after the last *FLAGS variable, or
16366 # (2) before a word containing "conftest.", or (3) at the end.
16367 # Note that $ac_compile itself does not contain backslashes and begins
16368 # with a dollar sign (not a hyphen), so the echo should work correctly.
16369 # The option is referenced via a variable to avoid confusing sed.
16370 lt_compile=`echo "$ac_compile" | $SED \
16371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16373 -e 's:$: $lt_compiler_flag:'`
16374 (eval echo "\"\$as_me:16374: $lt_compile\"" >&5)
16375 (eval "$lt_compile" 2>conftest.err)
16377 cat conftest.err >&5
16378 echo "$as_me:16378: \$? = $ac_status" >&5
16379 if (exit $ac_status) && test -s "$ac_outfile"; then
16380 # The compiler can only warn and ignore the option if not recognized
16381 # So say no if there are warnings other than the usual output.
16382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16385 lt_cv_prog_compiler_rtti_exceptions=yes
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16392 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16394 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16395 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16402 lt_prog_compiler_wl_GCJ=
16403 lt_prog_compiler_pic_GCJ=
16404 lt_prog_compiler_static_GCJ=
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16407 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16409 if test "$GCC" = yes; then
16410 lt_prog_compiler_wl_GCJ='-Wl,'
16411 lt_prog_compiler_static_GCJ='-static'
16415 # All AIX code is PIC.
16416 if test "$host_cpu" = ia64; then
16417 # AIX 5 now supports IA64 processor
16418 lt_prog_compiler_static_GCJ='-Bstatic'
16423 # FIXME: we need at least 68020 code to build shared libraries, but
16424 # adding the `-m68020' flag to GCC prevents building anything better,
16426 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16429 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16430 # PIC is the default for these OSes.
16433 mingw* | cygwin* | pw32* | os2*)
16434 # This hack is so that the source file can tell whether it is being
16435 # built for inclusion in a dll (and should export symbols for example).
16436 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16437 # (--disable-auto-import) libraries
16441 darwin* | rhapsody*)
16442 # PIC is the default on this platform
16443 # Common symbols not allowed in MH_DYLIB files
16444 lt_prog_compiler_pic_GCJ='-fno-common'
16448 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16449 # Instead, we relocate shared libraries at runtime.
16453 # Just because we use GCC doesn't mean we suddenly get shared libraries
16454 # on systems that don't support them.
16455 lt_prog_compiler_can_build_shared_GCJ=no
16460 if test -d /usr/nec; then
16461 lt_prog_compiler_pic_GCJ=-Kconform_pic
16466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16467 # not for PA HP-UX.
16473 lt_prog_compiler_pic_GCJ='-fPIC'
16479 lt_prog_compiler_pic_GCJ='-fPIC'
16483 # PORTME Check for flag to pass linker flags through the system compiler.
16486 lt_prog_compiler_wl_GCJ='-Wl,'
16487 if test "$host_cpu" = ia64; then
16488 # AIX 5 now supports IA64 processor
16489 lt_prog_compiler_static_GCJ='-Bstatic'
16491 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16495 # PIC is the default on this platform
16496 # Common symbols not allowed in MH_DYLIB files
16497 case $cc_basename in
16499 lt_prog_compiler_pic_GCJ='-qnocommon'
16500 lt_prog_compiler_wl_GCJ='-Wl,'
16505 mingw* | cygwin* | pw32* | os2*)
16506 # This hack is so that the source file can tell whether it is being
16507 # built for inclusion in a dll (and should export symbols for example).
16511 hpux9* | hpux10* | hpux11*)
16512 lt_prog_compiler_wl_GCJ='-Wl,'
16513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16514 # not for PA HP-UX.
16520 lt_prog_compiler_pic_GCJ='+Z'
16523 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16524 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16527 irix5* | irix6* | nonstopux*)
16528 lt_prog_compiler_wl_GCJ='-Wl,'
16529 # PIC (with -KPIC) is the default.
16530 lt_prog_compiler_static_GCJ='-non_shared'
16534 lt_prog_compiler_pic_GCJ='-KPIC'
16535 lt_prog_compiler_static_GCJ='-Bstatic'
16538 linux* | k*bsd*-gnu)
16539 case $cc_basename in
16541 lt_prog_compiler_wl_GCJ='-Wl,'
16542 lt_prog_compiler_pic_GCJ='-KPIC'
16543 lt_prog_compiler_static_GCJ='-static'
16545 pgcc* | pgf77* | pgf90* | pgf95*)
16546 # Portland Group compilers (*not* the Pentium gcc compiler,
16547 # which looks to be a dead project)
16548 lt_prog_compiler_wl_GCJ='-Wl,'
16549 lt_prog_compiler_pic_GCJ='-fpic'
16550 lt_prog_compiler_static_GCJ='-Bstatic'
16553 lt_prog_compiler_wl_GCJ='-Wl,'
16554 # All Alpha code is PIC.
16555 lt_prog_compiler_static_GCJ='-non_shared'
16558 case `$CC -V 2>&1 | sed 5q` in
16561 lt_prog_compiler_pic_GCJ='-KPIC'
16562 lt_prog_compiler_static_GCJ='-Bstatic'
16563 lt_prog_compiler_wl_GCJ='-Wl,'
16566 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16567 lt_prog_compiler_pic_GCJ='-KPIC'
16568 lt_prog_compiler_static_GCJ='-Bstatic'
16569 lt_prog_compiler_wl_GCJ=''
16576 osf3* | osf4* | osf5*)
16577 lt_prog_compiler_wl_GCJ='-Wl,'
16578 # All OSF/1 code is PIC.
16579 lt_prog_compiler_static_GCJ='-non_shared'
16583 lt_prog_compiler_static_GCJ='-non_shared'
16587 lt_prog_compiler_pic_GCJ='-KPIC'
16588 lt_prog_compiler_static_GCJ='-Bstatic'
16589 case $cc_basename in
16590 f77* | f90* | f95*)
16591 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16593 lt_prog_compiler_wl_GCJ='-Wl,';;
16598 lt_prog_compiler_wl_GCJ='-Qoption ld '
16599 lt_prog_compiler_pic_GCJ='-PIC'
16600 lt_prog_compiler_static_GCJ='-Bstatic'
16603 sysv4 | sysv4.2uw2* | sysv4.3*)
16604 lt_prog_compiler_wl_GCJ='-Wl,'
16605 lt_prog_compiler_pic_GCJ='-KPIC'
16606 lt_prog_compiler_static_GCJ='-Bstatic'
16610 if test -d /usr/nec ;then
16611 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16612 lt_prog_compiler_static_GCJ='-Bstatic'
16616 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16617 lt_prog_compiler_wl_GCJ='-Wl,'
16618 lt_prog_compiler_pic_GCJ='-KPIC'
16619 lt_prog_compiler_static_GCJ='-Bstatic'
16623 lt_prog_compiler_wl_GCJ='-Wl,'
16624 lt_prog_compiler_can_build_shared_GCJ=no
16628 lt_prog_compiler_pic_GCJ='-pic'
16629 lt_prog_compiler_static_GCJ='-Bstatic'
16633 lt_prog_compiler_can_build_shared_GCJ=no
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16639 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16642 # Check to make sure the PIC flag actually works.
16644 if test -n "$lt_prog_compiler_pic_GCJ"; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16647 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16648 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16649 $as_echo_n "(cached) " >&6
16651 lt_cv_prog_compiler_pic_works_GCJ=no
16652 ac_outfile=conftest.$ac_objext
16653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16654 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16655 # Insert the option either (1) after the last *FLAGS variable, or
16656 # (2) before a word containing "conftest.", or (3) at the end.
16657 # Note that $ac_compile itself does not contain backslashes and begins
16658 # with a dollar sign (not a hyphen), so the echo should work correctly.
16659 # The option is referenced via a variable to avoid confusing sed.
16660 lt_compile=`echo "$ac_compile" | $SED \
16661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16663 -e 's:$: $lt_compiler_flag:'`
16664 (eval echo "\"\$as_me:16664: $lt_compile\"" >&5)
16665 (eval "$lt_compile" 2>conftest.err)
16667 cat conftest.err >&5
16668 echo "$as_me:16668: \$? = $ac_status" >&5
16669 if (exit $ac_status) && test -s "$ac_outfile"; then
16670 # The compiler can only warn and ignore the option if not recognized
16671 # So say no if there are warnings other than the usual output.
16672 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16675 lt_cv_prog_compiler_pic_works_GCJ=yes
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16682 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16684 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16685 case $lt_prog_compiler_pic_GCJ in
16687 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16690 lt_prog_compiler_pic_GCJ=
16691 lt_prog_compiler_can_build_shared_GCJ=no
16696 # For platforms which do not support PIC, -DPIC is meaningless:
16698 lt_prog_compiler_pic_GCJ=
16701 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16706 # Check to make sure the static flag actually works.
16708 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16710 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16711 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16712 $as_echo_n "(cached) " >&6
16714 lt_cv_prog_compiler_static_works_GCJ=no
16715 save_LDFLAGS="$LDFLAGS"
16716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16719 # The linker can only warn and ignore the option if not recognized
16720 # So say no if there are warnings
16721 if test -s conftest.err; then
16722 # Append any errors to the config.log.
16723 cat conftest.err 1>&5
16724 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16726 if diff conftest.exp conftest.er2 >/dev/null; then
16727 lt_cv_prog_compiler_static_works_GCJ=yes
16730 lt_cv_prog_compiler_static_works_GCJ=yes
16734 LDFLAGS="$save_LDFLAGS"
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16738 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16740 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16743 lt_prog_compiler_static_GCJ=
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16748 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16749 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16750 $as_echo_n "(cached) " >&6
16752 lt_cv_prog_compiler_c_o_GCJ=no
16753 $rm -r conftest 2>/dev/null
16757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16759 lt_compiler_flag="-o out/conftest2.$ac_objext"
16760 # Insert the option either (1) after the last *FLAGS variable, or
16761 # (2) before a word containing "conftest.", or (3) at the end.
16762 # Note that $ac_compile itself does not contain backslashes and begins
16763 # with a dollar sign (not a hyphen), so the echo should work correctly.
16764 lt_compile=`echo "$ac_compile" | $SED \
16765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16767 -e 's:$: $lt_compiler_flag:'`
16768 (eval echo "\"\$as_me:16768: $lt_compile\"" >&5)
16769 (eval "$lt_compile" 2>out/conftest.err)
16771 cat out/conftest.err >&5
16772 echo "$as_me:16772: \$? = $ac_status" >&5
16773 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16775 # The compiler can only warn and ignore the option if not recognized
16776 # So say no if there are warnings
16777 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16780 lt_cv_prog_compiler_c_o_GCJ=yes
16785 # SGI C++ compiler will create directory out/ii_files/ for
16786 # template instantiation
16787 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16788 $rm out/* && rmdir out
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16795 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16798 hard_links="nottested"
16799 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16800 # do not overwrite the value of need_locks provided by the user
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16802 $as_echo_n "checking if we can lock with hard links... " >&6; }
16805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16807 ln conftest.a conftest.b 2>&5 || hard_links=no
16808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16810 $as_echo "$hard_links" >&6; }
16811 if test "$hard_links" = no; then
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16813 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16821 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16824 allow_undefined_flag_GCJ=
16825 enable_shared_with_static_runtimes_GCJ=no
16827 archive_expsym_cmds_GCJ=
16828 old_archive_From_new_cmds_GCJ=
16829 old_archive_from_expsyms_cmds_GCJ=
16830 export_dynamic_flag_spec_GCJ=
16831 whole_archive_flag_spec_GCJ=
16832 thread_safe_flag_spec_GCJ=
16833 hardcode_libdir_flag_spec_GCJ=
16834 hardcode_libdir_flag_spec_ld_GCJ=
16835 hardcode_libdir_separator_GCJ=
16836 hardcode_direct_GCJ=no
16837 hardcode_minus_L_GCJ=no
16838 hardcode_shlibpath_var_GCJ=unsupported
16839 link_all_deplibs_GCJ=unknown
16840 hardcode_automatic_GCJ=no
16842 module_expsym_cmds_GCJ=
16843 always_export_symbols_GCJ=no
16844 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16845 # include_expsyms should be a list of space-separated symbols to be *always*
16846 # included in the symbol list
16847 include_expsyms_GCJ=
16848 # exclude_expsyms can be an extended regexp of symbols to exclude
16849 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16850 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16851 # as well as any symbol that contains `d'.
16852 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16853 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16854 # platforms (ab)use it in PIC code, but their linkers get confused if
16855 # the symbol is explicitly referenced. Since portable code cannot
16856 # rely on this symbol name, it's probably fine to never include it in
16857 # preloaded symbol tables.
16858 # Exclude shared library initialization/finalization symbols.
16859 extract_expsyms_cmds=
16860 # Just being paranoid about ensuring that cc_basename is set.
16861 for cc_temp in $compiler""; do
16863 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16864 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16869 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16872 cygwin* | mingw* | pw32*)
16873 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16874 # When not using gcc, we currently assume that we are using
16875 # Microsoft Visual C++.
16876 if test "$GCC" != yes; then
16881 # we just hope/assume this is gcc and not c89 (= MSVC++)
16890 if test "$with_gnu_ld" = yes; then
16891 # If archive_cmds runs LD, not CC, wlarc should be empty
16894 # Set some defaults for GNU ld with shared library support. These
16895 # are reset later if shared libraries are not supported. Putting them
16896 # here allows them to be overridden if necessary.
16897 runpath_var=LD_RUN_PATH
16898 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16899 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16900 # ancient GNU ld didn't support --whole-archive et. al.
16901 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16902 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16904 whole_archive_flag_spec_GCJ=
16906 supports_anon_versioning=no
16907 case `$LD -v 2>/dev/null` in
16908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16911 *\ 2.11.*) ;; # other 2.11 versions
16912 *) supports_anon_versioning=yes ;;
16915 # See if GNU ld supports shared libraries.
16918 # On AIX/PPC, the GNU linker is very broken
16919 if test "$host_cpu" != ia64; then
16923 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16924 *** to be unable to reliably create shared libraries on AIX.
16925 *** Therefore, libtool is disabling shared libraries support. If you
16926 *** really care for shared libraries, you may want to modify your PATH
16927 *** so that a non-GNU linker is found, and then restart.
16934 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)'
16935 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16936 hardcode_minus_L_GCJ=yes
16938 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16939 # that the semantics of dynamic libraries on AmigaOS, at least up
16940 # to version 4, is to share data among multiple programs linked
16941 # with the same dynamic library. Since this doesn't match the
16942 # behavior of shared libraries on other platforms, we can't use
16948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16949 allow_undefined_flag_GCJ=unsupported
16950 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16951 # support --undefined. This deserves some investigation. FIXME
16952 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16958 cygwin* | mingw* | pw32*)
16959 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16960 # as there is no search path for DLLs.
16961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16962 allow_undefined_flag_GCJ=unsupported
16963 always_export_symbols_GCJ=no
16964 enable_shared_with_static_runtimes_GCJ=yes
16965 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16967 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16968 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16969 # If the export-symbols file already is a .def file (1st line
16970 # is EXPORTS), use it as is; otherwise, prepend...
16971 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16972 cp $export_symbols $output_objdir/$soname.def;
16974 echo EXPORTS > $output_objdir/$soname.def;
16975 cat $export_symbols >> $output_objdir/$soname.def;
16977 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16984 hardcode_direct_GCJ=no
16985 hardcode_shlibpath_var_GCJ=no
16986 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16987 export_dynamic_flag_spec_GCJ='${wl}-E'
16988 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16989 # Instead, shared libraries are loaded at an image base (0x10000000 by
16990 # default) and relocated if they conflict, which is a slow very memory
16991 # consuming and fragmenting process. To avoid this, we pick a random,
16992 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16993 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16994 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'
16995 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'
16998 gnu* | linux* | k*bsd*-gnu)
16999 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17001 case $cc_basename,$host_cpu in
17002 pgcc*) # Portland Group C compiler
17003 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'
17004 tmp_addflag=' $pic_flag'
17006 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17007 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17008 tmp_addflag=' $pic_flag -Mnomain' ;;
17009 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17010 tmp_addflag=' -i_dynamic' ;;
17011 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17012 tmp_addflag=' -i_dynamic -nofor_main' ;;
17013 ifc* | ifort*) # Intel Fortran compiler
17014 tmp_addflag=' -nofor_main' ;;
17016 case `$CC -V 2>&1 | sed 5q` in
17017 *Sun\ C*) # Sun C 5.9
17018 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'
17019 tmp_sharedflag='-G' ;;
17020 *Sun\ F*) # Sun Fortran 8.3
17021 tmp_sharedflag='-G' ;;
17023 tmp_sharedflag='-shared' ;;
17025 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17027 if test $supports_anon_versioning = yes; then
17028 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17030 $echo "local: *; };" >> $output_objdir/$libname.ver~
17031 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17033 link_all_deplibs_GCJ=no
17039 netbsd* | netbsdelf*-gnu)
17040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17041 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17044 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17045 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17050 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17055 *** create shared libraries on Solaris systems. Therefore, libtool
17056 *** is disabling shared libraries support. We urge you to upgrade GNU
17057 *** binutils to release 2.9.1 or newer. Another option is to modify
17058 *** your PATH or compiler configuration so that the native linker is
17059 *** used, and then restart.
17062 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17063 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17064 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17071 case `$LD -v 2>&1` in
17072 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17076 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17077 *** reliably create shared libraries on SCO systems. Therefore, libtool
17078 *** is disabling shared libraries support. We urge you to upgrade GNU
17079 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17080 *** your PATH or compiler configuration so that the native linker is
17081 *** used, and then restart.
17086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17087 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17088 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17089 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17098 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17100 hardcode_direct_GCJ=yes
17101 hardcode_shlibpath_var_GCJ=no
17105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17106 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17107 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17114 if test "$ld_shlibs_GCJ" = no; then
17116 hardcode_libdir_flag_spec_GCJ=
17117 export_dynamic_flag_spec_GCJ=
17118 whole_archive_flag_spec_GCJ=
17121 # PORTME fill in a description of your system's linker (not GNU ld)
17124 allow_undefined_flag_GCJ=unsupported
17125 always_export_symbols_GCJ=yes
17126 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'
17127 # Note: this linker hardcodes the directories in LIBPATH if there
17128 # are no directories specified by -L.
17129 hardcode_minus_L_GCJ=yes
17130 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17131 # Neither direct hardcoding nor static linking is supported with a
17133 hardcode_direct_GCJ=unsupported
17138 if test "$host_cpu" = ia64; then
17139 # On IA64, the linker does run time linking by default, so we don't
17140 # have to do anything special.
17141 aix_use_runtimelinking=no
17142 exp_sym_flag='-Bexport'
17145 # If we're using GNU nm, then we don't want the "-C" option.
17146 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17147 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17148 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'
17150 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'
17152 aix_use_runtimelinking=no
17154 # Test if we are trying to use run time linking or normal
17155 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17156 # need to do runtime linking.
17157 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17158 for ld_flag in $LDFLAGS; do
17159 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17160 aix_use_runtimelinking=yes
17167 exp_sym_flag='-bexport'
17168 no_entry_flag='-bnoentry'
17171 # When large executables or shared objects are built, AIX ld can
17172 # have problems creating the table of contents. If linking a library
17173 # or program results in "error TOC overflow" add -mminimal-toc to
17174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17177 archive_cmds_GCJ=''
17178 hardcode_direct_GCJ=yes
17179 hardcode_libdir_separator_GCJ=':'
17180 link_all_deplibs_GCJ=yes
17182 if test "$GCC" = yes; then
17183 case $host_os in aix4.[012]|aix4.[012].*)
17184 # We only want to do this on AIX 4.2 and lower, the check
17185 # below for broken collect2 doesn't work under 4.3+
17186 collect2name=`${CC} -print-prog-name=collect2`
17187 if test -f "$collect2name" && \
17188 strings "$collect2name" | grep resolve_lib_name >/dev/null
17190 # We have reworked collect2
17193 # We have old collect2
17194 hardcode_direct_GCJ=unsupported
17195 # It fails to find uninstalled libraries when the uninstalled
17196 # path is not listed in the libpath. Setting hardcode_minus_L
17197 # to unsupported forces relinking
17198 hardcode_minus_L_GCJ=yes
17199 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17200 hardcode_libdir_separator_GCJ=
17204 shared_flag='-shared'
17205 if test "$aix_use_runtimelinking" = yes; then
17206 shared_flag="$shared_flag "'${wl}-G'
17210 if test "$host_cpu" = ia64; then
17211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17212 # chokes on -Wl,-G. The following line is correct:
17215 if test "$aix_use_runtimelinking" = yes; then
17216 shared_flag='${wl}-G'
17218 shared_flag='${wl}-bM:SRE'
17223 # It seems that -bexpall does not export symbols beginning with
17224 # underscore (_), so it is better to generate a list of symbols to export.
17225 always_export_symbols_GCJ=yes
17226 if test "$aix_use_runtimelinking" = yes; then
17227 # Warning - without using the other runtime loading flags (-brtl),
17228 # -berok will link without error, but may produce a broken library.
17229 allow_undefined_flag_GCJ='-berok'
17230 # Determine the default libpath from the value encoded in an empty executable.
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17242 if ac_fn_c_try_link "$LINENO"; then :
17244 lt_aix_libpath_sed='
17245 /Import File Strings/,/^$/ {
17251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17252 # Check for a 64-bit object if we didn't find anything.
17253 if test -z "$aix_libpath"; then
17254 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17257 rm -f core conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17261 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17262 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"
17264 if test "$host_cpu" = ia64; then
17265 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17266 allow_undefined_flag_GCJ="-z nodefs"
17267 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"
17269 # Determine the default libpath from the value encoded in an empty executable.
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17281 if ac_fn_c_try_link "$LINENO"; then :
17283 lt_aix_libpath_sed='
17284 /Import File Strings/,/^$/ {
17290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17291 # Check for a 64-bit object if we didn't find anything.
17292 if test -z "$aix_libpath"; then
17293 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17296 rm -f core conftest.err conftest.$ac_objext \
17297 conftest$ac_exeext conftest.$ac_ext
17298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17300 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17301 # Warning - without using the other run time loading flags,
17302 # -berok will link without error, but may produce a broken library.
17303 no_undefined_flag_GCJ=' ${wl}-bernotok'
17304 allow_undefined_flag_GCJ=' ${wl}-berok'
17305 # Exported symbols can be pulled into shared objects from archives
17306 whole_archive_flag_spec_GCJ='$convenience'
17307 archive_cmds_need_lc_GCJ=yes
17308 # This is similar to how AIX traditionally builds its shared libraries.
17309 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'
17315 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)'
17316 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17317 hardcode_minus_L_GCJ=yes
17318 # see comment about different semantics on the GNU ld section
17323 export_dynamic_flag_spec_GCJ=-rdynamic
17326 cygwin* | mingw* | pw32*)
17327 # When not using gcc, we currently assume that we are using
17328 # Microsoft Visual C++.
17329 # hardcode_libdir_flag_spec is actually meaningless, as there is
17330 # no search path for DLLs.
17331 hardcode_libdir_flag_spec_GCJ=' '
17332 allow_undefined_flag_GCJ=unsupported
17333 # Tell ltmain to make .lib files, not .a files.
17335 # Tell ltmain to make .dll files, not .so files.
17337 # FIXME: Setting linknames here is a bad hack.
17338 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17339 # The linker will automatically build a .lib file if we build a DLL.
17340 old_archive_From_new_cmds_GCJ='true'
17341 # FIXME: Should let the user specify the lib program.
17342 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17343 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17344 enable_shared_with_static_runtimes_GCJ=yes
17347 darwin* | rhapsody*)
17349 rhapsody* | darwin1.[012])
17350 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17353 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17354 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17356 case ${MACOSX_DEPLOYMENT_TARGET} in
17358 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17361 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17367 archive_cmds_need_lc_GCJ=no
17368 hardcode_direct_GCJ=no
17369 hardcode_automatic_GCJ=yes
17370 hardcode_shlibpath_var_GCJ=unsupported
17371 whole_archive_flag_spec_GCJ=''
17372 link_all_deplibs_GCJ=yes
17373 if test "$GCC" = yes ; then
17374 output_verbose_link_cmd='echo'
17375 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}"
17376 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17377 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}"
17378 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}"
17380 case $cc_basename in
17382 output_verbose_link_cmd='echo'
17383 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17384 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17385 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17386 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}'
17387 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}'
17397 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17398 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17399 hardcode_shlibpath_var_GCJ=no
17406 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17407 # support. Future versions do this automatically, but an explicit c++rt0.o
17408 # does not break anything, and helps significantly (at the cost of a little
17411 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17412 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17413 hardcode_direct_GCJ=yes
17414 hardcode_shlibpath_var_GCJ=no
17417 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17419 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17420 hardcode_direct_GCJ=yes
17421 hardcode_minus_L_GCJ=yes
17422 hardcode_shlibpath_var_GCJ=no
17425 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17426 freebsd* | dragonfly*)
17427 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17428 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17429 hardcode_direct_GCJ=yes
17430 hardcode_shlibpath_var_GCJ=no
17434 if test "$GCC" = yes; then
17435 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'
17437 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'
17439 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17440 hardcode_libdir_separator_GCJ=:
17441 hardcode_direct_GCJ=yes
17443 # hardcode_minus_L: Not really in the search PATH,
17444 # but as the default location of the library.
17445 hardcode_minus_L_GCJ=yes
17446 export_dynamic_flag_spec_GCJ='${wl}-E'
17450 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17451 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17453 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17455 if test "$with_gnu_ld" = no; then
17456 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17457 hardcode_libdir_separator_GCJ=:
17459 hardcode_direct_GCJ=yes
17460 export_dynamic_flag_spec_GCJ='${wl}-E'
17462 # hardcode_minus_L: Not really in the search PATH,
17463 # but as the default location of the library.
17464 hardcode_minus_L_GCJ=yes
17469 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17472 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17475 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17478 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17484 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17487 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17490 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17494 if test "$with_gnu_ld" = no; then
17495 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17496 hardcode_libdir_separator_GCJ=:
17500 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17501 hardcode_direct_GCJ=no
17502 hardcode_shlibpath_var_GCJ=no
17505 hardcode_direct_GCJ=yes
17506 export_dynamic_flag_spec_GCJ='${wl}-E'
17508 # hardcode_minus_L: Not really in the search PATH,
17509 # but as the default location of the library.
17510 hardcode_minus_L_GCJ=yes
17516 irix5* | irix6* | nonstopux*)
17517 if test "$GCC" = yes; then
17518 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'
17520 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'
17521 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17523 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17524 hardcode_libdir_separator_GCJ=:
17525 link_all_deplibs_GCJ=yes
17528 netbsd* | netbsdelf*-gnu)
17529 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17530 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17532 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17534 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17535 hardcode_direct_GCJ=yes
17536 hardcode_shlibpath_var_GCJ=no
17540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17541 hardcode_direct_GCJ=yes
17542 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17543 hardcode_libdir_separator_GCJ=:
17544 hardcode_shlibpath_var_GCJ=no
17548 if test -f /usr/libexec/ld.so; then
17549 hardcode_direct_GCJ=yes
17550 hardcode_shlibpath_var_GCJ=no
17551 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17552 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17553 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17554 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17555 export_dynamic_flag_spec_GCJ='${wl}-E'
17558 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17559 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17560 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17563 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17564 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17575 hardcode_minus_L_GCJ=yes
17576 allow_undefined_flag_GCJ=unsupported
17577 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'
17578 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17582 if test "$GCC" = yes; then
17583 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17584 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'
17586 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17587 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'
17589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17590 hardcode_libdir_separator_GCJ=:
17593 osf4* | osf5*) # as osf3* with the addition of -msym flag
17594 if test "$GCC" = yes; then
17595 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17596 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'
17597 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17599 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17600 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'
17601 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~
17602 $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'
17604 # Both c and cxx compiler support -rpath directly
17605 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17607 hardcode_libdir_separator_GCJ=:
17611 no_undefined_flag_GCJ=' -z text'
17612 if test "$GCC" = yes; then
17614 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17615 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17616 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17619 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17623 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17624 hardcode_shlibpath_var_GCJ=no
17626 solaris2.[0-5] | solaris2.[0-5].*) ;;
17628 # The compiler driver will combine and reorder linker options,
17629 # but understands `-z linker_flag'. GCC discards it without `$wl',
17630 # but is careful enough not to reorder.
17631 # Supported since Solaris 2.6 (maybe 2.5.1?)
17632 if test "$GCC" = yes; then
17633 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17635 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17639 link_all_deplibs_GCJ=yes
17643 if test "x$host_vendor" = xsequent; then
17644 # Use $CC to link under sequent, because it throws in some extra .o
17645 # files that make .init and .fini sections work.
17646 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17648 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17650 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17651 hardcode_direct_GCJ=yes
17652 hardcode_minus_L_GCJ=yes
17653 hardcode_shlibpath_var_GCJ=no
17657 case $host_vendor in
17659 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17660 hardcode_direct_GCJ=yes # is this really true???
17663 ## LD is ld it makes a PLAMLIB
17664 ## CC just makes a GrossModule.
17665 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17666 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17667 hardcode_direct_GCJ=no
17670 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17671 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17674 runpath_var='LD_RUN_PATH'
17675 hardcode_shlibpath_var_GCJ=no
17679 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17680 hardcode_shlibpath_var_GCJ=no
17681 export_dynamic_flag_spec_GCJ='-Bexport'
17685 if test -d /usr/nec; then
17686 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17687 hardcode_shlibpath_var_GCJ=no
17688 runpath_var=LD_RUN_PATH
17689 hardcode_runpath_var=yes
17694 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17695 no_undefined_flag_GCJ='${wl}-z,text'
17696 archive_cmds_need_lc_GCJ=no
17697 hardcode_shlibpath_var_GCJ=no
17698 runpath_var='LD_RUN_PATH'
17700 if test "$GCC" = yes; then
17701 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17702 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17704 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17705 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17709 sysv5* | sco3.2v5* | sco5v6*)
17710 # Note: We can NOT use -z defs as we might desire, because we do not
17711 # link with -lc, and that would cause any symbols used from libc to
17712 # always be unresolved, which means just about no library would
17713 # ever link correctly. If we're not using GNU ld we use -z text
17714 # though, which does catch some bad symbols but isn't as heavy-handed
17716 no_undefined_flag_GCJ='${wl}-z,text'
17717 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17718 archive_cmds_need_lc_GCJ=no
17719 hardcode_shlibpath_var_GCJ=no
17720 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17721 hardcode_libdir_separator_GCJ=':'
17722 link_all_deplibs_GCJ=yes
17723 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17724 runpath_var='LD_RUN_PATH'
17726 if test "$GCC" = yes; then
17727 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17728 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17730 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17731 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17736 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17737 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17738 hardcode_shlibpath_var_GCJ=no
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17748 $as_echo "$ld_shlibs_GCJ" >&6; }
17749 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17752 # Do we need to explicitly link libc?
17754 case "x$archive_cmds_need_lc_GCJ" in
17756 # Assume -lc should be added
17757 archive_cmds_need_lc_GCJ=yes
17759 if test "$enable_shared" = yes && test "$GCC" = yes; then
17760 case $archive_cmds_GCJ in
17762 # FIXME: we may have to deal with multi-command sequences.
17765 # Test whether the compiler implicitly links with -lc since on some
17766 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17767 # to ld, don't add -lc before -lgcc.
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17769 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17774 (eval $ac_compile) 2>&5
17776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17777 test $ac_status = 0; } 2>conftest.err; then
17780 libobjs=conftest.$ac_objext
17782 wl=$lt_prog_compiler_wl_GCJ
17783 pic_flag=$lt_prog_compiler_pic_GCJ
17789 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17790 allow_undefined_flag_GCJ=
17791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17792 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17795 test $ac_status = 0; }
17797 archive_cmds_need_lc_GCJ=no
17799 archive_cmds_need_lc_GCJ=yes
17801 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17803 cat conftest.err 1>&5
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17807 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17815 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17816 library_names_spec=
17817 libname_spec='lib$name'
17821 postuninstall_cmds=
17825 shlibpath_overrides_runpath=unknown
17827 dynamic_linker="$host_os ld.so"
17828 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17830 need_lib_prefix=unknown
17831 hardcode_into_libs=no
17833 # when you set need_version to no, make sure it does not cause -set_version
17834 # flags to be left without arguments
17835 need_version=unknown
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17841 shlibpath_var=LIBPATH
17843 # AIX 3 has no versioning support, so we append a major version to the name.
17844 soname_spec='${libname}${release}${shared_ext}$major'
17851 hardcode_into_libs=yes
17852 if test "$host_cpu" = ia64; then
17853 # AIX 5 supports IA64
17854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17855 shlibpath_var=LD_LIBRARY_PATH
17857 # With GCC up to 2.95.x, collect2 would create an import file
17858 # for dependence libraries. The import file would start with
17859 # the line `#! .'. This would cause the generated library to
17860 # depend on `.', always an invalid library. This was fixed in
17861 # development snapshots of GCC prior to 3.0.
17863 aix4 | aix4.[01] | aix4.[01].*)
17864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17866 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17869 can_build_shared=no
17873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17874 # soname into executable. Probably we can add versioning support to
17875 # collect2, so additional links can be useful in future.
17876 if test "$aix_use_runtimelinking" = yes; then
17877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17878 # instead of lib<name>.a to let people know that these are not
17879 # typical AIX shared libraries.
17880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17882 # We preserve .a as extension for shared libraries through AIX4.2
17883 # and later when we are not doing run time linking.
17884 library_names_spec='${libname}${release}.a $libname.a'
17885 soname_spec='${libname}${release}${shared_ext}$major'
17887 shlibpath_var=LIBPATH
17892 library_names_spec='$libname.ixlibrary $libname.a'
17893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17894 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'
17898 library_names_spec='${libname}${shared_ext}'
17899 dynamic_linker="$host_os ld.so"
17900 shlibpath_var=LIBRARY_PATH
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907 soname_spec='${libname}${release}${shared_ext}$major'
17908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17909 shlibpath_var=LD_LIBRARY_PATH
17910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17912 # the default ld.so.conf also contains /usr/contrib/lib and
17913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17914 # libtool to hard-code these into programs
17917 cygwin* | mingw* | pw32*)
17918 version_type=windows
17923 case $GCC,$host_os in
17924 yes,cygwin* | yes,mingw* | yes,pw32*)
17925 library_names_spec='$libname.dll.a'
17926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17927 postinstall_cmds='base_file=`basename \${file}`~
17928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17929 dldir=$destdir/`dirname \$dlpath`~
17930 test -d \$dldir || mkdir -p \$dldir~
17931 $install_prog $dir/$dlname \$dldir/$dlname~
17932 chmod a+x \$dldir/$dlname'
17933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17934 dlpath=$dir/\$dldll~
17936 shlibpath_overrides_runpath=yes
17940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17942 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17945 # MinGW DLLs use traditional 'lib' prefix
17946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17948 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17949 # It is most probably a Windows format PATH printed by
17950 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17951 # path with ; separators, and with drive letters. We can handle the
17952 # drive letters (cygwin fileutils understands them), so leave them,
17953 # especially as we might pass files found there to a mingw objdump,
17954 # which wouldn't understand a cygwinified path. Ahh.
17955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17961 # pw32 DLLs use 'pw' prefix rather than 'lib'
17962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17971 dynamic_linker='Win32 ld.exe'
17972 # FIXME: first we should search . and the directory the executable is in
17976 darwin* | rhapsody*)
17977 dynamic_linker="$host_os dyld"
17978 version_type=darwin
17981 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17982 soname_spec='${libname}${release}${major}$shared_ext'
17983 shlibpath_overrides_runpath=yes
17984 shlibpath_var=DYLD_LIBRARY_PATH
17985 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17987 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17995 soname_spec='${libname}${release}${shared_ext}$major'
17996 shlibpath_var=LD_LIBRARY_PATH
18003 freebsd* | dragonfly*)
18004 # DragonFly does not have aout. When/if they implement a new
18005 # versioning mechanism, adjust this.
18006 if test -x /usr/bin/objformat; then
18007 objformat=`/usr/bin/objformat`
18010 freebsd[123]*) objformat=aout ;;
18011 *) objformat=elf ;;
18014 version_type=freebsd-$objformat
18015 case $version_type in
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18026 shlibpath_var=LD_LIBRARY_PATH
18029 shlibpath_overrides_runpath=yes
18031 freebsd3.[01]* | freebsdelf3.[01]*)
18032 shlibpath_overrides_runpath=yes
18033 hardcode_into_libs=yes
18035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18037 shlibpath_overrides_runpath=no
18038 hardcode_into_libs=yes
18040 *) # from 4.6 on, and DragonFly
18041 shlibpath_overrides_runpath=yes
18042 hardcode_into_libs=yes
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18052 soname_spec='${libname}${release}${shared_ext}$major'
18053 shlibpath_var=LD_LIBRARY_PATH
18054 hardcode_into_libs=yes
18057 hpux9* | hpux10* | hpux11*)
18058 # Give a soname corresponding to the major version so that dld.sl refuses to
18059 # link against other versions.
18066 hardcode_into_libs=yes
18067 dynamic_linker="$host_os dld.so"
18068 shlibpath_var=LD_LIBRARY_PATH
18069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18071 soname_spec='${libname}${release}${shared_ext}$major'
18072 if test "X$HPUX_IA64_MODE" = X32; then
18073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18081 hardcode_into_libs=yes
18082 dynamic_linker="$host_os dld.sl"
18083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086 soname_spec='${libname}${release}${shared_ext}$major'
18087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18092 dynamic_linker="$host_os dld.sl"
18093 shlibpath_var=SHLIB_PATH
18094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096 soname_spec='${libname}${release}${shared_ext}$major'
18099 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18100 postinstall_cmds='chmod 555 $lib'
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18108 soname_spec='${libname}${release}${shared_ext}$major'
18109 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18110 shlibpath_var=LD_LIBRARY_PATH
18111 shlibpath_overrides_runpath=no
18112 hardcode_into_libs=yes
18115 irix5* | irix6* | nonstopux*)
18117 nonstopux*) version_type=nonstopux ;;
18119 if test "$lt_cv_prog_gnu_ld" = yes; then
18127 soname_spec='${libname}${release}${shared_ext}$major'
18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18130 irix5* | nonstopux*)
18131 libsuff= shlibsuff=
18134 case $LD in # libtool.m4 will add one of these switches to LD
18135 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18136 libsuff= shlibsuff= libmagic=32-bit;;
18137 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18138 libsuff=32 shlibsuff=N32 libmagic=N32;;
18139 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18140 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18141 *) libsuff= shlibsuff= libmagic=never-match;;
18145 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18146 shlibpath_overrides_runpath=no
18147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18149 hardcode_into_libs=yes
18152 # No shared lib support for Linux oldld, aout, or coff.
18153 linux*oldld* | linux*aout* | linux*coff*)
18157 # This must be Linux ELF.
18158 linux* | k*bsd*-gnu)
18162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18163 soname_spec='${libname}${release}${shared_ext}$major'
18164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18165 shlibpath_var=LD_LIBRARY_PATH
18166 shlibpath_overrides_runpath=no
18167 # This implies no fast_install, which is unacceptable.
18168 # Some rework will be needed to allow for fast_install
18169 # before this can be enabled.
18170 hardcode_into_libs=yes
18172 # Append ld.so.conf contents to the search path
18173 if test -f /etc/ld.so.conf; then
18174 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' ' '`
18175 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18178 # We used to test for /lib/ld.so.1 and disable shared libraries on
18179 # powerpc, because MkLinux only supported shared libraries with the
18180 # GNU dynamic linker. Since this was broken with cross compilers,
18181 # most powerpc-linux boxes support dynamic linking these days and
18182 # people can always --disable-shared, the test was removed, and we
18183 # assume the GNU/Linux dynamic linker is in use.
18184 dynamic_linker='GNU/Linux ld.so'
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 shlibpath_overrides_runpath=no
18195 hardcode_into_libs=yes
18196 dynamic_linker='NetBSD ld.elf_so'
18203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18206 dynamic_linker='NetBSD (a.out) ld.so'
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18209 soname_spec='${libname}${release}${shared_ext}$major'
18210 dynamic_linker='NetBSD ld.elf_so'
18212 shlibpath_var=LD_LIBRARY_PATH
18213 shlibpath_overrides_runpath=yes
18214 hardcode_into_libs=yes
18219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18220 shlibpath_var=LD_LIBRARY_PATH
18221 shlibpath_overrides_runpath=yes
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 shlibpath_var=LD_LIBRARY_PATH
18231 shlibpath_overrides_runpath=yes
18236 sys_lib_dlsearch_path_spec="/usr/lib"
18238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18241 *) need_version=no ;;
18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18245 shlibpath_var=LD_LIBRARY_PATH
18246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18248 openbsd2.[89] | openbsd2.[89].*)
18249 shlibpath_overrides_runpath=no
18252 shlibpath_overrides_runpath=yes
18256 shlibpath_overrides_runpath=yes
18261 libname_spec='$name'
18264 library_names_spec='$libname${shared_ext} $libname.a'
18265 dynamic_linker='OS/2 ld.exe'
18266 shlibpath_var=LIBPATH
18269 osf3* | osf4* | osf5*)
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275 shlibpath_var=LD_LIBRARY_PATH
18276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289 soname_spec='${libname}${release}${shared_ext}$major'
18290 shlibpath_var=LD_LIBRARY_PATH
18291 shlibpath_overrides_runpath=yes
18292 hardcode_into_libs=yes
18293 # ldd complains unless libraries are executable
18294 postinstall_cmds='chmod +x $lib'
18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 shlibpath_overrides_runpath=yes
18303 if test "$with_gnu_ld" = yes; then
18311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312 soname_spec='${libname}${release}${shared_ext}$major'
18313 shlibpath_var=LD_LIBRARY_PATH
18314 case $host_vendor in
18316 shlibpath_overrides_runpath=no
18318 export_dynamic_flag_spec='${wl}-Blargedynsym'
18319 runpath_var=LD_RUN_PATH
18327 shlibpath_overrides_runpath=no
18328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18334 if test -d /usr/nec ;then
18336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18337 soname_spec='$libname${shared_ext}.$major'
18338 shlibpath_var=LD_LIBRARY_PATH
18342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18343 version_type=freebsd-elf
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18347 soname_spec='${libname}${release}${shared_ext}$major'
18348 shlibpath_var=LD_LIBRARY_PATH
18349 hardcode_into_libs=yes
18350 if test "$with_gnu_ld" = yes; then
18351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18352 shlibpath_overrides_runpath=no
18354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18355 shlibpath_overrides_runpath=yes
18358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18362 sys_lib_dlsearch_path_spec='/usr/lib'
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18369 shlibpath_var=LD_LIBRARY_PATH
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18377 $as_echo "$dynamic_linker" >&6; }
18378 test "$dynamic_linker" = no && can_build_shared=no
18380 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18381 $as_echo_n "(cached) " >&6
18383 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18386 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18387 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18388 $as_echo_n "(cached) " >&6
18390 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18393 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18396 if test "$GCC" = yes; then
18397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18401 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18402 hardcode_action_GCJ=
18403 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18404 test -n "$runpath_var_GCJ" || \
18405 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18407 # We can hardcode non-existant directories.
18408 if test "$hardcode_direct_GCJ" != no &&
18409 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18410 # have to relink, otherwise we might link with an installed library
18411 # when we should be linking with a yet-to-be-installed one
18412 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18413 test "$hardcode_minus_L_GCJ" != no; then
18414 # Linking always hardcodes the temporary library directory.
18415 hardcode_action_GCJ=relink
18417 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18418 hardcode_action_GCJ=immediate
18421 # We cannot hardcode anything, or else we can only hardcode existing
18423 hardcode_action_GCJ=unsupported
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18426 $as_echo "$hardcode_action_GCJ" >&6; }
18428 if test "$hardcode_action_GCJ" = relink; then
18429 # Fast installation is not supported
18430 enable_fast_install=no
18431 elif test "$shlibpath_overrides_runpath" = yes ||
18432 test "$enable_shared" = no; then
18433 # Fast installation is not necessary
18434 enable_fast_install=needless
18438 # The else clause should only fire when bootstrapping the
18439 # libtool distribution, otherwise you forgot to ship ltmain.sh
18440 # with your package, and you will get complaints that there are
18441 # no rules to generate ltmain.sh.
18442 if test -f "$ltmain"; then
18443 # See if we are running on zsh, and set the options which allow our commands through
18444 # without removal of \ escapes.
18445 if test -n "${ZSH_VERSION+set}" ; then
18446 setopt NO_GLOB_SUBST
18448 # Now quote all the things that may contain metacharacters while being
18449 # careful not to overquote the AC_SUBSTed values. We take copies of the
18450 # variables and quote the copies for generation of the libtool script.
18451 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18453 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18454 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18455 deplibs_check_method reload_flag reload_cmds need_locks \
18456 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18457 lt_cv_sys_global_symbol_to_c_name_address \
18458 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18459 old_postinstall_cmds old_postuninstall_cmds \
18463 lt_prog_compiler_wl_GCJ \
18464 lt_prog_compiler_pic_GCJ \
18465 lt_prog_compiler_static_GCJ \
18466 lt_prog_compiler_no_builtin_flag_GCJ \
18467 export_dynamic_flag_spec_GCJ \
18468 thread_safe_flag_spec_GCJ \
18469 whole_archive_flag_spec_GCJ \
18470 enable_shared_with_static_runtimes_GCJ \
18471 old_archive_cmds_GCJ \
18472 old_archive_from_new_cmds_GCJ \
18473 predep_objects_GCJ \
18474 postdep_objects_GCJ \
18477 compiler_lib_search_path_GCJ \
18478 compiler_lib_search_dirs_GCJ \
18480 archive_expsym_cmds_GCJ \
18481 postinstall_cmds_GCJ \
18482 postuninstall_cmds_GCJ \
18483 old_archive_from_expsyms_cmds_GCJ \
18484 allow_undefined_flag_GCJ \
18485 no_undefined_flag_GCJ \
18486 export_symbols_cmds_GCJ \
18487 hardcode_libdir_flag_spec_GCJ \
18488 hardcode_libdir_flag_spec_ld_GCJ \
18489 hardcode_libdir_separator_GCJ \
18490 hardcode_automatic_GCJ \
18492 module_expsym_cmds_GCJ \
18493 lt_cv_prog_compiler_c_o_GCJ \
18494 fix_srcfile_path_GCJ \
18495 exclude_expsyms_GCJ \
18496 include_expsyms_GCJ; do
18499 old_archive_cmds_GCJ | \
18500 old_archive_from_new_cmds_GCJ | \
18501 archive_cmds_GCJ | \
18502 archive_expsym_cmds_GCJ | \
18503 module_cmds_GCJ | \
18504 module_expsym_cmds_GCJ | \
18505 old_archive_from_expsyms_cmds_GCJ | \
18506 export_symbols_cmds_GCJ | \
18507 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18508 postinstall_cmds | postuninstall_cmds | \
18509 old_postinstall_cmds | old_postuninstall_cmds | \
18510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18511 # Double-quote double-evaled strings.
18512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18521 *'\$0 --fallback-echo"')
18522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18528 cat <<__EOF__ >> "$cfgfile"
18529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18533 # Shell to use when invoking shell scripts.
18536 # Whether or not to build shared libraries.
18537 build_libtool_libs=$enable_shared
18539 # Whether or not to build static libraries.
18540 build_old_libs=$enable_static
18542 # Whether or not to add -lc for building shared libraries.
18543 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18545 # Whether or not to disallow shared libs when runtime libs are static
18546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18548 # Whether or not to optimize for fast installation.
18549 fast_install=$enable_fast_install
18552 host_alias=$host_alias
18556 # The build system.
18557 build_alias=$build_alias
18561 # An echo program that does not interpret backslashes.
18566 AR_FLAGS=$lt_AR_FLAGS
18571 # LTCC compiler flags.
18572 LTCFLAGS=$lt_LTCFLAGS
18574 # A language-specific compiler.
18575 CC=$lt_compiler_GCJ
18577 # Is the compiler the GNU C compiler?
18583 # The linker used to build libraries.
18586 # Whether we need hard or soft links.
18589 # A BSD-compatible nm program.
18592 # A symbol stripping program
18595 # Used to examine libraries when file_magic_cmd begins "file"
18596 MAGIC_CMD=$MAGIC_CMD
18598 # Used on cygwin: DLL creation program.
18601 # Used on cygwin: object dumper.
18604 # Used on cygwin: assembler.
18607 # The name of the directory that contains temporary libtool files.
18610 # How to create reloadable object files.
18611 reload_flag=$lt_reload_flag
18612 reload_cmds=$lt_reload_cmds
18614 # How to pass a linker flag through the compiler.
18615 wl=$lt_lt_prog_compiler_wl_GCJ
18617 # Object file suffix (normally "o").
18618 objext="$ac_objext"
18620 # Old archive suffix (normally "a").
18623 # Shared library suffix (normally ".so").
18624 shrext_cmds='$shrext_cmds'
18626 # Executable file suffix (normally "").
18629 # Additional compiler flags for building library objects.
18630 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18633 # What is the maximum length of a command?
18634 max_cmd_len=$lt_cv_sys_max_cmd_len
18636 # Does compiler simultaneously support -c and -o options?
18637 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18639 # Must we lock files when doing compilation?
18640 need_locks=$lt_need_locks
18642 # Do we need the lib prefix for modules?
18643 need_lib_prefix=$need_lib_prefix
18645 # Do we need a version for libraries?
18646 need_version=$need_version
18648 # Whether dlopen is supported.
18649 dlopen_support=$enable_dlopen
18651 # Whether dlopen of programs is supported.
18652 dlopen_self=$enable_dlopen_self
18654 # Whether dlopen of statically linked programs is supported.
18655 dlopen_self_static=$enable_dlopen_self_static
18657 # Compiler flag to prevent dynamic linking.
18658 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18660 # Compiler flag to turn off builtin functions.
18661 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18663 # Compiler flag to allow reflexive dlopens.
18664 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18666 # Compiler flag to generate shared objects directly from archives.
18667 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18669 # Compiler flag to generate thread-safe objects.
18670 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18672 # Library versioning type.
18673 version_type=$version_type
18675 # Format of library name prefix.
18676 libname_spec=$lt_libname_spec
18678 # List of archive names. First name is the real one, the rest are links.
18679 # The last name is the one that the linker finds with -lNAME.
18680 library_names_spec=$lt_library_names_spec
18682 # The coded name of the library, if different from the real name.
18683 soname_spec=$lt_soname_spec
18685 # Commands used to build and install an old-style archive.
18687 old_archive_cmds=$lt_old_archive_cmds_GCJ
18688 old_postinstall_cmds=$lt_old_postinstall_cmds
18689 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18691 # Create an old-style archive from a shared archive.
18692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18694 # Create a temporary old-style archive to link instead of a shared archive.
18695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18697 # Commands used to build and install a shared archive.
18698 archive_cmds=$lt_archive_cmds_GCJ
18699 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18700 postinstall_cmds=$lt_postinstall_cmds
18701 postuninstall_cmds=$lt_postuninstall_cmds
18703 # Commands used to build a loadable module (assumed same as above if empty)
18704 module_cmds=$lt_module_cmds_GCJ
18705 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18707 # Commands to strip libraries.
18708 old_striplib=$lt_old_striplib
18709 striplib=$lt_striplib
18711 # Dependencies to place before the objects being linked to create a
18713 predep_objects=$lt_predep_objects_GCJ
18715 # Dependencies to place after the objects being linked to create a
18717 postdep_objects=$lt_postdep_objects_GCJ
18719 # Dependencies to place before the objects being linked to create a
18721 predeps=$lt_predeps_GCJ
18723 # Dependencies to place after the objects being linked to create a
18725 postdeps=$lt_postdeps_GCJ
18727 # The directories searched by this compiler when creating a shared
18729 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18731 # The library search path used internally by the compiler when linking
18732 # a shared library.
18733 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18735 # Method to check whether dependent libraries are shared objects.
18736 deplibs_check_method=$lt_deplibs_check_method
18738 # Command to use when deplibs_check_method == file_magic.
18739 file_magic_cmd=$lt_file_magic_cmd
18741 # Flag that allows shared libraries with undefined symbols to be built.
18742 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18744 # Flag that forces no undefined symbols.
18745 no_undefined_flag=$lt_no_undefined_flag_GCJ
18747 # Commands used to finish a libtool library installation in a directory.
18748 finish_cmds=$lt_finish_cmds
18750 # Same as above, but a single script fragment to be evaled but not shown.
18751 finish_eval=$lt_finish_eval
18753 # Take the output of nm and produce a listing of raw symbols and C names.
18754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18756 # Transform the output of nm in a proper C declaration
18757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18759 # Transform the output of nm in a C name address pair
18760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18762 # This is the shared library runtime path variable.
18763 runpath_var=$runpath_var
18765 # This is the shared library path variable.
18766 shlibpath_var=$shlibpath_var
18768 # Is shlibpath searched before the hard-coded library search path?
18769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18771 # How to hardcode a shared library path into an executable.
18772 hardcode_action=$hardcode_action_GCJ
18774 # Whether we should hardcode library paths into libraries.
18775 hardcode_into_libs=$hardcode_into_libs
18777 # Flag to hardcode \$libdir into a binary during linking.
18778 # This must work even if \$libdir does not exist.
18779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18781 # If ld is used when linking, flag to hardcode \$libdir into
18782 # a binary during linking. This must work even if \$libdir does
18784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18786 # Whether we need a single -rpath flag with a separated argument.
18787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18790 # resulting binary.
18791 hardcode_direct=$hardcode_direct_GCJ
18793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18794 # resulting binary.
18795 hardcode_minus_L=$hardcode_minus_L_GCJ
18797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18798 # the resulting binary.
18799 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18801 # Set to yes if building a shared library automatically hardcodes DIR into the library
18802 # and all subsequent libraries and executables linked against it.
18803 hardcode_automatic=$hardcode_automatic_GCJ
18805 # Variables whose values should be saved in libtool wrapper scripts and
18806 # restored at relink time.
18807 variables_saved_for_relink="$variables_saved_for_relink"
18809 # Whether libtool must link a program against all its dependency libraries.
18810 link_all_deplibs=$link_all_deplibs_GCJ
18812 # Compile-time system search path for libraries
18813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18815 # Run-time system search path for libraries
18816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18818 # Fix the shell variable \$srcfile for the compiler.
18819 fix_srcfile_path=$lt_fix_srcfile_path
18821 # Set to yes if exported symbols are required.
18822 always_export_symbols=$always_export_symbols_GCJ
18824 # The commands to list exported symbols.
18825 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18827 # The commands to extract the exported symbol list from a shared archive.
18828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18830 # Symbols that should not be listed in the preloaded symbols.
18831 exclude_expsyms=$lt_exclude_expsyms_GCJ
18833 # Symbols that must always be exported.
18834 include_expsyms=$lt_include_expsyms_GCJ
18836 # ### END LIBTOOL TAG CONFIG: $tagname
18842 # If there is no Makefile yet, we rely on a make rule to execute
18843 # `config.status --recheck' to rerun these tests and create the
18844 # libtool script then.
18845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18846 if test -f "$ltmain_in"; then
18847 test -f Makefile && make "$ltmain"
18853 ac_cpp='$CPP $CPPFLAGS'
18854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18868 # Source file extension for RC test sources.
18871 # Object file extension for compiled RC test sources.
18875 # Code to be used in simple compile tests
18876 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18878 # Code to be used in simple link tests
18879 lt_simple_link_test_code="$lt_simple_compile_test_code"
18881 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18883 # If no C compiler was specified, use CC.
18886 # If no C compiler flags were specified, use CFLAGS.
18887 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18889 # Allow CC to be a program name with arguments.
18893 # save warnings/boilerplate of simple test code
18894 ac_outfile=conftest.$ac_objext
18895 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18896 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18897 _lt_compiler_boilerplate=`cat conftest.err`
18900 ac_outfile=conftest.$ac_objext
18901 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18902 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18903 _lt_linker_boilerplate=`cat conftest.err`
18907 # Allow CC to be a program name with arguments.
18912 for cc_temp in $compiler""; do
18914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18920 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18922 lt_cv_prog_compiler_c_o_RC=yes
18924 # The else clause should only fire when bootstrapping the
18925 # libtool distribution, otherwise you forgot to ship ltmain.sh
18926 # with your package, and you will get complaints that there are
18927 # no rules to generate ltmain.sh.
18928 if test -f "$ltmain"; then
18929 # See if we are running on zsh, and set the options which allow our commands through
18930 # without removal of \ escapes.
18931 if test -n "${ZSH_VERSION+set}" ; then
18932 setopt NO_GLOB_SUBST
18934 # Now quote all the things that may contain metacharacters while being
18935 # careful not to overquote the AC_SUBSTed values. We take copies of the
18936 # variables and quote the copies for generation of the libtool script.
18937 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18939 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18940 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18941 deplibs_check_method reload_flag reload_cmds need_locks \
18942 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18943 lt_cv_sys_global_symbol_to_c_name_address \
18944 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18945 old_postinstall_cmds old_postuninstall_cmds \
18949 lt_prog_compiler_wl_RC \
18950 lt_prog_compiler_pic_RC \
18951 lt_prog_compiler_static_RC \
18952 lt_prog_compiler_no_builtin_flag_RC \
18953 export_dynamic_flag_spec_RC \
18954 thread_safe_flag_spec_RC \
18955 whole_archive_flag_spec_RC \
18956 enable_shared_with_static_runtimes_RC \
18957 old_archive_cmds_RC \
18958 old_archive_from_new_cmds_RC \
18959 predep_objects_RC \
18960 postdep_objects_RC \
18963 compiler_lib_search_path_RC \
18964 compiler_lib_search_dirs_RC \
18966 archive_expsym_cmds_RC \
18967 postinstall_cmds_RC \
18968 postuninstall_cmds_RC \
18969 old_archive_from_expsyms_cmds_RC \
18970 allow_undefined_flag_RC \
18971 no_undefined_flag_RC \
18972 export_symbols_cmds_RC \
18973 hardcode_libdir_flag_spec_RC \
18974 hardcode_libdir_flag_spec_ld_RC \
18975 hardcode_libdir_separator_RC \
18976 hardcode_automatic_RC \
18978 module_expsym_cmds_RC \
18979 lt_cv_prog_compiler_c_o_RC \
18980 fix_srcfile_path_RC \
18981 exclude_expsyms_RC \
18982 include_expsyms_RC; do
18985 old_archive_cmds_RC | \
18986 old_archive_from_new_cmds_RC | \
18987 archive_cmds_RC | \
18988 archive_expsym_cmds_RC | \
18990 module_expsym_cmds_RC | \
18991 old_archive_from_expsyms_cmds_RC | \
18992 export_symbols_cmds_RC | \
18993 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18994 postinstall_cmds | postuninstall_cmds | \
18995 old_postinstall_cmds | old_postuninstall_cmds | \
18996 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18997 # Double-quote double-evaled strings.
18998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19007 *'\$0 --fallback-echo"')
19008 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19014 cat <<__EOF__ >> "$cfgfile"
19015 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19017 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19019 # Shell to use when invoking shell scripts.
19022 # Whether or not to build shared libraries.
19023 build_libtool_libs=$enable_shared
19025 # Whether or not to build static libraries.
19026 build_old_libs=$enable_static
19028 # Whether or not to add -lc for building shared libraries.
19029 build_libtool_need_lc=$archive_cmds_need_lc_RC
19031 # Whether or not to disallow shared libs when runtime libs are static
19032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19034 # Whether or not to optimize for fast installation.
19035 fast_install=$enable_fast_install
19038 host_alias=$host_alias
19042 # The build system.
19043 build_alias=$build_alias
19047 # An echo program that does not interpret backslashes.
19052 AR_FLAGS=$lt_AR_FLAGS
19057 # LTCC compiler flags.
19058 LTCFLAGS=$lt_LTCFLAGS
19060 # A language-specific compiler.
19063 # Is the compiler the GNU C compiler?
19069 # The linker used to build libraries.
19072 # Whether we need hard or soft links.
19075 # A BSD-compatible nm program.
19078 # A symbol stripping program
19081 # Used to examine libraries when file_magic_cmd begins "file"
19082 MAGIC_CMD=$MAGIC_CMD
19084 # Used on cygwin: DLL creation program.
19087 # Used on cygwin: object dumper.
19090 # Used on cygwin: assembler.
19093 # The name of the directory that contains temporary libtool files.
19096 # How to create reloadable object files.
19097 reload_flag=$lt_reload_flag
19098 reload_cmds=$lt_reload_cmds
19100 # How to pass a linker flag through the compiler.
19101 wl=$lt_lt_prog_compiler_wl_RC
19103 # Object file suffix (normally "o").
19104 objext="$ac_objext"
19106 # Old archive suffix (normally "a").
19109 # Shared library suffix (normally ".so").
19110 shrext_cmds='$shrext_cmds'
19112 # Executable file suffix (normally "").
19115 # Additional compiler flags for building library objects.
19116 pic_flag=$lt_lt_prog_compiler_pic_RC
19119 # What is the maximum length of a command?
19120 max_cmd_len=$lt_cv_sys_max_cmd_len
19122 # Does compiler simultaneously support -c and -o options?
19123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19125 # Must we lock files when doing compilation?
19126 need_locks=$lt_need_locks
19128 # Do we need the lib prefix for modules?
19129 need_lib_prefix=$need_lib_prefix
19131 # Do we need a version for libraries?
19132 need_version=$need_version
19134 # Whether dlopen is supported.
19135 dlopen_support=$enable_dlopen
19137 # Whether dlopen of programs is supported.
19138 dlopen_self=$enable_dlopen_self
19140 # Whether dlopen of statically linked programs is supported.
19141 dlopen_self_static=$enable_dlopen_self_static
19143 # Compiler flag to prevent dynamic linking.
19144 link_static_flag=$lt_lt_prog_compiler_static_RC
19146 # Compiler flag to turn off builtin functions.
19147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19149 # Compiler flag to allow reflexive dlopens.
19150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19152 # Compiler flag to generate shared objects directly from archives.
19153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19155 # Compiler flag to generate thread-safe objects.
19156 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19158 # Library versioning type.
19159 version_type=$version_type
19161 # Format of library name prefix.
19162 libname_spec=$lt_libname_spec
19164 # List of archive names. First name is the real one, the rest are links.
19165 # The last name is the one that the linker finds with -lNAME.
19166 library_names_spec=$lt_library_names_spec
19168 # The coded name of the library, if different from the real name.
19169 soname_spec=$lt_soname_spec
19171 # Commands used to build and install an old-style archive.
19173 old_archive_cmds=$lt_old_archive_cmds_RC
19174 old_postinstall_cmds=$lt_old_postinstall_cmds
19175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19177 # Create an old-style archive from a shared archive.
19178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19180 # Create a temporary old-style archive to link instead of a shared archive.
19181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19183 # Commands used to build and install a shared archive.
19184 archive_cmds=$lt_archive_cmds_RC
19185 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19186 postinstall_cmds=$lt_postinstall_cmds
19187 postuninstall_cmds=$lt_postuninstall_cmds
19189 # Commands used to build a loadable module (assumed same as above if empty)
19190 module_cmds=$lt_module_cmds_RC
19191 module_expsym_cmds=$lt_module_expsym_cmds_RC
19193 # Commands to strip libraries.
19194 old_striplib=$lt_old_striplib
19195 striplib=$lt_striplib
19197 # Dependencies to place before the objects being linked to create a
19199 predep_objects=$lt_predep_objects_RC
19201 # Dependencies to place after the objects being linked to create a
19203 postdep_objects=$lt_postdep_objects_RC
19205 # Dependencies to place before the objects being linked to create a
19207 predeps=$lt_predeps_RC
19209 # Dependencies to place after the objects being linked to create a
19211 postdeps=$lt_postdeps_RC
19213 # The directories searched by this compiler when creating a shared
19215 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19217 # The library search path used internally by the compiler when linking
19218 # a shared library.
19219 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19221 # Method to check whether dependent libraries are shared objects.
19222 deplibs_check_method=$lt_deplibs_check_method
19224 # Command to use when deplibs_check_method == file_magic.
19225 file_magic_cmd=$lt_file_magic_cmd
19227 # Flag that allows shared libraries with undefined symbols to be built.
19228 allow_undefined_flag=$lt_allow_undefined_flag_RC
19230 # Flag that forces no undefined symbols.
19231 no_undefined_flag=$lt_no_undefined_flag_RC
19233 # Commands used to finish a libtool library installation in a directory.
19234 finish_cmds=$lt_finish_cmds
19236 # Same as above, but a single script fragment to be evaled but not shown.
19237 finish_eval=$lt_finish_eval
19239 # Take the output of nm and produce a listing of raw symbols and C names.
19240 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19242 # Transform the output of nm in a proper C declaration
19243 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19245 # Transform the output of nm in a C name address pair
19246 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19248 # This is the shared library runtime path variable.
19249 runpath_var=$runpath_var
19251 # This is the shared library path variable.
19252 shlibpath_var=$shlibpath_var
19254 # Is shlibpath searched before the hard-coded library search path?
19255 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19257 # How to hardcode a shared library path into an executable.
19258 hardcode_action=$hardcode_action_RC
19260 # Whether we should hardcode library paths into libraries.
19261 hardcode_into_libs=$hardcode_into_libs
19263 # Flag to hardcode \$libdir into a binary during linking.
19264 # This must work even if \$libdir does not exist.
19265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19267 # If ld is used when linking, flag to hardcode \$libdir into
19268 # a binary during linking. This must work even if \$libdir does
19270 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19272 # Whether we need a single -rpath flag with a separated argument.
19273 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19275 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19276 # resulting binary.
19277 hardcode_direct=$hardcode_direct_RC
19279 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19280 # resulting binary.
19281 hardcode_minus_L=$hardcode_minus_L_RC
19283 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19284 # the resulting binary.
19285 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19287 # Set to yes if building a shared library automatically hardcodes DIR into the library
19288 # and all subsequent libraries and executables linked against it.
19289 hardcode_automatic=$hardcode_automatic_RC
19291 # Variables whose values should be saved in libtool wrapper scripts and
19292 # restored at relink time.
19293 variables_saved_for_relink="$variables_saved_for_relink"
19295 # Whether libtool must link a program against all its dependency libraries.
19296 link_all_deplibs=$link_all_deplibs_RC
19298 # Compile-time system search path for libraries
19299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19301 # Run-time system search path for libraries
19302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19304 # Fix the shell variable \$srcfile for the compiler.
19305 fix_srcfile_path=$lt_fix_srcfile_path
19307 # Set to yes if exported symbols are required.
19308 always_export_symbols=$always_export_symbols_RC
19310 # The commands to list exported symbols.
19311 export_symbols_cmds=$lt_export_symbols_cmds_RC
19313 # The commands to extract the exported symbol list from a shared archive.
19314 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19316 # Symbols that should not be listed in the preloaded symbols.
19317 exclude_expsyms=$lt_exclude_expsyms_RC
19319 # Symbols that must always be exported.
19320 include_expsyms=$lt_include_expsyms_RC
19322 # ### END LIBTOOL TAG CONFIG: $tagname
19328 # If there is no Makefile yet, we rely on a make rule to execute
19329 # `config.status --recheck' to rerun these tests and create the
19330 # libtool script then.
19331 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19332 if test -f "$ltmain_in"; then
19333 test -f Makefile && make "$ltmain"
19339 ac_cpp='$CPP $CPPFLAGS'
19340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19349 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19353 # Append the new tag name to the list of available tags.
19354 if test -n "$tagname" ; then
19355 available_tags="$available_tags $tagname"
19361 # Now substitute the updated list of available tags.
19362 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19363 mv "${ofile}T" "$ofile"
19367 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19373 # This can be used to rebuild libtool when needed
19374 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19376 # Always use our own libtool.
19377 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19379 # Prevent multiple expansion
19392 # Check whether --with-system-libtool was given.
19393 if test "${with_system_libtool+set}" = set; then :
19394 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19395 set dummy libtool; ac_word=$2
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19397 $as_echo_n "checking for $ac_word... " >&6; }
19398 if ${ac_cv_path_LIBTOOL+:} false; then :
19399 $as_echo_n "(cached) " >&6
19403 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19407 as_dummy="$PATH:/usr/local/bin"
19408 for as_dir in $as_dummy
19411 test -z "$as_dir" && as_dir=.
19412 for ac_exec_ext in '' $ac_executable_extensions; do
19413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19414 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19425 LIBTOOL=$ac_cv_path_LIBTOOL
19426 if test -n "$LIBTOOL"; then
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19428 $as_echo "$LIBTOOL" >&6; }
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431 $as_echo "no" >&6; }
19447 LIBTOOL="`pwd`/libtool"
19459 # Check whether --enable-strict-dependencies was given.
19460 if test "${enable_strict_dependencies+set}" = set; then :
19461 enableval=$enable_strict_dependencies;
19465 docdir='${datadir}/doc/freeradius'
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19467 $as_echo_n "checking docdir... " >&6; }
19469 # Check whether --with-docdir was given.
19470 if test "${with_docdir+set}" = set; then :
19471 withval=$with_docdir; case "$withval" in
19477 [\\/$]* | ?:[\\/]* )
19481 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19489 $as_echo "$docdir" >&6; }
19490 if test "x$docdir" = xno; then
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19492 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19495 logdir='${localstatedir}/log/radius'
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19497 $as_echo_n "checking logdir... " >&6; }
19499 # Check whether --with-logdir was given.
19500 if test "${with_logdir+set}" = set; then :
19501 withval=$with_logdir; case "$withval" in
19503 as_fn_error $? "Need logdir" "$LINENO" 5
19507 [\\/$]* | ?:[\\/]* )
19511 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19519 $as_echo "$logdir" >&6; }
19521 radacctdir='${logdir}/radacct'
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19523 $as_echo_n "checking radacctdir... " >&6; }
19525 # Check whether --with-radacctdir was given.
19526 if test "${with_radacctdir+set}" = set; then :
19527 withval=$with_radacctdir; case "$withval" in
19529 as_fn_error $? "Need radacctdir" "$LINENO" 5
19533 [\\/$]* | ?:[\\/]* )
19534 radacctdir="$withval"
19537 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19545 $as_echo "$radacctdir" >&6; }
19547 raddbdir='${sysconfdir}/raddb'
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19549 $as_echo_n "checking raddbdir... " >&6; }
19551 # Check whether --with-raddbdir was given.
19552 if test "${with_raddbdir+set}" = set; then :
19553 withval=$with_raddbdir; case "$withval" in
19555 as_fn_error $? "Need raddbdir" "$LINENO" 5
19559 [\\/$]* | ?:[\\/]* )
19560 raddbdir="$withval"
19563 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19571 $as_echo "$raddbdir" >&6; }
19575 # Check whether --with-ascend-binary was given.
19576 if test "${with_ascend_binary+set}" = set; then :
19577 withval=$with_ascend_binary; case "$withval" in
19586 if test "X$ASCEND_BINARY" = "Xyes"; then
19588 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19594 # Check whether --with-threads was given.
19595 if test "${with_threads+set}" = set; then :
19596 withval=$with_threads; case "$withval" in
19608 # Check whether --with-vmps was given.
19609 if test "${with_vmps+set}" = set; then :
19610 withval=$with_vmps; case "$withval" in
19619 if test "x$WITH_VMPS" = "xyes"; then
19621 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19627 # Check whether --with-dhcp was given.
19628 if test "${with_dhcp+set}" = set; then :
19629 withval=$with_dhcp; case "$withval" in
19638 if test "x$WITH_DHCP" = "xyes"; then
19640 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19645 WITH_POST_PROXY_AUTHORIZE=
19647 # Check whether --with-post-proxy-authorize was given.
19648 if test "${with_post_proxy_authorize+set}" = set; then :
19649 withval=$with_post_proxy_authorize; case "$withval" in
19651 WITH_POST_PROXY_AUTHORIZE=""
19662 # Check whether --with-static_modules was given.
19663 if test "${with_static_modules+set}" = set; then :
19664 withval=$with_static_modules;
19665 for i in $withval; do
19666 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19674 # Check whether --with-modules was given.
19675 if test "${with_modules+set}" = set; then :
19676 withval=$with_modules;
19677 for i in $withval; do
19678 MODULES="$MODULES $i"
19684 # Check whether --enable-developer was given.
19685 if test "${enable_developer+set}" = set; then :
19686 enableval=$enable_developer; case "$enableval" in
19697 if test -d $srcdir/.git; then
19698 if test "x$developer" != "xno"; then
19702 if test "x$GIT" = "xyes"; then
19703 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19709 # Check whether --with-experimental-modules was given.
19710 if test "${with_experimental_modules+set}" = set; then :
19711 withval=$with_experimental_modules; case "$withval" in
19723 # Check whether --with-openssl was given.
19724 if test "${with_openssl+set}" = set; then :
19725 withval=$with_openssl; case "$withval" in
19737 OPENSSL_INCLUDE_DIR=
19739 # Check whether --with-openssl-includes was given.
19740 if test "${with_openssl_includes+set}" = set; then :
19741 withval=$with_openssl_includes; case "$withval" in
19742 *) OPENSSL_INCLUDE_DIR="$withval"
19751 # Check whether --with-openssl-libraries was given.
19752 if test "${with_openssl_libraries+set}" = set; then :
19753 withval=$with_openssl_libraries; case "$withval" in
19754 *) OPENSSL_LIB_DIR="$withval"
19763 # Check whether --with-rlm-FOO-lib-dir was given.
19764 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19765 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19774 # Check whether --with-rlm-FOO-include-dir was given.
19775 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19776 withval=$with_rlm_FOO_include_dir; case "$withval" in
19787 # Check whether --with-udpfromto was given.
19788 if test "${with_udpfromto+set}" = set; then :
19789 withval=$with_udpfromto; case "$withval" in
19800 if test "x$WITH_UDPFROMTO" = "xyes"; then
19802 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19807 CHECKRAD=checkrad.pl
19808 # Extract the first word of "perl", so it can be a program name with args.
19809 set dummy perl; ac_word=$2
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19811 $as_echo_n "checking for $ac_word... " >&6; }
19812 if ${ac_cv_path_PERL+:} false; then :
19813 $as_echo_n "(cached) " >&6
19817 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19821 for as_dir in $PATH
19824 test -z "$as_dir" && as_dir=.
19825 for ac_exec_ext in '' $ac_executable_extensions; do
19826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19827 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19835 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19839 PERL=$ac_cv_path_PERL
19840 if test -n "$PERL"; then
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19842 $as_echo "$PERL" >&6; }
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19845 $as_echo "no" >&6; }
19849 if test "x$ac_cv_path_PERL" = "x"; then
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19851 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19853 # Extract the first word of "snmpget", so it can be a program name with args.
19854 set dummy snmpget; ac_word=$2
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19856 $as_echo_n "checking for $ac_word... " >&6; }
19857 if ${ac_cv_path_SNMPGET+:} false; then :
19858 $as_echo_n "(cached) " >&6
19862 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19866 for as_dir in $PATH
19869 test -z "$as_dir" && as_dir=.
19870 for ac_exec_ext in '' $ac_executable_extensions; do
19871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19872 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19883 SNMPGET=$ac_cv_path_SNMPGET
19884 if test -n "$SNMPGET"; then
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19886 $as_echo "$SNMPGET" >&6; }
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19889 $as_echo "no" >&6; }
19893 if test "x$ac_cv_path_SNMPGET" = "x"; then
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19895 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19898 # Extract the first word of "snmpwalk", so it can be a program name with args.
19899 set dummy snmpwalk; ac_word=$2
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19901 $as_echo_n "checking for $ac_word... " >&6; }
19902 if ${ac_cv_path_SNMPWALK+:} false; then :
19903 $as_echo_n "(cached) " >&6
19907 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19911 for as_dir in $PATH
19914 test -z "$as_dir" && as_dir=.
19915 for ac_exec_ext in '' $ac_executable_extensions; do
19916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19917 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19928 SNMPWALK=$ac_cv_path_SNMPWALK
19929 if test -n "$SNMPWALK"; then
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
19931 $as_echo "$SNMPWALK" >&6; }
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19934 $as_echo "no" >&6; }
19938 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19940 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19943 # Extract the first word of "rusers", so it can be a program name with args.
19944 set dummy rusers; ac_word=$2
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19946 $as_echo_n "checking for $ac_word... " >&6; }
19947 if ${ac_cv_path_RUSERS+:} false; then :
19948 $as_echo_n "(cached) " >&6
19952 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19956 for as_dir in $PATH
19959 test -z "$as_dir" && as_dir=.
19960 for ac_exec_ext in '' $ac_executable_extensions; do
19961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19962 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19970 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19974 RUSERS=$ac_cv_path_RUSERS
19975 if test -n "$RUSERS"; then
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
19977 $as_echo "$RUSERS" >&6; }
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19980 $as_echo "no" >&6; }
19985 missing_dir=`cd $ac_aux_dir && pwd`
19986 # expand $ac_aux_dir to an absolute path
19987 am_aux_dir=`cd $ac_aux_dir && pwd`
19989 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19990 # Use eval to expand $SHELL
19991 if eval "$MISSING --run true"; then
19992 am_missing_run="$MISSING --run "
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19996 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20000 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20003 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20006 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20009 # Extract the first word of "locate", so it can be a program name with args.
20010 set dummy locate; ac_word=$2
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20012 $as_echo_n "checking for $ac_word... " >&6; }
20013 if ${ac_cv_path_LOCATE+:} false; then :
20014 $as_echo_n "(cached) " >&6
20018 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20022 for as_dir in $PATH
20025 test -z "$as_dir" && as_dir=.
20026 for ac_exec_ext in '' $ac_executable_extensions; do
20027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20028 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20039 LOCATE=$ac_cv_path_LOCATE
20040 if test -n "$LOCATE"; then
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20042 $as_echo "$LOCATE" >&6; }
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045 $as_echo "no" >&6; }
20049 # Extract the first word of "dirname", so it can be a program name with args.
20050 set dummy dirname; ac_word=$2
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20052 $as_echo_n "checking for $ac_word... " >&6; }
20053 if ${ac_cv_path_DIRNAME+:} false; then :
20054 $as_echo_n "(cached) " >&6
20058 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20062 for as_dir in $PATH
20065 test -z "$as_dir" && as_dir=.
20066 for ac_exec_ext in '' $ac_executable_extensions; do
20067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20068 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20079 DIRNAME=$ac_cv_path_DIRNAME
20080 if test -n "$DIRNAME"; then
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20082 $as_echo "$DIRNAME" >&6; }
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20085 $as_echo "no" >&6; }
20089 # Extract the first word of "grep", so it can be a program name with args.
20090 set dummy grep; ac_word=$2
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20092 $as_echo_n "checking for $ac_word... " >&6; }
20093 if ${ac_cv_path_GREP+:} false; then :
20094 $as_echo_n "(cached) " >&6
20098 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20102 for as_dir in $PATH
20105 test -z "$as_dir" && as_dir=.
20106 for ac_exec_ext in '' $ac_executable_extensions; do
20107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20108 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20119 GREP=$ac_cv_path_GREP
20120 if test -n "$GREP"; then
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20122 $as_echo "$GREP" >&6; }
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20125 $as_echo "no" >&6; }
20132 if test "x$WITH_THREADS" = "xyes"; then
20133 if test $ac_cv_prog_suncc = "yes"; then
20134 CFLAGS="$CFLAGS -mt"
20137 for ac_header in pthread.h
20139 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20140 if test "x$ac_cv_header_pthread_h" = xyes; then :
20141 cat >>confdefs.h <<_ACEOF
20142 #define HAVE_PTHREAD_H 1
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20153 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20154 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20155 $as_echo_n "(cached) " >&6
20157 ac_check_lib_save_LIBS=$LIBS
20158 LIBS="-lpthread $LIBS"
20159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h. */
20162 /* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20168 char pthread_create ();
20172 return pthread_create ();
20177 if ac_fn_c_try_link "$LINENO"; then :
20178 ac_cv_lib_pthread_pthread_create=yes
20180 ac_cv_lib_pthread_pthread_create=no
20182 rm -f core conftest.err conftest.$ac_objext \
20183 conftest$ac_exeext conftest.$ac_ext
20184 LIBS=$ac_check_lib_save_LIBS
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20187 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20188 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20189 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20190 LIBS="-lpthread $LIBS"
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20193 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20194 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20195 $as_echo_n "(cached) " >&6
20197 ac_check_lib_save_LIBS=$LIBS
20199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20200 /* end confdefs.h. */
20202 /* Override any GCC internal prototype to avoid an error.
20203 Use char because int might match the return type of a GCC
20204 builtin and then its argument prototype would still apply. */
20208 char pthread_create ();
20212 return pthread_create ();
20217 if ac_fn_c_try_link "$LINENO"; then :
20218 ac_cv_lib_c_r_pthread_create=yes
20220 ac_cv_lib_c_r_pthread_create=no
20222 rm -f core conftest.err conftest.$ac_objext \
20223 conftest$ac_exeext conftest.$ac_ext
20224 LIBS=$ac_check_lib_save_LIBS
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20227 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20228 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20229 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20240 if test "x$WITH_THREADS" != "xyes"; then
20242 ac_cv_header_pthread_h="no"
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20247 $as_echo_n "checking for library containing sem_init... " >&6; }
20248 if ${ac_cv_search_sem_init+:} false; then :
20249 $as_echo_n "(cached) " >&6
20251 ac_func_search_save_LIBS=$LIBS
20252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253 /* end confdefs.h. */
20255 /* Override any GCC internal prototype to avoid an error.
20256 Use char because int might match the return type of a GCC
20257 builtin and then its argument prototype would still apply. */
20265 return sem_init ();
20270 for ac_lib in '' pthread sem posix4 rt semaphore; do
20271 if test -z "$ac_lib"; then
20272 ac_res="none required"
20275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20277 if ac_fn_c_try_link "$LINENO"; then :
20278 ac_cv_search_sem_init=$ac_res
20280 rm -f core conftest.err conftest.$ac_objext \
20282 if ${ac_cv_search_sem_init+:} false; then :
20286 if ${ac_cv_search_sem_init+:} false; then :
20289 ac_cv_search_sem_init=no
20291 rm conftest.$ac_ext
20292 LIBS=$ac_func_search_save_LIBS
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20295 $as_echo "$ac_cv_search_sem_init" >&6; }
20296 ac_res=$ac_cv_search_sem_init
20297 if test "$ac_res" != no; then :
20298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20301 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
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20308 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20309 if ${ac_cv_lib_socket_getsockname+:} false; then :
20310 $as_echo_n "(cached) " >&6
20312 ac_check_lib_save_LIBS=$LIBS
20313 LIBS="-lsocket $LIBS"
20314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20315 /* end confdefs.h. */
20317 /* Override any GCC internal prototype to avoid an error.
20318 Use char because int might match the return type of a GCC
20319 builtin and then its argument prototype would still apply. */
20323 char getsockname ();
20327 return getsockname ();
20332 if ac_fn_c_try_link "$LINENO"; then :
20333 ac_cv_lib_socket_getsockname=yes
20335 ac_cv_lib_socket_getsockname=no
20337 rm -f core conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20342 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20343 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20344 cat >>confdefs.h <<_ACEOF
20345 #define HAVE_LIBSOCKET 1
20348 LIBS="-lsocket $LIBS"
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20354 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20355 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20356 $as_echo_n "(cached) " >&6
20358 ac_check_lib_save_LIBS=$LIBS
20359 LIBS="-lresolv $LIBS"
20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h. */
20363 /* Override any GCC internal prototype to avoid an error.
20364 Use char because int might match the return type of a GCC
20365 builtin and then its argument prototype would still apply. */
20373 return inet_aton ();
20378 if ac_fn_c_try_link "$LINENO"; then :
20379 ac_cv_lib_resolv_inet_aton=yes
20381 ac_cv_lib_resolv_inet_aton=no
20383 rm -f core conftest.err conftest.$ac_objext \
20384 conftest$ac_exeext conftest.$ac_ext
20385 LIBS=$ac_check_lib_save_LIBS
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20388 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20389 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20390 cat >>confdefs.h <<_ACEOF
20391 #define HAVE_LIBRESOLV 1
20394 LIBS="-lresolv $LIBS"
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20400 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20401 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20402 $as_echo_n "(cached) " >&6
20404 ac_check_lib_save_LIBS=$LIBS
20406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h. */
20409 /* Override any GCC internal prototype to avoid an error.
20410 Use char because int might match the return type of a GCC
20411 builtin and then its argument prototype would still apply. */
20419 return inet_ntoa ();
20424 if ac_fn_c_try_link "$LINENO"; then :
20425 ac_cv_lib_nsl_inet_ntoa=yes
20427 ac_cv_lib_nsl_inet_ntoa=no
20429 rm -f core conftest.err conftest.$ac_objext \
20430 conftest$ac_exeext conftest.$ac_ext
20431 LIBS=$ac_check_lib_save_LIBS
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20434 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20435 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20436 cat >>confdefs.h <<_ACEOF
20437 #define HAVE_LIBNSL 1
20446 if test "x$WITH_OPENSSL" = xyes; then
20448 old_LDFLAGS="$LDFLAGS"
20449 if test "x$OPENSSL_LIB_DIR" != "x"; then
20450 LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20453 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20454 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20455 $as_echo_n "(cached) " >&6
20457 ac_check_lib_save_LIBS=$LIBS
20458 LIBS="-lcrypto $LIBS"
20459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h. */
20462 /* Override any GCC internal prototype to avoid an error.
20463 Use char because int might match the return type of a GCC
20464 builtin and then its argument prototype would still apply. */
20477 if ac_fn_c_try_link "$LINENO"; then :
20478 ac_cv_lib_crypto_DH_new=yes
20480 ac_cv_lib_crypto_DH_new=no
20482 rm -f core conftest.err conftest.$ac_objext \
20483 conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20487 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20488 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20490 LIBS="-lcrypto $LIBS"
20492 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20495 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20496 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20497 $as_echo_n "(cached) " >&6
20499 ac_check_lib_save_LIBS=$LIBS
20501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20502 /* end confdefs.h. */
20504 /* Override any GCC internal prototype to avoid an error.
20505 Use char because int might match the return type of a GCC
20506 builtin and then its argument prototype would still apply. */
20519 if ac_fn_c_try_link "$LINENO"; then :
20520 ac_cv_lib_ssl_SSL_new=yes
20522 ac_cv_lib_ssl_SSL_new=no
20524 rm -f core conftest.err conftest.$ac_objext \
20525 conftest$ac_exeext conftest.$ac_ext
20526 LIBS=$ac_check_lib_save_LIBS
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20529 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20530 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20533 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20535 if test "x$OPENSSL_LIB_DIR" != "x"; then
20536 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20538 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20546 LDFLAGS="$old_LDFLAGS"
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20550 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20551 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20552 $as_echo_n "(cached) " >&6
20554 ac_check_lib_save_LIBS=$LIBS
20555 LIBS="-lws2_32 $LIBS"
20556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20557 /* end confdefs.h. */
20559 /* Override any GCC internal prototype to avoid an error.
20560 Use char because int might match the return type of a GCC
20561 builtin and then its argument prototype would still apply. */
20574 if ac_fn_c_try_link "$LINENO"; then :
20575 ac_cv_lib_ws2_32_htonl=yes
20577 ac_cv_lib_ws2_32_htonl=no
20579 rm -f core conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext conftest.$ac_ext
20581 LIBS=$ac_check_lib_save_LIBS
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20584 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20585 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20586 cat >>confdefs.h <<_ACEOF
20587 #define HAVE_LIBWS2_32 1
20590 LIBS="-lws2_32 $LIBS"
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20597 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20598 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20599 $as_echo_n "(cached) " >&6
20601 ac_check_lib_save_LIBS=$LIBS
20602 LIBS="-lpcap $LIBS"
20603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20604 /* end confdefs.h. */
20606 /* Override any GCC internal prototype to avoid an error.
20607 Use char because int might match the return type of a GCC
20608 builtin and then its argument prototype would still apply. */
20612 char pcap_open_live ();
20616 return pcap_open_live ();
20621 if ac_fn_c_try_link "$LINENO"; then :
20622 ac_cv_lib_pcap_pcap_open_live=yes
20624 ac_cv_lib_pcap_pcap_open_live=no
20626 rm -f core conftest.err conftest.$ac_objext \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20631 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20632 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20635 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20640 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20646 $as_echo_n "checking for a readline compatible library... " >&6; }
20647 if ${ac_cv_lib_readline+:} false; then :
20648 $as_echo_n "(cached) " >&6
20652 for readline_lib in readline edit editline; do
20653 for termcap_lib in "" termcap curses ncurses; do
20654 if test -z "$termcap_lib"; then
20655 TRY_LIB="-l$readline_lib"
20657 TRY_LIB="-l$readline_lib -l$termcap_lib"
20659 LIBS="$ORIG_LIBS $TRY_LIB"
20660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h. */
20663 /* Override any GCC internal prototype to avoid an error.
20664 Use char because int might match the return type of a GCC
20665 builtin and then its argument prototype would still apply. */
20673 return readline ();
20678 if ac_fn_c_try_link "$LINENO"; then :
20679 ac_cv_lib_readline="$TRY_LIB"
20681 rm -f core conftest.err conftest.$ac_objext \
20682 conftest$ac_exeext conftest.$ac_ext
20683 if test -n "$ac_cv_lib_readline"; then
20687 if test -n "$ac_cv_lib_readline"; then
20691 if test -z "$ac_cv_lib_readline"; then
20692 ac_cv_lib_readline="no"
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20698 $as_echo "$ac_cv_lib_readline" >&6; }
20700 if test "$ac_cv_lib_readline" != "no"; then
20701 LIBREADLINE="$ac_cv_lib_readline"
20703 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20705 for ac_header in readline.h readline/readline.h
20707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20708 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20710 cat >>confdefs.h <<_ACEOF
20711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20719 $as_echo_n "checking whether readline supports history... " >&6; }
20720 if ${ac_cv_lib_readline_history+:} false; then :
20721 $as_echo_n "(cached) " >&6
20724 ac_cv_lib_readline_history="no"
20725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20726 /* end confdefs.h. */
20728 /* Override any GCC internal prototype to avoid an error.
20729 Use char because int might match the return type of a GCC
20730 builtin and then its argument prototype would still apply. */
20734 char add_history ();
20738 return add_history ();
20743 if ac_fn_c_try_link "$LINENO"; then :
20744 ac_cv_lib_readline_history="yes"
20746 rm -f core conftest.err conftest.$ac_objext \
20747 conftest$ac_exeext conftest.$ac_ext
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20751 $as_echo "$ac_cv_lib_readline_history" >&6; }
20752 if test "$ac_cv_lib_readline_history" = "yes"; then
20754 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20756 for ac_header in history.h readline/history.h
20758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20759 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20760 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20761 cat >>confdefs.h <<_ACEOF
20762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20777 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20780 CFLAGS="$CFLAGS -DDARWIN"
20781 LIBS="-framework DirectoryService $LIBS"
20783 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
20788 ac_header_dirent=no
20789 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20790 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20792 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20793 if eval \${$as_ac_Header+:} false; then :
20794 $as_echo_n "(cached) " >&6
20796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20797 /* end confdefs.h. */
20798 #include <sys/types.h>
20810 if ac_fn_c_try_compile "$LINENO"; then :
20811 eval "$as_ac_Header=yes"
20813 eval "$as_ac_Header=no"
20815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817 eval ac_res=\$$as_ac_Header
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20819 $as_echo "$ac_res" >&6; }
20820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20821 cat >>confdefs.h <<_ACEOF
20822 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20825 ac_header_dirent=$ac_hdr; break
20829 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20830 if test $ac_header_dirent = dirent.h; then
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20832 $as_echo_n "checking for library containing opendir... " >&6; }
20833 if ${ac_cv_search_opendir+:} false; then :
20834 $as_echo_n "(cached) " >&6
20836 ac_func_search_save_LIBS=$LIBS
20837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h. */
20840 /* Override any GCC internal prototype to avoid an error.
20841 Use char because int might match the return type of a GCC
20842 builtin and then its argument prototype would still apply. */
20855 for ac_lib in '' dir; do
20856 if test -z "$ac_lib"; then
20857 ac_res="none required"
20860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20862 if ac_fn_c_try_link "$LINENO"; then :
20863 ac_cv_search_opendir=$ac_res
20865 rm -f core conftest.err conftest.$ac_objext \
20867 if ${ac_cv_search_opendir+:} false; then :
20871 if ${ac_cv_search_opendir+:} false; then :
20874 ac_cv_search_opendir=no
20876 rm conftest.$ac_ext
20877 LIBS=$ac_func_search_save_LIBS
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20880 $as_echo "$ac_cv_search_opendir" >&6; }
20881 ac_res=$ac_cv_search_opendir
20882 if test "$ac_res" != no; then :
20883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20889 $as_echo_n "checking for library containing opendir... " >&6; }
20890 if ${ac_cv_search_opendir+:} false; then :
20891 $as_echo_n "(cached) " >&6
20893 ac_func_search_save_LIBS=$LIBS
20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h. */
20897 /* Override any GCC internal prototype to avoid an error.
20898 Use char because int might match the return type of a GCC
20899 builtin and then its argument prototype would still apply. */
20912 for ac_lib in '' x; do
20913 if test -z "$ac_lib"; then
20914 ac_res="none required"
20917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20919 if ac_fn_c_try_link "$LINENO"; then :
20920 ac_cv_search_opendir=$ac_res
20922 rm -f core conftest.err conftest.$ac_objext \
20924 if ${ac_cv_search_opendir+:} false; then :
20928 if ${ac_cv_search_opendir+:} false; then :
20931 ac_cv_search_opendir=no
20933 rm conftest.$ac_ext
20934 LIBS=$ac_func_search_save_LIBS
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20937 $as_echo "$ac_cv_search_opendir" >&6; }
20938 ac_res=$ac_cv_search_opendir
20939 if test "$ac_res" != no; then :
20940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20947 $as_echo_n "checking for ANSI C header files... " >&6; }
20948 if ${ac_cv_header_stdc+:} false; then :
20949 $as_echo_n "(cached) " >&6
20951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20952 /* end confdefs.h. */
20953 #include <stdlib.h>
20954 #include <stdarg.h>
20955 #include <string.h>
20966 if ac_fn_c_try_compile "$LINENO"; then :
20967 ac_cv_header_stdc=yes
20969 ac_cv_header_stdc=no
20971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20973 if test $ac_cv_header_stdc = yes; then
20974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h. */
20977 #include <string.h>
20980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20981 $EGREP "memchr" >/dev/null 2>&1; then :
20984 ac_cv_header_stdc=no
20990 if test $ac_cv_header_stdc = yes; then
20991 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h. */
20994 #include <stdlib.h>
20997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20998 $EGREP "free" >/dev/null 2>&1; then :
21001 ac_cv_header_stdc=no
21007 if test $ac_cv_header_stdc = yes; then
21008 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21009 if test "$cross_compiling" = yes; then :
21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h. */
21015 #include <stdlib.h>
21016 #if ((' ' & 0x0FF) == 0x020)
21017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21020 # define ISLOWER(c) \
21021 (('a' <= (c) && (c) <= 'i') \
21022 || ('j' <= (c) && (c) <= 'r') \
21023 || ('s' <= (c) && (c) <= 'z'))
21024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21032 for (i = 0; i < 256; i++)
21033 if (XOR (islower (i), ISLOWER (i))
21034 || toupper (i) != TOUPPER (i))
21039 if ac_fn_c_try_run "$LINENO"; then :
21042 ac_cv_header_stdc=no
21044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21045 conftest.$ac_objext conftest.beam conftest.$ac_ext
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21051 $as_echo "$ac_cv_header_stdc" >&6; }
21052 if test $ac_cv_header_stdc = yes; then
21054 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21059 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21060 if ${ac_cv_header_time+:} false; then :
21061 $as_echo_n "(cached) " >&6
21063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21064 /* end confdefs.h. */
21065 #include <sys/types.h>
21066 #include <sys/time.h>
21072 if ((struct tm *) 0)
21078 if ac_fn_c_try_compile "$LINENO"; then :
21079 ac_cv_header_time=yes
21081 ac_cv_header_time=no
21083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21086 $as_echo "$ac_cv_header_time" >&6; }
21087 if test $ac_cv_header_time = yes; then
21089 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21094 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21095 if ${ac_cv_header_sys_wait_h+:} false; then :
21096 $as_echo_n "(cached) " >&6
21098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21099 /* end confdefs.h. */
21100 #include <sys/types.h>
21101 #include <sys/wait.h>
21102 #ifndef WEXITSTATUS
21103 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21106 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21114 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21119 if ac_fn_c_try_compile "$LINENO"; then :
21120 ac_cv_header_sys_wait_h=yes
21122 ac_cv_header_sys_wait_h=no
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21127 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21128 if test $ac_cv_header_sys_wait_h = yes; then
21130 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21177 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21178 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21179 cat >>confdefs.h <<_ACEOF
21180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21188 for ac_header in net/if.h
21190 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21191 # include <sys/socket.h>
21195 if test "x$ac_cv_header_net_if_h" = xyes; then :
21196 cat >>confdefs.h <<_ACEOF
21197 #define HAVE_NET_IF_H 1
21206 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21207 if test "x$ac_cv_header_regex_h" = xyes; then :
21209 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21214 if test "x$ac_cv_header_regex_h" = "xyes"; then
21217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21218 /* end confdefs.h. */
21220 #ifdef REG_EXTENDED
21225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21226 $EGREP "yes" >/dev/null 2>&1; then :
21228 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21237 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21240 $as_echo "#define OSFC2 /**/" >>confdefs.h
21244 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21247 $as_echo "#define OSFSIA /**/" >>confdefs.h
21251 if test "x$WITH_OPENSSL" = xyes; then
21253 old_LDFLAGS="$LDFLAGS"
21255 OPENSSL_INCLUDE="-DNO_OPENSSL"
21257 if test "x$OPENSSL_LIB_DIR" != "x"; then
21258 LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
21262 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
21263 if ${ac_cv_lib_crypto_DH_new+:} false; then :
21264 $as_echo_n "(cached) " >&6
21266 ac_check_lib_save_LIBS=$LIBS
21267 LIBS="-lcrypto $LIBS"
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h. */
21271 /* Override any GCC internal prototype to avoid an error.
21272 Use char because int might match the return type of a GCC
21273 builtin and then its argument prototype would still apply. */
21286 if ac_fn_c_try_link "$LINENO"; then :
21287 ac_cv_lib_crypto_DH_new=yes
21289 ac_cv_lib_crypto_DH_new=no
21291 rm -f core conftest.err conftest.$ac_objext \
21292 conftest$ac_exeext conftest.$ac_ext
21293 LIBS=$ac_check_lib_save_LIBS
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
21296 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
21297 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
21299 LIBS="-lcrypto $LIBS"
21301 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
21304 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
21305 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
21306 $as_echo_n "(cached) " >&6
21308 ac_check_lib_save_LIBS=$LIBS
21310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21311 /* end confdefs.h. */
21313 /* Override any GCC internal prototype to avoid an error.
21314 Use char because int might match the return type of a GCC
21315 builtin and then its argument prototype would still apply. */
21328 if ac_fn_c_try_link "$LINENO"; then :
21329 ac_cv_lib_ssl_SSL_new=yes
21331 ac_cv_lib_ssl_SSL_new=no
21333 rm -f core conftest.err conftest.$ac_objext \
21334 conftest$ac_exeext conftest.$ac_ext
21335 LIBS=$ac_check_lib_save_LIBS
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
21338 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
21339 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
21342 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
21344 if test "x$OPENSSL_LIB_DIR" != "x"; then
21345 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21347 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21348 LIBS="$OPENSSL_LIBS $LIBS"
21352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21354 as_fn_error $? "failed linking to libssl
21355 See \`config.log' for more details" "$LINENO" 5; }
21364 old_CPPFLAGS=$CPPFLAGS
21366 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21367 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21368 CFLAGS="-I$OPENSSL_INCLUDE_DIR $CFLAGS"
21371 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21383 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21384 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21385 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21386 cat >>confdefs.h <<_ACEOF
21387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21394 as_fn_error $? "failed locating OpenSSL headers
21395 See \`config.log' for more details" "$LINENO" 5; }
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21404 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21406 /* end confdefs.h. */
21407 #include <openssl/crypto.h>
21408 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21414 $EGREP "yes" >/dev/null 2>&1; then :
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21417 $as_echo "yes" >&6; }
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21422 $as_echo "no" >&6; }
21423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21425 as_fn_error $? "OpenSSL version too old
21426 See \`config.log' for more details" "$LINENO" 5; }
21433 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21434 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21436 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
21440 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
21441 if test "$cross_compiling" = yes; then :
21442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21444 as_fn_error $? "cannot run test program while cross compiling
21445 See \`config.log' for more details" "$LINENO" 5; }
21447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21448 /* end confdefs.h. */
21451 #include <openssl/opensslv.h>
21452 #include <openssl/crypto.h>
21458 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
21461 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
21470 if ac_fn_c_try_run "$LINENO"; then :
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21473 $as_echo "yes" >&6; }
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21478 $as_echo "no" >&6; }
21479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21481 as_fn_error $? "OpenSSL library version does not match header version
21482 See \`config.log' for more details" "$LINENO" 5; }
21486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21487 conftest.$ac_objext conftest.beam conftest.$ac_ext
21491 if test "x$OPENSSL_LIBS" = x; then
21493 LDFLAGS="$old_LDFLAGS"
21495 if test "x$OPENSSL_INCLUDE" = x; then
21496 CPPFLAGS=$old_CPPFLAGS
21503 export OPENSSL_LIBS
21505 if test "x$PCAP_LIBS" = x; then
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21507 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21509 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21510 if test "x$ac_cv_header_pcap_h" = xyes; then :
21512 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21517 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21524 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21525 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21526 $as_echo_n "(cached) " >&6
21528 ac_check_lib_save_LIBS=$LIBS
21529 LIBS="-lpcap $LIBS"
21530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21531 /* end confdefs.h. */
21533 /* Override any GCC internal prototype to avoid an error.
21534 Use char because int might match the return type of a GCC
21535 builtin and then its argument prototype would still apply. */
21539 char pcap_fopen_offline ();
21543 return pcap_fopen_offline ();
21548 if ac_fn_c_try_link "$LINENO"; then :
21549 ac_cv_lib_pcap_pcap_fopen_offline=yes
21551 ac_cv_lib_pcap_pcap_fopen_offline=no
21553 rm -f core conftest.err conftest.$ac_objext \
21554 conftest$ac_exeext conftest.$ac_ext
21555 LIBS=$ac_check_lib_save_LIBS
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21558 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21559 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21561 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21567 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21568 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21569 $as_echo_n "(cached) " >&6
21571 ac_check_lib_save_LIBS=$LIBS
21572 LIBS="-lpcap $LIBS"
21573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h. */
21576 /* Override any GCC internal prototype to avoid an error.
21577 Use char because int might match the return type of a GCC
21578 builtin and then its argument prototype would still apply. */
21582 char pcap_dump_fopen ();
21586 return pcap_dump_fopen ();
21591 if ac_fn_c_try_link "$LINENO"; then :
21592 ac_cv_lib_pcap_pcap_dump_fopen=yes
21594 ac_cv_lib_pcap_pcap_dump_fopen=no
21596 rm -f core conftest.err conftest.$ac_objext \
21597 conftest$ac_exeext conftest.$ac_ext
21598 LIBS=$ac_check_lib_save_LIBS
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21601 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21602 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21604 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21613 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21614 if test "x$ac_cv_type_off_t" = xyes; then :
21618 cat >>confdefs.h <<_ACEOF
21619 #define off_t long int
21624 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21625 if test "x$ac_cv_type_pid_t" = xyes; then :
21629 cat >>confdefs.h <<_ACEOF
21635 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21636 if test "x$ac_cv_type_size_t" = xyes; then :
21640 cat >>confdefs.h <<_ACEOF
21641 #define size_t unsigned int
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21647 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21648 if ${ac_cv_type_uid_t+:} false; then :
21649 $as_echo_n "(cached) " >&6
21651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653 #include <sys/types.h>
21656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21657 $EGREP "uid_t" >/dev/null 2>&1; then :
21658 ac_cv_type_uid_t=yes
21660 ac_cv_type_uid_t=no
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21666 $as_echo "$ac_cv_type_uid_t" >&6; }
21667 if test $ac_cv_type_uid_t = no; then
21669 $as_echo "#define uid_t int" >>confdefs.h
21672 $as_echo "#define gid_t int" >>confdefs.h
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21679 $as_echo_n "checking for socklen_t... " >&6; }
21680 if ${ac_cv_type_socklen_t+:} false; then :
21681 $as_echo_n "(cached) " >&6
21683 ac_cv_type_socklen_t=no
21684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21685 /* end confdefs.h. */
21686 #ifdef HAVE_SYS_TYPES_H
21687 #include <sys/types.h>
21689 #ifdef HAVE_SYS_SOCKET_H
21690 #include <sys/socket.h>
21701 if ac_fn_c_try_compile "$LINENO"; then :
21702 ac_cv_type_socklen_t=yes
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21709 $as_echo "$ac_cv_type_socklen_t" >&6; }
21711 if test "$ac_cv_type_socklen_t" != "yes"; then
21713 $as_echo "#define socklen_t int" >>confdefs.h
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21720 $as_echo_n "checking for uint8_t... " >&6; }
21721 if ${ac_cv_type_uint8_t+:} false; then :
21722 $as_echo_n "(cached) " >&6
21724 ac_cv_type_uint8_t=no
21725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h. */
21727 #ifdef HAVE_INTTYPES_H
21728 #include <inttypes.h>
21730 #ifdef HAVE_STDINT_H
21731 #include <stdint.h>
21742 if ac_fn_c_try_compile "$LINENO"; then :
21743 ac_cv_type_uint8_t=yes
21745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21750 $as_echo "$ac_cv_type_uint8_t" >&6; }
21752 if test "$ac_cv_type_uint8_t" != "yes"; then
21754 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21761 $as_echo_n "checking for uint16_t... " >&6; }
21762 if ${ac_cv_type_uint16_t+:} false; then :
21763 $as_echo_n "(cached) " >&6
21765 ac_cv_type_uint16_t=no
21766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21767 /* end confdefs.h. */
21768 #ifdef HAVE_INTTYPES_H
21769 #include <inttypes.h>
21771 #ifdef HAVE_STDINT_H
21772 #include <stdint.h>
21783 if ac_fn_c_try_compile "$LINENO"; then :
21784 ac_cv_type_uint16_t=yes
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21791 $as_echo "$ac_cv_type_uint16_t" >&6; }
21793 if test "$ac_cv_type_uint16_t" != "yes"; then
21795 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21802 $as_echo_n "checking for uint32_t... " >&6; }
21803 if ${ac_cv_type_uint32_t+:} false; then :
21804 $as_echo_n "(cached) " >&6
21806 ac_cv_type_uint32_t=no
21807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h. */
21809 #ifdef HAVE_INTTYPES_H
21810 #include <inttypes.h>
21812 #ifdef HAVE_STDINT_H
21813 #include <stdint.h>
21824 if ac_fn_c_try_compile "$LINENO"; then :
21825 ac_cv_type_uint32_t=yes
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21832 $as_echo "$ac_cv_type_uint32_t" >&6; }
21834 if test "$ac_cv_type_uint32_t" != "yes"; then
21836 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21841 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "
21842 #ifdef HAVE_SIGNAL_H
21843 # include <signal.h>
21847 if test "x$ac_cv_type_sig_t" = xyes; then :
21849 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
21854 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21855 #ifdef HAVE_NETINET_IN_H
21856 #include <netinet/in.h>
21860 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21862 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21867 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21868 #ifdef HAVE_NETINET_IN_H
21869 #include <netinet/in.h>
21871 #ifdef HAVE_SYS_SOCKET_H
21872 #include <sys/socket.h>
21876 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21878 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21883 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21884 #ifdef HAVE_NETINET_IN_H
21885 #include <netinet/in.h>
21889 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21891 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21896 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21897 #ifdef HAVE_SYS_TYPES_H
21898 #include <sys/types.h>
21900 #ifdef HAVE_SYS_SOCKET_H
21901 #include <sys/socket.h>
21903 #ifdef HAVE_NETDB_H
21908 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21910 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21953 cat >>confdefs.h <<_ACEOF
21954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21971 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
21972 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
21973 $as_echo_n "(cached) " >&6
21975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21976 /* end confdefs.h. */
21979 #include <string.h>
21980 #ifdef HAVE_UNISTD_H
21981 #include <unistd.h>
21983 #ifdef HAVE_CRYPT_H
21986 #ifdef HAVE_ERRNO_H
21989 #ifdef HAVE_RESOURCE_H
21990 #include <resource.h>
21992 #ifdef HAVE_GETOPT_H
21993 #include <getopt.h>
21995 #ifdef HAVE_MALLOC_H
21996 #include <malloc.h>
22001 #ifdef HAVE_UTMPX_H
22004 #ifdef HAVE_SYS_SELECT_H
22005 #include <sys/select.h>
22007 #ifdef HAVE_DLFCN_H
22010 #ifdef HAVE_REGEX_H
22013 #ifdef HAVE_SYSLOG_H
22014 #include <syslog.h>
22016 #ifdef HAVE_INTTYPES_H
22017 #include <inttypes.h>
22019 #ifdef HAVE_STDINT_H
22020 #include <stdint.h>
22022 #ifdef HAVE_ARPA_INET_H
22023 #include <arpa/inet.h>
22029 char *(*pfn) = (char *(*)) $ac_func
22034 if ac_fn_c_try_compile "$LINENO"; then :
22035 eval "radius_cv_decl_needed_$ac_func=no"
22037 eval "radius_cv_decl_needed_$ac_func=yes"
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22042 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22044 $as_echo "yes" >&6; }
22045 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22046 cat >>confdefs.h <<_ACEOF
22047 #define $radius_tr_decl 1
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22052 $as_echo "no" >&6; }
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22059 $as_echo_n "checking return type of signal handlers... " >&6; }
22060 if ${ac_cv_type_signal+:} false; then :
22061 $as_echo_n "(cached) " >&6
22063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h. */
22065 #include <sys/types.h>
22066 #include <signal.h>
22071 return *(signal (0, 0)) (0) == 1;
22076 if ac_fn_c_try_compile "$LINENO"; then :
22077 ac_cv_type_signal=int
22079 ac_cv_type_signal=void
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22084 $as_echo "$ac_cv_type_signal" >&6; }
22086 cat >>confdefs.h <<_ACEOF
22087 #define RETSIGTYPE $ac_cv_type_signal
22092 if test "x$ac_cv_header_utmpx_h" = "xyes"
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
22096 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
22099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22100 /* end confdefs.h. */
22103 #ifdef HAVE_STDDEF_H
22104 #include <stddef.h>
22107 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22113 int foo = offsetof(struct utmpx, ut_xtime)
22118 if ac_fn_c_try_compile "$LINENO"; then :
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22126 if test "x$has_element" != "x"; then
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22128 $as_echo "yes" >&6; }
22129 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22132 $as_echo "no" >&6; }
22133 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22136 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22139 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
22146 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
22149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150 /* end confdefs.h. */
22152 #include <netinet/in.h>
22153 #ifdef HAVE_STDDEF_H
22154 #include <stddef.h>
22157 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22163 int foo = offsetof(struct in_pktinfo, ipi_addr)
22168 if ac_fn_c_try_compile "$LINENO"; then :
22173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22175 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22176 if test "x$has_element" != "x"; then
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22178 $as_echo "yes" >&6; }
22179 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22182 $as_echo "no" >&6; }
22183 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22186 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22189 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
22195 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h. */
22201 #include <netinet/in.h>
22202 #ifdef HAVE_STDDEF_H
22203 #include <stddef.h>
22206 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22212 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22217 if ac_fn_c_try_compile "$LINENO"; then :
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22225 if test "x$has_element" != "x"; then
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22227 $as_echo "yes" >&6; }
22228 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22231 $as_echo "no" >&6; }
22232 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22235 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22238 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22244 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22245 if ${ac_cv_c_const+:} false; then :
22246 $as_echo_n "(cached) " >&6
22248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22249 /* end confdefs.h. */
22255 #ifndef __cplusplus
22256 /* Ultrix mips cc rejects this sort of thing. */
22257 typedef int charset[2];
22258 const charset cs = { 0, 0 };
22259 /* SunOS 4.1.1 cc rejects this. */
22260 char const *const *pcpcc;
22262 /* NEC SVR4.0.2 mips cc rejects this. */
22263 struct point {int x, y;};
22264 static struct point const zero = {0,0};
22265 /* AIX XL C 1.02.0.0 rejects this.
22266 It does not let you subtract one const X* pointer from another in
22267 an arm of an if-expression whose if-part is not a constant
22269 const char *g = "string";
22270 pcpcc = &g + (g ? g-g : 0);
22271 /* HPUX 7.0 cc rejects these. */
22273 ppc = (char**) pcpcc;
22274 pcpcc = (char const *const *) ppc;
22275 { /* SCO 3.2v4 cc rejects this sort of thing. */
22278 char const *s = 0 ? (char *) 0 : (char const *) 0;
22283 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22284 int x[] = {25, 17};
22285 const int *foo = &x[0];
22288 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22289 typedef const int *iptr;
22293 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22294 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22295 struct s { int j; const int *ap[3]; } bx;
22296 struct s *b = &bx; b->j = 5;
22298 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22299 const int foo = 10;
22300 if (!foo) return 0;
22302 return !cs[0] && !zero.x;
22309 if ac_fn_c_try_compile "$LINENO"; then :
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22317 $as_echo "$ac_cv_c_const" >&6; }
22318 if test $ac_cv_c_const = no; then
22320 $as_echo "#define const /**/" >>confdefs.h
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22326 $as_echo_n "checking type of OS... " >&6; }
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22329 $as_echo "$OS" >&6; }
22330 if test "$OS" = "OS/2"; then
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22338 $as_echo_n "checking for developer gcc flags... " >&6; }
22339 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22340 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22341 CFLAGS="$CFLAGS $devflags"
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
22344 $as_echo "yes. Using $devflags" >&6; }
22347 CFLAGS="$CFLAGS -DNDEBUG"
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22350 $as_echo "no." >&6; }
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22355 $as_echo_n "checking for TLS... " >&6; }
22356 if test "$cross_compiling" = yes; then :
22359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22360 /* end confdefs.h. */
22361 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22363 if ac_fn_c_try_run "$LINENO"; then :
22368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22369 conftest.$ac_objext conftest.beam conftest.$ac_ext
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22373 $as_echo "$have_tls" >&6; }
22374 if test "$have_tls" = "yes"; then
22376 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22383 LIBS="$LIBS $LIBLTDL"
22384 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22385 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22387 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22394 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22395 if ${ac_cv_lib_crypt_crypt+:} false; then :
22396 $as_echo_n "(cached) " >&6
22398 ac_check_lib_save_LIBS=$LIBS
22399 LIBS="-lcrypt $LIBS"
22400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22401 /* end confdefs.h. */
22403 /* Override any GCC internal prototype to avoid an error.
22404 Use char because int might match the return type of a GCC
22405 builtin and then its argument prototype would still apply. */
22418 if ac_fn_c_try_link "$LINENO"; then :
22419 ac_cv_lib_crypt_crypt=yes
22421 ac_cv_lib_crypt_crypt=no
22423 rm -f core conftest.err conftest.$ac_objext \
22424 conftest$ac_exeext conftest.$ac_ext
22425 LIBS=$ac_check_lib_save_LIBS
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22428 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22429 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22434 if test "$CRYPTLIB" != ""; then
22436 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22439 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22440 if test "x$ac_cv_func_crypt" = xyes; then :
22442 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22449 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22450 if ${ac_cv_lib_cipher_setkey+:} false; then :
22451 $as_echo_n "(cached) " >&6
22453 ac_check_lib_save_LIBS=$LIBS
22454 LIBS="-lcipher $LIBS"
22455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22456 /* end confdefs.h. */
22458 /* Override any GCC internal prototype to avoid an error.
22459 Use char because int might match the return type of a GCC
22460 builtin and then its argument prototype would still apply. */
22473 if ac_fn_c_try_link "$LINENO"; then :
22474 ac_cv_lib_cipher_setkey=yes
22476 ac_cv_lib_cipher_setkey=no
22478 rm -f core conftest.err conftest.$ac_objext \
22479 conftest$ac_exeext conftest.$ac_ext
22480 LIBS=$ac_check_lib_save_LIBS
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22483 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22484 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22485 CRYPTLIB="${CRYPTLIB} -lcipher"
22492 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22495 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22498 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22500 gethostbyaddrrstyle=""
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22502 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22505 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22506 #ifdef HAVE_NETDB_H
22511 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22517 cat >>confdefs.h <<_ACEOF
22518 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22520 if test $ac_have_decl = 1; then :
22525 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22527 gethostbyaddrrstyle=BSD
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22529 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22535 if test "x$gethostbyaddrrstyle" = "x"; then
22536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h. */
22545 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22550 if ac_fn_c_try_link "$LINENO"; then :
22553 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22555 gethostbyaddrrstyle=GNU
22558 rm -f core conftest.err conftest.$ac_objext \
22559 conftest$ac_exeext conftest.$ac_ext
22561 if test "x$gethostbyaddrrstyle" = "x"; then
22562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563 /* end confdefs.h. */
22571 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22576 if ac_fn_c_try_link "$LINENO"; then :
22579 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22581 gethostbyaddrrstyle=SYSV
22584 rm -f core conftest.err conftest.$ac_objext \
22585 conftest$ac_exeext conftest.$ac_ext
22587 if test "x$gethostbyaddrrstyle" = "x"; then
22588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22589 /* end confdefs.h. */
22597 gethostbyaddr(NULL, 0, 0)
22602 if ac_fn_c_try_link "$LINENO"; then :
22605 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22607 gethostbyaddrrstyle=BSD
22610 rm -f core conftest.err conftest.$ac_objext \
22611 conftest$ac_exeext conftest.$ac_ext
22614 if test "x$gethostbyaddrrstyle" = "x"; then
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22616 $as_echo "none! It must not exist, here." >&6; }
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22619 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22622 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22624 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22627 gethostbynamerstyle=""
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22629 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22631 /* end confdefs.h. */
22639 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22644 if ac_fn_c_try_link "$LINENO"; then :
22647 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22649 gethostbynamerstyle=GNU
22652 rm -f core conftest.err conftest.$ac_objext \
22653 conftest$ac_exeext conftest.$ac_ext
22654 if test "x$gethostbynamerstyle" = "x"; then
22655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656 /* end confdefs.h. */
22664 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22669 if ac_fn_c_try_link "$LINENO"; then :
22672 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22674 gethostbynamerstyle=SYSV
22677 rm -f core conftest.err conftest.$ac_objext \
22678 conftest$ac_exeext conftest.$ac_ext
22680 if test "x$gethostbynamerstyle" = "x"; then
22681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h. */
22690 gethostbyname(NULL)
22695 if ac_fn_c_try_link "$LINENO"; then :
22698 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22700 gethostbynamerstyle=BSD
22703 rm -f core conftest.err conftest.$ac_objext \
22704 conftest$ac_exeext conftest.$ac_ext
22707 if test "x$gethostbynamerstyle" = "x"; then
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22709 $as_echo "none! It must not exist, here." >&6; }
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22712 $as_echo "${gethostbynamerstyle}-style" >&6; }
22715 if test "x$gethostbynamerstyle" = "xBSD"; then
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22717 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22721 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22724 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22728 $as_echo_n "checking ctime_r() syntax... " >&6; }
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h. */
22737 ctime_r(NULL, NULL, 0)
22742 if ac_fn_c_try_link "$LINENO"; then :
22745 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22747 ctimerstyle="SOLARIS"
22750 rm -f core conftest.err conftest.$ac_objext \
22751 conftest$ac_exeext conftest.$ac_ext
22752 if test "x$ctimerstyle" = "x"; then
22753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754 /* end confdefs.h. */
22761 ctime_r(NULL, NULL)
22766 if ac_fn_c_try_link "$LINENO"; then :
22769 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22771 ctimerstyle="POSIX"
22774 rm -f core conftest.err conftest.$ac_objext \
22775 conftest$ac_exeext conftest.$ac_ext
22778 if test "x$ctimerstyle" = "x"; then
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22780 $as_echo "none! It must not exist, here." >&6; }
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22783 $as_echo "${ctimerstyle}-style" >&6; }
22789 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22791 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22797 export top_builddir
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22799 $as_echo "top_builddir=$top_builddir" >&6; }
22805 mysubdirs="$LIBLTDLPATH"
22806 if test "x$EXPERIMENTAL" = "xyes"; then
22807 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22808 mysubdirs=`echo $mysubdirs $bar`
22810 for bar in `cat "${srcdir}"/src/modules/stable`; do
22811 if test -f "${srcdir}"/src/modules/$bar/configure; then
22812 mysubdirs="$mysubdirs src/modules/$bar"
22817 if test "x$EXPERIMENTAL" = "xyes"; then
22818 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22819 MODULES="$MODULES $foo"
22822 for foo in `cat "${srcdir}"/src/modules/stable`; do
22823 MODULES="$MODULES $foo"
22829 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22834 ac_config_commands="$ac_config_commands stamp-h"
22836 ac_config_commands="$ac_config_commands build-radpaths-h"
22838 ac_config_commands="$ac_config_commands main-chmod"
22840 ac_config_commands="$ac_config_commands scripts-chmod"
22846 USE_SHARED_LIBS=$enable_shared
22848 USE_STATIC_LIBS=$enable_static
22859 unset ac_cv_env_LIBS_set
22860 unset ac_cv_env_LIBS_value
22862 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"
22864 cat >confcache <<\_ACEOF
22865 # This file is a shell script that caches the results of configure
22866 # tests run on this system so they can be shared between configure
22867 # scripts and configure runs, see configure's option --config-cache.
22868 # It is not useful on other systems. If it contains results you don't
22869 # want to keep, you may remove or edit it.
22871 # config.status only pays attention to the cache file if you give it
22872 # the --recheck option to rerun configure.
22874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22876 # following values.
22880 # The following way of writing the cache mishandles newlines in values,
22881 # but we know of no workaround that is simple, portable, and efficient.
22882 # So, we kill variables containing newlines.
22883 # Ultrix sh set writes to stderr and can't be redirected directly,
22884 # and sets the high bit in the cache file unless we assign to the vars.
22886 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22887 eval ac_val=\$$ac_var
22891 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22892 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22895 _ | IFS | as_nl) ;; #(
22896 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22897 *) { eval $ac_var=; unset $ac_var;} ;;
22903 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22904 *${as_nl}ac_space=\ *)
22905 # `set' does not quote correctly, so add quotes: double-quote
22906 # substitution turns \\\\ into \\, and sed turns \\ into \.
22909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22912 # `set' quotes correctly as required by POSIX, so do not add quotes.
22913 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22924 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22926 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22927 if test -w "$cache_file"; then
22928 if test "x$cache_file" != "x/dev/null"; then
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22930 $as_echo "$as_me: updating cache $cache_file" >&6;}
22931 if test ! -f "$cache_file" || test -h "$cache_file"; then
22932 cat confcache >"$cache_file"
22934 case $cache_file in #(
22936 mv -f confcache "$cache_file"$$ &&
22937 mv -f "$cache_file"$$ "$cache_file" ;; #(
22939 mv -f confcache "$cache_file" ;;
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22945 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22950 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22951 # Let make expand exec_prefix.
22952 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22954 DEFS=-DHAVE_CONFIG_H
22959 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22960 # 1. Remove the extension, and $U if already installed.
22961 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22962 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22963 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22964 # will be set to the directory where LIBOBJS objects are built.
22965 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22966 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22968 LIBOBJS=$ac_libobjs
22970 LTLIBOBJS=$ac_ltlibobjs
22975 : "${CONFIG_STATUS=./config.status}"
22977 ac_clean_files_save=$ac_clean_files
22978 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22980 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22982 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22984 # Generated by $as_me.
22985 # Run this file to recreate the current configuration.
22986 # Compiler output produced by configure, useful for debugging
22987 # configure, is in config.log if it exists.
22990 ac_cs_recheck=false
22993 SHELL=\${CONFIG_SHELL-$SHELL}
22996 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22997 ## -------------------- ##
22998 ## M4sh Initialization. ##
22999 ## -------------------- ##
23001 # Be more Bourne compatible
23002 DUALCASE=1; export DUALCASE # for MKS sh
23003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23006 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23007 # is contrary to our usage. Disable this feature.
23008 alias -g '${1+"$@"}'='"$@"'
23009 setopt NO_GLOB_SUBST
23011 case `(set -o) 2>/dev/null` in #(
23023 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23024 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23025 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23027 # Prefer a ksh shell builtin over an external printf program on Solaris,
23028 # but without wasting forks for bash or zsh.
23029 if test -z "$BASH_VERSION$ZSH_VERSION" \
23030 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23031 as_echo='print -r --'
23032 as_echo_n='print -rn --'
23033 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23034 as_echo='printf %s\n'
23035 as_echo_n='printf %s'
23037 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23038 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23039 as_echo_n='/usr/ucb/echo -n'
23041 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23042 as_echo_n_body='eval
23046 expr "X$arg" : "X\\(.*\\)$as_nl";
23047 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23049 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23051 export as_echo_n_body
23052 as_echo_n='sh -c $as_echo_n_body as_echo'
23054 export as_echo_body
23055 as_echo='sh -c $as_echo_body as_echo'
23058 # The user is always right.
23059 if test "${PATH_SEPARATOR+set}" != set; then
23061 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23062 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23069 # We need space, tab and new line, in precisely that order. Quoting is
23070 # there to prevent editors from complaining about space-tab.
23071 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23072 # splitting by setting IFS to empty value.)
23075 # Find who we are. Look in the path if we contain no directory separator.
23078 *[\\/]* ) as_myself=$0 ;;
23079 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23080 for as_dir in $PATH
23083 test -z "$as_dir" && as_dir=.
23084 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23090 # We did not find ourselves, most probably we were run as `sh COMMAND'
23091 # in which case we are not to be found in the path.
23092 if test "x$as_myself" = x; then
23095 if test ! -f "$as_myself"; then
23096 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23100 # Unset variables that we do not need and which cause bugs (e.g. in
23101 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23102 # suppresses any "Segmentation fault" message there. '((' could
23103 # trigger a bug in pdksh 5.2.14.
23104 for as_var in BASH_ENV ENV MAIL MAILPATH
23105 do eval test x\${$as_var+set} = xset \
23106 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23119 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23122 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23123 # ----------------------------------------
23124 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23125 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23126 # script with STATUS, using 1 if that was 0.
23129 as_status=$1; test $as_status -eq 0 && as_status=1
23131 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23132 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23134 $as_echo "$as_me: error: $2" >&2
23135 as_fn_exit $as_status
23139 # as_fn_set_status STATUS
23140 # -----------------------
23141 # Set $? to STATUS, without forking.
23142 as_fn_set_status ()
23145 } # as_fn_set_status
23147 # as_fn_exit STATUS
23148 # -----------------
23149 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23153 as_fn_set_status $1
23159 # Portably unset VAR.
23162 { eval $1=; unset $1;}
23164 as_unset=as_fn_unset
23165 # as_fn_append VAR VALUE
23166 # ----------------------
23167 # Append the text in VALUE to the end of the definition contained in VAR. Take
23168 # advantage of any shell optimizations that allow amortized linear growth over
23169 # repeated appends, instead of the typical quadratic growth present in naive
23171 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23172 eval 'as_fn_append ()
23183 # as_fn_arith ARG...
23184 # ------------------
23185 # Perform arithmetic evaluation on the ARGs, and store the result in the
23186 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23187 # must be portable across $(()) and expr.
23188 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23189 eval 'as_fn_arith ()
23196 as_val=`expr "$@" || test $? -eq 1`
23201 if expr a : '\(a\)' >/dev/null 2>&1 &&
23202 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23208 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23209 as_basename=basename
23214 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23220 as_me=`$as_basename -- "$0" ||
23221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23222 X"$0" : 'X\(//\)$' \| \
23223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23225 sed '/^.*\/\([^/][^/]*\)\/*$/{
23239 # Avoid depending upon Character Ranges.
23240 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23241 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23242 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23243 as_cr_digits='0123456789'
23244 as_cr_alnum=$as_cr_Letters$as_cr_digits
23246 ECHO_C= ECHO_N= ECHO_T=
23247 case `echo -n x` in #(((((
23249 case `echo 'xy\c'` in
23250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23252 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23259 rm -f conf$$ conf$$.exe conf$$.file
23260 if test -d conf$$.dir; then
23261 rm -f conf$$.dir/conf$$.file
23264 mkdir conf$$.dir 2>/dev/null
23266 if (echo >conf$$.file) 2>/dev/null; then
23267 if ln -s conf$$.file conf$$ 2>/dev/null; then
23269 # ... but there are two gotchas:
23270 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23271 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23272 # In both cases, we have to default to `cp -pR'.
23273 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23275 elif ln conf$$.file conf$$ 2>/dev/null; then
23283 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23284 rmdir conf$$.dir 2>/dev/null
23289 # Create "$as_dir" as a directory, including parents if necessary.
23294 -*) as_dir=./$as_dir;;
23296 test -d "$as_dir" || eval $as_mkdir_p || {
23300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23301 *) as_qdir=$as_dir;;
23303 as_dirs="'$as_qdir' $as_dirs"
23304 as_dir=`$as_dirname -- "$as_dir" ||
23305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23306 X"$as_dir" : 'X\(//\)[^/]' \| \
23307 X"$as_dir" : 'X\(//\)$' \| \
23308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23309 $as_echo X"$as_dir" |
23310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23314 /^X\(\/\/\)[^/].*/{
23327 test -d "$as_dir" && break
23329 test -z "$as_dirs" || eval "mkdir $as_dirs"
23330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23334 if mkdir -p . 2>/dev/null; then
23335 as_mkdir_p='mkdir -p "$as_dir"'
23337 test -d ./-p && rmdir ./-p
23342 # as_fn_executable_p FILE
23343 # -----------------------
23344 # Test if FILE is an executable regular file.
23345 as_fn_executable_p ()
23347 test -f "$1" && test -x "$1"
23348 } # as_fn_executable_p
23349 as_test_x='test -x'
23350 as_executable_p=as_fn_executable_p
23352 # Sed expression to map a string onto a valid CPP name.
23353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23355 # Sed expression to map a string onto a valid variable name.
23356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23360 ## ----------------------------------- ##
23361 ## Main body of $CONFIG_STATUS script. ##
23362 ## ----------------------------------- ##
23364 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23367 # Save the log message, to keep $0 and so on meaningful, and to
23368 # report actual input values of CONFIG_FILES etc. instead of their
23369 # values after options handling.
23371 This file was extended by $as_me, which was
23372 generated by GNU Autoconf 2.69. Invocation command line was
23374 CONFIG_FILES = $CONFIG_FILES
23375 CONFIG_HEADERS = $CONFIG_HEADERS
23376 CONFIG_LINKS = $CONFIG_LINKS
23377 CONFIG_COMMANDS = $CONFIG_COMMANDS
23380 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23385 case $ac_config_files in *"
23386 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23389 case $ac_config_headers in *"
23390 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23395 # Files that config.status was made for.
23396 config_files="$ac_config_files"
23397 config_headers="$ac_config_headers"
23398 config_commands="$ac_config_commands"
23402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23404 \`$as_me' instantiates files and other configuration actions
23405 from templates according to the current configuration. Unless the files
23406 and actions are specified as TAGs, all are instantiated by default.
23408 Usage: $0 [OPTION]... [TAG]...
23410 -h, --help print this help, then exit
23411 -V, --version print version number and configuration settings, then exit
23412 --config print configuration, then exit
23413 -q, --quiet, --silent
23414 do not print progress messages
23415 -d, --debug don't remove temporary files
23416 --recheck update $as_me by reconfiguring in the same conditions
23417 --file=FILE[:TEMPLATE]
23418 instantiate the configuration file FILE
23419 --header=FILE[:TEMPLATE]
23420 instantiate the configuration header FILE
23422 Configuration files:
23425 Configuration headers:
23428 Configuration commands:
23431 Report bugs to the package provider."
23434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23435 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23438 configured by $0, generated by GNU Autoconf 2.69,
23439 with options \\"\$ac_cs_config\\"
23441 Copyright (C) 2012 Free Software Foundation, Inc.
23442 This config.status script is free software; the Free Software Foundation
23443 gives unlimited permission to copy, distribute and modify it."
23447 test -n "\$AWK" || AWK=awk
23450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23451 # The default lists apply if the user does not specify any file.
23457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23458 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23474 # Handling of the options.
23475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23477 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23478 $as_echo "$ac_cs_version"; exit ;;
23479 --config | --confi | --conf | --con | --co | --c )
23480 $as_echo "$ac_cs_config"; exit ;;
23481 --debug | --debu | --deb | --de | --d | -d )
23483 --file | --fil | --fi | --f )
23486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23487 '') as_fn_error $? "missing file argument" ;;
23489 as_fn_append CONFIG_FILES " '$ac_optarg'"
23490 ac_need_defaults=false;;
23491 --header | --heade | --head | --hea )
23494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23496 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23497 ac_need_defaults=false;;
23499 # Conflict between --help and --header
23500 as_fn_error $? "ambiguous option: \`$1'
23501 Try \`$0 --help' for more information.";;
23502 --help | --hel | -h )
23503 $as_echo "$ac_cs_usage"; exit ;;
23504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23505 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23508 # This is an error.
23509 -*) as_fn_error $? "unrecognized option: \`$1'
23510 Try \`$0 --help' for more information." ;;
23512 *) as_fn_append ac_config_targets " $1"
23513 ac_need_defaults=false ;;
23519 ac_configure_extra_args=
23521 if $ac_cs_silent; then
23523 ac_configure_extra_args="$ac_configure_extra_args --silent"
23527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23528 if \$ac_cs_recheck; then
23529 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23531 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23532 CONFIG_SHELL='$SHELL'
23533 export CONFIG_SHELL
23538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23543 ## Running $as_me. ##
23549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23554 # Handling of arguments.
23555 for ac_config_target in $ac_config_targets
23557 case $ac_config_target in
23558 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23559 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23560 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23561 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23562 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23563 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23564 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23565 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23566 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23567 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23568 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23569 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23570 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23571 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23572 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23573 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23574 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23575 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23576 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23578 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23583 # If the user did not use the arguments to specify the items to instantiate,
23584 # then the envvar interface is used. Set only those that are not.
23585 # We use the long form for the default assignment because of an extremely
23586 # bizarre bug on SunOS 4.1.3.
23587 if $ac_need_defaults; then
23588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23593 # Have a temporary directory for convenience. Make it in the build tree
23594 # simply because there is no reason against having it here, and in addition,
23595 # creating and moving files from /tmp can sometimes cause problems.
23596 # Hook for its removal unless debugging.
23597 # Note that there is a small window in which the directory will not be cleaned:
23598 # after its creation but before its name has been assigned to `$tmp'.
23602 trap 'exit_status=$?
23603 : "${ac_tmp:=$tmp}"
23604 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23606 trap 'as_fn_exit 1' 1 2 13 15
23608 # Create a (secure) tmp directory for tmp files.
23611 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23615 tmp=./conf$$-$RANDOM
23616 (umask 077 && mkdir "$tmp")
23617 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23620 # Set up the scripts for CONFIG_FILES section.
23621 # No need to generate them if there are no CONFIG_FILES.
23622 # This happens for instance with `./config.status config.h'.
23623 if test -n "$CONFIG_FILES"; then
23626 ac_cr=`echo X | tr X '\015'`
23627 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23628 # But we know of no other shell where ac_cr would be empty at this
23629 # point, so we can use a bashism as a fallback.
23630 if test "x$ac_cr" = x; then
23631 eval ac_cr=\$\'\\r\'
23633 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23634 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23637 ac_cs_awk_cr=$ac_cr
23640 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23645 echo "cat >conf$$subs.awk <<_ACEOF" &&
23646 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23648 } >conf$$subs.sh ||
23649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23650 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23652 for ac_last_try in false false false false false :; do
23653 . ./conf$$subs.sh ||
23654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23656 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23657 if test $ac_delim_n = $ac_delim_num; then
23659 elif $ac_last_try; then
23660 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23665 rm -f conf$$subs.sh
23667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23668 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23672 s/^/S["/; s/!.*/"]=/
23682 s/\(.\{148\}\)..*/\1/
23684 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23696 s/\(.\{148\}\)..*/\1/
23698 s/["\\]/\\&/g; s/^/"/; s/$/"/
23702 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23707 ' <conf$$subs.awk | sed '
23712 ' >>$CONFIG_STATUS || ac_write_fail=1
23713 rm -f conf$$subs.awk
23714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23716 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23717 for (key in S) S_is_set[key] = 1
23723 nfields = split(line, field, "@")
23725 len = length(field[1])
23726 for (i = 2; i < nfields; i++) {
23728 keylen = length(key)
23729 if (S_is_set[key]) {
23731 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23732 len += length(value) + length(field[++i])
23743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23744 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23745 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23748 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23749 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23752 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23753 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23754 # trailing colons and then remove the whole line if VPATH becomes empty
23755 # (actually we leave an empty line to preserve line numbers).
23756 if test "x$srcdir" = x.; then
23757 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23776 fi # test -n "$CONFIG_FILES"
23778 # Set up the scripts for CONFIG_HEADERS section.
23779 # No need to generate them if there are no CONFIG_HEADERS.
23780 # This happens for instance with `./config.status Makefile'.
23781 if test -n "$CONFIG_HEADERS"; then
23782 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23786 # Transform confdefs.h into an awk script `defines.awk', embedded as
23787 # here-document in config.status, that substitutes the proper values into
23788 # config.h.in to produce config.h.
23790 # Create a delimiter string that does not exist in confdefs.h, to ease
23791 # handling of long lines.
23793 for ac_last_try in false false :; do
23794 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23795 if test -z "$ac_tt"; then
23797 elif $ac_last_try; then
23798 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23804 # For the awk script, D is an array of macro values keyed by name,
23805 # likewise P contains macro parameters if any. Preserve backslash
23806 # newline sequences.
23808 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23810 s/.\{148\}/&'"$ac_delim"'/g
23813 s/^[ ]*#[ ]*define[ ][ ]*/ /
23820 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23822 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23826 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23827 D["\1"]=" \3\\\\\\n"\\/p
23829 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23834 s/.\{148\}/&'"$ac_delim"'/g
23839 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23842 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23844 ' <confdefs.h | sed '
23845 s/'"$ac_delim"'/"\\\
23846 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23849 for (key in D) D_is_set[key] = 1
23852 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23854 split(line, arg, " ")
23855 if (arg[1] == "#") {
23859 defundef = substr(arg[1], 2)
23862 split(mac1, mac2, "(") #)
23864 prefix = substr(line, 1, index(line, defundef) - 1)
23865 if (D_is_set[macro]) {
23866 # Preserve the white space surrounding the "#".
23867 print prefix "define", macro P[macro] D[macro]
23870 # Replace #undef with comments. This is necessary, for example,
23871 # in the case of _POSIX_SOURCE, which is predefined and required
23872 # on some systems where configure will not decide to define it.
23873 if (defundef == "undef") {
23874 print "/*", prefix defundef, macro, "*/"
23882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23883 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23884 fi # test -n "$CONFIG_HEADERS"
23887 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23892 :[FHLC]) ac_mode=$ac_tag; continue;;
23894 case $ac_mode$ac_tag in
23896 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23897 :[FH]-) ac_tag=-:-;;
23898 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23915 -) ac_f="$ac_tmp/stdin";;
23916 *) # Look for the file first in the build tree, then in the source tree
23917 # (if the path is not absolute). The absolute path cannot be DOS-style,
23918 # because $ac_f cannot contain `:'.
23922 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23924 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23926 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23927 as_fn_append ac_file_inputs " '$ac_f'"
23930 # Let's still pretend it is `configure' which instantiates (i.e., don't
23931 # use $as_me), people would be surprised to read:
23932 # /* config.h. Generated by config.status. */
23933 configure_input='Generated from '`
23934 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23936 if test x"$ac_file" != x-; then
23937 configure_input="$ac_file. $configure_input"
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23939 $as_echo "$as_me: creating $ac_file" >&6;}
23941 # Neutralize special characters interpreted by sed in replacement strings.
23942 case $configure_input in #(
23943 *\&* | *\|* | *\\* )
23944 ac_sed_conf_input=`$as_echo "$configure_input" |
23945 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23946 *) ac_sed_conf_input=$configure_input;;
23950 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23956 ac_dir=`$as_dirname -- "$ac_file" ||
23957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23958 X"$ac_file" : 'X\(//\)[^/]' \| \
23959 X"$ac_file" : 'X\(//\)$' \| \
23960 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23961 $as_echo X"$ac_file" |
23962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23966 /^X\(\/\/\)[^/].*/{
23979 as_dir="$ac_dir"; as_fn_mkdir_p
23983 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23985 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23986 # A ".." for each directory in $ac_dir_suffix.
23987 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23988 case $ac_top_builddir_sub in
23989 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23990 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23993 ac_abs_top_builddir=$ac_pwd
23994 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23995 # for backward compatibility:
23996 ac_top_builddir=$ac_top_build_prefix
23999 .) # We are building in place.
24001 ac_top_srcdir=$ac_top_builddir_sub
24002 ac_abs_top_srcdir=$ac_pwd ;;
24003 [\\/]* | ?:[\\/]* ) # Absolute name.
24004 ac_srcdir=$srcdir$ac_dir_suffix;
24005 ac_top_srcdir=$srcdir
24006 ac_abs_top_srcdir=$srcdir ;;
24007 *) # Relative name.
24008 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24009 ac_top_srcdir=$ac_top_build_prefix$srcdir
24010 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24012 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24024 # If the template does not know about datarootdir, expand it.
24025 # FIXME: This hack should be removed a few years after 2.60.
24026 ac_datarootdir_hack=; ac_datarootdir_seen=
24037 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24038 *datarootdir*) ac_datarootdir_seen=yes;;
24039 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24041 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24044 ac_datarootdir_hack='
24045 s&@datadir@&$datadir&g
24046 s&@docdir@&$docdir&g
24047 s&@infodir@&$infodir&g
24048 s&@localedir@&$localedir&g
24049 s&@mandir@&$mandir&g
24050 s&\\\${datarootdir}&$datarootdir&g' ;;
24054 # Neutralize VPATH when `$srcdir' = `.'.
24055 # Shell code in configure.ac might set extrasub.
24056 # FIXME: do we really want to maintain this feature?
24057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24058 ac_sed_extra="$ac_vpsub
24061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24064 s|@configure_input@|$ac_sed_conf_input|;t t
24065 s&@top_builddir@&$ac_top_builddir_sub&;t t
24066 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24067 s&@srcdir@&$ac_srcdir&;t t
24068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24069 s&@top_srcdir@&$ac_top_srcdir&;t t
24070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24071 s&@builddir@&$ac_builddir&;t t
24072 s&@abs_builddir@&$ac_abs_builddir&;t t
24073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24074 $ac_datarootdir_hack
24076 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24077 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24079 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24080 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24082 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24084 which seems to be undefined. Please make sure it is defined" >&5
24085 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24086 which seems to be undefined. Please make sure it is defined" >&2;}
24088 rm -f "$ac_tmp/stdin"
24090 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24091 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24099 if test x"$ac_file" != x-; then
24101 $as_echo "/* $configure_input */" \
24102 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24103 } >"$ac_tmp/config.h" \
24104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24105 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24107 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24110 mv "$ac_tmp/config.h" "$ac_file" \
24111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24114 $as_echo "/* $configure_input */" \
24115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24116 || as_fn_error $? "could not create -" "$LINENO" 5
24120 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24121 $as_echo "$as_me: executing $ac_file commands" >&6;}
24126 case $ac_file$ac_mode in
24127 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
24128 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
24129 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
24130 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
24138 ac_clean_files=$ac_clean_files_save
24140 test $ac_write_fail = 0 ||
24141 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24144 # configure is writing to config.log, and then calls config.status.
24145 # config.status does its own redirection, appending to config.log.
24146 # Unfortunately, on DOS this fails, as config.log is still kept open
24147 # by configure, so config.status won't be able to write to it; its
24148 # output is simply discarded. So we exec the FD to /dev/null,
24149 # effectively closing config.log, so it can be properly (re)opened and
24150 # appended to by config.status. When coming back to configure, we
24151 # need to make the FD available again.
24152 if test "$no_create" != yes; then
24154 ac_config_status_args=
24155 test "$silent" = yes &&
24156 ac_config_status_args="$ac_config_status_args --quiet"
24158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24161 # would make configure fail if this is the last instruction.
24162 $ac_cs_success || as_fn_exit 1
24166 # CONFIG_SUBDIRS section.
24168 if test "$no_recursion" != yes; then
24170 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24171 # so they do not pile up.
24172 ac_sub_configure_args=
24174 eval "set x $ac_configure_args"
24178 if test -n "$ac_prev"; then
24183 -cache-file | --cache-file | --cache-fil | --cache-fi \
24184 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24185 ac_prev=cache_file ;;
24186 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24187 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24190 --config-cache | -C)
24192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24200 --disable-option-checking)
24204 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24206 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24210 # Always prepend --prefix to ensure using the same prefix
24211 # in subdir configurations.
24212 ac_arg="--prefix=$prefix"
24214 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24216 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24219 if test "$silent" = yes; then
24220 ac_sub_configure_args="--silent $ac_sub_configure_args"
24223 # Always prepend --disable-option-checking to silence warnings, since
24224 # different subdirs can have different --enable and --with options.
24225 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24228 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24230 # Do not complain, so a configure script can configure whichever
24231 # parts of a large source tree are present.
24232 test -d "$srcdir/$ac_dir" || continue
24234 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24235 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24236 $as_echo "$ac_msg" >&6
24237 as_dir="$ac_dir"; as_fn_mkdir_p
24241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24243 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24244 # A ".." for each directory in $ac_dir_suffix.
24245 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24246 case $ac_top_builddir_sub in
24247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24251 ac_abs_top_builddir=$ac_pwd
24252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24253 # for backward compatibility:
24254 ac_top_builddir=$ac_top_build_prefix
24257 .) # We are building in place.
24259 ac_top_srcdir=$ac_top_builddir_sub
24260 ac_abs_top_srcdir=$ac_pwd ;;
24261 [\\/]* | ?:[\\/]* ) # Absolute name.
24262 ac_srcdir=$srcdir$ac_dir_suffix;
24263 ac_top_srcdir=$srcdir
24264 ac_abs_top_srcdir=$srcdir ;;
24265 *) # Relative name.
24266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24267 ac_top_srcdir=$ac_top_build_prefix$srcdir
24268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24275 # Check for guested configure; otherwise get Cygnus style configure.
24276 if test -f "$ac_srcdir/configure.gnu"; then
24277 ac_sub_configure=$ac_srcdir/configure.gnu
24278 elif test -f "$ac_srcdir/configure"; then
24279 ac_sub_configure=$ac_srcdir/configure
24280 elif test -f "$ac_srcdir/configure.in"; then
24281 # This should be Cygnus configure.
24282 ac_sub_configure=$ac_aux_dir/configure
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24285 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24289 # The recursion is here.
24290 if test -n "$ac_sub_configure"; then
24291 # Make the cache file name correct relative to the subdirectory.
24292 case $cache_file in
24293 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24294 *) # Relative name.
24295 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24298 { $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
24299 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24300 # The eval makes quoting arguments work.
24301 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24302 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24303 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24309 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24311 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}