2 # From configure.ac Id: configure.ac 610 2012-05-26 14:03:45Z des .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for OpenPAM 20120526.
6 # Report bugs to <des@des.no>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1
180 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
181 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184 PATH=/empty FPATH=/empty; export PATH FPATH
185 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
186 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
187 if (eval "$as_required") 2>/dev/null; then :
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 test -z "$as_dir" && as_dir=.
204 for as_base in sh bash ksh sh5; do
205 # Try only shells that exist, to save several forks.
206 as_shell=$as_dir/$as_base
207 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 CONFIG_SHELL=$as_shell as_have_required=yes
210 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
218 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220 CONFIG_SHELL=$SHELL as_have_required=yes
225 if test "x$CONFIG_SHELL" != x; then :
226 # We cannot yet assume a decent shell, so we have to provide a
227 # neutralization value for shells without unset; and this also
228 # works around shells that cannot unset nonexistent variables.
229 # Preserve -v and -x to the replacement shell.
232 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
235 *v*x* | *x*v* ) as_opts=-vx ;;
240 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
243 if test x$as_have_required = xno; then :
244 $as_echo "$0: This script requires a shell more modern than all"
245 $as_echo "$0: the shells that I found on your system."
246 if test x${ZSH_VERSION+set} = xset ; then
247 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
250 $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about
251 $0: your system, including any error possibly output before
252 $0: this message. Then install a modern shell, or manually
253 $0: run the script under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='OpenPAM'
572 PACKAGE_TARNAME='openpam'
573 PACKAGE_VERSION='20120526'
574 PACKAGE_STRING='OpenPAM 20120526'
575 PACKAGE_BUGREPORT='des@des.no'
578 ac_unique_file="lib/pam_start.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
685 INSTALL_STRIP_PROGRAM
727 program_transform_name
740 enable_option_checking
741 enable_dependency_tracking
750 enable_unversioned_modules
756 enable_developer_warnings
757 enable_debugging_symbols
760 ac_precious_vars='build_alias
771 # Initialize some variables set by options.
773 ac_init_version=false
774 ac_unrecognized_opts=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
785 program_transform_name=s,x,x,
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
929 -help | --help | --hel | --he | -h)
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 # Obsolete; use --without-fp.
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1078 -site=* | --site=* | --sit=*)
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval with_$ac_useropt=no ;;
1137 # Obsolete; use --with-x.
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1205 # Be sure to have absolute directory names.
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used" >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error $? "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error $? "pwd does not report name of working directory"
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1311 \`configure' configures OpenPAM 20120526 to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking ...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of OpenPAM 20120526:";;
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-static[=PKGS] build static libraries [default=no]
1392 --enable-shared[=PKGS] build shared libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1396 --enable-debug turn debugging on by default
1397 --disable-unversioned-modules
1398 support loading of unversioned modules
1399 --enable-developer-warnings
1400 enable strict warnings (default is NO)
1401 --enable-debugging-symbols
1402 enable debugging symbols (default is NO)
1403 --enable-werror use -Werror (default is NO)
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1408 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1410 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1411 --with-sysroot=DIR Search for dependent libraries within DIR
1412 (or the compiler's sysroot if not specified).
1413 --with-modules-dir=DIR OpenPAM modules directory
1414 --without-doc do not build documentation
1415 --with-pam-unix compile sample pam_unix(8) implementation
1416 --with-pamtest compile test application
1417 --with-su compile sample su(1) implementation
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1432 Report bugs to <des@des.no>.
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1462 .) # We are building in place.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1495 OpenPAM configure 20120526
1496 generated by GNU Autoconf 2.68
1498 Copyright (C) 2010 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1545 } # ac_fn_c_try_compile
1547 # ac_fn_c_try_cpp LINENO
1548 # ----------------------
1549 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 if { { ac_try="$ac_cpp conftest.$ac_ext"
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } > conftest.i && {
1569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1584 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1585 # -------------------------------------------------------
1586 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1587 # the include files in INCLUDES and setting the cache variable VAR
1589 ac_fn_c_check_header_mongrel ()
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if eval \${$3+:} false; then :
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594 $as_echo_n "checking for $2... " >&6; }
1595 if eval \${$3+:} false; then :
1596 $as_echo_n "(cached) " >&6
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600 $as_echo "$ac_res" >&6; }
1602 # Is the header compilable?
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1604 $as_echo_n "checking $2 usability... " >&6; }
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1610 if ac_fn_c_try_compile "$LINENO"; then :
1611 ac_header_compiler=yes
1613 ac_header_compiler=no
1615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1617 $as_echo "$ac_header_compiler" >&6; }
1619 # Is the header present?
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1621 $as_echo_n "checking $2 presence... " >&6; }
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1626 if ac_fn_c_try_cpp "$LINENO"; then :
1627 ac_header_preproc=yes
1629 ac_header_preproc=no
1631 rm -f conftest.err conftest.i conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1633 $as_echo "$ac_header_preproc" >&6; }
1635 # So? What about this header?
1636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1639 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1645 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1647 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1649 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1651 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 ( $as_echo "## ------------------------- ##
1655 ## Report this to des@des.no ##
1656 ## ------------------------- ##"
1657 ) | sed "s/^/$as_me: WARNING: /" >&2
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1665 eval "$3=\$ac_header_compiler"
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 } # ac_fn_c_check_header_mongrel
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 ac_retval=$ac_status
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1734 if ac_fn_c_try_compile "$LINENO"; then :
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 } # ac_fn_c_check_header_compile
1748 # ac_fn_c_try_link LINENO
1749 # -----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext conftest$ac_exeext
1755 if { { ac_try="$ac_link"
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>conftest.err
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest$ac_exeext && {
1774 test "$cross_compiling" = yes ||
1775 $as_test_x conftest$ac_exeext
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1784 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786 # interfere with the next link command; also delete a directory that is
1787 # left behind by Apple's compiler. We do this before executing the actions.
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_c_try_link
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809 #define $2 innocuous_$2
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1817 # include <limits.h>
1819 # include <assert.h>
1824 /* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined __stub_$2 || defined __stub___$2
1846 if ac_fn_c_try_link "$LINENO"; then :
1851 rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_func
1860 cat >config.log <<_ACEOF
1861 This file contains any messages produced by compilers while
1862 running configure, to aid debugging if configure makes a mistake.
1864 It was created by OpenPAM $as_me 20120526, which was
1865 generated by GNU Autoconf 2.68. Invocation command line was
1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 $as_echo "PATH: $as_dir"
1917 # Keep a trace of the command line.
1918 # Strip out --no-create and --no-recursion so they do not pile up.
1919 # Strip out --silent because we don't want to record it for future runs.
1920 # Also quote any args containing shell meta-characters.
1921 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_must_keep_next=false
1931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933 | -silent | --silent | --silen | --sile | --sil)
1936 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1941 as_fn_append ac_configure_args1 " '$ac_arg'"
1942 if test $ac_must_keep_next = true; then
1943 ac_must_keep_next=false # Got value, back to normal.
1946 *=* | --config-cache | -C | -disable-* | --disable-* \
1947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949 | -with-* | --with-* | -without-* | --without-* | --x)
1950 case "$ac_configure_args0 " in
1951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1954 -* ) ac_must_keep_next=true ;;
1957 as_fn_append ac_configure_args " '$ac_arg'"
1962 { ac_configure_args0=; unset ac_configure_args0;}
1963 { ac_configure_args1=; unset ac_configure_args1;}
1965 # When interrupted or exit'd, cleanup temporary files, and complete
1966 # config.log. We remove comments because anyway the quotes in there
1967 # would cause problems or look ugly.
1968 # WARNING: Use '\'' to represent an apostrophe within the trap.
1969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970 trap 'exit_status=$?
1971 # Save into config.log some information that might help in debugging.
1975 $as_echo "## ---------------- ##
1976 ## Cache variables. ##
1977 ## ---------------- ##"
1979 # The following way of writing the cache mishandles newlines in values,
1981 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982 eval ac_val=\$$ac_var
1986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1990 _ | IFS | as_nl) ;; #(
1991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992 *) { eval $ac_var=; unset $ac_var;} ;;
1997 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998 *${as_nl}ac_space=\ *)
2000 "s/'\''/'\''\\\\'\'''\''/g;
2001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2011 $as_echo "## ----------------- ##
2012 ## Output variables. ##
2013 ## ----------------- ##"
2015 for ac_var in $ac_subst_vars
2017 eval ac_val=\$$ac_var
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 $as_echo "$ac_var='\''$ac_val'\''"
2025 if test -n "$ac_subst_files"; then
2026 $as_echo "## ------------------- ##
2027 ## File substitutions. ##
2028 ## ------------------- ##"
2030 for ac_var in $ac_subst_files
2032 eval ac_val=\$$ac_var
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 $as_echo "$ac_var='\''$ac_val'\''"
2041 if test -s confdefs.h; then
2042 $as_echo "## ----------- ##
2049 test "$ac_signal" != 0 &&
2050 $as_echo "$as_me: caught signal $ac_signal"
2051 $as_echo "$as_me: exit $exit_status"
2053 rm -f core *.core core.conftest.* &&
2054 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2057 for ac_signal in 1 2 13 15; do
2058 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2062 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2063 rm -f -r conftest* confdefs.h
2065 $as_echo "/* confdefs.h */" > confdefs.h
2067 # Predefined preprocessor variables.
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_NAME "$PACKAGE_NAME"
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_STRING "$PACKAGE_STRING"
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_URL "$PACKAGE_URL"
2094 # Let the site file select an alternate cache file if it wants to.
2095 # Prefer an explicitly selected file to automatically selected ones.
2098 if test -n "$CONFIG_SITE"; then
2099 # We do not want a PATH search for config.site.
2100 case $CONFIG_SITE in #((
2101 -*) ac_site_file1=./$CONFIG_SITE;;
2102 */*) ac_site_file1=$CONFIG_SITE;;
2103 *) ac_site_file1=./$CONFIG_SITE;;
2105 elif test "x$prefix" != xNONE; then
2106 ac_site_file1=$prefix/share/config.site
2107 ac_site_file2=$prefix/etc/config.site
2109 ac_site_file1=$ac_default_prefix/share/config.site
2110 ac_site_file2=$ac_default_prefix/etc/config.site
2112 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114 test "x$ac_site_file" = xNONE && continue
2115 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2117 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2118 sed 's/^/| /' "$ac_site_file" >&5
2120 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122 as_fn_error $? "failed to load site script $ac_site_file
2123 See \`config.log' for more details" "$LINENO" 5; }
2127 if test -r "$cache_file"; then
2128 # Some versions of bash will fail to source /dev/null (special files
2129 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2130 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132 $as_echo "$as_me: loading cache $cache_file" >&6;}
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140 $as_echo "$as_me: creating cache $cache_file" >&6;}
2144 # Check that the precious variables saved in the cache have kept the same
2146 ac_cache_corrupted=false
2147 for ac_var in $ac_precious_vars; do
2148 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149 eval ac_new_set=\$ac_env_${ac_var}_set
2150 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151 eval ac_new_val=\$ac_env_${ac_var}_value
2152 case $ac_old_set,$ac_new_set in
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156 ac_cache_corrupted=: ;;
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160 ac_cache_corrupted=: ;;
2163 if test "x$ac_old_val" != "x$ac_new_val"; then
2164 # differences in whitespace do not lead to failure.
2165 ac_old_val_w=`echo x $ac_old_val`
2166 ac_new_val_w=`echo x $ac_new_val`
2167 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2169 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170 ac_cache_corrupted=:
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174 eval $ac_var=\$ac_old_val
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2177 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2179 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2182 # Pass precious variables to config.status.
2183 if test "$ac_new_set" = set; then
2185 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2186 *) ac_arg=$ac_var=$ac_new_val ;;
2188 case " $ac_configure_args " in
2189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2190 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2194 if $ac_cache_corrupted; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2198 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2201 ## -------------------- ##
2202 ## Main body of script. ##
2203 ## -------------------- ##
2206 ac_cpp='$CPP $CPPFLAGS'
2207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214 am__api_version='1.11'
2217 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 if test -f "$ac_dir/install-sh"; then
2220 ac_install_sh="$ac_aux_dir/install-sh -c"
2222 elif test -f "$ac_dir/install.sh"; then
2224 ac_install_sh="$ac_aux_dir/install.sh -c"
2226 elif test -f "$ac_dir/shtool"; then
2228 ac_install_sh="$ac_aux_dir/shtool install -c"
2232 if test -z "$ac_aux_dir"; then
2233 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2236 # These three variables are undocumented and unsupported,
2237 # and are intended to be withdrawn in a future Autoconf release.
2238 # They can cause serious problems if a builder's source tree is in a directory
2239 # whose full name contains unusual characters.
2240 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2241 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2242 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2245 # Find a good install program. We prefer a C program (faster),
2246 # so one script is as good as another. But avoid the broken or
2247 # incompatible versions:
2248 # SysV /etc/install, /usr/sbin/install
2249 # SunOS /usr/etc/install
2250 # IRIX /sbin/install
2252 # AmigaOS /C/install, which installs bootblocks on floppy discs
2253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2256 # OS/2's system install, which has a completely different semantic
2257 # ./install, which can be erroneously created by make from ./install.sh.
2258 # Reject install programs that cannot install multiple files.
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2261 if test -z "$INSTALL"; then
2262 if ${ac_cv_path_install+:} false; then :
2263 $as_echo_n "(cached) " >&6
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 # Account for people who put trailing slashes in PATH elements.
2271 case $as_dir/ in #((
2272 ./ | .// | /[cC]/* | \
2273 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2277 # OSF1 and SCO ODT 3.0 have their own names for install.
2278 # Don't use installbsd from OSF since it installs stuff as root
2280 for ac_prog in ginstall scoinst install; do
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2283 if test $ac_prog = install &&
2284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285 # AIX install. It has an incompatible calling convention.
2287 elif test $ac_prog = install &&
2288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289 # program-specific install script used by HP pwplus--don't use.
2292 rm -rf conftest.one conftest.two conftest.dir
2293 echo one > conftest.one
2294 echo two > conftest.two
2296 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2297 test -s conftest.one && test -s conftest.two &&
2298 test -s conftest.dir/conftest.one &&
2299 test -s conftest.dir/conftest.two
2301 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 rm -rf conftest.one conftest.two conftest.dir
2317 if test "${ac_cv_path_install+set}" = set; then
2318 INSTALL=$ac_cv_path_install
2320 # As a last resort, use the slow shell script. Don't cache a
2321 # value for INSTALL within a source directory, because that will
2322 # break other packages using the cache if that directory is
2323 # removed, or if the value is a relative name.
2324 INSTALL=$ac_install_sh
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2328 $as_echo "$INSTALL" >&6; }
2330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331 # It thinks the first close brace ends the variable substitution.
2332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2339 $as_echo_n "checking whether build environment is sane... " >&6; }
2342 echo timestamp > conftest.file
2343 # Reject unsafe characters in $srcdir or the absolute working directory
2344 # name. Accept space and tab only in the latter.
2348 *[\\\"\#\$\&\'\`$am_lf]*)
2349 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2352 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2353 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments. Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2362 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2363 if test "$*" = "X"; then
2365 set X `ls -t "$srcdir/configure" conftest.file`
2368 if test "$*" != "X $srcdir/configure conftest.file" \
2369 && test "$*" != "X conftest.file $srcdir/configure"; then
2371 # If neither matched, then we have a broken ls. This can happen
2372 # if, for instance, CONFIG_SHELL is bash and it inherits a
2373 # broken ls alias from the environment. This has actually
2374 # happened. Such a system could not be considered "sane".
2375 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2376 alias in your environment" "$LINENO" 5
2379 test "$2" = conftest.file
2385 as_fn_error $? "newly created file is older than distributed files!
2386 Check your system clock" "$LINENO" 5
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2389 $as_echo "yes" >&6; }
2390 test "$program_prefix" != NONE &&
2391 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2392 # Use a double $ so make ignores it.
2393 test "$program_suffix" != NONE &&
2394 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2395 # Double any \ or $.
2396 # By default was `s,x,x', remove it if useless.
2397 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2398 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2400 # expand $ac_aux_dir to an absolute path
2401 am_aux_dir=`cd $ac_aux_dir && pwd`
2403 if test x"${MISSING+set}" != xset; then
2406 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2408 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2411 # Use eval to expand $SHELL
2412 if eval "$MISSING --run true"; then
2413 am_missing_run="$MISSING --run "
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2417 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420 if test x"${install_sh}" != xset; then
2423 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2425 install_sh="\${SHELL} $am_aux_dir/install-sh"
2429 # Installed binaries are usually stripped using `strip' when the user
2430 # run `make install-strip'. However `strip' might not be the right
2431 # tool to use in cross-compilation environments, therefore Automake
2432 # will honor the `STRIP' environment variable to overrule this program.
2433 if test "$cross_compiling" != no; then
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}strip; ac_word=$2
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438 $as_echo_n "checking for $ac_word... " >&6; }
2439 if ${ac_cv_prog_STRIP+:} false; then :
2440 $as_echo_n "(cached) " >&6
2442 if test -n "$STRIP"; then
2443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 STRIP=$ac_cv_prog_STRIP
2463 if test -n "$STRIP"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2465 $as_echo "$STRIP" >&6; }
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468 $as_echo "no" >&6; }
2473 if test -z "$ac_cv_prog_STRIP"; then
2475 # Extract the first word of "strip", so it can be a program name with args.
2476 set dummy strip; ac_word=$2
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2480 $as_echo_n "(cached) " >&6
2482 if test -n "$ac_ct_STRIP"; then
2483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_STRIP="strip"
2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2503 if test -n "$ac_ct_STRIP"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2505 $as_echo "$ac_ct_STRIP" >&6; }
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508 $as_echo "no" >&6; }
2511 if test "x$ac_ct_STRIP" = x; then
2514 case $cross_compiling:$ac_tool_warned in
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2518 ac_tool_warned=yes ;;
2523 STRIP="$ac_cv_prog_STRIP"
2527 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2530 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2531 if test -z "$MKDIR_P"; then
2532 if ${ac_cv_path_mkdir+:} false; then :
2533 $as_echo_n "(cached) " >&6
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2539 test -z "$as_dir" && as_dir=.
2540 for ac_prog in mkdir gmkdir; do
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2543 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2544 'mkdir (GNU coreutils) '* | \
2545 'mkdir (coreutils) '* | \
2546 'mkdir (fileutils) '4.1*)
2547 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2557 test -d ./--version && rmdir ./--version
2558 if test "${ac_cv_path_mkdir+set}" = set; then
2559 MKDIR_P="$ac_cv_path_mkdir -p"
2561 # As a last resort, use the slow shell script. Don't cache a
2562 # value for MKDIR_P within a source directory, because that will
2563 # break other packages using the cache if that directory is
2564 # removed, or if the value is a relative name.
2565 MKDIR_P="$ac_install_sh -d"
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2569 $as_echo "$MKDIR_P" >&6; }
2573 [\\/$]* | ?:[\\/]*) ;;
2574 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2577 for ac_prog in gawk mawk nawk awk
2579 # Extract the first word of "$ac_prog", so it can be a program name with args.
2580 set dummy $ac_prog; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_AWK+:} false; then :
2584 $as_echo_n "(cached) " >&6
2586 if test -n "$AWK"; then
2587 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_AWK="$ac_prog"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test -n "$AWK"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2609 $as_echo "$AWK" >&6; }
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2616 test -n "$AWK" && break
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2620 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2622 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2623 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2624 $as_echo_n "(cached) " >&6
2626 cat >conftest.make <<\_ACEOF
2629 @echo '@@@%%%=$(MAKE)=@@@%%%'
2631 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2634 eval ac_cv_prog_make_${ac_make}_set=yes;;
2636 eval ac_cv_prog_make_${ac_make}_set=no;;
2640 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2642 $as_echo "yes" >&6; }
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 SET_MAKE="MAKE=${MAKE-make}"
2650 rm -rf .tst 2>/dev/null
2651 mkdir .tst 2>/dev/null
2652 if test -d .tst; then
2657 rmdir .tst 2>/dev/null
2659 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2660 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2661 # is not polluted with repeated "-I."
2662 am__isrc=' -I$(srcdir)'
2663 # test to see if srcdir already configured
2664 if test -f $srcdir/config.status; then
2665 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2669 # test whether we have cygpath
2670 if test -z "$CYGPATH_W"; then
2671 if (cygpath --version) >/dev/null 2>/dev/null; then
2672 CYGPATH_W='cygpath -w'
2679 # Define the identity of the package.
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE "$PACKAGE"
2689 cat >>confdefs.h <<_ACEOF
2690 #define VERSION "$VERSION"
2693 # Some tools Automake needs.
2695 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2698 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2701 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2704 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2707 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2709 # We need awk for the "check" target. The system "awk" is bad on
2711 # Always define AMTAR for backward compatibility.
2713 AMTAR=${AMTAR-"${am_missing_run}tar"}
2715 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2721 ac_config_headers="$ac_config_headers config.h"
2724 # C compiler and features
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_CC+:} false; then :
2742 $as_echo_n "(cached) " >&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2775 if test -z "$ac_cv_prog_CC"; then
2777 # Extract the first word of "gcc", so it can be a program name with args.
2778 set dummy gcc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2782 $as_echo_n "(cached) " >&6
2784 if test -n "$ac_ct_CC"; then
2785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_ac_ct_CC="gcc"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805 if test -n "$ac_ct_CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2807 $as_echo "$ac_ct_CC" >&6; }
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2813 if test "x$ac_ct_CC" = x; then
2816 case $cross_compiling:$ac_tool_warned in
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820 ac_tool_warned=yes ;;
2828 if test -z "$CC"; then
2829 if test -n "$ac_tool_prefix"; then
2830 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}cc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_CC+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_CC="${ac_tool_prefix}cc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2869 if test -z "$CC"; then
2870 # Extract the first word of "cc", so it can be a program name with args.
2871 set dummy cc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2889 ac_prog_rejected=yes
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 if test $ac_prog_rejected = yes; then
2901 # We found a bogon in the path, so make sure we never use it.
2902 set dummy $ac_cv_prog_CC
2904 if test $# != 0; then
2905 # We chose a different compiler from the bogus one.
2906 # However, it has the same basename, so the bogon will be chosen
2907 # first if we set CC to just the basename; use the full file name.
2909 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2925 if test -z "$CC"; then
2926 if test -n "$ac_tool_prefix"; then
2927 for ac_prog in cl.exe
2929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2966 test -n "$CC" && break
2969 if test -z "$CC"; then
2971 for ac_prog in cl.exe
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 if test -n "$ac_ct_CC"; then
2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_ac_ct_CC="$ac_prog"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003 $as_echo "$ac_ct_CC" >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3010 test -n "$ac_ct_CC" && break
3013 if test "x$ac_ct_CC" = x; then
3016 case $cross_compiling:$ac_tool_warned in
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3029 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 as_fn_error $? "no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details" "$LINENO" 5; }
3034 # Provide some information about the compiler.
3035 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3038 for ac_option in --version -v -V -qversion; do
3039 { { ac_try="$ac_compiler $ac_option >&5"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3048 if test -s conftest.err; then
3050 ... rest of stderr output deleted ...
3051 10q' conftest.err >conftest.er1
3052 cat conftest.er1 >&5
3054 rm -f conftest.er1 conftest.err
3055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056 test $ac_status = 0; }
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h. */
3070 ac_clean_files_save=$ac_clean_files
3071 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3072 # Try to create an executable without -o first, disregard a.out.
3073 # It will help us diagnose broken compilers, and finding out an intuition
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3076 $as_echo_n "checking whether the C compiler works... " >&6; }
3077 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3079 # The possible output files:
3080 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3083 for ac_file in $ac_files
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3092 if { { ac_try="$ac_link_default"
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099 (eval "$ac_link_default") 2>&5
3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102 test $ac_status = 0; }; then :
3103 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3106 # so that the user can short-circuit this test for compilers unknown to
3108 for ac_file in $ac_files ''
3110 test -f "$ac_file" || continue
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3115 # We found the default executable, but exeext='' is most
3119 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3121 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 # We set ac_cv_exeext here because the later test for it is not
3124 # safe: cross compilers may not add the suffix if given an `-o'
3125 # argument, so we may need to know it at that point already.
3126 # Even if this section looks crufty: it has the advantage of
3133 test "$ac_cv_exeext" = no && ac_cv_exeext=
3138 if test -z "$ac_file"; then :
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 $as_echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error 77 "C compiler cannot create executables
3147 See \`config.log' for more details" "$LINENO" 5; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3153 $as_echo_n "checking for C compiler default output file name... " >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155 $as_echo "$ac_file" >&6; }
3156 ac_exeext=$ac_cv_exeext
3158 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3159 ac_clean_files=$ac_clean_files_save
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3161 $as_echo_n "checking for suffix of executables... " >&6; }
3162 if { { ac_try="$ac_link"
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 $as_echo "$ac_try_echo"; } >&5
3169 (eval "$ac_link") 2>&5
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }; then :
3173 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3174 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3175 # work properly (i.e., refer to `conftest.exe'), while it won't with
3177 for ac_file in conftest.exe conftest conftest.*; do
3178 test -f "$ac_file" || continue
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3190 See \`config.log' for more details" "$LINENO" 5; }
3192 rm -f conftest conftest$ac_cv_exeext
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3194 $as_echo "$ac_cv_exeext" >&6; }
3196 rm -f conftest.$ac_ext
3197 EXEEXT=$ac_cv_exeext
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3205 FILE *f = fopen ("conftest.out", "w");
3206 return ferror (f) || fclose (f) != 0;
3212 ac_clean_files="$ac_clean_files conftest.out"
3213 # Check that the compiler produces executables we can run. If not, either
3214 # the compiler is broken, or we cross compile.
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3216 $as_echo_n "checking whether we are cross compiling... " >&6; }
3217 if test "$cross_compiling" != yes; then
3218 { { ac_try="$ac_link"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link") 2>&5
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }
3229 if { ac_try='./conftest$ac_cv_exeext'
3230 { { case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_try") 2>&5
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }; }; then
3242 if test "$cross_compiling" = maybe; then
3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247 as_fn_error $? "cannot run C compiled programs.
3248 If you meant to cross compile, use \`--host'.
3249 See \`config.log' for more details" "$LINENO" 5; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3254 $as_echo "$cross_compiling" >&6; }
3256 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3257 ac_clean_files=$ac_clean_files_save
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3259 $as_echo_n "checking for suffix of object files... " >&6; }
3260 if ${ac_cv_objext+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3274 rm -f conftest.o conftest.obj
3275 if { { ac_try="$ac_compile"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_compile") 2>&5
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; then :
3286 for ac_file in conftest.o conftest.obj conftest.*; do
3287 test -f "$ac_file" || continue;
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot compute suffix of object files: cannot compile
3301 See \`config.log' for more details" "$LINENO" 5; }
3303 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3306 $as_echo "$ac_cv_objext" >&6; }
3307 OBJEXT=$ac_cv_objext
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3311 if ${ac_cv_c_compiler_gnu+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3328 if ac_fn_c_try_compile "$LINENO"; then :
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3339 if test $ac_compiler_gnu = yes; then
3344 ac_test_CFLAGS=${CFLAGS+set}
3345 ac_save_CFLAGS=$CFLAGS
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3348 if ${ac_cv_prog_cc_g+:} false; then :
3349 $as_echo_n "(cached) " >&6
3351 ac_save_c_werror_flag=$ac_c_werror_flag
3352 ac_c_werror_flag=yes
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3366 if ac_fn_c_try_compile "$LINENO"; then :
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3381 if ac_fn_c_try_compile "$LINENO"; then :
3384 ac_c_werror_flag=$ac_save_c_werror_flag
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3397 if ac_fn_c_try_compile "$LINENO"; then :
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 ac_c_werror_flag=$ac_save_c_werror_flag
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3408 $as_echo "$ac_cv_prog_cc_g" >&6; }
3409 if test "$ac_test_CFLAGS" = set; then
3410 CFLAGS=$ac_save_CFLAGS
3411 elif test $ac_cv_prog_cc_g = yes; then
3412 if test "$GCC" = yes; then
3418 if test "$GCC" = yes; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3426 if ${ac_cv_prog_cc_c89+:} false; then :
3427 $as_echo_n "(cached) " >&6
3429 ac_cv_prog_cc_c89=no
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3435 #include <sys/types.h>
3436 #include <sys/stat.h>
3437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3438 struct buf { int x; };
3439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3440 static char *e (p, i)
3446 static char *f (char * (*g) (char **, int), char **p, ...)
3451 s = g (p, va_arg (v,int));
3456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3457 function prototypes and stuff, but not '\xHH' hex character constants.
3458 These don't provoke an error unfortunately, instead are silently treated
3459 as 'x'. The following induces an error, until -std is added to get
3460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3461 array size at least. It's necessary to write '\x00'==0 to get something
3462 that's true only with -std. */
3463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3466 inside strings and character constants. */
3468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3470 int test (int i, double x);
3471 struct s1 {int (*f) (int a);};
3472 struct s2 {int (*f) (double a);};
3473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3487 CC="$ac_save_CC $ac_arg"
3488 if ac_fn_c_try_compile "$LINENO"; then :
3489 ac_cv_prog_cc_c89=$ac_arg
3491 rm -f core conftest.err conftest.$ac_objext
3492 test "x$ac_cv_prog_cc_c89" != "xno" && break
3494 rm -f conftest.$ac_ext
3499 case "x$ac_cv_prog_cc_c89" in
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3502 $as_echo "none needed" >&6; } ;;
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3505 $as_echo "unsupported" >&6; } ;;
3507 CC="$CC $ac_cv_prog_cc_c89"
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3511 if test "x$ac_cv_prog_cc_c89" != xno; then :
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 DEPDIR="${am__leading_dot}deps"
3522 ac_config_commands="$ac_config_commands depfiles"
3525 am_make=${MAKE-make}
3526 cat > confinc << 'END'
3528 @echo this is the am__doit target
3531 # If we don't find an include directive, just comment out the code.
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3533 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3537 # First try GNU make style include.
3538 echo "include confinc" > confmf
3539 # Ignore all kinds of additional output from `make'.
3540 case `$am_make -s -f confmf 2> /dev/null` in #(
3541 *the\ am__doit\ target*)
3547 # Now try BSD make style include.
3548 if test "$am__include" = "#"; then
3549 echo '.include "confinc"' > confmf
3550 case `$am_make -s -f confmf 2> /dev/null` in #(
3551 *the\ am__doit\ target*)
3552 am__include=.include
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3561 $as_echo "$_am_result" >&6; }
3562 rm -f confinc confmf
3564 # Check whether --enable-dependency-tracking was given.
3565 if test "${enable_dependency_tracking+set}" = set; then :
3566 enableval=$enable_dependency_tracking;
3569 if test "x$enable_dependency_tracking" != xno; then
3570 am_depcomp="$ac_aux_dir/depcomp"
3573 if test "x$enable_dependency_tracking" != xno; then
3583 depcc="$CC" am_compiler_list=
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3586 $as_echo_n "checking dependency style of $depcc... " >&6; }
3587 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3588 $as_echo_n "(cached) " >&6
3590 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3591 # We make a subdir and do the tests there. Otherwise we can end up
3592 # making bogus files that we don't know about and never remove. For
3593 # instance it was reported that on HP-UX the gcc test will end up
3594 # making a dummy file named `D' -- because `-MD' means `put the output
3597 # Copy depcomp to subdir because otherwise we won't find it if we're
3598 # using a relative directory.
3599 cp "$am_depcomp" conftest.dir
3601 # We will build objects and dependencies in a subdirectory because
3602 # it helps to detect inapplicable dependency modes. For instance
3603 # both Tru64's cc and ICC support -MD to output dependencies as a
3604 # side effect of compilation, but ICC will put the dependencies in
3605 # the current directory while Tru64 will put them in the object
3609 am_cv_CC_dependencies_compiler_type=none
3610 if test "$am_compiler_list" = ""; then
3611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3614 case " $depcc " in #(
3615 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3618 for depmode in $am_compiler_list; do
3619 # Setup a source with many dependencies, because some compilers
3620 # like to wrap large dependency lists on column 80 (with \), and
3621 # we should not choose a depcomp mode which is confused by this.
3623 # We need to recreate these files for each test, as the compiler may
3624 # overwrite some of them when testing with obscure command lines.
3625 # This happens at least with the AIX C compiler.
3627 for i in 1 2 3 4 5 6; do
3628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3629 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3630 # Solaris 8's {/usr,}/bin/sh.
3631 touch sub/conftst$i.h
3633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3635 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3636 # mode. It turns out that the SunPro C++ compiler does not properly
3637 # handle `-M -o', and we need to detect this. Also, some Intel
3638 # versions had trouble with output in subdirs
3639 am__obj=sub/conftest.${OBJEXT-o}
3640 am__minus_obj="-o $am__obj"
3643 # This depmode causes a compiler race in universal mode.
3644 test "$am__universal" = false || continue
3647 # after this tag, mechanisms are not by side-effect, so they'll
3648 # only be used when explicitly requested
3649 if test "x$enable_dependency_tracking" = xyes; then
3655 msvisualcpp | msvcmsys)
3656 # This compiler won't grok `-c -o', but also, the minuso test has
3657 # not run yet. These depmodes are late enough in the game, and
3658 # so weak that their functioning should not be impacted.
3659 am__obj=conftest.${OBJEXT-o}
3664 if depmode=$depmode \
3665 source=sub/conftest.c object=$am__obj \
3666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3667 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3668 >/dev/null 2>conftest.err &&
3669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3671 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3673 # icc doesn't choke on unknown options, it will just issue warnings
3674 # or remarks (even with -Werror). So we grep stderr for any message
3675 # that says an option was ignored or not supported.
3676 # When given -MP, icc 7.0 and 7.1 complain thusly:
3677 # icc: Command line warning: ignoring option '-M'; no argument required
3678 # The diagnosis changed in icc 8.0:
3679 # icc: Command line remark: option '-MP' not supported
3680 if (grep 'ignoring option' conftest.err ||
3681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3682 am_cv_CC_dependencies_compiler_type=$depmode
3691 am_cv_CC_dependencies_compiler_type=none
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3696 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3697 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3700 test "x$enable_dependency_tracking" != xno \
3701 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3703 am__fastdepCC_FALSE='#'
3705 am__fastdepCC_TRUE='#'
3706 am__fastdepCC_FALSE=
3710 case $ac_cv_prog_cc_stdc in #(
3712 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3715 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3716 if ${ac_cv_prog_cc_c99+:} false; then :
3717 $as_echo_n "(cached) " >&6
3719 ac_cv_prog_cc_c99=no
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3724 #include <stdbool.h>
3729 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3730 #define debug(...) fprintf (stderr, __VA_ARGS__)
3731 #define showlist(...) puts (#__VA_ARGS__)
3732 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3734 test_varargs_macros (void)
3739 debug ("X = %d\n", x);
3740 showlist (The first, second, and third items.);
3741 report (x>y, "x is %d but y is %d", x, y);
3744 // Check long long types.
3745 #define BIG64 18446744073709551615ull
3746 #define BIG32 4294967295ul
3747 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3749 your preprocessor is broken;
3753 your preprocessor is broken;
3755 static long long int bignum = -9223372036854775807LL;
3756 static unsigned long long int ubignum = BIG64;
3758 struct incomplete_array
3766 const wchar_t *name;
3770 typedef const char *ccp;
3773 test_restrict (ccp restrict text)
3775 // See if C++-style comments work.
3776 // Iterate through items via the restricted pointer.
3777 // Also check for declarations in for loops.
3778 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3783 // Check varargs and va_copy.
3785 test_varargs (const char *format, ...)
3788 va_start (args, format);
3790 va_copy (args_copy, args);
3801 str = va_arg (args_copy, const char *);
3804 number = va_arg (args_copy, int);
3807 fnumber = va_arg (args_copy, double);
3822 _Bool success = false;
3825 if (test_restrict ("String literal") == 0)
3827 char *restrict newvar = "Another string";
3830 test_varargs ("s, d' f .", "string", 65, 34.234);
3831 test_varargs_macros ();
3833 // Check flexible array members.
3834 struct incomplete_array *ia =
3835 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3837 for (int i = 0; i < ia->datasize; ++i)
3838 ia->data[i] = i * 1.234;
3840 // Check named initializers.
3841 struct named_init ni = {
3843 .name = L"Test wide string",
3844 .average = 543.34343,
3849 int dynamic_array[ni.number];
3850 dynamic_array[ni.number - 1] = 543;
3852 // work around unused variable warnings
3853 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3854 || dynamic_array[ni.number - 1] != 543);
3860 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3862 CC="$ac_save_CC $ac_arg"
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_prog_cc_c99=$ac_arg
3866 rm -f core conftest.err conftest.$ac_objext
3867 test "x$ac_cv_prog_cc_c99" != "xno" && break
3869 rm -f conftest.$ac_ext
3874 case "x$ac_cv_prog_cc_c99" in
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3877 $as_echo "none needed" >&6; } ;;
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3880 $as_echo "unsupported" >&6; } ;;
3882 CC="$CC $ac_cv_prog_cc_c99"
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3884 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3886 if test "x$ac_cv_prog_cc_c99" != xno; then :
3887 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3891 if ${ac_cv_prog_cc_c89+:} false; then :
3892 $as_echo_n "(cached) " >&6
3894 ac_cv_prog_cc_c89=no
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3900 #include <sys/types.h>
3901 #include <sys/stat.h>
3902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3903 struct buf { int x; };
3904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3905 static char *e (p, i)
3911 static char *f (char * (*g) (char **, int), char **p, ...)
3916 s = g (p, va_arg (v,int));
3921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3922 function prototypes and stuff, but not '\xHH' hex character constants.
3923 These don't provoke an error unfortunately, instead are silently treated
3924 as 'x'. The following induces an error, until -std is added to get
3925 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3926 array size at least. It's necessary to write '\x00'==0 to get something
3927 that's true only with -std. */
3928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3931 inside strings and character constants. */
3933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3935 int test (int i, double x);
3936 struct s1 {int (*f) (int a);};
3937 struct s2 {int (*f) (double a);};
3938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3944 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3950 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3952 CC="$ac_save_CC $ac_arg"
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954 ac_cv_prog_cc_c89=$ac_arg
3956 rm -f core conftest.err conftest.$ac_objext
3957 test "x$ac_cv_prog_cc_c89" != "xno" && break
3959 rm -f conftest.$ac_ext
3964 case "x$ac_cv_prog_cc_c89" in
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3967 $as_echo "none needed" >&6; } ;;
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970 $as_echo "unsupported" >&6; } ;;
3972 CC="$CC $ac_cv_prog_cc_c89"
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3974 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3976 if test "x$ac_cv_prog_cc_c89" != xno; then :
3977 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3979 ac_cv_prog_cc_stdc=no
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3986 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3987 if ${ac_cv_prog_cc_stdc+:} false; then :
3988 $as_echo_n "(cached) " >&6
3991 case $ac_cv_prog_cc_stdc in #(
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994 $as_echo "unsupported" >&6; } ;; #(
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997 $as_echo "none needed" >&6; } ;; #(
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4000 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4009 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4010 # On Suns, sometimes $CPP names a directory.
4011 if test -n "$CPP" && test -d "$CPP"; then
4014 if test -z "$CPP"; then
4015 if ${ac_cv_prog_CPP+:} false; then :
4016 $as_echo_n "(cached) " >&6
4018 # Double quotes because CPP needs to be expanded
4019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4022 for ac_c_preproc_warn_flag in '' yes
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4033 # include <limits.h>
4035 # include <assert.h>
4039 if ac_fn_c_try_cpp "$LINENO"; then :
4042 # Broken: fails on valid input.
4045 rm -f conftest.err conftest.i conftest.$ac_ext
4047 # OK, works on sane cases. Now check whether nonexistent headers
4048 # can be detected and how.
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <ac_nonexistent.h>
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4054 # Broken: success on invalid input.
4057 # Passes both tests.
4061 rm -f conftest.err conftest.i conftest.$ac_ext
4064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065 rm -f conftest.i conftest.err conftest.$ac_ext
4066 if $ac_preproc_ok; then :
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4079 $as_echo "$CPP" >&6; }
4081 for ac_c_preproc_warn_flag in '' yes
4083 # Use a header file that comes with gcc, so configuring glibc
4084 # with a fresh cross-compiler works.
4085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086 # <limits.h> exists even on freestanding compilers.
4087 # On the NeXT, cc -E runs the code through the compiler's parser,
4088 # not just through cpp. "Syntax error" is here to catch this case.
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4092 # include <limits.h>
4094 # include <assert.h>
4098 if ac_fn_c_try_cpp "$LINENO"; then :
4101 # Broken: fails on valid input.
4104 rm -f conftest.err conftest.i conftest.$ac_ext
4106 # OK, works on sane cases. Now check whether nonexistent headers
4107 # can be detected and how.
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4112 if ac_fn_c_try_cpp "$LINENO"; then :
4113 # Broken: success on invalid input.
4116 # Passes both tests.
4120 rm -f conftest.err conftest.i conftest.$ac_ext
4123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124 rm -f conftest.i conftest.err conftest.$ac_ext
4125 if $ac_preproc_ok; then :
4128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4131 See \`config.log' for more details" "$LINENO" 5; }
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4143 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4144 if ${ac_cv_path_GREP+:} false; then :
4145 $as_echo_n "(cached) " >&6
4147 if test -z "$GREP"; then
4148 ac_path_GREP_found=false
4149 # Loop through the user's path and test for each of PROGNAME-LIST
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4154 test -z "$as_dir" && as_dir=.
4155 for ac_prog in grep ggrep; do
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4158 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4159 # Check for GNU ac_path_GREP and select it if it is found.
4160 # Check for GNU $ac_path_GREP
4161 case `"$ac_path_GREP" --version 2>&1` in
4163 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4166 $as_echo_n 0123456789 >"conftest.in"
4169 cat "conftest.in" "conftest.in" >"conftest.tmp"
4170 mv "conftest.tmp" "conftest.in"
4171 cp "conftest.in" "conftest.nl"
4172 $as_echo 'GREP' >> "conftest.nl"
4173 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175 as_fn_arith $ac_count + 1 && ac_count=$as_val
4176 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4177 # Best one so far, save it but keep looking for a better one
4178 ac_cv_path_GREP="$ac_path_GREP"
4179 ac_path_GREP_max=$ac_count
4181 # 10*(2^10) chars as input seems more than enough
4182 test $ac_count -gt 10 && break
4184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4187 $ac_path_GREP_found && break 3
4192 if test -z "$ac_cv_path_GREP"; then
4193 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4196 ac_cv_path_GREP=$GREP
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4201 $as_echo "$ac_cv_path_GREP" >&6; }
4202 GREP="$ac_cv_path_GREP"
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4206 $as_echo_n "checking for egrep... " >&6; }
4207 if ${ac_cv_path_EGREP+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4211 then ac_cv_path_EGREP="$GREP -E"
4213 if test -z "$EGREP"; then
4214 ac_path_EGREP_found=false
4215 # Loop through the user's path and test for each of PROGNAME-LIST
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4220 test -z "$as_dir" && as_dir=.
4221 for ac_prog in egrep; do
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4224 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4225 # Check for GNU ac_path_EGREP and select it if it is found.
4226 # Check for GNU $ac_path_EGREP
4227 case `"$ac_path_EGREP" --version 2>&1` in
4229 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4232 $as_echo_n 0123456789 >"conftest.in"
4235 cat "conftest.in" "conftest.in" >"conftest.tmp"
4236 mv "conftest.tmp" "conftest.in"
4237 cp "conftest.in" "conftest.nl"
4238 $as_echo 'EGREP' >> "conftest.nl"
4239 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4241 as_fn_arith $ac_count + 1 && ac_count=$as_val
4242 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4243 # Best one so far, save it but keep looking for a better one
4244 ac_cv_path_EGREP="$ac_path_EGREP"
4245 ac_path_EGREP_max=$ac_count
4247 # 10*(2^10) chars as input seems more than enough
4248 test $ac_count -gt 10 && break
4250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4253 $ac_path_EGREP_found && break 3
4258 if test -z "$ac_cv_path_EGREP"; then
4259 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4262 ac_cv_path_EGREP=$EGREP
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4268 $as_echo "$ac_cv_path_EGREP" >&6; }
4269 EGREP="$ac_cv_path_EGREP"
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4273 $as_echo_n "checking for ANSI C header files... " >&6; }
4274 if ${ac_cv_header_stdc+:} false; then :
4275 $as_echo_n "(cached) " >&6
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_header_stdc=yes
4295 ac_cv_header_stdc=no
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 if test $ac_cv_header_stdc = yes; then
4300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307 $EGREP "memchr" >/dev/null 2>&1; then :
4310 ac_cv_header_stdc=no
4316 if test $ac_cv_header_stdc = yes; then
4317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324 $EGREP "free" >/dev/null 2>&1; then :
4327 ac_cv_header_stdc=no
4333 if test $ac_cv_header_stdc = yes; then
4334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4335 if test "$cross_compiling" = yes; then :
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4342 #if ((' ' & 0x0FF) == 0x020)
4343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4346 # define ISLOWER(c) \
4347 (('a' <= (c) && (c) <= 'i') \
4348 || ('j' <= (c) && (c) <= 'r') \
4349 || ('s' <= (c) && (c) <= 'z'))
4350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358 for (i = 0; i < 256; i++)
4359 if (XOR (islower (i), ISLOWER (i))
4360 || toupper (i) != TOUPPER (i))
4365 if ac_fn_c_try_run "$LINENO"; then :
4368 ac_cv_header_stdc=no
4370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4371 conftest.$ac_objext conftest.beam conftest.$ac_ext
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4377 $as_echo "$ac_cv_header_stdc" >&6; }
4378 if test $ac_cv_header_stdc = yes; then
4380 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4384 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4386 inttypes.h stdint.h unistd.h
4388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4392 cat >>confdefs.h <<_ACEOF
4393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4402 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4403 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4410 if test "$MINIX" = yes; then
4412 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4415 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4418 $as_echo "#define _MINIX 1" >>confdefs.h
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4424 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4425 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4426 $as_echo_n "(cached) " >&6
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4431 # define __EXTENSIONS__ 1
4432 $ac_includes_default
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442 ac_cv_safe_to_define___extensions__=yes
4444 ac_cv_safe_to_define___extensions__=no
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4449 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4450 test $ac_cv_safe_to_define___extensions__ = yes &&
4451 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4453 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4455 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4457 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4459 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4464 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4465 if ${ac_cv_c_const+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4474 /* FIXME: Include the comments suggested by Paul. */
4476 /* Ultrix mips cc rejects this. */
4477 typedef int charset[2];
4479 /* SunOS 4.1.1 cc rejects this. */
4480 char const *const *pcpcc;
4482 /* NEC SVR4.0.2 mips cc rejects this. */
4483 struct point {int x, y;};
4484 static struct point const zero = {0,0};
4485 /* AIX XL C 1.02.0.0 rejects this.
4486 It does not let you subtract one const X* pointer from another in
4487 an arm of an if-expression whose if-part is not a constant
4489 const char *g = "string";
4490 pcpcc = &g + (g ? g-g : 0);
4491 /* HPUX 7.0 cc rejects these. */
4493 ppc = (char**) pcpcc;
4494 pcpcc = (char const *const *) ppc;
4495 { /* SCO 3.2v4 cc rejects this. */
4497 char const *s = 0 ? (char *) 0 : (char const *) 0;
4502 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4504 const int *foo = &x[0];
4507 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4508 typedef const int *iptr;
4512 { /* AIX XL C 1.02.0.0 rejects this saying
4513 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4514 struct s { int j; const int *ap[3]; };
4515 struct s *b; b->j = 5;
4517 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4521 return !cs[0] && !zero.x;
4528 if ac_fn_c_try_compile "$LINENO"; then :
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4536 $as_echo "$ac_cv_c_const" >&6; }
4537 if test $ac_cv_c_const = no; then
4539 $as_echo "#define const /**/" >>confdefs.h
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4544 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4545 if ${ac_cv_c_restrict+:} false; then :
4546 $as_echo_n "(cached) " >&6
4549 # The order here caters to the fact that C++ does not require restrict.
4550 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 typedef int * int_ptr;
4554 int foo (int_ptr $ac_kw ip) {
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_c_restrict=$ac_kw
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 test "$ac_cv_c_restrict" != no && break
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4577 $as_echo "$ac_cv_c_restrict" >&6; }
4579 case $ac_cv_c_restrict in
4581 no) $as_echo "#define restrict /**/" >>confdefs.h
4583 *) cat >>confdefs.h <<_ACEOF
4584 #define restrict $ac_cv_c_restrict
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4590 $as_echo_n "checking for working volatile... " >&6; }
4591 if ${ac_cv_c_volatile+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4602 int * volatile y = (int *) 0;
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609 ac_cv_c_volatile=yes
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4616 $as_echo "$ac_cv_c_volatile" >&6; }
4617 if test $ac_cv_c_volatile = no; then
4619 $as_echo "#define volatile /**/" >>confdefs.h
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4629 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4634 macro_version='2.4.2'
4635 macro_revision='1.3337'
4649 ltmain="$ac_aux_dir/ltmain.sh"
4651 # Make sure we can run config.sub.
4652 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4653 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4656 $as_echo_n "checking build system type... " >&6; }
4657 if ${ac_cv_build+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 ac_build_alias=$build_alias
4661 test "x$ac_build_alias" = x &&
4662 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4663 test "x$ac_build_alias" = x &&
4664 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4665 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4670 $as_echo "$ac_cv_build" >&6; }
4671 case $ac_cv_build in
4673 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4676 ac_save_IFS=$IFS; IFS='-'
4682 # Remember, the first character of IFS is used to create $*,
4683 # except with old shells:
4686 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4690 $as_echo_n "checking host system type... " >&6; }
4691 if ${ac_cv_host+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 if test "x$host_alias" = x; then
4695 ac_cv_host=$ac_cv_build
4697 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4703 $as_echo "$ac_cv_host" >&6; }
4706 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4709 ac_save_IFS=$IFS; IFS='-'
4715 # Remember, the first character of IFS is used to create $*,
4716 # except with old shells:
4719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4722 # Backslashify metacharacters that are still active within
4723 # double-quoted strings.
4724 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4726 # Same as above, but do not quote variable references.
4727 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4729 # Sed substitution to delay expansion of an escaped shell variable in a
4730 # double_quote_subst'ed string.
4731 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4733 # Sed substitution to delay expansion of an escaped single quote.
4734 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4736 # Sed substitution to avoid accidental globbing in evaled expressions
4737 no_glob_subst='s/\*/\\\*/g'
4739 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4740 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4741 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4744 $as_echo_n "checking how to print strings... " >&6; }
4745 # Test print first, because it will be a builtin if present.
4746 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4747 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4749 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4752 # Use this function as a fallback that always works.
4753 func_fallback_echo ()
4755 eval 'cat <<_LTECHO_EOF
4759 ECHO='func_fallback_echo'
4762 # func_echo_all arg...
4763 # Invoke $ECHO with all args, space-separated.
4770 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4771 $as_echo "printf" >&6; } ;;
4772 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4773 $as_echo "print -r" >&6; } ;;
4774 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4775 $as_echo "cat" >&6; } ;;
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4792 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4793 if ${ac_cv_path_SED+:} false; then :
4794 $as_echo_n "(cached) " >&6
4796 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4797 for ac_i in 1 2 3 4 5 6 7; do
4798 ac_script="$ac_script$as_nl$ac_script"
4800 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4801 { ac_script=; unset ac_script;}
4802 if test -z "$SED"; then
4803 ac_path_SED_found=false
4804 # Loop through the user's path and test for each of PROGNAME-LIST
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir=.
4810 for ac_prog in sed gsed; do
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4813 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4814 # Check for GNU ac_path_SED and select it if it is found.
4815 # Check for GNU $ac_path_SED
4816 case `"$ac_path_SED" --version 2>&1` in
4818 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4821 $as_echo_n 0123456789 >"conftest.in"
4824 cat "conftest.in" "conftest.in" >"conftest.tmp"
4825 mv "conftest.tmp" "conftest.in"
4826 cp "conftest.in" "conftest.nl"
4827 $as_echo '' >> "conftest.nl"
4828 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4830 as_fn_arith $ac_count + 1 && ac_count=$as_val
4831 if test $ac_count -gt ${ac_path_SED_max-0}; then
4832 # Best one so far, save it but keep looking for a better one
4833 ac_cv_path_SED="$ac_path_SED"
4834 ac_path_SED_max=$ac_count
4836 # 10*(2^10) chars as input seems more than enough
4837 test $ac_count -gt 10 && break
4839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4842 $ac_path_SED_found && break 3
4847 if test -z "$ac_cv_path_SED"; then
4848 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4856 $as_echo "$ac_cv_path_SED" >&6; }
4857 SED="$ac_cv_path_SED"
4860 test -z "$SED" && SED=sed
4861 Xsed="$SED -e 1s/^X//"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4874 $as_echo_n "checking for fgrep... " >&6; }
4875 if ${ac_cv_path_FGREP+:} false; then :
4876 $as_echo_n "(cached) " >&6
4878 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4879 then ac_cv_path_FGREP="$GREP -F"
4881 if test -z "$FGREP"; then
4882 ac_path_FGREP_found=false
4883 # Loop through the user's path and test for each of PROGNAME-LIST
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4888 test -z "$as_dir" && as_dir=.
4889 for ac_prog in fgrep; do
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4892 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4893 # Check for GNU ac_path_FGREP and select it if it is found.
4894 # Check for GNU $ac_path_FGREP
4895 case `"$ac_path_FGREP" --version 2>&1` in
4897 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4900 $as_echo_n 0123456789 >"conftest.in"
4903 cat "conftest.in" "conftest.in" >"conftest.tmp"
4904 mv "conftest.tmp" "conftest.in"
4905 cp "conftest.in" "conftest.nl"
4906 $as_echo 'FGREP' >> "conftest.nl"
4907 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909 as_fn_arith $ac_count + 1 && ac_count=$as_val
4910 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4911 # Best one so far, save it but keep looking for a better one
4912 ac_cv_path_FGREP="$ac_path_FGREP"
4913 ac_path_FGREP_max=$ac_count
4915 # 10*(2^10) chars as input seems more than enough
4916 test $ac_count -gt 10 && break
4918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4921 $ac_path_FGREP_found && break 3
4926 if test -z "$ac_cv_path_FGREP"; then
4927 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4930 ac_cv_path_FGREP=$FGREP
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4936 $as_echo "$ac_cv_path_FGREP" >&6; }
4937 FGREP="$ac_cv_path_FGREP"
4940 test -z "$GREP" && GREP=grep
4960 # Check whether --with-gnu-ld was given.
4961 if test "${with_gnu_ld+set}" = set; then :
4962 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4968 if test "$GCC" = yes; then
4969 # Check if gcc -print-prog-name=ld gives a path.
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4971 $as_echo_n "checking for ld used by $CC... " >&6; }
4974 # gcc leaves a trailing carriage return which upsets mingw
4975 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4977 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4980 # Accept absolute paths.
4982 re_direlt='/[^/][^/]*/\.\./'
4983 # Canonicalize the pathname of ld
4984 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4985 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4986 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4988 test -z "$LD" && LD="$ac_prog"
4991 # If it fails, then pretend we aren't using GCC.
4995 # If it is relative, then search for the first ld in PATH.
4999 elif test "$with_gnu_ld" = yes; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5001 $as_echo_n "checking for GNU ld... " >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5004 $as_echo_n "checking for non-GNU ld... " >&6; }
5006 if ${lt_cv_path_LD+:} false; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -z "$LD"; then
5010 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5011 for ac_dir in $PATH; do
5013 test -z "$ac_dir" && ac_dir=.
5014 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5015 lt_cv_path_LD="$ac_dir/$ac_prog"
5016 # Check to see if the program is GNU ld. I'd rather use --version,
5017 # but apparently some variants of GNU ld only accept -v.
5018 # Break only if it was the GNU/non-GNU ld that we prefer.
5019 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5020 *GNU* | *'with BFD'*)
5021 test "$with_gnu_ld" != no && break
5024 test "$with_gnu_ld" != yes && break
5031 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5036 if test -n "$LD"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5038 $as_echo "$LD" >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5043 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5045 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5046 if ${lt_cv_prog_gnu_ld+:} false; then :
5047 $as_echo_n "(cached) " >&6
5049 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5050 case `$LD -v 2>&1 </dev/null` in
5051 *GNU* | *'with BFD'*)
5052 lt_cv_prog_gnu_ld=yes
5055 lt_cv_prog_gnu_ld=no
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5060 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5061 with_gnu_ld=$lt_cv_prog_gnu_ld
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5072 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5073 if ${lt_cv_path_NM+:} false; then :
5074 $as_echo_n "(cached) " >&6
5076 if test -n "$NM"; then
5077 # Let the user override the test.
5080 lt_nm_to_check="${ac_tool_prefix}nm"
5081 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5082 lt_nm_to_check="$lt_nm_to_check nm"
5084 for lt_tmp_nm in $lt_nm_to_check; do
5085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5086 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5088 test -z "$ac_dir" && ac_dir=.
5089 tmp_nm="$ac_dir/$lt_tmp_nm"
5090 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5091 # Check to see if the nm accepts a BSD-compat flag.
5092 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5093 # nm: unknown option "B" ignored
5094 # Tru64's nm complains that /dev/null is an invalid object file
5095 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5096 */dev/null* | *'Invalid file or object type'*)
5097 lt_cv_path_NM="$tmp_nm -B"
5101 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5103 lt_cv_path_NM="$tmp_nm -p"
5107 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5108 continue # so that we can try to find one that supports BSD flags
5117 : ${lt_cv_path_NM=no}
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5121 $as_echo "$lt_cv_path_NM" >&6; }
5122 if test "$lt_cv_path_NM" != "no"; then
5125 # Didn't find any BSD compatible name lister, look for dumpbin.
5126 if test -n "$DUMPBIN"; then :
5127 # Let the user override the test.
5129 if test -n "$ac_tool_prefix"; then
5130 for ac_prog in dumpbin "link -dump"
5132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_prog_DUMPBIN+:} false; then :
5137 $as_echo_n "(cached) " >&6
5139 if test -n "$DUMPBIN"; then
5140 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 DUMPBIN=$ac_cv_prog_DUMPBIN
5160 if test -n "$DUMPBIN"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5162 $as_echo "$DUMPBIN" >&6; }
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5169 test -n "$DUMPBIN" && break
5172 if test -z "$DUMPBIN"; then
5173 ac_ct_DUMPBIN=$DUMPBIN
5174 for ac_prog in dumpbin "link -dump"
5176 # Extract the first word of "$ac_prog", so it can be a program name with args.
5177 set dummy $ac_prog; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5181 $as_echo_n "(cached) " >&6
5183 if test -n "$ac_ct_DUMPBIN"; then
5184 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5204 if test -n "$ac_ct_DUMPBIN"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5206 $as_echo "$ac_ct_DUMPBIN" >&6; }
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5213 test -n "$ac_ct_DUMPBIN" && break
5216 if test "x$ac_ct_DUMPBIN" = x; then
5219 case $cross_compiling:$ac_tool_warned in
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223 ac_tool_warned=yes ;;
5225 DUMPBIN=$ac_ct_DUMPBIN
5229 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5231 DUMPBIN="$DUMPBIN -symbols"
5239 if test "$DUMPBIN" != ":"; then
5243 test -z "$NM" && NM=nm
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5251 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5252 if ${lt_cv_nm_interface+:} false; then :
5253 $as_echo_n "(cached) " >&6
5255 lt_cv_nm_interface="BSD nm"
5256 echo "int some_variable = 0;" > conftest.$ac_ext
5257 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5258 (eval "$ac_compile" 2>conftest.err)
5259 cat conftest.err >&5
5260 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5261 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5262 cat conftest.err >&5
5263 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5264 cat conftest.out >&5
5265 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5266 lt_cv_nm_interface="MS dumpbin"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5271 $as_echo "$lt_cv_nm_interface" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5274 $as_echo_n "checking whether ln -s works... " >&6; }
5276 if test "$LN_S" = "ln -s"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5278 $as_echo "yes" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5281 $as_echo "no, using $LN_S" >&6; }
5284 # find the maximum length of command line arguments
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5286 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5287 if ${lt_cv_sys_max_cmd_len+:} false; then :
5288 $as_echo_n "(cached) " >&6
5295 # On DJGPP, this test can blow up pretty badly due to problems in libc
5296 # (any single argument exceeding 2000 bytes causes a buffer overrun
5297 # during glob expansion). Even if it were fixed, the result of this
5298 # check would be larger than it should be.
5299 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5303 # Under GNU Hurd, this test is not required because there is
5304 # no limit to the length of command line arguments.
5305 # Libtool will interpret -1 as no limit whatsoever
5306 lt_cv_sys_max_cmd_len=-1;
5309 cygwin* | mingw* | cegcc*)
5310 # On Win9x/ME, this test blows up -- it succeeds, but takes
5311 # about 5 minutes as the teststring grows exponentially.
5312 # Worse, since 9x/ME are not pre-emptively multitasking,
5313 # you end up with a "frozen" computer, even though with patience
5314 # the test eventually succeeds (with a max line length of 256k).
5315 # Instead, let's just punt: use the minimum linelength reported by
5316 # all of the supported platforms: 8192 (on NT/2K/XP).
5317 lt_cv_sys_max_cmd_len=8192;
5321 # On MiNT this can take a long time and run out of memory.
5322 lt_cv_sys_max_cmd_len=8192;
5326 # On AmigaOS with pdksh, this test takes hours, literally.
5327 # So we just punt and use a minimum line length of 8192.
5328 lt_cv_sys_max_cmd_len=8192;
5331 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5332 # This has been around since 386BSD, at least. Likely further.
5333 if test -x /sbin/sysctl; then
5334 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5335 elif test -x /usr/sbin/sysctl; then
5336 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5338 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5340 # And add a safety zone
5341 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5342 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5346 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5347 lt_cv_sys_max_cmd_len=196608
5351 # The test takes a long time on OS/2.
5352 lt_cv_sys_max_cmd_len=8192
5356 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5357 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5358 # nice to cause kernel panics so lets avoid the loop below.
5359 # First set a reasonable default.
5360 lt_cv_sys_max_cmd_len=16384
5362 if test -x /sbin/sysconfig; then
5363 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5364 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5369 lt_cv_sys_max_cmd_len=102400
5371 sysv5* | sco5v6* | sysv4.2uw2*)
5372 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5373 if test -n "$kargmax"; then
5374 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5376 lt_cv_sys_max_cmd_len=32768
5380 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5381 if test -n "$lt_cv_sys_max_cmd_len"; then
5382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5383 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5385 # Make teststring a little bigger before we do anything with it.
5386 # a 1K string should be a reasonable start.
5387 for i in 1 2 3 4 5 6 7 8 ; do
5388 teststring=$teststring$teststring
5390 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5391 # If test is not a shell built-in, we'll probably end up computing a
5392 # maximum length that is only half of the actual maximum length, but
5394 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5395 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5396 test $i != 17 # 1/2 MB should be enough
5399 teststring=$teststring$teststring
5401 # Only check the string length outside the loop.
5402 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5404 # Add a significant safety factor because C++ compilers can tack on
5405 # massive amounts of additional arguments before passing them to the
5406 # linker. It appears as though 1/2 is a usable value.
5407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5414 if test -n $lt_cv_sys_max_cmd_len ; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5416 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5419 $as_echo "none" >&6; }
5421 max_cmd_len=$lt_cv_sys_max_cmd_len
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5433 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5434 # Try some XSI features
5437 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5439 && eval 'test $(( 1 + 1 )) -eq 2 \
5440 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5443 $as_echo "$xsi_shell" >&6; }
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5447 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5449 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5451 && lt_shell_append=yes
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5453 $as_echo "$lt_shell_append" >&6; }
5456 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5466 # test EBCDIC or ASCII
5467 case `echo X|tr X '\101'` in
5468 A) # ASCII based system
5469 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5470 lt_SP2NL='tr \040 \012'
5471 lt_NL2SP='tr \015\012 \040\040'
5473 *) # EBCDIC based system
5474 lt_SP2NL='tr \100 \n'
5475 lt_NL2SP='tr \r\n \100\100'
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5488 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5489 if ${lt_cv_to_host_file_cmd+:} false; then :
5490 $as_echo_n "(cached) " >&6
5495 *-*-mingw* ) # actually msys
5496 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5499 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5501 * ) # otherwise, assume *nix
5502 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5508 *-*-mingw* ) # actually msys
5509 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5512 lt_cv_to_host_file_cmd=func_convert_file_noop
5514 * ) # otherwise, assume *nix
5515 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5519 * ) # unhandled hosts (and "normal" native builds)
5520 lt_cv_to_host_file_cmd=func_convert_file_noop
5526 to_host_file_cmd=$lt_cv_to_host_file_cmd
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5528 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5535 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5536 if ${lt_cv_to_tool_file_cmd+:} false; then :
5537 $as_echo_n "(cached) " >&6
5539 #assume ordinary cross tools, or native build.
5540 lt_cv_to_tool_file_cmd=func_convert_file_noop
5544 *-*-mingw* ) # actually msys
5545 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5553 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5555 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5562 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5563 if ${lt_cv_ld_reload_flag+:} false; then :
5564 $as_echo_n "(cached) " >&6
5566 lt_cv_ld_reload_flag='-r'
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5569 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5570 reload_flag=$lt_cv_ld_reload_flag
5571 case $reload_flag in
5573 *) reload_flag=" $reload_flag" ;;
5575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5577 cygwin* | mingw* | pw32* | cegcc*)
5578 if test "$GCC" != yes; then
5583 if test "$GCC" = yes; then
5584 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5586 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5599 if test -n "$ac_tool_prefix"; then
5600 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5601 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if ${ac_cv_prog_OBJDUMP+:} false; then :
5605 $as_echo_n "(cached) " >&6
5607 if test -n "$OBJDUMP"; then
5608 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 OBJDUMP=$ac_cv_prog_OBJDUMP
5628 if test -n "$OBJDUMP"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5630 $as_echo "$OBJDUMP" >&6; }
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5638 if test -z "$ac_cv_prog_OBJDUMP"; then
5639 ac_ct_OBJDUMP=$OBJDUMP
5640 # Extract the first word of "objdump", so it can be a program name with args.
5641 set dummy objdump; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 if test -n "$ac_ct_OBJDUMP"; then
5648 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5668 if test -n "$ac_ct_OBJDUMP"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5670 $as_echo "$ac_ct_OBJDUMP" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5676 if test "x$ac_ct_OBJDUMP" = x; then
5679 case $cross_compiling:$ac_tool_warned in
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5683 ac_tool_warned=yes ;;
5685 OBJDUMP=$ac_ct_OBJDUMP
5688 OBJDUMP="$ac_cv_prog_OBJDUMP"
5691 test -z "$OBJDUMP" && OBJDUMP=objdump
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5702 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5703 if ${lt_cv_deplibs_check_method+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 lt_cv_file_magic_cmd='$MAGIC_CMD'
5707 lt_cv_file_magic_test_file=
5708 lt_cv_deplibs_check_method='unknown'
5709 # Need to set the preceding variable on all platforms that support
5710 # interlibrary dependencies.
5711 # 'none' -- dependencies not supported.
5712 # `unknown' -- same as none, but documents that we really don't know.
5713 # 'pass_all' -- all dependencies passed with no checks.
5714 # 'test_compile' -- check by making test program.
5715 # 'file_magic [[regex]]' -- check by looking for files in library path
5716 # which responds to the $file_magic_cmd with a given extended regex.
5717 # If you have `file' or equivalent on your system and you're not sure
5718 # whether `pass_all' will *always* work, you probably want this one.
5722 lt_cv_deplibs_check_method=pass_all
5726 lt_cv_deplibs_check_method=pass_all
5730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5731 lt_cv_file_magic_cmd='/usr/bin/file -L'
5732 lt_cv_file_magic_test_file=/shlib/libc.so
5736 # func_win32_libid is a shell function defined in ltmain.sh
5737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5738 lt_cv_file_magic_cmd='func_win32_libid'
5742 # Base MSYS/MinGW do not provide the 'file' command needed by
5743 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5744 # unless we find 'file', for example because we are cross-compiling.
5745 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5746 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5747 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5748 lt_cv_file_magic_cmd='func_win32_libid'
5750 # Keep this pattern in sync with the one in func_win32_libid.
5751 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5752 lt_cv_file_magic_cmd='$OBJDUMP -f'
5757 # use the weaker test based on 'objdump'. See mingw*.
5758 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5759 lt_cv_file_magic_cmd='$OBJDUMP -f'
5762 darwin* | rhapsody*)
5763 lt_cv_deplibs_check_method=pass_all
5766 freebsd* | dragonfly*)
5767 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5770 # Not sure whether the presence of OpenBSD here was a mistake.
5771 # Let's accept both of them until this is cleared up.
5772 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5773 lt_cv_file_magic_cmd=/usr/bin/file
5774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5778 lt_cv_deplibs_check_method=pass_all
5783 lt_cv_deplibs_check_method=pass_all
5787 lt_cv_deplibs_check_method=pass_all
5790 hpux10.20* | hpux11*)
5791 lt_cv_file_magic_cmd=/usr/bin/file
5794 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5795 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5799 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5802 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5803 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5809 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5813 irix5* | irix6* | nonstopux*)
5815 *-32|*"-32 ") libmagic=32-bit;;
5816 *-n32|*"-n32 ") libmagic=N32;;
5817 *-64|*"-64 ") libmagic=64-bit;;
5818 *) libmagic=never-match;;
5820 lt_cv_deplibs_check_method=pass_all
5823 # This must be glibc/ELF.
5824 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5825 lt_cv_deplibs_check_method=pass_all
5829 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5838 lt_cv_file_magic_cmd=/usr/bin/file
5839 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5843 lt_cv_deplibs_check_method=pass_all
5847 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5854 osf3* | osf4* | osf5*)
5855 lt_cv_deplibs_check_method=pass_all
5859 lt_cv_deplibs_check_method=pass_all
5863 lt_cv_deplibs_check_method=pass_all
5866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5867 lt_cv_deplibs_check_method=pass_all
5871 case $host_vendor in
5873 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]'
5874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5877 lt_cv_deplibs_check_method=pass_all
5880 lt_cv_file_magic_cmd='/bin/file'
5881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5884 lt_cv_file_magic_cmd='/bin/file'
5885 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5886 lt_cv_file_magic_test_file=/lib/libc.so
5889 lt_cv_deplibs_check_method=pass_all
5892 lt_cv_deplibs_check_method=pass_all
5898 lt_cv_deplibs_check_method=pass_all
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5904 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5908 if test "$build" = "$host"; then
5911 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5914 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5920 file_magic_cmd=$lt_cv_file_magic_cmd
5921 deplibs_check_method=$lt_cv_deplibs_check_method
5922 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5945 if test -n "$ac_tool_prefix"; then
5946 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5947 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if ${ac_cv_prog_DLLTOOL+:} false; then :
5951 $as_echo_n "(cached) " >&6
5953 if test -n "$DLLTOOL"; then
5954 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 DLLTOOL=$ac_cv_prog_DLLTOOL
5974 if test -n "$DLLTOOL"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5976 $as_echo "$DLLTOOL" >&6; }
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5984 if test -z "$ac_cv_prog_DLLTOOL"; then
5985 ac_ct_DLLTOOL=$DLLTOOL
5986 # Extract the first word of "dlltool", so it can be a program name with args.
5987 set dummy dlltool; ac_word=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989 $as_echo_n "checking for $ac_word... " >&6; }
5990 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5991 $as_echo_n "(cached) " >&6
5993 if test -n "$ac_ct_DLLTOOL"; then
5994 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6014 if test -n "$ac_ct_DLLTOOL"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6016 $as_echo "$ac_ct_DLLTOOL" >&6; }
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6022 if test "x$ac_ct_DLLTOOL" = x; then
6025 case $cross_compiling:$ac_tool_warned in
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6029 ac_tool_warned=yes ;;
6031 DLLTOOL=$ac_ct_DLLTOOL
6034 DLLTOOL="$ac_cv_prog_DLLTOOL"
6037 test -z "$DLLTOOL" && DLLTOOL=dlltool
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6049 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6050 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6051 $as_echo_n "(cached) " >&6
6053 lt_cv_sharedlib_from_linklib_cmd='unknown'
6056 cygwin* | mingw* | pw32* | cegcc*)
6057 # two different shell functions defined in ltmain.sh
6058 # decide which to use based on capabilities of $DLLTOOL
6059 case `$DLLTOOL --help 2>&1` in
6060 *--identify-strict*)
6061 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6064 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6069 # fallback: assume linklib IS sharedlib
6070 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6076 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6077 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6078 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6086 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if ${ac_cv_prog_AR+:} false; then :
6094 $as_echo_n "(cached) " >&6
6096 if test -n "$AR"; then
6097 ac_cv_prog_AR="$AR" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 if test -n "$AR"; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6119 $as_echo "$AR" >&6; }
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 $as_echo "no" >&6; }
6126 test -n "$AR" && break
6129 if test -z "$AR"; then
6133 # Extract the first word of "$ac_prog", so it can be a program name with args.
6134 set dummy $ac_prog; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6138 $as_echo_n "(cached) " >&6
6140 if test -n "$ac_ct_AR"; then
6141 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_prog_ac_ct_AR="$ac_prog"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6161 if test -n "$ac_ct_AR"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6163 $as_echo "$ac_ct_AR" >&6; }
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6170 test -n "$ac_ct_AR" && break
6173 if test "x$ac_ct_AR" = x; then
6176 case $cross_compiling:$ac_tool_warned in
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6200 $as_echo_n "checking for archiver @FILE support... " >&6; }
6201 if ${lt_cv_ar_at_file+:} false; then :
6202 $as_echo_n "(cached) " >&6
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217 echo conftest.$ac_objext > conftest.lst
6218 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6220 (eval $lt_ar_try) 2>&5
6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223 test $ac_status = 0; }
6224 if test "$ac_status" -eq 0; then
6225 # Ensure the archiver fails upon bogus file names.
6226 rm -f conftest.$ac_objext libconftest.a
6227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6228 (eval $lt_ar_try) 2>&5
6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231 test $ac_status = 0; }
6232 if test "$ac_status" -ne 0; then
6236 rm -f conftest.* libconftest.a
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6243 $as_echo "$lt_cv_ar_at_file" >&6; }
6245 if test "x$lt_cv_ar_at_file" = xno; then
6248 archiver_list_spec=$lt_cv_ar_at_file
6257 if test -n "$ac_tool_prefix"; then
6258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6259 set dummy ${ac_tool_prefix}strip; ac_word=$2
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261 $as_echo_n "checking for $ac_word... " >&6; }
6262 if ${ac_cv_prog_STRIP+:} false; then :
6263 $as_echo_n "(cached) " >&6
6265 if test -n "$STRIP"; then
6266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 STRIP=$ac_cv_prog_STRIP
6286 if test -n "$STRIP"; then
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6288 $as_echo "$STRIP" >&6; }
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 $as_echo "no" >&6; }
6296 if test -z "$ac_cv_prog_STRIP"; then
6298 # Extract the first word of "strip", so it can be a program name with args.
6299 set dummy strip; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6303 $as_echo_n "(cached) " >&6
6305 if test -n "$ac_ct_STRIP"; then
6306 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_ac_ct_STRIP="strip"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6326 if test -n "$ac_ct_STRIP"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6328 $as_echo "$ac_ct_STRIP" >&6; }
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6334 if test "x$ac_ct_STRIP" = x; then
6337 case $cross_compiling:$ac_tool_warned in
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341 ac_tool_warned=yes ;;
6346 STRIP="$ac_cv_prog_STRIP"
6349 test -z "$STRIP" && STRIP=:
6356 if test -n "$ac_tool_prefix"; then
6357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if ${ac_cv_prog_RANLIB+:} false; then :
6362 $as_echo_n "(cached) " >&6
6364 if test -n "$RANLIB"; then
6365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 RANLIB=$ac_cv_prog_RANLIB
6385 if test -n "$RANLIB"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6387 $as_echo "$RANLIB" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6395 if test -z "$ac_cv_prog_RANLIB"; then
6396 ac_ct_RANLIB=$RANLIB
6397 # Extract the first word of "ranlib", so it can be a program name with args.
6398 set dummy ranlib; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$ac_ct_RANLIB"; then
6405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_ac_ct_RANLIB="ranlib"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6425 if test -n "$ac_ct_RANLIB"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6427 $as_echo "$ac_ct_RANLIB" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6433 if test "x$ac_ct_RANLIB" = x; then
6436 case $cross_compiling:$ac_tool_warned in
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6442 RANLIB=$ac_ct_RANLIB
6445 RANLIB="$ac_cv_prog_RANLIB"
6448 test -z "$RANLIB" && RANLIB=:
6455 # Determine commands to create old-style static archives.
6456 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6457 old_postinstall_cmds='chmod 644 $oldlib'
6458 old_postuninstall_cmds=
6460 if test -n "$RANLIB"; then
6463 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6469 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6474 lock_old_archive_extraction=yes ;;
6476 lock_old_archive_extraction=no ;;
6517 # If no C compiler was specified, use CC.
6520 # If no C compiler flags were specified, use CFLAGS.
6521 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6523 # Allow CC to be a program name with arguments.
6527 # Check for command to grab the raw symbol name followed by C symbol from nm.
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6529 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6530 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6531 $as_echo_n "(cached) " >&6
6534 # These are sane defaults that work on at least a few old systems.
6535 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6537 # Character class describing NM global symbol codes.
6538 symcode='[BCDEGRST]'
6540 # Regexp to match symbols that can be accessed directly from C.
6541 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6543 # Define system-specific variables.
6548 cygwin* | mingw* | pw32* | cegcc*)
6549 symcode='[ABCDGISTW]'
6552 if test "$host_cpu" = ia64; then
6553 symcode='[ABCDEGRST]'
6557 symcode='[BCDEGRST]'
6560 symcode='[BCDEGQRST]'
6571 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6579 # If we're using GNU nm, then use its standard symbol codes.
6580 case `$NM -V 2>&1` in
6581 *GNU* | *'with BFD'*)
6582 symcode='[ABCDGIRSTW]' ;;
6585 # Transform an extracted symbol line into a proper C declaration.
6586 # Some systems (esp. on ia64) link data and code symbols differently,
6587 # so use this general approach.
6588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6590 # Transform an extracted symbol line into symbol name and symbol address
6591 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6592 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6594 # Handle CRLF in mingw tool chain
6598 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6602 # Try without a prefix underscore, then with it.
6603 for ac_symprfx in "" "_"; do
6605 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6606 symxfrm="\\1 $ac_symprfx\\2 \\2"
6608 # Write the raw and C identifiers.
6609 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6610 # Fake it for dumpbin and say T for any non-static function
6611 # and D for any global variable.
6612 # Also find C++ and __fastcall symbols from MSVC++,
6613 # which start with @ or ?.
6614 lt_cv_sys_global_symbol_pipe="$AWK '"\
6615 " {last_section=section; section=\$ 3};"\
6616 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6617 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6618 " \$ 0!~/External *\|/{next};"\
6619 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6620 " {if(hide[section]) next};"\
6621 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6622 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6623 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6624 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6625 " ' prfx=^$ac_symprfx"
6627 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6629 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6631 # Check to see that the pipe works correctly.
6635 cat > conftest.$ac_ext <<_LT_EOF
6640 void nm_test_func(void);
6641 void nm_test_func(void){}
6645 int main(){nm_test_var='a';nm_test_func();return(0);}
6648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6649 (eval $ac_compile) 2>&5
6651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652 test $ac_status = 0; }; then
6653 # Now try to grab the symbols.
6655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6656 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659 test $ac_status = 0; } && test -s "$nlist"; then
6660 # Try sorting and uniquifying the output.
6661 if sort "$nlist" | uniq > "$nlist"T; then
6662 mv -f "$nlist"T "$nlist"
6667 # Make sure that we snagged all the symbols we need.
6668 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6669 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6670 cat <<_LT_EOF > conftest.$ac_ext
6671 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6672 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6673 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6674 relocations are performed -- see ld's documentation on pseudo-relocs. */
6675 # define LT_DLSYM_CONST
6676 #elif defined(__osf__)
6677 /* This system does not cope well with relocations in const data. */
6678 # define LT_DLSYM_CONST
6680 # define LT_DLSYM_CONST const
6688 # Now generate the symbol file.
6689 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6691 cat <<_LT_EOF >> conftest.$ac_ext
6693 /* The mapping between symbol names and symbols. */
6694 LT_DLSYM_CONST struct {
6698 lt__PROGRAM__LTX_preloaded_symbols[] =
6700 { "@PROGRAM@", (void *) 0 },
6702 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6703 cat <<\_LT_EOF >> conftest.$ac_ext
6707 /* This works around a problem in FreeBSD linker */
6708 #ifdef FREEBSD_WORKAROUND
6709 static const void *lt_preloaded_setup() {
6710 return lt__PROGRAM__LTX_preloaded_symbols;
6718 # Now try linking the two files.
6719 mv conftest.$ac_objext conftstm.$ac_objext
6720 lt_globsym_save_LIBS=$LIBS
6721 lt_globsym_save_CFLAGS=$CFLAGS
6722 LIBS="conftstm.$ac_objext"
6723 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6725 (eval $ac_link) 2>&5
6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6731 LIBS=$lt_globsym_save_LIBS
6732 CFLAGS=$lt_globsym_save_CFLAGS
6734 echo "cannot find nm_test_func in $nlist" >&5
6737 echo "cannot find nm_test_var in $nlist" >&5
6740 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6743 echo "$progname: failed program was:" >&5
6744 cat conftest.$ac_ext >&5
6746 rm -rf conftest* conftst*
6748 # Do not use the global_symbol_pipe unless it works.
6749 if test "$pipe_works" = yes; then
6752 lt_cv_sys_global_symbol_pipe=
6758 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6759 lt_cv_sys_global_symbol_to_cdecl=
6761 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6763 $as_echo "failed" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6766 $as_echo "ok" >&6; }
6769 # Response file support.
6770 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6771 nm_file_list_spec='@'
6772 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6773 nm_file_list_spec='@'
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6803 $as_echo_n "checking for sysroot... " >&6; }
6805 # Check whether --with-sysroot was given.
6806 if test "${with_sysroot+set}" = set; then :
6807 withval=$with_sysroot;
6814 case ${with_sysroot} in #(
6816 if test "$GCC" = yes; then
6817 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6821 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6827 $as_echo "${with_sysroot}" >&6; }
6828 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6833 $as_echo "${lt_sysroot:-no}" >&6; }
6839 # Check whether --enable-libtool-lock was given.
6840 if test "${enable_libtool_lock+set}" = set; then :
6841 enableval=$enable_libtool_lock;
6844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6846 # Some flags need to be propagated to the compiler or linker for good
6850 # Find out which ABI we are using.
6851 echo 'int i;' > conftest.$ac_ext
6852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6853 (eval $ac_compile) 2>&5
6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856 test $ac_status = 0; }; then
6857 case `/usr/bin/file conftest.$ac_objext` in
6869 # Find out which ABI we are using.
6870 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872 (eval $ac_compile) 2>&5
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }; then
6876 if test "$lt_cv_prog_gnu_ld" = yes; then
6877 case `/usr/bin/file conftest.$ac_objext` in
6879 LD="${LD-ld} -melf32bsmip"
6882 LD="${LD-ld} -melf32bmipn32"
6885 LD="${LD-ld} -melf64bmip"
6889 case `/usr/bin/file conftest.$ac_objext` in
6905 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6906 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6907 # Find out which ABI we are using.
6908 echo 'int i;' > conftest.$ac_ext
6909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6910 (eval $ac_compile) 2>&5
6912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913 test $ac_status = 0; }; then
6914 case `/usr/bin/file conftest.o` in
6917 x86_64-*kfreebsd*-gnu)
6918 LD="${LD-ld} -m elf_i386_fbsd"
6921 LD="${LD-ld} -m elf_i386"
6923 ppc64-*linux*|powerpc64-*linux*)
6924 LD="${LD-ld} -m elf32ppclinux"
6927 LD="${LD-ld} -m elf_s390"
6930 LD="${LD-ld} -m elf32_sparc"
6936 x86_64-*kfreebsd*-gnu)
6937 LD="${LD-ld} -m elf_x86_64_fbsd"
6940 LD="${LD-ld} -m elf_x86_64"
6942 ppc*-*linux*|powerpc*-*linux*)
6943 LD="${LD-ld} -m elf64ppc"
6945 s390*-*linux*|s390*-*tpf*)
6946 LD="${LD-ld} -m elf64_s390"
6949 LD="${LD-ld} -m elf64_sparc"
6959 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6960 SAVE_CFLAGS="$CFLAGS"
6961 CFLAGS="$CFLAGS -belf"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6963 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6964 if ${lt_cv_cc_needs_belf+:} false; then :
6965 $as_echo_n "(cached) " >&6
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6984 if ac_fn_c_try_link "$LINENO"; then :
6985 lt_cv_cc_needs_belf=yes
6987 lt_cv_cc_needs_belf=no
6989 rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6992 ac_cpp='$CPP $CPPFLAGS'
6993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6999 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7000 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7001 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7002 CFLAGS="$SAVE_CFLAGS"
7006 # Find out which ABI we are using.
7007 echo 'int i;' > conftest.$ac_ext
7008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7009 (eval $ac_compile) 2>&5
7011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012 test $ac_status = 0; }; then
7013 case `/usr/bin/file conftest.o` in
7015 case $lt_cv_prog_gnu_ld in
7019 LD="${LD-ld} -m elf_x86_64"
7022 LD="${LD-ld} -m elf64_sparc"
7025 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7026 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7031 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7043 need_locks="$enable_libtool_lock"
7045 if test -n "$ac_tool_prefix"; then
7046 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7047 set dummy ${ac_tool_prefix}mt; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7051 $as_echo_n "(cached) " >&6
7053 if test -n "$MANIFEST_TOOL"; then
7054 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7074 if test -n "$MANIFEST_TOOL"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7076 $as_echo "$MANIFEST_TOOL" >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7084 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7085 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7086 # Extract the first word of "mt", so it can be a program name with args.
7087 set dummy mt; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7091 $as_echo_n "(cached) " >&6
7093 if test -n "$ac_ct_MANIFEST_TOOL"; then
7094 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7114 if test -n "$ac_ct_MANIFEST_TOOL"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7116 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7122 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7125 case $cross_compiling:$ac_tool_warned in
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7129 ac_tool_warned=yes ;;
7131 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7134 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7137 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7139 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7140 if ${lt_cv_path_mainfest_tool+:} false; then :
7141 $as_echo_n "(cached) " >&6
7143 lt_cv_path_mainfest_tool=no
7144 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7145 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7146 cat conftest.err >&5
7147 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7148 lt_cv_path_mainfest_tool=yes
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7153 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7154 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7164 rhapsody* | darwin*)
7165 if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7171 $as_echo_n "(cached) " >&6
7173 if test -n "$DSYMUTIL"; then
7174 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7194 if test -n "$DSYMUTIL"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7196 $as_echo "$DSYMUTIL" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7204 if test -z "$ac_cv_prog_DSYMUTIL"; then
7205 ac_ct_DSYMUTIL=$DSYMUTIL
7206 # Extract the first word of "dsymutil", so it can be a program name with args.
7207 set dummy dsymutil; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7211 $as_echo_n "(cached) " >&6
7213 if test -n "$ac_ct_DSYMUTIL"; then
7214 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7234 if test -n "$ac_ct_DSYMUTIL"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7236 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7242 if test "x$ac_ct_DSYMUTIL" = x; then
7245 case $cross_compiling:$ac_tool_warned in
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7251 DSYMUTIL=$ac_ct_DSYMUTIL
7254 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7257 if test -n "$ac_tool_prefix"; then
7258 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7259 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_NMEDIT+:} false; then :
7263 $as_echo_n "(cached) " >&6
7265 if test -n "$NMEDIT"; then
7266 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 NMEDIT=$ac_cv_prog_NMEDIT
7286 if test -n "$NMEDIT"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7288 $as_echo "$NMEDIT" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7296 if test -z "$ac_cv_prog_NMEDIT"; then
7297 ac_ct_NMEDIT=$NMEDIT
7298 # Extract the first word of "nmedit", so it can be a program name with args.
7299 set dummy nmedit; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7303 $as_echo_n "(cached) " >&6
7305 if test -n "$ac_ct_NMEDIT"; then
7306 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7326 if test -n "$ac_ct_NMEDIT"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7328 $as_echo "$ac_ct_NMEDIT" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7334 if test "x$ac_ct_NMEDIT" = x; then
7337 case $cross_compiling:$ac_tool_warned in
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341 ac_tool_warned=yes ;;
7343 NMEDIT=$ac_ct_NMEDIT
7346 NMEDIT="$ac_cv_prog_NMEDIT"
7349 if test -n "$ac_tool_prefix"; then
7350 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_LIPO+:} false; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$LIPO"; then
7358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 LIPO=$ac_cv_prog_LIPO
7378 if test -n "$LIPO"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7380 $as_echo "$LIPO" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7388 if test -z "$ac_cv_prog_LIPO"; then
7390 # Extract the first word of "lipo", so it can be a program name with args.
7391 set dummy lipo; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7395 $as_echo_n "(cached) " >&6
7397 if test -n "$ac_ct_LIPO"; then
7398 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_prog_ac_ct_LIPO="lipo"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7418 if test -n "$ac_ct_LIPO"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7420 $as_echo "$ac_ct_LIPO" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7426 if test "x$ac_ct_LIPO" = x; then
7429 case $cross_compiling:$ac_tool_warned in
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7438 LIPO="$ac_cv_prog_LIPO"
7441 if test -n "$ac_tool_prefix"; then
7442 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7443 set dummy ${ac_tool_prefix}otool; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_OTOOL+:} false; then :
7447 $as_echo_n "(cached) " >&6
7449 if test -n "$OTOOL"; then
7450 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 OTOOL=$ac_cv_prog_OTOOL
7470 if test -n "$OTOOL"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7472 $as_echo "$OTOOL" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7480 if test -z "$ac_cv_prog_OTOOL"; then
7482 # Extract the first word of "otool", so it can be a program name with args.
7483 set dummy otool; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7487 $as_echo_n "(cached) " >&6
7489 if test -n "$ac_ct_OTOOL"; then
7490 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_prog_ac_ct_OTOOL="otool"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7510 if test -n "$ac_ct_OTOOL"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7512 $as_echo "$ac_ct_OTOOL" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7518 if test "x$ac_ct_OTOOL" = x; then
7521 case $cross_compiling:$ac_tool_warned in
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7530 OTOOL="$ac_cv_prog_OTOOL"
7533 if test -n "$ac_tool_prefix"; then
7534 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7535 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_OTOOL64+:} false; then :
7539 $as_echo_n "(cached) " >&6
7541 if test -n "$OTOOL64"; then
7542 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 OTOOL64=$ac_cv_prog_OTOOL64
7562 if test -n "$OTOOL64"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7564 $as_echo "$OTOOL64" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7572 if test -z "$ac_cv_prog_OTOOL64"; then
7573 ac_ct_OTOOL64=$OTOOL64
7574 # Extract the first word of "otool64", so it can be a program name with args.
7575 set dummy otool64; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7579 $as_echo_n "(cached) " >&6
7581 if test -n "$ac_ct_OTOOL64"; then
7582 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_prog_ac_ct_OTOOL64="otool64"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7602 if test -n "$ac_ct_OTOOL64"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7604 $as_echo "$ac_ct_OTOOL64" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7610 if test "x$ac_ct_OTOOL64" = x; then
7613 case $cross_compiling:$ac_tool_warned in
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617 ac_tool_warned=yes ;;
7619 OTOOL64=$ac_ct_OTOOL64
7622 OTOOL64="$ac_cv_prog_OTOOL64"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7652 $as_echo_n "checking for -single_module linker flag... " >&6; }
7653 if ${lt_cv_apple_cc_single_mod+:} false; then :
7654 $as_echo_n "(cached) " >&6
7656 lt_cv_apple_cc_single_mod=no
7657 if test -z "${LT_MULTI_MODULE}"; then
7658 # By default we will add the -single_module flag. You can override
7659 # by either setting the environment variable LT_MULTI_MODULE
7660 # non-empty at configure time, or by adding -multi_module to the
7662 rm -rf libconftest.dylib*
7663 echo "int foo(void){return 1;}" > conftest.c
7664 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7665 -dynamiclib -Wl,-single_module conftest.c" >&5
7666 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7667 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7669 # If there is a non-empty error log, and "single_module"
7670 # appears in it, assume the flag caused a linker warning
7671 if test -s conftest.err && $GREP single_module conftest.err; then
7672 cat conftest.err >&5
7673 # Otherwise, if the output was created with a 0 exit code from
7674 # the compiler, it worked.
7675 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7676 lt_cv_apple_cc_single_mod=yes
7678 cat conftest.err >&5
7680 rm -rf libconftest.dylib*
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7685 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7688 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7689 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7690 $as_echo_n "(cached) " >&6
7692 lt_cv_ld_exported_symbols_list=no
7693 save_LDFLAGS=$LDFLAGS
7694 echo "_main" > conftest.sym
7695 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7707 if ac_fn_c_try_link "$LINENO"; then :
7708 lt_cv_ld_exported_symbols_list=yes
7710 lt_cv_ld_exported_symbols_list=no
7712 rm -f core conftest.err conftest.$ac_objext \
7713 conftest$ac_exeext conftest.$ac_ext
7714 LDFLAGS="$save_LDFLAGS"
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7718 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7721 $as_echo_n "checking for -force_load linker flag... " >&6; }
7722 if ${lt_cv_ld_force_load+:} false; then :
7723 $as_echo_n "(cached) " >&6
7725 lt_cv_ld_force_load=no
7726 cat > conftest.c << _LT_EOF
7727 int forced_loaded() { return 2;}
7729 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7730 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7731 echo "$AR cru libconftest.a conftest.o" >&5
7732 $AR cru libconftest.a conftest.o 2>&5
7733 echo "$RANLIB libconftest.a" >&5
7734 $RANLIB libconftest.a 2>&5
7735 cat > conftest.c << _LT_EOF
7736 int main() { return 0;}
7738 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7739 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7741 if test -s conftest.err && $GREP force_load conftest.err; then
7742 cat conftest.err >&5
7743 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7744 lt_cv_ld_force_load=yes
7746 cat conftest.err >&5
7748 rm -f conftest.err libconftest.a conftest conftest.c
7749 rm -rf conftest.dSYM
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7753 $as_echo "$lt_cv_ld_force_load" >&6; }
7755 rhapsody* | darwin1.[012])
7756 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7759 darwin*) # darwin 5.x on
7760 # if running on 10.5 or later, the deployment target defaults
7761 # to the OS version, if on x86, and 10.4, the deployment
7762 # target defaults to 10.4. Don't you love it?
7763 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7764 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7767 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7773 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7774 _lt_dar_single_mod='$single_module'
7776 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7777 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7779 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7781 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7782 _lt_dsymutil='~$DSYMUTIL $lib || :'
7789 for ac_header in dlfcn.h
7791 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7793 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DLFCN_H 1
7807 # Check whether --enable-static was given.
7808 if test "${enable_static+set}" = set; then :
7809 enableval=$enable_static; p=${PACKAGE-default}
7811 yes) enable_static=yes ;;
7812 no) enable_static=no ;;
7815 # Look at the argument we got. We use all the common list separators.
7816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7817 for pkg in $enableval; do
7819 if test "X$pkg" = "X$p"; then
7844 # Check whether --enable-shared was given.
7845 if test "${enable_shared+set}" = set; then :
7846 enableval=$enable_shared; p=${PACKAGE-default}
7848 yes) enable_shared=yes ;;
7849 no) enable_shared=no ;;
7852 # Look at the argument we got. We use all the common list separators.
7853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7854 for pkg in $enableval; do
7856 if test "X$pkg" = "X$p"; then
7877 # Check whether --with-pic was given.
7878 if test "${with_pic+set}" = set; then :
7879 withval=$with_pic; lt_p=${PACKAGE-default}
7881 yes|no) pic_mode=$withval ;;
7884 # Look at the argument we got. We use all the common list separators.
7885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7886 for lt_pkg in $withval; do
7888 if test "X$lt_pkg" = "X$lt_p"; then
7900 test -z "$pic_mode" && pic_mode=default
7908 # Check whether --enable-fast-install was given.
7909 if test "${enable_fast_install+set}" = set; then :
7910 enableval=$enable_fast_install; p=${PACKAGE-default}
7912 yes) enable_fast_install=yes ;;
7913 no) enable_fast_install=no ;;
7915 enable_fast_install=no
7916 # Look at the argument we got. We use all the common list separators.
7917 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7918 for pkg in $enableval; do
7920 if test "X$pkg" = "X$p"; then
7921 enable_fast_install=yes
7928 enable_fast_install=yes
7941 # This can be used to rebuild libtool when needed
7942 LIBTOOL_DEPS="$ltmain"
7944 # Always use our own libtool.
7945 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7976 test -z "$LN_S" && LN_S="ln -s"
7991 if test -n "${ZSH_VERSION+set}" ; then
7992 setopt NO_GLOB_SUBST
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7996 $as_echo_n "checking for objdir... " >&6; }
7997 if ${lt_cv_objdir+:} false; then :
7998 $as_echo_n "(cached) " >&6
8000 rm -f .libs 2>/dev/null
8001 mkdir .libs 2>/dev/null
8002 if test -d .libs; then
8005 # MS-DOS does not allow filenames that begin with a dot.
8008 rmdir .libs 2>/dev/null
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8011 $as_echo "$lt_cv_objdir" >&6; }
8012 objdir=$lt_cv_objdir
8018 cat >>confdefs.h <<_ACEOF
8019 #define LT_OBJDIR "$lt_cv_objdir/"
8027 # AIX sometimes has problems with the GCC collect2 program. For some
8028 # reason, if we set the COLLECT_NAMES environment variable, the problems
8029 # vanish in a puff of smoke.
8030 if test "X${COLLECT_NAMES+set}" != Xset; then
8032 export COLLECT_NAMES
8039 can_build_shared=yes
8041 # All known linkers require a `.a' archive for static linking (except MSVC,
8042 # which needs '.lib').
8045 with_gnu_ld="$lt_cv_prog_gnu_ld"
8048 old_CFLAGS="$CFLAGS"
8050 # Set sane defaults for various variables
8051 test -z "$CC" && CC=cc
8052 test -z "$LTCC" && LTCC=$CC
8053 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8054 test -z "$LD" && LD=ld
8055 test -z "$ac_objext" && ac_objext=o
8057 for cc_temp in $compiler""; do
8059 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8060 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8065 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8068 # Only perform the check for file, if the check method requires it
8069 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8070 case $deplibs_check_method in
8072 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8074 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8075 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8076 $as_echo_n "(cached) " >&6
8080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8083 lt_save_MAGIC_CMD="$MAGIC_CMD"
8084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8085 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8086 for ac_dir in $ac_dummy; do
8088 test -z "$ac_dir" && ac_dir=.
8089 if test -f $ac_dir/${ac_tool_prefix}file; then
8090 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8091 if test -n "$file_magic_test_file"; then
8092 case $deplibs_check_method in
8094 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8096 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8097 $EGREP "$file_magic_regex" > /dev/null; then
8102 *** Warning: the command libtool uses to detect shared libraries,
8103 *** $file_magic_cmd, produces output that libtool cannot recognize.
8104 *** The result is that libtool may fail to recognize shared libraries
8105 *** as such. This will affect the creation of libtool libraries that
8106 *** depend on shared libraries, but programs linked with such libtool
8107 *** libraries will work regardless of this problem. Nevertheless, you
8108 *** may want to report the problem to your system manager and/or to
8109 *** bug-libtool@gnu.org
8119 MAGIC_CMD="$lt_save_MAGIC_CMD"
8124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8125 if test -n "$MAGIC_CMD"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8127 $as_echo "$MAGIC_CMD" >&6; }
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8137 if test -z "$lt_cv_path_MAGIC_CMD"; then
8138 if test -n "$ac_tool_prefix"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8140 $as_echo_n "checking for file... " >&6; }
8141 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8142 $as_echo_n "(cached) " >&6
8146 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8149 lt_save_MAGIC_CMD="$MAGIC_CMD"
8150 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8151 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8152 for ac_dir in $ac_dummy; do
8154 test -z "$ac_dir" && ac_dir=.
8155 if test -f $ac_dir/file; then
8156 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8157 if test -n "$file_magic_test_file"; then
8158 case $deplibs_check_method in
8160 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8161 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8162 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8163 $EGREP "$file_magic_regex" > /dev/null; then
8168 *** Warning: the command libtool uses to detect shared libraries,
8169 *** $file_magic_cmd, produces output that libtool cannot recognize.
8170 *** The result is that libtool may fail to recognize shared libraries
8171 *** as such. This will affect the creation of libtool libraries that
8172 *** depend on shared libraries, but programs linked with such libtool
8173 *** libraries will work regardless of this problem. Nevertheless, you
8174 *** may want to report the problem to your system manager and/or to
8175 *** bug-libtool@gnu.org
8185 MAGIC_CMD="$lt_save_MAGIC_CMD"
8190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8191 if test -n "$MAGIC_CMD"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8193 $as_echo "$MAGIC_CMD" >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8209 # Use C for the default configuration in the libtool script
8213 ac_cpp='$CPP $CPPFLAGS'
8214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8219 # Source file extension for C test sources.
8222 # Object file extension for compiled C test sources.
8226 # Code to be used in simple compile tests
8227 lt_simple_compile_test_code="int some_variable = 0;"
8229 # Code to be used in simple link tests
8230 lt_simple_link_test_code='int main(){return(0);}'
8238 # If no C compiler was specified, use CC.
8241 # If no C compiler flags were specified, use CFLAGS.
8242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8244 # Allow CC to be a program name with arguments.
8247 # Save the default compiler, since it gets overwritten when the other
8248 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8249 compiler_DEFAULT=$CC
8251 # save warnings/boilerplate of simple test code
8252 ac_outfile=conftest.$ac_objext
8253 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8254 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8255 _lt_compiler_boilerplate=`cat conftest.err`
8258 ac_outfile=conftest.$ac_objext
8259 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8260 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8261 _lt_linker_boilerplate=`cat conftest.err`
8265 if test -n "$compiler"; then
8267 lt_prog_compiler_no_builtin_flag=
8269 if test "$GCC" = yes; then
8270 case $cc_basename in
8272 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8274 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8278 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8279 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8280 $as_echo_n "(cached) " >&6
8282 lt_cv_prog_compiler_rtti_exceptions=no
8283 ac_outfile=conftest.$ac_objext
8284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8285 lt_compiler_flag="-fno-rtti -fno-exceptions"
8286 # Insert the option either (1) after the last *FLAGS variable, or
8287 # (2) before a word containing "conftest.", or (3) at the end.
8288 # Note that $ac_compile itself does not contain backslashes and begins
8289 # with a dollar sign (not a hyphen), so the echo should work correctly.
8290 # The option is referenced via a variable to avoid confusing sed.
8291 lt_compile=`echo "$ac_compile" | $SED \
8292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8294 -e 's:$: $lt_compiler_flag:'`
8295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8296 (eval "$lt_compile" 2>conftest.err)
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 if (exit $ac_status) && test -s "$ac_outfile"; then
8301 # The compiler can only warn and ignore the option if not recognized
8302 # So say no if there are warnings other than the usual output.
8303 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8306 lt_cv_prog_compiler_rtti_exceptions=yes
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8313 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8315 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8316 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8328 lt_prog_compiler_wl=
8329 lt_prog_compiler_pic=
8330 lt_prog_compiler_static=
8333 if test "$GCC" = yes; then
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_static='-static'
8339 # All AIX code is PIC.
8340 if test "$host_cpu" = ia64; then
8341 # AIX 5 now supports IA64 processor
8342 lt_prog_compiler_static='-Bstatic'
8349 # see comment about AmigaOS4 .so support
8350 lt_prog_compiler_pic='-fPIC'
8353 # FIXME: we need at least 68020 code to build shared libraries, but
8354 # adding the `-m68020' flag to GCC prevents building anything better,
8356 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8361 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8362 # PIC is the default for these OSes.
8365 mingw* | cygwin* | pw32* | os2* | cegcc*)
8366 # This hack is so that the source file can tell whether it is being
8367 # built for inclusion in a dll (and should export symbols for example).
8368 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8369 # (--disable-auto-import) libraries
8370 lt_prog_compiler_pic='-DDLL_EXPORT'
8373 darwin* | rhapsody*)
8374 # PIC is the default on this platform
8375 # Common symbols not allowed in MH_DYLIB files
8376 lt_prog_compiler_pic='-fno-common'
8380 # PIC is the default for Haiku.
8381 # The "-static" flag exists, but is broken.
8382 lt_prog_compiler_static=
8386 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8387 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8388 # sets the default TLS model and affects inlining.
8394 lt_prog_compiler_pic='-fPIC'
8400 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8401 # Instead, we relocate shared libraries at runtime.
8405 # Just because we use GCC doesn't mean we suddenly get shared libraries
8406 # on systems that don't support them.
8407 lt_prog_compiler_can_build_shared=no
8412 # QNX uses GNU C++, but need to define -shared option too, otherwise
8414 lt_prog_compiler_pic='-fPIC -shared'
8418 if test -d /usr/nec; then
8419 lt_prog_compiler_pic=-Kconform_pic
8424 lt_prog_compiler_pic='-fPIC'
8428 case $cc_basename in
8429 nvcc*) # Cuda Compiler Driver 2.2
8430 lt_prog_compiler_wl='-Xlinker '
8431 if test -n "$lt_prog_compiler_pic"; then
8432 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8437 # PORTME Check for flag to pass linker flags through the system compiler.
8440 lt_prog_compiler_wl='-Wl,'
8441 if test "$host_cpu" = ia64; then
8442 # AIX 5 now supports IA64 processor
8443 lt_prog_compiler_static='-Bstatic'
8445 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8449 mingw* | cygwin* | pw32* | os2* | cegcc*)
8450 # This hack is so that the source file can tell whether it is being
8451 # built for inclusion in a dll (and should export symbols for example).
8452 lt_prog_compiler_pic='-DDLL_EXPORT'
8455 hpux9* | hpux10* | hpux11*)
8456 lt_prog_compiler_wl='-Wl,'
8457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8464 lt_prog_compiler_pic='+Z'
8467 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8468 lt_prog_compiler_static='${wl}-a ${wl}archive'
8471 irix5* | irix6* | nonstopux*)
8472 lt_prog_compiler_wl='-Wl,'
8473 # PIC (with -KPIC) is the default.
8474 lt_prog_compiler_static='-non_shared'
8477 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8478 case $cc_basename in
8479 # old Intel for x86_64 which still supported -KPIC.
8481 lt_prog_compiler_wl='-Wl,'
8482 lt_prog_compiler_pic='-KPIC'
8483 lt_prog_compiler_static='-static'
8485 # icc used to be incompatible with GCC.
8486 # ICC 10 doesn't accept -KPIC any more.
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_pic='-fPIC'
8490 lt_prog_compiler_static='-static'
8492 # Lahey Fortran 8.1.
8494 lt_prog_compiler_wl='-Wl,'
8495 lt_prog_compiler_pic='--shared'
8496 lt_prog_compiler_static='--static'
8499 # NAG Fortran compiler
8500 lt_prog_compiler_wl='-Wl,-Wl,,'
8501 lt_prog_compiler_pic='-PIC'
8502 lt_prog_compiler_static='-Bstatic'
8504 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8505 # Portland Group compilers (*not* the Pentium gcc compiler,
8506 # which looks to be a dead project)
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_pic='-fpic'
8509 lt_prog_compiler_static='-Bstatic'
8512 lt_prog_compiler_wl='-Wl,'
8513 # All Alpha code is PIC.
8514 lt_prog_compiler_static='-non_shared'
8516 xl* | bgxl* | bgf* | mpixl*)
8517 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8518 lt_prog_compiler_wl='-Wl,'
8519 lt_prog_compiler_pic='-qpic'
8520 lt_prog_compiler_static='-qstaticlink'
8523 case `$CC -V 2>&1 | sed 5q` in
8524 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8525 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8526 lt_prog_compiler_pic='-KPIC'
8527 lt_prog_compiler_static='-Bstatic'
8528 lt_prog_compiler_wl=''
8530 *Sun\ F* | *Sun*Fortran*)
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-Bstatic'
8533 lt_prog_compiler_wl='-Qoption ld '
8537 lt_prog_compiler_pic='-KPIC'
8538 lt_prog_compiler_static='-Bstatic'
8539 lt_prog_compiler_wl='-Wl,'
8541 *Intel*\ [CF]*Compiler*)
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_pic='-fPIC'
8544 lt_prog_compiler_static='-static'
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_pic='-fpic'
8549 lt_prog_compiler_static='-Bstatic'
8557 lt_prog_compiler_pic='-KPIC'
8558 lt_prog_compiler_static='-Bstatic'
8562 # QNX uses GNU C++, but need to define -shared option too, otherwise
8564 lt_prog_compiler_pic='-fPIC -shared'
8567 osf3* | osf4* | osf5*)
8568 lt_prog_compiler_wl='-Wl,'
8569 # All OSF/1 code is PIC.
8570 lt_prog_compiler_static='-non_shared'
8574 lt_prog_compiler_static='-non_shared'
8578 lt_prog_compiler_pic='-KPIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 case $cc_basename in
8581 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8582 lt_prog_compiler_wl='-Qoption ld ';;
8584 lt_prog_compiler_wl='-Wl,';;
8589 lt_prog_compiler_wl='-Qoption ld '
8590 lt_prog_compiler_pic='-PIC'
8591 lt_prog_compiler_static='-Bstatic'
8594 sysv4 | sysv4.2uw2* | sysv4.3*)
8595 lt_prog_compiler_wl='-Wl,'
8596 lt_prog_compiler_pic='-KPIC'
8597 lt_prog_compiler_static='-Bstatic'
8601 if test -d /usr/nec ;then
8602 lt_prog_compiler_pic='-Kconform_pic'
8603 lt_prog_compiler_static='-Bstatic'
8607 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8608 lt_prog_compiler_wl='-Wl,'
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8614 lt_prog_compiler_wl='-Wl,'
8615 lt_prog_compiler_can_build_shared=no
8619 lt_prog_compiler_pic='-pic'
8620 lt_prog_compiler_static='-Bstatic'
8624 lt_prog_compiler_can_build_shared=no
8630 # For platforms which do not support PIC, -DPIC is meaningless:
8632 lt_prog_compiler_pic=
8635 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8640 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8641 if ${lt_cv_prog_compiler_pic+:} false; then :
8642 $as_echo_n "(cached) " >&6
8644 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8647 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8648 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8651 # Check to make sure the PIC flag actually works.
8653 if test -n "$lt_prog_compiler_pic"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8655 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8656 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8657 $as_echo_n "(cached) " >&6
8659 lt_cv_prog_compiler_pic_works=no
8660 ac_outfile=conftest.$ac_objext
8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 # The option is referenced via a variable to avoid confusing sed.
8668 lt_compile=`echo "$ac_compile" | $SED \
8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671 -e 's:$: $lt_compiler_flag:'`
8672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8673 (eval "$lt_compile" 2>conftest.err)
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 if (exit $ac_status) && test -s "$ac_outfile"; then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings other than the usual output.
8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_pic_works=yes
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8690 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8692 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8693 case $lt_prog_compiler_pic in
8695 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8698 lt_prog_compiler_pic=
8699 lt_prog_compiler_can_build_shared=no
8715 # Check to make sure the static flag actually works.
8717 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8719 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8720 if ${lt_cv_prog_compiler_static_works+:} false; then :
8721 $as_echo_n "(cached) " >&6
8723 lt_cv_prog_compiler_static_works=no
8724 save_LDFLAGS="$LDFLAGS"
8725 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8726 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8727 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8728 # The linker can only warn and ignore the option if not recognized
8729 # So say no if there are warnings
8730 if test -s conftest.err; then
8731 # Append any errors to the config.log.
8732 cat conftest.err 1>&5
8733 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8735 if diff conftest.exp conftest.er2 >/dev/null; then
8736 lt_cv_prog_compiler_static_works=yes
8739 lt_cv_prog_compiler_static_works=yes
8743 LDFLAGS="$save_LDFLAGS"
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8747 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8749 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8752 lt_prog_compiler_static=
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8763 if ${lt_cv_prog_compiler_c_o+:} false; then :
8764 $as_echo_n "(cached) " >&6
8766 lt_cv_prog_compiler_c_o=no
8767 $RM -r conftest 2>/dev/null
8771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8773 lt_compiler_flag="-o out/conftest2.$ac_objext"
8774 # Insert the option either (1) after the last *FLAGS variable, or
8775 # (2) before a word containing "conftest.", or (3) at the end.
8776 # Note that $ac_compile itself does not contain backslashes and begins
8777 # with a dollar sign (not a hyphen), so the echo should work correctly.
8778 lt_compile=`echo "$ac_compile" | $SED \
8779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781 -e 's:$: $lt_compiler_flag:'`
8782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783 (eval "$lt_compile" 2>out/conftest.err)
8785 cat out/conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8789 # The compiler can only warn and ignore the option if not recognized
8790 # So say no if there are warnings
8791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8794 lt_cv_prog_compiler_c_o=yes
8799 # SGI C++ compiler will create directory out/ii_files/ for
8800 # template instantiation
8801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8802 $RM out/* && rmdir out
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8809 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8817 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8818 if ${lt_cv_prog_compiler_c_o+:} false; then :
8819 $as_echo_n "(cached) " >&6
8821 lt_cv_prog_compiler_c_o=no
8822 $RM -r conftest 2>/dev/null
8826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8828 lt_compiler_flag="-o out/conftest2.$ac_objext"
8829 # Insert the option either (1) after the last *FLAGS variable, or
8830 # (2) before a word containing "conftest.", or (3) at the end.
8831 # Note that $ac_compile itself does not contain backslashes and begins
8832 # with a dollar sign (not a hyphen), so the echo should work correctly.
8833 lt_compile=`echo "$ac_compile" | $SED \
8834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8836 -e 's:$: $lt_compiler_flag:'`
8837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8838 (eval "$lt_compile" 2>out/conftest.err)
8840 cat out/conftest.err >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8844 # The compiler can only warn and ignore the option if not recognized
8845 # So say no if there are warnings
8846 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8849 lt_cv_prog_compiler_c_o=yes
8854 # SGI C++ compiler will create directory out/ii_files/ for
8855 # template instantiation
8856 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8857 $RM out/* && rmdir out
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8864 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8869 hard_links="nottested"
8870 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8871 # do not overwrite the value of need_locks provided by the user
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8873 $as_echo_n "checking if we can lock with hard links... " >&6; }
8876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8878 ln conftest.a conftest.b 2>&5 || hard_links=no
8879 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8881 $as_echo "$hard_links" >&6; }
8882 if test "$hard_links" = no; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8884 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8897 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8900 allow_undefined_flag=
8901 always_export_symbols=no
8903 archive_expsym_cmds=
8904 compiler_needs_object=no
8905 enable_shared_with_static_runtimes=no
8906 export_dynamic_flag_spec=
8907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8908 hardcode_automatic=no
8910 hardcode_direct_absolute=no
8911 hardcode_libdir_flag_spec=
8912 hardcode_libdir_separator=
8914 hardcode_shlibpath_var=unsupported
8916 link_all_deplibs=unknown
8919 old_archive_from_new_cmds=
8920 old_archive_from_expsyms_cmds=
8921 thread_safe_flag_spec=
8922 whole_archive_flag_spec=
8923 # include_expsyms should be a list of space-separated symbols to be *always*
8924 # included in the symbol list
8926 # exclude_expsyms can be an extended regexp of symbols to exclude
8927 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8928 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8929 # as well as any symbol that contains `d'.
8930 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8931 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8932 # platforms (ab)use it in PIC code, but their linkers get confused if
8933 # the symbol is explicitly referenced. Since portable code cannot
8934 # rely on this symbol name, it's probably fine to never include it in
8935 # preloaded symbol tables.
8936 # Exclude shared library initialization/finalization symbols.
8937 extract_expsyms_cmds=
8940 cygwin* | mingw* | pw32* | cegcc*)
8941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8942 # When not using gcc, we currently assume that we are using
8943 # Microsoft Visual C++.
8944 if test "$GCC" != yes; then
8949 # we just hope/assume this is gcc and not c89 (= MSVC++)
8959 # On some targets, GNU ld is compatible enough with the native linker
8960 # that we're better off using the native interface for both.
8961 lt_use_gnu_ld_interface=no
8962 if test "$with_gnu_ld" = yes; then
8965 # The AIX port of GNU ld has always aspired to compatibility
8966 # with the native linker. However, as the warning in the GNU ld
8967 # block says, versions before 2.19.5* couldn't really create working
8968 # shared libraries, regardless of the interface used.
8969 case `$LD -v 2>&1` in
8970 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8971 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8972 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8974 lt_use_gnu_ld_interface=yes
8979 lt_use_gnu_ld_interface=yes
8984 if test "$lt_use_gnu_ld_interface" = yes; then
8985 # If archive_cmds runs LD, not CC, wlarc should be empty
8988 # Set some defaults for GNU ld with shared library support. These
8989 # are reset later if shared libraries are not supported. Putting them
8990 # here allows them to be overridden if necessary.
8991 runpath_var=LD_RUN_PATH
8992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993 export_dynamic_flag_spec='${wl}--export-dynamic'
8994 # ancient GNU ld didn't support --whole-archive et. al.
8995 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8996 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8998 whole_archive_flag_spec=
9000 supports_anon_versioning=no
9001 case `$LD -v 2>&1` in
9002 *GNU\ gold*) supports_anon_versioning=yes ;;
9003 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9004 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9005 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9006 *\ 2.11.*) ;; # other 2.11 versions
9007 *) supports_anon_versioning=yes ;;
9010 # See if GNU ld supports shared libraries.
9013 # On AIX/PPC, the GNU linker is very broken
9014 if test "$host_cpu" != ia64; then
9018 *** Warning: the GNU linker, at least up to release 2.19, is reported
9019 *** to be unable to reliably create shared libraries on AIX.
9020 *** Therefore, libtool is disabling shared libraries support. If you
9021 *** really care for shared libraries, you may want to install binutils
9022 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9023 *** You will then need to restart the configuration process.
9032 # see comment about AmigaOS4 .so support
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds=''
9037 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)'
9038 hardcode_libdir_flag_spec='-L$libdir'
9039 hardcode_minus_L=yes
9045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046 allow_undefined_flag=unsupported
9047 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9048 # support --undefined. This deserves some investigation. FIXME
9049 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055 cygwin* | mingw* | pw32* | cegcc*)
9056 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9057 # as there is no search path for DLLs.
9058 hardcode_libdir_flag_spec='-L$libdir'
9059 export_dynamic_flag_spec='${wl}--export-all-symbols'
9060 allow_undefined_flag=unsupported
9061 always_export_symbols=no
9062 enable_shared_with_static_runtimes=yes
9063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9064 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9066 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9068 # If the export-symbols file already is a .def file (1st line
9069 # is EXPORTS), use it as is; otherwise, prepend...
9070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9071 cp $export_symbols $output_objdir/$soname.def;
9073 echo EXPORTS > $output_objdir/$soname.def;
9074 cat $export_symbols >> $output_objdir/$soname.def;
9076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9084 link_all_deplibs=yes
9089 hardcode_shlibpath_var=no
9090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9091 export_dynamic_flag_spec='${wl}-E'
9092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9093 # Instead, shared libraries are loaded at an image base (0x10000000 by
9094 # default) and relocated if they conflict, which is a slow very memory
9095 # consuming and fragmenting process. To avoid this, we pick a random,
9096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9097 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9099 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'
9102 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9104 if test "$host_os" = linux-dietlibc; then
9105 case $cc_basename in
9106 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9109 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9110 && test "$tmp_diet" = no
9112 tmp_addflag=' $pic_flag'
9113 tmp_sharedflag='-shared'
9114 case $cc_basename,$host_cpu in
9115 pgcc*) # Portland Group C compiler
9116 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9117 tmp_addflag=' $pic_flag'
9119 pgf77* | pgf90* | pgf95* | pgfortran*)
9120 # Portland Group f77 and f90 compilers
9121 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9122 tmp_addflag=' $pic_flag -Mnomain' ;;
9123 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9124 tmp_addflag=' -i_dynamic' ;;
9125 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9126 tmp_addflag=' -i_dynamic -nofor_main' ;;
9127 ifc* | ifort*) # Intel Fortran compiler
9128 tmp_addflag=' -nofor_main' ;;
9129 lf95*) # Lahey Fortran 8.1
9130 whole_archive_flag_spec=
9131 tmp_sharedflag='--shared' ;;
9132 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9133 tmp_sharedflag='-qmkshrobj'
9135 nvcc*) # Cuda Compiler Driver 2.2
9136 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9137 compiler_needs_object=yes
9140 case `$CC -V 2>&1 | sed 5q` in
9141 *Sun\ C*) # Sun C 5.9
9142 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9143 compiler_needs_object=yes
9144 tmp_sharedflag='-G' ;;
9145 *Sun\ F*) # Sun Fortran 8.3
9146 tmp_sharedflag='-G' ;;
9148 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9150 if test "x$supports_anon_versioning" = xyes; then
9151 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9153 echo "local: *; };" >> $output_objdir/$libname.ver~
9154 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9157 case $cc_basename in
9158 xlf* | bgf* | bgxlf* | mpixlf*)
9159 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9160 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9162 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9163 if test "x$supports_anon_versioning" = xyes; then
9164 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9166 echo "local: *; };" >> $output_objdir/$libname.ver~
9167 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9178 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9181 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9182 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9187 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9192 *** create shared libraries on Solaris systems. Therefore, libtool
9193 *** is disabling shared libraries support. We urge you to upgrade GNU
9194 *** binutils to release 2.9.1 or newer. Another option is to modify
9195 *** your PATH or compiler configuration so that the native linker is
9196 *** used, and then restart.
9199 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9208 case `$LD -v 2>&1` in
9209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9214 *** reliably create shared libraries on SCO systems. Therefore, libtool
9215 *** is disabling shared libraries support. We urge you to upgrade GNU
9216 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9217 *** your PATH or compiler configuration so that the native linker is
9218 *** used, and then restart.
9223 # For security reasons, it is highly recommended that you always
9224 # use absolute paths for naming shared libraries, and exclude the
9225 # DT_RUNPATH tag from executables and libraries. But doing so
9226 # requires that you compile everything twice, which is a pain.
9227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9239 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9242 hardcode_shlibpath_var=no
9246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9247 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9255 if test "$ld_shlibs" = no; then
9257 hardcode_libdir_flag_spec=
9258 export_dynamic_flag_spec=
9259 whole_archive_flag_spec=
9262 # PORTME fill in a description of your system's linker (not GNU ld)
9265 allow_undefined_flag=unsupported
9266 always_export_symbols=yes
9267 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'
9268 # Note: this linker hardcodes the directories in LIBPATH if there
9269 # are no directories specified by -L.
9270 hardcode_minus_L=yes
9271 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9272 # Neither direct hardcoding nor static linking is supported with a
9274 hardcode_direct=unsupported
9279 if test "$host_cpu" = ia64; then
9280 # On IA64, the linker does run time linking by default, so we don't
9281 # have to do anything special.
9282 aix_use_runtimelinking=no
9283 exp_sym_flag='-Bexport'
9286 # If we're using GNU nm, then we don't want the "-C" option.
9287 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9288 # Also, AIX nm treats weak defined symbols like other global
9289 # defined symbols, whereas GNU nm marks them as "W".
9290 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9291 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9293 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'
9295 aix_use_runtimelinking=no
9297 # Test if we are trying to use run time linking or normal
9298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9299 # need to do runtime linking.
9300 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9301 for ld_flag in $LDFLAGS; do
9302 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9303 aix_use_runtimelinking=yes
9310 exp_sym_flag='-bexport'
9311 no_entry_flag='-bnoentry'
9314 # When large executables or shared objects are built, AIX ld can
9315 # have problems creating the table of contents. If linking a library
9316 # or program results in "error TOC overflow" add -mminimal-toc to
9317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9322 hardcode_direct_absolute=yes
9323 hardcode_libdir_separator=':'
9324 link_all_deplibs=yes
9325 file_list_spec='${wl}-f,'
9327 if test "$GCC" = yes; then
9328 case $host_os in aix4.[012]|aix4.[012].*)
9329 # We only want to do this on AIX 4.2 and lower, the check
9330 # below for broken collect2 doesn't work under 4.3+
9331 collect2name=`${CC} -print-prog-name=collect2`
9332 if test -f "$collect2name" &&
9333 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9335 # We have reworked collect2
9338 # We have old collect2
9339 hardcode_direct=unsupported
9340 # It fails to find uninstalled libraries when the uninstalled
9341 # path is not listed in the libpath. Setting hardcode_minus_L
9342 # to unsupported forces relinking
9343 hardcode_minus_L=yes
9344 hardcode_libdir_flag_spec='-L$libdir'
9345 hardcode_libdir_separator=
9349 shared_flag='-shared'
9350 if test "$aix_use_runtimelinking" = yes; then
9351 shared_flag="$shared_flag "'${wl}-G'
9355 if test "$host_cpu" = ia64; then
9356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9357 # chokes on -Wl,-G. The following line is correct:
9360 if test "$aix_use_runtimelinking" = yes; then
9361 shared_flag='${wl}-G'
9363 shared_flag='${wl}-bM:SRE'
9368 export_dynamic_flag_spec='${wl}-bexpall'
9369 # It seems that -bexpall does not export symbols beginning with
9370 # underscore (_), so it is better to generate a list of symbols to export.
9371 always_export_symbols=yes
9372 if test "$aix_use_runtimelinking" = yes; then
9373 # Warning - without using the other runtime loading flags (-brtl),
9374 # -berok will link without error, but may produce a broken library.
9375 allow_undefined_flag='-berok'
9376 # Determine the default libpath from the value encoded in an
9378 if test "${lt_cv_aix_libpath+set}" = set; then
9379 aix_libpath=$lt_cv_aix_libpath
9381 if ${lt_cv_aix_libpath_+:} false; then :
9382 $as_echo_n "(cached) " >&6
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9395 if ac_fn_c_try_link "$LINENO"; then :
9397 lt_aix_libpath_sed='
9398 /Import File Strings/,/^$/ {
9400 s/^0 *\([^ ]*\) *$/\1/
9404 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9405 # Check for a 64-bit object if we didn't find anything.
9406 if test -z "$lt_cv_aix_libpath_"; then
9407 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9410 rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 if test -z "$lt_cv_aix_libpath_"; then
9413 lt_cv_aix_libpath_="/usr/lib:/lib"
9418 aix_libpath=$lt_cv_aix_libpath_
9421 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9422 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9424 if test "$host_cpu" = ia64; then
9425 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9426 allow_undefined_flag="-z nodefs"
9427 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"
9429 # Determine the default libpath from the value encoded in an
9431 if test "${lt_cv_aix_libpath+set}" = set; then
9432 aix_libpath=$lt_cv_aix_libpath
9434 if ${lt_cv_aix_libpath_+:} false; then :
9435 $as_echo_n "(cached) " >&6
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9448 if ac_fn_c_try_link "$LINENO"; then :
9450 lt_aix_libpath_sed='
9451 /Import File Strings/,/^$/ {
9453 s/^0 *\([^ ]*\) *$/\1/
9457 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9458 # Check for a 64-bit object if we didn't find anything.
9459 if test -z "$lt_cv_aix_libpath_"; then
9460 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9463 rm -f core conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465 if test -z "$lt_cv_aix_libpath_"; then
9466 lt_cv_aix_libpath_="/usr/lib:/lib"
9471 aix_libpath=$lt_cv_aix_libpath_
9474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9475 # Warning - without using the other run time loading flags,
9476 # -berok will link without error, but may produce a broken library.
9477 no_undefined_flag=' ${wl}-bernotok'
9478 allow_undefined_flag=' ${wl}-berok'
9479 if test "$with_gnu_ld" = yes; then
9480 # We only use this code for GNU lds that support --whole-archive.
9481 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9483 # Exported symbols can be pulled into shared objects from archives
9484 whole_archive_flag_spec='$convenience'
9486 archive_cmds_need_lc=yes
9487 # This is similar to how AIX traditionally builds its shared libraries.
9488 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'
9496 # see comment about AmigaOS4 .so support
9497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498 archive_expsym_cmds=''
9501 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)'
9502 hardcode_libdir_flag_spec='-L$libdir'
9503 hardcode_minus_L=yes
9509 export_dynamic_flag_spec=-rdynamic
9512 cygwin* | mingw* | pw32* | cegcc*)
9513 # When not using gcc, we currently assume that we are using
9514 # Microsoft Visual C++.
9515 # hardcode_libdir_flag_spec is actually meaningless, as there is
9516 # no search path for DLLs.
9517 case $cc_basename in
9520 hardcode_libdir_flag_spec=' '
9521 allow_undefined_flag=unsupported
9522 always_export_symbols=yes
9524 # Tell ltmain to make .lib files, not .a files.
9526 # Tell ltmain to make .dll files, not .so files.
9528 # FIXME: Setting linknames here is a bad hack.
9529 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9530 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9531 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9533 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9535 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9537 # The linker will not automatically build a static lib if we build a DLL.
9538 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9539 enable_shared_with_static_runtimes=yes
9540 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9541 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9543 old_postinstall_cmds='chmod 644 $oldlib'
9544 postlink_cmds='lt_outputfile="@OUTPUT@"~
9545 lt_tool_outputfile="@TOOL_OUTPUT@"~
9546 case $lt_outputfile in
9549 lt_outputfile="$lt_outputfile.exe"
9550 lt_tool_outputfile="$lt_tool_outputfile.exe"
9553 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9554 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9555 $RM "$lt_outputfile.manifest";
9559 # Assume MSVC wrapper
9560 hardcode_libdir_flag_spec=' '
9561 allow_undefined_flag=unsupported
9562 # Tell ltmain to make .lib files, not .a files.
9564 # Tell ltmain to make .dll files, not .so files.
9566 # FIXME: Setting linknames here is a bad hack.
9567 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9568 # The linker will automatically build a .lib file if we build a DLL.
9569 old_archive_from_new_cmds='true'
9570 # FIXME: Should let the user specify the lib program.
9571 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9572 enable_shared_with_static_runtimes=yes
9577 darwin* | rhapsody*)
9580 archive_cmds_need_lc=no
9582 hardcode_automatic=yes
9583 hardcode_shlibpath_var=unsupported
9584 if test "$lt_cv_ld_force_load" = "yes"; then
9585 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9588 whole_archive_flag_spec=''
9590 link_all_deplibs=yes
9591 allow_undefined_flag="$_lt_dar_allow_undefined"
9592 case $cc_basename in
9593 ifort*) _lt_dar_can_shared=yes ;;
9594 *) _lt_dar_can_shared=$GCC ;;
9596 if test "$_lt_dar_can_shared" = "yes"; then
9597 output_verbose_link_cmd=func_echo_all
9598 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9599 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9600 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}"
9601 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}"
9610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 hardcode_libdir_flag_spec='-L$libdir'
9612 hardcode_shlibpath_var=no
9615 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9616 # support. Future versions do this automatically, but an explicit c++rt0.o
9617 # does not break anything, and helps significantly (at the cost of a little
9620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9621 hardcode_libdir_flag_spec='-R$libdir'
9623 hardcode_shlibpath_var=no
9626 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_minus_L=yes
9631 hardcode_shlibpath_var=no
9634 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9635 freebsd* | dragonfly*)
9636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9637 hardcode_libdir_flag_spec='-R$libdir'
9639 hardcode_shlibpath_var=no
9643 if test "$GCC" = yes; then
9644 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9646 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'
9648 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9649 hardcode_libdir_separator=:
9652 # hardcode_minus_L: Not really in the search PATH,
9653 # but as the default location of the library.
9654 hardcode_minus_L=yes
9655 export_dynamic_flag_spec='${wl}-E'
9659 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9660 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9662 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9664 if test "$with_gnu_ld" = no; then
9665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9666 hardcode_libdir_separator=:
9668 hardcode_direct_absolute=yes
9669 export_dynamic_flag_spec='${wl}-E'
9670 # hardcode_minus_L: Not really in the search PATH,
9671 # but as the default location of the library.
9672 hardcode_minus_L=yes
9677 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9680 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9686 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9699 # Older versions of the 11.00 compiler do not understand -b yet
9700 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9702 $as_echo_n "checking if $CC understands -b... " >&6; }
9703 if ${lt_cv_prog_compiler__b+:} false; then :
9704 $as_echo_n "(cached) " >&6
9706 lt_cv_prog_compiler__b=no
9707 save_LDFLAGS="$LDFLAGS"
9708 LDFLAGS="$LDFLAGS -b"
9709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9711 # The linker can only warn and ignore the option if not recognized
9712 # So say no if there are warnings
9713 if test -s conftest.err; then
9714 # Append any errors to the config.log.
9715 cat conftest.err 1>&5
9716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9718 if diff conftest.exp conftest.er2 >/dev/null; then
9719 lt_cv_prog_compiler__b=yes
9722 lt_cv_prog_compiler__b=yes
9726 LDFLAGS="$save_LDFLAGS"
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9730 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9732 if test x"$lt_cv_prog_compiler__b" = xyes; then
9733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9741 if test "$with_gnu_ld" = no; then
9742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9743 hardcode_libdir_separator=:
9748 hardcode_shlibpath_var=no
9752 hardcode_direct_absolute=yes
9753 export_dynamic_flag_spec='${wl}-E'
9755 # hardcode_minus_L: Not really in the search PATH,
9756 # but as the default location of the library.
9757 hardcode_minus_L=yes
9763 irix5* | irix6* | nonstopux*)
9764 if test "$GCC" = yes; then
9765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9766 # Try to use the -exported_symbol ld option, if it does not
9767 # work, assume that -exports_file does not work either and
9768 # implicitly export all symbols.
9769 # This should be the same for all languages, so no per-tag cache variable.
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9771 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9772 if ${lt_cv_irix_exported_symbol+:} false; then :
9773 $as_echo_n "(cached) " >&6
9775 save_LDFLAGS="$LDFLAGS"
9776 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 int foo (void) { return 0; }
9781 if ac_fn_c_try_link "$LINENO"; then :
9782 lt_cv_irix_exported_symbol=yes
9784 lt_cv_irix_exported_symbol=no
9786 rm -f core conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788 LDFLAGS="$save_LDFLAGS"
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9791 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9792 if test "$lt_cv_irix_exported_symbol" = yes; then
9793 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9799 archive_cmds_need_lc='no'
9800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9801 hardcode_libdir_separator=:
9803 link_all_deplibs=yes
9807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9810 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9812 hardcode_libdir_flag_spec='-R$libdir'
9814 hardcode_shlibpath_var=no
9818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821 hardcode_libdir_separator=:
9822 hardcode_shlibpath_var=no
9829 if test -f /usr/libexec/ld.so; then
9831 hardcode_shlibpath_var=no
9832 hardcode_direct_absolute=yes
9833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9835 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9837 export_dynamic_flag_spec='${wl}-E'
9840 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_libdir_flag_spec='-R$libdir'
9845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9856 hardcode_libdir_flag_spec='-L$libdir'
9857 hardcode_minus_L=yes
9858 allow_undefined_flag=unsupported
9859 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'
9860 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9864 if test "$GCC" = yes; then
9865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9866 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9868 allow_undefined_flag=' -expect_unresolved \*'
9869 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9871 archive_cmds_need_lc='no'
9872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9873 hardcode_libdir_separator=:
9876 osf4* | osf5*) # as osf3* with the addition of -msym flag
9877 if test "$GCC" = yes; then
9878 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9879 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9882 allow_undefined_flag=' -expect_unresolved \*'
9883 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9884 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9885 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9887 # Both c and cxx compiler support -rpath directly
9888 hardcode_libdir_flag_spec='-rpath $libdir'
9890 archive_cmds_need_lc='no'
9891 hardcode_libdir_separator=:
9895 no_undefined_flag=' -z defs'
9896 if test "$GCC" = yes; then
9898 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9902 case `$CC -V 2>&1` in
9905 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9911 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9913 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9917 hardcode_libdir_flag_spec='-R$libdir'
9918 hardcode_shlibpath_var=no
9920 solaris2.[0-5] | solaris2.[0-5].*) ;;
9922 # The compiler driver will combine and reorder linker options,
9923 # but understands `-z linker_flag'. GCC discards it without `$wl',
9924 # but is careful enough not to reorder.
9925 # Supported since Solaris 2.6 (maybe 2.5.1?)
9926 if test "$GCC" = yes; then
9927 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9929 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9933 link_all_deplibs=yes
9937 if test "x$host_vendor" = xsequent; then
9938 # Use $CC to link under sequent, because it throws in some extra .o
9939 # files that make .init and .fini sections work.
9940 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9942 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9944 hardcode_libdir_flag_spec='-L$libdir'
9946 hardcode_minus_L=yes
9947 hardcode_shlibpath_var=no
9951 case $host_vendor in
9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_direct=yes # is this really true???
9957 ## LD is ld it makes a PLAMLIB
9958 ## CC just makes a GrossModule.
9959 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9960 reload_cmds='$CC -r -o $output$reload_objs'
9964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9968 runpath_var='LD_RUN_PATH'
9969 hardcode_shlibpath_var=no
9973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_shlibpath_var=no
9975 export_dynamic_flag_spec='-Bexport'
9979 if test -d /usr/nec; then
9980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981 hardcode_shlibpath_var=no
9982 runpath_var=LD_RUN_PATH
9983 hardcode_runpath_var=yes
9988 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9989 no_undefined_flag='${wl}-z,text'
9990 archive_cmds_need_lc=no
9991 hardcode_shlibpath_var=no
9992 runpath_var='LD_RUN_PATH'
9994 if test "$GCC" = yes; then
9995 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10003 sysv5* | sco3.2v5* | sco5v6*)
10004 # Note: We can NOT use -z defs as we might desire, because we do not
10005 # link with -lc, and that would cause any symbols used from libc to
10006 # always be unresolved, which means just about no library would
10007 # ever link correctly. If we're not using GNU ld we use -z text
10008 # though, which does catch some bad symbols but isn't as heavy-handed
10010 no_undefined_flag='${wl}-z,text'
10011 allow_undefined_flag='${wl}-z,nodefs'
10012 archive_cmds_need_lc=no
10013 hardcode_shlibpath_var=no
10014 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10015 hardcode_libdir_separator=':'
10016 link_all_deplibs=yes
10017 export_dynamic_flag_spec='${wl}-Bexport'
10018 runpath_var='LD_RUN_PATH'
10020 if test "$GCC" = yes; then
10021 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031 hardcode_libdir_flag_spec='-L$libdir'
10032 hardcode_shlibpath_var=no
10040 if test x$host_vendor = xsni; then
10042 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10043 export_dynamic_flag_spec='${wl}-Blargedynsym'
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10050 $as_echo "$ld_shlibs" >&6; }
10051 test "$ld_shlibs" = no && can_build_shared=no
10053 with_gnu_ld=$with_gnu_ld
10070 # Do we need to explicitly link libc?
10072 case "x$archive_cmds_need_lc" in
10074 # Assume -lc should be added
10075 archive_cmds_need_lc=yes
10077 if test "$enable_shared" = yes && test "$GCC" = yes; then
10078 case $archive_cmds in
10080 # FIXME: we may have to deal with multi-command sequences.
10083 # Test whether the compiler implicitly links with -lc since on some
10084 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10085 # to ld, don't add -lc before -lgcc.
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10087 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10088 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10089 $as_echo_n "(cached) " >&6
10092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10095 (eval $ac_compile) 2>&5
10097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098 test $ac_status = 0; } 2>conftest.err; then
10101 libobjs=conftest.$ac_objext
10103 wl=$lt_prog_compiler_wl
10104 pic_flag=$lt_prog_compiler_pic
10110 lt_save_allow_undefined_flag=$allow_undefined_flag
10111 allow_undefined_flag=
10112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10113 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10116 test $ac_status = 0; }
10118 lt_cv_archive_cmds_need_lc=no
10120 lt_cv_archive_cmds_need_lc=yes
10122 allow_undefined_flag=$lt_save_allow_undefined_flag
10124 cat conftest.err 1>&5
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10130 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10131 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10290 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10292 if test "$GCC" = yes; then
10294 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10295 *) lt_awk_arg="/^libraries:/" ;;
10298 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10299 *) lt_sed_strip_eq="s,=/,/,g" ;;
10301 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10302 case $lt_search_path_spec in
10304 # if the path contains ";" then we assume it to be the separator
10305 # otherwise default to the standard path separator (i.e. ":") - it is
10306 # assumed that no part of a normal pathname contains ";" but that should
10307 # okay in the real world where ";" in dirpaths is itself problematic.
10308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10314 # Ok, now we have the path, separated by spaces, we can step through it
10315 # and add multilib dir if necessary.
10316 lt_tmp_lt_search_path_spec=
10317 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10318 for lt_sys_path in $lt_search_path_spec; do
10319 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10322 test -d "$lt_sys_path" && \
10323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10326 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10327 BEGIN {RS=" "; FS="/|\n";} {
10330 for (lt_i = NF; lt_i > 0; lt_i--) {
10331 if ($lt_i != "" && $lt_i != ".") {
10332 if ($lt_i == "..") {
10335 if (lt_count == 0) {
10336 lt_foo="/" $lt_i lt_foo;
10343 if (lt_foo != "") { lt_freq[lt_foo]++; }
10344 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10346 # AWK program above erroneously prepends '/' to C:/dos/paths
10349 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10350 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10352 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10356 library_names_spec=
10357 libname_spec='lib$name'
10361 postuninstall_cmds=
10365 shlibpath_overrides_runpath=unknown
10367 dynamic_linker="$host_os ld.so"
10368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10369 need_lib_prefix=unknown
10370 hardcode_into_libs=no
10372 # when you set need_version to no, make sure it does not cause -set_version
10373 # flags to be left without arguments
10374 need_version=unknown
10378 version_type=linux # correct to gnu/linux during the next big refactor
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10380 shlibpath_var=LIBPATH
10382 # AIX 3 has no versioning support, so we append a major version to the name.
10383 soname_spec='${libname}${release}${shared_ext}$major'
10387 version_type=linux # correct to gnu/linux during the next big refactor
10390 hardcode_into_libs=yes
10391 if test "$host_cpu" = ia64; then
10392 # AIX 5 supports IA64
10393 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10394 shlibpath_var=LD_LIBRARY_PATH
10396 # With GCC up to 2.95.x, collect2 would create an import file
10397 # for dependence libraries. The import file would start with
10398 # the line `#! .'. This would cause the generated library to
10399 # depend on `.', always an invalid library. This was fixed in
10400 # development snapshots of GCC prior to 3.0.
10402 aix4 | aix4.[01] | aix4.[01].*)
10403 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10405 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10408 can_build_shared=no
10412 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10413 # soname into executable. Probably we can add versioning support to
10414 # collect2, so additional links can be useful in future.
10415 if test "$aix_use_runtimelinking" = yes; then
10416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10417 # instead of lib<name>.a to let people know that these are not
10418 # typical AIX shared libraries.
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 # We preserve .a as extension for shared libraries through AIX4.2
10422 # and later when we are not doing run time linking.
10423 library_names_spec='${libname}${release}.a $libname.a'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LIBPATH
10433 # Since July 2007 AmigaOS4 officially supports .so libraries.
10434 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 library_names_spec='$libname.ixlibrary $libname.a'
10439 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10440 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10446 library_names_spec='${libname}${shared_ext}'
10447 dynamic_linker="$host_os ld.so"
10448 shlibpath_var=LIBRARY_PATH
10452 version_type=linux # correct to gnu/linux during the next big refactor
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10460 # the default ld.so.conf also contains /usr/contrib/lib and
10461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10462 # libtool to hard-code these into programs
10465 cygwin* | mingw* | pw32* | cegcc*)
10466 version_type=windows
10471 case $GCC,$cc_basename in
10474 library_names_spec='$libname.dll.a'
10475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10476 postinstall_cmds='base_file=`basename \${file}`~
10477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10478 dldir=$destdir/`dirname \$dlpath`~
10479 test -d \$dldir || mkdir -p \$dldir~
10480 $install_prog $dir/$dlname \$dldir/$dlname~
10481 chmod a+x \$dldir/$dlname~
10482 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10483 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10486 dlpath=$dir/\$dldll~
10488 shlibpath_overrides_runpath=yes
10492 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10493 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10495 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10498 # MinGW DLLs use traditional 'lib' prefix
10499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10502 # pw32 DLLs use 'pw' prefix rather than 'lib'
10503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10506 dynamic_linker='Win32 ld.exe'
10511 libname_spec='$name'
10512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10513 library_names_spec='${libname}.dll.lib'
10517 sys_lib_search_path_spec=
10520 for lt_path in $LIB
10523 # Let DOS variable expansion print the short 8.3 style file name.
10524 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10525 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10528 # Convert to MSYS style.
10529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10532 # Convert to unix form, then to dos form, then back to unix form
10533 # but this time dos style (no spaces!) so that the unix form looks
10534 # like /cygdrive/c/PROGRA~1:/cygdr...
10535 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10536 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10537 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10540 sys_lib_search_path_spec="$LIB"
10541 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10542 # It is most probably a Windows format PATH.
10543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10547 # FIXME: find the short name or the path components, as spaces are
10548 # common. (e.g. "Program Files" -> "PROGRA~1")
10552 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10553 postinstall_cmds='base_file=`basename \${file}`~
10554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10555 dldir=$destdir/`dirname \$dlpath`~
10556 test -d \$dldir || mkdir -p \$dldir~
10557 $install_prog $dir/$dlname \$dldir/$dlname'
10558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10559 dlpath=$dir/\$dldll~
10561 shlibpath_overrides_runpath=yes
10562 dynamic_linker='Win32 link.exe'
10566 # Assume MSVC wrapper
10567 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10568 dynamic_linker='Win32 ld.exe'
10571 # FIXME: first we should search . and the directory the executable is in
10575 darwin* | rhapsody*)
10576 dynamic_linker="$host_os dyld"
10577 version_type=darwin
10580 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10581 soname_spec='${libname}${release}${major}$shared_ext'
10582 shlibpath_overrides_runpath=yes
10583 shlibpath_var=DYLD_LIBRARY_PATH
10584 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10586 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10591 version_type=linux # correct to gnu/linux during the next big refactor
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 shlibpath_var=LD_LIBRARY_PATH
10599 freebsd* | dragonfly*)
10600 # DragonFly does not have aout. When/if they implement a new
10601 # versioning mechanism, adjust this.
10602 if test -x /usr/bin/objformat; then
10603 objformat=`/usr/bin/objformat`
10606 freebsd[23].*) objformat=aout ;;
10607 *) objformat=elf ;;
10610 version_type=freebsd-$objformat
10611 case $version_type in
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10622 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes
10627 freebsd3.[01]* | freebsdelf3.[01]*)
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10631 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10632 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10633 shlibpath_overrides_runpath=no
10634 hardcode_into_libs=yes
10636 *) # from 4.6 on, and DragonFly
10637 shlibpath_overrides_runpath=yes
10638 hardcode_into_libs=yes
10644 version_type=linux # correct to gnu/linux during the next big refactor
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath=no
10651 hardcode_into_libs=yes
10655 version_type=linux # correct to gnu/linux during the next big refactor
10658 dynamic_linker="$host_os runtime_loader"
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 shlibpath_var=LIBRARY_PATH
10662 shlibpath_overrides_runpath=yes
10663 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10664 hardcode_into_libs=yes
10667 hpux9* | hpux10* | hpux11*)
10668 # Give a soname corresponding to the major version so that dld.sl refuses to
10669 # link against other versions.
10676 hardcode_into_libs=yes
10677 dynamic_linker="$host_os dld.so"
10678 shlibpath_var=LD_LIBRARY_PATH
10679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 if test "X$HPUX_IA64_MODE" = X32; then
10683 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10691 hardcode_into_libs=yes
10692 dynamic_linker="$host_os dld.sl"
10693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10702 dynamic_linker="$host_os dld.sl"
10703 shlibpath_var=SHLIB_PATH
10704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 soname_spec='${libname}${release}${shared_ext}$major'
10709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10710 postinstall_cmds='chmod 555 $lib'
10711 # or fails outright, so override atomically:
10712 install_override_mode=555
10716 version_type=linux # correct to gnu/linux during the next big refactor
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 shlibpath_overrides_runpath=no
10724 hardcode_into_libs=yes
10727 irix5* | irix6* | nonstopux*)
10729 nonstopux*) version_type=nonstopux ;;
10731 if test "$lt_cv_prog_gnu_ld" = yes; then
10732 version_type=linux # correct to gnu/linux during the next big refactor
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10742 irix5* | nonstopux*)
10743 libsuff= shlibsuff=
10746 case $LD in # libtool.m4 will add one of these switches to LD
10747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10748 libsuff= shlibsuff= libmagic=32-bit;;
10749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10750 libsuff=32 shlibsuff=N32 libmagic=N32;;
10751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10753 *) libsuff= shlibsuff= libmagic=never-match;;
10757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10758 shlibpath_overrides_runpath=no
10759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10761 hardcode_into_libs=yes
10764 # No shared lib support for Linux oldld, aout, or coff.
10765 linux*oldld* | linux*aout* | linux*coff*)
10769 # This must be glibc/ELF.
10770 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10771 version_type=linux # correct to gnu/linux during the next big refactor
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=no
10780 # Some binutils ld are patched to set DT_RUNPATH
10781 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10782 $as_echo_n "(cached) " >&6
10784 lt_cv_shlibpath_overrides_runpath=no
10785 save_LDFLAGS=$LDFLAGS
10786 save_libdir=$libdir
10787 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10788 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10800 if ac_fn_c_try_link "$LINENO"; then :
10801 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10802 lt_cv_shlibpath_overrides_runpath=yes
10805 rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10807 LDFLAGS=$save_LDFLAGS
10808 libdir=$save_libdir
10812 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10814 # This implies no fast_install, which is unacceptable.
10815 # Some rework will be needed to allow for fast_install
10816 # before this can be enabled.
10817 hardcode_into_libs=yes
10819 # Append ld.so.conf contents to the search path
10820 if test -f /etc/ld.so.conf; then
10821 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;s/"//g;/^$/d' | tr '\n' ' '`
10822 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10825 # We used to test for /lib/ld.so.1 and disable shared libraries on
10826 # powerpc, because MkLinux only supported shared libraries with the
10827 # GNU dynamic linker. Since this was broken with cross compilers,
10828 # most powerpc-linux boxes support dynamic linking these days and
10829 # people can always --disable-shared, the test was removed, and we
10830 # assume the GNU/Linux dynamic linker is in use.
10831 dynamic_linker='GNU/Linux ld.so'
10838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10841 dynamic_linker='NetBSD (a.out) ld.so'
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 dynamic_linker='NetBSD ld.elf_so'
10847 shlibpath_var=LD_LIBRARY_PATH
10848 shlibpath_overrides_runpath=yes
10849 hardcode_into_libs=yes
10853 version_type=linux # correct to gnu/linux during the next big refactor
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 shlibpath_overrides_runpath=yes
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath=no
10867 hardcode_into_libs=yes
10868 dynamic_linker='ldqnx.so'
10873 sys_lib_dlsearch_path_spec="/usr/lib"
10875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10877 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10878 *) need_version=no ;;
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10885 openbsd2.[89] | openbsd2.[89].*)
10886 shlibpath_overrides_runpath=no
10889 shlibpath_overrides_runpath=yes
10893 shlibpath_overrides_runpath=yes
10898 libname_spec='$name'
10901 library_names_spec='$libname${shared_ext} $libname.a'
10902 dynamic_linker='OS/2 ld.exe'
10903 shlibpath_var=LIBPATH
10906 osf3* | osf4* | osf5*)
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10922 version_type=linux # correct to gnu/linux during the next big refactor
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=yes
10929 hardcode_into_libs=yes
10930 # ldd complains unless libraries are executable
10931 postinstall_cmds='chmod +x $lib'
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes
10940 if test "$with_gnu_ld" = yes; then
10947 version_type=linux # correct to gnu/linux during the next big refactor
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 case $host_vendor in
10953 shlibpath_overrides_runpath=no
10955 runpath_var=LD_RUN_PATH
10963 shlibpath_overrides_runpath=no
10964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10970 if test -d /usr/nec ;then
10971 version_type=linux # correct to gnu/linux during the next big refactor
10972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10973 soname_spec='$libname${shared_ext}.$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10979 version_type=freebsd-elf
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10986 hardcode_into_libs=yes
10987 if test "$with_gnu_ld" = yes; then
10988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10993 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10997 sys_lib_dlsearch_path_spec='/usr/lib'
11001 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11002 version_type=linux # correct to gnu/linux during the next big refactor
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 shlibpath_var=LD_LIBRARY_PATH
11007 shlibpath_overrides_runpath=no
11008 hardcode_into_libs=yes
11012 version_type=linux # correct to gnu/linux during the next big refactor
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 shlibpath_var=LD_LIBRARY_PATH
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11023 $as_echo "$dynamic_linker" >&6; }
11024 test "$dynamic_linker" = no && can_build_shared=no
11026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11027 if test "$GCC" = yes; then
11028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11031 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11032 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11034 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11035 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11130 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11132 if test -n "$hardcode_libdir_flag_spec" ||
11133 test -n "$runpath_var" ||
11134 test "X$hardcode_automatic" = "Xyes" ; then
11136 # We can hardcode non-existent directories.
11137 if test "$hardcode_direct" != no &&
11138 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11139 # have to relink, otherwise we might link with an installed library
11140 # when we should be linking with a yet-to-be-installed one
11141 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11142 test "$hardcode_minus_L" != no; then
11143 # Linking always hardcodes the temporary library directory.
11144 hardcode_action=relink
11146 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11147 hardcode_action=immediate
11150 # We cannot hardcode anything, or else we can only hardcode existing
11152 hardcode_action=unsupported
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11155 $as_echo "$hardcode_action" >&6; }
11157 if test "$hardcode_action" = relink ||
11158 test "$inherit_rpath" = yes; then
11159 # Fast installation is not supported
11160 enable_fast_install=no
11161 elif test "$shlibpath_overrides_runpath" = yes ||
11162 test "$enable_shared" = no; then
11163 # Fast installation is not necessary
11164 enable_fast_install=needless
11172 if test "x$enable_dlopen" != xyes; then
11173 enable_dlopen=unknown
11174 enable_dlopen_self=unknown
11175 enable_dlopen_self_static=unknown
11182 lt_cv_dlopen="load_add_on"
11184 lt_cv_dlopen_self=yes
11187 mingw* | pw32* | cegcc*)
11188 lt_cv_dlopen="LoadLibrary"
11193 lt_cv_dlopen="dlopen"
11198 # if libdl is installed we need to link against it
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11200 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11201 if ${ac_cv_lib_dl_dlopen+:} false; then :
11202 $as_echo_n "(cached) " >&6
11204 ac_check_lib_save_LIBS=$LIBS
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11224 if ac_fn_c_try_link "$LINENO"; then :
11225 ac_cv_lib_dl_dlopen=yes
11227 ac_cv_lib_dl_dlopen=no
11229 rm -f core conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
11231 LIBS=$ac_check_lib_save_LIBS
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11234 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11235 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11239 lt_cv_dlopen="dyld"
11241 lt_cv_dlopen_self=yes
11248 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11249 if test "x$ac_cv_func_shl_load" = xyes; then :
11250 lt_cv_dlopen="shl_load"
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11253 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11254 if ${ac_cv_lib_dld_shl_load+:} false; then :
11255 $as_echo_n "(cached) " >&6
11257 ac_check_lib_save_LIBS=$LIBS
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11262 /* Override any GCC internal prototype to avoid an error.
11263 Use char because int might match the return type of a GCC
11264 builtin and then its argument prototype would still apply. */
11272 return shl_load ();
11277 if ac_fn_c_try_link "$LINENO"; then :
11278 ac_cv_lib_dld_shl_load=yes
11280 ac_cv_lib_dld_shl_load=no
11282 rm -f core conftest.err conftest.$ac_objext \
11283 conftest$ac_exeext conftest.$ac_ext
11284 LIBS=$ac_check_lib_save_LIBS
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11287 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11288 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11289 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11291 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11292 if test "x$ac_cv_func_dlopen" = xyes; then :
11293 lt_cv_dlopen="dlopen"
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11297 if ${ac_cv_lib_dl_dlopen+:} false; then :
11298 $as_echo_n "(cached) " >&6
11300 ac_check_lib_save_LIBS=$LIBS
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_dl_dlopen=yes
11323 ac_cv_lib_dl_dlopen=no
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11331 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11335 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11336 if ${ac_cv_lib_svld_dlopen+:} false; then :
11337 $as_echo_n "(cached) " >&6
11339 ac_check_lib_save_LIBS=$LIBS
11340 LIBS="-lsvld $LIBS"
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11344 /* Override any GCC internal prototype to avoid an error.
11345 Use char because int might match the return type of a GCC
11346 builtin and then its argument prototype would still apply. */
11359 if ac_fn_c_try_link "$LINENO"; then :
11360 ac_cv_lib_svld_dlopen=yes
11362 ac_cv_lib_svld_dlopen=no
11364 rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_lib_save_LIBS
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11369 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11370 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11374 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11375 if ${ac_cv_lib_dld_dld_link+:} false; then :
11376 $as_echo_n "(cached) " >&6
11378 ac_check_lib_save_LIBS=$LIBS
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11393 return dld_link ();
11398 if ac_fn_c_try_link "$LINENO"; then :
11399 ac_cv_lib_dld_dld_link=yes
11401 ac_cv_lib_dld_dld_link=no
11403 rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 LIBS=$ac_check_lib_save_LIBS
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11408 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11409 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11410 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11431 if test "x$lt_cv_dlopen" != xno; then
11437 case $lt_cv_dlopen in
11439 save_CPPFLAGS="$CPPFLAGS"
11440 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11442 save_LDFLAGS="$LDFLAGS"
11443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11446 LIBS="$lt_cv_dlopen_libs $LIBS"
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11449 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11450 if ${lt_cv_dlopen_self+:} false; then :
11451 $as_echo_n "(cached) " >&6
11453 if test "$cross_compiling" = yes; then :
11454 lt_cv_dlopen_self=cross
11456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11457 lt_status=$lt_dlunknown
11458 cat > conftest.$ac_ext <<_LT_EOF
11459 #line $LINENO "configure"
11460 #include "confdefs.h"
11469 # define LT_DLGLOBAL RTLD_GLOBAL
11472 # define LT_DLGLOBAL DL_GLOBAL
11474 # define LT_DLGLOBAL 0
11478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11479 find out it does not work in some platform. */
11480 #ifndef LT_DLLAZY_OR_NOW
11482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11485 # define LT_DLLAZY_OR_NOW DL_LAZY
11488 # define LT_DLLAZY_OR_NOW RTLD_NOW
11491 # define LT_DLLAZY_OR_NOW DL_NOW
11493 # define LT_DLLAZY_OR_NOW 0
11500 /* When -fvisbility=hidden is used, assume the code has been annotated
11501 correspondingly for the symbols needed. */
11502 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11503 int fnord () __attribute__((visibility("default")));
11506 int fnord () { return 42; }
11509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11510 int status = $lt_dlunknown;
11514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11518 else puts (dlerror ());
11520 /* dlclose (self); */
11528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11529 (eval $ac_link) 2>&5
11531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11532 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11533 (./conftest; exit; ) >&5 2>/dev/null
11535 case x$lt_status in
11536 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11537 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11538 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11541 # compilation failed
11542 lt_cv_dlopen_self=no
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11550 $as_echo "$lt_cv_dlopen_self" >&6; }
11552 if test "x$lt_cv_dlopen_self" = xyes; then
11553 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11555 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11556 if ${lt_cv_dlopen_self_static+:} false; then :
11557 $as_echo_n "(cached) " >&6
11559 if test "$cross_compiling" = yes; then :
11560 lt_cv_dlopen_self_static=cross
11562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11563 lt_status=$lt_dlunknown
11564 cat > conftest.$ac_ext <<_LT_EOF
11565 #line $LINENO "configure"
11566 #include "confdefs.h"
11575 # define LT_DLGLOBAL RTLD_GLOBAL
11578 # define LT_DLGLOBAL DL_GLOBAL
11580 # define LT_DLGLOBAL 0
11584 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11585 find out it does not work in some platform. */
11586 #ifndef LT_DLLAZY_OR_NOW
11588 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11591 # define LT_DLLAZY_OR_NOW DL_LAZY
11594 # define LT_DLLAZY_OR_NOW RTLD_NOW
11597 # define LT_DLLAZY_OR_NOW DL_NOW
11599 # define LT_DLLAZY_OR_NOW 0
11606 /* When -fvisbility=hidden is used, assume the code has been annotated
11607 correspondingly for the symbols needed. */
11608 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11609 int fnord () __attribute__((visibility("default")));
11612 int fnord () { return 42; }
11615 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11616 int status = $lt_dlunknown;
11620 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11623 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11624 else puts (dlerror ());
11626 /* dlclose (self); */
11634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11635 (eval $ac_link) 2>&5
11637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11638 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11639 (./conftest; exit; ) >&5 2>/dev/null
11641 case x$lt_status in
11642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11644 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11647 # compilation failed
11648 lt_cv_dlopen_self_static=no
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11656 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11659 CPPFLAGS="$save_CPPFLAGS"
11660 LDFLAGS="$save_LDFLAGS"
11665 case $lt_cv_dlopen_self in
11666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11667 *) enable_dlopen_self=unknown ;;
11670 case $lt_cv_dlopen_self_static in
11671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11672 *) enable_dlopen_self_static=unknown ;;
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11695 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11696 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11697 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11698 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11700 $as_echo "yes" >&6; }
11702 # FIXME - insert some real tests, host_os isn't really good enough
11705 if test -n "$STRIP" ; then
11706 striplib="$STRIP -x"
11707 old_striplib="$STRIP -S"
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11709 $as_echo "yes" >&6; }
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11733 # Report which library types will actually be built
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11735 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11737 $as_echo "$can_build_shared" >&6; }
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11740 $as_echo_n "checking whether to build shared libraries... " >&6; }
11741 test "$can_build_shared" = "no" && enable_shared=no
11743 # On AIX, shared libraries and static libraries use the same namespace, and
11744 # are all built from PIC.
11747 test "$enable_shared" = yes && enable_static=no
11748 if test -n "$RANLIB"; then
11749 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11750 postinstall_cmds='$RANLIB $lib'
11755 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11756 test "$enable_shared" = yes && enable_static=no
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11761 $as_echo "$enable_shared" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11764 $as_echo_n "checking whether to build static libraries... " >&6; }
11765 # Make sure either enable_shared or enable_static is yes.
11766 test "$enable_shared" = yes || enable_static=yes
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11768 $as_echo "$enable_static" >&6; }
11775 ac_cpp='$CPP $CPPFLAGS'
11776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11796 ac_config_commands="$ac_config_commands libtool"
11801 # Only expand once:
11811 cat >>confdefs.h <<_ACEOF
11812 #define LIB_MAJ $LIB_MAJ
11816 # Check whether --enable-debug was given.
11817 if test "${enable_debug+set}" = set; then :
11818 enableval=$enable_debug;
11819 $as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
11824 # Check whether --enable-unversioned-modules was given.
11825 if test "${enable_unversioned_modules+set}" = set; then :
11826 enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
11829 $as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
11837 # Check whether --with-modules-dir was given.
11838 if test "${with_modules_dir+set}" = set; then :
11839 withval=$with_modules_dir; if test x"$withval" != x"no"; then :
11841 OPENPAM_MODULES_DIR="$withval"
11845 OPENPAM_MODULES_DIR="$libdir"
11849 OPENPAM_MODULES_DIR="$libdir"
11853 cat >>confdefs.h <<_ACEOF
11854 #define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}/"
11860 # Check whether --with-doc was given.
11861 if test "${with_doc+set}" = set; then :
11867 if test x"$with_doc" = x"yes"; then
11877 # Check whether --with-pam-unix was given.
11878 if test "${with_pam_unix+set}" = set; then :
11879 withval=$with_pam_unix;
11884 if test x"$with_pam_unix" = x"yes"; then
11885 WITH_PAM_UNIX_TRUE=
11886 WITH_PAM_UNIX_FALSE='#'
11888 WITH_PAM_UNIX_TRUE='#'
11889 WITH_PAM_UNIX_FALSE=
11894 # Check whether --with-pamtest was given.
11895 if test "${with_pamtest+set}" = set; then :
11896 withval=$with_pamtest;
11901 if test x"$with_pamtest" = x"yes"; then
11903 WITH_PAMTEST_FALSE='#'
11905 WITH_PAMTEST_TRUE='#'
11906 WITH_PAMTEST_FALSE=
11911 # Check whether --with-su was given.
11912 if test "${with_su+set}" = set; then :
11918 if test x"$with_su" = x"yes"; then
11927 for ac_header in crypt.h
11929 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
11930 if test "x$ac_cv_header_crypt_h" = xyes; then :
11931 cat >>confdefs.h <<_ACEOF
11932 #define HAVE_CRYPT_H 1
11940 for ac_func in fdlopen fpurge strlcat strlcmp strlcpy
11942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11943 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11944 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11945 cat >>confdefs.h <<_ACEOF
11946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953 saved_LIBS="${LIBS}"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11956 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11957 if ${ac_cv_lib_dl_dlopen+:} false; then :
11958 $as_echo_n "(cached) " >&6
11960 ac_check_lib_save_LIBS=$LIBS
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11980 if ac_fn_c_try_link "$LINENO"; then :
11981 ac_cv_lib_dl_dlopen=yes
11983 ac_cv_lib_dl_dlopen=no
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11990 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11991 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11992 cat >>confdefs.h <<_ACEOF
11993 #define HAVE_LIBDL 1
12001 LIBS="${saved_LIBS}"
12004 saved_LIBS="${LIBS}"
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12007 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12008 if ${ac_cv_lib_crypt_crypt+:} false; then :
12009 $as_echo_n "(cached) " >&6
12011 ac_check_lib_save_LIBS=$LIBS
12012 LIBS="-lcrypt $LIBS"
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12016 /* Override any GCC internal prototype to avoid an error.
12017 Use char because int might match the return type of a GCC
12018 builtin and then its argument prototype would still apply. */
12031 if ac_fn_c_try_link "$LINENO"; then :
12032 ac_cv_lib_crypt_crypt=yes
12034 ac_cv_lib_crypt_crypt=no
12036 rm -f core conftest.err conftest.$ac_objext \
12037 conftest$ac_exeext conftest.$ac_ext
12038 LIBS=$ac_check_lib_save_LIBS
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12041 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12042 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12043 cat >>confdefs.h <<_ACEOF
12044 #define HAVE_LIBCRYPT 1
12047 LIBS="-lcrypt $LIBS"
12051 CRYPT_LIBS="${LIBS}"
12052 LIBS="${saved_LIBS}"
12055 # Check whether --enable-developer-warnings was given.
12056 if test "${enable_developer_warnings+set}" = set; then :
12057 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra"
12060 # Check whether --enable-debugging-symbols was given.
12061 if test "${enable_debugging_symbols+set}" = set; then :
12062 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
12065 # Check whether --enable-werror was given.
12066 if test "${enable_werror+set}" = set; then :
12067 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
12071 ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_unix/Makefile t/Makefile"
12073 ac_config_files="$ac_config_files pamgdb"
12075 cat >confcache <<\_ACEOF
12076 # This file is a shell script that caches the results of configure
12077 # tests run on this system so they can be shared between configure
12078 # scripts and configure runs, see configure's option --config-cache.
12079 # It is not useful on other systems. If it contains results you don't
12080 # want to keep, you may remove or edit it.
12082 # config.status only pays attention to the cache file if you give it
12083 # the --recheck option to rerun configure.
12085 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12086 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12087 # following values.
12091 # The following way of writing the cache mishandles newlines in values,
12092 # but we know of no workaround that is simple, portable, and efficient.
12093 # So, we kill variables containing newlines.
12094 # Ultrix sh set writes to stderr and can't be redirected directly,
12095 # and sets the high bit in the cache file unless we assign to the vars.
12097 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12098 eval ac_val=\$$ac_var
12102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12103 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12106 _ | IFS | as_nl) ;; #(
12107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12108 *) { eval $ac_var=; unset $ac_var;} ;;
12114 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12115 *${as_nl}ac_space=\ *)
12116 # `set' does not quote correctly, so add quotes: double-quote
12117 # substitution turns \\\\ into \\, and sed turns \\ into \.
12120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12123 # `set' quotes correctly as required by POSIX, so do not add quotes.
12124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12133 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12135 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12137 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12138 if test -w "$cache_file"; then
12139 if test "x$cache_file" != "x/dev/null"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12141 $as_echo "$as_me: updating cache $cache_file" >&6;}
12142 if test ! -f "$cache_file" || test -h "$cache_file"; then
12143 cat confcache >"$cache_file"
12145 case $cache_file in #(
12147 mv -f confcache "$cache_file"$$ &&
12148 mv -f "$cache_file"$$ "$cache_file" ;; #(
12150 mv -f confcache "$cache_file" ;;
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12156 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12161 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12162 # Let make expand exec_prefix.
12163 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12165 DEFS=-DHAVE_CONFIG_H
12170 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12171 # 1. Remove the extension, and $U if already installed.
12172 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12173 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12174 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12175 # will be set to the directory where LIBOBJS objects are built.
12176 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12177 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12179 LIBOBJS=$ac_libobjs
12181 LTLIBOBJS=$ac_ltlibobjs
12184 if test -n "$EXEEXT"; then
12186 am__EXEEXT_FALSE='#'
12188 am__EXEEXT_TRUE='#'
12192 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12193 as_fn_error $? "conditional \"AMDEP\" was never defined.
12194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12196 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12197 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12200 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
12201 as_fn_error $? "conditional \"WITH_DOC\" was never defined.
12202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12204 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
12205 as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
12206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12208 if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
12209 as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
12210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12212 if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
12213 as_fn_error $? "conditional \"WITH_SU\" was never defined.
12214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12217 : "${CONFIG_STATUS=./config.status}"
12219 ac_clean_files_save=$ac_clean_files
12220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12222 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12224 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12226 # Generated by $as_me.
12227 # Run this file to recreate the current configuration.
12228 # Compiler output produced by configure, useful for debugging
12229 # configure, is in config.log if it exists.
12232 ac_cs_recheck=false
12235 SHELL=\${CONFIG_SHELL-$SHELL}
12238 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12239 ## -------------------- ##
12240 ## M4sh Initialization. ##
12241 ## -------------------- ##
12243 # Be more Bourne compatible
12244 DUALCASE=1; export DUALCASE # for MKS sh
12245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12248 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12249 # is contrary to our usage. Disable this feature.
12250 alias -g '${1+"$@"}'='"$@"'
12251 setopt NO_GLOB_SUBST
12253 case `(set -o) 2>/dev/null` in #(
12265 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12266 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12269 # Prefer a ksh shell builtin over an external printf program on Solaris,
12270 # but without wasting forks for bash or zsh.
12271 if test -z "$BASH_VERSION$ZSH_VERSION" \
12272 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12273 as_echo='print -r --'
12274 as_echo_n='print -rn --'
12275 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12276 as_echo='printf %s\n'
12277 as_echo_n='printf %s'
12279 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12280 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12281 as_echo_n='/usr/ucb/echo -n'
12283 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12284 as_echo_n_body='eval
12288 expr "X$arg" : "X\\(.*\\)$as_nl";
12289 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12291 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12293 export as_echo_n_body
12294 as_echo_n='sh -c $as_echo_n_body as_echo'
12296 export as_echo_body
12297 as_echo='sh -c $as_echo_body as_echo'
12300 # The user is always right.
12301 if test "${PATH_SEPARATOR+set}" != set; then
12303 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12304 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12311 # We need space, tab and new line, in precisely that order. Quoting is
12312 # there to prevent editors from complaining about space-tab.
12313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12314 # splitting by setting IFS to empty value.)
12317 # Find who we are. Look in the path if we contain no directory separator.
12320 *[\\/]* ) as_myself=$0 ;;
12321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12325 test -z "$as_dir" && as_dir=.
12326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12332 # We did not find ourselves, most probably we were run as `sh COMMAND'
12333 # in which case we are not to be found in the path.
12334 if test "x$as_myself" = x; then
12337 if test ! -f "$as_myself"; then
12338 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12342 # Unset variables that we do not need and which cause bugs (e.g. in
12343 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12344 # suppresses any "Segmentation fault" message there. '((' could
12345 # trigger a bug in pdksh 5.2.14.
12346 for as_var in BASH_ENV ENV MAIL MAILPATH
12347 do eval test x\${$as_var+set} = xset \
12348 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12364 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12365 # ----------------------------------------
12366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12368 # script with STATUS, using 1 if that was 0.
12371 as_status=$1; test $as_status -eq 0 && as_status=1
12373 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12376 $as_echo "$as_me: error: $2" >&2
12377 as_fn_exit $as_status
12381 # as_fn_set_status STATUS
12382 # -----------------------
12383 # Set $? to STATUS, without forking.
12384 as_fn_set_status ()
12387 } # as_fn_set_status
12389 # as_fn_exit STATUS
12390 # -----------------
12391 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12395 as_fn_set_status $1
12401 # Portably unset VAR.
12404 { eval $1=; unset $1;}
12406 as_unset=as_fn_unset
12407 # as_fn_append VAR VALUE
12408 # ----------------------
12409 # Append the text in VALUE to the end of the definition contained in VAR. Take
12410 # advantage of any shell optimizations that allow amortized linear growth over
12411 # repeated appends, instead of the typical quadratic growth present in naive
12413 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12414 eval 'as_fn_append ()
12425 # as_fn_arith ARG...
12426 # ------------------
12427 # Perform arithmetic evaluation on the ARGs, and store the result in the
12428 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12429 # must be portable across $(()) and expr.
12430 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12431 eval 'as_fn_arith ()
12438 as_val=`expr "$@" || test $? -eq 1`
12443 if expr a : '\(a\)' >/dev/null 2>&1 &&
12444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12451 as_basename=basename
12456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12462 as_me=`$as_basename -- "$0" ||
12463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12464 X"$0" : 'X\(//\)$' \| \
12465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12467 sed '/^.*\/\([^/][^/]*\)\/*$/{
12481 # Avoid depending upon Character Ranges.
12482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12485 as_cr_digits='0123456789'
12486 as_cr_alnum=$as_cr_Letters$as_cr_digits
12488 ECHO_C= ECHO_N= ECHO_T=
12489 case `echo -n x` in #(((((
12491 case `echo 'xy\c'` in
12492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12494 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12501 rm -f conf$$ conf$$.exe conf$$.file
12502 if test -d conf$$.dir; then
12503 rm -f conf$$.dir/conf$$.file
12506 mkdir conf$$.dir 2>/dev/null
12508 if (echo >conf$$.file) 2>/dev/null; then
12509 if ln -s conf$$.file conf$$ 2>/dev/null; then
12511 # ... but there are two gotchas:
12512 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12513 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12514 # In both cases, we have to default to `cp -p'.
12515 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12517 elif ln conf$$.file conf$$ 2>/dev/null; then
12525 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12526 rmdir conf$$.dir 2>/dev/null
12531 # Create "$as_dir" as a directory, including parents if necessary.
12536 -*) as_dir=./$as_dir;;
12538 test -d "$as_dir" || eval $as_mkdir_p || {
12542 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12543 *) as_qdir=$as_dir;;
12545 as_dirs="'$as_qdir' $as_dirs"
12546 as_dir=`$as_dirname -- "$as_dir" ||
12547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12548 X"$as_dir" : 'X\(//\)[^/]' \| \
12549 X"$as_dir" : 'X\(//\)$' \| \
12550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12551 $as_echo X"$as_dir" |
12552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12556 /^X\(\/\/\)[^/].*/{
12569 test -d "$as_dir" && break
12571 test -z "$as_dirs" || eval "mkdir $as_dirs"
12572 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12576 if mkdir -p . 2>/dev/null; then
12577 as_mkdir_p='mkdir -p "$as_dir"'
12579 test -d ./-p && rmdir ./-p
12583 if test -x / >/dev/null 2>&1; then
12584 as_test_x='test -x'
12586 if ls -dL / >/dev/null 2>&1; then
12593 if test -d "$1"; then
12599 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12600 ???[sx]*):;;*)false;;esac;fi
12604 as_executable_p=$as_test_x
12606 # Sed expression to map a string onto a valid CPP name.
12607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12609 # Sed expression to map a string onto a valid variable name.
12610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12614 ## ----------------------------------- ##
12615 ## Main body of $CONFIG_STATUS script. ##
12616 ## ----------------------------------- ##
12618 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12621 # Save the log message, to keep $0 and so on meaningful, and to
12622 # report actual input values of CONFIG_FILES etc. instead of their
12623 # values after options handling.
12625 This file was extended by OpenPAM $as_me 20120526, which was
12626 generated by GNU Autoconf 2.68. Invocation command line was
12628 CONFIG_FILES = $CONFIG_FILES
12629 CONFIG_HEADERS = $CONFIG_HEADERS
12630 CONFIG_LINKS = $CONFIG_LINKS
12631 CONFIG_COMMANDS = $CONFIG_COMMANDS
12634 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12639 case $ac_config_files in *"
12640 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12643 case $ac_config_headers in *"
12644 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12649 # Files that config.status was made for.
12650 config_files="$ac_config_files"
12651 config_headers="$ac_config_headers"
12652 config_commands="$ac_config_commands"
12656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12658 \`$as_me' instantiates files and other configuration actions
12659 from templates according to the current configuration. Unless the files
12660 and actions are specified as TAGs, all are instantiated by default.
12662 Usage: $0 [OPTION]... [TAG]...
12664 -h, --help print this help, then exit
12665 -V, --version print version number and configuration settings, then exit
12666 --config print configuration, then exit
12667 -q, --quiet, --silent
12668 do not print progress messages
12669 -d, --debug don't remove temporary files
12670 --recheck update $as_me by reconfiguring in the same conditions
12671 --file=FILE[:TEMPLATE]
12672 instantiate the configuration file FILE
12673 --header=FILE[:TEMPLATE]
12674 instantiate the configuration header FILE
12676 Configuration files:
12679 Configuration headers:
12682 Configuration commands:
12685 Report bugs to <des@des.no>."
12688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12689 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12691 OpenPAM config.status 20120526
12692 configured by $0, generated by GNU Autoconf 2.68,
12693 with options \\"\$ac_cs_config\\"
12695 Copyright (C) 2010 Free Software Foundation, Inc.
12696 This config.status script is free software; the Free Software Foundation
12697 gives unlimited permission to copy, distribute and modify it."
12704 test -n "\$AWK" || AWK=awk
12707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12708 # The default lists apply if the user does not specify any file.
12714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12719 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12731 # Handling of the options.
12732 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12734 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12735 $as_echo "$ac_cs_version"; exit ;;
12736 --config | --confi | --conf | --con | --co | --c )
12737 $as_echo "$ac_cs_config"; exit ;;
12738 --debug | --debu | --deb | --de | --d | -d )
12740 --file | --fil | --fi | --f )
12743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12744 '') as_fn_error $? "missing file argument" ;;
12746 as_fn_append CONFIG_FILES " '$ac_optarg'"
12747 ac_need_defaults=false;;
12748 --header | --heade | --head | --hea )
12751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12753 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12754 ac_need_defaults=false;;
12756 # Conflict between --help and --header
12757 as_fn_error $? "ambiguous option: \`$1'
12758 Try \`$0 --help' for more information.";;
12759 --help | --hel | -h )
12760 $as_echo "$ac_cs_usage"; exit ;;
12761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12765 # This is an error.
12766 -*) as_fn_error $? "unrecognized option: \`$1'
12767 Try \`$0 --help' for more information." ;;
12769 *) as_fn_append ac_config_targets " $1"
12770 ac_need_defaults=false ;;
12776 ac_configure_extra_args=
12778 if $ac_cs_silent; then
12780 ac_configure_extra_args="$ac_configure_extra_args --silent"
12784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785 if \$ac_cs_recheck; then
12786 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12788 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12789 CONFIG_SHELL='$SHELL'
12790 export CONFIG_SHELL
12795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12800 ## Running $as_me. ##
12806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12813 # The HP-UX ksh and POSIX shell print the target directory to stdout
12814 # if CDPATH is set.
12815 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12817 sed_quote_subst='$sed_quote_subst'
12818 double_quote_subst='$double_quote_subst'
12819 delay_variable_subst='$delay_variable_subst'
12820 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12821 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12822 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12823 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12824 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12825 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12826 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12827 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12828 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12829 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12830 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12831 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12832 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12833 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12834 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12835 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12836 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12837 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12838 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12839 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12840 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12841 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12842 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12843 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12844 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12845 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12846 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12847 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12848 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12849 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12850 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12851 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12852 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12853 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12854 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12855 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12856 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12857 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12858 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12859 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12860 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12861 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12862 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12863 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12864 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12865 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12866 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12867 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12868 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12869 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12870 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12871 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12872 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12873 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12874 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12875 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12876 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12877 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12878 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12879 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12880 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12881 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12882 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12883 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12884 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12885 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12886 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12887 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12888 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12889 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12890 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12891 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12892 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12893 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12894 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12895 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12896 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12897 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12898 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12899 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12900 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12901 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12902 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12903 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12904 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12905 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12906 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12907 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12908 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12909 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12910 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12911 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12912 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12913 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12914 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12915 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12916 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12917 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12918 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12919 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12920 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12921 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12922 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12923 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12924 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12925 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12926 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12927 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12928 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12929 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12930 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12931 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12932 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12933 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12934 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12935 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12936 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12937 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12938 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12939 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12940 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12941 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12942 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12943 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12944 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12945 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12946 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12947 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12948 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12949 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12952 LTCFLAGS='$LTCFLAGS'
12953 compiler='$compiler_DEFAULT'
12955 # A function that is used when there is no print builtin or printf.
12956 func_fallback_echo ()
12958 eval 'cat <<_LTECHO_EOF
12963 # Quote evaled strings.
12978 deplibs_check_method \
12983 sharedlib_from_linklib_cmd \
12986 archiver_list_spec \
12992 lt_cv_sys_global_symbol_pipe \
12993 lt_cv_sys_global_symbol_to_cdecl \
12994 lt_cv_sys_global_symbol_to_c_name_address \
12995 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12996 nm_file_list_spec \
12997 lt_prog_compiler_no_builtin_flag \
12998 lt_prog_compiler_pic \
12999 lt_prog_compiler_wl \
13000 lt_prog_compiler_static \
13001 lt_cv_prog_compiler_c_o \
13010 export_dynamic_flag_spec \
13011 whole_archive_flag_spec \
13012 compiler_needs_object \
13014 allow_undefined_flag \
13015 no_undefined_flag \
13016 hardcode_libdir_flag_spec \
13017 hardcode_libdir_separator \
13021 variables_saved_for_relink \
13023 library_names_spec \
13025 install_override_mode \
13029 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13030 *[\\\\\\\`\\"\\\$]*)
13031 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13039 # Double-quote double-evaled strings.
13040 for var in reload_cmds \
13041 old_postinstall_cmds \
13042 old_postuninstall_cmds \
13044 extract_expsyms_cmds \
13045 old_archive_from_new_cmds \
13046 old_archive_from_expsyms_cmds \
13048 archive_expsym_cmds \
13050 module_expsym_cmds \
13051 export_symbols_cmds \
13055 postuninstall_cmds \
13057 sys_lib_search_path_spec \
13058 sys_lib_dlsearch_path_spec; do
13059 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13060 *[\\\\\\\`\\"\\\$]*)
13061 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13064 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13069 ac_aux_dir='$ac_aux_dir'
13070 xsi_shell='$xsi_shell'
13071 lt_shell_append='$lt_shell_append'
13073 # See if we are running on zsh, and set the options which allow our
13074 # commands through without removal of \ escapes INIT.
13075 if test -n "\${ZSH_VERSION+set}" ; then
13076 setopt NO_GLOB_SUBST
13082 TIMESTAMP='$TIMESTAMP'
13091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13093 # Handling of arguments.
13094 for ac_config_target in $ac_config_targets
13096 case $ac_config_target in
13097 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13098 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13099 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13100 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13101 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13102 "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
13103 "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
13104 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
13105 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13106 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13107 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13108 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
13109 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13110 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13111 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
13112 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
13113 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
13114 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
13115 "pamgdb") CONFIG_FILES="$CONFIG_FILES pamgdb" ;;
13117 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13122 # If the user did not use the arguments to specify the items to instantiate,
13123 # then the envvar interface is used. Set only those that are not.
13124 # We use the long form for the default assignment because of an extremely
13125 # bizarre bug on SunOS 4.1.3.
13126 if $ac_need_defaults; then
13127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13132 # Have a temporary directory for convenience. Make it in the build tree
13133 # simply because there is no reason against having it here, and in addition,
13134 # creating and moving files from /tmp can sometimes cause problems.
13135 # Hook for its removal unless debugging.
13136 # Note that there is a small window in which the directory will not be cleaned:
13137 # after its creation but before its name has been assigned to `$tmp'.
13141 trap 'exit_status=$?
13142 : "${ac_tmp:=$tmp}"
13143 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13145 trap 'as_fn_exit 1' 1 2 13 15
13147 # Create a (secure) tmp directory for tmp files.
13150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13154 tmp=./conf$$-$RANDOM
13155 (umask 077 && mkdir "$tmp")
13156 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13159 # Set up the scripts for CONFIG_FILES section.
13160 # No need to generate them if there are no CONFIG_FILES.
13161 # This happens for instance with `./config.status config.h'.
13162 if test -n "$CONFIG_FILES"; then
13165 ac_cr=`echo X | tr X '\015'`
13166 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13167 # But we know of no other shell where ac_cr would be empty at this
13168 # point, so we can use a bashism as a fallback.
13169 if test "x$ac_cr" = x; then
13170 eval ac_cr=\$\'\\r\'
13172 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13173 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13176 ac_cs_awk_cr=$ac_cr
13179 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13184 echo "cat >conf$$subs.awk <<_ACEOF" &&
13185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13187 } >conf$$subs.sh ||
13188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13189 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13191 for ac_last_try in false false false false false :; do
13192 . ./conf$$subs.sh ||
13193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13196 if test $ac_delim_n = $ac_delim_num; then
13198 elif $ac_last_try; then
13199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13204 rm -f conf$$subs.sh
13206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13211 s/^/S["/; s/!.*/"]=/
13221 s/\(.\{148\}\)..*/\1/
13223 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13235 s/\(.\{148\}\)..*/\1/
13237 s/["\\]/\\&/g; s/^/"/; s/$/"/
13241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13246 ' <conf$$subs.awk | sed '
13251 ' >>$CONFIG_STATUS || ac_write_fail=1
13252 rm -f conf$$subs.awk
13253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13255 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13256 for (key in S) S_is_set[key] = 1
13262 nfields = split(line, field, "@")
13264 len = length(field[1])
13265 for (i = 2; i < nfields; i++) {
13267 keylen = length(key)
13268 if (S_is_set[key]) {
13270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13271 len += length(value) + length(field[++i])
13282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13284 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13287 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13288 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13291 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13292 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13293 # trailing colons and then remove the whole line if VPATH becomes empty
13294 # (actually we leave an empty line to preserve line numbers).
13295 if test "x$srcdir" = x.; then
13296 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13315 fi # test -n "$CONFIG_FILES"
13317 # Set up the scripts for CONFIG_HEADERS section.
13318 # No need to generate them if there are no CONFIG_HEADERS.
13319 # This happens for instance with `./config.status Makefile'.
13320 if test -n "$CONFIG_HEADERS"; then
13321 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13325 # Transform confdefs.h into an awk script `defines.awk', embedded as
13326 # here-document in config.status, that substitutes the proper values into
13327 # config.h.in to produce config.h.
13329 # Create a delimiter string that does not exist in confdefs.h, to ease
13330 # handling of long lines.
13332 for ac_last_try in false false :; do
13333 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13334 if test -z "$ac_tt"; then
13336 elif $ac_last_try; then
13337 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13343 # For the awk script, D is an array of macro values keyed by name,
13344 # likewise P contains macro parameters if any. Preserve backslash
13345 # newline sequences.
13347 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13349 s/.\{148\}/&'"$ac_delim"'/g
13352 s/^[ ]*#[ ]*define[ ][ ]*/ /
13359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13361 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13365 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13366 D["\1"]=" \3\\\\\\n"\\/p
13368 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13373 s/.\{148\}/&'"$ac_delim"'/g
13378 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13381 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13383 ' <confdefs.h | sed '
13384 s/'"$ac_delim"'/"\\\
13385 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13388 for (key in D) D_is_set[key] = 1
13391 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13393 split(line, arg, " ")
13394 if (arg[1] == "#") {
13398 defundef = substr(arg[1], 2)
13401 split(mac1, mac2, "(") #)
13403 prefix = substr(line, 1, index(line, defundef) - 1)
13404 if (D_is_set[macro]) {
13405 # Preserve the white space surrounding the "#".
13406 print prefix "define", macro P[macro] D[macro]
13409 # Replace #undef with comments. This is necessary, for example,
13410 # in the case of _POSIX_SOURCE, which is predefined and required
13411 # on some systems where configure will not decide to define it.
13412 if (defundef == "undef") {
13413 print "/*", prefix defundef, macro, "*/"
13421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13422 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13423 fi # test -n "$CONFIG_HEADERS"
13426 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13431 :[FHLC]) ac_mode=$ac_tag; continue;;
13433 case $ac_mode$ac_tag in
13435 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13436 :[FH]-) ac_tag=-:-;;
13437 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13454 -) ac_f="$ac_tmp/stdin";;
13455 *) # Look for the file first in the build tree, then in the source tree
13456 # (if the path is not absolute). The absolute path cannot be DOS-style,
13457 # because $ac_f cannot contain `:'.
13461 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13463 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13465 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13466 as_fn_append ac_file_inputs " '$ac_f'"
13469 # Let's still pretend it is `configure' which instantiates (i.e., don't
13470 # use $as_me), people would be surprised to read:
13471 # /* config.h. Generated by config.status. */
13472 configure_input='Generated from '`
13473 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13475 if test x"$ac_file" != x-; then
13476 configure_input="$ac_file. $configure_input"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13478 $as_echo "$as_me: creating $ac_file" >&6;}
13480 # Neutralize special characters interpreted by sed in replacement strings.
13481 case $configure_input in #(
13482 *\&* | *\|* | *\\* )
13483 ac_sed_conf_input=`$as_echo "$configure_input" |
13484 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13485 *) ac_sed_conf_input=$configure_input;;
13489 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13495 ac_dir=`$as_dirname -- "$ac_file" ||
13496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13497 X"$ac_file" : 'X\(//\)[^/]' \| \
13498 X"$ac_file" : 'X\(//\)$' \| \
13499 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13500 $as_echo X"$ac_file" |
13501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13505 /^X\(\/\/\)[^/].*/{
13518 as_dir="$ac_dir"; as_fn_mkdir_p
13522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13525 # A ".." for each directory in $ac_dir_suffix.
13526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13527 case $ac_top_builddir_sub in
13528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13532 ac_abs_top_builddir=$ac_pwd
13533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13534 # for backward compatibility:
13535 ac_top_builddir=$ac_top_build_prefix
13538 .) # We are building in place.
13540 ac_top_srcdir=$ac_top_builddir_sub
13541 ac_abs_top_srcdir=$ac_pwd ;;
13542 [\\/]* | ?:[\\/]* ) # Absolute name.
13543 ac_srcdir=$srcdir$ac_dir_suffix;
13544 ac_top_srcdir=$srcdir
13545 ac_abs_top_srcdir=$srcdir ;;
13546 *) # Relative name.
13547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13548 ac_top_srcdir=$ac_top_build_prefix$srcdir
13549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13562 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13564 ac_MKDIR_P=$MKDIR_P
13566 [\\/$]* | ?:[\\/]* ) ;;
13567 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13572 # If the template does not know about datarootdir, expand it.
13573 # FIXME: This hack should be removed a few years after 2.60.
13574 ac_datarootdir_hack=; ac_datarootdir_seen=
13585 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13586 *datarootdir*) ac_datarootdir_seen=yes;;
13587 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13589 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13592 ac_datarootdir_hack='
13593 s&@datadir@&$datadir&g
13594 s&@docdir@&$docdir&g
13595 s&@infodir@&$infodir&g
13596 s&@localedir@&$localedir&g
13597 s&@mandir@&$mandir&g
13598 s&\\\${datarootdir}&$datarootdir&g' ;;
13602 # Neutralize VPATH when `$srcdir' = `.'.
13603 # Shell code in configure.ac might set extrasub.
13604 # FIXME: do we really want to maintain this feature?
13605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13606 ac_sed_extra="$ac_vpsub
13609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13612 s|@configure_input@|$ac_sed_conf_input|;t t
13613 s&@top_builddir@&$ac_top_builddir_sub&;t t
13614 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13615 s&@srcdir@&$ac_srcdir&;t t
13616 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13617 s&@top_srcdir@&$ac_top_srcdir&;t t
13618 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13619 s&@builddir@&$ac_builddir&;t t
13620 s&@abs_builddir@&$ac_abs_builddir&;t t
13621 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13622 s&@INSTALL@&$ac_INSTALL&;t t
13623 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13624 $ac_datarootdir_hack
13626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13627 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13629 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13630 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13632 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13634 which seems to be undefined. Please make sure it is defined" >&5
13635 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13636 which seems to be undefined. Please make sure it is defined" >&2;}
13638 rm -f "$ac_tmp/stdin"
13640 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13641 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13649 if test x"$ac_file" != x-; then
13651 $as_echo "/* $configure_input */" \
13652 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13653 } >"$ac_tmp/config.h" \
13654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13655 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13657 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13660 mv "$ac_tmp/config.h" "$ac_file" \
13661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13664 $as_echo "/* $configure_input */" \
13665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13666 || as_fn_error $? "could not create -" "$LINENO" 5
13668 # Compute "$ac_file"'s index in $config_headers.
13671 for _am_header in $config_headers :; do
13672 case $_am_header in
13673 $_am_arg | $_am_arg:* )
13676 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13679 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13680 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13681 X"$_am_arg" : 'X\(//\)[^/]' \| \
13682 X"$_am_arg" : 'X\(//\)$' \| \
13683 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13684 $as_echo X"$_am_arg" |
13685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13689 /^X\(\/\/\)[^/].*/{
13701 s/.*/./; q'`/stamp-h$_am_stamp_count
13704 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13705 $as_echo "$as_me: executing $ac_file commands" >&6;}
13710 case $ac_file$ac_mode in
13711 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13712 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13713 # are listed without --file. Let's play safe and only enable the eval
13714 # if we detect the quoting.
13715 case $CONFIG_FILES in
13716 *\'*) eval set x "$CONFIG_FILES" ;;
13717 *) set x $CONFIG_FILES ;;
13722 # Strip MF so we end up with the name of the file.
13723 mf=`echo "$mf" | sed -e 's/:.*$//'`
13724 # Check whether this is an Automake generated Makefile or not.
13725 # We used to match only the files named `Makefile.in', but
13726 # some people rename them; so instead we look at the file content.
13727 # Grep'ing the first line is not enough: some people post-process
13728 # each Makefile.in and add a new line on top of each file to say so.
13729 # Grep'ing the whole file is not good either: AIX grep has a line
13730 # limit of 2048, but all sed's we know have understand at least 4000.
13731 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13732 dirpart=`$as_dirname -- "$mf" ||
13733 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13734 X"$mf" : 'X\(//\)[^/]' \| \
13735 X"$mf" : 'X\(//\)$' \| \
13736 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13742 /^X\(\/\/\)[^/].*/{
13758 # Extract the definition of DEPDIR, am__include, and am__quote
13759 # from the Makefile without running `make'.
13760 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13761 test -z "$DEPDIR" && continue
13762 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13763 test -z "am__include" && continue
13764 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13765 # When using ansi2knr, U may be empty or an underscore; expand it
13766 U=`sed -n 's/^U = //p' < "$mf"`
13767 # Find all dependency output files, they are included files with
13768 # $(DEPDIR) in their names. We invoke sed twice because it is the
13769 # simplest approach to changing $(DEPDIR) to its actual value in the
13771 for file in `sed -n "
13772 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13773 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13774 # Make sure the directory exists.
13775 test -f "$dirpart/$file" && continue
13776 fdir=`$as_dirname -- "$file" ||
13777 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13778 X"$file" : 'X\(//\)[^/]' \| \
13779 X"$file" : 'X\(//\)$' \| \
13780 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13781 $as_echo X"$file" |
13782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13786 /^X\(\/\/\)[^/].*/{
13799 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13800 # echo "creating $dirpart/$file"
13801 echo '# dummy' > "$dirpart/$file"
13808 # See if we are running on zsh, and set the options which allow our
13809 # commands through without removal of \ escapes.
13810 if test -n "${ZSH_VERSION+set}" ; then
13811 setopt NO_GLOB_SUBST
13814 cfgfile="${ofile}T"
13815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13818 cat <<_LT_EOF >> "$cfgfile"
13821 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13822 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13824 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13826 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13827 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13829 # Written by Gordon Matzigkeit, 1996
13831 # This file is part of GNU Libtool.
13833 # GNU Libtool is free software; you can redistribute it and/or
13834 # modify it under the terms of the GNU General Public License as
13835 # published by the Free Software Foundation; either version 2 of
13836 # the License, or (at your option) any later version.
13838 # As a special exception to the GNU General Public License,
13839 # if you distribute this file as part of a program or library that
13840 # is built using GNU Libtool, you may include this file under the
13841 # same distribution terms that you use for the rest of that program.
13843 # GNU Libtool is distributed in the hope that it will be useful,
13844 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13845 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13846 # GNU General Public License for more details.
13848 # You should have received a copy of the GNU General Public License
13849 # along with GNU Libtool; see the file COPYING. If not, a copy
13850 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13851 # obtained by writing to the Free Software Foundation, Inc.,
13852 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13855 # The names of the tagged configurations supported by this script.
13858 # ### BEGIN LIBTOOL CONFIG
13860 # Which release of libtool.m4 was used?
13861 macro_version=$macro_version
13862 macro_revision=$macro_revision
13864 # Whether or not to build static libraries.
13865 build_old_libs=$enable_static
13867 # Whether or not to build shared libraries.
13868 build_libtool_libs=$enable_shared
13870 # What type of objects to build.
13873 # Whether or not to optimize for fast installation.
13874 fast_install=$enable_fast_install
13876 # Shell to use when invoking shell scripts.
13879 # An echo program that protects backslashes.
13882 # The PATH separator for the build system.
13883 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13886 host_alias=$host_alias
13890 # The build system.
13891 build_alias=$build_alias
13895 # A sed program that does not truncate output.
13898 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13899 Xsed="\$SED -e 1s/^X//"
13901 # A grep program that handles long lines.
13907 # A literal string matcher.
13910 # A BSD- or MS-compatible name lister.
13913 # Whether we need soft or hard links.
13916 # What is the maximum length of a command?
13917 max_cmd_len=$max_cmd_len
13919 # Object file suffix (normally "o").
13922 # Executable file suffix (normally "").
13925 # whether the shell understands "unset".
13928 # turn spaces into newlines.
13931 # turn newlines into spaces.
13934 # convert \$build file names to \$host format.
13935 to_host_file_cmd=$lt_cv_to_host_file_cmd
13937 # convert \$build files to toolchain format.
13938 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13940 # An object symbol dumper.
13941 OBJDUMP=$lt_OBJDUMP
13943 # Method to check whether dependent libraries are shared objects.
13944 deplibs_check_method=$lt_deplibs_check_method
13946 # Command to use when deplibs_check_method = "file_magic".
13947 file_magic_cmd=$lt_file_magic_cmd
13949 # How to find potential files when deplibs_check_method = "file_magic".
13950 file_magic_glob=$lt_file_magic_glob
13952 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13953 want_nocaseglob=$lt_want_nocaseglob
13955 # DLL creation program.
13956 DLLTOOL=$lt_DLLTOOL
13958 # Command to associate shared and link libraries.
13959 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13964 # Flags to create an archive.
13965 AR_FLAGS=$lt_AR_FLAGS
13967 # How to feed a file listing to the archiver.
13968 archiver_list_spec=$lt_archiver_list_spec
13970 # A symbol stripping program.
13973 # Commands used to install an old-style archive.
13975 old_postinstall_cmds=$lt_old_postinstall_cmds
13976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13978 # Whether to use a lock for old archive extraction.
13979 lock_old_archive_extraction=$lock_old_archive_extraction
13984 # LTCC compiler flags.
13985 LTCFLAGS=$lt_CFLAGS
13987 # Take the output of nm and produce a listing of raw symbols and C names.
13988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13990 # Transform the output of nm in a proper C declaration.
13991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13993 # Transform the output of nm in a C name address pair.
13994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13996 # Transform the output of nm in a C name address pair when lib prefix is needed.
13997 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13999 # Specify filename containing input files for \$NM.
14000 nm_file_list_spec=$lt_nm_file_list_spec
14002 # The root where to search for dependent libraries,and in which our libraries should be installed.
14003 lt_sysroot=$lt_sysroot
14005 # The name of the directory that contains temporary libtool files.
14008 # Used to examine libraries when file_magic_cmd begins with "file".
14009 MAGIC_CMD=$MAGIC_CMD
14011 # Must we lock files when doing compilation?
14012 need_locks=$lt_need_locks
14015 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14017 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14018 DSYMUTIL=$lt_DSYMUTIL
14020 # Tool to change global to local symbols on Mac OS X.
14023 # Tool to manipulate fat objects and archives on Mac OS X.
14026 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14029 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14030 OTOOL64=$lt_OTOOL64
14032 # Old archive suffix (normally "a").
14035 # Shared library suffix (normally ".so").
14036 shrext_cmds=$lt_shrext_cmds
14038 # The commands to extract the exported symbol list from a shared archive.
14039 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14041 # Variables whose values should be saved in libtool wrapper scripts and
14042 # restored at link time.
14043 variables_saved_for_relink=$lt_variables_saved_for_relink
14045 # Do we need the "lib" prefix for modules?
14046 need_lib_prefix=$need_lib_prefix
14048 # Do we need a version for libraries?
14049 need_version=$need_version
14051 # Library versioning type.
14052 version_type=$version_type
14054 # Shared library runtime path variable.
14055 runpath_var=$runpath_var
14057 # Shared library path variable.
14058 shlibpath_var=$shlibpath_var
14060 # Is shlibpath searched before the hard-coded library search path?
14061 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14063 # Format of library name prefix.
14064 libname_spec=$lt_libname_spec
14066 # List of archive names. First name is the real one, the rest are links.
14067 # The last name is the one that the linker finds with -lNAME
14068 library_names_spec=$lt_library_names_spec
14070 # The coded name of the library, if different from the real name.
14071 soname_spec=$lt_soname_spec
14073 # Permission mode override for installation of shared libraries.
14074 install_override_mode=$lt_install_override_mode
14076 # Command to use after installation of a shared archive.
14077 postinstall_cmds=$lt_postinstall_cmds
14079 # Command to use after uninstallation of a shared archive.
14080 postuninstall_cmds=$lt_postuninstall_cmds
14082 # Commands used to finish a libtool library installation in a directory.
14083 finish_cmds=$lt_finish_cmds
14085 # As "finish_cmds", except a single script fragment to be evaled but
14087 finish_eval=$lt_finish_eval
14089 # Whether we should hardcode library paths into libraries.
14090 hardcode_into_libs=$hardcode_into_libs
14092 # Compile-time system search path for libraries.
14093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14095 # Run-time system search path for libraries.
14096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14098 # Whether dlopen is supported.
14099 dlopen_support=$enable_dlopen
14101 # Whether dlopen of programs is supported.
14102 dlopen_self=$enable_dlopen_self
14104 # Whether dlopen of statically linked programs is supported.
14105 dlopen_self_static=$enable_dlopen_self_static
14107 # Commands to strip libraries.
14108 old_striplib=$lt_old_striplib
14109 striplib=$lt_striplib
14112 # The linker used to build libraries.
14115 # How to create reloadable object files.
14116 reload_flag=$lt_reload_flag
14117 reload_cmds=$lt_reload_cmds
14119 # Commands used to build an old-style archive.
14120 old_archive_cmds=$lt_old_archive_cmds
14122 # A language specific compiler.
14125 # Is the compiler the GNU compiler?
14128 # Compiler flag to turn off builtin functions.
14129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14131 # Additional compiler flags for building library objects.
14132 pic_flag=$lt_lt_prog_compiler_pic
14134 # How to pass a linker flag through the compiler.
14135 wl=$lt_lt_prog_compiler_wl
14137 # Compiler flag to prevent dynamic linking.
14138 link_static_flag=$lt_lt_prog_compiler_static
14140 # Does compiler simultaneously support -c and -o options?
14141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14143 # Whether or not to add -lc for building shared libraries.
14144 build_libtool_need_lc=$archive_cmds_need_lc
14146 # Whether or not to disallow shared libs when runtime libs are static.
14147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14149 # Compiler flag to allow reflexive dlopens.
14150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14152 # Compiler flag to generate shared objects directly from archives.
14153 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14155 # Whether the compiler copes with passing no objects directly.
14156 compiler_needs_object=$lt_compiler_needs_object
14158 # Create an old-style archive from a shared archive.
14159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14161 # Create a temporary old-style archive to link instead of a shared archive.
14162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14164 # Commands used to build a shared archive.
14165 archive_cmds=$lt_archive_cmds
14166 archive_expsym_cmds=$lt_archive_expsym_cmds
14168 # Commands used to build a loadable module if different from building
14169 # a shared archive.
14170 module_cmds=$lt_module_cmds
14171 module_expsym_cmds=$lt_module_expsym_cmds
14173 # Whether we are building with GNU ld or not.
14174 with_gnu_ld=$lt_with_gnu_ld
14176 # Flag that allows shared libraries with undefined symbols to be built.
14177 allow_undefined_flag=$lt_allow_undefined_flag
14179 # Flag that enforces no undefined symbols.
14180 no_undefined_flag=$lt_no_undefined_flag
14182 # Flag to hardcode \$libdir into a binary during linking.
14183 # This must work even if \$libdir does not exist
14184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14186 # Whether we need a single "-rpath" flag with a separated argument.
14187 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14190 # DIR into the resulting binary.
14191 hardcode_direct=$hardcode_direct
14193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14194 # DIR into the resulting binary and the resulting library dependency is
14195 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14196 # library is relocated.
14197 hardcode_direct_absolute=$hardcode_direct_absolute
14199 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14200 # into the resulting binary.
14201 hardcode_minus_L=$hardcode_minus_L
14203 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14204 # into the resulting binary.
14205 hardcode_shlibpath_var=$hardcode_shlibpath_var
14207 # Set to "yes" if building a shared library automatically hardcodes DIR
14208 # into the library and all subsequent libraries and executables linked
14210 hardcode_automatic=$hardcode_automatic
14212 # Set to yes if linker adds runtime paths of dependent libraries
14213 # to runtime path list.
14214 inherit_rpath=$inherit_rpath
14216 # Whether libtool must link a program against all its dependency libraries.
14217 link_all_deplibs=$link_all_deplibs
14219 # Set to "yes" if exported symbols are required.
14220 always_export_symbols=$always_export_symbols
14222 # The commands to list exported symbols.
14223 export_symbols_cmds=$lt_export_symbols_cmds
14225 # Symbols that should not be listed in the preloaded symbols.
14226 exclude_expsyms=$lt_exclude_expsyms
14228 # Symbols that must always be exported.
14229 include_expsyms=$lt_include_expsyms
14231 # Commands necessary for linking programs (against libraries) with templates.
14232 prelink_cmds=$lt_prelink_cmds
14234 # Commands necessary for finishing linking programs.
14235 postlink_cmds=$lt_postlink_cmds
14237 # Specify filename containing input files.
14238 file_list_spec=$lt_file_list_spec
14240 # How to hardcode a shared library path into an executable.
14241 hardcode_action=$hardcode_action
14243 # ### END LIBTOOL CONFIG
14249 cat <<\_LT_EOF >> "$cfgfile"
14250 # AIX sometimes has problems with the GCC collect2 program. For some
14251 # reason, if we set the COLLECT_NAMES environment variable, the problems
14252 # vanish in a puff of smoke.
14253 if test "X${COLLECT_NAMES+set}" != Xset; then
14255 export COLLECT_NAMES
14262 ltmain="$ac_aux_dir/ltmain.sh"
14265 # We use sed instead of cat because bash on DJGPP gets confused if
14266 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14267 # text mode, it properly converts lines to CR/LF. This bash problem
14268 # is reportedly fixed, but why not run on old versions too?
14269 sed '$q' "$ltmain" >> "$cfgfile" \
14270 || (rm -f "$cfgfile"; exit 1)
14272 if test x"$xsi_shell" = xyes; then
14273 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14277 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14278 \ * ) func_dirname_result="${3}" ;;\
14280 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14281 && mv -f "$cfgfile.tmp" "$cfgfile" \
14282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14283 test 0 -eq $? || _lt_function_replace_fail=:
14286 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14289 \ func_basename_result="${1##*/}"\
14290 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14291 && mv -f "$cfgfile.tmp" "$cfgfile" \
14292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14293 test 0 -eq $? || _lt_function_replace_fail=:
14296 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14297 func_dirname_and_basename ()\
14300 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14301 \ * ) func_dirname_result="${3}" ;;\
14303 \ func_basename_result="${1##*/}"\
14304 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14305 && mv -f "$cfgfile.tmp" "$cfgfile" \
14306 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14307 test 0 -eq $? || _lt_function_replace_fail=:
14310 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14313 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14314 \ # positional parameters, so assign one to ordinary parameter first.\
14315 \ func_stripname_result=${3}\
14316 \ func_stripname_result=${func_stripname_result#"${1}"}\
14317 \ func_stripname_result=${func_stripname_result%"${2}"}\
14318 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14319 && mv -f "$cfgfile.tmp" "$cfgfile" \
14320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14321 test 0 -eq $? || _lt_function_replace_fail=:
14324 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14325 func_split_long_opt ()\
14327 \ func_split_long_opt_name=${1%%=*}\
14328 \ func_split_long_opt_arg=${1#*=}\
14329 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14330 && mv -f "$cfgfile.tmp" "$cfgfile" \
14331 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14332 test 0 -eq $? || _lt_function_replace_fail=:
14335 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14336 func_split_short_opt ()\
14338 \ func_split_short_opt_arg=${1#??}\
14339 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14340 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14341 && mv -f "$cfgfile.tmp" "$cfgfile" \
14342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14343 test 0 -eq $? || _lt_function_replace_fail=:
14346 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14350 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14351 \ *) func_lo2o_result=${1} ;;\
14353 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14354 && mv -f "$cfgfile.tmp" "$cfgfile" \
14355 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14356 test 0 -eq $? || _lt_function_replace_fail=:
14359 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14362 func_xform_result=${1%.*}.lo\
14363 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14364 && mv -f "$cfgfile.tmp" "$cfgfile" \
14365 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14366 test 0 -eq $? || _lt_function_replace_fail=:
14369 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14372 func_arith_result=$(( $* ))\
14373 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14374 && mv -f "$cfgfile.tmp" "$cfgfile" \
14375 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14376 test 0 -eq $? || _lt_function_replace_fail=:
14379 sed -e '/^func_len ()$/,/^} # func_len /c\
14382 func_len_result=${#1}\
14383 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14384 && mv -f "$cfgfile.tmp" "$cfgfile" \
14385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14386 test 0 -eq $? || _lt_function_replace_fail=:
14390 if test x"$lt_shell_append" = xyes; then
14391 sed -e '/^func_append ()$/,/^} # func_append /c\
14394 eval "${1}+=\\${2}"\
14395 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14396 && mv -f "$cfgfile.tmp" "$cfgfile" \
14397 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14398 test 0 -eq $? || _lt_function_replace_fail=:
14401 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14402 func_append_quoted ()\
14404 \ func_quote_for_eval "${2}"\
14405 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14406 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14407 && mv -f "$cfgfile.tmp" "$cfgfile" \
14408 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14409 test 0 -eq $? || _lt_function_replace_fail=:
14412 # Save a `func_append' function call where possible by direct use of '+='
14413 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14414 && mv -f "$cfgfile.tmp" "$cfgfile" \
14415 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14416 test 0 -eq $? || _lt_function_replace_fail=:
14418 # Save a `func_append' function call even when '+=' is not available
14419 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14420 && mv -f "$cfgfile.tmp" "$cfgfile" \
14421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14422 test 0 -eq $? || _lt_function_replace_fail=:
14425 if test x"$_lt_function_replace_fail" = x":"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14427 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14431 mv -f "$cfgfile" "$ofile" ||
14432 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14436 "pamgdb":F) chmod +x pamgdb ;;
14444 ac_clean_files=$ac_clean_files_save
14446 test $ac_write_fail = 0 ||
14447 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14450 # configure is writing to config.log, and then calls config.status.
14451 # config.status does its own redirection, appending to config.log.
14452 # Unfortunately, on DOS this fails, as config.log is still kept open
14453 # by configure, so config.status won't be able to write to it; its
14454 # output is simply discarded. So we exec the FD to /dev/null,
14455 # effectively closing config.log, so it can be properly (re)opened and
14456 # appended to by config.status. When coming back to configure, we
14457 # need to make the FD available again.
14458 if test "$no_create" != yes; then
14460 ac_config_status_args=
14461 test "$silent" = yes &&
14462 ac_config_status_args="$ac_config_status_args --quiet"
14464 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14466 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14467 # would make configure fail if this is the last instruction.
14468 $ac_cs_success || as_fn_exit 1
14470 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14472 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}